From cdf899a948358f7b31d6623fb4074564f2622400 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A5var=20Aamb=C3=B8=20Fosstveit?= Date: Wed, 22 Apr 2020 10:41:12 +0200 Subject: [PATCH] We don't need to change sink manualy. State, and React handles that for us. --- app/src/RoomClient.js | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/app/src/RoomClient.js b/app/src/RoomClient.js index 3712009..bc075b0 100644 --- a/app/src/RoomClient.js +++ b/app/src/RoomClient.js @@ -1127,16 +1127,6 @@ export default class RoomClient 'changeAudioOutputDevice() | new selected [audio output device:%o]', device); - const audioElements = document.getElementsByTagName('audio'); - - if (typeof audioElements[0].setSinkId === 'function') - { - for (let i = 0; i < audioElements.length; i++) - await audioElements[i].setSinkId(deviceId); - } - else - logger.debug('changeAudioOutputDevice() | setSinkId not implemented'); - store.dispatch(settingsActions.setSelectedAudioOutputDevice(deviceId)); await this._updateAudioOutputDevices();