Youtube embedded video: autoplay feature not working in iphone

Avisek Chakraborty picture Avisek Chakraborty · Nov 15, 2011 · Viewed 96.2k times · Source

I have a youtube embeded video link in HTML5 page, which I want to autoplay.

The following code works in browsers, but in iphone; its not working and needs an extra click.

<iframe type="text/html" width="125" height="100" src="http://www.youtube.com/embed/d_g0251EfB8?autoplay=1" frameborder="0"></iframe>

what to do

Answer

Mike picture Mike · Nov 15, 2011

It can't be done. For various reasons (including, but not limited to data usage), Apple doesn't allow auto-playing of videos.

See the accepted answer to this question.