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

auto_join_3.3
Håvar Aambø Fosstveit 2020-04-22 10:41:12 +02:00
parent 37d5fdeefc
commit cdf899a948
1 changed files with 0 additions and 10 deletions

View File

@ -1127,16 +1127,6 @@ export default class RoomClient
'changeAudioOutputDevice() | new selected [audio output device:%o]', 'changeAudioOutputDevice() | new selected [audio output device:%o]',
device); 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)); store.dispatch(settingsActions.setSelectedAudioOutputDevice(deviceId));
await this._updateAudioOutputDevices(); await this._updateAudioOutputDevices();