@stream-io/video-react-sdk 1.9.0 → 1.10.1
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 +17 -0
- package/README.md +1 -1
- package/dist/index.cjs.js +5 -4
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +6 -5
- package/dist/index.es.js.map +1 -1
- package/package.json +4 -4
- package/src/components/CallStats/CallStats.tsx +6 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stream-io/video-react-sdk",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.10.1",
|
|
4
4
|
"packageManager": "yarn@3.2.4",
|
|
5
5
|
"main": "./dist/index.cjs.js",
|
|
6
6
|
"module": "./dist/index.es.js",
|
|
@@ -31,12 +31,12 @@
|
|
|
31
31
|
],
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"@floating-ui/react": "^0.26.24",
|
|
34
|
-
"@stream-io/video-client": "1.
|
|
34
|
+
"@stream-io/video-client": "1.15.1",
|
|
35
35
|
"@stream-io/video-filters-web": "0.1.6",
|
|
36
|
-
"@stream-io/video-react-bindings": "1.
|
|
36
|
+
"@stream-io/video-react-bindings": "1.4.1",
|
|
37
37
|
"chart.js": "^4.4.4",
|
|
38
38
|
"clsx": "^2.0.0",
|
|
39
|
-
"react-chartjs-2": "^5.
|
|
39
|
+
"react-chartjs-2": "^5.3.0"
|
|
40
40
|
},
|
|
41
41
|
"peerDependencies": {
|
|
42
42
|
"react": "^17 || ^18 || ^19",
|
|
@@ -3,6 +3,7 @@ import clsx from 'clsx';
|
|
|
3
3
|
import {
|
|
4
4
|
AggregatedStatsReport,
|
|
5
5
|
CallStatsReport,
|
|
6
|
+
SfuModels,
|
|
6
7
|
} from '@stream-io/video-client';
|
|
7
8
|
import { useCallStateHooks, useI18n } from '@stream-io/video-react-bindings';
|
|
8
9
|
import { useFloating, useHover, useInteractions } from '@floating-ui/react';
|
|
@@ -270,9 +271,11 @@ const toFrameSize = (stats: AggregatedStatsReport) => {
|
|
|
270
271
|
};
|
|
271
272
|
|
|
272
273
|
const formatCodec = (callStatsReport: CallStatsReport): string => {
|
|
273
|
-
const {
|
|
274
|
-
if (!
|
|
275
|
-
|
|
274
|
+
const { codecPerTrackType } = callStatsReport.publisherStats;
|
|
275
|
+
if (!codecPerTrackType || !codecPerTrackType[SfuModels.TrackType.VIDEO]) {
|
|
276
|
+
return '';
|
|
277
|
+
}
|
|
278
|
+
const [, name] = codecPerTrackType[SfuModels.TrackType.VIDEO].split('/');
|
|
276
279
|
return name ? ` (${name})` : '';
|
|
277
280
|
};
|
|
278
281
|
|