[mirotalksfu] - add toggle video mirror

هذا الالتزام موجود في:
Miroslav Pejic
2024-08-02 19:21:30 +02:00
الأصل 1ea868cc4e
التزام 151fd309de
6 ملفات معدلة مع 35 إضافات و7 حذوفات

عرض الملف

@@ -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.34
* @version 1.5.35
*
*/
@@ -2277,6 +2277,11 @@ function handleSelects() {
lS.setSettings(localStorageSettings);
e.target.blur();
};
switchVideoMirror.onchange = (e) => {
rc.toggleVideoMirror();
rc.roomMessage('toggleVideoMirror', e.currentTarget.checked);
e.target.blur();
};
switchSounds.onchange = (e) => {
isSoundEnabled = e.currentTarget.checked;
rc.roomMessage('sounds', isSoundEnabled);
@@ -2783,6 +2788,7 @@ function handleRoomClientEvents() {
show(stopVideoButton);
setColor(startVideoButton, 'red');
setVideoButtonsDisabled(false);
switchVideoMirror.disabled = false;
// if (isParticipantsListOpen) getRoomParticipants();
});
rc.on(RoomClient.EVENTS.pauseVideo, () => {
@@ -2805,6 +2811,7 @@ function handleRoomClientEvents() {
show(startVideoButton);
setVideoButtonsDisabled(false);
isVideoPrivacyActive = false;
switchVideoMirror.disabled = true;
// if (isParticipantsListOpen) getRoomParticipants();
});
rc.on(RoomClient.EVENTS.startScreen, () => {
@@ -4325,7 +4332,7 @@ function showAbout() {
imageUrl: image.about,
customClass: { image: 'img-about' },
position: 'center',
title: 'WebRTC SFU v1.5.34',
title: 'WebRTC SFU v1.5.35',
html: `
<br />
<div id="about">