From 8d26a75178c3e7fdc1db36925e67b595cadd6236 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20M=C3=BCller?= <daniel.q.mueller@stud.h-da.de> Date: Mon, 28 Jun 2021 15:04:16 +0000 Subject: [PATCH] Improve automute --- bbb-echotest-autojoin.user.js | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/bbb-echotest-autojoin.user.js b/bbb-echotest-autojoin.user.js index ffd0429..1122e44 100644 --- a/bbb-echotest-autojoin.user.js +++ b/bbb-echotest-autojoin.user.js @@ -52,15 +52,23 @@ function isMuted() { // Force mute for 2.5 seconds after joining while (new Date() - tStart < 2500) { + // Ensure that the microphone is muted after joining - while (isMuted() != true) { + while (isMuted() == false) { getMuteButton()?.click(); - await sleep(100); + await sleep(500); } await sleep(100); } + // Ensure that the microphone is muted after joining + while (isMuted() == false) { + getMuteButton()?.click(); + await sleep(500); + } + + // Increase the waitTime after the initial connection waitTime = 500; await sleep(waitTime); -- GitLab