在iPad上播放playVideo()命令后,YouTube iFrame API处于缓冲状态
YouTube iFrame API hangs in buffering state after the playVideo() command on iPad
我在iPad (iOS 7, Safari浏览器)上有一个iFrame API问题。当我尝试用'player. playvideo()'命令开始视频时,当我调用'player. getplayerstate()'命令(说它正在缓冲)时,播放器变为黑色并返回'3'状态。
点击红色的YouTube按钮可以工作,但使用'playVideo()'命令不行。这可以在谷歌自己的YouTube API演示页面上复制:https://developers.google.com/youtube/youtube_player_demo
确保显示iFrame,并点击播放器下方的蓝色"Play"按钮。在桌面浏览器上运行正常,但在iOS7的iPad上就不行了。
我需要'playVideo()'命令来控制无铬播放器(没有控件)。什么好主意吗?
尝试自动播放功能,如果点击大红色按钮不是强制的,我已经通过在嵌入的HTML正文中的onReady函数中添加"event.target.playVideo();"来做到这一点。我的玩家会显示一个红色的大按钮,并立即启动游戏。我使用了GitHub上可用的最新ios助手youtube-ios-player-helper。在google开发者网站上也提到了使用YouTube Helper库在iOS应用程序中嵌入YouTube视频
相关文章:
- 是否可以使用iframe API在iOS浏览器上播放youtube视频
- Youtube iframe api未在YouTubeIframeAPIReady上触发
- 使用YouTube iFrame API的IE中的JavaScript问题
- Browserify breaks Youtube iFrame API
- Youtube Player API iframe Embed | player.clearVideo() not wo
- Youtube iframe API-重置音量
- 简单的Youtube iframe API就在文档中,我做错了什么
- Youtube IFrame API来源不明
- YouTube iframe API and WordPress
- Youtube iFrame API pauseVideo在UIWebView中未定义
- 带有主干的Youtube IFrame API
- 谷歌地图Api在CRM Dynamics 2011 iframe"不可能使用显示属性“;消息
- Iframe中的SCORM课程可以'找不到API
- Youtube iFrame API无法控制播放器
- 如何添加id和额外的参数到一个放大弹出iframe与youtube视频,所以我可以控制与API youtube播放器
- 没有全屏的iPhone 上的 YouTube Iframe API
- Youtube iFrame API 'YT is undefined'
- 如何从数组获取链接以在youtube Iframe API中播放
- YouTube API - iframe onStateChange events
- CSS不能与API Iframe一起工作