在YouTube上嵌入的播放按钮不会在Android铬工作会在、播放按钮、工作、YouTube

2023-09-06 15:58:23 作者:sweet(甜的)

我一直在嵌入式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!!

我希望这会有所帮助。