[mirotalksfu] - make configurable join room without audio-video

هذا الالتزام موجود في:
Miroslav Pejic
2022-05-13 09:03:49 +02:00
الأصل 3f0d9564f7
التزام e8e6ae07a1

عرض الملف

@@ -43,6 +43,7 @@ let isEnumerateDevices = false;
let isAudioAllowed = false;
let isVideoAllowed = false;
let isAudioVideoAllowed = false;
let joinRoomWithoutAudioVideo = true;
let isScreenAllowed = false;
let initAudioButton = null;
let initVideoButton = null;
@@ -175,15 +176,13 @@ async function initEnumerateDevices() {
isVideoAllowed = false;
});
// The user without audio or webcam can't join
// if (!isAudioAllowed && !isVideoAllowed) {
// openURL(`/permission?room_id=${room_id}&message=Not allowed both Audio and Video`);
// return false;
// }
hide(loadingDiv);
getPeerGeoLocation();
whoAreYou();
if (!isAudioAllowed && !isVideoAllowed && !joinRoomWithoutAudioVideo) {
openURL(`/permission?room_id=${room_id}&message=Not allowed both Audio and Video`);
} else {
hide(loadingDiv);
getPeerGeoLocation();
whoAreYou();
}
}
function enumerateAudioDevices(stream) {