I am trying to use embed youtube code in HTML but when I press play button it say "This video is unavailable". I am using the following HTML code for it:
<iframe width="560" height="315" src="https://www.youtube.com/embed/JfJYHfrOGgQ" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe>
Can anyone help me out with this? I have tried other embed youtube videos too, still says same thing. I am using Chrome.
''Other things you can try: Reload the video at a later point in time or immediately. Update the Adobe Flash Player. Upgrade your browser. Delete cache and cookies.
Web Browser Issues: many YouTube videos won't play issues happen due to web browser issues. Reloading the YouTube video page may solve this issue. If not, you will need to update your web browser or clear the cache. Using another web browser is also a good choice.
Lastly, always keep in mind that videos that have this message: “Video unavailable, watch on youtube” means that the embedding of the video or in the Video Privacy settings, is restricted. It might also be related to a copyright claim on the video. Best Regards.
I had the same issue recently and it had nothing to do with video owners embedding settings. Apparently YouTube forbids embedding some videos in a localhost environment without a public domain, but your video can be embedded with no issue whatsoever through a public domain/subdomain: Replace the src value in the JSFiddle from @PStarczewski's answer with your video link and it will work properly.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With