@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/dist/index.es.js CHANGED
@@ -1,4 +1,4 @@
1
- import { hasAudio, hasScreenShareAudio, CallingState, hasVideo, hasScreenShare, OwnCapability, Browsers, VisibilityState, getLogger, disposeOfMediaStream, isPinned, name, NoiseCancellationSettingsModeEnum, SfuModels, paginatedLayoutSortPreset, combineComparators, screenSharing, speakerLayoutSortPreset, CallTypes, defaultSortPreset, setSdkInfo } from '@stream-io/video-client';
1
+ import { hasAudio, hasScreenShareAudio, CallingState, hasVideo, hasScreenShare, OwnCapability, Browsers, VisibilityState, getLogger, disposeOfMediaStream, SfuModels, isPinned, name, NoiseCancellationSettingsModeEnum, paginatedLayoutSortPreset, combineComparators, screenSharing, speakerLayoutSortPreset, CallTypes, defaultSortPreset, setSdkInfo } from '@stream-io/video-client';
2
2
  export * from '@stream-io/video-client';
3
3
  import { useCall, useCallStateHooks, useI18n, Restricted, useToggleCallRecording, useConnectedUser, StreamCallProvider, StreamVideoProvider, useStreamVideoClient } from '@stream-io/video-react-bindings';
4
4
  export * from '@stream-io/video-react-bindings';
@@ -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[SfuModels.TrackType.VIDEO]) {
1538
1538
  return '';
1539
- const [, name] = codec.split('/');
1539
+ }
1540
+ const [, name] = codecPerTrackType[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 (jsx(StreamCall, { call: call, children: 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
  setSdkInfo({
2578
2579
  type: SfuModels.SdkType.REACT,
2579
2580
  major,