[mirotalksfu] - remove unused, fix typo
هذا الالتزام موجود في:
@@ -77,7 +77,6 @@ let isEnumerateVideoDevices = false;
|
||||
let isAudioAllowed = false;
|
||||
let isVideoAllowed = false;
|
||||
let isScreenAllowed = getScreen();
|
||||
let isScreenShared = false;
|
||||
let isAudioVideoAllowed = false;
|
||||
let isParticipantsListOpen = false;
|
||||
let isVideoControlsOn = false;
|
||||
@@ -140,7 +139,6 @@ function initClient() {
|
||||
setTippy('whiteboardSaveBtn', 'Save', 'top');
|
||||
setTippy('whiteboardEraserBtn', 'Eraser', 'top');
|
||||
setTippy('whiteboardCleanBtn', 'Clean', 'top');
|
||||
setTippy('participantsRefreshBtn', 'Refresh', 'top');
|
||||
setTippy('chatMessage', 'Press enter to send', 'top-start');
|
||||
setTippy('chatSendButton', 'Send', 'top');
|
||||
setTippy('chatSpeechStartButton', 'Start speech recognition', 'top');
|
||||
@@ -916,9 +914,6 @@ function handleButtons() {
|
||||
rc.toggleMySettings();
|
||||
getRoomParticipants();
|
||||
};
|
||||
participantsRefreshBtn.onclick = () => {
|
||||
getRoomParticipants(true);
|
||||
};
|
||||
participantsCloseBtn.onclick = () => {
|
||||
toggleParticipants();
|
||||
};
|
||||
@@ -1112,7 +1107,6 @@ function handleRoomClientEvents() {
|
||||
console.log('Room Client start screen');
|
||||
hide(startScreenButton);
|
||||
show(stopScreenButton);
|
||||
isScreenShared = true;
|
||||
});
|
||||
rc.on(RoomClient.EVENTS.pauseScreen, () => {
|
||||
console.log('Room Client pause screen');
|
||||
@@ -1124,7 +1118,6 @@ function handleRoomClientEvents() {
|
||||
console.log('Room Client stop screen');
|
||||
hide(stopScreenButton);
|
||||
show(startScreenButton);
|
||||
isScreenShared = false;
|
||||
});
|
||||
rc.on(RoomClient.EVENTS.roomLock, () => {
|
||||
console.log('Room Client lock room');
|
||||
@@ -1615,7 +1608,7 @@ async function getRoomParticipants(refresh = false) {
|
||||
|
||||
participantsCount = peers.size;
|
||||
roomParticipants.innerHTML = table;
|
||||
refreshParticipantsCount(participantsCount);
|
||||
refreshParticipantsCount(participantsCount, false);
|
||||
|
||||
if (!refresh) {
|
||||
toggleParticipants();
|
||||
@@ -1755,9 +1748,9 @@ function setParticipantsTippy(peers) {
|
||||
}
|
||||
}
|
||||
|
||||
function refreshParticipantsCount(count) {
|
||||
function refreshParticipantsCount(count, adapt = true) {
|
||||
participantsTitle.innerHTML = `<i class="fas fa-users"></i> Participants ( ${count} )`;
|
||||
if (!isScreenShared) adaptAspectRatio(count);
|
||||
if (adapt) adaptAspectRatio(count);
|
||||
}
|
||||
|
||||
function getParticipantAvatar(peerName) {
|
||||
|
||||
@@ -30,7 +30,6 @@ const commands = {
|
||||
settingsOn: 'open the settings',
|
||||
settingsOff: 'close the settings',
|
||||
participantsOn: 'show the participants',
|
||||
participantsRefresh: 'refresh the participants',
|
||||
participantsOff: 'hide the participants',
|
||||
participantsVideoOff: 'stop the participants video',
|
||||
participantsAudioOff: 'stop the participants audio',
|
||||
@@ -210,10 +209,6 @@ function execVoiceCommands(transcript) {
|
||||
printCommand(commands.participantsOn);
|
||||
participantsButton.click();
|
||||
break;
|
||||
case commands.participantsRefresh:
|
||||
printCommand(commands.participantsRefresh);
|
||||
participantsRefreshBtn.click();
|
||||
break;
|
||||
case commands.participantsOff:
|
||||
printCommand(commands.participantsOff);
|
||||
participantsCloseBtn.click();
|
||||
|
||||
@@ -306,7 +306,6 @@
|
||||
<header id="participantsHeader" class="participants-header">
|
||||
<div id="participantsTitle" class="participants-header-title"></div>
|
||||
<div class="participants-header-options">
|
||||
<button id="participantsRefreshBtn" class="fas fa-sync-alt"></button>
|
||||
<button id="participantsCloseBtn" class="fas fa-times"></button>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
المرجع في مشكلة جديدة
حظر مستخدم