如何在Android上使用HTML5应用启用全屏YouTube视频?

问题描述 投票:4回答:1

我正在开发一个html5应用程序,我有一个部分有youtube的视频..在iOS上运行良好,因此在全屏幕上打开但在Android上没有。

我的代码是:

<iframe width="100%" height="200%" src="https://www.youtube.com/embed/VwHa2ARYIdA?autoplay=0&showinfo=0&controls=0" allowfullscreen="allowfullscreen"></iframe>

有帮助吗?

html5 iframe youtube
1个回答
2
投票

试试这个:

<iframe width='100%' height='200%' src='https://www.youtube.com/embed/VwHa2ARYIdA?autoplay=0&showinfo=0&controls=0' allowfullscreen  ></iframe>

这个对我有用...

© www.soinside.com 2019 - 2024. All rights reserved.