@stream-io/video-client 0.7.3 → 0.7.5

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 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.7.5](https://github.com/GetStream/stream-video-js/compare/@stream-io/video-client-0.7.4...@stream-io/video-client-0.7.5) (2024-04-23)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * **publisher:** ensure initial bitrate is set ([#1322](https://github.com/GetStream/stream-video-js/issues/1322)) ([d7e8e4e](https://github.com/GetStream/stream-video-js/commit/d7e8e4e5cb3ff9859c1eb580162ed88bbe54b096))
11
+
12
+ ### [0.7.4](https://github.com/GetStream/stream-video-js/compare/@stream-io/video-client-0.7.3...@stream-io/video-client-0.7.4) (2024-04-17)
13
+
14
+
15
+ ### Features
16
+
17
+ * update from OpenAPI ([#1320](https://github.com/GetStream/stream-video-js/issues/1320)) ([391c030](https://github.com/GetStream/stream-video-js/commit/391c030ba71a2e12001eaa195226dcece44f3922))
18
+
5
19
  ### [0.7.3](https://github.com/GetStream/stream-video-js/compare/@stream-io/video-client-0.7.2...@stream-io/video-client-0.7.3) (2024-04-17)
6
20
 
7
21
 
@@ -6096,6 +6096,11 @@ const defaultTargetResolution = {
6096
6096
  width: 1280,
6097
6097
  height: 720,
6098
6098
  };
6099
+ const defaultBitratePerRid = {
6100
+ q: 300000,
6101
+ h: 750000,
6102
+ f: DEFAULT_BITRATE,
6103
+ };
6099
6104
  /**
6100
6105
  * Determines the most optimal video layers for simulcasting
6101
6106
  * for the given track.
@@ -6119,7 +6124,7 @@ const findOptimalVideoLayers = (videoTrack, targetResolution = defaultTargetReso
6119
6124
  rid,
6120
6125
  width: Math.round(w / downscaleFactor),
6121
6126
  height: Math.round(h / downscaleFactor),
6122
- maxBitrate: Math.round(maxBitrate / downscaleFactor),
6127
+ maxBitrate: Math.round(maxBitrate / downscaleFactor) || defaultBitratePerRid[rid],
6123
6128
  scaleResolutionDownBy: downscaleFactor,
6124
6129
  // Simulcast on iOS React-Native requires all encodings to share the same framerate
6125
6130
  maxFramerate: {
@@ -14469,7 +14474,7 @@ class StreamClient {
14469
14474
  });
14470
14475
  };
14471
14476
  this.getUserAgent = () => {
14472
- const version = "0.7.3" ;
14477
+ const version = "0.7.5" ;
14473
14478
  return (this.userAgent ||
14474
14479
  `stream-video-javascript-client-${this.node ? 'node' : 'browser'}-${version}`);
14475
14480
  };