Mute stream by default for autoplay (#127)

This commit is contained in:
Adam Sunderland
2023-06-15 09:16:14 -04:00
committed by GitHub
parent 6eaa0e0852
commit e7c1554129

View File

@ -49,6 +49,7 @@ export const Stream = () => {
if (videoRef.current) {
videoRef.current.srcObject = event.streams[0]
videoRef.current.autoplay = true
videoRef.current.muted = true
videoRef.current.controls = false
}
}