[mirotalksfu] - confirm mute, hide, eject participants

هذا الالتزام موجود في:
Miroslav Pejic
2021-11-05 20:16:22 +01:00
الأصل abc47af896
التزام b9f055cc25
5 ملفات معدلة مع 77 إضافات و33 حذوفات

عرض الملف

@@ -5,6 +5,7 @@ if (location.href.substr(0, 5) !== 'https') location.href = 'https' + location.h
const RoomURL = window.location.href;
const swalBackground = 'linear-gradient(to left, #1f1e1e, #000000)';
const swalBg = 'rgba(0, 0, 0, 0.7)';
const swalImageUrl = '../images/pricing-illustration.svg';
const url = {
@@ -268,6 +269,11 @@ function whoAreYou() {
joinRoom(peer_name, room_id);
});
if (!DetectRTC.isMobileDevice) {
setTippy('initAudioButton', 'Enable / Disable audio', 'left');
setTippy('initVideoButton', 'Enable / Disable video', 'right');
}
initAudioButton = document.getElementById('initAudioButton');
initVideoButton = document.getElementById('initVideoButton');
if (!isAudioAllowed) initAudioButton.className = 'hidden';
@@ -1313,7 +1319,6 @@ async function getRoomParticipants(refresh = false) {
participantsCount = peers.size;
roomParticipants.innerHTML = table;
refreshParticipantsCount(participantsCount);
setTableButtonsTippy();
if (!refresh) {
toggleParticipants();
@@ -1381,15 +1386,6 @@ async function getParticipantsTable(peers) {
return table;
}
function setTableButtonsTippy() {
if (!DetectRTC.isMobileDevice) {
setTippy('muteAllButton', 'Mute all participants', 'top');
setTippy('hideAllButton', 'Hide all participants', 'top');
setTippy('sendAllButton', 'Send file to all participants', 'top');
setTippy('ejectAllButton', 'Eject all participants', 'top');
}
}
function refreshParticipantsCount(count) {
participantsTitle.innerHTML = `<i class="fas fa-users"></i> Participants ( ${count} )`;
}