D
D
Dymok2018-07-24 22:27:05
YouTube
Dymok, 2018-07-24 22:27:05

Why does youtube api work on site but not locally?

There is such a codepen with an example background video from youtube. It is working. If you copy everything and try to open it locally, through the file system, then the video does not load. But if you upload the same files to any hosting - everything works. Here is the archive with the files. What could be the problem?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Elwen, 2018-07-25
@UnluckySerivelha

I got the impression that the whole thing is about copyright, to which YouTube is very attentive.
If you replace the video with any where there is no licensor for music tracks, then everything is played locally. If the licensor is specified, then the video is not played.
All videos you use have the copyright holders of the music.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question