From a3da5ee6e6fec3dfce097a16bdfeeae6a0754aca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=A0imon=20Brandner?= Date: Thu, 8 Apr 2021 14:32:53 +0200 Subject: [PATCH] Don't play audio if the feed is local MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Šimon Brandner --- src/components/views/voip/VideoFeed.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/views/voip/VideoFeed.tsx b/src/components/views/voip/VideoFeed.tsx index 8e518981f8..663c2e4613 100644 --- a/src/components/views/voip/VideoFeed.tsx +++ b/src/components/views/voip/VideoFeed.tsx @@ -68,7 +68,8 @@ export default class VideoFeed extends React.Component { currentMedia.srcObject = this.props.feed.stream; currentMedia.autoplay = true; - currentMedia.muted = false; + // Don't play audio if the feed is local + currentMedia.muted = this.props.feed.isLocal(); try { if (audioOutput) {