From d2e1c2816472d7de51b24519adf1066c4a61549a Mon Sep 17 00:00:00 2001 From: Miroslav Pejic Date: Thu, 25 Aug 2022 17:15:08 +0200 Subject: [PATCH] [mirotalksfu] - update dep. + fix typo --- package.json | 2 +- public/js/RoomClient.js | 11 ++++------- public/sfu/MediasoupClient.js | 10 ++++------ 3 files changed, 9 insertions(+), 14 deletions(-) diff --git a/package.json b/package.json index a6133d63..8f5b6e21 100644 --- a/package.json +++ b/package.json @@ -30,7 +30,7 @@ "express": "4.18.1", "httpolyglot": "0.1.2", "mediasoup": "3.10.5", - "mediasoup-client": "3.6.56", + "mediasoup-client": "3.6.57", "ngrok": "4.3.3", "qs": "6.11.0", "@sentry/node": "7.11.1", diff --git a/public/js/RoomClient.js b/public/js/RoomClient.js index 80249735..4b65f64c 100644 --- a/public/js/RoomClient.js +++ b/public/js/RoomClient.js @@ -3124,12 +3124,12 @@ class RoomClient { switch (action) { case 'eject': let ejectConfirmed = false; - let whoEject = data.broadcast ? 'All participants' : 'current participant'; + let whoEject = data.broadcast ? 'All participants except yourself?' : 'current participant?'; Swal.fire({ background: swalBackground, position: 'center', imageUrl: data.broadcast ? image.users : image.user, - title: 'Eject ' + whoEject + ' excpect yourself?', + title: 'Eject ' + whoEject, showDenyButton: true, confirmButtonText: `Yes`, denyButtonText: `No`, @@ -3167,15 +3167,12 @@ class RoomClient { case 'mute': case 'hide': let muteHideConfirmed = false; - let whoMuteHide = data.broadcast ? 'everyone' : 'current participant'; + let whoMuteHide = data.broadcast ? 'everyone except yourself?' : 'current participant?'; Swal.fire({ background: swalBackground, position: 'center', imageUrl: action == 'mute' ? image.mute : image.hide, - title: - action == 'mute' - ? 'Mute ' + whoMuteHide + ' excpect yourself?' - : 'Hide ' + whoMuteHide + ' except yourself?', + title: action == 'mute' ? 'Mute ' + whoMuteHide : 'Hide ' + whoMuteHide, text: action == 'mute' ? "Once muted, you won't be able to unmute them, but they can unmute themselves at any time." diff --git a/public/sfu/MediasoupClient.js b/public/sfu/MediasoupClient.js index 81ab5878..955b1188 100644 --- a/public/sfu/MediasoupClient.js +++ b/public/sfu/MediasoupClient.js @@ -3952,11 +3952,9 @@ logger.debug('replaceTrack() | same track, ignored'); return; } - if (!this._zeroRtpOnPause || !this._paused) { - await new Promise((resolve, reject) => { - this.safeEmit('@replacetrack', track, resolve, reject); - }); - } + await new Promise((resolve, reject) => { + this.safeEmit('@replacetrack', track, resolve, reject); + }); // Destroy the previous track. this._destroyTrack(); // Set the new track. @@ -11753,7 +11751,7 @@ /** * Expose mediasoup-client version. */ - exports.version = '3.6.56'; + exports.version = '3.6.57'; /** * Expose parseScalabilityMode() function. */