@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/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
|
|
4
4
|
|
|
5
|
+
### [0.0.35](https://github.com/GetStream/stream-video-js/compare/client0.0.34...client0.0.35) (2023-07-05)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* Reliable mid detection ([#753](https://github.com/GetStream/stream-video-js/issues/753)) ([d602574](https://github.com/GetStream/stream-video-js/commit/d6025740f46db413b5c040cb9af145cfa9be4bf1))
|
|
11
|
+
|
|
5
12
|
### [0.0.34](https://github.com/GetStream/stream-video-js/compare/client0.0.33...client0.0.34) (2023-07-05)
|
|
6
13
|
|
|
7
14
|
|
package/dist/index.browser.es.js
CHANGED
|
@@ -6399,9 +6399,14 @@ class Publisher {
|
|
|
6399
6399
|
}
|
|
6400
6400
|
this.logger('warn', 'No mid found for track. Trying to find it from SDP');
|
|
6401
6401
|
const parsedSdp = SDP.parse(sdp);
|
|
6402
|
-
const media = parsedSdp.media.find((m) =>
|
|
6402
|
+
const media = parsedSdp.media.find((m) => {
|
|
6403
|
+
var _a, _b;
|
|
6404
|
+
return (m.type === track.kind &&
|
|
6405
|
+
// if `msid` is not present, we assume that the track is the first one
|
|
6406
|
+
((_b = (_a = m.msid) === null || _a === void 0 ? void 0 : _a.includes(track.id)) !== null && _b !== void 0 ? _b : true));
|
|
6407
|
+
});
|
|
6403
6408
|
if (typeof (media === null || media === void 0 ? void 0 : media.mid) === 'undefined') {
|
|
6404
|
-
this.logger('warn', `No mid found in SDP for track type ${track.kind}`);
|
|
6409
|
+
this.logger('warn', `No mid found in SDP for track type ${track.kind} and id ${track.id}`);
|
|
6405
6410
|
return '';
|
|
6406
6411
|
}
|
|
6407
6412
|
return String(media.mid);
|
|
@@ -11828,7 +11833,7 @@ class StreamClient {
|
|
|
11828
11833
|
}
|
|
11829
11834
|
getUserAgent() {
|
|
11830
11835
|
return (this.userAgent ||
|
|
11831
|
-
`stream-video-javascript-client-${this.node ? 'node' : 'browser'}-${"0.0.
|
|
11836
|
+
`stream-video-javascript-client-${this.node ? 'node' : 'browser'}-${"0.0.34"}`);
|
|
11832
11837
|
}
|
|
11833
11838
|
setUserAgent(userAgent) {
|
|
11834
11839
|
this.userAgent = userAgent;
|