Safari 15.3(桌面)和 WebM 内联自动播放视频播放问题
设置了 autoplay
属性的简单 WebM 视频似乎无法在 Safari 15.3 中正常播放:
<video autoplay muted playsinline controls>
<source src="https://www.homepage-helden.de/cms/test.webm" type="video/webm">
<source src="https://www.homepage-helden.de/cms/V/startloop/Homepage-Helden-Hamburg-2019-S_low.mp4?v2022-2" type="video/webm">
</video>
视频开始播放然后冻结。当播放头到达末尾时,它会再次开始播放。我注意到切换标签时视频也会解冻。
WebM 视频使用 V8 或 V9 编解码器进行编码并没有什么区别。 CanIuse 声称 Safari 15 自 MacOS 11.3 起支持版本 15 中的 WebM 视频
当版本 15 中的 Safari 启用时如果在 MP4 和 WemM 文件之间进行选择,它会选择播放 WebM 文件并失败。
这是一个视频: https://filebin.net/l77ctp61v8gtje7t
这是一个已知的 Safari 错误吗?还是和编码有关系?或者使用 HTTP 标头?
A simple WebM video with the autoplay
attribute set does not seem to play correctly in Safari 15.3:
<video autoplay muted playsinline controls>
<source src="https://www.homepage-helden.de/cms/test.webm" type="video/webm">
<source src="https://www.homepage-helden.de/cms/V/startloop/Homepage-Helden-Hamburg-2019-S_low.mp4?v2022-2" type="video/webm">
</video>
The video starts playing then freezes. When the playhead reaches the end it starts playing again. I noticed that when switching tabs the video unfreezes too.
It does not make difference if the WebM Video is encoded with the V8 or V9 Codec.
CanIuse claims that Safari 15. support WebM videos in Version 15 since MacOS 11.3
When Safari in Verion 15 is given the choise between an MP4 and a WemM file it chooses to play the WebM file and fails.
Here is a video: https://filebin.net/l77ctp61v8gtje7t
Is this a known safari bug? Or has it something to do with the encoding? Or with HTTP Headers?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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