Start muted

This commit is contained in:
Ivan Malison 2024-10-13 14:15:28 -06:00
parent 9619e7517b
commit 11f480f206

View File

@ -241,6 +241,8 @@ const Video = forwardRef<VideoRef, ReactVideoProps>(
onBuffer?.({ isBuffering: event.buffering }); onBuffer?.({ isBuffering: event.buffering });
}); });
player.attach(mediaElement)
// Load the video source // Load the video source
player player
//@ts-ignore //@ts-ignore
@ -294,7 +296,7 @@ const Video = forwardRef<VideoRef, ReactVideoProps>(
return ( return (
<video <video
ref={nativeRef} ref={nativeRef}
muted={muted} muted={true}
controls={controls} controls={controls}
loop={repeat} loop={repeat}
playsInline playsInline