[mirotalksfu] - fix

هذا الالتزام موجود في:
Miroslav Pejic
2023-11-14 21:30:20 +01:00
الأصل 8e9d2f7f98
التزام b3a6c254c9
2 ملفات معدلة مع 35 إضافات و31 حذوفات

عرض الملف

@@ -1,6 +1,8 @@
.container {
padding: 2px !important;
transition: width 0.5s !important;
transition:
width 0.5s,
background 2s ease !important;
/* overflow-y: auto;
overflow-x: hidden; */
}

عرض الملف

@@ -5012,41 +5012,43 @@ class RoomClient {
if (!this.thereAreParticipants()) {
if (info) return this.userLog('info', 'No participants detected', 'top-end');
}
switch (action) {
case 'mute':
const peerAudioStatus = this.getId(data.peer_id + '__audio');
if (!peerAudioStatus || peerAudioStatus.className == html.audioOff) {
return this.userLog(
'info',
'The participant has been muted, and only they have the ability to unmute themselves',
'top-end',
);
}
break;
case 'hide':
const peerVideoOff = this.getId(data.peer_id + '__videoOff');
if (peerVideoOff) {
return this.userLog(
'info',
'The participant is currently hidden, and only they have the option to unhide themselves',
'top-end',
);
}
case 'stop':
const peerScreenButton = this.getId(id);
if (peerScreenButton) {
const peerScreenStatus = peerScreenButton.querySelector('i');
if (peerScreenStatus && peerScreenStatus.style.color == 'red') {
if (!broadcast) {
switch (action) {
case 'mute':
const peerAudioStatus = this.getId(data.peer_id + '__audio');
if (!peerAudioStatus || peerAudioStatus.className == html.audioOff) {
return this.userLog(
'info',
'The participant screen is not shared, only the participant can initiate sharing',
'The participant has been muted, and only they have the ability to unmute themselves',
'top-end',
);
}
}
break;
default:
break;
break;
case 'hide':
const peerVideoOff = this.getId(data.peer_id + '__videoOff');
if (peerVideoOff) {
return this.userLog(
'info',
'The participant is currently hidden, and only they have the option to unhide themselves',
'top-end',
);
}
case 'stop':
const peerScreenButton = this.getId(id);
if (peerScreenButton) {
const peerScreenStatus = peerScreenButton.querySelector('i');
if (peerScreenStatus && peerScreenStatus.style.color == 'red') {
return this.userLog(
'info',
'The participant screen is not shared, only the participant can initiate sharing',
'top-end',
);
}
}
break;
default:
break;
}
}
this.confirmPeerAction(action, data);
} else {