[mirotalksfu] - fix typo
هذا الالتزام موجود في:
@@ -337,7 +337,11 @@ function enumerateAudioDevices(stream) {
|
|||||||
isEnumerateAudioDevices = true;
|
isEnumerateAudioDevices = true;
|
||||||
const sinkId = 'sinkId' in HTMLMediaElement.prototype;
|
const sinkId = 'sinkId' in HTMLMediaElement.prototype;
|
||||||
speakerSelect.disabled = !sinkId;
|
speakerSelect.disabled = !sinkId;
|
||||||
if (!sinkId) hide(initSpeakerSelect);
|
// Check if there is speakers
|
||||||
|
if (!sinkId || initSpeakerSelect.options.length === 0) {
|
||||||
|
hide(initSpeakerSelect);
|
||||||
|
hide(speakerSelectDiv);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1188,16 +1192,10 @@ function handleSelectsInit() {
|
|||||||
microphoneSelect.selectedIndex = initMicrophoneSelect.selectedIndex;
|
microphoneSelect.selectedIndex = initMicrophoneSelect.selectedIndex;
|
||||||
lS.setLocalStorageDevices(lS.MEDIA_TYPE.audio, microphoneSelect.selectedIndex, microphoneSelect.value);
|
lS.setLocalStorageDevices(lS.MEDIA_TYPE.audio, microphoneSelect.selectedIndex, microphoneSelect.value);
|
||||||
};
|
};
|
||||||
// Check if there is speakers
|
initSpeakerSelect.onchange = () => {
|
||||||
if (initSpeakerSelect.options.length === 0) {
|
speakerSelect.selectedIndex = initSpeakerSelect.selectedIndex;
|
||||||
hide(initSpeakerSelect);
|
lS.setLocalStorageDevices(lS.MEDIA_TYPE.speaker, initSpeakerSelect.selectedIndex, initSpeakerSelect.value);
|
||||||
hide(speakerSelectDiv);
|
};
|
||||||
} else {
|
|
||||||
initSpeakerSelect.onchange = () => {
|
|
||||||
speakerSelect.selectedIndex = initSpeakerSelect.selectedIndex;
|
|
||||||
lS.setLocalStorageDevices(lS.MEDIA_TYPE.speaker, initSpeakerSelect.selectedIndex, initSpeakerSelect.value);
|
|
||||||
};
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function setSelectsInit() {
|
function setSelectsInit() {
|
||||||
|
|||||||
المرجع في مشكلة جديدة
حظر مستخدم