I Noticed you are using Videojs library (your video has the class “video-> js”
请检查这个小提琴,我准备好用Videojs测试
我想是你需要的)
正如你所看到的,safari的问题总是在发生.在镀铬或其他,它的工作是完美的.这似乎是在开始播放视频时发生的延迟.当音频播放开始时也会发生这种情况.
也许在that stack你会找到你的解决方案.看来,音频解决方案是生成一个swf(FLASH)对象并使用它播放视频(不知道它,但我会尝试用一个例子来准备另一个编辑的答案)
编辑
I´ve found this js library 07002 I´ll try with it to solve!
希望对你有帮助
$(window).ready(function() {
alert("FIRST LOADING VIDEOS AND WAITING");
var vid = document.getElementById("example_video_1");
vid.oncanplay = function() {
startplay(1);
};
var vid2 = document.getElementById("example_video_2");
vid2.oncanplay = function() {
startplay(1);
};
var vid3 = document.getElementById("example_video_3");
vid3.oncanplay = function() {
startplay(1);
};
var vid4 = document.getElementById("example_video_4");
vid4.oncanplay = function() {
startplay(1);
};
});
var loaded = 0;
function startplay(num) {
// alert(num);
loaded += 1;
if (loaded == 4) {
document.getElementById("example_video_1").play();
document.getElementById("example_video_2").play();
document.getElementById("example_video_3").play();
document.getElementById("example_video_4").play();
}
}