@stream-io/video-react-native-sdk 0.1.10 → 0.1.12
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 +14 -0
- package/android/src/main/java/com/streamvideo/reactnative/StreamVideoReactNative.kt +19 -1
- package/android/src/main/java/com/streamvideo/reactnative/StreamVideoReactNativeModule.kt +82 -2
- package/dist/commonjs/components/Call/CallContent/CallContent.js +9 -7
- package/dist/commonjs/components/Call/CallContent/CallContent.js.map +1 -1
- package/dist/commonjs/components/Call/CallLayout/CallParticipantsGrid.js +7 -2
- package/dist/commonjs/components/Call/CallLayout/CallParticipantsGrid.js.map +1 -1
- package/dist/commonjs/components/Call/CallLayout/CallParticipantsSpotlight.js +3 -1
- package/dist/commonjs/components/Call/CallLayout/CallParticipantsSpotlight.js.map +1 -1
- package/dist/commonjs/components/Livestream/HostLivestream/HostLivestream.js +71 -0
- package/dist/commonjs/components/Livestream/HostLivestream/HostLivestream.js.map +1 -0
- package/dist/commonjs/components/Livestream/HostLivestream/index.js +17 -0
- package/dist/commonjs/components/Livestream/HostLivestream/index.js.map +1 -0
- package/dist/commonjs/components/Livestream/LivestreamControls/HostLivestreamControls.js +69 -0
- package/dist/commonjs/components/Livestream/LivestreamControls/HostLivestreamControls.js.map +1 -0
- package/dist/commonjs/components/Livestream/LivestreamControls/HostStartStreamButton.js +113 -0
- package/dist/commonjs/components/Livestream/LivestreamControls/HostStartStreamButton.js.map +1 -0
- package/dist/commonjs/components/Livestream/LivestreamControls/LivestreamAudioControlButton.js +70 -0
- package/dist/commonjs/components/Livestream/LivestreamControls/LivestreamAudioControlButton.js.map +1 -0
- package/dist/commonjs/components/Livestream/LivestreamControls/LivestreamMediaControls.js +38 -0
- package/dist/commonjs/components/Livestream/LivestreamControls/LivestreamMediaControls.js.map +1 -0
- package/dist/commonjs/components/Livestream/LivestreamControls/LivestreamVideoControlButton.js +70 -0
- package/dist/commonjs/components/Livestream/LivestreamControls/LivestreamVideoControlButton.js.map +1 -0
- package/dist/commonjs/components/Livestream/LivestreamControls/ViewerLeaveStreamButton.js +83 -0
- package/dist/commonjs/components/Livestream/LivestreamControls/ViewerLeaveStreamButton.js.map +1 -0
- package/dist/commonjs/components/Livestream/LivestreamControls/ViewerLivestreamControls.js +64 -0
- package/dist/commonjs/components/Livestream/LivestreamControls/ViewerLivestreamControls.js.map +1 -0
- package/dist/commonjs/components/Livestream/LivestreamControls/index.js +61 -0
- package/dist/commonjs/components/Livestream/LivestreamControls/index.js.map +1 -0
- package/dist/commonjs/components/Livestream/LivestreamLayout/LivestreamLayout.js +65 -0
- package/dist/commonjs/components/Livestream/LivestreamLayout/LivestreamLayout.js.map +1 -0
- package/dist/commonjs/components/Livestream/LivestreamLayout/index.js +17 -0
- package/dist/commonjs/components/Livestream/LivestreamLayout/index.js.map +1 -0
- package/dist/commonjs/components/Livestream/LivestreamTopView/DurationBadge.js +144 -0
- package/dist/commonjs/components/Livestream/LivestreamTopView/DurationBadge.js.map +1 -0
- package/dist/commonjs/components/Livestream/LivestreamTopView/FollowerCount.js +71 -0
- package/dist/commonjs/components/Livestream/LivestreamTopView/FollowerCount.js.map +1 -0
- package/dist/commonjs/components/Livestream/LivestreamTopView/HostLivestreamTopView.js +87 -0
- package/dist/commonjs/components/Livestream/LivestreamTopView/HostLivestreamTopView.js.map +1 -0
- package/dist/commonjs/components/Livestream/LivestreamTopView/LiveIndicator.js +55 -0
- package/dist/commonjs/components/Livestream/LivestreamTopView/LiveIndicator.js.map +1 -0
- package/dist/commonjs/components/Livestream/LivestreamTopView/ViewerLivestreamTopView.js +80 -0
- package/dist/commonjs/components/Livestream/LivestreamTopView/ViewerLivestreamTopView.js.map +1 -0
- package/dist/commonjs/components/Livestream/LivestreamTopView/index.js +50 -0
- package/dist/commonjs/components/Livestream/LivestreamTopView/index.js.map +1 -0
- package/dist/commonjs/components/Livestream/ViewerLivestream/ViewerLivestream.js +88 -0
- package/dist/commonjs/components/Livestream/ViewerLivestream/ViewerLivestream.js.map +1 -0
- package/dist/commonjs/components/Livestream/ViewerLivestream/index.js +17 -0
- package/dist/commonjs/components/Livestream/ViewerLivestream/index.js.map +1 -0
- package/dist/commonjs/components/Livestream/index.js +61 -0
- package/dist/commonjs/components/Livestream/index.js.map +1 -0
- package/dist/commonjs/components/index.js +11 -0
- package/dist/commonjs/components/index.js.map +1 -1
- package/dist/commonjs/hooks/index.js +22 -0
- package/dist/commonjs/hooks/index.js.map +1 -1
- package/dist/commonjs/hooks/useAutoEnterPiPEffect.js +20 -0
- package/dist/commonjs/hooks/useAutoEnterPiPEffect.js.map +1 -0
- package/dist/commonjs/hooks/useIsInPiPMode.js +25 -0
- package/dist/commonjs/hooks/useIsInPiPMode.js.map +1 -0
- package/dist/commonjs/hooks/usePaginatedLayoutSortPreset.js +26 -0
- package/dist/commonjs/hooks/usePaginatedLayoutSortPreset.js.map +1 -0
- package/dist/commonjs/icons/EndStreamIcon.js +20 -0
- package/dist/commonjs/icons/EndStreamIcon.js.map +1 -0
- package/dist/commonjs/icons/Eye.js +20 -0
- package/dist/commonjs/icons/Eye.js.map +1 -0
- package/dist/commonjs/icons/LeaveStreamIcon.js +20 -0
- package/dist/commonjs/icons/LeaveStreamIcon.js.map +1 -0
- package/dist/commonjs/icons/ShieldBadge.js +20 -0
- package/dist/commonjs/icons/ShieldBadge.js.map +1 -0
- package/dist/commonjs/icons/StartStreamIcon.js +20 -0
- package/dist/commonjs/icons/StartStreamIcon.js.map +1 -0
- package/dist/commonjs/icons/index.js +55 -0
- package/dist/commonjs/icons/index.js.map +1 -1
- package/dist/commonjs/providers/MediaStreamManagement.js +15 -2
- package/dist/commonjs/providers/MediaStreamManagement.js.map +1 -1
- package/dist/commonjs/theme/theme.js +70 -0
- package/dist/commonjs/theme/theme.js.map +1 -1
- package/dist/commonjs/translations/en.json +6 -1
- package/dist/commonjs/utils/enterPiPAndroid.js +15 -0
- package/dist/commonjs/utils/enterPiPAndroid.js.map +1 -0
- package/dist/commonjs/utils/index.js +12 -0
- package/dist/commonjs/utils/index.js.map +1 -1
- package/dist/commonjs/version.js +1 -1
- package/dist/module/components/Call/CallContent/CallContent.js +10 -7
- package/dist/module/components/Call/CallContent/CallContent.js.map +1 -1
- package/dist/module/components/Call/CallLayout/CallParticipantsGrid.js +7 -2
- package/dist/module/components/Call/CallLayout/CallParticipantsGrid.js.map +1 -1
- package/dist/module/components/Call/CallLayout/CallParticipantsSpotlight.js +3 -1
- package/dist/module/components/Call/CallLayout/CallParticipantsSpotlight.js.map +1 -1
- package/dist/module/components/Livestream/HostLivestream/HostLivestream.js +64 -0
- package/dist/module/components/Livestream/HostLivestream/HostLivestream.js.map +1 -0
- package/dist/module/components/Livestream/HostLivestream/index.js +2 -0
- package/dist/module/components/Livestream/HostLivestream/index.js.map +1 -0
- package/dist/module/components/Livestream/LivestreamControls/HostLivestreamControls.js +62 -0
- package/dist/module/components/Livestream/LivestreamControls/HostLivestreamControls.js.map +1 -0
- package/dist/module/components/Livestream/LivestreamControls/HostStartStreamButton.js +105 -0
- package/dist/module/components/Livestream/LivestreamControls/HostStartStreamButton.js.map +1 -0
- package/dist/module/components/Livestream/LivestreamControls/LivestreamAudioControlButton.js +63 -0
- package/dist/module/components/Livestream/LivestreamControls/LivestreamAudioControlButton.js.map +1 -0
- package/dist/module/components/Livestream/LivestreamControls/LivestreamMediaControls.js +31 -0
- package/dist/module/components/Livestream/LivestreamControls/LivestreamMediaControls.js.map +1 -0
- package/dist/module/components/Livestream/LivestreamControls/LivestreamVideoControlButton.js +63 -0
- package/dist/module/components/Livestream/LivestreamControls/LivestreamVideoControlButton.js.map +1 -0
- package/dist/module/components/Livestream/LivestreamControls/ViewerLeaveStreamButton.js +75 -0
- package/dist/module/components/Livestream/LivestreamControls/ViewerLeaveStreamButton.js.map +1 -0
- package/dist/module/components/Livestream/LivestreamControls/ViewerLivestreamControls.js +57 -0
- package/dist/module/components/Livestream/LivestreamControls/ViewerLivestreamControls.js.map +1 -0
- package/dist/module/components/Livestream/LivestreamControls/index.js +6 -0
- package/dist/module/components/Livestream/LivestreamControls/index.js.map +1 -0
- package/dist/module/components/Livestream/LivestreamLayout/LivestreamLayout.js +58 -0
- package/dist/module/components/Livestream/LivestreamLayout/LivestreamLayout.js.map +1 -0
- package/dist/module/components/Livestream/LivestreamLayout/index.js +2 -0
- package/dist/module/components/Livestream/LivestreamLayout/index.js.map +1 -0
- package/dist/module/components/Livestream/LivestreamTopView/DurationBadge.js +136 -0
- package/dist/module/components/Livestream/LivestreamTopView/DurationBadge.js.map +1 -0
- package/dist/module/components/Livestream/LivestreamTopView/FollowerCount.js +64 -0
- package/dist/module/components/Livestream/LivestreamTopView/FollowerCount.js.map +1 -0
- package/dist/module/components/Livestream/LivestreamTopView/HostLivestreamTopView.js +80 -0
- package/dist/module/components/Livestream/LivestreamTopView/HostLivestreamTopView.js.map +1 -0
- package/dist/module/components/Livestream/LivestreamTopView/LiveIndicator.js +48 -0
- package/dist/module/components/Livestream/LivestreamTopView/LiveIndicator.js.map +1 -0
- package/dist/module/components/Livestream/LivestreamTopView/ViewerLivestreamTopView.js +73 -0
- package/dist/module/components/Livestream/LivestreamTopView/ViewerLivestreamTopView.js.map +1 -0
- package/dist/module/components/Livestream/LivestreamTopView/index.js +5 -0
- package/dist/module/components/Livestream/LivestreamTopView/index.js.map +1 -0
- package/dist/module/components/Livestream/ViewerLivestream/ViewerLivestream.js +81 -0
- package/dist/module/components/Livestream/ViewerLivestream/ViewerLivestream.js.map +1 -0
- package/dist/module/components/Livestream/ViewerLivestream/index.js +2 -0
- package/dist/module/components/Livestream/ViewerLivestream/index.js.map +1 -0
- package/dist/module/components/Livestream/index.js +6 -0
- package/dist/module/components/Livestream/index.js.map +1 -0
- package/dist/module/components/index.js +1 -0
- package/dist/module/components/index.js.map +1 -1
- package/dist/module/hooks/index.js +2 -0
- package/dist/module/hooks/index.js.map +1 -1
- package/dist/module/hooks/useAutoEnterPiPEffect.js +14 -0
- package/dist/module/hooks/useAutoEnterPiPEffect.js.map +1 -0
- package/dist/module/hooks/useIsInPiPMode.js +19 -0
- package/dist/module/hooks/useIsInPiPMode.js.map +1 -0
- package/dist/module/hooks/usePaginatedLayoutSortPreset.js +19 -0
- package/dist/module/hooks/usePaginatedLayoutSortPreset.js.map +1 -0
- package/dist/module/icons/EndStreamIcon.js +12 -0
- package/dist/module/icons/EndStreamIcon.js.map +1 -0
- package/dist/module/icons/Eye.js +12 -0
- package/dist/module/icons/Eye.js.map +1 -0
- package/dist/module/icons/LeaveStreamIcon.js +12 -0
- package/dist/module/icons/LeaveStreamIcon.js.map +1 -0
- package/dist/module/icons/ShieldBadge.js +12 -0
- package/dist/module/icons/ShieldBadge.js.map +1 -0
- package/dist/module/icons/StartStreamIcon.js +12 -0
- package/dist/module/icons/StartStreamIcon.js.map +1 -0
- package/dist/module/icons/index.js +5 -0
- package/dist/module/icons/index.js.map +1 -1
- package/dist/module/providers/MediaStreamManagement.js +15 -2
- package/dist/module/providers/MediaStreamManagement.js.map +1 -1
- package/dist/module/theme/theme.js +70 -0
- package/dist/module/theme/theme.js.map +1 -1
- package/dist/module/translations/en.json +6 -1
- package/dist/module/utils/enterPiPAndroid.js +9 -0
- package/dist/module/utils/enterPiPAndroid.js.map +1 -0
- package/dist/module/utils/index.js +1 -0
- package/dist/module/utils/index.js.map +1 -1
- package/dist/module/version.js +1 -1
- package/dist/typescript/components/Call/CallContent/CallContent.d.ts.map +1 -1
- package/dist/typescript/components/Call/CallLayout/CallParticipantsGrid.d.ts.map +1 -1
- package/dist/typescript/components/Call/CallLayout/CallParticipantsSpotlight.d.ts.map +1 -1
- package/dist/typescript/components/Livestream/HostLivestream/HostLivestream.d.ts +30 -0
- package/dist/typescript/components/Livestream/HostLivestream/HostLivestream.d.ts.map +1 -0
- package/dist/typescript/components/Livestream/HostLivestream/index.d.ts +2 -0
- package/dist/typescript/components/Livestream/HostLivestream/index.d.ts.map +1 -0
- package/dist/typescript/components/Livestream/LivestreamControls/HostLivestreamControls.d.ts +25 -0
- package/dist/typescript/components/Livestream/LivestreamControls/HostLivestreamControls.d.ts.map +1 -0
- package/dist/typescript/components/Livestream/LivestreamControls/HostStartStreamButton.d.ts +25 -0
- package/dist/typescript/components/Livestream/LivestreamControls/HostStartStreamButton.d.ts.map +1 -0
- package/dist/typescript/components/Livestream/LivestreamControls/LivestreamAudioControlButton.d.ts +6 -0
- package/dist/typescript/components/Livestream/LivestreamControls/LivestreamAudioControlButton.d.ts.map +1 -0
- package/dist/typescript/components/Livestream/LivestreamControls/LivestreamMediaControls.d.ts +10 -0
- package/dist/typescript/components/Livestream/LivestreamControls/LivestreamMediaControls.d.ts.map +1 -0
- package/dist/typescript/components/Livestream/LivestreamControls/LivestreamVideoControlButton.d.ts +6 -0
- package/dist/typescript/components/Livestream/LivestreamControls/LivestreamVideoControlButton.d.ts.map +1 -0
- package/dist/typescript/components/Livestream/LivestreamControls/ViewerLeaveStreamButton.d.ts +16 -0
- package/dist/typescript/components/Livestream/LivestreamControls/ViewerLeaveStreamButton.d.ts.map +1 -0
- package/dist/typescript/components/Livestream/LivestreamControls/ViewerLivestreamControls.d.ts +16 -0
- package/dist/typescript/components/Livestream/LivestreamControls/ViewerLivestreamControls.d.ts.map +1 -0
- package/dist/typescript/components/Livestream/LivestreamControls/index.d.ts +6 -0
- package/dist/typescript/components/Livestream/LivestreamControls/index.d.ts.map +1 -0
- package/dist/typescript/components/Livestream/LivestreamLayout/LivestreamLayout.d.ts +17 -0
- package/dist/typescript/components/Livestream/LivestreamLayout/LivestreamLayout.d.ts.map +1 -0
- package/dist/typescript/components/Livestream/LivestreamLayout/index.d.ts +2 -0
- package/dist/typescript/components/Livestream/LivestreamLayout/index.d.ts.map +1 -0
- package/dist/typescript/components/Livestream/LivestreamTopView/DurationBadge.d.ts +12 -0
- package/dist/typescript/components/Livestream/LivestreamTopView/DurationBadge.d.ts.map +1 -0
- package/dist/typescript/components/Livestream/LivestreamTopView/FollowerCount.d.ts +10 -0
- package/dist/typescript/components/Livestream/LivestreamTopView/FollowerCount.d.ts.map +1 -0
- package/dist/typescript/components/Livestream/LivestreamTopView/HostLivestreamTopView.d.ts +26 -0
- package/dist/typescript/components/Livestream/LivestreamTopView/HostLivestreamTopView.d.ts.map +1 -0
- package/dist/typescript/components/Livestream/LivestreamTopView/LiveIndicator.d.ts +10 -0
- package/dist/typescript/components/Livestream/LivestreamTopView/LiveIndicator.d.ts.map +1 -0
- package/dist/typescript/components/Livestream/LivestreamTopView/ViewerLivestreamTopView.d.ts +26 -0
- package/dist/typescript/components/Livestream/LivestreamTopView/ViewerLivestreamTopView.d.ts.map +1 -0
- package/dist/typescript/components/Livestream/LivestreamTopView/index.d.ts +5 -0
- package/dist/typescript/components/Livestream/LivestreamTopView/index.d.ts.map +1 -0
- package/dist/typescript/components/Livestream/ViewerLivestream/ViewerLivestream.d.ts +32 -0
- package/dist/typescript/components/Livestream/ViewerLivestream/ViewerLivestream.d.ts.map +1 -0
- package/dist/typescript/components/Livestream/ViewerLivestream/index.d.ts +2 -0
- package/dist/typescript/components/Livestream/ViewerLivestream/index.d.ts.map +1 -0
- package/dist/typescript/components/Livestream/index.d.ts +6 -0
- package/dist/typescript/components/Livestream/index.d.ts.map +1 -0
- package/dist/typescript/components/index.d.ts +1 -0
- package/dist/typescript/components/index.d.ts.map +1 -1
- package/dist/typescript/hooks/index.d.ts +2 -0
- package/dist/typescript/hooks/index.d.ts.map +1 -1
- package/dist/typescript/hooks/useAutoEnterPiPEffect.d.ts +2 -0
- package/dist/typescript/hooks/useAutoEnterPiPEffect.d.ts.map +1 -0
- package/dist/typescript/hooks/useIsInPiPMode.d.ts +2 -0
- package/dist/typescript/hooks/useIsInPiPMode.d.ts.map +1 -0
- package/dist/typescript/hooks/usePaginatedLayoutSortPreset.d.ts +3 -0
- package/dist/typescript/hooks/usePaginatedLayoutSortPreset.d.ts.map +1 -0
- package/dist/typescript/icons/EndStreamIcon.d.ts +3 -0
- package/dist/typescript/icons/EndStreamIcon.d.ts.map +1 -0
- package/dist/typescript/icons/Eye.d.ts +3 -0
- package/dist/typescript/icons/Eye.d.ts.map +1 -0
- package/dist/typescript/icons/LeaveStreamIcon.d.ts +3 -0
- package/dist/typescript/icons/LeaveStreamIcon.d.ts.map +1 -0
- package/dist/typescript/icons/ShieldBadge.d.ts +3 -0
- package/dist/typescript/icons/ShieldBadge.d.ts.map +1 -0
- package/dist/typescript/icons/StartStreamIcon.d.ts +3 -0
- package/dist/typescript/icons/StartStreamIcon.d.ts.map +1 -0
- package/dist/typescript/icons/index.d.ts +5 -0
- package/dist/typescript/icons/index.d.ts.map +1 -1
- package/dist/typescript/providers/MediaStreamManagement.d.ts.map +1 -1
- package/dist/typescript/theme/theme.d.ts +70 -0
- package/dist/typescript/theme/theme.d.ts.map +1 -1
- package/dist/typescript/translations/index.d.ts +6 -1
- package/dist/typescript/translations/index.d.ts.map +1 -1
- package/dist/typescript/utils/enterPiPAndroid.d.ts +2 -0
- package/dist/typescript/utils/enterPiPAndroid.d.ts.map +1 -0
- package/dist/typescript/utils/index.d.ts +1 -0
- package/dist/typescript/utils/index.d.ts.map +1 -1
- package/dist/typescript/version.d.ts +1 -1
- package/expo-config-plugin/dist/common/addNewLinesToMainActivity.d.ts +1 -0
- package/expo-config-plugin/dist/common/addNewLinesToMainActivity.js +16 -0
- package/expo-config-plugin/dist/common/types.d.ts +4 -0
- package/expo-config-plugin/dist/index.js +6 -2
- package/expo-config-plugin/dist/withAndroidManifest.d.ts +2 -1
- package/expo-config-plugin/dist/withAndroidManifest.js +20 -2
- package/expo-config-plugin/dist/withMainActivity.d.ts +4 -0
- package/expo-config-plugin/dist/withMainActivity.js +72 -0
- package/package.json +1 -1
- package/src/components/Call/CallContent/CallContent.tsx +15 -7
- package/src/components/Call/CallLayout/CallParticipantsGrid.tsx +16 -2
- package/src/components/Call/CallLayout/CallParticipantsSpotlight.tsx +4 -1
- package/src/components/Livestream/HostLivestream/HostLivestream.tsx +99 -0
- package/src/components/Livestream/HostLivestream/index.ts +1 -0
- package/src/components/Livestream/LivestreamControls/HostLivestreamControls.tsx +87 -0
- package/src/components/Livestream/LivestreamControls/HostStartStreamButton.tsx +163 -0
- package/src/components/Livestream/LivestreamControls/LivestreamAudioControlButton.tsx +78 -0
- package/src/components/Livestream/LivestreamControls/LivestreamMediaControls.tsx +32 -0
- package/src/components/Livestream/LivestreamControls/LivestreamVideoControlButton.tsx +78 -0
- package/src/components/Livestream/LivestreamControls/ViewerLeaveStreamButton.tsx +102 -0
- package/src/components/Livestream/LivestreamControls/ViewerLivestreamControls.tsx +75 -0
- package/src/components/Livestream/LivestreamControls/index.ts +5 -0
- package/src/components/Livestream/LivestreamLayout/LivestreamLayout.tsx +77 -0
- package/src/components/Livestream/LivestreamLayout/index.ts +1 -0
- package/src/components/Livestream/LivestreamTopView/DurationBadge.tsx +170 -0
- package/src/components/Livestream/LivestreamTopView/FollowerCount.tsx +74 -0
- package/src/components/Livestream/LivestreamTopView/HostLivestreamTopView.tsx +105 -0
- package/src/components/Livestream/LivestreamTopView/LiveIndicator.tsx +53 -0
- package/src/components/Livestream/LivestreamTopView/ViewerLivestreamTopView.tsx +102 -0
- package/src/components/Livestream/LivestreamTopView/index.ts +4 -0
- package/src/components/Livestream/ViewerLivestream/ViewerLivestream.tsx +126 -0
- package/src/components/Livestream/ViewerLivestream/index.ts +1 -0
- package/src/components/Livestream/index.ts +5 -0
- package/src/components/index.ts +1 -0
- package/src/hooks/index.ts +2 -0
- package/src/hooks/useAutoEnterPiPEffect.tsx +16 -0
- package/src/hooks/useIsInPiPMode.tsx +29 -0
- package/src/hooks/usePaginatedLayoutSortPreset.ts +27 -0
- package/src/icons/EndStreamIcon.tsx +13 -0
- package/src/icons/Eye.tsx +13 -0
- package/src/icons/LeaveStreamIcon.tsx +13 -0
- package/src/icons/ShieldBadge.tsx +13 -0
- package/src/icons/StartStreamIcon.tsx +13 -0
- package/src/icons/index.tsx +5 -0
- package/src/providers/MediaStreamManagement.tsx +14 -1
- package/src/theme/theme.ts +140 -0
- package/src/translations/en.json +6 -1
- package/src/utils/enterPiPAndroid.ts +11 -0
- package/src/utils/index.ts +1 -0
- package/src/version.ts +1 -1
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { StyleSheet, View } from 'react-native';
|
|
3
|
+
import { DurationBadge as DefaultDurationBadge } from './DurationBadge';
|
|
4
|
+
import { LiveIndicator as DefaultLiveIndicator } from './LiveIndicator';
|
|
5
|
+
import { FollowerCount as DefaultFollowerCount } from './FollowerCount';
|
|
6
|
+
import { useTheme } from '../../../contexts';
|
|
7
|
+
import { useCallStateHooks } from '@stream-io/video-react-bindings';
|
|
8
|
+
import { Z_INDEX } from '../../../constants';
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Props for the HostLivestreamTopView component.
|
|
12
|
+
*/
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* The HostLivestreamTopView component displays the top view component of the host's live stream.
|
|
16
|
+
*/
|
|
17
|
+
export const HostLivestreamTopView = _ref => {
|
|
18
|
+
let {
|
|
19
|
+
DurationBadge = DefaultDurationBadge,
|
|
20
|
+
LiveIndicator = DefaultLiveIndicator,
|
|
21
|
+
FollowerCount = DefaultFollowerCount
|
|
22
|
+
} = _ref;
|
|
23
|
+
const {
|
|
24
|
+
useIsCallLive,
|
|
25
|
+
useIsCallBroadcastingInProgress
|
|
26
|
+
} = useCallStateHooks();
|
|
27
|
+
const isCallLive = useIsCallLive();
|
|
28
|
+
const isBroadcasting = useIsCallBroadcastingInProgress();
|
|
29
|
+
const liveOrBroadcasting = isCallLive || isBroadcasting;
|
|
30
|
+
const {
|
|
31
|
+
theme: {
|
|
32
|
+
colors,
|
|
33
|
+
hostLivestreamTopView
|
|
34
|
+
}
|
|
35
|
+
} = useTheme();
|
|
36
|
+
return /*#__PURE__*/React.createElement(View, {
|
|
37
|
+
style: [styles.container, {
|
|
38
|
+
backgroundColor: colors.static_overlay
|
|
39
|
+
}, hostLivestreamTopView.container]
|
|
40
|
+
}, /*#__PURE__*/React.createElement(View, {
|
|
41
|
+
style: [styles.leftElement, hostLivestreamTopView.leftElement]
|
|
42
|
+
}, DurationBadge && /*#__PURE__*/React.createElement(DurationBadge, {
|
|
43
|
+
mode: "host"
|
|
44
|
+
})), /*#__PURE__*/React.createElement(View, {
|
|
45
|
+
style: [styles.centerElement, hostLivestreamTopView.centerElement]
|
|
46
|
+
}), /*#__PURE__*/React.createElement(View, {
|
|
47
|
+
style: [styles.rightElement, hostLivestreamTopView.rightElement]
|
|
48
|
+
}, /*#__PURE__*/React.createElement(View, {
|
|
49
|
+
style: [styles.liveInfo, hostLivestreamTopView.liveInfo]
|
|
50
|
+
}, liveOrBroadcasting && LiveIndicator && /*#__PURE__*/React.createElement(LiveIndicator, null), FollowerCount && /*#__PURE__*/React.createElement(FollowerCount, null))));
|
|
51
|
+
};
|
|
52
|
+
const styles = StyleSheet.create({
|
|
53
|
+
container: {
|
|
54
|
+
position: 'absolute',
|
|
55
|
+
top: 0,
|
|
56
|
+
flexDirection: 'row',
|
|
57
|
+
alignItems: 'center',
|
|
58
|
+
paddingVertical: 16,
|
|
59
|
+
paddingHorizontal: 8,
|
|
60
|
+
borderBottomEndRadius: 8,
|
|
61
|
+
borderBottomStartRadius: 8,
|
|
62
|
+
zIndex: Z_INDEX.IN_FRONT
|
|
63
|
+
},
|
|
64
|
+
liveInfo: {
|
|
65
|
+
flexDirection: 'row'
|
|
66
|
+
},
|
|
67
|
+
leftElement: {
|
|
68
|
+
flex: 1,
|
|
69
|
+
alignItems: 'flex-start'
|
|
70
|
+
},
|
|
71
|
+
centerElement: {
|
|
72
|
+
flex: 1,
|
|
73
|
+
alignItems: 'center'
|
|
74
|
+
},
|
|
75
|
+
rightElement: {
|
|
76
|
+
flex: 1,
|
|
77
|
+
alignItems: 'flex-end'
|
|
78
|
+
}
|
|
79
|
+
});
|
|
80
|
+
//# sourceMappingURL=HostLivestreamTopView.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","StyleSheet","View","DurationBadge","DefaultDurationBadge","LiveIndicator","DefaultLiveIndicator","FollowerCount","DefaultFollowerCount","useTheme","useCallStateHooks","Z_INDEX","HostLivestreamTopView","_ref","useIsCallLive","useIsCallBroadcastingInProgress","isCallLive","isBroadcasting","liveOrBroadcasting","theme","colors","hostLivestreamTopView","createElement","style","styles","container","backgroundColor","static_overlay","leftElement","mode","centerElement","rightElement","liveInfo","create","position","top","flexDirection","alignItems","paddingVertical","paddingHorizontal","borderBottomEndRadius","borderBottomStartRadius","zIndex","IN_FRONT","flex"],"sourceRoot":"../../../../../src","sources":["components/Livestream/LivestreamTopView/HostLivestreamTopView.tsx"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,UAAU,EAAEC,IAAI,QAAQ,cAAc;AAC/C,SACEC,aAAa,IAAIC,oBAAoB,QAEhC,iBAAiB;AACxB,SACEC,aAAa,IAAIC,oBAAoB,QAEhC,iBAAiB;AACxB,SACEC,aAAa,IAAIC,oBAAoB,QAEhC,iBAAiB;AACxB,SAASC,QAAQ,QAAQ,mBAAmB;AAC5C,SAASC,iBAAiB,QAAQ,iCAAiC;AACnE,SAASC,OAAO,QAAQ,oBAAoB;;AAE5C;AACA;AACA;;AAgBA;AACA;AACA;AACA,OAAO,MAAMC,qBAAqB,GAAGC,IAAA,IAIH;EAAA,IAJI;IACpCV,aAAa,GAAGC,oBAAoB;IACpCC,aAAa,GAAGC,oBAAoB;IACpCC,aAAa,GAAGC;EACU,CAAC,GAAAK,IAAA;EAC3B,MAAM;IAAEC,aAAa;IAAEC;EAAgC,CAAC,GACtDL,iBAAiB,CAAC,CAAC;EACrB,MAAMM,UAAU,GAAGF,aAAa,CAAC,CAAC;EAClC,MAAMG,cAAc,GAAGF,+BAA+B,CAAC,CAAC;EAExD,MAAMG,kBAAkB,GAAGF,UAAU,IAAIC,cAAc;EACvD,MAAM;IACJE,KAAK,EAAE;MAAEC,MAAM;MAAEC;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AAqB,EAAE,CAAC;IACxBC,uBAAuB,EAAE,CAAC;IAC1BC,MAAM,EAAE/B,OAAO,CAACgC;EAClB,CAAC;EACDX,QAAQ,EAAE;IACRI,aAAa,EAAE;EACjB,CAAC;EACDR,WAAW,EAAE;IACXgB,IAAI,EAAE,CAAC;IACPP,UAAU,EAAE;EACd,CAAC;EACDP,aAAa,EAAE;IACbc,IAAI,EAAE,CAAC;IACPP,UAAU,EAAE;EACd,CAAC;EACDN,YAAY,EAAE;IACZa,IAAI,EAAE,CAAC;IACPP,UAAU,EAAE;EACd;AACF,CAAC,CAAC"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { StyleSheet, Text, View } from 'react-native';
|
|
3
|
+
import { useTheme } from '../../../contexts';
|
|
4
|
+
import { useI18n } from '@stream-io/video-react-bindings';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Props for the LiveIndicator component.
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* The LiveIndicator component displays whether the live stream is live or not.
|
|
12
|
+
*/
|
|
13
|
+
export const LiveIndicator = _ref => {
|
|
14
|
+
let {} = _ref;
|
|
15
|
+
const {
|
|
16
|
+
theme: {
|
|
17
|
+
colors,
|
|
18
|
+
typefaces,
|
|
19
|
+
liveIndicator
|
|
20
|
+
}
|
|
21
|
+
} = useTheme();
|
|
22
|
+
const {
|
|
23
|
+
t
|
|
24
|
+
} = useI18n();
|
|
25
|
+
return /*#__PURE__*/React.createElement(View, {
|
|
26
|
+
style: [styles.container, {
|
|
27
|
+
backgroundColor: colors.primary
|
|
28
|
+
}, liveIndicator.container]
|
|
29
|
+
}, /*#__PURE__*/React.createElement(Text, {
|
|
30
|
+
style: [styles.label, {
|
|
31
|
+
color: colors.static_white
|
|
32
|
+
}, typefaces.subtitleBold, liveIndicator.label]
|
|
33
|
+
}, t('Live')));
|
|
34
|
+
};
|
|
35
|
+
const styles = StyleSheet.create({
|
|
36
|
+
container: {
|
|
37
|
+
paddingHorizontal: 8,
|
|
38
|
+
paddingVertical: 4,
|
|
39
|
+
borderTopLeftRadius: 4,
|
|
40
|
+
borderBottomLeftRadius: 4,
|
|
41
|
+
justifyContent: 'center'
|
|
42
|
+
},
|
|
43
|
+
label: {
|
|
44
|
+
textAlign: 'center',
|
|
45
|
+
includeFontPadding: false
|
|
46
|
+
}
|
|
47
|
+
});
|
|
48
|
+
//# sourceMappingURL=LiveIndicator.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","StyleSheet","Text","View","useTheme","useI18n","LiveIndicator","_ref","theme","colors","typefaces","liveIndicator","t","createElement","style","styles","container","backgroundColor","primary","label","color","static_white","subtitleBold","create","paddingHorizontal","paddingVertical","borderTopLeftRadius","borderBottomLeftRadius","justifyContent","textAlign","includeFontPadding"],"sourceRoot":"../../../../../src","sources":["components/Livestream/LivestreamTopView/LiveIndicator.tsx"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,UAAU,EAAEC,IAAI,EAAEC,IAAI,QAAQ,cAAc;AACrD,SAASC,QAAQ,QAAQ,mBAAmB;AAC5C,SAASC,OAAO,QAAQ,iCAAiC;;AAEzD;AACA;AACA;;AAGA;AACA;AACA;AACA,OAAO,MAAMC,aAAa,GAAGC,IAAA,IAA4B;EAAA,IAA3B,CAAqB,CAAC,GAAAA,IAAA;EAClD,MAAM;IACJC,KAAK,EAAE;MAAEC,MAAM;MAAEC,SAAS;MAAEC;IAAc;EAC5C,CAAC,GAAGP,QAAQ,CAAC,CAAC;EACd,MAAM;IAAEQ;EAAE,CAAC,GAAGP,OAAO,CAAC,CAAC;EACvB,oBACEL,KAAA,CAAAa,aAAA,CAACV,IAAI;IACHW,KAAK,EAAE,CACLC,MAAM,CAACC,SAAS,EAChB;MAAEC,eAAe,EAAER,MAAM,CAACS;IAAQ,CAAC,EACnCP,aAAa,CAACK,SAAS;EACvB,gBAEFhB,KAAA,CAAAa,aAAA,CAACX,IAAI;IACHY,KAAK,EAAE,CACLC,MAAM,CAACI,KAAK,EACZ;MAAEC,KAAK,EAAEX,MAAM,CAACY;IAAa,CAAC,EAC9BX,SAAS,CAACY,YAAY,EACtBX,aAAa,CAACQ,KAAK;EACnB,GAEDP,CAAC,CAAC,MAAM,CACL,CACF,CAAC;AAEX,CAAC;AAED,MAAMG,MAAM,GAAGd,UAAU,CAACsB,MAAM,CAAC;EAC/BP,SAAS,EAAE;IACTQ,iBAAiB,EAAE,CAAC;IACpBC,eAAe,EAAE,CAAC;IAClBC,mBAAmB,EAAE,CAAC;IACtBC,sBAAsB,EAAE,CAAC;IACzBC,cAAc,EAAE;EAClB,CAAC;EACDT,KAAK,EAAE;IACLU,SAAS,EAAE,QAAQ;IACnBC,kBAAkB,EAAE;EACtB;AACF,CAAC,CAAC"}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { StyleSheet, View } from 'react-native';
|
|
3
|
+
import { DurationBadge as DefaultDurationBadge } from './DurationBadge';
|
|
4
|
+
import { LiveIndicator as DefaultLiveIndicator } from './LiveIndicator';
|
|
5
|
+
import { FollowerCount as DefaultFollowerCount } from './FollowerCount';
|
|
6
|
+
import { useTheme } from '../../../contexts';
|
|
7
|
+
import { Z_INDEX } from '../../../constants';
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Props for the ViewerLivestreamTopView component.
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* The ViewerLivestreamTopView component displays the top view component of the viewer's live stream.
|
|
15
|
+
*/
|
|
16
|
+
export const ViewerLivestreamTopView = _ref => {
|
|
17
|
+
let {
|
|
18
|
+
DurationBadge = DefaultDurationBadge,
|
|
19
|
+
LiveIndicator = DefaultLiveIndicator,
|
|
20
|
+
FollowerCount = DefaultFollowerCount
|
|
21
|
+
} = _ref;
|
|
22
|
+
const {
|
|
23
|
+
theme: {
|
|
24
|
+
colors,
|
|
25
|
+
viewerLivestreamTopView
|
|
26
|
+
}
|
|
27
|
+
} = useTheme();
|
|
28
|
+
return /*#__PURE__*/React.createElement(View, {
|
|
29
|
+
style: [styles.container, {
|
|
30
|
+
backgroundColor: colors.static_overlay
|
|
31
|
+
}, viewerLivestreamTopView.container]
|
|
32
|
+
}, /*#__PURE__*/React.createElement(View, {
|
|
33
|
+
style: [styles.leftElement, viewerLivestreamTopView.leftElement]
|
|
34
|
+
}, /*#__PURE__*/React.createElement(View, {
|
|
35
|
+
style: [styles.liveInfo, viewerLivestreamTopView.liveInfo]
|
|
36
|
+
}, LiveIndicator && /*#__PURE__*/React.createElement(LiveIndicator, null), FollowerCount && /*#__PURE__*/React.createElement(FollowerCount, null))), /*#__PURE__*/React.createElement(View, {
|
|
37
|
+
style: [styles.centerElement, viewerLivestreamTopView.centerElement]
|
|
38
|
+
}, DurationBadge && /*#__PURE__*/React.createElement(DurationBadge, {
|
|
39
|
+
mode: "viewer"
|
|
40
|
+
})), /*#__PURE__*/React.createElement(View, {
|
|
41
|
+
style: [styles.rightElement, viewerLivestreamTopView.rightElement]
|
|
42
|
+
}));
|
|
43
|
+
};
|
|
44
|
+
const styles = StyleSheet.create({
|
|
45
|
+
container: {
|
|
46
|
+
position: 'absolute',
|
|
47
|
+
top: 0,
|
|
48
|
+
flexDirection: 'row',
|
|
49
|
+
alignItems: 'center',
|
|
50
|
+
paddingVertical: 16,
|
|
51
|
+
paddingHorizontal: 8,
|
|
52
|
+
borderBottomEndRadius: 8,
|
|
53
|
+
borderBottomStartRadius: 8,
|
|
54
|
+
zIndex: Z_INDEX.IN_FRONT
|
|
55
|
+
},
|
|
56
|
+
liveInfo: {
|
|
57
|
+
flexDirection: 'row'
|
|
58
|
+
},
|
|
59
|
+
leftElement: {
|
|
60
|
+
flex: 1,
|
|
61
|
+
alignItems: 'flex-start'
|
|
62
|
+
},
|
|
63
|
+
centerElement: {
|
|
64
|
+
flex: 1,
|
|
65
|
+
alignItems: 'center',
|
|
66
|
+
flexGrow: 3
|
|
67
|
+
},
|
|
68
|
+
rightElement: {
|
|
69
|
+
flex: 1,
|
|
70
|
+
alignItems: 'flex-end'
|
|
71
|
+
}
|
|
72
|
+
});
|
|
73
|
+
//# sourceMappingURL=ViewerLivestreamTopView.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","StyleSheet","View","DurationBadge","DefaultDurationBadge","LiveIndicator","DefaultLiveIndicator","FollowerCount","DefaultFollowerCount","useTheme","Z_INDEX","ViewerLivestreamTopView","_ref","theme","colors","viewerLivestreamTopView","createElement","style","styles","container","backgroundColor","static_overlay","leftElement","liveInfo","centerElement","mode","rightElement","create","position","top","flexDirection","alignItems","paddingVertical","paddingHorizontal","borderBottomEndRadius","borderBottomStartRadius","zIndex","IN_FRONT","flex","flexGrow"],"sourceRoot":"../../../../../src","sources":["components/Livestream/LivestreamTopView/ViewerLivestreamTopView.tsx"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,UAAU,EAAEC,IAAI,QAAQ,cAAc;AAC/C,SACEC,aAAa,IAAIC,oBAAoB,QAEhC,iBAAiB;AACxB,SACEC,aAAa,IAAIC,oBAAoB,QAEhC,iBAAiB;AACxB,SACEC,aAAa,IAAIC,oBAAoB,QAEhC,iBAAiB;AACxB,SAASC,QAAQ,QAAQ,mBAAmB;AAC5C,SAASC,OAAO,QAAQ,oBAAoB;;AAE5C;AACA;AACA;;AAgBA;AACA;AACA;AACA,OAAO,MAAMC,uBAAuB,GAAGC,IAAA,IAIH;EAAA,IAJI;IACtCT,aAAa,GAAGC,oBAAoB;IACpCC,aAAa,GAAGC,oBAAoB;IACpCC,aAAa,GAAGC;EACY,CAAC,GAAAI,IAAA;EAC7B,MAAM;IACJC,KAAK,EAAE;MAAEC,MAAM;MAAEC;IAAwB;EAC3C,CAAC,GAAGN,QAAQ,CAAC,CAAC;EAEd,oBACET,KAAA,CAAAgB,aAAA,CAACd,IAAI;IACHe,KAAK,E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B,CAAC;EACDR,WAAW,EAAE;IACXgB,IAAI,EAAE,CAAC;IACPP,UAAU,EAAE;EACd,CAAC;EACDP,aAAa,EAAE;IACbc,IAAI,EAAE,CAAC;IACPP,UAAU,EAAE,QAAQ;IACpBQ,QAAQ,EAAE;EACZ,CAAC;EACDb,YAAY,EAAE;IACZY,IAAI,EAAE,CAAC;IACPP,UAAU,EAAE;EACd;AACF,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../../src","sources":["components/Livestream/LivestreamTopView/index.ts"],"mappings":"AAAA,cAAc,iBAAiB;AAC/B,cAAc,iBAAiB;AAC/B,cAAc,iBAAiB;AAC/B,cAAc,yBAAyB"}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { StyleSheet, SafeAreaView, View } from 'react-native';
|
|
3
|
+
import { useIncallManager } from '../../../hooks';
|
|
4
|
+
import { useTheme } from '../../../contexts';
|
|
5
|
+
import { ViewerLivestreamTopView as DefaultViewerLivestreamTopView } from '../LivestreamTopView/ViewerLivestreamTopView';
|
|
6
|
+
import { ViewerLivestreamControls as DefaultViewerLivestreamControls } from '../LivestreamControls/ViewerLivestreamControls';
|
|
7
|
+
import { LivestreamLayout as DefaultLivestreamLayout } from '../LivestreamLayout';
|
|
8
|
+
import { useCallStateHooks } from '@stream-io/video-react-bindings';
|
|
9
|
+
import { FloatingParticipantView as DefaultFloatingParticipantView } from '../../Participant';
|
|
10
|
+
import { Z_INDEX } from '../../../constants';
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* Props for the ViewerLivestream component.
|
|
14
|
+
*/
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* The ViewerLivestream component renders the UI for the Viewer's live stream.
|
|
18
|
+
*/
|
|
19
|
+
export const ViewerLivestream = _ref => {
|
|
20
|
+
let {
|
|
21
|
+
ViewerLivestreamTopView = DefaultViewerLivestreamTopView,
|
|
22
|
+
ViewerLivestreamControls = DefaultViewerLivestreamControls,
|
|
23
|
+
LivestreamLayout = DefaultLivestreamLayout,
|
|
24
|
+
FloatingParticipantView = DefaultFloatingParticipantView,
|
|
25
|
+
LiveIndicator,
|
|
26
|
+
FollowerCount,
|
|
27
|
+
DurationBadge,
|
|
28
|
+
ViewerLeaveStreamButton,
|
|
29
|
+
onLeaveStreamHandler
|
|
30
|
+
} = _ref;
|
|
31
|
+
const {
|
|
32
|
+
theme: {
|
|
33
|
+
colors,
|
|
34
|
+
viewerLivestream
|
|
35
|
+
}
|
|
36
|
+
} = useTheme();
|
|
37
|
+
const {
|
|
38
|
+
useHasOngoingScreenShare,
|
|
39
|
+
useParticipants
|
|
40
|
+
} = useCallStateHooks();
|
|
41
|
+
const hasOngoingScreenShare = useHasOngoingScreenShare();
|
|
42
|
+
const [currentSpeaker] = useParticipants();
|
|
43
|
+
|
|
44
|
+
// Automatically route audio to speaker devices as relevant for watching videos.
|
|
45
|
+
useIncallManager({
|
|
46
|
+
media: 'video',
|
|
47
|
+
auto: true
|
|
48
|
+
});
|
|
49
|
+
const topViewProps = {
|
|
50
|
+
LiveIndicator,
|
|
51
|
+
FollowerCount,
|
|
52
|
+
DurationBadge
|
|
53
|
+
};
|
|
54
|
+
return /*#__PURE__*/React.createElement(SafeAreaView, {
|
|
55
|
+
style: [styles.container, {
|
|
56
|
+
backgroundColor: colors.static_grey
|
|
57
|
+
}, viewerLivestream.container]
|
|
58
|
+
}, /*#__PURE__*/React.createElement(View, {
|
|
59
|
+
style: [styles.view, viewerLivestream.view]
|
|
60
|
+
}, ViewerLivestreamTopView && /*#__PURE__*/React.createElement(ViewerLivestreamTopView, topViewProps), /*#__PURE__*/React.createElement(View, {
|
|
61
|
+
style: [styles.floatingParticipantView, viewerLivestream.floatingParticipantView]
|
|
62
|
+
}, hasOngoingScreenShare && FloatingParticipantView && /*#__PURE__*/React.createElement(FloatingParticipantView, {
|
|
63
|
+
participant: currentSpeaker
|
|
64
|
+
})), ViewerLivestreamControls && /*#__PURE__*/React.createElement(ViewerLivestreamControls, {
|
|
65
|
+
ViewerLeaveStreamButton: ViewerLeaveStreamButton,
|
|
66
|
+
onLeaveStreamHandler: onLeaveStreamHandler
|
|
67
|
+
})), LivestreamLayout && /*#__PURE__*/React.createElement(LivestreamLayout, null));
|
|
68
|
+
};
|
|
69
|
+
const styles = StyleSheet.create({
|
|
70
|
+
container: {
|
|
71
|
+
flex: 1
|
|
72
|
+
},
|
|
73
|
+
floatingParticipantView: {
|
|
74
|
+
flex: 1
|
|
75
|
+
},
|
|
76
|
+
view: {
|
|
77
|
+
...StyleSheet.absoluteFillObject,
|
|
78
|
+
zIndex: Z_INDEX.IN_FRONT
|
|
79
|
+
}
|
|
80
|
+
});
|
|
81
|
+
//# sourceMappingURL=ViewerLivestream.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","StyleSheet","SafeAreaView","View","useIncallManager","useTheme","ViewerLivestreamTopView","DefaultViewerLivestreamTopView","ViewerLivestreamControls","DefaultViewerLivestreamControls","LivestreamLayout","DefaultLivestreamLayout","useCallStateHooks","FloatingParticipantView","DefaultFloatingParticipantView","Z_INDEX","ViewerLivestream","_ref","LiveIndicator","FollowerCount","DurationBadge","ViewerLeaveStreamButton","onLeaveStreamHandler","theme","colors","viewerLivestream","useHasOngoingScreenShare","useParticipants","hasOngoingScreenShare","currentSpeaker","media","auto","topViewProps","createElement","style","styles","container","backgroundColor","static_grey","view","floatingParticipantView","participant","create","flex","absoluteFillObject","zIndex","IN_FRONT"],"sourceRoot":"../../../../../src","sources":["components/Livestream/ViewerLivestream/ViewerLivestream.tsx"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AAEzB,SAASC,UAAU,EAAEC,YAAY,EAAEC,IAAI,QAAQ,cAAc;AAC7D,SAASC,gBAAgB,QAAQ,gBAAgB;AACjD,SAASC,QAAQ,QAAQ,mBAAmB;AAC5C,SACEC,uBAAuB,IAAIC,8BA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K,EAAE,CAACC,MAAM,CAACI,IAAI,EAAEd,gBAAgB,CAACc,IAAI;EAAE,GAC/CjC,uBAAuB,iBACtBN,KAAA,CAAAiC,aAAA,CAAC3B,uBAAuB,EAAK0B,YAAe,CAC7C,eACDhC,KAAA,CAAAiC,aAAA,CAAC9B,IAAI;IACH+B,KAAK,EAAE,CACLC,MAAM,CAACK,uBAAuB,EAC9Bf,gBAAgB,CAACe,uBAAuB;EACxC,GAEDZ,qBAAqB,IAAIf,uBAAuB,iBAC/Cb,KAAA,CAAAiC,aAAA,CAACpB,uBAAuB;IAAC4B,WAAW,EAAEZ;EAAe,CAAE,CAErD,CAAC,EAENrB,wBAAwB,iBACvBR,KAAA,CAAAiC,aAAA,CAACzB,wBAAwB;IACvBa,uBAAuB,EAAEA,uBAAwB;IACjDC,oBAAoB,EAAEA;EAAqB,CAC5C,CAEC,CAAC,EACNZ,gBAAgB,iBAAIV,KAAA,CAAAiC,aAAA,CAACvB,gBAAgB,MAAE,CAC5B,CAAC;AAEnB,CAAC;AAED,MAAMyB,MAAM,GAAGlC,UAAU,CAACyC,MAAM,CAAC;EAC/BN,SAAS,EAAE;IACTO,IAAI,EAAE;EACR,CAAC;EACDH,uBAAuB,EAAE;IACvBG,IAAI,EAAE;EACR,CAAC;EACDJ,IAAI,EAAE;IACJ,GAAGtC,UAAU,CAAC2C,kBAAkB;IAChCC,MAAM,EAAE9B,OAAO,CAAC+B;EAClB;AACF,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../../src","sources":["components/Livestream/ViewerLivestream/index.ts"],"mappings":"AAAA,cAAc,oBAAoB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["components/Livestream/index.ts"],"mappings":"AAAA,cAAc,kBAAkB;AAChC,cAAc,sBAAsB;AACpC,cAAc,qBAAqB;AACnC,cAAc,oBAAoB;AAClC,cAAc,oBAAoB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"sourceRoot":"../../../src","sources":["components/index.ts"],"mappings":"AAAA;AACA,cAAc,QAAQ;AACtB,cAAc,WAAW;AACzB,cAAc,eAAe"}
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../src","sources":["components/index.ts"],"mappings":"AAAA;AACA,cAAc,QAAQ;AACtB,cAAc,WAAW;AACzB,cAAc,eAAe;AAC7B,cAAc,cAAc"}
|
|
@@ -3,4 +3,6 @@ export * from './usePermissionRequest';
|
|
|
3
3
|
export * from './usePermissionNotification';
|
|
4
4
|
export * from './push';
|
|
5
5
|
export * from './useAndroidKeepCallAliveEffect';
|
|
6
|
+
export * from './useIsInPiPMode';
|
|
7
|
+
export * from './useAutoEnterPiPEffect';
|
|
6
8
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"sourceRoot":"../../../src","sources":["hooks/index.ts"],"mappings":"AAAA,cAAc,oBAAoB;AAClC,cAAc,wBAAwB;AACtC,cAAc,6BAA6B;AAC3C,cAAc,QAAQ;AACtB,cAAc,iCAAiC"}
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../src","sources":["hooks/index.ts"],"mappings":"AAAA,cAAc,oBAAoB;AAClC,cAAc,wBAAwB;AACtC,cAAc,6BAA6B;AAC3C,cAAc,QAAQ;AACtB,cAAc,iCAAiC;AAC/C,cAAc,kBAAkB;AAChC,cAAc,yBAAyB"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { useEffect } from 'react';
|
|
2
|
+
import { NativeModules, Platform } from 'react-native';
|
|
3
|
+
export function useAutoEnterPiPEffect() {
|
|
4
|
+
useEffect(() => {
|
|
5
|
+
if (Platform.OS !== 'android') {
|
|
6
|
+
return;
|
|
7
|
+
}
|
|
8
|
+
NativeModules.StreamVideoReactNative.canAutoEnterPipMode(true);
|
|
9
|
+
return () => {
|
|
10
|
+
NativeModules.StreamVideoReactNative.canAutoEnterPipMode(false);
|
|
11
|
+
};
|
|
12
|
+
}, []);
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=useAutoEnterPiPEffect.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["useEffect","NativeModules","Platform","useAutoEnterPiPEffect","OS","StreamVideoReactNative","canAutoEnterPipMode"],"sourceRoot":"../../../src","sources":["hooks/useAutoEnterPiPEffect.tsx"],"mappings":"AAAA,SAASA,SAAS,QAAQ,OAAO;AACjC,SAASC,aAAa,EAAEC,QAAQ,QAAQ,cAAc;AAEtD,OAAO,SAASC,qBAAqBA,CAAA,EAAG;EACtCH,SAAS,CAAC,MAAM;IACd,IAAIE,QAAQ,CAACE,EAAE,KAAK,SAAS,EAAE;MAC7B;IACF;IAEAH,aAAa,CAACI,sBAAsB,CAACC,mBAAmB,CAAC,IAAI,CAAC;IAE9D,OAAO,MAAM;MACXL,aAAa,CAACI,sBAAsB,CAACC,mBAAmB,CAAC,KAAK,CAAC;IACjE,CAAC;EACH,CAAC,EAAE,EAAE,CAAC;AACR"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { useEffect, useState } from 'react';
|
|
2
|
+
import { NativeEventEmitter, NativeModules, Platform } from 'react-native';
|
|
3
|
+
export function useIsInPiPMode() {
|
|
4
|
+
const [isInPiPMode, setIsInPiPMode] = useState(false);
|
|
5
|
+
useEffect(() => {
|
|
6
|
+
if (Platform.OS !== 'android') {
|
|
7
|
+
return;
|
|
8
|
+
}
|
|
9
|
+
const eventEmitter = new NativeEventEmitter(NativeModules.StreamVideoReactNative);
|
|
10
|
+
const subscription = eventEmitter.addListener('StreamVideoReactNative_PIP_CHANGE_EVENT', isPiPEnabled => {
|
|
11
|
+
setIsInPiPMode(isPiPEnabled);
|
|
12
|
+
});
|
|
13
|
+
return () => {
|
|
14
|
+
subscription.remove();
|
|
15
|
+
};
|
|
16
|
+
}, []);
|
|
17
|
+
return isInPiPMode;
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=useIsInPiPMode.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["useEffect","useState","NativeEventEmitter","NativeModules","Platform","useIsInPiPMode","isInPiPMode","setIsInPiPMode","OS","eventEmitter","StreamVideoReactNative","subscription","addListener","isPiPEnabled","remove"],"sourceRoot":"../../../src","sources":["hooks/useIsInPiPMode.tsx"],"mappings":"AAAA,SAASA,SAAS,EAAEC,QAAQ,QAAQ,OAAO;AAC3C,SAASC,kBAAkB,EAAEC,aAAa,EAAEC,QAAQ,QAAQ,cAAc;AAE1E,OAAO,SAASC,cAAcA,CAAA,EAAG;EAC/B,MAAM,CAACC,WAAW,EAAEC,cAAc,CAAC,GAAGN,QAAQ,CAAC,KAAK,CAAC;EAErDD,SAAS,CAAC,MAAM;IACd,IAAII,QAAQ,CAACI,EAAE,KAAK,SAAS,EAAE;MAC7B;IACF;IAEA,MAAMC,YAAY,GAAG,IAAIP,kBAAkB,CACzCC,aAAa,CAACO,sBAChB,CAAC;IAED,MAAMC,YAAY,GAAGF,YAAY,CAACG,WAAW,CAC3C,yCAAyC,EACxCC,YAAqB,IAAK;MACzBN,cAAc,CAACM,YAAY,CAAC;IAC9B,CACF,CAAC;IAED,OAAO,MAAM;MACXF,YAAY,CAACG,MAAM,CAAC,CAAC;IACvB,CAAC;EACH,CAAC,EAAE,EAAE,CAAC;EAEN,OAAOR,WAAW;AACpB"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { CallTypes, defaultSortPreset, paginatedLayoutSortPreset } from '@stream-io/video-client';
|
|
2
|
+
import { useEffect } from 'react';
|
|
3
|
+
const resetSortPreset = call => {
|
|
4
|
+
// reset the sorting to the default for the call type
|
|
5
|
+
const callConfig = CallTypes.get(call.type);
|
|
6
|
+
call.setSortParticipantsBy(callConfig.options.sortParticipantsBy || defaultSortPreset);
|
|
7
|
+
};
|
|
8
|
+
export const usePaginatedLayoutSortPreset = call => {
|
|
9
|
+
useEffect(() => {
|
|
10
|
+
if (!call) {
|
|
11
|
+
return;
|
|
12
|
+
}
|
|
13
|
+
call.setSortParticipantsBy(paginatedLayoutSortPreset);
|
|
14
|
+
return () => {
|
|
15
|
+
resetSortPreset(call);
|
|
16
|
+
};
|
|
17
|
+
}, [call]);
|
|
18
|
+
};
|
|
19
|
+
//# sourceMappingURL=usePaginatedLayoutSortPreset.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["CallTypes","defaultSortPreset","paginatedLayoutSortPreset","useEffect","resetSortPreset","call","callConfig","get","type","setSortParticipantsBy","options","sortParticipantsBy","usePaginatedLayoutSortPreset"],"sourceRoot":"../../../src","sources":["hooks/usePaginatedLayoutSortPreset.ts"],"mappings":"AAAA,SAEEA,SAAS,EACTC,iBAAiB,EACjBC,yBAAyB,QACpB,yBAAyB;AAChC,SAASC,SAAS,QAAQ,OAAO;AAEjC,MAAMC,eAAe,GAAIC,IAAU,IAAK;EACtC;EACA,MAAMC,UAAU,GAAGN,SAAS,CAACO,GAAG,CAACF,IAAI,CAACG,IAAI,CAAC;EAC3CH,IAAI,CAACI,qBAAqB,CACxBH,UAAU,CAACI,OAAO,CAACC,kBAAkB,IAAIV,iBAC3C,CAAC;AACH,CAAC;AAED,OAAO,MAAMW,4BAA4B,GAAIP,IAAsB,IAAK;EACtEF,SAAS,CAAC,MAAM;IACd,IAAI,CAACE,IAAI,EAAE;MACT;IACF;IACAA,IAAI,CAACI,qBAAqB,CAACP,yBAAyB,CAAC;IACrD,OAAO,MAAM;MACXE,eAAe,CAACC,IAAI,CAAC;IACvB,CAAC;EACH,CAAC,EAAE,CAACA,IAAI,CAAC,CAAC;AACZ,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Path, Svg } from 'react-native-svg';
|
|
3
|
+
export const EndBroadcastIcon = () => {
|
|
4
|
+
return /*#__PURE__*/React.createElement(Svg, {
|
|
5
|
+
viewBox: "0 0 26 26",
|
|
6
|
+
fill: "none"
|
|
7
|
+
}, /*#__PURE__*/React.createElement(Path, {
|
|
8
|
+
d: "M8.55615 10.8184C8.44365 11.2309 8.38115 11.6684 8.38115 12.1184C8.38115 13.4934 8.94365 14.7434 9.84365 15.6559L8.06865 17.4309C6.71865 16.0684 5.88115 14.1934 5.88115 12.1184C5.88115 10.9559 6.14365 9.86836 6.60615 8.88086L4.76865 7.04336C3.88115 8.53086 3.38115 10.2684 3.38115 12.1184C3.38115 14.8809 4.50615 17.3809 6.31865 19.1809L4.54365 20.9559C2.28115 18.6934 0.881152 15.5684 0.881152 12.1184C0.881152 9.56836 1.64365 7.20586 2.95615 5.23086L0.118652 2.39336L1.88115 0.630859L24.8562 23.6059L23.0937 25.3684L8.55615 10.8184ZM20.1562 15.3559C20.6187 14.3684 20.8812 13.2809 20.8812 12.1184C20.8812 10.0434 20.0437 8.16836 18.6812 6.81836L16.9062 8.59336C17.8187 9.49336 18.3812 10.7434 18.3812 12.1184C18.3812 12.5684 18.3187 13.0059 18.2062 13.4184L20.1562 15.3559ZM23.3812 12.1184C23.3812 13.9684 22.8812 15.7059 21.9937 17.1934L23.8062 19.0059C25.1187 17.0309 25.8812 14.6684 25.8812 12.1184C25.8812 8.66836 24.4812 5.54336 22.2187 3.28086L20.4437 5.05586C22.2562 6.85586 23.3812 9.35586 23.3812 12.1184Z",
|
|
9
|
+
fill: "#FCFCFC"
|
|
10
|
+
}));
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=EndStreamIcon.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","Path","Svg","EndBroadcastIcon","createElement","viewBox","fill","d"],"sourceRoot":"../../../src","sources":["icons/EndStreamIcon.tsx"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,IAAI,EAAEC,GAAG,QAAQ,kBAAkB;AAE5C,OAAO,MAAMC,gBAAgB,GAAGA,CAAA,KAAM;EACpC,oBACEH,KAAA,CAAAI,aAAA,CAACF,GAAG;IAACG,OAAO,EAAC,WAAW;IAACC,IAAI,EAAC;EAAM,gBAClCN,KAAA,CAAAI,aAAA,CAACH,IAAI;IACHM,CAAC,EAAC,0/BAA0/B;IAC5/BD,IAAI,EAAC;EAAS,CACf,CACE,CAAC;AAEV,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Svg, Path } from 'react-native-svg';
|
|
3
|
+
export const Eye = () => {
|
|
4
|
+
return /*#__PURE__*/React.createElement(Svg, {
|
|
5
|
+
viewBox: "0 0 15 10",
|
|
6
|
+
fill: "none"
|
|
7
|
+
}, /*#__PURE__*/React.createElement(Path, {
|
|
8
|
+
d: "M7.25488 1.5625C9.62363 1.5625 11.7361 2.89375 12.7674 5C11.7361 7.10625 9.62363 8.4375 7.25488 8.4375C4.88613 8.4375 2.77363 7.10625 1.74238 5C2.77363 2.89375 4.88613 1.5625 7.25488 1.5625ZM7.25488 0.3125C4.12988 0.3125 1.46113 2.25625 0.379883 5C1.46113 7.74375 4.12988 9.6875 7.25488 9.6875C10.3799 9.6875 13.0486 7.74375 14.1299 5C13.0486 2.25625 10.3799 0.3125 7.25488 0.3125ZM7.25488 3.4375C8.11738 3.4375 8.81738 4.1375 8.81738 5C8.81738 5.8625 8.11738 6.5625 7.25488 6.5625C6.39238 6.5625 5.69238 5.8625 5.69238 5C5.69238 4.1375 6.39238 3.4375 7.25488 3.4375ZM7.25488 2.1875C5.70488 2.1875 4.44238 3.45 4.44238 5C4.44238 6.55 5.70488 7.8125 7.25488 7.8125C8.80488 7.8125 10.0674 6.55 10.0674 5C10.0674 3.45 8.80488 2.1875 7.25488 2.1875Z",
|
|
9
|
+
fill: "#FCFCFC"
|
|
10
|
+
}));
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=Eye.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","Svg","Path","Eye","createElement","viewBox","fill","d"],"sourceRoot":"../../../src","sources":["icons/Eye.tsx"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,GAAG,EAAEC,IAAI,QAAQ,kBAAkB;AAE5C,OAAO,MAAMC,GAAG,GAAGA,CAAA,KAAM;EACvB,oBACEH,KAAA,CAAAI,aAAA,CAACH,GAAG;IAACI,OAAO,EAAC,WAAW;IAACC,IAAI,EAAC;EAAM,gBAClCN,KAAA,CAAAI,aAAA,CAACF,IAAI;IACHK,CAAC,EAAC,2uBAA2uB;IAC7uBD,IAAI,EAAC;EAAS,CACf,CACE,CAAC;AAEV,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Path, Svg } from 'react-native-svg';
|
|
3
|
+
export const LeaveStreamIcon = () => {
|
|
4
|
+
return /*#__PURE__*/React.createElement(Svg, {
|
|
5
|
+
viewBox: "0 0 25 24",
|
|
6
|
+
fill: "none"
|
|
7
|
+
}, /*#__PURE__*/React.createElement(Path, {
|
|
8
|
+
d: "M18.75 5.75L16.9875 7.5125L20.2125 10.75H7.5V13.25H20.2125L16.9875 16.475L18.75 18.25L25 12L18.75 5.75ZM2.5 3.25H12.5V0.75H2.5C1.125 0.75 0 1.875 0 3.25V20.75C0 22.125 1.125 23.25 2.5 23.25H12.5V20.75H2.5V3.25Z",
|
|
9
|
+
fill: "#FCFCFC"
|
|
10
|
+
}));
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=LeaveStreamIcon.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","Path","Svg","LeaveStreamIcon","createElement","viewBox","fill","d"],"sourceRoot":"../../../src","sources":["icons/LeaveStreamIcon.tsx"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,IAAI,EAAEC,GAAG,QAAQ,kBAAkB;AAE5C,OAAO,MAAMC,eAAe,GAAGA,CAAA,KAAM;EACnC,oBACEH,KAAA,CAAAI,aAAA,CAACF,GAAG;IAACG,OAAO,EAAC,WAAW;IAACC,IAAI,EAAC;EAAM,gBAClCN,KAAA,CAAAI,aAAA,CAACH,IAAI;IACHM,CAAC,EAAC,oNAAoN;IACtND,IAAI,EAAC;EAAS,CACf,CACE,CAAC;AAEV,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Svg, Path } from 'react-native-svg';
|
|
3
|
+
export const ShieldBadge = () => {
|
|
4
|
+
return /*#__PURE__*/React.createElement(Svg, {
|
|
5
|
+
viewBox: "0 0 9 10",
|
|
6
|
+
fill: "none"
|
|
7
|
+
}, /*#__PURE__*/React.createElement(Path, {
|
|
8
|
+
d: "M2.79919 8.79157L4.02014 9.63654C4.22869 9.7774 4.49664 9.7774 4.70498 9.63654L5.92594 8.79157C7.6828 7.5523 8.75481 5.60898 8.75481 3.52489V1.60984C8.75481 1.35641 8.57617 1.13107 8.30822 1.07467L4.3774 0.257812L0.446587 1.07447C0.178632 1.13085 0 1.35619 0 1.60964V3.52469C0 5.60888 1.04233 7.58057 2.79919 8.79157ZM2.56093 4.05991L3.69256 5.13019L6.16414 2.79258L7.05753 3.63755L3.72223 6.82014L1.69742 4.90488L2.56093 4.05991Z",
|
|
9
|
+
fill: "#00E2A1"
|
|
10
|
+
}));
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=ShieldBadge.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","Svg","Path","ShieldBadge","createElement","viewBox","fill","d"],"sourceRoot":"../../../src","sources":["icons/ShieldBadge.tsx"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,GAAG,EAAEC,IAAI,QAAQ,kBAAkB;AAE5C,OAAO,MAAMC,WAAW,GAAGA,CAAA,KAAM;EAC/B,oBACEH,KAAA,CAAAI,aAAA,CAACH,GAAG;IAACI,OAAO,EAAC,UAAU;IAACC,IAAI,EAAC;EAAM,gBACjCN,KAAA,CAAAI,aAAA,CAACF,IAAI;IACHK,CAAC,EAAC,gbAAgb;IAClbD,IAAI,EAAC;EAAS,CACf,CACE,CAAC;AAEV,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Path, Svg } from 'react-native-svg';
|
|
3
|
+
export const StartStreamIcon = () => {
|
|
4
|
+
return /*#__PURE__*/React.createElement(Svg, {
|
|
5
|
+
viewBox: "0 0 25 18",
|
|
6
|
+
fill: "none"
|
|
7
|
+
}, /*#__PURE__*/React.createElement(Path, {
|
|
8
|
+
d: "M7.2 14.2996C5.8375 12.9496 5 11.0746 5 8.99961C5 6.92461 5.8375 5.04961 7.2 3.69961L8.975 5.47461C8.0625 6.37461 7.5 7.62461 7.5 8.99961C7.5 10.3746 8.0625 11.6246 8.9625 12.5371L7.2 14.2996ZM17.8 14.2996C19.1625 12.9496 20 11.0746 20 8.99961C20 6.92461 19.1625 5.04961 17.8 3.69961L16.025 5.47461C16.9375 6.37461 17.5 7.62461 17.5 8.99961C17.5 10.3746 16.9375 11.6246 16.0375 12.5371L17.8 14.2996ZM12.5 6.49961C11.125 6.49961 10 7.62461 10 8.99961C10 10.3746 11.125 11.4996 12.5 11.4996C13.875 11.4996 15 10.3746 15 8.99961C15 7.62461 13.875 6.49961 12.5 6.49961ZM22.5 8.99961C22.5 11.7621 21.375 14.2621 19.5625 16.0621L21.3375 17.8371C23.6 15.5746 25 12.4496 25 8.99961C25 5.54961 23.6 2.42461 21.3375 0.162109L19.5625 1.93711C21.375 3.73711 22.5 6.23711 22.5 8.99961ZM5.4375 1.93711L3.6625 0.162109C1.4 2.42461 0 5.54961 0 8.99961C0 12.4496 1.4 15.5746 3.6625 17.8371L5.4375 16.0621C3.625 14.2621 2.5 11.7621 2.5 8.99961C2.5 6.23711 3.625 3.73711 5.4375 1.93711Z",
|
|
9
|
+
fill: "#FCFCFC"
|
|
10
|
+
}));
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=StartStreamIcon.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","Path","Svg","StartStreamIcon","createElement","viewBox","fill","d"],"sourceRoot":"../../../src","sources":["icons/StartStreamIcon.tsx"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,IAAI,EAAEC,GAAG,QAAQ,kBAAkB;AAE5C,OAAO,MAAMC,eAAe,GAAGA,CAAA,KAAM;EACnC,oBACEH,KAAA,CAAAI,aAAA,CAACF,GAAG;IAACG,OAAO,EAAC,WAAW;IAACC,IAAI,EAAC;EAAM,gBAClCN,KAAA,CAAAI,aAAA,CAACH,IAAI;IACHM,CAAC,EAAC,y8BAAy8B;IAC38BD,IAAI,EAAC;EAAS,CACf,CACE,CAAC;AAEV,CAAC"}
|
|
@@ -14,4 +14,9 @@ export * from './Spotlight';
|
|
|
14
14
|
export * from './ScreenShare';
|
|
15
15
|
export * from './Reaction';
|
|
16
16
|
export * from './TopViewBackground';
|
|
17
|
+
export * from './Eye';
|
|
18
|
+
export * from './ShieldBadge';
|
|
19
|
+
export * from './StartStreamIcon';
|
|
20
|
+
export * from './EndStreamIcon';
|
|
21
|
+
export * from './LeaveStreamIcon';
|
|
17
22
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"sourceRoot":"../../../src","sources":["icons/index.tsx"],"mappings":"AAAA,cAAc,gBAAgB;AAC9B,cAAc,OAAO;AACrB,cAAc,UAAU;AACxB,cAAc,SAAS;AACvB,cAAc,aAAa;AAC3B,cAAc,YAAY;AAC1B,cAAc,SAAS;AACvB,cAAc,cAAc;AAC5B,cAAc,QAAQ;AACtB,cAAc,gBAAgB;AAC9B,cAAc,aAAa;AAC3B,cAAc,eAAe;AAC7B,cAAc,aAAa;AAC3B,cAAc,eAAe;AAC7B,cAAc,YAAY;AAC1B,cAAc,qBAAqB"}
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../src","sources":["icons/index.tsx"],"mappings":"AAAA,cAAc,gBAAgB;AAC9B,cAAc,OAAO;AACrB,cAAc,UAAU;AACxB,cAAc,SAAS;AACvB,cAAc,aAAa;AAC3B,cAAc,YAAY;AAC1B,cAAc,SAAS;AACvB,cAAc,cAAc;AAC5B,cAAc,QAAQ;AACtB,cAAc,gBAAgB;AAC9B,cAAc,aAAa;AAC3B,cAAc,eAAe;AAC7B,cAAc,aAAa;AAC3B,cAAc,eAAe;AAC7B,cAAc,YAAY;AAC1B,cAAc,qBAAqB;AACnC,cAAc,OAAO;AACrB,cAAc,eAAe;AAC7B,cAAc,mBAAmB;AACjC,cAAc,iBAAiB;AAC/B,cAAc,mBAAmB"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React, { useEffect, useState } from 'react';
|
|
2
2
|
import { useCall, useCallStateHooks } from '@stream-io/video-react-bindings';
|
|
3
3
|
import { useAppStateListener } from '../utils/hooks';
|
|
4
|
+
import { NativeModules, Platform } from 'react-native';
|
|
4
5
|
/**
|
|
5
6
|
*
|
|
6
7
|
* Provides `MediaStreamManagement` wrapper that allow the integrators to handle:
|
|
@@ -28,8 +29,20 @@ export const MediaStreamManagement = _ref => {
|
|
|
28
29
|
var _call$camera;
|
|
29
30
|
call === null || call === void 0 || (_call$camera = call.camera) === null || _call$camera === void 0 || _call$camera.resume();
|
|
30
31
|
}, () => {
|
|
31
|
-
|
|
32
|
-
|
|
32
|
+
if (Platform.OS === 'android') {
|
|
33
|
+
var _NativeModules$Stream;
|
|
34
|
+
// in Android, we need to check if we are in PiP mode
|
|
35
|
+
// in PiP mode, we don't want to disable the camera
|
|
36
|
+
NativeModules === null || NativeModules === void 0 || (_NativeModules$Stream = NativeModules.StreamVideoReactNative) === null || _NativeModules$Stream === void 0 || _NativeModules$Stream.isInPiPMode().then(isInPiP => {
|
|
37
|
+
if (!isInPiP) {
|
|
38
|
+
var _call$camera2;
|
|
39
|
+
call === null || call === void 0 || (_call$camera2 = call.camera) === null || _call$camera2 === void 0 || _call$camera2.disable();
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
|
+
} else {
|
|
43
|
+
var _call$camera3;
|
|
44
|
+
call === null || call === void 0 || (_call$camera3 = call.camera) === null || _call$camera3 === void 0 || _call$camera3.disable();
|
|
45
|
+
}
|
|
33
46
|
});
|
|
34
47
|
const [{
|
|
35
48
|
initialAudioEnabled,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","useEffect","useState","useCall","useCallStateHooks","useAppStateListener","MediaStreamManagement","_ref","initialAudioEnabled","propInitialAudioEnabled","initialVideoEnabled","propInitialVideoEnabled","children","call","useCallSettings","_call$camera","camera","resume","_call$camera2","disable","setInitialDeviceState","undefined","settings","audio","video","prev","initAudio","mic_default_on","initVideo","camera_default_on","microphone","enable","createElement","Fragment"],"sourceRoot":"../../../src","sources":["providers/MediaStreamManagement.tsx"],"mappings":"AAAA,OAAOA,KAAK,IAAuBC,SAAS,EAAEC,QAAQ,QAAQ,OAAO;AACrE,SAASC,OAAO,EAAEC,iBAAiB,QAAQ,iCAAiC;AAC5E,SAASC,mBAAmB,QAAQ,gBAAgB;
|
|
1
|
+
{"version":3,"names":["React","useEffect","useState","useCall","useCallStateHooks","useAppStateListener","NativeModules","Platform","MediaStreamManagement","_ref","initialAudioEnabled","propInitialAudioEnabled","initialVideoEnabled","propInitialVideoEnabled","children","call","useCallSettings","_call$camera","camera","resume","OS","_NativeModules$Stream","StreamVideoReactNative","isInPiPMode","then","isInPiP","_call$camera2","disable","_call$camera3","setInitialDeviceState","undefined","settings","audio","video","prev","initAudio","mic_default_on","initVideo","camera_default_on","microphone","enable","createElement","Fragment"],"sourceRoot":"../../../src","sources":["providers/MediaStreamManagement.tsx"],"mappings":"AAAA,OAAOA,KAAK,IAAuBC,SAAS,EAAEC,QAAQ,QAAQ,OAAO;AACrE,SAASC,OAAO,EAAEC,iBAAiB,QAAQ,iCAAiC;AAC5E,SAASC,mBAAmB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