[mirotalksfu] - fix fps
هذا الالتزام موجود في:
@@ -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,
|
||||
},
|
||||
};
|
||||
}
|
||||
|
||||
المرجع في مشكلة جديدة
حظر مستخدم