[mirotalksfu] - improvements

هذا الالتزام موجود في:
Miroslav Pejic
2024-05-03 17:06:09 +02:00
الأصل 5d5afe812e
التزام afe88a3a5e
2 ملفات معدلة مع 52 إضافات و29 حذوفات

عرض الملف

@@ -248,6 +248,10 @@ let transcription;
// INIT ROOM
// ####################################################
document.addEventListener('DOMContentLoaded', function () {
initClient();
});
function initClient() {
setTheme();
@@ -344,6 +348,7 @@ function initClient() {
}
setupWhiteboard();
initEnumerateDevices();
setupInitButtons();
}
// ####################################################
@@ -601,6 +606,31 @@ async function addChild(device, els) {
});
}
// ####################################################
// INIT AUDIO/VIDEO/SCREEN BUTTONS
// ####################################################
function setupInitButtons() {
initVideoAudioRefreshButton.onclick = () => {
refreshMyAudioVideoDevices();
};
initVideoButton.onclick = () => {
handleVideo();
};
initAudioButton.onclick = () => {
handleAudio();
};
initAudioVideoButton.onclick = async () => {
await handleAudioVideo(e);
};
initStartScreenButton.onclick = async () => {
await toggleScreenSharing();
};
initStopScreenButton.onclick = async () => {
await toggleScreenSharing();
};
}
// ####################################################
// MICROPHONE VOLUME INDICATOR
// ####################################################
@@ -1349,6 +1379,19 @@ function stopRecordingTimer() {
// ####################################################
function handleButtons() {
// Lobby...
document.getElementById('lobbyUsers').addEventListener('click', function (event) {
switch (event.target.id) {
case 'lobbyAcceptAllBtn':
rc.lobbyAcceptAll();
break;
case 'lobbyRejectAllBtn':
rc.lobbyRejectAll();
break;
default:
break;
}
});
control.onmouseover = () => {
isButtonsBarOver = true;
};