问题标签 [tubular]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
javascript - 绕过有声视频的 chrome 自动暂停?
我有一个网站设置,其中背景是使用 Tubular.js 插件的 YouTube 视频。chrome 浏览器存在问题,如果我用mute: false
标志加载它,它会自动暂停 youtube 视频。Chrome 是唯一的违规者,因为它适用于 opera、firefox 等。如果我将标志更改为mute: true
视频将正常播放。
Chrome 最近开始阻止播放有声音的视频。有没有一个选项可以在 chrome 上绕过这个,或者至少修改tubular.js library/js 调用,以便它只会在chrome用户代理上静音(无论设置如何)?
https://codepen.io/anon/pen/MGEZrO
提前致谢