fix(setAudioOutputDeviceId): check if supported
This commit is contained in:
parent
28fa1f5dbe
commit
97dc07810c
|
@ -267,6 +267,12 @@ export function setAudioOutputDeviceId(
|
||||||
|
|
||||||
logger.debug(`setAudioOutputDevice: ${String(newLabel)}[${newId}]`);
|
logger.debug(`setAudioOutputDevice: ${String(newLabel)}[${newId}]`);
|
||||||
|
|
||||||
|
if (!JitsiMeetJS.mediaDevices.isDeviceChangeAvailable('output')) {
|
||||||
|
logger.warn('Adjusting audio output is not supported');
|
||||||
|
|
||||||
|
return Promise.resolve();
|
||||||
|
}
|
||||||
|
|
||||||
return JitsiMeetJS.mediaDevices.setAudioOutputDevice(newId)
|
return JitsiMeetJS.mediaDevices.setAudioOutputDevice(newId)
|
||||||
.then(() => {
|
.then(() => {
|
||||||
const newSettings = {
|
const newSettings = {
|
||||||
|
|
Loading…
Reference in New Issue