videojs-player icon indicating copy to clipboard operation
videojs-player copied to clipboard

设置默认不消除音频时,自动播放就不生效了

Open webZW opened this issue 4 years ago • 1 comments

中文用户注意:

  1. 尽量用英文描述你的 issue
  2. 不要把内容堆彻在标题上,逻辑清晰地写在内容区
  3. 贴代码要提前格式化好,有颜色高亮那种,贴文本,不要贴图片
  4. 提问题前,必须仔细阅读 REMADE.md + 在已关闭的问题中寻找与自身相关的问题,90% 的可能它已经被解决
  5. 如果无法做到提一个合格、优秀的问题,则问题会被 close + block

BUG REPORT TEMPLATE

Vue.js version and component version

Reproduction Link

  • A minimal JSBin, JSFiddle, Codepen, or a GitHub repository that can reproduce the bug.
  • You could start with this template: https://jsfiddle.net/39epgLj0/

Steps to reproduce

What is Expected?

What is actually happening?

自动播放不生效: { autoplay: true, muted: false, }

自动播放生效: { autoplay: true, muted: true, }

怎么处理才能让自动播放时,默认有音频呢?

webZW avatar Feb 02 '21 02:02 webZW

这个问题还没解决吗?

Tinywan avatar Aug 30 '21 02:08 Tinywan

In some browsers (e.g. Chrome 70.0) autoplay doesn't work if no muted attribute is present.

这是 浏览器策略 所致。

surmon-china avatar Aug 22 '22 19:08 surmon-china