[mirotalksfu] - fix
هذا الالتزام موجود في:
@@ -1188,11 +1188,17 @@ 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
|
||||||
|
if (initSpeakerSelect.options.length === 0) {
|
||||||
|
hide(initSpeakerSelect);
|
||||||
|
hide(speakerSelectDiv);
|
||||||
|
} else {
|
||||||
initSpeakerSelect.onchange = () => {
|
initSpeakerSelect.onchange = () => {
|
||||||
speakerSelect.selectedIndex = initSpeakerSelect.selectedIndex;
|
speakerSelect.selectedIndex = initSpeakerSelect.selectedIndex;
|
||||||
lS.setLocalStorageDevices(lS.MEDIA_TYPE.speaker, initSpeakerSelect.selectedIndex, initSpeakerSelect.value);
|
lS.setLocalStorageDevices(lS.MEDIA_TYPE.speaker, initSpeakerSelect.selectedIndex, initSpeakerSelect.value);
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
function setSelectsInit() {
|
function setSelectsInit() {
|
||||||
const localStorageDevices = lS.getLocalStorageDevices();
|
const localStorageDevices = lS.getLocalStorageDevices();
|
||||||
|
|||||||
@@ -178,12 +178,14 @@ access to use this app.
|
|||||||
<i class="fas fa-microphone"></i>
|
<i class="fas fa-microphone"></i>
|
||||||
<p>Microphone:</p>
|
<p>Microphone:</p>
|
||||||
<select id="microphoneSelect" class="form-select text-light bg-dark"></select>
|
<select id="microphoneSelect" class="form-select text-light bg-dark"></select>
|
||||||
<br />
|
<div id="speakerSelectDiv">
|
||||||
<i class="fas fa-headphones"></i>
|
<i class="fas fa-headphones"></i>
|
||||||
<p>Speaker:</p>
|
<p>Speaker:</p>
|
||||||
<select id="speakerSelect" class="form-select text-light bg-dark"></select>
|
<select id="speakerSelect" class="form-select text-light bg-dark"></select>
|
||||||
<br />
|
<br />
|
||||||
</div>
|
</div>
|
||||||
|
<br />
|
||||||
|
</div>
|
||||||
|
|
||||||
<div id="tabRoom" class="tabcontent">
|
<div id="tabRoom" class="tabcontent">
|
||||||
<button id="fullScreenButton" class="hidden">
|
<button id="fullScreenButton" class="hidden">
|
||||||
|
|||||||
المرجع في مشكلة جديدة
حظر مستخدم