diff --git a/public/js/Room.js b/public/js/Room.js
index 202f1277..3d4eb3e1 100644
--- a/public/js/Room.js
+++ b/public/js/Room.js
@@ -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 = ` Participants ( ${count} )`;
- if (!isScreenShared) adaptAspectRatio(count);
+ if (adapt) adaptAspectRatio(count);
}
function getParticipantAvatar(peerName) {
diff --git a/public/js/SpeechRec.js b/public/js/SpeechRec.js
index a08be072..63d1736b 100644
--- a/public/js/SpeechRec.js
+++ b/public/js/SpeechRec.js
@@ -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();
diff --git a/public/views/Room.html b/public/views/Room.html
index 880999a9..2a52969f 100644
--- a/public/views/Room.html
+++ b/public/views/Room.html
@@ -306,7 +306,6 @@