[mirotalksfu] - add toggle video privacy

هذا الالتزام موجود في:
Miroslav Pejic
2022-11-19 22:50:56 +01:00
الأصل 147638bf4c
التزام ec2c85aa63
7 ملفات معدلة مع 154 إضافات و6 حذوفات

عرض الملف

@@ -81,6 +81,7 @@ let isEnumerateAudioDevices = false;
let isEnumerateVideoDevices = false;
let isAudioAllowed = false;
let isVideoAllowed = false;
let isVideoPrivacyActive = false;
let isScreenAllowed = getScreen();
let isAudioVideoAllowed = false;
let isParticipantsListOpen = false;
@@ -385,6 +386,7 @@ function getPeerInfo() {
peer_audio: isAudioAllowed,
peer_video: isVideoAllowed,
peer_screen: isScreenAllowed,
peer_video_privacy: isVideoPrivacyActive,
peer_hand: false,
};
}
@@ -1198,6 +1200,7 @@ function handleRoomClientEvents() {
hide(stopVideoButton);
show(startVideoButton);
setVideoButtonsDisabled(false);
isVideoPrivacyActive = false;
});
rc.on(RoomClient.EVENTS.startScreen, () => {
console.log('Room Client start screen');