From 91e244772f4ee6dad4a806b023349c2e54fddbbe Mon Sep 17 00:00:00 2001 From: Robert Long Date: Wed, 18 Aug 2021 18:34:17 -0700 Subject: [PATCH] Fix video muted --- src/VideoGrid.jsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/VideoGrid.jsx b/src/VideoGrid.jsx index 1832f0f..d913b03 100644 --- a/src/VideoGrid.jsx +++ b/src/VideoGrid.jsx @@ -333,6 +333,10 @@ function ParticipantTile({ style, participant, remove, ...rest }) { useEffect(() => { if (participant.stream) { + if (participant.local) { + videoRef.current.muted = true; + } + videoRef.current.srcObject = participant.stream; videoRef.current.play(); } else { @@ -343,7 +347,7 @@ function ParticipantTile({ style, participant, remove, ...rest }) { return (
{participant.userId}
-
); }