播放视频,包括带有自动播放的声音(HTML5)
今天,我尝试在网站加载后立即播放包括声音在内的视频。 没有什么对我有用的。 经过一番研究,我在“ W3Schools”网站上看到了
注意:在大多数情况下,铬浏览器不允许自动播放。但是,始终允许静音自动播放。
对我来说,如果W3Schools写这篇文章,那可能是真的。 但是在他们的网站上的示例中,
Today I tried to play a video including sound automatically as soon as the site loads.
Nothing worked for me.
After a little research I saw on the "w3schools" website
Note: Chromium browsers do not allow autoplay in most cases. However, muted autoplay is always allowed.
For me if w3schools writing this, it's probably true.
But in the example on their site it works, w3schools video player
Change the "controls" to autoplay and its work including sound.
Why does it work for them?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论