diff --git a/public/js/Room.js b/public/js/Room.js index 6dbe8033..420948b5 100644 --- a/public/js/Room.js +++ b/public/js/Room.js @@ -1788,7 +1788,7 @@ function handleRoomEmojiPicker() { function sendEmojiToRoom(data) { console.log('Selected Emoji:', data.native); const cmd = `roomEmoji|${peer_name}|${data.native}`; - if (rc.thereAreParticipants()) { + if (rc.thereAreParticipants()) { rc.emitCmd(cmd); } rc.handleCmd(cmd); diff --git a/public/js/RoomClient.js b/public/js/RoomClient.js index 6f9f152d..d1e2238b 100644 --- a/public/js/RoomClient.js +++ b/public/js/RoomClient.js @@ -1049,7 +1049,7 @@ class RoomClient { max: 30, }; const selectedValue = this.getSelectedIndexValue(videoFps); - const customFrameRate = { max: parseInt(selectedValue) }; + const customFrameRate = parseInt(selectedValue, 10); const frameRate = selectedValue == 'max' ? defaultFrameRate : customFrameRate; let videoConstraints = { audio: false, @@ -1165,13 +1165,13 @@ class RoomClient { getScreenConstraints() { const selectedValue = this.getSelectedIndexValue(screenFps); - const frameRate = selectedValue == 'max' ? 30 : parseInt(selectedValue); + const frameRate = selectedValue == 'max' ? 30 : parseInt(selectedValue, 10); return { audio: true, video: { width: { max: 1920 }, height: { max: 1080 }, - frameRate: { max: frameRate }, + frameRate: frameRate, }, }; }