From 3f0d9564f752f3d4d54586a94e1bfd2be9a13003 Mon Sep 17 00:00:00 2001 From: Miroslav Pejic Date: Fri, 13 May 2022 08:32:36 +0200 Subject: [PATCH] [mirotalksfu] - join room without cam and audio --- public/js/Room.js | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/public/js/Room.js b/public/js/Room.js index 2c0009b9..c33b47db 100644 --- a/public/js/Room.js +++ b/public/js/Room.js @@ -175,13 +175,15 @@ async function initEnumerateDevices() { isVideoAllowed = false; }); - if (!isAudioAllowed && !isVideoAllowed) { - openURL(`/permission?room_id=${room_id}&message=Not allowed both Audio and Video`); - } else { - hide(loadingDiv); - getPeerGeoLocation(); - whoAreYou(); - } + // 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(); } function enumerateAudioDevices(stream) {