[mirotalk] - #202 - wip

هذا الالتزام موجود في:
Miroslav Pejic
2023-12-18 21:28:52 +01:00
الأصل 18fb2f7609
التزام 213d882638
5 ملفات معدلة مع 12 إضافات و6 حذوفات

عرض الملف

@@ -40,7 +40,7 @@ dependencies: {
* @license For commercial or closed source, contact us at license.mirotalk@gmail.com or purchase directly via CodeCanyon * @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 * @license CodeCanyon: https://codecanyon.net/item/mirotalk-sfu-webrtc-realtime-video-conferences/40769970
* @author Miroslav Pejic - miroslav.pejic.85@gmail.com * @author Miroslav Pejic - miroslav.pejic.85@gmail.com
* @version 1.3.41 * @version 1.3.42
* *
*/ */

عرض الملف

@@ -1,6 +1,6 @@
{ {
"name": "mirotalksfu", "name": "mirotalksfu",
"version": "1.3.41", "version": "1.3.42",
"description": "WebRTC SFU browser-based video calls", "description": "WebRTC SFU browser-based video calls",
"main": "Server.js", "main": "Server.js",
"scripts": { "scripts": {

عرض الملف

@@ -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 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 * @license CodeCanyon: https://codecanyon.net/item/mirotalk-sfu-webrtc-realtime-video-conferences/40769970
* @author Miroslav Pejic - miroslav.pejic.85@gmail.com * @author Miroslav Pejic - miroslav.pejic.85@gmail.com
* @version 1.3.41 * @version 1.3.42
* *
*/ */

عرض الملف

@@ -9,7 +9,7 @@
* @license For commercial or closed source, contact us at license.mirotalk@gmail.com or purchase directly via CodeCanyon * @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 * @license CodeCanyon: https://codecanyon.net/item/mirotalk-sfu-webrtc-realtime-video-conferences/40769970
* @author Miroslav Pejic - miroslav.pejic.85@gmail.com * @author Miroslav Pejic - miroslav.pejic.85@gmail.com
* @version 1.3.41 * @version 1.3.42
* *
*/ */
@@ -5259,6 +5259,8 @@ class RoomClient {
let btnKo = this.getId(uid); let btnKo = this.getId(uid);
if (btnKo) { if (btnKo) {
btnKo.addEventListener('click', () => { btnKo.addEventListener('click', () => {
if (!isPresenter)
return this.userLog('warning', 'Only the presenter can eject the participants', 'top-end');
this.peerAction('me', peer_id, 'eject'); this.peerAction('me', peer_id, 'eject');
}); });
} }
@@ -5274,6 +5276,8 @@ class RoomClient {
let btnCm = this.getId(uid); let btnCm = this.getId(uid);
if (btnCm) { if (btnCm) {
btnCm.addEventListener('click', () => { btnCm.addEventListener('click', () => {
if (!isPresenter)
return this.userLog('warning', 'Only the presenter can hide the participants', 'top-end');
this.peerAction('me', peer_id, 'hide'); this.peerAction('me', peer_id, 'hide');
}); });
} }
@@ -5289,6 +5293,8 @@ class RoomClient {
let btnAU = this.getId(uid); let btnAU = this.getId(uid);
if (btnAU) { if (btnAU) {
btnAU.addEventListener('click', (e) => { btnAU.addEventListener('click', (e) => {
if (!isPresenter)
return this.userLog('warning', 'Only the presenter can mute the participants', 'top-end');
if (e.target.className === html.audioOn) { if (e.target.className === html.audioOn) {
this.peerAction('me', peer_id, 'mute'); this.peerAction('me', peer_id, 'mute');
} }

عرض الملف

@@ -97,8 +97,8 @@ function handleRules(isPresenter) {
BUTTONS.videoOff.muteAudioButton = false; BUTTONS.videoOff.muteAudioButton = false;
BUTTONS.videoOff.ejectButton = false; BUTTONS.videoOff.ejectButton = false;
BUTTONS.consumerVideo.ejectButton = false; BUTTONS.consumerVideo.ejectButton = false;
BUTTONS.consumerVideo.muteAudioButton = false; //BUTTONS.consumerVideo.muteAudioButton = false;
BUTTONS.consumerVideo.muteVideoButton = false; //BUTTONS.consumerVideo.muteVideoButton = false;
BUTTONS.whiteboard.whiteboardLockButton = false; BUTTONS.whiteboard.whiteboardLockButton = false;
//... //...
} else { } else {