[mirotalksfu] - fix init screen fps, update dep

هذا الالتزام موجود في:
Miroslav Pejic
2024-08-11 13:51:08 +02:00
الأصل e664149e78
التزام 8ef849a80e
4 ملفات معدلة مع 14 إضافات و22 حذوفات

عرض الملف

@@ -43,7 +43,7 @@ dependencies: {
* @license For commercial or closed source, contact us at license.mirotalk@gmail.com or purchase directly via CodeCanyon
* @license CodeCanyon: https://codecanyon.net/item/mirotalk-sfu-webrtc-realtime-video-conferences/40769970
* @author Miroslav Pejic - miroslav.pejic.85@gmail.com
* @version 1.5.46
* @version 1.5.47
*
*/

عرض الملف

@@ -1,6 +1,6 @@
{
"name": "mirotalksfu",
"version": "1.5.46",
"version": "1.5.47",
"description": "WebRTC SFU browser-based video calls",
"main": "Server.js",
"scripts": {
@@ -74,7 +74,7 @@
"mediasoup-client": "3.7.14",
"ngrok": "^5.0.0-beta.2",
"nodemailer": "^6.9.14",
"openai": "^4.55.3",
"openai": "^4.55.4",
"qs": "6.13.0",
"socket.io": "4.7.5",
"swagger-ui-express": "5.0.1",

عرض الملف

@@ -11,7 +11,7 @@ if (location.href.substr(0, 5) !== 'https') location.href = 'https' + location.h
* @license For commercial or closed source, contact us at license.mirotalk@gmail.com or purchase directly via CodeCanyon
* @license CodeCanyon: https://codecanyon.net/item/mirotalk-sfu-webrtc-realtime-video-conferences/40769970
* @author Miroslav Pejic - miroslav.pejic.85@gmail.com
* @version 1.5.46
* @version 1.5.47
*
*/
@@ -2147,8 +2147,12 @@ async function toggleScreenSharing() {
}
joinRoomWithScreen = !joinRoomWithScreen;
if (joinRoomWithScreen) {
const defaultFrameRate = { ideal: 30 };
const selectedValue = getId('videoFps').options[localStorageSettings.screen_fps].value;
const customFrameRate = parseInt(selectedValue, 10);
const frameRate = selectedValue == 'max' ? defaultFrameRate : customFrameRate;
await navigator.mediaDevices
.getDisplayMedia({ audio: true, video: true })
.getDisplayMedia({ audio: true, video: { frameRate: frameRate } })
.then((screenStream) => {
if (initVideo.classList.contains('mirror')) {
initVideo.classList.toggle('mirror');
@@ -4340,7 +4344,7 @@ function showAbout() {
imageUrl: image.about,
customClass: { image: 'img-about' },
position: 'center',
title: 'WebRTC SFU v1.5.46',
title: 'WebRTC SFU v1.5.47',
html: `
<br />
<div id="about">

عرض الملف

@@ -9,7 +9,7 @@
* @license For commercial or closed source, contact us at license.mirotalk@gmail.com or purchase directly via CodeCanyon
* @license CodeCanyon: https://codecanyon.net/item/mirotalk-sfu-webrtc-realtime-video-conferences/40769970
* @author Miroslav Pejic - miroslav.pejic.85@gmail.com
* @version 1.5.46
* @version 1.5.47
*
*/
@@ -1522,27 +1522,15 @@ class RoomClient {
}
getVideoConstraints(deviceId) {
const defaultFrameRate = {
min: 5,
ideal: 15,
max: 30,
};
const defaultFrameRate = { ideal: 30 };
const selectedValue = this.getSelectedIndexValue(videoFps);
const customFrameRate = parseInt(selectedValue, 10);
const frameRate = selectedValue == 'max' ? defaultFrameRate : customFrameRate;
let videoConstraints = {
audio: false,
video: {
width: {
min: 640,
ideal: 1920,
max: 3840,
},
height: {
min: 480,
ideal: 1080,
max: 2160,
},
width: { ideal: 3840 },
height: { ideal: 2160 },
deviceId: deviceId,
aspectRatio: 1.777, // 16:9
frameRate: frameRate,