Youtube自动播放功能不支持嵌入HTML5播放器的移动设备 [英] Youtube autoplay not working on mobile devices with embedded HTML5 player

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

问题描述

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



以下链接不起作用:


$ b $ < / a>< b ;

叠加窗口已打开,但视频不会自动播放。



编辑:我想在移动设备上使用HTML5播放器。在桌面浏览器中,它可以与参数协同工作,但不能在移动设备上使用。 解决方案

,无法在iOS设备(iPhone,iPad,iPod touch)和Android上进行自动播放。 $ b 请参阅 https://stackoverflow.com/a/8142187/2054512 https://stackoverflow.com / a / 3056220/2054512

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.

解决方案

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

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

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