Youtube自动播放不适用于嵌入式HTML5播放器的移动设备(Youtube autoplay not working on mobile devices with embedded HTML5 p

编程入门 行业动态 更新时间:2024-10-11 09:25:57
Youtube自动播放不适用于嵌入式HTML5播放器的移动设备(Youtube autoplay not working on mobile devices with embedded HTML5 player)

对于我的问题,我有一个链接<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

更多推荐

本文发布于:2023-08-08 01:09:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1466685.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:播放器   嵌入式   自动播放   不适用于   设备

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!