[mirotalksfu] - fix recordingImage

هذا الالتزام موجود في:
Miroslav Pejic
2023-12-03 21:05:47 +01:00
الأصل 4c8d580f0d
التزام 605d7da694
3 ملفات معدلة مع 11 إضافات و6 حذوفات

عرض الملف

@@ -347,7 +347,7 @@ body {
color: white; color: white;
} }
#recImage { #recordingImage {
width: 128px; width: 128px;
height: auto; height: auto;
margin-bottom: 10px; margin-bottom: 10px;
@@ -355,7 +355,7 @@ body {
cursor: pointer; cursor: pointer;
} }
#recImage:hover { #recordingImage:hover {
transform: scale(0.95); transform: scale(0.95);
transition: all 0.3s ease-in-out; transition: all 0.3s ease-in-out;
} }

عرض الملف

@@ -182,7 +182,7 @@ function initClient() {
setTippy('switchShare', "Show 'Share Room' popup on join", 'right'); setTippy('switchShare', "Show 'Share Room' popup on join", 'right');
setTippy('roomId', 'Room name (click to copy)', 'right'); setTippy('roomId', 'Room name (click to copy)', 'right');
setTippy('sessionTime', 'Session time', 'right'); setTippy('sessionTime', 'Session time', 'right');
setTippy('recImage', 'Toggle recording', 'right'); setTippy('recordingImage', 'Toggle recording', 'right');
setTippy('roomRecording', 'Only the host (presenter) has the capability to record the meeting', 'bottom'); setTippy('roomRecording', 'Only the host (presenter) has the capability to record the meeting', 'bottom');
setTippy('whiteboardGhostButton', 'Toggle transparent background', 'bottom'); setTippy('whiteboardGhostButton', 'Toggle transparent background', 'bottom');
setTippy('wbBackgroundColorEl', 'Background color', 'bottom'); setTippy('wbBackgroundColorEl', 'Background color', 'bottom');
@@ -1069,7 +1069,10 @@ function roomIsReady() {
BUTTONS.settings.lockRoomButton && show(lockRoomButton); BUTTONS.settings.lockRoomButton && show(lockRoomButton);
BUTTONS.settings.broadcastingButton && show(broadcastingButton); BUTTONS.settings.broadcastingButton && show(broadcastingButton);
BUTTONS.settings.lobbyButton && show(lobbyButton); BUTTONS.settings.lobbyButton && show(lobbyButton);
BUTTONS.settings.host_only_recording && show(roomRecording); if (BUTTONS.settings.host_only_recording) {
show(roomRecording);
show(recordingImage);
}
BUTTONS.main.aboutButton && show(aboutButton); BUTTONS.main.aboutButton && show(aboutButton);
if (!DetectRTC.isMobileDevice) show(pinUnpinGridDiv); if (!DetectRTC.isMobileDevice) show(pinUnpinGridDiv);
if (!isSpeechSynthesisSupported) hide(speechMsgDiv); if (!isSpeechSynthesisSupported) hide(speechMsgDiv);
@@ -1324,7 +1327,7 @@ function handleButtons() {
fullScreenButton.onclick = () => { fullScreenButton.onclick = () => {
rc.toggleFullScreen(); rc.toggleFullScreen();
}; };
recImage.onclick = () => { recordingImage.onclick = () => {
isRecording ? stopRecButton.click() : startRecButton.click(); isRecording ? stopRecButton.click() : startRecButton.click();
}; };
startRecButton.onclick = () => { startRecButton.onclick = () => {
@@ -2259,6 +2262,7 @@ function handleRoomClientEvents() {
} }
hide(startRecButton); hide(startRecButton);
hide(roomRecording); hide(roomRecording);
hide(recordingImage);
show(recordingMessage); show(recordingMessage);
hostOnlyRecording = true; hostOnlyRecording = true;
} }
@@ -2267,6 +2271,7 @@ function handleRoomClientEvents() {
if (isRulesActive && !isPresenter) { if (isRulesActive && !isPresenter) {
console.log('Room event: host only recording disabled'); console.log('Room event: host only recording disabled');
show(startRecButton); show(startRecButton);
show(recordingImage);
hide(roomRecording); hide(roomRecording);
hide(recordingMessage); hide(recordingMessage);
hostOnlyRecording = false; hostOnlyRecording = false;

عرض الملف

@@ -738,7 +738,7 @@ access to use this app.
</div> </div>
<div id="tabRecording" class="tabcontent"> <div id="tabRecording" class="tabcontent">
<img id="recImage" src="../images/recording.png" /> <img id="recordingImage" class="hidden" src="../images/recording.png" />
<div id="roomRecording" class="hidden"> <div id="roomRecording" class="hidden">
<table class="settingsTable"> <table class="settingsTable">
<tr> <tr>