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