@stream-io/video-client 1.11.1 → 1.11.3
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 +5 -3
- package/dist/index.browser.es.js.map +1 -1
- package/dist/index.cjs.js +5 -3
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +5 -3
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
- package/src/__tests__/StreamVideoClient.test.ts +9 -0
- package/src/coordinator/connection/token_manager.ts +2 -0
- package/src/rtc/Publisher.ts +2 -1
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
|
+
## [1.11.3](https://github.com/GetStream/stream-video-js/compare/@stream-io/video-client-1.11.2...@stream-io/video-client-1.11.3) (2024-11-20)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* respect codec overrides when computing the video layers ([#1582](https://github.com/GetStream/stream-video-js/issues/1582)) ([c22b83e](https://github.com/GetStream/stream-video-js/commit/c22b83ef710f2188e680b73790154de046a824e9))
|
|
11
|
+
|
|
12
|
+
## [1.11.2](https://github.com/GetStream/stream-video-js/compare/@stream-io/video-client-1.11.1...@stream-io/video-client-1.11.2) (2024-11-14)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### Bug Fixes
|
|
16
|
+
|
|
17
|
+
* fully reset token manager on user disconnect ([#1578](https://github.com/GetStream/stream-video-js/issues/1578)) ([6751abc](https://github.com/GetStream/stream-video-js/commit/6751abc0507085bd7c9f3f803f4c5929e0598bea)), closes [#1573](https://github.com/GetStream/stream-video-js/issues/1573)
|
|
18
|
+
|
|
5
19
|
## [1.11.1](https://github.com/GetStream/stream-video-js/compare/@stream-io/video-client-1.11.0...@stream-io/video-client-1.11.1) (2024-11-14)
|
|
6
20
|
|
|
7
21
|
|
package/dist/index.browser.es.js
CHANGED
|
@@ -3335,7 +3335,7 @@ const retryable = async (rpc, signal) => {
|
|
|
3335
3335
|
return result;
|
|
3336
3336
|
};
|
|
3337
3337
|
|
|
3338
|
-
const version = "1.11.
|
|
3338
|
+
const version = "1.11.3";
|
|
3339
3339
|
const [major, minor, patch] = version.split('.');
|
|
3340
3340
|
let sdkInfo = {
|
|
3341
3341
|
type: SdkType.PLAIN_JAVASCRIPT,
|
|
@@ -6001,7 +6001,7 @@ class Publisher {
|
|
|
6001
6001
|
.target_resolution;
|
|
6002
6002
|
const screenShareBitrate = settings?.screensharing.target_resolution?.bitrate;
|
|
6003
6003
|
const publishOpts = opts || this.publishOptsForTrack.get(trackType);
|
|
6004
|
-
const codecInUse = getOptimalVideoCodec(
|
|
6004
|
+
const codecInUse = opts?.forceCodec || getOptimalVideoCodec(opts?.preferredCodec);
|
|
6005
6005
|
return trackType === TrackType.VIDEO
|
|
6006
6006
|
? findOptimalVideoLayers(track, targetResolution, codecInUse, publishOpts)
|
|
6007
6007
|
: trackType === TrackType.SCREEN_SHARE
|
|
@@ -12216,6 +12216,8 @@ class TokenManager {
|
|
|
12216
12216
|
*/
|
|
12217
12217
|
this.reset = () => {
|
|
12218
12218
|
this.token = undefined;
|
|
12219
|
+
this.tokenProvider = undefined;
|
|
12220
|
+
this.type = 'static';
|
|
12219
12221
|
this.user = undefined;
|
|
12220
12222
|
this.loadTokenPromise = null;
|
|
12221
12223
|
};
|
|
@@ -12976,7 +12978,7 @@ class StreamClient {
|
|
|
12976
12978
|
});
|
|
12977
12979
|
};
|
|
12978
12980
|
this.getUserAgent = () => {
|
|
12979
|
-
const version = "1.11.
|
|
12981
|
+
const version = "1.11.3";
|
|
12980
12982
|
return (this.userAgent ||
|
|
12981
12983
|
`stream-video-javascript-client-${this.node ? 'node' : 'browser'}-${version}`);
|
|
12982
12984
|
};
|