Skip to content
Snippets Groups Projects
Commit e584faa1 authored by Daniel Müller's avatar Daniel Müller :speech_balloon:
Browse files

Improve mute after join

parent 1e5a6a7e
No related branches found
No related tags found
No related merge requests found
// ==UserScript== // ==UserScript==
// @name BBB Echotest Autojoin // @name BBB Echotest Autojoin
// @version 0.2 // @version 0.2.1
// @website https://code.fbi.h-da.de/istddmue2/bbb-echotest-autojoin-userscript // @website https://code.fbi.h-da.de/istddmue2/bbb-echotest-autojoin-userscript
// @downloadURL https://code.fbi.h-da.de/istddmue2/bbb-echotest-autojoin-userscript/-/raw/master/bbb-echotest-autojoin.user.js // @downloadURL https://code.fbi.h-da.de/istddmue2/bbb-echotest-autojoin-userscript/-/raw/master/bbb-echotest-autojoin.user.js
// @updateURL https://code.fbi.h-da.de/istddmue2/bbb-echotest-autojoin-userscript/-/raw/master/bbb-echotest-autojoin.user.js // @updateURL https://code.fbi.h-da.de/istddmue2/bbb-echotest-autojoin-userscript/-/raw/master/bbb-echotest-autojoin.user.js
...@@ -48,12 +48,16 @@ function isMuted() { ...@@ -48,12 +48,16 @@ function isMuted() {
getEchotestAcceptButton().click(); getEchotestAcceptButton().click();
// Directly after connecting it might be muted for a short time before unmuting let tStart = new Date();
await sleep(500);
// Force mute for 2.5 seconds after joining
while (new Date() - tStart < 2500) {
// Ensure that the microphone is muted after joining
while (isMuted() != true) {
getMuteButton()?.click();
await sleep(100);
}
// Ensure that the microphone is muted after joining
while (isMuted() != true) {
getMuteButton().click();
await sleep(100); await sleep(100);
} }
...@@ -63,4 +67,4 @@ function isMuted() { ...@@ -63,4 +67,4 @@ function isMuted() {
} }
})(); })();
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment