@stream-io/video-client 0.0.1-alpha.187 → 0.0.1-alpha.189
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 +18 -0
- package/dist/index.browser.es.js +10 -15
- package/dist/index.browser.es.js.map +1 -1
- package/dist/index.cjs.js +10 -15
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +10 -15
- package/dist/index.es.js.map +1 -1
- package/dist/src/Call.d.ts +0 -7
- package/dist/src/stats/state-store-stats-reporter.d.ts +1 -1
- package/dist/src/stats/types.d.ts +1 -0
- package/package.json +1 -1
- package/src/Call.ts +0 -13
- package/src/events/__tests__/members.test.ts +1 -1
- package/src/events/__tests__/sessions.test.ts +2 -0
- package/src/events/sessions.ts +10 -2
- package/src/stats/state-store-stats-reporter.ts +2 -1
- package/src/stats/types.ts +2 -0
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,24 @@
|
|
|
2
2
|
|
|
3
3
|
This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
|
|
4
4
|
|
|
5
|
+
## [0.0.1-alpha.189](https://github.com/GetStream/stream-video-js/compare/client0.0.1-alpha.188...client0.0.1-alpha.189) (2023-05-25)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
## [0.0.1-alpha.188](https://github.com/GetStream/stream-video-js/compare/client0.0.1-alpha.187...client0.0.1-alpha.188) (2023-05-25)
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
### Bug Fixes
|
|
13
|
+
|
|
14
|
+
* preserve own capabilities when call session starts ([#554](https://github.com/GetStream/stream-video-js/issues/554)) ([5784fed](https://github.com/GetStream/stream-video-js/commit/5784fed515d6d543a4a60770a5389935deeac65d)), closes [#551](https://github.com/GetStream/stream-video-js/issues/551)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Features
|
|
18
|
+
|
|
19
|
+
* show simulcast track stats in debug view ([#553](https://github.com/GetStream/stream-video-js/issues/553)) ([2c993f5](https://github.com/GetStream/stream-video-js/commit/2c993f53cfe7e76b789bc57d6034b01ff57de8d4))
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
5
23
|
## [0.0.1-alpha.187](https://github.com/GetStream/stream-video-js/compare/client0.0.1-alpha.186...client0.0.1-alpha.187) (2023-05-25)
|
|
6
24
|
|
|
7
25
|
|
package/dist/index.browser.es.js
CHANGED
|
@@ -7549,7 +7549,9 @@ const watchCallSessionStarted = (state) => {
|
|
|
7549
7549
|
if (event.type !== 'call.session_started')
|
|
7550
7550
|
return;
|
|
7551
7551
|
const { call } = event;
|
|
7552
|
-
state.setMetadata(call)
|
|
7552
|
+
state.setMetadata((metadata) => (Object.assign(Object.assign({}, call), {
|
|
7553
|
+
// FIXME OL: temporary, until the backend sends the own_capabilities
|
|
7554
|
+
own_capabilities: (metadata === null || metadata === void 0 ? void 0 : metadata.own_capabilities) || [] })));
|
|
7553
7555
|
};
|
|
7554
7556
|
};
|
|
7555
7557
|
/**
|
|
@@ -7562,7 +7564,9 @@ const watchCallSessionEnded = (state) => {
|
|
|
7562
7564
|
if (event.type !== 'call.session_ended')
|
|
7563
7565
|
return;
|
|
7564
7566
|
const { call } = event;
|
|
7565
|
-
state.setMetadata(call)
|
|
7567
|
+
state.setMetadata((metadata) => (Object.assign(Object.assign({}, call), {
|
|
7568
|
+
// FIXME OL: temporary, until the backend sends the own_capabilities
|
|
7569
|
+
own_capabilities: (metadata === null || metadata === void 0 ? void 0 : metadata.own_capabilities) || [] })));
|
|
7566
7570
|
};
|
|
7567
7571
|
};
|
|
7568
7572
|
/**
|
|
@@ -7948,6 +7952,7 @@ const transform = (report, opts) => {
|
|
|
7948
7952
|
*/
|
|
7949
7953
|
const aggregate = (stats) => {
|
|
7950
7954
|
const aggregatedStats = {
|
|
7955
|
+
rawReport: stats,
|
|
7951
7956
|
totalBytesSent: 0,
|
|
7952
7957
|
totalBytesReceived: 0,
|
|
7953
7958
|
averageJitterInMs: 0,
|
|
@@ -8719,16 +8724,6 @@ class Call {
|
|
|
8719
8724
|
// schedule update
|
|
8720
8725
|
this.trackSubscriptionsSubject.next({ type, data: subscriptions });
|
|
8721
8726
|
};
|
|
8722
|
-
/**
|
|
8723
|
-
* @deprecated use the `callStatsReport$` state [store variable](./StreamVideoClient.md/#readonlystatestore) instead
|
|
8724
|
-
* @param kind
|
|
8725
|
-
* @param selector
|
|
8726
|
-
* @returns
|
|
8727
|
-
*/
|
|
8728
|
-
this.getStats = (kind, selector) => __awaiter(this, void 0, void 0, function* () {
|
|
8729
|
-
var _k;
|
|
8730
|
-
return (_k = this.statsReporter) === null || _k === void 0 ? void 0 : _k.getRawStatsForTrack(kind, selector);
|
|
8731
|
-
});
|
|
8732
8727
|
/**
|
|
8733
8728
|
* Will enhance the reported stats with additional participant-specific information (`callStatsReport$` state [store variable](./StreamVideoClient.md/#readonlystatestore)).
|
|
8734
8729
|
* This is usually helpful when detailed stats for a specific participant are needed.
|
|
@@ -8811,8 +8806,8 @@ class Call {
|
|
|
8811
8806
|
* @returns
|
|
8812
8807
|
*/
|
|
8813
8808
|
this.updatePublishQuality = (enabledRids) => __awaiter(this, void 0, void 0, function* () {
|
|
8814
|
-
var
|
|
8815
|
-
return (
|
|
8809
|
+
var _k;
|
|
8810
|
+
return (_k = this.publisher) === null || _k === void 0 ? void 0 : _k.updateVideoPublishQuality(enabledRids);
|
|
8816
8811
|
});
|
|
8817
8812
|
this.handleOnTrack = (e) => {
|
|
8818
8813
|
const [primaryStream] = e.streams;
|
|
@@ -10875,7 +10870,7 @@ class StreamClient {
|
|
|
10875
10870
|
}
|
|
10876
10871
|
getUserAgent() {
|
|
10877
10872
|
return (this.userAgent ||
|
|
10878
|
-
`stream-video-javascript-client-${this.node ? 'node' : 'browser'}-${"0.0.1-alpha.
|
|
10873
|
+
`stream-video-javascript-client-${this.node ? 'node' : 'browser'}-${"0.0.1-alpha.188"}`);
|
|
10879
10874
|
}
|
|
10880
10875
|
setUserAgent(userAgent) {
|
|
10881
10876
|
this.userAgent = userAgent;
|