From 2ef2add728cb41feeed067927904e964a168884b Mon Sep 17 00:00:00 2001 From: Miroslav Pejic Date: Fri, 3 Jan 2025 17:23:10 +0100 Subject: [PATCH] [mirotalksfu] - imporvements --- app/src/Server.js | 4 ++-- package.json | 2 +- public/js/Room.js | 6 +++--- public/js/RoomClient.js | 6 +++--- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/app/src/Server.js b/app/src/Server.js index 41eee8f9..00863318 100644 --- a/app/src/Server.js +++ b/app/src/Server.js @@ -55,7 +55,7 @@ dev dependencies: { * @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 * @author Miroslav Pejic - miroslav.pejic.85@gmail.com - * @version 1.6.76 + * @version 1.6.77 * */ @@ -513,7 +513,7 @@ function startServer() { log.debug('Direct Join', req.query); - // http://localhost:3010/join?room=test&roomPassword=0&name=mirotalksfu&audio=1&video=1&screen=0&hide=0¬ify=1&duration=00:00:20 + // http://localhost:3010/join?room=test&roomPassword=0&name=mirotalksfu&audio=1&video=1&screen=0&hide=0¬ify=1&duration=00:00:30 // http://localhost:3010/join?room=test&roomPassword=0&name=mirotalksfu&audio=1&video=1&screen=0&hide=0¬ify=0&token=token const { room, roomPassword, name, audio, video, screen, hide, notify, duration, token, isPresenter } = diff --git a/package.json b/package.json index fbf41159..71ca12dc 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "mirotalksfu", - "version": "1.6.76", + "version": "1.6.77", "description": "WebRTC SFU browser-based video calls", "main": "Server.js", "scripts": { diff --git a/public/js/Room.js b/public/js/Room.js index 5fea881f..2d5ac0f6 100644 --- a/public/js/Room.js +++ b/public/js/Room.js @@ -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 CodeCanyon: https://codecanyon.net/item/mirotalk-sfu-webrtc-realtime-video-conferences/40769970 * @author Miroslav Pejic - miroslav.pejic.85@gmail.com - * @version 1.6.76 + * @version 1.6.77 * */ @@ -866,7 +866,7 @@ function getRoomDuration() { Swal.showLoading(); }, willClose: () => { - openURL('/'); + rc.exitRoom(true); }, }); }, timeLimit); @@ -4676,7 +4676,7 @@ function showAbout() { imageUrl: image.about, customClass: { image: 'img-about' }, position: 'center', - title: 'WebRTC SFU v1.6.76', + title: 'WebRTC SFU v1.6.77', html: `
diff --git a/public/js/RoomClient.js b/public/js/RoomClient.js index a43851a4..a9f23b32 100644 --- a/public/js/RoomClient.js +++ b/public/js/RoomClient.js @@ -9,7 +9,7 @@ * @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 * @author Miroslav Pejic - miroslav.pejic.85@gmail.com - * @version 1.6.76 + * @version 1.6.77 * */ @@ -2815,9 +2815,9 @@ class RoomClient { } } - exitRoom() { + exitRoom(disconnectAll = false) { //... - if (isPresenter && switchDisconnectAllOnLeave.checked) { + if (isPresenter && (disconnectAll || switchDisconnectAllOnLeave.checked)) { this.ejectAllOnLeave(); } this.exit();