@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/CHANGELOG.md +17 -4
- package/dist/embedded.cjs.js +4 -4
- package/dist/embedded.cjs.js.map +1 -1
- package/dist/embedded.es.js +5 -5
- package/dist/embedded.es.js.map +1 -1
- package/dist/index.cjs.js +5 -5
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +6 -6
- package/dist/index.es.js.map +1 -1
- package/dist/src/hooks/useRequestPermission.d.ts +2 -2
- package/package.json +3 -3
- package/src/components/CallControls/ScreenShareButton.tsx +5 -2
- package/src/components/CallControls/ToggleAudioButton.tsx +6 -2
- package/src/components/CallControls/ToggleVideoButton.tsx +6 -2
- package/src/core/components/ParticipantView/ParticipantActionsContextMenu.tsx +16 -12
- package/src/hooks/useRequestPermission.ts +4 -2
package/dist/index.cjs.js
CHANGED
|
@@ -1193,7 +1193,7 @@ const ScreenShareButton = (props) => {
|
|
|
1193
1193
|
const { caption, optimisticUpdates } = props;
|
|
1194
1194
|
const { useHasOngoingScreenShare, useScreenShareState, useCallSettings } = videoReactBindings.useCallStateHooks();
|
|
1195
1195
|
const isSomeoneScreenSharing = useHasOngoingScreenShare();
|
|
1196
|
-
const { hasPermission, requestPermission, isAwaitingPermission } = useRequestPermission(videoClient.
|
|
1196
|
+
const { hasPermission, requestPermission, isAwaitingPermission } = useRequestPermission(videoClient.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 = react.useRef(null);
|
|
1407
1407
|
const [isPlaying, setIsPlaying] = react.useState(false);
|
|
1408
1408
|
const { t } = videoReactBindings.useI18n();
|
|
1409
|
-
const { audioUrl = `https://unpkg.com/${"@stream-io/video-react-sdk"}@${"1.
|
|
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
|
react.useEffect(() => {
|
|
1412
1412
|
const audio = audioElementRef.current;
|
|
@@ -1542,7 +1542,7 @@ const ToggleAudioPreviewButton = (props) => {
|
|
|
1542
1542
|
const ToggleAudioPublishingButton = (props) => {
|
|
1543
1543
|
const { t } = videoReactBindings.useI18n();
|
|
1544
1544
|
const { caption, Menu = jsxRuntime.jsx(DeviceSelectorAudioInput, { visualType: "list" }), menuPlacement = 'top', onMenuToggle, optimisticUpdates, ...restCompositeButtonProps } = props;
|
|
1545
|
-
const { hasPermission, requestPermission, isAwaitingPermission } = useRequestPermission(videoClient.
|
|
1545
|
+
const { hasPermission, requestPermission, isAwaitingPermission } = useRequestPermission(videoClient.RequestPermissionRequestPermissionsEnum.SEND_AUDIO);
|
|
1546
1546
|
const { useMicrophoneState, useLocalParticipant } = videoReactBindings.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 } = videoReactBindings.useI18n();
|
|
1596
1596
|
const { caption, Menu = jsxRuntime.jsx(DeviceSelectorVideo, { visualType: "list" }), menuPlacement = 'top', onMenuToggle, optimisticUpdates, ...restCompositeButtonProps } = props;
|
|
1597
|
-
const { hasPermission, requestPermission, isAwaitingPermission } = useRequestPermission(videoClient.
|
|
1597
|
+
const { hasPermission, requestPermission, isAwaitingPermission } = useRequestPermission(videoClient.RequestPermissionRequestPermissionsEnum.SEND_VIDEO);
|
|
1598
1598
|
const { useCameraState, useCallSettings, useLocalParticipant } = videoReactBindings.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.
|
|
3282
|
+
const [major, minor, patch] = ("1.41.0").split('.');
|
|
3283
3283
|
videoClient.setSdkInfo({
|
|
3284
3284
|
type: videoClient.SfuModels.SdkType.REACT,
|
|
3285
3285
|
major,
|