fix: player initialization bugs (#4775)

This commit is contained in:
Krzysztof Moch
2025-11-16 18:27:59 +01:00
committed by GitHub
parent 8ee914f1da
commit 2e88f36a5a
9 changed files with 99 additions and 17 deletions
+3 -1
View File
@@ -121,7 +121,9 @@ const VideoDemo = () => {
const player = useVideoPlayer(
getVideoSource(defaultSettings.videoType),
(_player) => {}
(_player) => {
player.seekTo(1);
}
);
useEvent(player, 'onEnd', handlePlayerEnd);