diff --git a/package.json b/package.json index fdf1015..c63ac70 100644 --- a/package.json +++ b/package.json @@ -16,8 +16,8 @@ "cors": "^2.8.5", "express": "^4.17.1", "httpolyglot": "^0.1.2", - "mediasoup": "^3.8.4", - "mediasoup-client": "^3.6.42", + "mediasoup": "^3.9.0", + "mediasoup-client": "^3.6.43", "ngrok": "^4.2.2", "socket.io": "^4.2.0", "swagger-ui-express": "^4.1.6", diff --git a/public/sfu/MediasoupClient.js b/public/sfu/MediasoupClient.js index 36477de..61fff5e 100644 --- a/public/sfu/MediasoupClient.js +++ b/public/sfu/MediasoupClient.js @@ -6269,6 +6269,7 @@ const answer = { type: 'answer', sdp: this._remoteSdp.getSdp() }; logger.debug('stopSending() | calling pc.setRemoteDescription() [answer:%o]', answer); await this._pc.setRemoteDescription(answer); + this._mapMidTransceiver.delete(localId); } async replaceTrack(localId, track) { this._assertSendDirection(); @@ -6399,6 +6400,7 @@ const answer = await this._pc.createAnswer(); logger.debug('stopReceiving() | calling pc.setLocalDescription() [answer:%o]', answer); await this._pc.setLocalDescription(answer); + this._mapMidTransceiver.delete(localId); } async pauseReceiving( // eslint-disable-next-line @typescript-eslint/no-unused-vars @@ -6818,6 +6820,7 @@ const answer = { type: 'answer', sdp: this._remoteSdp.getSdp() }; logger.debug('stopSending() | calling pc.setRemoteDescription() [answer:%o]', answer); await this._pc.setRemoteDescription(answer); + this._mapMidTransceiver.delete(localId); } async replaceTrack(localId, track) { this._assertSendDirection(); @@ -6947,6 +6950,7 @@ const answer = await this._pc.createAnswer(); logger.debug('stopReceiving() | calling pc.setLocalDescription() [answer:%o]', answer); await this._pc.setLocalDescription(answer); + this._mapMidTransceiver.delete(localId); } async pauseReceiving(localId) { this._assertRecvDirection(); @@ -7822,6 +7826,7 @@ const answer = { type: 'answer', sdp: this._remoteSdp.getSdp() }; logger.debug('stopSending() | calling pc.setRemoteDescription() [answer:%o]', answer); await this._pc.setRemoteDescription(answer); + this._mapMidTransceiver.delete(localId); } async replaceTrack(localId, track) { this._assertSendDirection(); @@ -7954,6 +7959,7 @@ const answer = await this._pc.createAnswer(); logger.debug('stopReceiving() | calling pc.setLocalDescription() [answer:%o]', answer); await this._pc.setLocalDescription(answer); + this._mapMidTransceiver.delete(localId); } async pauseReceiving(localId) { this._assertRecvDirection(); @@ -9451,6 +9457,7 @@ const answer = { type: 'answer', sdp: this._remoteSdp.getSdp() }; logger.debug('stopSending() | calling pc.setRemoteDescription() [answer:%o]', answer); await this._pc.setRemoteDescription(answer); + this._mapMidTransceiver.delete(localId); } async replaceTrack(localId, track) { this._assertSendDirection(); @@ -9580,6 +9587,7 @@ const answer = await this._pc.createAnswer(); logger.debug('stopReceiving() | calling pc.setLocalDescription() [answer:%o]', answer); await this._pc.setLocalDescription(answer); + this._mapMidTransceiver.delete(localId); } async pauseReceiving(localId) { this._assertRecvDirection(); @@ -11157,7 +11165,7 @@ /** * Expose mediasoup-client version. */ - exports.version = '3.6.42'; + exports.version = '3.6.43'; /** * Expose parseScalabilityMode() function. */