在YouTube上嵌入的播放按钮不会在Android铬工作 [英] The Play button on a youtube embed does not work on android-chrome

查看:132
本文介绍了在YouTube上嵌入的播放按钮不会在Android铬工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在嵌入式YouTube视频的网页上。正常工作的桌面浏览器。然而,Android的铬,嵌入的视频时不会对中央的红色播放按钮式播放。当你只是外面的播放按钮,这是奇怪的触摸它确实起到很好。

I've been working on an embedded youtube video on a page. Works fine on desktop browsers. However, on android-chrome, the embedded video won't play when you touch on the red play button on the center. It does play fine when you touch just outside the play button, which is weird.

我的客户还报告了iPad的浏览器同样的事情。

My client also reports the same thing on ipad's browser.

奇怪的,因为红色播放按钮无法在本演示中从谷歌甚至工作: https://开头开发商.google.com / YouTube的/ youtube_player_demo

Weird, because the red play button does not work even on this demo from google: https://developers.google.com/youtube/youtube_player_demo

我测试了它在我的Andr​​oid手机(HTC之一),并在桌面上谷歌浏览器的移动仿真功能。

I tested it on my android phone (HTC one), and on the desktop google chrome's mobile emulation feature.

有谁知道什么办法解决这一问题? 谢谢你。

Does anyone know any way to fix this? Thanks.

推荐答案

还有,如果你想使你应该用ps控制是另一种解决方案=文档 像这样的:

there is another solution if you want to enable controls you should use ps=docs like this :

<iframe class="youtube-player" type="text/html" width="100%" height="338" src="http://www.youtube.com/embed/VIDEO-ID?ps=docs&controls=1" frameborder="0" allowfullscreen></iframe>

我已经测试了它......它工作!

i have tested it ... it works!!

我希望这会有所帮助。

这篇关于在YouTube上嵌入的播放按钮不会在Android铬工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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