We don't need to change sink manualy. State, and React handles that for us.

This commit is contained in:
Håvar Aambø Fosstveit
2020-04-22 10:41:12 +02:00
parent 37d5fdeefc
commit cdf899a948
-10
View File
@@ -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();