@100mslive/react-native-room-kit 1.0.5 → 1.0.7
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/lib/commonjs/HMSRoomSetup.js +1 -0
- package/lib/commonjs/HMSRoomSetup.js.map +1 -1
- package/lib/commonjs/Icons/Recording/assets/recording-pause.png +0 -0
- package/lib/commonjs/Icons/Recording/assets/recording-pause@2x.png +0 -0
- package/lib/commonjs/Icons/Recording/assets/recording-pause@3x.png +0 -0
- package/lib/commonjs/Icons/Recording/index.js +1 -1
- package/lib/commonjs/Icons/Recording/index.js.map +1 -1
- package/lib/commonjs/components/AnimatedFooter.js +5 -3
- package/lib/commonjs/components/AnimatedFooter.js.map +1 -1
- package/lib/commonjs/components/AnimatedHLSFooter.js +4 -9
- package/lib/commonjs/components/AnimatedHLSFooter.js.map +1 -1
- package/lib/commonjs/components/AnimatedHeader.js +17 -5
- package/lib/commonjs/components/AnimatedHeader.js.map +1 -1
- package/lib/commonjs/components/AvatarView.js +0 -1
- package/lib/commonjs/components/AvatarView.js.map +1 -1
- package/lib/commonjs/components/BottomSheet.js +23 -7
- package/lib/commonjs/components/BottomSheet.js.map +1 -1
- package/lib/commonjs/components/Chat/ChatBanner.js +10 -3
- package/lib/commonjs/components/Chat/ChatBanner.js.map +1 -1
- package/lib/commonjs/components/Chat/ChatFilterBottomSheetView.js +7 -2
- package/lib/commonjs/components/Chat/ChatFilterBottomSheetView.js.map +1 -1
- package/lib/commonjs/components/ChatAndParticipants/ChatAndParticipantsBottomSheet.js +14 -10
- package/lib/commonjs/components/ChatAndParticipants/ChatAndParticipantsBottomSheet.js.map +1 -1
- package/lib/commonjs/components/ChatAndParticipants/ChatAndParticipantsView.js +5 -3
- package/lib/commonjs/components/ChatAndParticipants/ChatAndParticipantsView.js.map +1 -1
- package/lib/commonjs/components/DefaultModal.js +9 -1
- package/lib/commonjs/components/DefaultModal.js.map +1 -1
- package/lib/commonjs/components/DisplayView.js +4 -11
- package/lib/commonjs/components/DisplayView.js.map +1 -1
- package/lib/commonjs/components/EndRoomModal.js +1 -2
- package/lib/commonjs/components/EndRoomModal.js.map +1 -1
- package/lib/commonjs/components/EndRoomModalContent.js +2 -1
- package/lib/commonjs/components/EndRoomModalContent.js.map +1 -1
- package/lib/commonjs/components/Footer.js +12 -8
- package/lib/commonjs/components/Footer.js.map +1 -1
- package/lib/commonjs/components/GridView.js +53 -9
- package/lib/commonjs/components/GridView.js.map +1 -1
- package/lib/commonjs/components/HLSFooter.js +3 -1
- package/lib/commonjs/components/HLSFooter.js.map +1 -1
- package/lib/commonjs/components/HLSView.js +1 -1
- package/lib/commonjs/components/HLSView.js.map +1 -1
- package/lib/commonjs/components/HMSHLSMessageList.js +5 -2
- package/lib/commonjs/components/HMSHLSMessageList.js.map +1 -1
- package/lib/commonjs/components/HMSKeyboardAvoidingView.android.js +44 -0
- package/lib/commonjs/components/HMSKeyboardAvoidingView.android.js.map +1 -0
- package/lib/commonjs/components/HMSKeyboardAvoidingView.js +3 -1
- package/lib/commonjs/components/HMSKeyboardAvoidingView.js.map +1 -1
- package/lib/commonjs/components/HMSLiveIndicator.js +6 -57
- package/lib/commonjs/components/HMSLiveIndicator.js.map +1 -1
- package/lib/commonjs/components/HMSLiveViewerCount.js +78 -0
- package/lib/commonjs/components/HMSLiveViewerCount.js.map +1 -0
- package/lib/commonjs/components/HMSManageAudioOutput.js +0 -1
- package/lib/commonjs/components/HMSManageAudioOutput.js.map +1 -1
- package/lib/commonjs/components/HMSNotifications.js +9 -1
- package/lib/commonjs/components/HMSNotifications.js.map +1 -1
- package/lib/commonjs/components/HMSOverlayChatView.js +11 -2
- package/lib/commonjs/components/HMSOverlayChatView.js.map +1 -1
- package/lib/commonjs/components/HMSPreviewEditName.js +6 -1
- package/lib/commonjs/components/HMSPreviewEditName.js.map +1 -1
- package/lib/commonjs/components/HMSPreviewHLSLiveIndicator.js +2 -1
- package/lib/commonjs/components/HMSPreviewHLSLiveIndicator.js.map +1 -1
- package/lib/commonjs/components/HMSRecordingIndicator.js +15 -4
- package/lib/commonjs/components/HMSRecordingIndicator.js.map +1 -1
- package/lib/commonjs/components/HMSRoomOptions.js +3 -6
- package/lib/commonjs/components/HMSRoomOptions.js.map +1 -1
- package/lib/commonjs/components/HMSTextInput.js +2 -3
- package/lib/commonjs/components/HMSTextInput.js.map +1 -1
- package/lib/commonjs/components/Header.js +11 -3
- package/lib/commonjs/components/Header.js.map +1 -1
- package/lib/commonjs/components/LeaveRoomBottomSheet.js +4 -7
- package/lib/commonjs/components/LeaveRoomBottomSheet.js.map +1 -1
- package/lib/commonjs/components/Meeting.js +2 -13
- package/lib/commonjs/components/Meeting.js.map +1 -1
- package/lib/commonjs/components/MeetingScreenContent.js +45 -45
- package/lib/commonjs/components/MeetingScreenContent.js.map +1 -1
- package/lib/commonjs/components/MiniView.js +12 -13
- package/lib/commonjs/components/MiniView.js.map +1 -1
- package/lib/commonjs/components/OverlayedViews.js +6 -2
- package/lib/commonjs/components/OverlayedViews.js.map +1 -1
- package/lib/commonjs/components/Participants/ParticipantsGroupHeader.js +1 -0
- package/lib/commonjs/components/Participants/ParticipantsGroupHeader.js.map +1 -1
- package/lib/commonjs/components/PeerSettingsModalContent.js +2 -1
- package/lib/commonjs/components/PeerSettingsModalContent.js.map +1 -1
- package/lib/commonjs/components/PeerVideoTile/PeerNameAndNetwork.js +0 -1
- package/lib/commonjs/components/PeerVideoTile/PeerNameAndNetwork.js.map +1 -1
- package/lib/commonjs/components/PeerVideoTile/PeerVideoTileView.js +2 -1
- package/lib/commonjs/components/PeerVideoTile/PeerVideoTileView.js.map +1 -1
- package/lib/commonjs/components/PeerVideoTile/VideoView.js +0 -1
- package/lib/commonjs/components/PeerVideoTile/VideoView.js.map +1 -1
- package/lib/commonjs/components/PressableIcon.js +6 -2
- package/lib/commonjs/components/PressableIcon.js.map +1 -1
- package/lib/commonjs/components/Preview.js +2 -1
- package/lib/commonjs/components/Preview.js.map +1 -1
- package/lib/commonjs/components/RoomSettingsModalContent.js +25 -9
- package/lib/commonjs/components/RoomSettingsModalContent.js.map +1 -1
- package/lib/commonjs/components/RoomSettingsModalDebugModeContent.js +1 -1
- package/lib/commonjs/components/RoomSettingsModalDebugModeContent.js.map +1 -1
- package/lib/commonjs/components/TilesContainer.js +3 -3
- package/lib/commonjs/components/TilesContainer.js.map +1 -1
- package/lib/commonjs/components/WebrtcView.js +37 -2
- package/lib/commonjs/components/WebrtcView.js.map +1 -1
- package/lib/commonjs/hooks-util-selectors.js +2 -1
- package/lib/commonjs/hooks-util-selectors.js.map +1 -1
- package/lib/commonjs/hooks-util.js +78 -31
- package/lib/commonjs/hooks-util.js.map +1 -1
- package/lib/commonjs/redux/actionTypes.js +3 -1
- package/lib/commonjs/redux/actionTypes.js.map +1 -1
- package/lib/commonjs/redux/actions/index.js +8 -1
- package/lib/commonjs/redux/actions/index.js.map +1 -1
- package/lib/commonjs/redux/reducers/appState.js +9 -1
- package/lib/commonjs/redux/reducers/appState.js.map +1 -1
- package/lib/commonjs/utils/theme.js +0 -1
- package/lib/commonjs/utils/theme.js.map +1 -1
- package/lib/commonjs/utils/types.js +3 -3
- package/lib/commonjs/utils/types.js.map +1 -1
- package/lib/commonjs/utils.js +0 -1
- package/lib/commonjs/utils.js.map +1 -1
- package/lib/module/HMSRoomSetup.js +2 -1
- package/lib/module/HMSRoomSetup.js.map +1 -1
- package/lib/module/Icons/Recording/assets/recording-pause.png +0 -0
- package/lib/module/Icons/Recording/assets/recording-pause@2x.png +0 -0
- package/lib/module/Icons/Recording/assets/recording-pause@3x.png +0 -0
- package/lib/module/Icons/Recording/index.js +1 -1
- package/lib/module/Icons/Recording/index.js.map +1 -1
- package/lib/module/components/AnimatedFooter.js +5 -3
- package/lib/module/components/AnimatedFooter.js.map +1 -1
- package/lib/module/components/AnimatedHLSFooter.js +5 -10
- package/lib/module/components/AnimatedHLSFooter.js.map +1 -1
- package/lib/module/components/AnimatedHeader.js +18 -6
- package/lib/module/components/AnimatedHeader.js.map +1 -1
- package/lib/module/components/AvatarView.js +0 -1
- package/lib/module/components/AvatarView.js.map +1 -1
- package/lib/module/components/BottomSheet.js +24 -8
- package/lib/module/components/BottomSheet.js.map +1 -1
- package/lib/module/components/Chat/ChatBanner.js +10 -3
- package/lib/module/components/Chat/ChatBanner.js.map +1 -1
- package/lib/module/components/Chat/ChatFilterBottomSheetView.js +7 -2
- package/lib/module/components/Chat/ChatFilterBottomSheetView.js.map +1 -1
- package/lib/module/components/ChatAndParticipants/ChatAndParticipantsBottomSheet.js +16 -12
- package/lib/module/components/ChatAndParticipants/ChatAndParticipantsBottomSheet.js.map +1 -1
- package/lib/module/components/ChatAndParticipants/ChatAndParticipantsView.js +6 -4
- package/lib/module/components/ChatAndParticipants/ChatAndParticipantsView.js.map +1 -1
- package/lib/module/components/DefaultModal.js +9 -1
- package/lib/module/components/DefaultModal.js.map +1 -1
- package/lib/module/components/DisplayView.js +5 -12
- package/lib/module/components/DisplayView.js.map +1 -1
- package/lib/module/components/EndRoomModal.js +1 -2
- package/lib/module/components/EndRoomModal.js.map +1 -1
- package/lib/module/components/EndRoomModalContent.js +2 -1
- package/lib/module/components/EndRoomModalContent.js.map +1 -1
- package/lib/module/components/Footer.js +12 -9
- package/lib/module/components/Footer.js.map +1 -1
- package/lib/module/components/GridView.js +54 -10
- package/lib/module/components/GridView.js.map +1 -1
- package/lib/module/components/HLSFooter.js +3 -1
- package/lib/module/components/HLSFooter.js.map +1 -1
- package/lib/module/components/HLSView.js +2 -2
- package/lib/module/components/HLSView.js.map +1 -1
- package/lib/module/components/HMSHLSMessageList.js +5 -2
- package/lib/module/components/HMSHLSMessageList.js.map +1 -1
- package/lib/module/components/HMSKeyboardAvoidingView.android.js +33 -0
- package/lib/module/components/HMSKeyboardAvoidingView.android.js.map +1 -0
- package/lib/module/components/HMSKeyboardAvoidingView.js +3 -1
- package/lib/module/components/HMSKeyboardAvoidingView.js.map +1 -1
- package/lib/module/components/HMSLiveIndicator.js +9 -60
- package/lib/module/components/HMSLiveIndicator.js.map +1 -1
- package/lib/module/components/HMSLiveViewerCount.js +70 -0
- package/lib/module/components/HMSLiveViewerCount.js.map +1 -0
- package/lib/module/components/HMSManageAudioOutput.js +0 -1
- package/lib/module/components/HMSManageAudioOutput.js.map +1 -1
- package/lib/module/components/HMSNotifications.js +9 -2
- package/lib/module/components/HMSNotifications.js.map +1 -1
- package/lib/module/components/HMSOverlayChatView.js +11 -2
- package/lib/module/components/HMSOverlayChatView.js.map +1 -1
- package/lib/module/components/HMSPreviewEditName.js +6 -1
- package/lib/module/components/HMSPreviewEditName.js.map +1 -1
- package/lib/module/components/HMSPreviewHLSLiveIndicator.js +2 -1
- package/lib/module/components/HMSPreviewHLSLiveIndicator.js.map +1 -1
- package/lib/module/components/HMSRecordingIndicator.js +15 -4
- package/lib/module/components/HMSRecordingIndicator.js.map +1 -1
- package/lib/module/components/HMSRoomOptions.js +3 -6
- package/lib/module/components/HMSRoomOptions.js.map +1 -1
- package/lib/module/components/HMSTextInput.js +2 -3
- package/lib/module/components/HMSTextInput.js.map +1 -1
- package/lib/module/components/Header.js +10 -3
- package/lib/module/components/Header.js.map +1 -1
- package/lib/module/components/LeaveRoomBottomSheet.js +5 -7
- package/lib/module/components/LeaveRoomBottomSheet.js.map +1 -1
- package/lib/module/components/Meeting.js +3 -14
- package/lib/module/components/Meeting.js.map +1 -1
- package/lib/module/components/MeetingScreenContent.js +50 -50
- package/lib/module/components/MeetingScreenContent.js.map +1 -1
- package/lib/module/components/MiniView.js +12 -13
- package/lib/module/components/MiniView.js.map +1 -1
- package/lib/module/components/OverlayedViews.js +6 -2
- package/lib/module/components/OverlayedViews.js.map +1 -1
- package/lib/module/components/Participants/ParticipantsGroupHeader.js +1 -0
- package/lib/module/components/Participants/ParticipantsGroupHeader.js.map +1 -1
- package/lib/module/components/PeerSettingsModalContent.js +2 -1
- package/lib/module/components/PeerSettingsModalContent.js.map +1 -1
- package/lib/module/components/PeerVideoTile/PeerNameAndNetwork.js +0 -1
- package/lib/module/components/PeerVideoTile/PeerNameAndNetwork.js.map +1 -1
- package/lib/module/components/PeerVideoTile/PeerVideoTileView.js +2 -1
- package/lib/module/components/PeerVideoTile/PeerVideoTileView.js.map +1 -1
- package/lib/module/components/PeerVideoTile/VideoView.js +0 -1
- package/lib/module/components/PeerVideoTile/VideoView.js.map +1 -1
- package/lib/module/components/PressableIcon.js +6 -2
- package/lib/module/components/PressableIcon.js.map +1 -1
- package/lib/module/components/Preview.js +2 -1
- package/lib/module/components/Preview.js.map +1 -1
- package/lib/module/components/RoomSettingsModalContent.js +26 -10
- package/lib/module/components/RoomSettingsModalContent.js.map +1 -1
- package/lib/module/components/RoomSettingsModalDebugModeContent.js +2 -2
- package/lib/module/components/RoomSettingsModalDebugModeContent.js.map +1 -1
- package/lib/module/components/TilesContainer.js +3 -3
- package/lib/module/components/TilesContainer.js.map +1 -1
- package/lib/module/components/WebrtcView.js +37 -2
- package/lib/module/components/WebrtcView.js.map +1 -1
- package/lib/module/hooks-util-selectors.js +2 -1
- package/lib/module/hooks-util-selectors.js.map +1 -1
- package/lib/module/hooks-util.js +78 -32
- package/lib/module/hooks-util.js.map +1 -1
- package/lib/module/redux/actionTypes.js +3 -1
- package/lib/module/redux/actionTypes.js.map +1 -1
- package/lib/module/redux/actions/index.js +6 -0
- package/lib/module/redux/actions/index.js.map +1 -1
- package/lib/module/redux/reducers/appState.js +9 -1
- package/lib/module/redux/reducers/appState.js.map +1 -1
- package/lib/module/utils/theme.js +0 -1
- package/lib/module/utils/theme.js.map +1 -1
- package/lib/module/utils/types.js +2 -2
- package/lib/module/utils/types.js.map +1 -1
- package/lib/module/utils.js +0 -1
- package/lib/module/utils.js.map +1 -1
- package/lib/typescript/HMSRoomSetup.d.ts.map +1 -1
- package/lib/typescript/Icons/Recording/index.d.ts +1 -1
- package/lib/typescript/Icons/Recording/index.d.ts.map +1 -1
- package/lib/typescript/components/AnimatedFooter.d.ts.map +1 -1
- package/lib/typescript/components/AnimatedHLSFooter.d.ts.map +1 -1
- package/lib/typescript/components/AnimatedHeader.d.ts.map +1 -1
- package/lib/typescript/components/BottomSheet.d.ts +2 -0
- package/lib/typescript/components/BottomSheet.d.ts.map +1 -1
- package/lib/typescript/components/Chat/ChatBanner.d.ts.map +1 -1
- package/lib/typescript/components/Chat/ChatFilterBottomSheetView.d.ts.map +1 -1
- package/lib/typescript/components/ChatAndParticipants/ChatAndParticipantsBottomSheet.d.ts.map +1 -1
- package/lib/typescript/components/ChatAndParticipants/ChatAndParticipantsView.d.ts.map +1 -1
- package/lib/typescript/components/DefaultModal.d.ts.map +1 -1
- package/lib/typescript/components/DisplayView.d.ts.map +1 -1
- package/lib/typescript/components/EndRoomModal.d.ts.map +1 -1
- package/lib/typescript/components/EndRoomModalContent.d.ts.map +1 -1
- package/lib/typescript/components/Footer.d.ts +1 -1
- package/lib/typescript/components/Footer.d.ts.map +1 -1
- package/lib/typescript/components/GridView.d.ts.map +1 -1
- package/lib/typescript/components/HLSView.d.ts.map +1 -1
- package/lib/typescript/components/HMSHLSMessageList.d.ts.map +1 -1
- package/lib/typescript/components/HMSKeyboardAvoidingView.android.d.ts +9 -0
- package/lib/typescript/components/HMSKeyboardAvoidingView.android.d.ts.map +1 -0
- package/lib/typescript/components/HMSKeyboardAvoidingView.d.ts +2 -1
- package/lib/typescript/components/HMSKeyboardAvoidingView.d.ts.map +1 -1
- package/lib/typescript/components/HMSLiveIndicator.d.ts.map +1 -1
- package/lib/typescript/components/HMSLiveViewerCount.d.ts +3 -0
- package/lib/typescript/components/HMSLiveViewerCount.d.ts.map +1 -0
- package/lib/typescript/components/HMSNotifications.d.ts.map +1 -1
- package/lib/typescript/components/HMSOverlayChatView.d.ts +5 -1
- package/lib/typescript/components/HMSOverlayChatView.d.ts.map +1 -1
- package/lib/typescript/components/HMSPreviewEditName.d.ts.map +1 -1
- package/lib/typescript/components/HMSPreviewHLSLiveIndicator.d.ts.map +1 -1
- package/lib/typescript/components/HMSRecordingIndicator.d.ts.map +1 -1
- package/lib/typescript/components/HMSRoomOptions.d.ts.map +1 -1
- package/lib/typescript/components/HMSTextInput.d.ts.map +1 -1
- package/lib/typescript/components/Header.d.ts +1 -0
- package/lib/typescript/components/Header.d.ts.map +1 -1
- package/lib/typescript/components/LeaveRoomBottomSheet.d.ts.map +1 -1
- package/lib/typescript/components/Meeting.d.ts.map +1 -1
- package/lib/typescript/components/MeetingScreenContent.d.ts.map +1 -1
- package/lib/typescript/components/MiniView.d.ts +2 -3
- package/lib/typescript/components/MiniView.d.ts.map +1 -1
- package/lib/typescript/components/OverlayedViews.d.ts +4 -1
- package/lib/typescript/components/OverlayedViews.d.ts.map +1 -1
- package/lib/typescript/components/PeerSettingsModalContent.d.ts.map +1 -1
- package/lib/typescript/components/PeerVideoTile/PeerVideoTileView.d.ts.map +1 -1
- package/lib/typescript/components/PressableIcon.d.ts.map +1 -1
- package/lib/typescript/components/RoomSettingsModalContent.d.ts.map +1 -1
- package/lib/typescript/components/RoomSettingsModalDebugModeContent.d.ts.map +1 -1
- package/lib/typescript/components/TilesContainer.d.ts.map +1 -1
- package/lib/typescript/components/WebrtcView.d.ts +2 -0
- package/lib/typescript/components/WebrtcView.d.ts.map +1 -1
- package/lib/typescript/hooks-util-selectors.d.ts.map +1 -1
- package/lib/typescript/hooks-util.d.ts +5 -0
- package/lib/typescript/hooks-util.d.ts.map +1 -1
- package/lib/typescript/redux/actionTypes.d.ts +1 -0
- package/lib/typescript/redux/actionTypes.d.ts.map +1 -1
- package/lib/typescript/redux/actions/index.d.ts +6 -0
- package/lib/typescript/redux/actions/index.d.ts.map +1 -1
- package/lib/typescript/redux/index.d.ts +1 -0
- package/lib/typescript/redux/index.d.ts.map +1 -1
- package/lib/typescript/redux/reducers/appState.d.ts +1 -0
- package/lib/typescript/redux/reducers/appState.d.ts.map +1 -1
- package/lib/typescript/redux/reducers/index.d.ts +1 -0
- package/lib/typescript/redux/reducers/index.d.ts.map +1 -1
- package/lib/typescript/utils/types.d.ts +1 -0
- package/lib/typescript/utils/types.d.ts.map +1 -1
- package/package.json +179 -179
- package/src/HMSRoomSetup.tsx +4 -1
- package/src/Icons/Recording/assets/recording-pause.png +0 -0
- package/src/Icons/Recording/assets/recording-pause@2x.png +0 -0
- package/src/Icons/Recording/assets/recording-pause@3x.png +0 -0
- package/src/Icons/Recording/index.tsx +3 -1
- package/src/components/AnimatedFooter.tsx +9 -3
- package/src/components/AnimatedHLSFooter.tsx +8 -17
- package/src/components/AnimatedHeader.tsx +16 -5
- package/src/components/BottomSheet.tsx +52 -9
- package/src/components/Chat/ChatBanner.tsx +9 -0
- package/src/components/Chat/ChatFilterBottomSheetView.tsx +8 -1
- package/src/components/ChatAndParticipants/ChatAndParticipantsBottomSheet.tsx +17 -7
- package/src/components/ChatAndParticipants/ChatAndParticipantsView.tsx +5 -4
- package/src/components/DefaultModal.tsx +12 -1
- package/src/components/DisplayView.tsx +4 -13
- package/src/components/EndRoomModal.tsx +0 -1
- package/src/components/EndRoomModalContent.tsx +2 -1
- package/src/components/Footer.tsx +19 -10
- package/src/components/GridView.tsx +54 -15
- package/src/components/HLSFooter.tsx +1 -1
- package/src/components/HLSView.tsx +2 -1
- package/src/components/HMSHLSMessageList.tsx +8 -2
- package/src/components/HMSKeyboardAvoidingView.android.tsx +45 -0
- package/src/components/HMSKeyboardAvoidingView.tsx +6 -3
- package/src/components/HMSLiveIndicator.tsx +8 -73
- package/src/components/HMSLiveViewerCount.tsx +90 -0
- package/src/components/HMSNotifications.tsx +11 -1
- package/src/components/HMSOverlayChatView.tsx +18 -2
- package/src/components/HMSPreviewEditName.tsx +10 -1
- package/src/components/HMSPreviewHLSLiveIndicator.tsx +2 -1
- package/src/components/HMSRecordingIndicator.tsx +28 -2
- package/src/components/HMSRoomOptions.tsx +0 -3
- package/src/components/HMSTextInput.tsx +1 -0
- package/src/components/Header.tsx +14 -3
- package/src/components/LeaveRoomBottomSheet.tsx +3 -6
- package/src/components/Meeting.tsx +2 -19
- package/src/components/MeetingScreenContent.tsx +67 -62
- package/src/components/MiniView.tsx +18 -15
- package/src/components/OverlayedViews.tsx +6 -3
- package/src/components/PeerSettingsModalContent.tsx +2 -1
- package/src/components/PeerVideoTile/PeerVideoTileView.tsx +2 -1
- package/src/components/PressableIcon.tsx +22 -17
- package/src/components/Preview.tsx +2 -2
- package/src/components/RoomSettingsModalContent.tsx +22 -6
- package/src/components/RoomSettingsModalDebugModeContent.tsx +2 -1
- package/src/components/TilesContainer.tsx +9 -5
- package/src/components/WebrtcView.tsx +59 -22
- package/src/hooks-util-selectors.tsx +2 -1
- package/src/hooks-util.ts +86 -43
- package/src/redux/actionTypes.ts +3 -0
- package/src/redux/actions/index.ts +5 -0
- package/src/redux/reducers/appState.ts +8 -0
- package/src/utils/types.ts +12 -3
|
@@ -54,7 +54,6 @@ export const HMSRoomOptions: React.FC<HMSRoomOptionsProps> = () => {
|
|
|
54
54
|
<BottomSheet
|
|
55
55
|
isVisible={modalVisible === ModalTypes.SETTINGS}
|
|
56
56
|
dismissModal={dismissModal}
|
|
57
|
-
animationOutTiming={700}
|
|
58
57
|
>
|
|
59
58
|
<RoomSettingsModalContent
|
|
60
59
|
newAudioMixingMode={newAudioMixingMode}
|
|
@@ -73,7 +72,6 @@ export const HMSRoomOptions: React.FC<HMSRoomOptionsProps> = () => {
|
|
|
73
72
|
isVisible={modalVisible === ModalTypes.CHANGE_NAME}
|
|
74
73
|
dismissModal={dismissModal}
|
|
75
74
|
avoidKeyboard={true}
|
|
76
|
-
animationOutTiming={700}
|
|
77
75
|
>
|
|
78
76
|
<ChangeNameModalContent dismissModal={dismissModal} />
|
|
79
77
|
</BottomSheet>
|
|
@@ -81,7 +79,6 @@ export const HMSRoomOptions: React.FC<HMSRoomOptionsProps> = () => {
|
|
|
81
79
|
<BottomSheet
|
|
82
80
|
isVisible={modalVisible === ModalTypes.STOP_RECORDING}
|
|
83
81
|
dismissModal={dismissModal}
|
|
84
|
-
animationOutTiming={800}
|
|
85
82
|
>
|
|
86
83
|
<StopRecordingModalContent dismissModal={dismissModal} />
|
|
87
84
|
</BottomSheet>
|
|
@@ -130,6 +130,7 @@ export const HMSTextInput: React.FC<HMSTextInputProps> = ({
|
|
|
130
130
|
selectionColor={resetProps.selectionColor ?? onSurfaceHighColor}
|
|
131
131
|
onFocus={resetProps.onFocus ?? handleInputFocus}
|
|
132
132
|
onBlur={resetProps.onBlur ?? handleInputBlur}
|
|
133
|
+
disableFullscreenUI={true}
|
|
133
134
|
/>
|
|
134
135
|
);
|
|
135
136
|
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import React, { memo } from 'react';
|
|
2
2
|
import { View, StyleSheet } from 'react-native';
|
|
3
|
-
import {
|
|
3
|
+
import {
|
|
4
|
+
SafeAreaView,
|
|
5
|
+
useSafeAreaInsets,
|
|
6
|
+
} from 'react-native-safe-area-context';
|
|
4
7
|
|
|
5
8
|
import { HMSManageCameraRotation } from './HMSManageCameraRotation';
|
|
6
9
|
import { useHMSRoomStyle } from '../hooks-util';
|
|
@@ -8,6 +11,7 @@ import { HMSManageAudioOutput } from './HMSManageAudioOutput';
|
|
|
8
11
|
import { HMSRecordingIndicator } from './HMSRecordingIndicator';
|
|
9
12
|
import { CompanyLogo } from './CompanyLogo';
|
|
10
13
|
import { HMSLiveIndicator } from './HMSLiveIndicator';
|
|
14
|
+
import { HMSLiveViewerCount } from './HMSLiveViewerCount';
|
|
11
15
|
|
|
12
16
|
interface HeaderProps {
|
|
13
17
|
transparent?: boolean;
|
|
@@ -19,6 +23,11 @@ const BOTTOM_PADDING = 16;
|
|
|
19
23
|
const CONTENT_HEIGHT = 42;
|
|
20
24
|
export const HEADER_HEIGHT = TOP_PADDING + CONTENT_HEIGHT + BOTTOM_PADDING;
|
|
21
25
|
|
|
26
|
+
export const useHeaderHeight = (excludeSafeArea: boolean = false) => {
|
|
27
|
+
const { top } = useSafeAreaInsets();
|
|
28
|
+
return (excludeSafeArea ? 0 : top) + HEADER_HEIGHT;
|
|
29
|
+
};
|
|
30
|
+
|
|
22
31
|
export const _Header: React.FC<HeaderProps> = ({
|
|
23
32
|
transparent = false,
|
|
24
33
|
showControls = true,
|
|
@@ -28,14 +37,16 @@ export const _Header: React.FC<HeaderProps> = ({
|
|
|
28
37
|
}));
|
|
29
38
|
|
|
30
39
|
return (
|
|
31
|
-
<SafeAreaView style={transparent ? null : containerStyles} edges={['top']}>
|
|
40
|
+
<SafeAreaView style={transparent ? null : containerStyles} edges={['top','left','right']}>
|
|
32
41
|
<View style={[styles.container, transparent ? null : containerStyles]}>
|
|
33
42
|
<View style={styles.logoContainer}>
|
|
34
43
|
<CompanyLogo style={styles.logo} />
|
|
35
44
|
|
|
45
|
+
<HMSLiveIndicator />
|
|
46
|
+
|
|
36
47
|
<HMSRecordingIndicator />
|
|
37
48
|
|
|
38
|
-
<
|
|
49
|
+
<HMSLiveViewerCount />
|
|
39
50
|
</View>
|
|
40
51
|
|
|
41
52
|
{showControls ? (
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { StyleSheet, Text, TouchableOpacity, View } from 'react-native';
|
|
3
3
|
import { useSelector } from 'react-redux';
|
|
4
|
+
import { HMSStreamingState } from '@100mslive/react-native-hms';
|
|
4
5
|
|
|
5
6
|
import { LeaveIcon } from '../Icons';
|
|
6
7
|
import { useHMSRoomStyleSheet, useLeaveMethods, useModalType } from '../hooks-util';
|
|
@@ -26,7 +27,7 @@ export const LeaveRoomBottomSheet: React.FC<LeaveRoomBottomSheetProps> = () => {
|
|
|
26
27
|
|
|
27
28
|
const isStreaming = useSelector(
|
|
28
29
|
(state: RootState) =>
|
|
29
|
-
state.hmsStates.room?.hlsStreamingState?.
|
|
30
|
+
state.hmsStates.room?.hlsStreamingState?.state === HMSStreamingState.STARTED ?? false
|
|
30
31
|
);
|
|
31
32
|
|
|
32
33
|
const hmsRoomStyles = useHMSRoomStyleSheet((theme, typography) => ({
|
|
@@ -105,10 +106,9 @@ export const LeaveRoomBottomSheet: React.FC<LeaveRoomBottomSheetProps> = () => {
|
|
|
105
106
|
return (
|
|
106
107
|
<BottomSheet
|
|
107
108
|
isVisible={modalVisibleType === ModalTypes.LEAVE_ROOM}
|
|
108
|
-
|
|
109
|
+
bottomOffsetSpace={0}
|
|
109
110
|
dismissModal={onPopupDismiss}
|
|
110
111
|
onModalHide={handlePopupHide}
|
|
111
|
-
animationOutTiming={700}
|
|
112
112
|
>
|
|
113
113
|
<View>
|
|
114
114
|
<TouchableOpacity
|
|
@@ -176,9 +176,6 @@ export const LeaveRoomBottomSheet: React.FC<LeaveRoomBottomSheetProps> = () => {
|
|
|
176
176
|
};
|
|
177
177
|
|
|
178
178
|
const styles = StyleSheet.create({
|
|
179
|
-
container: {
|
|
180
|
-
paddingBottom: 0,
|
|
181
|
-
},
|
|
182
179
|
button: {
|
|
183
180
|
flexDirection: 'row',
|
|
184
181
|
padding: 24,
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { StyleSheet, View } from 'react-native';
|
|
3
3
|
import { useSelector } from 'react-redux';
|
|
4
|
-
import { SafeAreaView } from 'react-native-safe-area-context';
|
|
5
4
|
|
|
6
5
|
import type { PeerTrackNode } from '../utils/types';
|
|
7
6
|
import { useRTCStatsListeners } from '../utils/hooks';
|
|
@@ -16,7 +15,6 @@ import {
|
|
|
16
15
|
useHMSReconnection,
|
|
17
16
|
useHMSRemovedFromRoomUpdate,
|
|
18
17
|
useHMSRoomStyle,
|
|
19
|
-
useIsHLSViewer,
|
|
20
18
|
usePIPListener,
|
|
21
19
|
} from '../hooks-util';
|
|
22
20
|
import { MeetingScreenContent } from './MeetingScreenContent';
|
|
@@ -32,8 +30,6 @@ export const Meeting: React.FC<MeetingProps> = ({ peerTrackNodes }) => {
|
|
|
32
30
|
(state: RootState) => state.app.startingHLSStream
|
|
33
31
|
);
|
|
34
32
|
|
|
35
|
-
const isHLSViewer = useIsHLSViewer();
|
|
36
|
-
|
|
37
33
|
// TODO: Fetch latest Room and localPeer on mount of this component?
|
|
38
34
|
|
|
39
35
|
useFetchHMSRoles();
|
|
@@ -76,23 +72,10 @@ export const Meeting: React.FC<MeetingProps> = ({ peerTrackNodes }) => {
|
|
|
76
72
|
return <HMSHLSStreamLoading />;
|
|
77
73
|
}
|
|
78
74
|
|
|
79
|
-
const Container = isHLSViewer ? View : SafeAreaView;
|
|
80
|
-
|
|
81
|
-
/**
|
|
82
|
-
* TODO: disbaled Expended View animation in Webrtc flow
|
|
83
|
-
*
|
|
84
|
-
* Problem: Tiles Flatlist was not scrollable because Root Pressable was registering screen taps.
|
|
85
|
-
* Solution: Try using Tab Gesture detector instead on Pressable component
|
|
86
|
-
*/
|
|
87
75
|
return (
|
|
88
|
-
<
|
|
89
|
-
style={[styles.container, containerStyles]}
|
|
90
|
-
edges={['left', 'right']}
|
|
91
|
-
>
|
|
76
|
+
<View style={[styles.container, containerStyles]}>
|
|
92
77
|
<MeetingScreenContent peerTrackNodes={peerTrackNodes} />
|
|
93
|
-
|
|
94
|
-
{/* {landscapeChatViewVisible ? <ChatView /> : null} */}
|
|
95
|
-
</Container>
|
|
78
|
+
</View>
|
|
96
79
|
);
|
|
97
80
|
};
|
|
98
81
|
|
|
@@ -1,21 +1,23 @@
|
|
|
1
|
-
import React, { useCallback, useRef, useState } from 'react';
|
|
2
|
-
import { StyleSheet,
|
|
1
|
+
import React, { useCallback, useRef, useState, useEffect } from 'react';
|
|
2
|
+
import { StyleSheet, View, Keyboard } from 'react-native';
|
|
3
3
|
import { useSelector } from 'react-redux';
|
|
4
4
|
import {
|
|
5
5
|
Easing,
|
|
6
|
+
KeyboardState,
|
|
6
7
|
cancelAnimation,
|
|
7
8
|
runOnJS,
|
|
8
9
|
useSharedValue,
|
|
9
10
|
withTiming,
|
|
10
11
|
} from 'react-native-reanimated';
|
|
12
|
+
import { Gesture, GestureDetector } from 'react-native-gesture-handler';
|
|
11
13
|
|
|
12
|
-
import { PipModes } from '../utils/types';
|
|
14
|
+
import { HeaderFooterHideDelayMs, PipModes } from '../utils/types';
|
|
13
15
|
import type { PeerTrackNode } from '../utils/types';
|
|
14
16
|
import type { RootState } from '../redux';
|
|
15
17
|
import { Footer } from './Footer';
|
|
16
18
|
import { DisplayView } from './DisplayView';
|
|
17
19
|
import { Header } from './Header';
|
|
18
|
-
import { useIsHLSViewer } from '../hooks-util';
|
|
20
|
+
import { useIsHLSViewer, useKeyboardState } from '../hooks-util';
|
|
19
21
|
import { HMSStatusBar } from './StatusBar';
|
|
20
22
|
import { AnimatedFooter } from './AnimatedFooter';
|
|
21
23
|
import { HLSFooter } from './HLSFooter';
|
|
@@ -36,79 +38,82 @@ export const MeetingScreenContent: React.FC<MeetingScreenContentProps> = ({
|
|
|
36
38
|
const isPipModeActive = useSelector(
|
|
37
39
|
(state: RootState) => state.app.pipModeStatus === PipModes.ACTIVE
|
|
38
40
|
);
|
|
41
|
+
const { keyboardState } = useKeyboardState();
|
|
39
42
|
|
|
40
|
-
const
|
|
41
|
-
|
|
42
|
-
|
|
43
|
+
const dismissKeyboard = useCallback(() => {
|
|
44
|
+
Keyboard.dismiss();
|
|
45
|
+
}, []);
|
|
46
|
+
|
|
47
|
+
const clearTimer = useCallback(() => {
|
|
48
|
+
if (timerIdRef.current !== null) {
|
|
43
49
|
clearTimeout(timerIdRef.current);
|
|
44
50
|
timerIdRef.current = null;
|
|
45
51
|
}
|
|
46
|
-
cancelAnimation(offset);
|
|
47
|
-
offset.value = withTiming(
|
|
48
|
-
offset.value === 1 ? 0 : 1,
|
|
49
|
-
{ duration: 200, easing: Easing.ease },
|
|
50
|
-
(finished) => {
|
|
51
|
-
if (finished) {
|
|
52
|
-
runOnJS(setControlsHidden)(offset.value === 0);
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
);
|
|
56
52
|
}, []);
|
|
57
53
|
|
|
54
|
+
const toggleControls = useCallback((fromTimeout: boolean = false) => {
|
|
55
|
+
'worklet';
|
|
56
|
+
if (
|
|
57
|
+
fromTimeout !== true &&
|
|
58
|
+
(keyboardState.value === KeyboardState.OPEN ||
|
|
59
|
+
keyboardState.value === KeyboardState.OPENING)
|
|
60
|
+
) {
|
|
61
|
+
runOnJS(dismissKeyboard)();
|
|
62
|
+
} else {
|
|
63
|
+
runOnJS(clearTimer)();
|
|
64
|
+
cancelAnimation(offset);
|
|
65
|
+
offset.value = withTiming(
|
|
66
|
+
offset.value === 1 ? 0 : 1,
|
|
67
|
+
{ duration: 200, easing: Easing.ease },
|
|
68
|
+
(finished) => {
|
|
69
|
+
if (finished) {
|
|
70
|
+
runOnJS(setControlsHidden)(offset.value === 0);
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
);
|
|
74
|
+
}
|
|
75
|
+
}, [dismissKeyboard, clearTimer]);
|
|
76
|
+
|
|
58
77
|
// Handles Auto hiding the controls for the first time
|
|
59
78
|
// to make this feature discoverable
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
// timerIdRef.current = null;
|
|
67
|
-
// toggleControls();
|
|
68
|
-
// }, 3000); d
|
|
79
|
+
useEffect(() => {
|
|
80
|
+
clearTimer();
|
|
81
|
+
timerIdRef.current = setTimeout(() => {
|
|
82
|
+
timerIdRef.current = null;
|
|
83
|
+
toggleControls(true);
|
|
84
|
+
}, HeaderFooterHideDelayMs);
|
|
69
85
|
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
// }, [isHLSViewer]);
|
|
86
|
+
return clearTimer;
|
|
87
|
+
}, [clearTimer, toggleControls]);
|
|
88
|
+
|
|
89
|
+
const tapGesture = Gesture.Tap()
|
|
90
|
+
.onEnd(() => toggleControls())
|
|
91
|
+
.requireExternalGestureToFail();
|
|
77
92
|
|
|
78
|
-
/**
|
|
79
|
-
* TODO: disbaled Expended View animation in Webrtc flow
|
|
80
|
-
*
|
|
81
|
-
* Problem: Tiles Flatlist was not scrollable because Root Pressable was registering screen taps.
|
|
82
|
-
* Solution: Try using Tab Gesture detector instead on Pressable component
|
|
83
|
-
*/
|
|
84
93
|
return (
|
|
85
|
-
<
|
|
86
|
-
onPress={toggleControls}
|
|
87
|
-
style={styles.container}
|
|
88
|
-
disabled={isHLSViewer || true}
|
|
89
|
-
>
|
|
94
|
+
<View style={styles.container}>
|
|
90
95
|
<HMSStatusBar hidden={controlsHidden} barStyle={'light-content'} />
|
|
91
96
|
|
|
92
|
-
<
|
|
93
|
-
{
|
|
94
|
-
|
|
95
|
-
<
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
<DisplayView offset={offset} peerTrackNodes={peerTrackNodes} />
|
|
97
|
+
<GestureDetector gesture={tapGesture}>
|
|
98
|
+
<View collapsable={false} style={styles.container}>
|
|
99
|
+
{isPipModeActive ? null : (
|
|
100
|
+
<AnimatedHeader offset={offset}>
|
|
101
|
+
<Header transparent={isHLSViewer} showControls={!isHLSViewer} />
|
|
102
|
+
</AnimatedHeader>
|
|
103
|
+
)}
|
|
100
104
|
|
|
101
|
-
|
|
102
|
-
</View>
|
|
105
|
+
<DisplayView offset={offset} peerTrackNodes={peerTrackNodes} />
|
|
103
106
|
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
107
|
+
{isPipModeActive ? null : isHLSViewer ? (
|
|
108
|
+
<HLSFooter offset={offset} />
|
|
109
|
+
) : (
|
|
110
|
+
<AnimatedFooter offset={offset}>
|
|
111
|
+
<Footer />
|
|
112
|
+
</AnimatedFooter>
|
|
113
|
+
)}
|
|
114
|
+
</View>
|
|
115
|
+
</GestureDetector>
|
|
116
|
+
</View>
|
|
112
117
|
);
|
|
113
118
|
};
|
|
114
119
|
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import type { MutableRefObject } from 'react';
|
|
3
2
|
import { useDispatch, useSelector } from 'react-redux';
|
|
4
3
|
import { StyleSheet, View, LayoutAnimation } from 'react-native';
|
|
5
|
-
import type { LayoutRectangle } from 'react-native';
|
|
6
4
|
import { GestureDetector, Gesture } from 'react-native-gesture-handler';
|
|
7
5
|
import Animated, {
|
|
8
6
|
cancelAnimation,
|
|
@@ -20,6 +18,7 @@ import {
|
|
|
20
18
|
import type { RootState } from '../redux';
|
|
21
19
|
import { setInsetViewMinimized } from '../redux/actions';
|
|
22
20
|
import { isPublishingAllowed } from '../hooks-util';
|
|
21
|
+
import { useIsLandscapeOrientation } from '../utils/dimension';
|
|
23
22
|
|
|
24
23
|
const cornerOffset = {
|
|
25
24
|
x: 8, // rightX
|
|
@@ -30,13 +29,16 @@ const cornerOffset = {
|
|
|
30
29
|
|
|
31
30
|
export interface MiniViewProps
|
|
32
31
|
extends Omit<PeerVideoTileViewProps, 'peerTrackNode'> {
|
|
33
|
-
|
|
32
|
+
boundingBoxWidth: number | null;
|
|
33
|
+
boundingBoxHeight: number | null;
|
|
34
34
|
}
|
|
35
35
|
|
|
36
36
|
export const MiniView: React.FC<Omit<MiniViewProps, 'insetMode'>> = ({
|
|
37
|
-
|
|
37
|
+
boundingBoxWidth,
|
|
38
|
+
boundingBoxHeight,
|
|
38
39
|
onMoreOptionsPress,
|
|
39
40
|
}) => {
|
|
41
|
+
const isLandscapeOrientation = useIsLandscapeOrientation();
|
|
40
42
|
const isPressed = useSharedValue(false);
|
|
41
43
|
const xOffset = useSharedValue(0);
|
|
42
44
|
const yOffset = useSharedValue(0);
|
|
@@ -54,8 +56,8 @@ export const MiniView: React.FC<Omit<MiniViewProps, 'insetMode'>> = ({
|
|
|
54
56
|
usePeerMinimizedViewDimensions();
|
|
55
57
|
|
|
56
58
|
const size = {
|
|
57
|
-
width: minimized ? minimizedViewWidth : 104,
|
|
58
|
-
height: minimized ? minimizedViewHeigth : 186,
|
|
59
|
+
width: minimized ? minimizedViewWidth : isLandscapeOrientation ? 178 : 104,
|
|
60
|
+
height: minimized ? minimizedViewHeigth : isLandscapeOrientation ? 98 : 186,
|
|
59
61
|
};
|
|
60
62
|
|
|
61
63
|
const dimensionStyles = {
|
|
@@ -83,7 +85,8 @@ export const MiniView: React.FC<Omit<MiniViewProps, 'insetMode'>> = ({
|
|
|
83
85
|
size.height,
|
|
84
86
|
cornerOffset.x,
|
|
85
87
|
cornerOffset.topY,
|
|
86
|
-
|
|
88
|
+
boundingBoxWidth,
|
|
89
|
+
boundingBoxHeight
|
|
87
90
|
);
|
|
88
91
|
|
|
89
92
|
const finalX = snapPointX;
|
|
@@ -130,7 +133,7 @@ export const MiniView: React.FC<Omit<MiniViewProps, 'insetMode'>> = ({
|
|
|
130
133
|
cancelAnimation(xOffset);
|
|
131
134
|
cancelAnimation(yOffset);
|
|
132
135
|
};
|
|
133
|
-
}, [minimized]);
|
|
136
|
+
}, [boundingBoxWidth, boundingBoxHeight, minimized]);
|
|
134
137
|
|
|
135
138
|
const handleMaximize = () => {
|
|
136
139
|
LayoutAnimation.configureNext(LayoutAnimation.Presets.easeInEaseOut);
|
|
@@ -195,25 +198,25 @@ const getSnappingPoints = (
|
|
|
195
198
|
compHeight: number,
|
|
196
199
|
xCornerOffset: number,
|
|
197
200
|
yCornerOffset: number,
|
|
198
|
-
|
|
201
|
+
boundingBoxWidth: number | null,
|
|
202
|
+
boundingBoxHeight: number | null
|
|
199
203
|
) => {
|
|
200
204
|
'worklet';
|
|
201
|
-
if (!
|
|
205
|
+
if (!boundingBoxWidth || !boundingBoxHeight) {
|
|
202
206
|
return {
|
|
203
207
|
snapPointX: 0,
|
|
204
208
|
snapPointY: 0,
|
|
205
209
|
};
|
|
206
210
|
}
|
|
207
|
-
const { height, width } = boundingBox;
|
|
208
211
|
|
|
209
212
|
return {
|
|
210
213
|
snapPointX:
|
|
211
|
-
Math.abs(currentValueX) + compWidth <
|
|
214
|
+
Math.abs(currentValueX) + compWidth < boundingBoxWidth / 2
|
|
212
215
|
? 0
|
|
213
|
-
: -
|
|
216
|
+
: -boundingBoxWidth + compWidth + xCornerOffset * 2,
|
|
214
217
|
snapPointY:
|
|
215
|
-
Math.abs(currentValueY) + compHeight <
|
|
218
|
+
Math.abs(currentValueY) + compHeight < boundingBoxHeight / 2
|
|
216
219
|
? 0
|
|
217
|
-
: -
|
|
220
|
+
: -boundingBoxHeight + compHeight + yCornerOffset * 2,
|
|
218
221
|
};
|
|
219
222
|
};
|
|
@@ -1,18 +1,21 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
+
import type { SharedValue } from 'react-native-reanimated';
|
|
2
3
|
|
|
3
4
|
import { HMSNotifications } from './HMSNotifications';
|
|
4
5
|
import { OverlayContainer } from './OverlayContainer';
|
|
5
6
|
import { HLSChatView } from './HMSOverlayChatView';
|
|
6
7
|
import { useShowChatAndParticipants } from '../hooks-util';
|
|
7
8
|
|
|
8
|
-
export type OverlayedViewsProps = {
|
|
9
|
+
export type OverlayedViewsProps = {
|
|
10
|
+
offset: SharedValue<number>;
|
|
11
|
+
};
|
|
9
12
|
|
|
10
|
-
const _OverlayedViews: React.FC<OverlayedViewsProps> = () => {
|
|
13
|
+
const _OverlayedViews: React.FC<OverlayedViewsProps> = ({ offset }) => {
|
|
11
14
|
const { overlayChatVisible } = useShowChatAndParticipants();
|
|
12
15
|
|
|
13
16
|
return (
|
|
14
17
|
<OverlayContainer.Overlay>
|
|
15
|
-
{overlayChatVisible ? <HLSChatView /> : null}
|
|
18
|
+
{overlayChatVisible ? <HLSChatView offset={offset} /> : null}
|
|
16
19
|
|
|
17
20
|
<HMSNotifications />
|
|
18
21
|
</OverlayContainer.Overlay>
|
|
@@ -47,6 +47,7 @@ export const PeerSettingsModalContent: React.FC<
|
|
|
47
47
|
const mininode = state.app.miniviewPeerTrackNode;
|
|
48
48
|
return mininode && mininode.id === peerTrackNode.id;
|
|
49
49
|
});
|
|
50
|
+
const editUsernameDisabled = useSelector((state: RootState) => state.app.editUsernameDisabled);
|
|
50
51
|
|
|
51
52
|
const removeTextStyle = useHMSRoomStyle((theme) => ({
|
|
52
53
|
color: theme.palette.alert_error_default,
|
|
@@ -123,7 +124,7 @@ export const PeerSettingsModalContent: React.FC<
|
|
|
123
124
|
|
|
124
125
|
{/* Content */}
|
|
125
126
|
<View style={styles.contentContainer}>
|
|
126
|
-
{peer.isLocal ? (
|
|
127
|
+
{peer.isLocal && !editUsernameDisabled ? (
|
|
127
128
|
<SettingItem
|
|
128
129
|
testID={TestIds.tile_modal_change_name_btn}
|
|
129
130
|
text={'Change Name'}
|
|
@@ -52,6 +52,7 @@ export const _PeerVideoTileView = React.forwardRef<
|
|
|
52
52
|
const isPipModeActive = useSelector(
|
|
53
53
|
(state: RootState) => state.app.pipModeStatus === PipModes.ACTIVE
|
|
54
54
|
);
|
|
55
|
+
const editUsernameDisabled = useSelector((state: RootState) => state.app.editUsernameDisabled);
|
|
55
56
|
|
|
56
57
|
const onSpotlight = useSelector((state: RootState) => {
|
|
57
58
|
const { onSpotlight } = isTileOnSpotlight(state.user.spotlightTrackId, {
|
|
@@ -101,7 +102,7 @@ export const _PeerVideoTileView = React.forwardRef<
|
|
|
101
102
|
|
|
102
103
|
const canTakeActionOnPeer = useSelector((state: RootState) => {
|
|
103
104
|
if (peer.isLocal) {
|
|
104
|
-
return
|
|
105
|
+
return !editUsernameDisabled || insetMode;
|
|
105
106
|
}
|
|
106
107
|
|
|
107
108
|
const permissions = state.hmsStates.localPeer?.role?.permissions;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { StyleSheet, TouchableOpacity } from 'react-native';
|
|
3
3
|
import type { TouchableOpacityProps } from 'react-native';
|
|
4
|
+
import { GestureDetector, Gesture } from 'react-native-gesture-handler';
|
|
4
5
|
|
|
5
6
|
import { useHMSRoomStyleSheet, useIsHLSViewer } from '../hooks-util';
|
|
6
7
|
import { hexToRgbA } from '../utils/theme';
|
|
@@ -41,24 +42,28 @@ export const PressableIcon: React.FC<PressableIconProps> = ({
|
|
|
41
42
|
[isHLSViewer]
|
|
42
43
|
);
|
|
43
44
|
|
|
45
|
+
const tapGesture = React.useMemo(() => Gesture.Tap(), []);
|
|
46
|
+
|
|
44
47
|
return (
|
|
45
|
-
<
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
48
|
+
<GestureDetector gesture={tapGesture}>
|
|
49
|
+
<TouchableOpacity
|
|
50
|
+
style={[
|
|
51
|
+
styles.pressable,
|
|
52
|
+
hmsRoomStyles.pressable,
|
|
53
|
+
{
|
|
54
|
+
borderRadius: rounded ? 20 : 8,
|
|
55
|
+
...(border && !isHLSViewer
|
|
56
|
+
? { ...styles.withBorder, ...hmsRoomStyles.border }
|
|
57
|
+
: undefined),
|
|
58
|
+
...(active ? hmsRoomStyles.active : undefined),
|
|
59
|
+
},
|
|
60
|
+
style,
|
|
61
|
+
]}
|
|
62
|
+
{...restProps}
|
|
63
|
+
>
|
|
64
|
+
{children}
|
|
65
|
+
</TouchableOpacity>
|
|
66
|
+
</GestureDetector>
|
|
62
67
|
);
|
|
63
68
|
};
|
|
64
69
|
|
|
@@ -114,7 +114,7 @@ export const Preview = ({
|
|
|
114
114
|
<BackButton />
|
|
115
115
|
</SafeAreaView>
|
|
116
116
|
|
|
117
|
-
<
|
|
117
|
+
<SafeAreaView edges={['left', 'right']} style={styles.footerWrapper}>
|
|
118
118
|
<HMSPreviewNetworkQuality />
|
|
119
119
|
|
|
120
120
|
<HMSKeyboardAvoidingView
|
|
@@ -145,7 +145,7 @@ export const Preview = ({
|
|
|
145
145
|
/>
|
|
146
146
|
</View>
|
|
147
147
|
</HMSKeyboardAvoidingView>
|
|
148
|
-
</
|
|
148
|
+
</SafeAreaView>
|
|
149
149
|
</View>
|
|
150
150
|
</TouchableWithoutFeedback>
|
|
151
151
|
);
|
|
@@ -2,6 +2,7 @@ import * as React from 'react';
|
|
|
2
2
|
import { View, StyleSheet, Text, TouchableOpacity } from 'react-native';
|
|
3
3
|
import type { TouchableOpacityProps } from 'react-native';
|
|
4
4
|
import type { HMSAudioMixingMode } from '@100mslive/react-native-hms';
|
|
5
|
+
import { HMSRecordingState } from '@100mslive/react-native-hms';
|
|
5
6
|
import { useSelector } from 'react-redux';
|
|
6
7
|
|
|
7
8
|
import type { RootState } from '../redux';
|
|
@@ -19,6 +20,7 @@ import { BottomSheet, useBottomSheetActions } from './BottomSheet';
|
|
|
19
20
|
import {
|
|
20
21
|
isPublishingAllowed,
|
|
21
22
|
useHMSLayoutConfig,
|
|
23
|
+
useHMSRoomColorPalette,
|
|
22
24
|
useHMSRoomStyleSheet,
|
|
23
25
|
useShowChatAndParticipants,
|
|
24
26
|
useStartRecording,
|
|
@@ -50,10 +52,13 @@ export const RoomSettingsModalContent: React.FC<
|
|
|
50
52
|
|
|
51
53
|
const hmsActions = useHMSActions();
|
|
52
54
|
|
|
55
|
+
const { alert_error_default: alertErrorDefaultColor } = useHMSRoomColorPalette()
|
|
56
|
+
|
|
53
57
|
const isPublisher = useSelector((state: RootState) => {
|
|
54
58
|
const localPeer = state.hmsStates.localPeer;
|
|
55
59
|
return localPeer ? isPublishingAllowed(localPeer) : false;
|
|
56
60
|
});
|
|
61
|
+
const editUsernameDisabled = useSelector((state: RootState) => state.app.editUsernameDisabled);
|
|
57
62
|
|
|
58
63
|
const { registerOnModalHideAction } = useBottomSheetActions();
|
|
59
64
|
|
|
@@ -130,7 +135,13 @@ export const RoomSettingsModalContent: React.FC<
|
|
|
130
135
|
);
|
|
131
136
|
|
|
132
137
|
const isRecordingOn = useSelector(
|
|
133
|
-
(state: RootState) =>
|
|
138
|
+
(state: RootState) =>
|
|
139
|
+
state.hmsStates.room?.browserRecordingState?.state === HMSRecordingState.RESUMED ||
|
|
140
|
+
state.hmsStates.room?.browserRecordingState?.state === HMSRecordingState.STARTED
|
|
141
|
+
);
|
|
142
|
+
const isRecordingPaused = useSelector(
|
|
143
|
+
(state: RootState) =>
|
|
144
|
+
state.hmsStates.room?.browserRecordingState?.state === HMSRecordingState.PAUSED
|
|
134
145
|
);
|
|
135
146
|
|
|
136
147
|
const { startRecording } = useStartRecording();
|
|
@@ -229,12 +240,13 @@ export const RoomSettingsModalContent: React.FC<
|
|
|
229
240
|
hide: !showHandRaiseIcon, // Hide if can't publish screen
|
|
230
241
|
},
|
|
231
242
|
{
|
|
232
|
-
id: '
|
|
243
|
+
id: 'recording',
|
|
233
244
|
testID: isRecordingOn ? TestIds.room_modal_stop_recording_btn : TestIds.room_modal_start_recording_btn,
|
|
234
|
-
icon: <RecordingIcon style={{ width: 20, height: 20 }} />,
|
|
235
|
-
label: isRecordingOn ? '
|
|
245
|
+
icon: <RecordingIcon type={isRecordingPaused ? 'pause' : 'on'} style={[{ width: 20, height: 20 }, isRecordingOn ? { tintColor: alertErrorDefaultColor } : null]} />,
|
|
246
|
+
label: isRecordingOn ? 'Recording' : isRecordingPaused ? 'Recording Paused' : 'Record',
|
|
236
247
|
pressHandler: handleRecordingTogglePress,
|
|
237
|
-
isActive:
|
|
248
|
+
isActive: false,
|
|
249
|
+
disabled: isRecordingPaused,
|
|
238
250
|
hide: !canStartRecording, // Hide if can't publish screen
|
|
239
251
|
},
|
|
240
252
|
{
|
|
@@ -244,7 +256,7 @@ export const RoomSettingsModalContent: React.FC<
|
|
|
244
256
|
label: 'Change Name',
|
|
245
257
|
pressHandler: changeName,
|
|
246
258
|
isActive: false,
|
|
247
|
-
hide: isPublisher,
|
|
259
|
+
hide: isPublisher || editUsernameDisabled,
|
|
248
260
|
},
|
|
249
261
|
].filter((itm) => !itm.hide),
|
|
250
262
|
true
|
|
@@ -272,6 +284,7 @@ export const RoomSettingsModalContent: React.FC<
|
|
|
272
284
|
onPress={item.pressHandler}
|
|
273
285
|
text={item.label}
|
|
274
286
|
isActive={item.isActive}
|
|
287
|
+
disabled={item.disabled}
|
|
275
288
|
/>
|
|
276
289
|
|
|
277
290
|
{item.sibling}
|
|
@@ -296,6 +309,7 @@ type SettingItemProps = {
|
|
|
296
309
|
text: string;
|
|
297
310
|
icon: React.ReactElement;
|
|
298
311
|
onPress(): void;
|
|
312
|
+
disabled?: TouchableOpacityProps['disabled'];
|
|
299
313
|
testID?: TouchableOpacityProps['testID'];
|
|
300
314
|
isActive?: boolean;
|
|
301
315
|
};
|
|
@@ -305,6 +319,7 @@ const SettingItem: React.FC<SettingItemProps> = ({
|
|
|
305
319
|
text,
|
|
306
320
|
icon,
|
|
307
321
|
onPress,
|
|
322
|
+
disabled,
|
|
308
323
|
isActive = false,
|
|
309
324
|
}) => {
|
|
310
325
|
const hmsRoomStyles = useHMSRoomStyleSheet((theme, typography) => ({
|
|
@@ -320,6 +335,7 @@ const SettingItem: React.FC<SettingItemProps> = ({
|
|
|
320
335
|
return (
|
|
321
336
|
<TouchableOpacity
|
|
322
337
|
testID={testID}
|
|
338
|
+
disabled={disabled}
|
|
323
339
|
style={[styles.button, isActive ? hmsRoomStyles.button : null]}
|
|
324
340
|
onPress={onPress}
|
|
325
341
|
>
|