I'm trying to autoplay a video included in a iframe
on mobile devices.
The app works well, but the user must click on the button inside the iFrame to play the video.
I already tried to use the "autoplay=1"
parameter in the iframe
but it didn't work on mobile (on desktop well).
Can you help me?
As @A.Wolff remarks, autoplay
is disabled by design to preserve bandwidth.
It's, for instance, possible to "trick" iOS into thinking that the user clicked the play button (Google it, if you want to know how).
However, Vimeo would have to implement this since you won't be able to manipulate the contents of an iframe
from an external source.
Conclusion: You can't autoplay an embeded Vimeo video on mobile devices.
(For the curious, I did some digging in the source of the embed player via remote debugging in Safari and wasn't able to find a way to get the video to play without tapping the play button)