From ddd7f3f3849be4b81fafd31097075285739e7fd9 Mon Sep 17 00:00:00 2001 From: 138138138 <78271024+138138138@users.noreply.github.com> Date: Wed, 3 Feb 2021 11:50:14 +0800 Subject: [PATCH] Update player.js --- assets/js/player.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/assets/js/player.js b/assets/js/player.js index 29b62147..031711ee 100644 --- a/assets/js/player.js +++ b/assets/js/player.js @@ -549,8 +549,8 @@ if (player.share) { } // Safari audio double duration fix -player.on('loadedmetadata', function () { - if (navigator.vendor == "Apple Computer, Inc." && video_data.params.listen) { +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);