futtta
futtta

Reputation: 5920

no autoplay in iframe HTML5 player on mobile (Android Chrome and Firefox)?

I've recently run into an issue when embedding a video with standard iframe embed code and adding autoplay=1 like this:

<iframe width="420" height="315" src="http://www.youtube.com/embed/Le4kjAIcj4k?rel=0&amp;autoplay=1" frameborder="0" allowfullscreen></iframe>

The results when testing:

Is this a known issue? Any workaround?

Upvotes: 7

Views: 14636

Answers (1)

Jeff Posnick
Jeff Posnick

Reputation: 56044

When you use the <iframe> Player in a browser that has Flash disabled, playback is handled via HTML5 <video> tags.

Apple explicitly prohibits autoplaying media in <video> tags in iOS Safari.

This is also the case for at least recent versions the default Android Browser or in Chrome. I'd strongly suspect that Android Firefox has the same restriction.

Upvotes: 9

Related Questions