Start muted
This commit is contained in:
parent
9619e7517b
commit
11f480f206
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user