Cleanup
parent
3fb24afe11
commit
66b513cf19
|
|
@ -1126,19 +1126,16 @@ export default class RoomClient
|
||||||
logger.debug(
|
logger.debug(
|
||||||
'changeAudioOutputDevice() | new selected [audio output device:%o]',
|
'changeAudioOutputDevice() | new selected [audio output device:%o]',
|
||||||
device);
|
device);
|
||||||
|
|
||||||
|
|
||||||
|
const audioElements = document.getElementsByTagName('audio');
|
||||||
const audioElements = document.getElementsByTagName("audio");
|
|
||||||
for( let i=0; i<audioElements.length; i++){
|
if (typeof audioElements[0].setSinkId === 'function')
|
||||||
if (typeof audioElements[0].setSinkId === 'function'){
|
{
|
||||||
if (i === 0) logger.debug('changeAudioOutputDevice()');
|
for (let i = 0; i < audioElements.length; i++)
|
||||||
await audioElements[i].setSinkId(deviceId);
|
await audioElements[i].setSinkId(deviceId);
|
||||||
} else {
|
}
|
||||||
logger.debug('changeAudioOutputDevice() | setSinkId not implemented');
|
else
|
||||||
break;
|
logger.debug('changeAudioOutputDevice() | setSinkId not implemented');
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
store.dispatch(settingsActions.setSelectedAudioOutputDevice(deviceId));
|
store.dispatch(settingsActions.setSelectedAudioOutputDevice(deviceId));
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue