@stream-io/video-client 0.0.33 → 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 +14 -0
- package/dist/index.browser.es.js +10 -5
- package/dist/index.browser.es.js.map +1 -1
- package/dist/index.cjs.js +10 -5
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +10 -5
- package/dist/index.es.js.map +1 -1
- package/dist/src/Call.d.ts +1 -1
- package/package.json +1 -1
- package/src/Call.ts +2 -2
- package/src/rtc/Publisher.ts +11 -2
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,20 @@
|
|
|
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
|
+
|
|
12
|
+
### [0.0.34](https://github.com/GetStream/stream-video-js/compare/client0.0.33...client0.0.34) (2023-07-05)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### Bug Fixes
|
|
16
|
+
|
|
17
|
+
* prevent double publishStream invocation ([#749](https://github.com/GetStream/stream-video-js/issues/749)) ([9e3c22f](https://github.com/GetStream/stream-video-js/commit/9e3c22fd37d8dc00d275e8b69f9cd18f67e366fe))
|
|
18
|
+
|
|
5
19
|
### [0.0.33](https://github.com/GetStream/stream-video-js/compare/client0.0.32...client0.0.33) (2023-07-04)
|
|
6
20
|
|
|
7
21
|
### [0.0.32](https://github.com/GetStream/stream-video-js/compare/client0.0.31...client0.0.32) (2023-07-04)
|
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);
|
|
@@ -10060,7 +10065,7 @@ class Call {
|
|
|
10060
10065
|
/**
|
|
10061
10066
|
* Sends a custom event to all call participants.
|
|
10062
10067
|
*
|
|
10063
|
-
* @param
|
|
10068
|
+
* @param payload the payload to send.
|
|
10064
10069
|
*/
|
|
10065
10070
|
this.sendCustomEvent = (payload) => __awaiter(this, void 0, void 0, function* () {
|
|
10066
10071
|
return this.streamClient.post(`${this.streamClientBasePath}/event`, { custom: payload });
|
|
@@ -10123,7 +10128,7 @@ class Call {
|
|
|
10123
10128
|
const currentUserId = this.currentUserId;
|
|
10124
10129
|
if (currentUserId &&
|
|
10125
10130
|
metadata.blocked_user_ids.includes(currentUserId)) {
|
|
10126
|
-
this.logger('info', 'Leaving call
|
|
10131
|
+
this.logger('info', 'Leaving call because of being blocked');
|
|
10127
10132
|
yield this.leave();
|
|
10128
10133
|
}
|
|
10129
10134
|
})),
|
|
@@ -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;
|