From f5890df82dc6be6f7af38b96901aa3cc21c353c6 Mon Sep 17 00:00:00 2001 From: dwithana Date: Wed, 24 Jul 2024 14:16:40 -0400 Subject: [PATCH] Update current time in audio player in iOS context --- .../MediaPlayer/VideoJS/components/js/VideoJSCurrentTime.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/components/MediaPlayer/VideoJS/components/js/VideoJSCurrentTime.js b/src/components/MediaPlayer/VideoJS/components/js/VideoJSCurrentTime.js index eb86e274..31d7441d 100644 --- a/src/components/MediaPlayer/VideoJS/components/js/VideoJSCurrentTime.js +++ b/src/components/MediaPlayer/VideoJS/components/js/VideoJSCurrentTime.js @@ -81,8 +81,9 @@ function CurrentTimeDisplay({ player, options }) { time = time + altStart; } // This state update caused weird lagging behaviors when using the iOS native - // player. iOS player handles its own time, so we can skip the update here. - if (!iOS) { setCurrTime(time); } + // video player. iOS player handles its own time, so we can skip the update here + // video items. + if (!(iOS && !player.audioOnlyMode_)) { setCurrTime(time); } setInitTime(0); };