后台视频无法在手机和台式机的Safari浏览器中播放 [英] Background video is not playing in safari browser on mobile and desktop
本文介绍了后台视频无法在手机和台式机的Safari浏览器中播放的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我已经将视频转换为.mp4,.webm,.gov等3种格式,但背景视频仍无法在野生动物园浏览器中播放
I have converted the video into 3 formats such as .mp4, .webm, .gov But still background video is not playing in safari browser
<video autoplay="" muted="" loop="" id="myVideo">
<source src="videos/2.0-Welcome-to-DISTRO_1 (1).ogv" type="video/ogv">
<source src="videos/2.0-Welcome-to-DISTRO_1 (1).webm" type="video/webm">
<source src="videos/2.0-Welcome-to-DISTRO_1 (1).mp4" type="video/mp4">
</video>
页面网址为 http://gnxtsystems.com/cookie-test/
请帮助我修复它.预先感谢.
Please help me to fix it. Thanks in advance.
推荐答案
尝试这两件事.
添加playsinline属性
add playsinline attribute in video tag like this
<video class="video-background" autoplay loop muted playsinline>
第二,对于苹果设备,您必须关闭低功耗模式.
and secondly for apple devices you will have to turn off the low power mode.
然后检查...它将起作用
then check...it will work
这篇关于后台视频无法在手机和台式机的Safari浏览器中播放的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文