mediasoup-client
Advanced tools
Comparing version 3.6.87 to 3.6.88
@@ -259,6 +259,8 @@ "use strict"; | ||
await this._pc.setLocalDescription(offer); | ||
// We can now get the transceiver.mid. | ||
const localId = transceiver.mid; | ||
// Set MID. | ||
sendingRtpParameters.mid = localId; | ||
// NOTE: We cannot read generated MID on iOS react-native-webrtc 111.0.0 | ||
// because transceiver.mid is not available until setRemoteDescription() | ||
// is called, so this is best effort. | ||
// Issue: https://github.com/react-native-webrtc/react-native-webrtc/issues/1404 | ||
// NOTE: So let's fill MID in sendingRtpParameters later. | ||
let localId = transceiver.mid; | ||
localSdpObject = sdpTransform.parse(this._pc.localDescription.sdp); | ||
@@ -314,2 +316,7 @@ offerMediaObject = localSdpObject.media[mediaSectionIdx.idx]; | ||
await this._pc.setRemoteDescription(answer); | ||
// Follow up of iOS react-native-webrtc 111.0.0 issue told above. Now yes, | ||
// we can read generated MID (if not done above) and fill sendingRtpParameters. | ||
localId = localId !== null && localId !== void 0 ? localId : transceiver.mid; | ||
// Set MID. | ||
sendingRtpParameters.mid = localId; | ||
// Store in the map. | ||
@@ -316,0 +323,0 @@ this._mapMidTransceiver.set(localId, transceiver); |
@@ -11,3 +11,3 @@ import debug from 'debug'; | ||
*/ | ||
export declare const version = "3.6.87"; | ||
export declare const version = "3.6.88"; | ||
/** | ||
@@ -14,0 +14,0 @@ * Expose Device class and detectDevice() helper. |
@@ -40,3 +40,3 @@ "use strict"; | ||
*/ | ||
exports.version = '3.6.87'; | ||
exports.version = '3.6.88'; | ||
/** | ||
@@ -43,0 +43,0 @@ * Expose parseScalabilityMode() function. |
{ | ||
"name": "mediasoup-client", | ||
"version": "3.6.87", | ||
"version": "3.6.88", | ||
"description": "mediasoup client side JavaScript library", | ||
@@ -80,4 +80,4 @@ "contributors": [ | ||
"@types/ua-parser-js": "^0.7.36", | ||
"@typescript-eslint/eslint-plugin": "^5.59.11", | ||
"@typescript-eslint/parser": "^5.59.11", | ||
"@typescript-eslint/eslint-plugin": "^5.60.0", | ||
"@typescript-eslint/parser": "^5.60.0", | ||
"eslint": "^8.43.0", | ||
@@ -84,0 +84,0 @@ "eslint-plugin-jest": "^27.2.2", |
Sorry, the diff of this file is not supported yet
747809
16434