|
|
@ -63,9 +63,10 @@ player.on('error', function () {
|
|
|
|
source.src += '&local=true';
|
|
|
|
source.src += '&local=true';
|
|
|
|
}));
|
|
|
|
}));
|
|
|
|
} else if (reloadMakesSense) {
|
|
|
|
} else if (reloadMakesSense) {
|
|
|
|
setTimeout(function (event) {
|
|
|
|
setTimeout(function () {
|
|
|
|
console.log('An error occurred in the player, reloading...');
|
|
|
|
console.warn('An error occurred in the player, reloading...');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// After load() all parameters are reset. Save them
|
|
|
|
var currentTime = player.currentTime();
|
|
|
|
var currentTime = player.currentTime();
|
|
|
|
var playbackRate = player.playbackRate();
|
|
|
|
var playbackRate = player.playbackRate();
|
|
|
|
var paused = player.paused();
|
|
|
|
var paused = player.paused();
|
|
|
@ -76,9 +77,8 @@ player.on('error', function () {
|
|
|
|
|
|
|
|
|
|
|
|
player.currentTime(currentTime);
|
|
|
|
player.currentTime(currentTime);
|
|
|
|
player.playbackRate(playbackRate);
|
|
|
|
player.playbackRate(playbackRate);
|
|
|
|
|
|
|
|
|
|
|
|
if (!paused) player.play();
|
|
|
|
if (!paused) player.play();
|
|
|
|
}, 10000);
|
|
|
|
}, 5000);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|