From 841041123642c7274d285529873d3b92f52d2cc5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=A0imon=20Brandner?= Date: Wed, 10 Mar 2021 08:31:01 +0100 Subject: [PATCH] Handle audio MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Šimon Brandner --- src/CallHandler.tsx | 22 -------- src/CallMediaHandler.js | 3 - src/components/views/voip/VideoFeed.tsx | 75 +++++++++++++++++-------- 3 files changed, 52 insertions(+), 48 deletions(-) diff --git a/src/CallHandler.tsx b/src/CallHandler.tsx index e090270c95..60c440d145 100644 --- a/src/CallHandler.tsx +++ b/src/CallHandler.tsx @@ -137,21 +137,6 @@ export enum PlaceCallType { ScreenSharing = 'screensharing', } -function getRemoteAudioElement(): HTMLAudioElement { - // this needs to be somewhere at the top of the DOM which - // always exists to avoid audio interruptions. - // Might as well just use DOM. - const remoteAudioElement = document.getElementById("remoteAudio") as HTMLAudioElement; - if (!remoteAudioElement) { - console.error( - "Failed to find remoteAudio element - cannot play audio!" + - "You need to add an