[mirotalksfu] - fix

هذا الالتزام موجود في:
Miroslav Pejic
2023-08-07 07:35:24 +02:00
الأصل 17c493f5d9
التزام 6ed9cb654c
2 ملفات معدلة مع 16 إضافات و8 حذوفات

عرض الملف

@@ -1188,11 +1188,17 @@ function handleSelectsInit() {
microphoneSelect.selectedIndex = initMicrophoneSelect.selectedIndex;
lS.setLocalStorageDevices(lS.MEDIA_TYPE.audio, microphoneSelect.selectedIndex, microphoneSelect.value);
};
// Check if there is speakers
if (initSpeakerSelect.options.length === 0) {
hide(initSpeakerSelect);
hide(speakerSelectDiv);
} else {
initSpeakerSelect.onchange = () => {
speakerSelect.selectedIndex = initSpeakerSelect.selectedIndex;
lS.setLocalStorageDevices(lS.MEDIA_TYPE.speaker, initSpeakerSelect.selectedIndex, initSpeakerSelect.value);
};
}
}
function setSelectsInit() {
const localStorageDevices = lS.getLocalStorageDevices();

عرض الملف

@@ -178,12 +178,14 @@ access to use this app.
<i class="fas fa-microphone"></i>
<p>Microphone:</p>
<select id="microphoneSelect" class="form-select text-light bg-dark"></select>
<br />
<div id="speakerSelectDiv">
<i class="fas fa-headphones"></i>
<p>Speaker:</p>
<select id="speakerSelect" class="form-select text-light bg-dark"></select>
<br />
</div>
<br />
</div>
<div id="tabRoom" class="tabcontent">
<button id="fullScreenButton" class="hidden">