Skip to content

Commit

Permalink
Merge pull request #595 from samvera-labs/currenttime-update-582
Browse files Browse the repository at this point in the history
Update current time in audio player in iOS context
  • Loading branch information
Dananji authored Jul 24, 2024
2 parents 914f391 + f5890df commit aba656b
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
};

Expand Down

0 comments on commit aba656b

Please sign in to comment.