I saw many questions like this asked on StackOverflow, but none of them had a working answer. My problem is that I can't embed a YouTube video, because a "This video is not available." comes up:
Here's what I know and have tried so far:
- This error doesn't come up on all videos. From what I've noticed, it's mostly not working on popular music videos.
- Embedding these YouTube videos doesn't work in a local HTML file (
file:///C:/path/to/file.html
) nor when the embedded video is on my local Django server (12.345.67.89:8080/page
). - It doesn't work both with Youtube's IFrame API and simply an
<iframe>
copy-pasted from YouTube: - I tried both
/embed/
and/watch?v=
as the URL. - When using the iframe, changing
https://
tohttp://
or//
doesn't work. Taking thewww.
part out doesn't work either. - Interestingly, it does work when I put the code in JSFiddle.
- It doesn't work on both Chrome and Firefox.
- There are no errors in the console.
- Accessing the website from my phone (not connecting from my WiFi) or a web proxy doesn't work either.