@stream-io/video-react-sdk 1.40.2 → 1.41.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, hasVideo, hasScreenShare, OwnCapability, Browsers, VisibilityState, hasPausedTrack, createSoundDetector, SfuModels, isPinned, name, NoiseCancellationSettingsModeEnum, CallingState, paginatedLayoutSortPreset, CallTypes, defaultSortPreset, humanize, setSdkInfo } from '@stream-io/video-client';
1
+ import { hasAudio, hasScreenShareAudio, hasVideo, hasScreenShare, OwnCapability, Browsers, VisibilityState, hasPausedTrack, RequestPermissionRequestPermissionsEnum, createSoundDetector, SfuModels, isPinned, name, NoiseCancellationSettingsModeEnum, CallingState, paginatedLayoutSortPreset, CallTypes, defaultSortPreset, humanize, setSdkInfo } from '@stream-io/video-client';
2
2
  export * from '@stream-io/video-client';
3
3
  import { useCall, useCallStateHooks, useI18n, Restricted, useToggleCallRecording, useConnectedUser, useEffectEvent, useIsAudioConnecting, useIsVideoConnecting, StreamCallProvider, StreamVideoProvider, useSpeakerLayoutSortPreset, useStreamVideoClient } from '@stream-io/video-react-bindings';
4
4
  export * from '@stream-io/video-react-bindings';
@@ -1193,7 +1193,7 @@ const ScreenShareButton = (props) => {
1193
1193
  const { caption, optimisticUpdates } = props;
1194
1194
  const { useHasOngoingScreenShare, useScreenShareState, useCallSettings } = useCallStateHooks();
1195
1195
  const isSomeoneScreenSharing = useHasOngoingScreenShare();
1196
- const { hasPermission, requestPermission, isAwaitingPermission } = useRequestPermission(OwnCapability.SCREENSHARE);
1196
+ const { hasPermission, requestPermission, isAwaitingPermission } = useRequestPermission(RequestPermissionRequestPermissionsEnum.SCREENSHARE);
1197
1197
  const callSettings = useCallSettings();
1198
1198
  const isScreenSharingAllowed = callSettings?.screensharing.enabled;
1199
1199
  const { screenShare, optionsAwareIsMute, isTogglePending } = useScreenShareState({
@@ -1406,7 +1406,7 @@ const SpeakerTest = (props) => {
1406
1406
  const audioElementRef = useRef(null);
1407
1407
  const [isPlaying, setIsPlaying] = useState(false);
1408
1408
  const { t } = useI18n();
1409
- const { audioUrl = `https://unpkg.com/${"@stream-io/video-react-sdk"}@${"1.40.2"}/assets/piano.mp3`, } = props;
1409
+ const { audioUrl = `https://unpkg.com/${"@stream-io/video-react-sdk"}@${"1.41.0"}/assets/piano.mp3`, } = props;
1410
1410
  // Update audio output device when selection changes
1411
1411
  useEffect(() => {
1412
1412
  const audio = audioElementRef.current;
@@ -1542,7 +1542,7 @@ const ToggleAudioPreviewButton = (props) => {
1542
1542
  const ToggleAudioPublishingButton = (props) => {
1543
1543
  const { t } = useI18n();
1544
1544
  const { caption, Menu = jsx(DeviceSelectorAudioInput, { visualType: "list" }), menuPlacement = 'top', onMenuToggle, optimisticUpdates, ...restCompositeButtonProps } = props;
1545
- const { hasPermission, requestPermission, isAwaitingPermission } = useRequestPermission(OwnCapability.SEND_AUDIO);
1545
+ const { hasPermission, requestPermission, isAwaitingPermission } = useRequestPermission(RequestPermissionRequestPermissionsEnum.SEND_AUDIO);
1546
1546
  const { useMicrophoneState, useLocalParticipant } = useCallStateHooks();
1547
1547
  const { microphone, hasBrowserPermission, isPromptingPermission, isTogglePending, optionsAwareIsMute, } = useMicrophoneState({ optimisticUpdates });
1548
1548
  const localParticipant = useLocalParticipant();
@@ -1594,7 +1594,7 @@ const ToggleVideoPreviewButton = (props) => {
1594
1594
  const ToggleVideoPublishingButton = (props) => {
1595
1595
  const { t } = useI18n();
1596
1596
  const { caption, Menu = jsx(DeviceSelectorVideo, { visualType: "list" }), menuPlacement = 'top', onMenuToggle, optimisticUpdates, ...restCompositeButtonProps } = props;
1597
- const { hasPermission, requestPermission, isAwaitingPermission } = useRequestPermission(OwnCapability.SEND_VIDEO);
1597
+ const { hasPermission, requestPermission, isAwaitingPermission } = useRequestPermission(RequestPermissionRequestPermissionsEnum.SEND_VIDEO);
1598
1598
  const { useCameraState, useCallSettings, useLocalParticipant } = useCallStateHooks();
1599
1599
  const { camera, optionsAwareIsMute, hasBrowserPermission, isPromptingPermission, isTogglePending, } = useCameraState({ optimisticUpdates });
1600
1600
  const localParticipant = useLocalParticipant();
@@ -3279,7 +3279,7 @@ const checkCanJoinEarly = (startsAt, joinAheadTimeSeconds) => {
3279
3279
  return Date.now() >= +startsAt - (joinAheadTimeSeconds ?? 0) * 1000;
3280
3280
  };
3281
3281
 
3282
- const [major, minor, patch] = ("1.40.2").split('.');
3282
+ const [major, minor, patch] = ("1.41.0").split('.');
3283
3283
  setSdkInfo({
3284
3284
  type: SfuModels.SdkType.REACT,
3285
3285
  major,