[mirotalksfu] - #194 Improvements

هذا الالتزام موجود في:
Miroslav Pejic
2025-02-19 12:21:19 +01:00
الأصل f9b89fe212
التزام 2cd92e6ac1
6 ملفات معدلة مع 103 إضافات و90 حذوفات

عرض الملف

@@ -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.7.50
* @version 1.7.51
*
*/
@@ -5219,15 +5219,15 @@ async function loadVirtualBackgroundSettings() {
if (!MediaStreamTrackProcessorSupported) return;
const savedSettings = localStorage.getItem('virtualBackgroundSettings');
if (savedSettings) {
const { blurLevel, imageUrl } = JSON.parse(savedSettings);
if (blurLevel) {
console.log('-------> Apply Blur');
await applyVirtualBackground(initVideo, initStream, blurLevel);
} else if (imageUrl) {
console.log('-------> Apply Virtual background');
await applyVirtualBackground(initVideo, initStream, null, imageUrl);
}
if (!savedSettings) return;
const { blurLevel, imageUrl } = JSON.parse(savedSettings);
if (blurLevel) {
await applyVirtualBackground(initVideo, initStream, blurLevel);
} else if (imageUrl) {
await applyVirtualBackground(initVideo, initStream, null, imageUrl);
}
}
@@ -5269,7 +5269,7 @@ function showAbout() {
position: 'center',
imageUrl: BRAND.about?.imageUrl && BRAND.about.imageUrl.trim() !== '' ? BRAND.about.imageUrl : image.about,
customClass: { image: 'img-about' },
title: BRAND.about?.title && BRAND.about.title.trim() !== '' ? BRAND.about.title : 'WebRTC SFU v1.7.50',
title: BRAND.about?.title && BRAND.about.title.trim() !== '' ? BRAND.about.title : 'WebRTC SFU v1.7.51',
html: `
<br />
<div id="about">