[mirotalksfu] - fix fps

هذا الالتزام موجود في:
Miroslav Pejic
2023-10-11 13:55:19 +02:00
الأصل 39ff9fbee6
التزام 2cfa62478e
2 ملفات معدلة مع 4 إضافات و4 حذوفات

عرض الملف

@@ -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);

عرض الملف

@@ -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,
},
};
}