【发布时间】:2018-05-28 22:59:52
【问题描述】:
所以我有一个需要自动播放的视频。它在 Android(Chrome 和 FF)上运行良好,但 iOS Safari 似乎不想自动播放视频。这是我正在使用的代码(它是一个树枝模板) -
<video class="home-video" poster="{{paths.files}}{{record.templatefields.video_poster}}"
autoplay loop muted controls >
<source src="{{paths.files}}{{record.templatefields.video}}" type="video/mp4" />
<source src="{{paths.files}}{{record.templatefields.video_ogg}}" type="video/ogg" />
</video>
我已经看过https://webkit.org/blog/6784/new-video-policies-for-ios 我已经确保视频没有任何音轨,所以这应该不是问题。设备正在使用 iOS 10+
任何线索将不胜感激..
【问题讨论】:
标签: ios html html5-video