From 2697cbf657cf2f5fcff4af4c1a578881f6b49950 Mon Sep 17 00:00:00 2001 From: Miroslav Pejic Date: Mon, 30 Sep 2024 21:14:20 +0200 Subject: [PATCH] [mirotalksfu] - ops --- public/js/Room.js | 2 +- public/js/RoomClient.js | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/public/js/Room.js b/public/js/Room.js index 1db241be..0e295036 100644 --- a/public/js/Room.js +++ b/public/js/Room.js @@ -213,7 +213,7 @@ let isEnumerateVideoDevices = false; let isAudioAllowed = false; let isVideoAllowed = false; let isVideoPrivacyActive = false; -let isInitVideoMirror = false; +let isInitVideoMirror = true; let isRecording = false; let isAudioVideoAllowed = false; let isParticipantsListOpen = false; diff --git a/public/js/RoomClient.js b/public/js/RoomClient.js index 87498af3..9fdecfbd 100644 --- a/public/js/RoomClient.js +++ b/public/js/RoomClient.js @@ -1407,6 +1407,10 @@ class RoomClient { if (type == mediaType.video) this.videoProducerId = producer.id; if (type == mediaType.screen) this.screenProducerId = producer.id; elem = await this.handleProducer(producer.id, type, stream); + // No mirror effect for producer + if (!isInitVideoMirror && elem.classList.contains('mirror')) { + elem.classList.remove('mirror'); + } //if (!screen && !isEnumerateDevices) enumerateVideoDevices(stream); } else { this.localAudioStream = stream;