带有video.js的HTML5视频无法在Safari中使用 [英] HTML5 video with video.js not working in Safari
问题描述
我有一个私人网站,使用HTML5视频代码和video.js插件来托管培训视频。直到去年春天,它一直在Chrome / Firefox / Safari中运行,但现在这些视频已不再适用于Safari。它们在Chrome和Firefox中运行良好。我升级到最新的video.js v4.12和v5,但这没有帮助。您可以在此测试页上查看损坏的代码。
I have a private website that hosts training videos using the HTML5 video tag and the video.js plugin. It was working in Chrome/Firefox/Safari up until last Spring, but now the videos no longer work in Safari. They work fine in Chrome and Firefox. I upgraded to the latest video.js v4.12 and v5 but that has not helped. You can view the broken code on this test page.
http://dev.investja.org/videojs_problem2.html
当您打开页面并点击视频时,它可以在Chrome和Firefox中正常运行但不是Safari。
When you open the page and click on the video it works fine in Chrome and Firefox but not Safari.
非常感谢任何帮助!
谢谢
推荐答案
尝试在js代码中使用:
Try to use in js code:
var myVideo = videojs(videoEl, { controls: true });
并从你的html代码中删除сontrols。
,
and remove сontrols from you html code. ,
这篇关于带有video.js的HTML5视频无法在Safari中使用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!