@stream-io/video-client 0.0.34 → 0.0.35
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -0
- package/dist/index.browser.es.js +8 -3
- package/dist/index.browser.es.js.map +1 -1
- package/dist/index.cjs.js +8 -3
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +8 -3
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
- package/src/rtc/Publisher.ts +11 -2
package/dist/index.cjs.js
CHANGED
|
@@ -6422,9 +6422,14 @@ class Publisher {
|
|
|
6422
6422
|
}
|
|
6423
6423
|
this.logger('warn', 'No mid found for track. Trying to find it from SDP');
|
|
6424
6424
|
const parsedSdp = SDP__namespace.parse(sdp);
|
|
6425
|
-
const media = parsedSdp.media.find((m) =>
|
|
6425
|
+
const media = parsedSdp.media.find((m) => {
|
|
6426
|
+
var _a, _b;
|
|
6427
|
+
return (m.type === track.kind &&
|
|
6428
|
+
// if `msid` is not present, we assume that the track is the first one
|
|
6429
|
+
((_b = (_a = m.msid) === null || _a === void 0 ? void 0 : _a.includes(track.id)) !== null && _b !== void 0 ? _b : true));
|
|
6430
|
+
});
|
|
6426
6431
|
if (typeof (media === null || media === void 0 ? void 0 : media.mid) === 'undefined') {
|
|
6427
|
-
this.logger('warn', `No mid found in SDP for track type ${track.kind}`);
|
|
6432
|
+
this.logger('warn', `No mid found in SDP for track type ${track.kind} and id ${track.id}`);
|
|
6428
6433
|
return '';
|
|
6429
6434
|
}
|
|
6430
6435
|
return String(media.mid);
|
|
@@ -11852,7 +11857,7 @@ class StreamClient {
|
|
|
11852
11857
|
}
|
|
11853
11858
|
getUserAgent() {
|
|
11854
11859
|
return (this.userAgent ||
|
|
11855
|
-
`stream-video-javascript-client-${this.node ? 'node' : 'browser'}-${"0.0.
|
|
11860
|
+
`stream-video-javascript-client-${this.node ? 'node' : 'browser'}-${"0.0.34"}`);
|
|
11856
11861
|
}
|
|
11857
11862
|
setUserAgent(userAgent) {
|
|
11858
11863
|
this.userAgent = userAgent;
|