[mirotalksfu] - #194 Fix typo
هذا الالتزام موجود في:
@@ -58,7 +58,7 @@ dev dependencies: {
|
|||||||
* @license For commercial or closed source, contact us at license.mirotalk@gmail.com or purchase directly via CodeCanyon
|
* @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
|
* @license CodeCanyon: https://codecanyon.net/item/mirotalk-sfu-webrtc-realtime-video-conferences/40769970
|
||||||
* @author Miroslav Pejic - miroslav.pejic.85@gmail.com
|
* @author Miroslav Pejic - miroslav.pejic.85@gmail.com
|
||||||
* @version 1.7.59
|
* @version 1.7.60
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "mirotalksfu",
|
"name": "mirotalksfu",
|
||||||
"version": "1.7.59",
|
"version": "1.7.60",
|
||||||
"description": "WebRTC SFU browser-based video calls",
|
"description": "WebRTC SFU browser-based video calls",
|
||||||
"main": "Server.js",
|
"main": "Server.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
@@ -64,7 +64,7 @@ let BRAND = {
|
|||||||
},
|
},
|
||||||
about: {
|
about: {
|
||||||
imageUrl: '../images/mirotalk-logo.gif',
|
imageUrl: '../images/mirotalk-logo.gif',
|
||||||
title: '<strong>WebRTC SFU v1.7.59</strong>',
|
title: '<strong>WebRTC SFU v1.7.60</strong>',
|
||||||
html: `
|
html: `
|
||||||
<button
|
<button
|
||||||
id="support-button"
|
id="support-button"
|
||||||
|
|||||||
@@ -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 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
|
* @license CodeCanyon: https://codecanyon.net/item/mirotalk-sfu-webrtc-realtime-video-conferences/40769970
|
||||||
* @author Miroslav Pejic - miroslav.pejic.85@gmail.com
|
* @author Miroslav Pejic - miroslav.pejic.85@gmail.com
|
||||||
* @version 1.7.59
|
* @version 1.7.60
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@@ -93,7 +93,6 @@ const swalImageUrl = '../images/pricing-illustration.svg';
|
|||||||
|
|
||||||
// Media
|
// Media
|
||||||
const sinkId = 'sinkId' in HTMLMediaElement.prototype;
|
const sinkId = 'sinkId' in HTMLMediaElement.prototype;
|
||||||
const MediaStreamTrackProcessorSupported = 'MediaStreamTrackProcessor' in window;
|
|
||||||
|
|
||||||
// ####################################################
|
// ####################################################
|
||||||
// LOCAL STORAGE
|
// LOCAL STORAGE
|
||||||
@@ -194,6 +193,11 @@ const initSpeakerSelect = getId('initSpeakerSelect');
|
|||||||
// ####################################################
|
// ####################################################
|
||||||
|
|
||||||
const virtualBackgrounds = Object.values(image.virtualBackground);
|
const virtualBackgrounds = Object.values(image.virtualBackground);
|
||||||
|
|
||||||
|
const isMediaStreamTrackAndTransformerSupported = Boolean(
|
||||||
|
window.MediaStreamTrackProcessor && window.MediaStreamTrackGenerator && window.TransformStream,
|
||||||
|
);
|
||||||
|
|
||||||
const virtualBackground = new VirtualBackground();
|
const virtualBackground = new VirtualBackground();
|
||||||
|
|
||||||
// ####################################################
|
// ####################################################
|
||||||
@@ -1048,7 +1052,7 @@ async function whoAreYou() {
|
|||||||
|
|
||||||
// Virtual Background if supported (Chrome/Edge/Opera/Vivaldi/...)
|
// Virtual Background if supported (Chrome/Edge/Opera/Vivaldi/...)
|
||||||
if (
|
if (
|
||||||
MediaStreamTrackProcessorSupported &&
|
isMediaStreamTrackAndTransformerSupported &&
|
||||||
(BUTTONS.settings.virtualBackground !== undefined ? BUTTONS.settings.virtualBackground : true)
|
(BUTTONS.settings.virtualBackground !== undefined ? BUTTONS.settings.virtualBackground : true)
|
||||||
) {
|
) {
|
||||||
show(initVirtualBackgroundButton);
|
show(initVirtualBackgroundButton);
|
||||||
@@ -1233,7 +1237,7 @@ async function handleAudioVideo() {
|
|||||||
elemDisplay('imageGrid', false);
|
elemDisplay('imageGrid', false);
|
||||||
|
|
||||||
isVideoAllowed &&
|
isVideoAllowed &&
|
||||||
MediaStreamTrackProcessorSupported &&
|
isMediaStreamTrackAndTransformerSupported &&
|
||||||
(BUTTONS.settings.virtualBackground !== undefined ? BUTTONS.settings.virtualBackground : true)
|
(BUTTONS.settings.virtualBackground !== undefined ? BUTTONS.settings.virtualBackground : true)
|
||||||
? show(initVirtualBackgroundButton)
|
? show(initVirtualBackgroundButton)
|
||||||
: hide(initVirtualBackgroundButton);
|
: hide(initVirtualBackgroundButton);
|
||||||
@@ -1564,7 +1568,7 @@ function roomIsReady() {
|
|||||||
if (!isMobileDevice) show(pinUnpinGridDiv);
|
if (!isMobileDevice) show(pinUnpinGridDiv);
|
||||||
if (!isSpeechSynthesisSupported) hide(speechMsgDiv);
|
if (!isSpeechSynthesisSupported) hide(speechMsgDiv);
|
||||||
if (
|
if (
|
||||||
MediaStreamTrackProcessorSupported &&
|
isMediaStreamTrackAndTransformerSupported &&
|
||||||
(BUTTONS.settings.virtualBackground !== undefined ? BUTTONS.settings.virtualBackground : true)
|
(BUTTONS.settings.virtualBackground !== undefined ? BUTTONS.settings.virtualBackground : true)
|
||||||
) {
|
) {
|
||||||
rc.showVideoImageSelector();
|
rc.showVideoImageSelector();
|
||||||
@@ -5217,7 +5221,7 @@ function saveVirtualBackgroundSettings(blurLevel, imageUrl) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async function loadVirtualBackgroundSettings() {
|
async function loadVirtualBackgroundSettings() {
|
||||||
if (!MediaStreamTrackProcessorSupported) return;
|
if (!isMediaStreamTrackAndTransformerSupported) return;
|
||||||
|
|
||||||
const savedSettings = localStorage.getItem('virtualBackgroundSettings');
|
const savedSettings = localStorage.getItem('virtualBackgroundSettings');
|
||||||
|
|
||||||
@@ -5270,7 +5274,7 @@ function showAbout() {
|
|||||||
position: 'center',
|
position: 'center',
|
||||||
imageUrl: BRAND.about?.imageUrl && BRAND.about.imageUrl.trim() !== '' ? BRAND.about.imageUrl : image.about,
|
imageUrl: BRAND.about?.imageUrl && BRAND.about.imageUrl.trim() !== '' ? BRAND.about.imageUrl : image.about,
|
||||||
customClass: { image: 'img-about' },
|
customClass: { image: 'img-about' },
|
||||||
title: BRAND.about?.title && BRAND.about.title.trim() !== '' ? BRAND.about.title : 'WebRTC SFU v1.7.59',
|
title: BRAND.about?.title && BRAND.about.title.trim() !== '' ? BRAND.about.title : 'WebRTC SFU v1.7.60',
|
||||||
html: `
|
html: `
|
||||||
<br />
|
<br />
|
||||||
<div id="about">
|
<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 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
|
* @license CodeCanyon: https://codecanyon.net/item/mirotalk-sfu-webrtc-realtime-video-conferences/40769970
|
||||||
* @author Miroslav Pejic - miroslav.pejic.85@gmail.com
|
* @author Miroslav Pejic - miroslav.pejic.85@gmail.com
|
||||||
* @version 1.7.59
|
* @version 1.7.60
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@@ -1488,7 +1488,7 @@ class RoomClient {
|
|||||||
: await navigator.mediaDevices.getUserMedia(mediaConstraints);
|
: await navigator.mediaDevices.getUserMedia(mediaConstraints);
|
||||||
|
|
||||||
// Handle Virtual Background and Blur using MediaPipe
|
// Handle Virtual Background and Blur using MediaPipe
|
||||||
if (video && MediaStreamTrackProcessorSupported) {
|
if (video && isMediaStreamTrackAndTransformerSupported) {
|
||||||
const videoTrack = stream.getVideoTracks()[0];
|
const videoTrack = stream.getVideoTracks()[0];
|
||||||
|
|
||||||
if (virtualBackgroundBlurLevel) {
|
if (virtualBackgroundBlurLevel) {
|
||||||
|
|||||||
المرجع في مشكلة جديدة
حظر مستخدم