对于我的问题,我有一个链接<a href="http://www.youtube.com/embed/YT-ID" class="overlay_video"></a> 。 我想通过点击fancybox覆盖窗口中的链接播放视频。 这不是问题。 问题是参数,例如“autoplay”或“autohide”。
以下链接不起作用:
<a href="http://www.youtube.com/embed/YT-ID?autoplay=1" class="overlay_video"></a>打开了Overlay-Window,但视频没有自动播放。
编辑:我想在移动设备上使用HTML5播放器。 在桌面浏览器上,它可以使用参数,但不适用于移动设备。
To my problem, i have one link <a href="http://www.youtube.com/embed/YT-ID" class="overlay_video"></a>. I want to play the video by clicking the link in a fancybox overlay window. This is not a problem. The problem is the parameters, for example "autoplay" or "autohide".
The following link don't work:
<a href="http://www.youtube.com/embed/YT-ID?autoplay=1" class="overlay_video"></a>The Overlay-Window opened, but the video is not playing automatically.
EDIT: I want to use the HTML5 Player on mobile devices. On a desktop-browser it works with the parameters, but not on mobile devices.
最满意答案
事实证明,自动播放不能在iOS设备(iPhone,iPad,iPod touch)和Android上完成。
请参阅https://stackoverflow.com/a/8142187/2054512和https://stackoverflow.com/a/3056220/2054512
As it turns out, autoplay cannot be done on iOS devices (iPhone, iPad, iPod touch) and Android.
See https://stackoverflow.com/a/8142187/2054512 and https://stackoverflow.com/a/3056220/2054512
更多推荐
发布评论