Skip to content

Commit

Permalink
Fix video replay issue in iOS
Browse files Browse the repository at this point in the history
  • Loading branch information
ShridharGoel authored Mar 15, 2024
1 parent 90ff6b8 commit d494a03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/VideoPlayer/BaseVideoPlayer.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ function BaseVideoPlayer({
const currentDuration = e.durationMillis || videoDuration * 1000;
const currentPositon = e.positionMillis || 0;

if (shouldReplayVideo(e, isVideoPlaying, currentDuration, currentPositon)) {
if (shouldReplayVideo(e, isPlaying, currentDuration, currentPositon)) {
videoPlayerRef.current.setStatusAsync({positionMillis: 0, shouldPlay: true});
}

Expand Down

0 comments on commit d494a03

Please sign in to comment.