@stream-io/video-client 0.0.2-alpha.17 → 0.0.2-alpha.19
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 +13 -0
- package/dist/index.browser.es.js +12 -4
- package/dist/index.browser.es.js.map +1 -1
- package/dist/index.cjs.js +12 -4
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +12 -4
- package/dist/index.es.js.map +1 -1
- package/dist/src/gen/coordinator/index.d.ts +24 -0
- package/package.json +1 -1
- package/src/Call.ts +11 -4
- package/src/gen/coordinator/index.ts +24 -0
- package/src/rtc/publisher.ts +7 -6
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,19 @@
|
|
|
2
2
|
|
|
3
3
|
This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
|
|
4
4
|
|
|
5
|
+
## [0.0.2-alpha.19](https://github.com/GetStream/stream-video-js/compare/client0.0.2-alpha.18...client0.0.2-alpha.19) (2023-06-01)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
## [0.0.2-alpha.18](https://github.com/GetStream/stream-video-js/compare/client0.0.2-alpha.17...client0.0.2-alpha.18) (2023-06-01)
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
### Features
|
|
13
|
+
|
|
14
|
+
* reflect updateCall response data into call's state ([#578](https://github.com/GetStream/stream-video-js/issues/578)) ([410a926](https://github.com/GetStream/stream-video-js/commit/410a926e30f65396446a9c3d93d18f0367d7eda8))
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
5
18
|
## [0.0.2-alpha.17](https://github.com/GetStream/stream-video-js/compare/client0.0.2-alpha.16...client0.0.2-alpha.17) (2023-06-01)
|
|
6
19
|
|
|
7
20
|
|
package/dist/index.browser.es.js
CHANGED
|
@@ -5733,14 +5733,13 @@ class Publisher {
|
|
|
5733
5733
|
};
|
|
5734
5734
|
this.updateVideoPublishQuality = (enabledRids) => __awaiter(this, void 0, void 0, function* () {
|
|
5735
5735
|
var _a;
|
|
5736
|
-
console.log('
|
|
5736
|
+
console.log('Update publish quality, requested rids by SFU:', enabledRids);
|
|
5737
5737
|
const videoSender = (_a = this.transceiverRegistry[TrackType.VIDEO]) === null || _a === void 0 ? void 0 : _a.sender;
|
|
5738
5738
|
if (!videoSender)
|
|
5739
5739
|
return;
|
|
5740
5740
|
const params = videoSender.getParameters();
|
|
5741
5741
|
let changed = false;
|
|
5742
5742
|
params.encodings.forEach((enc) => {
|
|
5743
|
-
console.log(enc.rid, enc.active);
|
|
5744
5743
|
// flip 'active' flag only when necessary
|
|
5745
5744
|
const shouldEnable = enabledRids.includes(enc.rid);
|
|
5746
5745
|
if (shouldEnable !== enc.active) {
|
|
@@ -5753,6 +5752,10 @@ class Publisher {
|
|
|
5753
5752
|
console.warn('No suitable video encoding quality found');
|
|
5754
5753
|
}
|
|
5755
5754
|
yield videoSender.setParameters(params);
|
|
5755
|
+
console.log(`Update publish quality, enabled rids: ${params.encodings
|
|
5756
|
+
.filter((e) => e.active)
|
|
5757
|
+
.map((e) => e.rid)
|
|
5758
|
+
.join(', ')}`);
|
|
5756
5759
|
}
|
|
5757
5760
|
});
|
|
5758
5761
|
this.getCodecPreferences = (trackType, preferredCodec) => {
|
|
@@ -9136,7 +9139,12 @@ class Call {
|
|
|
9136
9139
|
* @param updates the updates to apply to the call.
|
|
9137
9140
|
*/
|
|
9138
9141
|
this.update = (updates) => __awaiter(this, void 0, void 0, function* () {
|
|
9139
|
-
|
|
9142
|
+
const response = yield this.streamClient.patch(`${this.streamClientBasePath}`, updates);
|
|
9143
|
+
const { call, members, own_capabilities } = response;
|
|
9144
|
+
this.state.setMetadata(call);
|
|
9145
|
+
this.state.setMembers(members);
|
|
9146
|
+
this.state.setOwnCapabilities(own_capabilities);
|
|
9147
|
+
return response;
|
|
9140
9148
|
});
|
|
9141
9149
|
/**
|
|
9142
9150
|
* Ends the call. Once the call is ended, it cannot be re-joined.
|
|
@@ -10972,7 +10980,7 @@ class StreamClient {
|
|
|
10972
10980
|
}
|
|
10973
10981
|
getUserAgent() {
|
|
10974
10982
|
return (this.userAgent ||
|
|
10975
|
-
`stream-video-javascript-client-${this.node ? 'node' : 'browser'}-${"0.0.2-alpha.
|
|
10983
|
+
`stream-video-javascript-client-${this.node ? 'node' : 'browser'}-${"0.0.2-alpha.18"}`);
|
|
10976
10984
|
}
|
|
10977
10985
|
setUserAgent(userAgent) {
|
|
10978
10986
|
this.userAgent = userAgent;
|