Fix lost output audio when change client language

This commit is contained in:
Tainan Felipe 2020-03-03 14:22:26 -03:00
parent 57c01b7ef8
commit 9dd38ef8f1

View File

@ -70,7 +70,11 @@ export default {
joinEchoTest: () => AudioManager.joinEchoTest(),
toggleMuteMicrophone: debounce(toggleMuteMicrophone, 500, { leading: true, trailing: false }),
changeInputDevice: inputDeviceId => AudioManager.changeInputDevice(inputDeviceId),
changeOutputDevice: outputDeviceId => AudioManager.changeOutputDevice(outputDeviceId),
changeOutputDevice: (outputDeviceId) => {
if (AudioManager.outputDeviceId !== outputDeviceId) {
AudioManager.changeOutputDevice(outputDeviceId);
}
},
isConnected: () => AudioManager.isConnected,
isTalking: () => AudioManager.isTalking,
isHangingUp: () => AudioManager.isHangingUp,