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