@stream-io/video-react-sdk 0.2.4 → 0.2.6
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/dist/src/components/CallControls/ScreenShareButton.js +2 -1
- package/dist/src/components/CallControls/ScreenShareButton.js.map +1 -1
- package/dist/src/components/CallControls/ToggleAudioButton.js +2 -1
- package/dist/src/components/CallControls/ToggleAudioButton.js.map +1 -1
- package/dist/src/components/CallControls/ToggleVideoButton.js +2 -1
- package/dist/src/components/CallControls/ToggleVideoButton.js.map +1 -1
- package/dist/src/components/CallParticipantsList/CallParticipantListHeader.js +2 -1
- package/dist/src/components/CallParticipantsList/CallParticipantListHeader.js.map +1 -1
- package/dist/src/components/CallParticipantsList/CallParticipantsList.js +3 -1
- package/dist/src/components/CallParticipantsList/CallParticipantsList.js.map +1 -1
- package/dist/src/components/CallRecordingList/CallRecordingListHeader.js.map +1 -1
- package/dist/src/components/CallRecordingList/CallRecordingListItem.js.map +1 -1
- package/dist/src/components/CallStats/CallStats.js +2 -1
- package/dist/src/components/CallStats/CallStats.js.map +1 -1
- package/dist/src/components/Debug/DebugStatsView.js +2 -1
- package/dist/src/components/Debug/DebugStatsView.js.map +1 -1
- package/dist/src/components/Notification/SpeakingWhileMutedNotification.js +2 -1
- package/dist/src/components/Notification/SpeakingWhileMutedNotification.js.map +1 -1
- package/dist/src/components/Permissions/PermissionRequests.js +2 -1
- package/dist/src/components/Permissions/PermissionRequests.js.map +1 -1
- package/dist/src/components/RingingCall/RingingCall.js +3 -2
- package/dist/src/components/RingingCall/RingingCall.js.map +1 -1
- package/dist/src/components/RingingCall/RingingCallControls.js +2 -1
- package/dist/src/components/RingingCall/RingingCallControls.js.map +1 -1
- package/dist/src/components/Tooltip/WithTooltip.js.map +1 -1
- package/dist/src/core/components/CallLayout/PaginatedGridLayout.js +2 -1
- package/dist/src/core/components/CallLayout/PaginatedGridLayout.js.map +1 -1
- package/dist/src/core/components/CallLayout/SpeakerLayout.js +2 -1
- package/dist/src/core/components/CallLayout/SpeakerLayout.js.map +1 -1
- package/dist/src/core/components/ParticipantView/ParticipantView.js +4 -3
- package/dist/src/core/components/ParticipantView/ParticipantView.js.map +1 -1
- package/dist/src/core/contexts/MediaDevicesContext.js +2 -1
- package/dist/src/core/contexts/MediaDevicesContext.js.map +1 -1
- package/dist/src/core/hooks/useAudioPublisher.js +2 -1
- package/dist/src/core/hooks/useAudioPublisher.js.map +1 -1
- package/dist/src/core/hooks/useVideoPublisher.js +2 -1
- package/dist/src/core/hooks/useVideoPublisher.js.map +1 -1
- package/dist/src/hooks/useToggleAudioMuteState.js +2 -1
- package/dist/src/hooks/useToggleAudioMuteState.js.map +1 -1
- package/dist/src/hooks/useToggleCallRecording.js +2 -1
- package/dist/src/hooks/useToggleCallRecording.js.map +1 -1
- package/dist/src/hooks/useToggleScreenShare.js +3 -2
- package/dist/src/hooks/useToggleScreenShare.js.map +1 -1
- package/dist/src/hooks/useToggleVideoMuteState.js +2 -1
- package/dist/src/hooks/useToggleVideoMuteState.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +2 -2
- package/src/components/CallControls/ScreenShareButton.tsx +2 -1
- package/src/components/CallControls/ToggleAudioButton.tsx +2 -1
- package/src/components/CallControls/ToggleVideoButton.tsx +2 -1
- package/src/components/CallParticipantsList/CallParticipantListHeader.tsx +2 -1
- package/src/components/CallParticipantsList/CallParticipantsList.tsx +8 -6
- package/src/components/CallRecordingList/CallRecordingListHeader.tsx +0 -1
- package/src/components/CallRecordingList/CallRecordingListItem.tsx +1 -1
- package/src/components/CallStats/CallStats.tsx +2 -1
- package/src/components/Debug/DebugStatsView.tsx +2 -1
- package/src/components/Notification/SpeakingWhileMutedNotification.tsx +2 -1
- package/src/components/Permissions/PermissionRequests.tsx +2 -1
- package/src/components/RingingCall/RingingCall.tsx +3 -3
- package/src/components/RingingCall/RingingCallControls.tsx +2 -1
- package/src/components/Tooltip/WithTooltip.tsx +1 -1
- package/src/core/components/CallLayout/PaginatedGridLayout.tsx +3 -6
- package/src/core/components/CallLayout/SpeakerLayout.tsx +2 -1
- package/src/core/components/ParticipantView/ParticipantView.tsx +4 -1
- package/src/core/contexts/MediaDevicesContext.tsx +3 -6
- package/src/core/hooks/useAudioPublisher.ts +3 -6
- package/src/core/hooks/useVideoPublisher.ts +7 -7
- package/src/hooks/useToggleAudioMuteState.ts +2 -1
- package/src/hooks/useToggleCallRecording.ts +2 -5
- package/src/hooks/useToggleScreenShare.ts +3 -2
- package/src/hooks/useToggleVideoMuteState.ts +2 -1
|
@@ -9,13 +9,7 @@ import {
|
|
|
9
9
|
watchForAddedDefaultVideoDevice,
|
|
10
10
|
watchForDisconnectedVideoDevice,
|
|
11
11
|
} from '@stream-io/video-client';
|
|
12
|
-
import {
|
|
13
|
-
useCall,
|
|
14
|
-
useCallCallingState,
|
|
15
|
-
useCallMetadata,
|
|
16
|
-
useCallState,
|
|
17
|
-
useLocalParticipant,
|
|
18
|
-
} from '@stream-io/video-react-bindings';
|
|
12
|
+
import { useCall, useCallStateHooks } from '@stream-io/video-react-bindings';
|
|
19
13
|
import { useDebugPreferredVideoCodec } from '../../components/Debug/useIsDebugMode';
|
|
20
14
|
import { useHasBrowserPermissions } from './useDevices';
|
|
21
15
|
|
|
@@ -36,6 +30,12 @@ export const useVideoPublisher = ({
|
|
|
36
30
|
videoDeviceId,
|
|
37
31
|
}: VideoPublisherInit) => {
|
|
38
32
|
const call = useCall();
|
|
33
|
+
const {
|
|
34
|
+
useCallState,
|
|
35
|
+
useCallCallingState,
|
|
36
|
+
useLocalParticipant,
|
|
37
|
+
useCallMetadata,
|
|
38
|
+
} = useCallStateHooks();
|
|
39
39
|
const callState = useCallState();
|
|
40
40
|
const callingState = useCallCallingState();
|
|
41
41
|
const participant = useLocalParticipant();
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useCallback, useRef } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { useCallStateHooks } from '@stream-io/video-react-bindings';
|
|
3
3
|
import { OwnCapability, SfuModels } from '@stream-io/video-client';
|
|
4
4
|
|
|
5
5
|
import { useMediaDevices } from '../core';
|
|
@@ -7,6 +7,7 @@ import { useRequestPermission } from './useRequestPermission';
|
|
|
7
7
|
|
|
8
8
|
export const useToggleAudioMuteState = () => {
|
|
9
9
|
const { publishAudioStream, stopPublishingAudio } = useMediaDevices();
|
|
10
|
+
const { useLocalParticipant } = useCallStateHooks();
|
|
10
11
|
const localParticipant = useLocalParticipant();
|
|
11
12
|
|
|
12
13
|
const { isAwaitingPermission, requestPermission } = useRequestPermission(
|
|
@@ -1,12 +1,9 @@
|
|
|
1
1
|
import { useCallback, useEffect, useState } from 'react';
|
|
2
|
-
|
|
3
|
-
import {
|
|
4
|
-
useCall,
|
|
5
|
-
useIsCallRecordingInProgress,
|
|
6
|
-
} from '@stream-io/video-react-bindings';
|
|
2
|
+
import { useCall, useCallStateHooks } from '@stream-io/video-react-bindings';
|
|
7
3
|
|
|
8
4
|
export const useToggleCallRecording = () => {
|
|
9
5
|
const call = useCall();
|
|
6
|
+
const { useIsCallRecordingInProgress } = useCallStateHooks();
|
|
10
7
|
const isCallRecordingInProgress = useIsCallRecordingInProgress();
|
|
11
8
|
const [isAwaitingResponse, setIsAwaitingResponse] = useState(false);
|
|
12
9
|
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { useCallback, useRef } from 'react';
|
|
2
|
-
import { useCall,
|
|
2
|
+
import { useCall, useCallStateHooks } from '@stream-io/video-react-bindings';
|
|
3
3
|
import {
|
|
4
|
+
getScreenShareStream,
|
|
4
5
|
OwnCapability,
|
|
5
6
|
SfuModels,
|
|
6
|
-
getScreenShareStream,
|
|
7
7
|
} from '@stream-io/video-client';
|
|
8
8
|
import { useRequestPermission } from './useRequestPermission';
|
|
9
9
|
|
|
10
10
|
export const useToggleScreenShare = () => {
|
|
11
|
+
const { useLocalParticipant } = useCallStateHooks();
|
|
11
12
|
const localParticipant = useLocalParticipant();
|
|
12
13
|
const call = useCall();
|
|
13
14
|
const isScreenSharingReference = useRef(false);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useCallback, useRef } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { useCallStateHooks } from '@stream-io/video-react-bindings';
|
|
3
3
|
import { OwnCapability, SfuModels } from '@stream-io/video-client';
|
|
4
4
|
|
|
5
5
|
import { useMediaDevices } from '../core';
|
|
@@ -7,6 +7,7 @@ import { useRequestPermission } from './useRequestPermission';
|
|
|
7
7
|
|
|
8
8
|
export const useToggleVideoMuteState = () => {
|
|
9
9
|
const { publishVideoStream, stopPublishingVideo } = useMediaDevices();
|
|
10
|
+
const { useLocalParticipant } = useCallStateHooks();
|
|
10
11
|
const localParticipant = useLocalParticipant();
|
|
11
12
|
|
|
12
13
|
const { isAwaitingPermission, requestPermission } = useRequestPermission(
|