我正在构建一种在Chrome上运行的信息亭媒体,该媒体可以播放带有音频的视频.我知道默认情况下,chrome仅允许自动播放道具静音的视频.
I'm building a kiosk media which runs on Chrome that plays video with audio. I know that chrome by default only allows autoplay for videos with muted props.
我知道我能够通过chrome://flags/#autoplay-policy在chrome中启用一个标记来覆盖此问题
And i know that i WAS able to override this by enabling a flag in chrome via chrome://flags/#autoplay-policy
我刚刚更新到Chrome 76,该标志似乎已经消失,视频的自动播放似乎不再起作用!
I have just updated to Chrome 76 and this flag seems to be gone and the autoplaying of video doesn't seem to work anymore!
任何想法我该如何克服?
Any idea how do i overcome this?
[Chrome 76.0.3809.100(正式版本)(64位)] Mac OS Mojave
[Chrome 76.0.3809.100 (Official Build) (64-bit)] Mac OS Mojave
推荐答案我最近刚刚与Google的一些开发人员谈到了这个问题.我提交了一个错误.他们非常有帮助.
I just spoke to some developers from Google about this issue recently. I submitted a bug. They have been very helpful.
即使在 chromium中删除了自动播放策略Chrome标志-review.googlesource/c/chromium/src/+/1593800 ,您仍然可以通过命令行使用特定的自动播放策略运行Chrome.
Even though autoplay policy chrome flag was removed in chromium-review.googlesource/c/chromium/src/+/1593800, you can still run Chrome with a specific autoplay policy from the command line.
不需要任何用户手势的自动播放策略.
Autoplay policy that does not require any user gesture.
/Applications/Google \ Chrome.app/Contents/MacOS/Google \ Chrome --autoplay-policy =不需要用户手势
/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --autoplay-policy=no-user-gesture-required
他们说此命令将保留,因此很好,但更好的Chrome浏览器允许您通过明确允许网站发出声音站点设置>声音"来始终启用自动播放
They say this command will stay, so that's good but even better Chrome allows you to always enable autoplay by explicitly allowing a website to make sound "Site Settings > Sound"
祝你好运.
更多推荐
Chrome自动播放政策
发布评论