Added ability to switch audio output device - changes after review
This commit is contained in:
parent
d34adb67dd
commit
5e027e0a91
|
@ -1107,7 +1107,7 @@ export default {
|
||||||
UIEvents.AUDIO_OUTPUT_DEVICE_CHANGED,
|
UIEvents.AUDIO_OUTPUT_DEVICE_CHANGED,
|
||||||
(audioOutputDeviceId) => {
|
(audioOutputDeviceId) => {
|
||||||
APP.settings.setAudioOutputDeviceId(audioOutputDeviceId)
|
APP.settings.setAudioOutputDeviceId(audioOutputDeviceId)
|
||||||
.then(() => console.log('changed output device'))
|
.then(() => console.log('changed audio output device'))
|
||||||
.catch((err) => {
|
.catch((err) => {
|
||||||
console.error('failed to set audio output device', err);
|
console.error('failed to set audio output device', err);
|
||||||
});
|
});
|
||||||
|
|
|
@ -218,7 +218,7 @@ export default {
|
||||||
);
|
);
|
||||||
|
|
||||||
if (audioOutput.length &&
|
if (audioOutput.length &&
|
||||||
JitsiMeetJS.isAudioOutputDeviceChangeAvailable()) {
|
JitsiMeetJS.isDeviceChangeAvailable('output')) {
|
||||||
$selectAudioOutput.html(
|
$selectAudioOutput.html(
|
||||||
generateDevicesOptions(audioOutput,
|
generateDevicesOptions(audioOutput,
|
||||||
Settings.getAudioOutputDeviceId()));
|
Settings.getAudioOutputDeviceId()));
|
||||||
|
|
Loading…
Reference in New Issue