diff --git a/assets/js/player.js b/assets/js/player.js index 4db6f98d..1c6e336c 100644 --- a/assets/js/player.js +++ b/assets/js/player.js @@ -554,4 +554,15 @@ if (player_data.preferred_caption_found) { player.ready(() => { player.textTracks()[1].mode = 'showing'; }); -} \ No newline at end of file +} + +// 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); + } + }); + }); +}