|
|
|
@ -555,3 +555,14 @@ if (player_data.preferred_caption_found) {
|
|
|
|
|
player.textTracks()[1].mode = 'showing';
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Safari audio double duration fix
|
|
|
|
|
if (navigator.vendor == "Apple Computer, Inc." && video_data.params.listen) {
|
|
|
|
|
player.on('loadedmetadata', function () {
|
|
|
|
|
player.on('timeupdate', function () {
|
|
|
|
|
if (player.remainingTime() < player.duration() / 2) {
|
|
|
|
|
player.currentTime(player.duration() + 1);
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|