Skip to content

Commit

Permalink
fix: eslint fail
Browse files Browse the repository at this point in the history
  • Loading branch information
linhvovan29546 committed Feb 7, 2025
1 parent b0b9604 commit 6b4a2be
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/components/VideoPlayer/BaseVideoPlayer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -473,9 +473,10 @@ function BaseVideoPlayer({
videoPlayerRef.current?.setStatusAsync?.({rate: currentPlaybackSpeed});
}}
onLoad={() => {
if (isCurrentlyURLSet && !isUploading) {
playVideo();
if (!isCurrentlyURLSet || isUploading) {
return;
}
playVideo();
}}
onPlaybackStatusUpdate={handlePlaybackStatusUpdate}
onFullscreenUpdate={handleFullscreenUpdate}
Expand Down

0 comments on commit 6b4a2be

Please sign in to comment.