@stream-io/video-react-sdk 1.9.0 → 1.10.0

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,17 @@
2
2
 
3
3
  This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
4
4
 
5
+ ## [1.10.0](https://github.com/GetStream/stream-video-js/compare/@stream-io/video-react-sdk-1.9.0...@stream-io/video-react-sdk-1.10.0) (2025-01-15)
6
+
7
+ ### Dependency Updates
8
+
9
+ * `@stream-io/video-client` updated to version `1.15.0`
10
+ * `@stream-io/video-react-bindings` updated to version `1.4.0`
11
+
12
+ ### Features
13
+
14
+ * Codec Negotiation ([#1527](https://github.com/GetStream/stream-video-js/issues/1527)) ([2e9e344](https://github.com/GetStream/stream-video-js/commit/2e9e344d5259e3069dddb17846013becef24829e))
15
+
5
16
  ## [1.9.0](https://github.com/GetStream/stream-video-js/compare/@stream-io/video-react-sdk-1.8.7...@stream-io/video-react-sdk-1.9.0) (2025-01-02)
6
17
 
7
18
  ### Dependency Updates
package/README.md CHANGED
@@ -90,7 +90,7 @@ Here are some of the features we support:
90
90
  - [ ] Query call session endpoint
91
91
  - [ ] Logging 2.0
92
92
  - [x] Hardware-accelerated video encoding on supported platforms
93
- - [ ] Dynascale 2.0 (codec switching)
93
+ - [x] Dynascale 2.0 (codec switching)
94
94
  - [ ] E2E testing platform
95
95
  - [ ] Dynascale: turn off incoming video when the browser is in the background
96
96
 
package/dist/index.cjs.js CHANGED
@@ -1533,10 +1533,11 @@ const toFrameSize = (stats) => {
1533
1533
  return size;
1534
1534
  };
1535
1535
  const formatCodec = (callStatsReport) => {
1536
- const { codec } = callStatsReport.publisherStats;
1537
- if (!codec)
1536
+ const { codecPerTrackType } = callStatsReport.publisherStats;
1537
+ if (!codecPerTrackType || !codecPerTrackType[videoClient.SfuModels.TrackType.VIDEO]) {
1538
1538
  return '';
1539
- const [, name] = codec.split('/');
1539
+ }
1540
+ const [, name] = codecPerTrackType[videoClient.SfuModels.TrackType.VIDEO].split('/');
1540
1541
  return name ? ` (${name})` : '';
1541
1542
  };
1542
1543
  const calculatePublishBitrate = (previousCallStatsReport, callStatsReport) => {
@@ -2573,7 +2574,7 @@ const LivestreamPlayer = (props) => {
2573
2574
  return (jsxRuntime.jsx(StreamCall, { call: call, children: jsxRuntime.jsx(LivestreamLayout, { ...layoutProps }) }));
2574
2575
  };
2575
2576
 
2576
- const [major, minor, patch] = ("1.9.0").split('.');
2577
+ const [major, minor, patch] = ("1.10.0").split('.');
2577
2578
  videoClient.setSdkInfo({
2578
2579
  type: videoClient.SfuModels.SdkType.REACT,
2579
2580
  major,