L
L
lemonlimelike2017-10-10 15:59:57
PHP
lemonlimelike, 2017-10-10 15:59:57

How to correctly specify the path to the video on the server?

Hello. The problem is, I don’t know how to correctly specify the path to the video that is on the server.
For example here

<video controls crossorigin>
                        <source src="http://123.123.123.123/home/qwer/video/<?php echo $qwe[0]['place_of_location'].'.mp4' ?>" type="video/mp4;">
                    </video>

But an error pops up in the console
59dcc3f240f14033747433.jpeg

In the TP wrote, they gave me such information.
How to fix?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
Lander, 2017-10-10
@lemonlimelike

On the server from which the video is loaded, give the header 'Access-Control-Allow-Origin: *'.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question