Skip to content

Commit

Permalink
fix: repeat not working
Browse files Browse the repository at this point in the history
  • Loading branch information
heliocosta-dev authored Aug 30, 2023
1 parent f111216 commit 0e44501
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/VideoPlayer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -128,10 +128,10 @@ export const VideoPlayer = (props: VideoPlayerProps) => {
const _onEnd = () => {
if (currentTime < duration) {
setCurrentTime(duration);
setPaused(true);
setPaused(!props.repeat);

if (showOnEnd) {
setShowControls(true);
setShowControls(!props.repeat);
}
}

Expand Down

0 comments on commit 0e44501

Please sign in to comment.