Chrome更新块闪存自动播放 - 如何避免它? [英] Chrome update block flash autoplay - how avoid it?

查看:193
本文介绍了Chrome更新块闪存自动播放 - 如何避免它?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在一个HTML页面中嵌入了一个YouTube视频。我使用Flash的YouTube YouTube API(在我的情况下,我不能使用HTML5视频)。
自上次Chrome浏览器更新以来,Chrome屏蔽了自动播放,并避免以编程方式播放/暂停视频(element.playVideo()未响应)。 (在其他浏览器上一切正常)



我发现的唯一方法是:


  • 进入 Chrome浏览器首选项
  • 然后点击显示高级设置...
  • 然后点击内容设置

  • ,然后在插件下选择第一个选项运行所有插件内容。或选择特定的例外)





这个解决方案对于用户而言是 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆