Skip to content

Commit

Permalink
fix: hiding poster
Browse files Browse the repository at this point in the history
  • Loading branch information
moskalakamil authored Nov 27, 2024
1 parent 569a79c commit b1facac
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/Video.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -434,9 +434,7 @@ const Video = forwardRef<VideoRef, ReactVideoProps>(

const onVideoLoad = useCallback(
(e: NativeSyntheticEvent<OnLoadData>) => {
if (Platform.OS === 'windows') {
hasPoster && setShowPoster(false);
}
hasPoster && setShowPoster(false);
onLoad?.(e.nativeEvent);
},
[onLoad, hasPoster, setShowPoster],
Expand Down

0 comments on commit b1facac

Please sign in to comment.