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