[mirotalksfu] - add redirect on leave room, update dep.

هذا الالتزام موجود في:
Miroslav Pejic
2023-10-27 14:20:53 +02:00
الأصل 9c856a0f86
التزام c3e459e999
7 ملفات معدلة مع 35 إضافات و22 حذوفات

عرض الملف

@@ -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.1.3
* @version 1.1.4
*
*/
@@ -28,6 +28,11 @@ let survey = {
url: 'https://www.questionpro.com/t/AUs7VZq02P',
};
let redirect = {
enabled: true,
url: '/newroom',
};
const _PEER = {
audioOn: '<i class="fas fa-microphone"></i>',
audioOff: '<i style="color: red;" class="fas fa-microphone-slash"></i>',
@@ -2135,10 +2140,10 @@ function handleRoomClientEvents() {
console.log('Room event: Client save recording before to exit');
rc.stopRecording();
}
if (survey.enabled) {
if (survey && survey.enabled) {
leaveFeedback();
} else {
openURL('/newroom');
redirect && redirect.enabled ? openURL(redirect.url) : openURL('/newroom');
}
});
}

عرض الملف

@@ -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.1.3
* @version 1.1.4
*
*/
@@ -344,6 +344,8 @@ class RoomClient {
async handleRoomInfo(room) {
console.log('07.0 ----> Room Survey', room.survey);
survey = room.survey;
console.log('07.0 ----> Room Leave Redirect', room.redirect);
redirect = room.redirect;
let peers = new Map(JSON.parse(room.peers));
participantsCount = peers.size;
for (let peer of Array.from(peers.keys()).filter((id) => id == this.peer_id)) {

عرض الملف

@@ -35,14 +35,9 @@
1: [
function (require, module, exports) {
'use strict';
var __importDefault =
(this && this.__importDefault) ||
function (mod) {
return mod && mod.__esModule ? mod : { default: mod };
};
Object.defineProperty(exports, '__esModule', { value: true });
exports.Logger = void 0;
const debug_1 = __importDefault(require('debug'));
const debug_1 = require('debug');
const LIB_NAME = 'awaitqueue';
class Logger {
constructor(prefix) {
@@ -88,7 +83,7 @@
*/
class AwaitQueueStoppedError extends Error {
constructor(message) {
super(message !== null && message !== void 0 ? message : 'AwaitQueue stopped');
super(message ?? 'AwaitQueue stopped');
this.name = 'AwaitQueueStoppedError';
// @ts-ignore
if (typeof Error.captureStackTrace === 'function') {
@@ -104,7 +99,7 @@
*/
class AwaitQueueRemovedTaskError extends Error {
constructor(message) {
super(message !== null && message !== void 0 ? message : 'AwaitQueue task removed');
super(message ?? 'AwaitQueue task removed');
this.name = 'AwaitQueueRemovedTaskError';
// @ts-ignore
if (typeof Error.captureStackTrace === 'function') {
@@ -127,7 +122,7 @@
return this.pendingTasks.size;
}
async push(task, name) {
name = name !== null && name !== void 0 ? name : task.name;
name = name ?? task.name;
logger.debug(`push() [name:${name}]`);
if (typeof task !== 'function') {
throw new TypeError('given task is not a function');
@@ -12794,7 +12789,7 @@
/**
* Expose mediasoup-client version.
*/
exports.version = '3.6.102';
exports.version = '3.6.103';
/**
* Expose parseScalabilityMode() function.
*/