@stream-io/video-react-native-sdk 1.22.2 → 1.23.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 +26 -0
- package/android/src/main/java/com/streamvideo/reactnative/callmanager/ProximityManager.kt +183 -0
- package/android/src/main/java/com/streamvideo/reactnative/callmanager/StreamInCallManagerModule.kt +12 -1
- package/dist/commonjs/components/Livestream/LivestreamPlayer/LivestreamPlayer.js +3 -2
- package/dist/commonjs/components/Livestream/LivestreamPlayer/LivestreamPlayer.js.map +1 -1
- package/dist/commonjs/components/Participant/FloatingParticipantView/index.js +13 -6
- package/dist/commonjs/components/Participant/FloatingParticipantView/index.js.map +1 -1
- package/dist/commonjs/components/Participant/FloatingParticipantView/useFloatingVideoDimensions.js +30 -0
- package/dist/commonjs/components/Participant/FloatingParticipantView/useFloatingVideoDimensions.js.map +1 -0
- package/dist/commonjs/constants/index.js +1 -6
- package/dist/commonjs/constants/index.js.map +1 -1
- package/dist/commonjs/hooks/useTrackDimensions.js +1 -1
- package/dist/commonjs/hooks/useTrackDimensions.js.map +1 -1
- package/dist/commonjs/version.js +1 -1
- package/dist/module/components/Livestream/LivestreamPlayer/LivestreamPlayer.js +3 -2
- package/dist/module/components/Livestream/LivestreamPlayer/LivestreamPlayer.js.map +1 -1
- package/dist/module/components/Participant/FloatingParticipantView/index.js +14 -7
- package/dist/module/components/Participant/FloatingParticipantView/index.js.map +1 -1
- package/dist/module/components/Participant/FloatingParticipantView/useFloatingVideoDimensions.js +23 -0
- package/dist/module/components/Participant/FloatingParticipantView/useFloatingVideoDimensions.js.map +1 -0
- package/dist/module/constants/index.js +0 -5
- package/dist/module/constants/index.js.map +1 -1
- package/dist/module/hooks/useTrackDimensions.js +1 -1
- package/dist/module/hooks/useTrackDimensions.js.map +1 -1
- package/dist/module/version.js +1 -1
- package/dist/typescript/components/Livestream/LivestreamPlayer/LivestreamPlayer.d.ts +3 -3
- package/dist/typescript/components/Livestream/LivestreamPlayer/LivestreamPlayer.d.ts.map +1 -1
- package/dist/typescript/components/Participant/FloatingParticipantView/index.d.ts.map +1 -1
- package/dist/typescript/components/Participant/FloatingParticipantView/useFloatingVideoDimensions.d.ts +9 -0
- package/dist/typescript/components/Participant/FloatingParticipantView/useFloatingVideoDimensions.d.ts.map +1 -0
- package/dist/typescript/constants/index.d.ts +0 -5
- package/dist/typescript/constants/index.d.ts.map +1 -1
- package/dist/typescript/hooks/useTrackDimensions.d.ts +1 -1
- package/dist/typescript/hooks/useTrackDimensions.d.ts.map +1 -1
- package/dist/typescript/version.d.ts +1 -1
- package/ios/StreamInCallManager.swift +105 -38
- package/package.json +3 -3
- package/src/components/Livestream/LivestreamPlayer/LivestreamPlayer.tsx +5 -3
- package/src/components/Participant/FloatingParticipantView/index.tsx +20 -6
- package/src/components/Participant/FloatingParticipantView/useFloatingVideoDimensions.tsx +36 -0
- package/src/constants/index.ts +0 -6
- package/src/hooks/useTrackDimensions.ts +2 -2
- package/src/version.ts +1 -1
package/src/constants/index.ts
CHANGED
|
@@ -11,10 +11,10 @@ import { NativeEventEmitter, NativeModules } from 'react-native';
|
|
|
11
11
|
* `tracktype` should be 'videoTrack' for video track and 'screenShareTrack' for screen share track.
|
|
12
12
|
*/
|
|
13
13
|
export function useTrackDimensions(
|
|
14
|
-
participant: StreamVideoParticipant,
|
|
14
|
+
participant: StreamVideoParticipant | undefined,
|
|
15
15
|
trackType: VideoTrackType,
|
|
16
16
|
) {
|
|
17
|
-
const { videoStream, screenShareStream } = participant;
|
|
17
|
+
const { videoStream, screenShareStream } = participant || {};
|
|
18
18
|
const stream =
|
|
19
19
|
trackType === 'screenShareTrack' ? screenShareStream : videoStream;
|
|
20
20
|
const [track] = stream?.getVideoTracks() ?? [];
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const version = '1.
|
|
1
|
+
export const version = '1.23.0';
|