lazyYT icon indicating copy to clipboard operation
lazyYT copied to clipboard

Have to click twice to play on touch devices

Open emwee opened this issue 9 years ago • 1 comments

With touch enabled I need to click twice to play the video.

On http://www.newmediacampaigns.com/blog/lazyytjs-a-jquery-plugin-to-lazy-load-youtube-videos I read "Apple prohibits video elements from autoplaying, which is causing the double click issue on iOS." but I can reproduce this on every touch device.

Is there a workaround for this?

emwee avatar Oct 13 '15 08:10 emwee

I have created a branch addressing this issue "autoplay_on_mobile".

Here I tried to include YT js API and Play video via code after it loads an iframe (https://github.com/Daugilas/lazyYT/commit/47bd3d0fc891c73311e1c95d9369aaa567f705a7). Unfortunately it worked only on an old Android phone with native browser. iPhone tests failed and Chrome on Android also fialed...

Daugilas avatar Mar 06 '16 19:03 Daugilas