Skip to content

Commit

Permalink
Readd video starting after video is ready to play
Browse files Browse the repository at this point in the history
  • Loading branch information
Skalakid committed Mar 20, 2024
1 parent 28e72ff commit e0b6726
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/components/VideoPlayer/BaseVideoPlayer.js
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,12 @@ function BaseVideoPlayer({
useNativeControls={false}
resizeMode={resizeMode}
isLooping={isLooping}
onReadyForDisplay={onVideoLoaded}
onReadyForDisplay={(e) => {
if (isCurrentlyURLSet && !isUploading) {
playVideo();
}
onVideoLoaded(e);
}}
onPlaybackStatusUpdate={handlePlaybackStatusUpdate}
onFullscreenUpdate={handleFullscreenUpdate}
/>
Expand Down

0 comments on commit e0b6726

Please sign in to comment.