Mujtaba Ahmed
Mujtaba Ahmed

Reputation: 1

Youtube video not getting played on html website

I have uploaded three videos on my youtube channel, however, when I'm trying to put those three videos on my HTML website, among those videos one gets played, and the other two videos show the thumbnail but when I try to play it shows that the video is unavailable. I've attached the embedded code for that video.

<iframe width="100%" height="228" src="https://www.youtube.com/embed/U5jhsfVzcAk" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>

It would be great if someone can suggest something on this!

Upvotes: 0

Views: 182

Answers (2)

Rami Khawaly
Rami Khawaly

Reputation: 115

The autoplay policy was changed recently. here is a post describing the options:

YouTube Autoplay not working

Upvotes: 0

Louis Grasset
Louis Grasset

Reputation: 334

This video is blocked in embeded mode. Try with this Casey Neistat video id : bzE-IMaegzQ it will work.

Here's the Google's policy : https://support.google.com/youtube/answer/6301625?hl=en

Upvotes: 1

Related Questions