Skip to content

Commit 1170a38

Browse files
committed
Fix Video #3432
1 parent 77d4e4a commit 1170a38

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

web/core/VideoJsPlayer/Video.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,10 @@ export const Video: React.FC<VideoProps> = ({
7373
videoRef.current?.appendChild(videoElement)
7474

7575
const player = (playerRef.current = videojs(videoElement, options, () => {
76-
videojs.log('player is ready')
7776
if (onReady) {
7877
videoElement.classList.remove('vjs-custom-waiting')
78+
player.autoplay(autoplay)
79+
player.src(src)
7980
onReady(player)
8081
}
8182
}))

0 commit comments

Comments
 (0)