Chrome更新块闪存自动播放 - 如何避免它? [英] Chrome update block flash autoplay - how avoid it?
问题描述
自上次Chrome浏览器更新以来,Chrome屏蔽了自动播放,并避免以编程方式播放/暂停视频(element.playVideo()未响应)。 (在其他浏览器上一切正常)
我发现的唯一方法是:
这个解决方案对于用户而言是 TO COMPLICATED ,是否有人有解决方案而没有任何用户交互? / div>
-
在同一个域名中加载flash swf文件。你可以考虑代理是否是你自己的基础架构,但我认为这是不可能的Youtube api。
-
以更大的尺寸加载播放器(尝试不同的分辨率) 。这听起来可能听起来很朴素,但Chrome会将更大的视频播放器视为内容,并且不会阻止自动播放。
I embedded a youtube video in a html page. I use the youtube iframe API with Flash (in my case, I cannot use an HTML5 video). Since the last Google Chrome update, Chrome block the autoplay and avoid to play/pause programmatically a video ( element.playVideo() not respond). (Everything is ok on others browsers)
The only way I found is to:
- Go into Chrome preferences
- Then hit Show advanced settings...
- Then hit Content Settings
- then under Plugins, select the 1st choice Run all plugin content (or choose a specific exception )
This solution is TO COMPLICATED for users, does someone have a solution without any user interactions?
Two possible Solutions to avoid autoplay blocking in Chrome:
Load flash swf file from same domain name. You could consider proxying if it's your own infrastructure, but I think it's not possible for Youtube api.
Load the player with a bigger size (Try different resolutions). This might sound naive, but Chrome considers bigger video players as content and doesn't block auto playback.
这篇关于Chrome更新块闪存自动播放 - 如何避免它?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!