Youtube 自动播放在带有嵌入式 HTML5 播放器的移动设备上不起作用 [英] Youtube autoplay not working on mobile devices with embedded HTML5 player

查看:18
本文介绍了Youtube 自动播放在带有嵌入式 HTML5 播放器的移动设备上不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

对于我的问题,我有一个链接 <a href="http://www.youtube.com/embed/YT-ID" class="overlay_video"></a>.我想通过单击fancybox 覆盖窗口中的链接来播放视频.这不是问题.问题在于参数,例如自动播放"或自动隐藏".

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".

以下链接无效:

<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.

我想在移动设备上使用 HTML5 播放器.在桌面浏览器上,它适用于参数,但不适用于移动设备.

推荐答案

事实证明,无法在 iOS 设备(iPhone、iPad、iPod touch)和 Android 上进行自动播放.

As it turns out, autoplay cannot be done on iOS devices (iPhone, iPad, iPod touch) and Android.

参见 https://stackoverflow.com/a/8142187/2054512https://stackoverflow.com/a/3056220/2054512

这篇关于Youtube 自动播放在带有嵌入式 HTML5 播放器的移动设备上不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆