iphone - YouTube视频无法在iPhone中使用

标签 iphone ios html youtube

这是iframe代码。该功能在所有浏览器中均可正常运行,但在iPhone 5中则无法正常运行。
我已经尝试过class =“youtube-player” type =“text / html”技巧。

<!DOCTYPE html>
<html>
<head>
<title>YouTube</title>
</head>
<body >
<iframe width="940" height="529" frameborder="0" id="player" allowfullscreen="1" title="YouTube video player" src="https://www.youtube.com/embed/yS2PQwPqsCs?controls=0&amp;showinfo=0&amp;hd=0&amp;enablejsapi=1"></iframe>
</body>
</html>

最佳答案

如果您在模拟器中尝试,则无法正常工作。您只能在设备上播放YouTube视频。

关于iphone - YouTube视频无法在iPhone中使用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19294871/

相关文章:

iphone - 如果我从项目构建阶段的编译源中删除所有文件,会发生什么情况?

iphone - iPhone 应用程序中的用户代理

ios - 调用可以抛出,但没有标记为 'try',错误未处理

ios - 当我快速调用 objective-c 方法时崩溃

ios - 如何设置两个按钮在iOS上打开/关闭振动?

jquery - 如何按周显示日期选择器?

iphone - 带分页的水平 UIScrollView

javascript - 将值从一页发送到另一页

html - 在我的案例中如何删除表格填充

iphone - NSURLRequest 奇怪的行为