[mirotalksfu] - #134 add toggleRoomBroadcasting
هذا الالتزام موجود في:
ثنائية
public/images/broadcasting.png
Normal file
ثنائية
public/images/broadcasting.png
Normal file
ملف ثنائي غير معروض.
|
بعد العرض: | الارتفاع: | الحجم: 2.9 KiB |
@@ -87,6 +87,7 @@ const image = {
|
||||
chatgpt: '../images/chatgpt.png',
|
||||
all: '../images/all.png',
|
||||
forbidden: '../images/forbidden.png',
|
||||
broadcasting: '../images/broadcasting.png',
|
||||
};
|
||||
|
||||
const mediaType = {
|
||||
@@ -933,6 +934,25 @@ class RoomClient {
|
||||
handleRulesBroadcasting();
|
||||
}
|
||||
|
||||
toggleRoomBroadcasting() {
|
||||
Swal.fire({
|
||||
background: swalBackground,
|
||||
position: 'center',
|
||||
imageUrl: image.broadcasting,
|
||||
title: 'Room broadcasting enabled',
|
||||
text: 'Do you want to disable room broadcasting?',
|
||||
showDenyButton: true,
|
||||
confirmButtonText: `Yes`,
|
||||
denyButtonText: `No`,
|
||||
showClass: { popup: 'animate__animated animate__fadeInDown' },
|
||||
hideClass: { popup: 'animate__animated animate__fadeOutUp' },
|
||||
}).then((result) => {
|
||||
if (result.isConfirmed) {
|
||||
switchBroadcasting.click();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
// ####################################################
|
||||
// START LOCAL AUDIO VIDEO MEDIA
|
||||
// ####################################################
|
||||
|
||||
@@ -128,6 +128,7 @@ function handleRules(isPresenter) {
|
||||
isBroadcastingEnabled = lsSettings.broadcasting;
|
||||
switchBroadcasting.checked = isBroadcastingEnabled;
|
||||
rc.roomAction('broadcasting', true, false);
|
||||
if (isBroadcastingEnabled) rc.toggleRoomBroadcasting();
|
||||
// Room lobby
|
||||
isLobbyEnabled = lsSettings.lobby;
|
||||
switchLobby.checked = isLobbyEnabled;
|
||||
|
||||
المرجع في مشكلة جديدة
حظر مستخدم