mirror of
https://github.com/zoriya/react-native-video.git
synced 2026-05-25 15:51:33 +00:00
fix: player initialization bugs (#4775)
This commit is contained in:
+3
-1
@@ -121,7 +121,9 @@ const VideoDemo = () => {
|
||||
|
||||
const player = useVideoPlayer(
|
||||
getVideoSource(defaultSettings.videoType),
|
||||
(_player) => {}
|
||||
(_player) => {
|
||||
player.seekTo(1);
|
||||
}
|
||||
);
|
||||
|
||||
useEvent(player, 'onEnd', handlePlayerEnd);
|
||||
|
||||
Reference in New Issue
Block a user