@100mslive/react-native-room-kit 1.1.5 → 1.1.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/Icons/CC/assets/cc-off-med.png +0 -0
- package/lib/commonjs/Icons/CC/assets/cc-off-med@2x.png +0 -0
- package/lib/commonjs/Icons/CC/assets/cc-off-med@3x.png +0 -0
- package/lib/commonjs/Icons/CC/assets/cc-on-med.png +0 -0
- package/lib/commonjs/Icons/CC/assets/cc-on-med@2x.png +0 -0
- package/lib/commonjs/Icons/CC/assets/cc-on-med@3x.png +0 -0
- package/lib/commonjs/Icons/CC/index.js +39 -0
- package/lib/commonjs/Icons/CC/index.js.map +1 -0
- package/lib/commonjs/Icons/Close/assets/close-med.png +0 -0
- package/lib/commonjs/Icons/Close/assets/close-med@2x.png +0 -0
- package/lib/commonjs/Icons/Close/assets/close-med@3x.png +0 -0
- package/lib/commonjs/Icons/Close/index.js +7 -2
- package/lib/commonjs/Icons/Close/index.js.map +1 -1
- package/lib/commonjs/Icons/Maximize/assets/maximize-med.png +0 -0
- package/lib/commonjs/Icons/Maximize/assets/maximize-med@2x.png +0 -0
- package/lib/commonjs/Icons/Maximize/assets/maximize-med@3x.png +0 -0
- package/lib/commonjs/Icons/Maximize/index.js +7 -2
- package/lib/commonjs/Icons/Maximize/index.js.map +1 -1
- package/lib/commonjs/Icons/Minimize/assets/minimize-med.png +0 -0
- package/lib/commonjs/Icons/Minimize/assets/minimize-med@2x.png +0 -0
- package/lib/commonjs/Icons/Minimize/assets/minimize-med@3x.png +0 -0
- package/lib/commonjs/Icons/Minimize/index.js +7 -2
- package/lib/commonjs/Icons/Minimize/index.js.map +1 -1
- package/lib/commonjs/Icons/Pause/assets/pause-med.png +0 -0
- package/lib/commonjs/Icons/Pause/assets/pause-med@2x.png +0 -0
- package/lib/commonjs/Icons/Pause/assets/pause-med@3x.png +0 -0
- package/lib/commonjs/Icons/Pause/index.js +35 -0
- package/lib/commonjs/Icons/Pause/index.js.map +1 -0
- package/lib/commonjs/Icons/Play/assets/play-med.png +0 -0
- package/lib/commonjs/Icons/Play/assets/play-med@2x.png +0 -0
- package/lib/commonjs/Icons/Play/assets/play-med@3x.png +0 -0
- package/lib/commonjs/Icons/Play/index.js +35 -0
- package/lib/commonjs/Icons/Play/index.js.map +1 -0
- package/lib/commonjs/Icons/SeekArrow/assets/seek-backward-arrow.png +0 -0
- package/lib/commonjs/Icons/SeekArrow/assets/seek-backward-arrow@2x.png +0 -0
- package/lib/commonjs/Icons/SeekArrow/assets/seek-backward-arrow@3x.png +0 -0
- package/lib/commonjs/Icons/SeekArrow/assets/seek-forward-arrow.png +0 -0
- package/lib/commonjs/Icons/SeekArrow/assets/seek-forward-arrow@2x.png +0 -0
- package/lib/commonjs/Icons/SeekArrow/assets/seek-forward-arrow@3x.png +0 -0
- package/lib/commonjs/Icons/SeekArrow/index.js +34 -0
- package/lib/commonjs/Icons/SeekArrow/index.js.map +1 -0
- package/lib/commonjs/Icons/index.js +44 -0
- package/lib/commonjs/Icons/index.js.map +1 -1
- package/lib/commonjs/components/AnimatedHeader.js +1 -11
- package/lib/commonjs/components/AnimatedHeader.js.map +1 -1
- package/lib/commonjs/components/Chat/ChatBanner.js +1 -0
- package/lib/commonjs/components/Chat/ChatBanner.js.map +1 -1
- package/lib/commonjs/components/Chat/ChatFilterBottomSheetOpener.js +10 -7
- package/lib/commonjs/components/Chat/ChatFilterBottomSheetOpener.js.map +1 -1
- package/lib/commonjs/components/Chat/ChatList.js +4 -2
- package/lib/commonjs/components/Chat/ChatList.js.map +1 -1
- package/lib/commonjs/components/ChatAndParticipants/ChatAndParticipantsView.js +2 -1
- package/lib/commonjs/components/ChatAndParticipants/ChatAndParticipantsView.js.map +1 -1
- package/lib/commonjs/components/DisplayView.js +1 -9
- package/lib/commonjs/components/DisplayView.js.map +1 -1
- package/lib/commonjs/components/Footer.js +7 -44
- package/lib/commonjs/components/Footer.js.map +1 -1
- package/lib/commonjs/components/HLSAnimatedDescriptionPane.js +30 -0
- package/lib/commonjs/components/HLSAnimatedDescriptionPane.js.map +1 -0
- package/lib/commonjs/components/HLSChatFooterView.js +51 -0
- package/lib/commonjs/components/HLSChatFooterView.js.map +1 -0
- package/lib/commonjs/components/HLSChatHeaderView.js +130 -0
- package/lib/commonjs/components/HLSChatHeaderView.js.map +1 -0
- package/lib/commonjs/components/HLSChatMessages.js +54 -0
- package/lib/commonjs/components/HLSChatMessages.js.map +1 -0
- package/lib/commonjs/components/HLSChatView.js +49 -0
- package/lib/commonjs/components/HLSChatView.js.map +1 -0
- package/lib/commonjs/components/HLSCloseMeetingControl.js +41 -0
- package/lib/commonjs/components/HLSCloseMeetingControl.js.map +1 -0
- package/lib/commonjs/components/HLSClosedCaptionControl.js +109 -0
- package/lib/commonjs/components/HLSClosedCaptionControl.js.map +1 -0
- package/lib/commonjs/components/HLSDescriptionPane.js +145 -0
- package/lib/commonjs/components/HLSDescriptionPane.js.map +1 -0
- package/lib/commonjs/components/HLSDescriptionPaneHeader.js +70 -0
- package/lib/commonjs/components/HLSDescriptionPaneHeader.js.map +1 -0
- package/lib/commonjs/components/HLSDistanceFromLive.js +56 -0
- package/lib/commonjs/components/HLSDistanceFromLive.js.map +1 -0
- package/lib/commonjs/components/HLSFooter.js +1 -1
- package/lib/commonjs/components/HLSFooter.js.map +1 -1
- package/lib/commonjs/components/HLSFullScreenControl.js +42 -0
- package/lib/commonjs/components/HLSFullScreenControl.js.map +1 -0
- package/lib/commonjs/components/HLSGoLiveControl.js +78 -0
- package/lib/commonjs/components/HLSGoLiveControl.js.map +1 -0
- package/lib/commonjs/components/HLSHandRaiseButton.js +38 -0
- package/lib/commonjs/components/HLSHandRaiseButton.js.map +1 -0
- package/lib/commonjs/components/HLSManageChatTextInput.js +90 -0
- package/lib/commonjs/components/HLSManageChatTextInput.js.map +1 -0
- package/lib/commonjs/components/HLSNotifications.js +32 -0
- package/lib/commonjs/components/HLSNotifications.js.map +1 -0
- package/lib/commonjs/components/HLSPlayPauseControl.js +62 -0
- package/lib/commonjs/components/HLSPlayPauseControl.js.map +1 -0
- package/lib/commonjs/components/HLSPlayer.js +193 -0
- package/lib/commonjs/components/HLSPlayer.js.map +1 -0
- package/lib/commonjs/components/HLSPlayerContainer.js +123 -0
- package/lib/commonjs/components/HLSPlayerContainer.js.map +1 -0
- package/lib/commonjs/components/HLSPlayerControls.js +130 -0
- package/lib/commonjs/components/HLSPlayerControls.js.map +1 -0
- package/lib/commonjs/components/HLSRecordingStatusText.js +31 -0
- package/lib/commonjs/components/HLSRecordingStatusText.js.map +1 -0
- package/lib/commonjs/components/HLSRoomOptionsButton.js +25 -0
- package/lib/commonjs/components/HLSRoomOptionsButton.js.map +1 -0
- package/lib/commonjs/components/HLSSeekbackwardControl.js +67 -0
- package/lib/commonjs/components/HLSSeekbackwardControl.js.map +1 -0
- package/lib/commonjs/components/HLSSeekbar.js +285 -0
- package/lib/commonjs/components/HLSSeekbar.js.map +1 -0
- package/lib/commonjs/components/HLSSeekforwardControl.js +71 -0
- package/lib/commonjs/components/HLSSeekforwardControl.js.map +1 -0
- package/lib/commonjs/components/HLSStreamStartedTime.js +69 -0
- package/lib/commonjs/components/HLSStreamStartedTime.js.map +1 -0
- package/lib/commonjs/components/HLSViewerScreenContent.js +61 -0
- package/lib/commonjs/components/HLSViewerScreenContent.js.map +1 -0
- package/lib/commonjs/components/HMSHLSMessage.js +19 -41
- package/lib/commonjs/components/HMSHLSMessage.js.map +1 -1
- package/lib/commonjs/components/HMSHLSMessageList.js +2 -2
- package/lib/commonjs/components/HMSHLSMessageList.js.map +1 -1
- package/lib/commonjs/components/HMSHLSNotStarted.js +15 -7
- package/lib/commonjs/components/HMSHLSNotStarted.js.map +1 -1
- package/lib/commonjs/components/HMSKeyboardAvoidingView.js +5 -1
- package/lib/commonjs/components/HMSKeyboardAvoidingView.js.map +1 -1
- package/lib/commonjs/components/HMSLiveViewerCount.js +2 -4
- package/lib/commonjs/components/HMSLiveViewerCount.js.map +1 -1
- package/lib/commonjs/components/HMSNotification.js +3 -2
- package/lib/commonjs/components/HMSNotification.js.map +1 -1
- package/lib/commonjs/components/HMSNotifications.js +3 -1
- package/lib/commonjs/components/HMSNotifications.js.map +1 -1
- package/lib/commonjs/components/HMSOverlayChatView.js +7 -4
- package/lib/commonjs/components/HMSOverlayChatView.js.map +1 -1
- package/lib/commonjs/components/HMSOverlayMessageView.js +150 -0
- package/lib/commonjs/components/HMSOverlayMessageView.js.map +1 -0
- package/lib/commonjs/components/Meeting.js +3 -1
- package/lib/commonjs/components/Meeting.js.map +1 -1
- package/lib/commonjs/components/MeetingScreenContent.js +2 -9
- package/lib/commonjs/components/MeetingScreenContent.js.map +1 -1
- package/lib/commonjs/components/OverlayedViews.js +1 -1
- package/lib/commonjs/components/OverlayedViews.js.map +1 -1
- package/lib/commonjs/components/Participants/ParticipantsList.js +4 -4
- package/lib/commonjs/components/Participants/ParticipantsList.js.map +1 -1
- package/lib/commonjs/components/PressableIcon.js +1 -2
- package/lib/commonjs/components/PressableIcon.js.map +1 -1
- package/lib/commonjs/hooks-util.js +156 -5
- package/lib/commonjs/hooks-util.js.map +1 -1
- package/lib/commonjs/redux/actionTypes.js +6 -0
- package/lib/commonjs/redux/actionTypes.js.map +1 -1
- package/lib/commonjs/redux/actions/index.js +24 -3
- package/lib/commonjs/redux/actions/index.js.map +1 -1
- package/lib/commonjs/redux/reducers/appState.js +25 -1
- package/lib/commonjs/redux/reducers/appState.js.map +1 -1
- package/lib/module/Icons/CC/assets/cc-off-med.png +0 -0
- package/lib/module/Icons/CC/assets/cc-off-med@2x.png +0 -0
- package/lib/module/Icons/CC/assets/cc-off-med@3x.png +0 -0
- package/lib/module/Icons/CC/assets/cc-on-med.png +0 -0
- package/lib/module/Icons/CC/assets/cc-on-med@2x.png +0 -0
- package/lib/module/Icons/CC/assets/cc-on-med@3x.png +0 -0
- package/lib/module/Icons/CC/index.js +31 -0
- package/lib/module/Icons/CC/index.js.map +1 -0
- package/lib/module/Icons/Close/assets/close-med.png +0 -0
- package/lib/module/Icons/Close/assets/close-med@2x.png +0 -0
- package/lib/module/Icons/Close/assets/close-med@3x.png +0 -0
- package/lib/module/Icons/Close/index.js +7 -2
- package/lib/module/Icons/Close/index.js.map +1 -1
- package/lib/module/Icons/Maximize/assets/maximize-med.png +0 -0
- package/lib/module/Icons/Maximize/assets/maximize-med@2x.png +0 -0
- package/lib/module/Icons/Maximize/assets/maximize-med@3x.png +0 -0
- package/lib/module/Icons/Maximize/index.js +7 -2
- package/lib/module/Icons/Maximize/index.js.map +1 -1
- package/lib/module/Icons/Minimize/assets/minimize-med.png +0 -0
- package/lib/module/Icons/Minimize/assets/minimize-med@2x.png +0 -0
- package/lib/module/Icons/Minimize/assets/minimize-med@3x.png +0 -0
- package/lib/module/Icons/Minimize/index.js +7 -2
- package/lib/module/Icons/Minimize/index.js.map +1 -1
- package/lib/module/Icons/Pause/assets/pause-med.png +0 -0
- package/lib/module/Icons/Pause/assets/pause-med@2x.png +0 -0
- package/lib/module/Icons/Pause/assets/pause-med@3x.png +0 -0
- package/lib/module/Icons/Pause/index.js +27 -0
- package/lib/module/Icons/Pause/index.js.map +1 -0
- package/lib/module/Icons/Play/assets/play-med.png +0 -0
- package/lib/module/Icons/Play/assets/play-med@2x.png +0 -0
- package/lib/module/Icons/Play/assets/play-med@3x.png +0 -0
- package/lib/module/Icons/Play/index.js +27 -0
- package/lib/module/Icons/Play/index.js.map +1 -0
- package/lib/module/Icons/SeekArrow/assets/seek-backward-arrow.png +0 -0
- package/lib/module/Icons/SeekArrow/assets/seek-backward-arrow@2x.png +0 -0
- package/lib/module/Icons/SeekArrow/assets/seek-backward-arrow@3x.png +0 -0
- package/lib/module/Icons/SeekArrow/assets/seek-forward-arrow.png +0 -0
- package/lib/module/Icons/SeekArrow/assets/seek-forward-arrow@2x.png +0 -0
- package/lib/module/Icons/SeekArrow/assets/seek-forward-arrow@3x.png +0 -0
- package/lib/module/Icons/SeekArrow/index.js +26 -0
- package/lib/module/Icons/SeekArrow/index.js.map +1 -0
- package/lib/module/Icons/index.js +4 -0
- package/lib/module/Icons/index.js.map +1 -1
- package/lib/module/components/AnimatedHeader.js +1 -11
- package/lib/module/components/AnimatedHeader.js.map +1 -1
- package/lib/module/components/Chat/ChatBanner.js +1 -0
- package/lib/module/components/Chat/ChatBanner.js.map +1 -1
- package/lib/module/components/Chat/ChatFilterBottomSheetOpener.js +10 -7
- package/lib/module/components/Chat/ChatFilterBottomSheetOpener.js.map +1 -1
- package/lib/module/components/Chat/ChatList.js +4 -2
- package/lib/module/components/Chat/ChatList.js.map +1 -1
- package/lib/module/components/ChatAndParticipants/ChatAndParticipantsView.js +3 -2
- package/lib/module/components/ChatAndParticipants/ChatAndParticipantsView.js.map +1 -1
- package/lib/module/components/DisplayView.js +3 -11
- package/lib/module/components/DisplayView.js.map +1 -1
- package/lib/module/components/Footer.js +9 -46
- package/lib/module/components/Footer.js.map +1 -1
- package/lib/module/components/HLSAnimatedDescriptionPane.js +21 -0
- package/lib/module/components/HLSAnimatedDescriptionPane.js.map +1 -0
- package/lib/module/components/HLSChatFooterView.js +42 -0
- package/lib/module/components/HLSChatFooterView.js.map +1 -0
- package/lib/module/components/HLSChatHeaderView.js +121 -0
- package/lib/module/components/HLSChatHeaderView.js.map +1 -0
- package/lib/module/components/HLSChatMessages.js +45 -0
- package/lib/module/components/HLSChatMessages.js.map +1 -0
- package/lib/module/components/HLSChatView.js +40 -0
- package/lib/module/components/HLSChatView.js.map +1 -0
- package/lib/module/components/HLSCloseMeetingControl.js +33 -0
- package/lib/module/components/HLSCloseMeetingControl.js.map +1 -0
- package/lib/module/components/HLSClosedCaptionControl.js +100 -0
- package/lib/module/components/HLSClosedCaptionControl.js.map +1 -0
- package/lib/module/components/HLSDescriptionPane.js +136 -0
- package/lib/module/components/HLSDescriptionPane.js.map +1 -0
- package/lib/module/components/HLSDescriptionPaneHeader.js +61 -0
- package/lib/module/components/HLSDescriptionPaneHeader.js.map +1 -0
- package/lib/module/components/HLSDistanceFromLive.js +48 -0
- package/lib/module/components/HLSDistanceFromLive.js.map +1 -0
- package/lib/module/components/HLSFooter.js +2 -2
- package/lib/module/components/HLSFooter.js.map +1 -1
- package/lib/module/components/HLSFullScreenControl.js +34 -0
- package/lib/module/components/HLSFullScreenControl.js.map +1 -0
- package/lib/module/components/HLSGoLiveControl.js +70 -0
- package/lib/module/components/HLSGoLiveControl.js.map +1 -0
- package/lib/module/components/HLSHandRaiseButton.js +29 -0
- package/lib/module/components/HLSHandRaiseButton.js.map +1 -0
- package/lib/module/components/HLSManageChatTextInput.js +81 -0
- package/lib/module/components/HLSManageChatTextInput.js.map +1 -0
- package/lib/module/components/HLSNotifications.js +24 -0
- package/lib/module/components/HLSNotifications.js.map +1 -0
- package/lib/module/components/HLSPlayPauseControl.js +54 -0
- package/lib/module/components/HLSPlayPauseControl.js.map +1 -0
- package/lib/module/components/HLSPlayer.js +185 -0
- package/lib/module/components/HLSPlayer.js.map +1 -0
- package/lib/module/components/HLSPlayerContainer.js +115 -0
- package/lib/module/components/HLSPlayerContainer.js.map +1 -0
- package/lib/module/components/HLSPlayerControls.js +120 -0
- package/lib/module/components/HLSPlayerControls.js.map +1 -0
- package/lib/module/components/HLSRecordingStatusText.js +22 -0
- package/lib/module/components/HLSRecordingStatusText.js.map +1 -0
- package/lib/module/components/HLSRoomOptionsButton.js +16 -0
- package/lib/module/components/HLSRoomOptionsButton.js.map +1 -0
- package/lib/module/components/HLSSeekbackwardControl.js +59 -0
- package/lib/module/components/HLSSeekbackwardControl.js.map +1 -0
- package/lib/module/components/HLSSeekbar.js +276 -0
- package/lib/module/components/HLSSeekbar.js.map +1 -0
- package/lib/module/components/HLSSeekforwardControl.js +63 -0
- package/lib/module/components/HLSSeekforwardControl.js.map +1 -0
- package/lib/module/components/HLSStreamStartedTime.js +60 -0
- package/lib/module/components/HLSStreamStartedTime.js.map +1 -0
- package/lib/module/components/HLSViewerScreenContent.js +53 -0
- package/lib/module/components/HLSViewerScreenContent.js.map +1 -0
- package/lib/module/components/HMSHLSMessage.js +19 -41
- package/lib/module/components/HMSHLSMessage.js.map +1 -1
- package/lib/module/components/HMSHLSMessageList.js +2 -2
- package/lib/module/components/HMSHLSMessageList.js.map +1 -1
- package/lib/module/components/HMSHLSNotStarted.js +15 -7
- package/lib/module/components/HMSHLSNotStarted.js.map +1 -1
- package/lib/module/components/HMSKeyboardAvoidingView.js +5 -1
- package/lib/module/components/HMSKeyboardAvoidingView.js.map +1 -1
- package/lib/module/components/HMSLiveViewerCount.js +3 -5
- package/lib/module/components/HMSLiveViewerCount.js.map +1 -1
- package/lib/module/components/HMSNotification.js +4 -3
- package/lib/module/components/HMSNotification.js.map +1 -1
- package/lib/module/components/HMSNotifications.js +3 -1
- package/lib/module/components/HMSNotifications.js.map +1 -1
- package/lib/module/components/HMSOverlayChatView.js +5 -2
- package/lib/module/components/HMSOverlayChatView.js.map +1 -1
- package/lib/module/components/HMSOverlayMessageView.js +142 -0
- package/lib/module/components/HMSOverlayMessageView.js.map +1 -0
- package/lib/module/components/Meeting.js +4 -2
- package/lib/module/components/Meeting.js.map +1 -1
- package/lib/module/components/MeetingScreenContent.js +3 -10
- package/lib/module/components/MeetingScreenContent.js.map +1 -1
- package/lib/module/components/OverlayedViews.js +2 -2
- package/lib/module/components/OverlayedViews.js.map +1 -1
- package/lib/module/components/Participants/ParticipantsList.js +4 -4
- package/lib/module/components/Participants/ParticipantsList.js.map +1 -1
- package/lib/module/components/PressableIcon.js +1 -2
- package/lib/module/components/PressableIcon.js.map +1 -1
- package/lib/module/hooks-util.js +154 -7
- package/lib/module/hooks-util.js.map +1 -1
- package/lib/module/redux/actionTypes.js +6 -0
- package/lib/module/redux/actionTypes.js.map +1 -1
- package/lib/module/redux/actions/index.js +18 -0
- package/lib/module/redux/actions/index.js.map +1 -1
- package/lib/module/redux/reducers/appState.js +25 -1
- package/lib/module/redux/reducers/appState.js.map +1 -1
- package/lib/typescript/Icons/CC/index.d.ts +9 -0
- package/lib/typescript/Icons/CC/index.d.ts.map +1 -0
- package/lib/typescript/Icons/Close/index.d.ts +1 -0
- package/lib/typescript/Icons/Close/index.d.ts.map +1 -1
- package/lib/typescript/Icons/Maximize/index.d.ts +1 -0
- package/lib/typescript/Icons/Maximize/index.d.ts.map +1 -1
- package/lib/typescript/Icons/Minimize/index.d.ts +1 -0
- package/lib/typescript/Icons/Minimize/index.d.ts.map +1 -1
- package/lib/typescript/Icons/Pause/index.d.ts +8 -0
- package/lib/typescript/Icons/Pause/index.d.ts.map +1 -0
- package/lib/typescript/Icons/Play/index.d.ts +8 -0
- package/lib/typescript/Icons/Play/index.d.ts.map +1 -0
- package/lib/typescript/Icons/SeekArrow/index.d.ts +8 -0
- package/lib/typescript/Icons/SeekArrow/index.d.ts.map +1 -0
- package/lib/typescript/Icons/index.d.ts +4 -0
- package/lib/typescript/Icons/index.d.ts.map +1 -1
- package/lib/typescript/components/AnimatedHeader.d.ts.map +1 -1
- package/lib/typescript/components/Chat/ChatFilterBottomSheetOpener.d.ts +4 -1
- package/lib/typescript/components/Chat/ChatFilterBottomSheetOpener.d.ts.map +1 -1
- package/lib/typescript/components/Chat/ChatList.d.ts +4 -1
- package/lib/typescript/components/Chat/ChatList.d.ts.map +1 -1
- package/lib/typescript/components/ChatAndParticipants/ChatAndParticipantsView.d.ts.map +1 -1
- package/lib/typescript/components/CustomButton.d.ts +5 -5
- package/lib/typescript/components/CustomButton.d.ts.map +1 -1
- package/lib/typescript/components/DisplayView.d.ts.map +1 -1
- package/lib/typescript/components/Footer.d.ts.map +1 -1
- package/lib/typescript/components/HLSAnimatedDescriptionPane.d.ts +10 -0
- package/lib/typescript/components/HLSAnimatedDescriptionPane.d.ts.map +1 -0
- package/lib/typescript/components/HLSChatFooterView.d.ts +3 -0
- package/lib/typescript/components/HLSChatFooterView.d.ts.map +1 -0
- package/lib/typescript/components/HLSChatHeaderView.d.ts +7 -0
- package/lib/typescript/components/HLSChatHeaderView.d.ts.map +1 -0
- package/lib/typescript/components/HLSChatMessages.d.ts +3 -0
- package/lib/typescript/components/HLSChatMessages.d.ts.map +1 -0
- package/lib/typescript/components/HLSChatView.d.ts +3 -0
- package/lib/typescript/components/HLSChatView.d.ts.map +1 -0
- package/lib/typescript/components/HLSCloseMeetingControl.d.ts +8 -0
- package/lib/typescript/components/HLSCloseMeetingControl.d.ts.map +1 -0
- package/lib/typescript/components/HLSClosedCaptionControl.d.ts +10 -0
- package/lib/typescript/components/HLSClosedCaptionControl.d.ts.map +1 -0
- package/lib/typescript/components/HLSDescriptionPane.d.ts +6 -0
- package/lib/typescript/components/HLSDescriptionPane.d.ts.map +1 -0
- package/lib/typescript/components/HLSDescriptionPaneHeader.d.ts +9 -0
- package/lib/typescript/components/HLSDescriptionPaneHeader.d.ts.map +1 -0
- package/lib/typescript/components/HLSDistanceFromLive.d.ts +8 -0
- package/lib/typescript/components/HLSDistanceFromLive.d.ts.map +1 -0
- package/lib/typescript/components/HLSFullScreenControl.d.ts +8 -0
- package/lib/typescript/components/HLSFullScreenControl.d.ts.map +1 -0
- package/lib/typescript/components/HLSGoLiveControl.d.ts +10 -0
- package/lib/typescript/components/HLSGoLiveControl.d.ts.map +1 -0
- package/lib/typescript/components/HLSHandRaiseButton.d.ts +3 -0
- package/lib/typescript/components/HLSHandRaiseButton.d.ts.map +1 -0
- package/lib/typescript/components/HLSManageChatTextInput.d.ts +3 -0
- package/lib/typescript/components/HLSManageChatTextInput.d.ts.map +1 -0
- package/lib/typescript/components/HLSNotifications.d.ts +3 -0
- package/lib/typescript/components/HLSNotifications.d.ts.map +1 -0
- package/lib/typescript/components/HLSPlayPauseControl.d.ts +8 -0
- package/lib/typescript/components/HLSPlayPauseControl.d.ts.map +1 -0
- package/lib/typescript/components/HLSPlayer.d.ts +6 -0
- package/lib/typescript/components/HLSPlayer.d.ts.map +1 -0
- package/lib/typescript/components/HLSPlayerContainer.d.ts +4 -0
- package/lib/typescript/components/HLSPlayerContainer.d.ts.map +1 -0
- package/lib/typescript/components/HLSPlayerControls.d.ts +14 -0
- package/lib/typescript/components/HLSPlayerControls.d.ts.map +1 -0
- package/lib/typescript/components/HLSRecordingStatusText.d.ts +9 -0
- package/lib/typescript/components/HLSRecordingStatusText.d.ts.map +1 -0
- package/lib/typescript/components/HLSRoomOptionsButton.d.ts +3 -0
- package/lib/typescript/components/HLSRoomOptionsButton.d.ts.map +1 -0
- package/lib/typescript/components/HLSSeekbackwardControl.d.ts +8 -0
- package/lib/typescript/components/HLSSeekbackwardControl.d.ts.map +1 -0
- package/lib/typescript/components/HLSSeekbar.d.ts +66 -0
- package/lib/typescript/components/HLSSeekbar.d.ts.map +1 -0
- package/lib/typescript/components/HLSSeekforwardControl.d.ts +8 -0
- package/lib/typescript/components/HLSSeekforwardControl.d.ts.map +1 -0
- package/lib/typescript/components/HLSStreamStartedTime.d.ts +6 -0
- package/lib/typescript/components/HLSStreamStartedTime.d.ts.map +1 -0
- package/lib/typescript/components/HLSViewerScreenContent.d.ts +6 -0
- package/lib/typescript/components/HLSViewerScreenContent.d.ts.map +1 -0
- package/lib/typescript/components/HMSHLSMessage.d.ts.map +1 -1
- package/lib/typescript/components/HMSHLSNotStarted.d.ts.map +1 -1
- package/lib/typescript/components/HMSKeyboardAvoidingView.d.ts +2 -0
- package/lib/typescript/components/HMSKeyboardAvoidingView.d.ts.map +1 -1
- package/lib/typescript/components/HMSLiveViewerCount.d.ts.map +1 -1
- package/lib/typescript/components/HMSNotification.d.ts.map +1 -1
- package/lib/typescript/components/HMSNotifications.d.ts.map +1 -1
- package/lib/typescript/components/HMSOverlayChatView.d.ts +2 -2
- package/lib/typescript/components/HMSOverlayChatView.d.ts.map +1 -1
- package/lib/typescript/components/HMSOverlayMessageView.d.ts +8 -0
- package/lib/typescript/components/HMSOverlayMessageView.d.ts.map +1 -0
- package/lib/typescript/components/Meeting.d.ts.map +1 -1
- package/lib/typescript/components/MeetingScreenContent.d.ts.map +1 -1
- package/lib/typescript/components/Modals.d.ts +3 -3
- package/lib/typescript/components/Modals.d.ts.map +1 -1
- package/lib/typescript/components/Participants/ParticipantsList.d.ts.map +1 -1
- package/lib/typescript/components/PressableIcon.d.ts.map +1 -1
- package/lib/typescript/components/Preview.d.ts.map +1 -1
- package/lib/typescript/hooks-util.d.ts +32 -8
- package/lib/typescript/hooks-util.d.ts.map +1 -1
- package/lib/typescript/redux/actionTypes.d.ts +3 -0
- package/lib/typescript/redux/actionTypes.d.ts.map +1 -1
- package/lib/typescript/redux/actions/index.d.ts +18 -0
- package/lib/typescript/redux/actions/index.d.ts.map +1 -1
- package/lib/typescript/redux/index.d.ts +19 -16
- package/lib/typescript/redux/index.d.ts.map +1 -1
- package/lib/typescript/redux/reducers/appState.d.ts +3 -0
- package/lib/typescript/redux/reducers/appState.d.ts.map +1 -1
- package/lib/typescript/redux/reducers/index.d.ts +19 -16
- package/lib/typescript/redux/reducers/index.d.ts.map +1 -1
- package/package.json +3 -3
- package/src/Icons/CC/assets/cc-off-med.png +0 -0
- package/src/Icons/CC/assets/cc-off-med@2x.png +0 -0
- package/src/Icons/CC/assets/cc-off-med@3x.png +0 -0
- package/src/Icons/CC/assets/cc-on-med.png +0 -0
- package/src/Icons/CC/assets/cc-on-med@2x.png +0 -0
- package/src/Icons/CC/assets/cc-on-med@3x.png +0 -0
- package/src/Icons/CC/index.tsx +51 -0
- package/src/Icons/Close/assets/close-med.png +0 -0
- package/src/Icons/Close/assets/close-med@2x.png +0 -0
- package/src/Icons/Close/assets/close-med@3x.png +0 -0
- package/src/Icons/Close/index.tsx +19 -3
- package/src/Icons/Maximize/assets/maximize-med.png +0 -0
- package/src/Icons/Maximize/assets/maximize-med@2x.png +0 -0
- package/src/Icons/Maximize/assets/maximize-med@3x.png +0 -0
- package/src/Icons/Maximize/index.tsx +19 -3
- package/src/Icons/Minimize/assets/minimize-med.png +0 -0
- package/src/Icons/Minimize/assets/minimize-med@2x.png +0 -0
- package/src/Icons/Minimize/assets/minimize-med@3x.png +0 -0
- package/src/Icons/Minimize/index.tsx +19 -3
- package/src/Icons/Pause/assets/pause-med.png +0 -0
- package/src/Icons/Pause/assets/pause-med@2x.png +0 -0
- package/src/Icons/Pause/assets/pause-med@3x.png +0 -0
- package/src/Icons/Pause/index.tsx +36 -0
- package/src/Icons/Play/assets/play-med.png +0 -0
- package/src/Icons/Play/assets/play-med@2x.png +0 -0
- package/src/Icons/Play/assets/play-med@3x.png +0 -0
- package/src/Icons/Play/index.tsx +36 -0
- package/src/Icons/SeekArrow/assets/seek-backward-arrow.png +0 -0
- package/src/Icons/SeekArrow/assets/seek-backward-arrow@2x.png +0 -0
- package/src/Icons/SeekArrow/assets/seek-backward-arrow@3x.png +0 -0
- package/src/Icons/SeekArrow/assets/seek-forward-arrow.png +0 -0
- package/src/Icons/SeekArrow/assets/seek-forward-arrow@2x.png +0 -0
- package/src/Icons/SeekArrow/assets/seek-forward-arrow@3x.png +0 -0
- package/src/Icons/SeekArrow/index.tsx +40 -0
- package/src/Icons/index.ts +4 -0
- package/src/components/AnimatedHeader.tsx +1 -9
- package/src/components/Chat/ChatBanner.tsx +1 -0
- package/src/components/Chat/ChatFilterBottomSheetOpener.tsx +16 -8
- package/src/components/Chat/ChatList.tsx +4 -1
- package/src/components/ChatAndParticipants/ChatAndParticipantsView.tsx +6 -1
- package/src/components/DisplayView.tsx +9 -23
- package/src/components/Footer.tsx +8 -77
- package/src/components/HLSAnimatedDescriptionPane.tsx +36 -0
- package/src/components/HLSChatFooterView.tsx +53 -0
- package/src/components/HLSChatHeaderView.tsx +165 -0
- package/src/components/HLSChatMessages.tsx +60 -0
- package/src/components/HLSChatView.tsx +55 -0
- package/src/components/HLSCloseMeetingControl.tsx +39 -0
- package/src/components/HLSClosedCaptionControl.tsx +140 -0
- package/src/components/HLSDescriptionPane.tsx +168 -0
- package/src/components/HLSDescriptionPaneHeader.tsx +78 -0
- package/src/components/HLSDistanceFromLive.tsx +69 -0
- package/src/components/HLSFooter.tsx +2 -2
- package/src/components/HLSFullScreenControl.tsx +46 -0
- package/src/components/HLSGoLiveControl.tsx +104 -0
- package/src/components/HLSHandRaiseButton.tsx +41 -0
- package/src/components/HLSManageChatTextInput.tsx +98 -0
- package/src/components/HLSNotifications.tsx +33 -0
- package/src/components/HLSPlayPauseControl.tsx +69 -0
- package/src/components/HLSPlayer.tsx +264 -0
- package/src/components/HLSPlayerContainer.tsx +134 -0
- package/src/components/HLSPlayerControls.tsx +180 -0
- package/src/components/HLSRecordingStatusText.tsx +50 -0
- package/src/components/HLSRoomOptionsButton.tsx +19 -0
- package/src/components/HLSSeekbackwardControl.tsx +88 -0
- package/src/components/HLSSeekbar.tsx +381 -0
- package/src/components/HLSSeekforwardControl.tsx +97 -0
- package/src/components/HLSStreamStartedTime.tsx +79 -0
- package/src/components/HLSViewerScreenContent.tsx +96 -0
- package/src/components/HMSHLSMessage.tsx +32 -49
- package/src/components/HMSHLSMessageList.tsx +2 -2
- package/src/components/HMSHLSNotStarted.tsx +18 -7
- package/src/components/HMSKeyboardAvoidingView.tsx +16 -6
- package/src/components/HMSLiveViewerCount.tsx +2 -8
- package/src/components/HMSNotification.tsx +20 -14
- package/src/components/HMSNotifications.tsx +3 -1
- package/src/components/HMSOverlayChatView.tsx +10 -3
- package/src/components/HMSOverlayMessageView.tsx +189 -0
- package/src/components/Meeting.tsx +9 -1
- package/src/components/MeetingScreenContent.tsx +3 -7
- package/src/components/OverlayedViews.tsx +2 -2
- package/src/components/Participants/ParticipantsList.tsx +12 -10
- package/src/components/PressableIcon.tsx +1 -3
- package/src/hooks-util.ts +223 -6
- package/src/redux/actionTypes.ts +9 -0
- package/src/redux/actions/index.ts +15 -0
- package/src/redux/reducers/appState.ts +24 -0
- package/lib/commonjs/components/CustomHLSPlayerControls.js +0 -80
- package/lib/commonjs/components/CustomHLSPlayerControls.js.map +0 -1
- package/lib/commonjs/components/HLSView.js +0 -195
- package/lib/commonjs/components/HLSView.js.map +0 -1
- package/lib/module/components/CustomHLSPlayerControls.js +0 -72
- package/lib/module/components/CustomHLSPlayerControls.js.map +0 -1
- package/lib/module/components/HLSView.js +0 -186
- package/lib/module/components/HLSView.js.map +0 -1
- package/lib/typescript/components/CustomHLSPlayerControls.d.ts +0 -7
- package/lib/typescript/components/CustomHLSPlayerControls.d.ts.map +0 -1
- package/lib/typescript/components/HLSView.d.ts +0 -4
- package/lib/typescript/components/HLSView.d.ts.map +0 -1
- package/src/components/CustomHLSPlayerControls.tsx +0 -92
- package/src/components/HLSView.tsx +0 -251
|
@@ -8,7 +8,6 @@ import {
|
|
|
8
8
|
TouchableOpacity,
|
|
9
9
|
} from 'react-native';
|
|
10
10
|
import type { HMSMessage } from '@100mslive/react-native-hms';
|
|
11
|
-
import { Gesture, GestureDetector } from 'react-native-gesture-handler';
|
|
12
11
|
|
|
13
12
|
import {
|
|
14
13
|
useAllowBlockingPeerFromChat,
|
|
@@ -49,16 +48,14 @@ const _HMSHLSMessage: React.FC<HMSHLSMessageProps> = ({ message }) => {
|
|
|
49
48
|
const messageSender = message.sender;
|
|
50
49
|
|
|
51
50
|
const hmsRoomStyles = useHMSRoomStyleSheet(
|
|
52
|
-
(
|
|
53
|
-
|
|
54
|
-
color: '#ffffff',
|
|
55
|
-
fontFamily: `${typography.font_family}-SemiBold`,
|
|
56
|
-
textShadowColor: 'rgba(0, 0, 0, 0.5)',
|
|
57
|
-
},
|
|
58
|
-
message: {
|
|
59
|
-
color: '#ffffff',
|
|
51
|
+
(theme, typography) => ({
|
|
52
|
+
regularSurfaceHigh: {
|
|
60
53
|
fontFamily: `${typography.font_family}-Regular`,
|
|
61
|
-
|
|
54
|
+
color: theme.palette.on_surface_high,
|
|
55
|
+
},
|
|
56
|
+
semiBoldSurfaceLow: {
|
|
57
|
+
fontFamily: `${typography.font_family}-SemiBold`,
|
|
58
|
+
color: theme.palette.on_surface_low,
|
|
62
59
|
},
|
|
63
60
|
threeDots: {
|
|
64
61
|
tintColor: '#ffffff',
|
|
@@ -98,36 +95,32 @@ const _HMSHLSMessage: React.FC<HMSHLSMessageProps> = ({ message }) => {
|
|
|
98
95
|
</View>
|
|
99
96
|
) : null}
|
|
100
97
|
|
|
101
|
-
<View style={styles.
|
|
102
|
-
<Text
|
|
103
|
-
style={
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
98
|
+
<View style={styles.messageWrapper}>
|
|
99
|
+
<Text style={[styles.message, hmsRoomStyles.regularSurfaceHigh]}>
|
|
100
|
+
<Text style={hmsRoomStyles.semiBoldSurfaceLow}>
|
|
101
|
+
{messageSender
|
|
102
|
+
? messageSender.isLocal
|
|
103
|
+
? 'You'
|
|
104
|
+
: messageSender.name
|
|
105
|
+
: 'Anonymous'}
|
|
106
|
+
{' '}
|
|
107
|
+
</Text>
|
|
108
|
+
|
|
109
|
+
{message.message}
|
|
111
110
|
</Text>
|
|
112
111
|
|
|
113
112
|
{canTakeAction ? (
|
|
114
|
-
<
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
</TouchableOpacity>
|
|
124
|
-
</GestureDetector>
|
|
113
|
+
<TouchableOpacity
|
|
114
|
+
hitSlop={styles.threeDotsHitSlop}
|
|
115
|
+
onPress={onThreeDotsPress}
|
|
116
|
+
>
|
|
117
|
+
<ThreeDotsIcon
|
|
118
|
+
stack="vertical"
|
|
119
|
+
style={[styles.threeDots, hmsRoomStyles.threeDots]}
|
|
120
|
+
/>
|
|
121
|
+
</TouchableOpacity>
|
|
125
122
|
) : null}
|
|
126
123
|
</View>
|
|
127
|
-
|
|
128
|
-
<Text style={[styles.message, hmsRoomStyles.message]}>
|
|
129
|
-
{message.message}
|
|
130
|
-
</Text>
|
|
131
124
|
</View>
|
|
132
125
|
);
|
|
133
126
|
};
|
|
@@ -136,28 +129,18 @@ export const HMSHLSMessage = React.memo(_HMSHLSMessage);
|
|
|
136
129
|
|
|
137
130
|
const styles = StyleSheet.create({
|
|
138
131
|
container: {
|
|
139
|
-
marginTop:
|
|
132
|
+
marginTop: 16,
|
|
140
133
|
width: '100%',
|
|
141
134
|
},
|
|
142
|
-
|
|
135
|
+
messageWrapper: {
|
|
136
|
+
flex: 1,
|
|
143
137
|
flexDirection: 'row',
|
|
144
|
-
alignItems: 'center',
|
|
145
|
-
},
|
|
146
|
-
senderName: {
|
|
147
|
-
flexGrow: 1,
|
|
148
|
-
fontSize: 14,
|
|
149
|
-
lineHeight: Platform.OS === 'android' ? 20 : undefined,
|
|
150
|
-
letterSpacing: 0.1,
|
|
151
|
-
textShadowOffset: { height: 1, width: 1 },
|
|
152
|
-
textShadowRadius: 2,
|
|
153
138
|
},
|
|
154
139
|
message: {
|
|
140
|
+
flexShrink: 1,
|
|
155
141
|
fontSize: 14,
|
|
156
142
|
lineHeight: Platform.OS === 'android' ? 20 : undefined,
|
|
157
143
|
letterSpacing: 0.25,
|
|
158
|
-
marginTop: 2,
|
|
159
|
-
textShadowOffset: { height: 0.5, width: 0.5 },
|
|
160
|
-
textShadowRadius: 2,
|
|
161
144
|
},
|
|
162
145
|
threeDots: {
|
|
163
146
|
width: 20,
|
|
@@ -5,8 +5,8 @@ import { FlashList } from '@shopify/flash-list';
|
|
|
5
5
|
import type { HMSMessage } from '@100mslive/react-native-hms';
|
|
6
6
|
|
|
7
7
|
import type { RootState } from '../redux';
|
|
8
|
-
import { HMSHLSMessage } from './HMSHLSMessage';
|
|
9
8
|
import { useIsLandscapeOrientation } from '../utils/dimension';
|
|
9
|
+
import { HMSOverlayMessageView } from './HMSOverlayMessageView';
|
|
10
10
|
|
|
11
11
|
export const HMSHLSMessageList: React.FC = () => {
|
|
12
12
|
const { height: windowHeight } = useWindowDimensions();
|
|
@@ -19,7 +19,7 @@ export const HMSHLSMessageList: React.FC = () => {
|
|
|
19
19
|
);
|
|
20
20
|
|
|
21
21
|
const _renderItem = React.useCallback((data: { item: HMSMessage }) => {
|
|
22
|
-
return <
|
|
22
|
+
return <HMSOverlayMessageView message={data.item} />;
|
|
23
23
|
}, []);
|
|
24
24
|
|
|
25
25
|
if (messages.length <= 0) {
|
|
@@ -18,7 +18,11 @@ export const HMSHLSNotStarted = () => {
|
|
|
18
18
|
|
|
19
19
|
return (
|
|
20
20
|
<View style={styles.container}>
|
|
21
|
-
<RadioIcon
|
|
21
|
+
<RadioIcon
|
|
22
|
+
size="extra-large"
|
|
23
|
+
containerStyle={styles.iconWrapper}
|
|
24
|
+
style={styles.icon}
|
|
25
|
+
/>
|
|
22
26
|
<Text style={[styles.title, hmsRoomStyles.title]}>
|
|
23
27
|
Stream yet to start
|
|
24
28
|
</Text>
|
|
@@ -36,20 +40,27 @@ const styles = StyleSheet.create({
|
|
|
36
40
|
alignItems: 'center',
|
|
37
41
|
justifyContent: 'center',
|
|
38
42
|
},
|
|
39
|
-
|
|
43
|
+
iconWrapper: {
|
|
44
|
+
width: 40,
|
|
45
|
+
height: 40,
|
|
46
|
+
borderRadius: 20,
|
|
40
47
|
marginBottom: 24,
|
|
41
48
|
},
|
|
49
|
+
icon: {
|
|
50
|
+
width: 24,
|
|
51
|
+
height: 24,
|
|
52
|
+
},
|
|
42
53
|
title: {
|
|
43
|
-
fontSize:
|
|
44
|
-
lineHeight:
|
|
54
|
+
fontSize: 16,
|
|
55
|
+
lineHeight: 20,
|
|
45
56
|
textAlign: 'center',
|
|
46
57
|
},
|
|
47
58
|
description: {
|
|
48
|
-
fontSize:
|
|
49
|
-
lineHeight:
|
|
59
|
+
fontSize: 14,
|
|
60
|
+
lineHeight: 20,
|
|
50
61
|
letterSpacing: 0.5,
|
|
51
62
|
textAlign: 'center',
|
|
52
|
-
marginTop:
|
|
63
|
+
marginTop: 4,
|
|
53
64
|
},
|
|
54
65
|
taleLessSpaceAsYouCan: {
|
|
55
66
|
flex: 0,
|
|
@@ -12,12 +12,20 @@ import { useKeyboardState } from '../hooks-util';
|
|
|
12
12
|
|
|
13
13
|
export interface HMSKeyboardAvoidingViewProps {
|
|
14
14
|
style?: StyleProp<Animated.AnimateStyle<StyleProp<ViewStyle>>>;
|
|
15
|
+
styleWhenInactive?: ViewStyle;
|
|
16
|
+
styleWhenActive?: ViewStyle;
|
|
15
17
|
bottomOffset?: number | SharedValue<number>;
|
|
16
18
|
}
|
|
17
19
|
|
|
18
20
|
export const HMSKeyboardAvoidingView: React.FC<
|
|
19
21
|
HMSKeyboardAvoidingViewProps
|
|
20
|
-
> = ({
|
|
22
|
+
> = ({
|
|
23
|
+
children,
|
|
24
|
+
style,
|
|
25
|
+
styleWhenInactive,
|
|
26
|
+
styleWhenActive,
|
|
27
|
+
bottomOffset = 0,
|
|
28
|
+
}) => {
|
|
21
29
|
const animatedKeyboard = useAnimatedKeyboard();
|
|
22
30
|
const { keyboardState } = useKeyboardState();
|
|
23
31
|
|
|
@@ -27,14 +35,16 @@ export const HMSKeyboardAvoidingView: React.FC<
|
|
|
27
35
|
|
|
28
36
|
const keyboardAvoidStyle = useAnimatedStyle(() => {
|
|
29
37
|
const keyboardHeight = animatedKeyboard.height.value;
|
|
38
|
+
const keyboardHidden =
|
|
39
|
+
keyboardHeight <= initialPageY.value ||
|
|
40
|
+
keyboardState.value === KeyboardState.CLOSED;
|
|
30
41
|
return {
|
|
42
|
+
...(keyboardHidden ? styleWhenInactive : styleWhenActive),
|
|
31
43
|
transform: [
|
|
32
44
|
{
|
|
33
|
-
translateY:
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
? 0 // Keep element at original `pageY` till and when keyboard height is less than `pageY`
|
|
37
|
-
: -(keyboardHeight - initialPageY.value),
|
|
45
|
+
translateY: keyboardHidden
|
|
46
|
+
? 0 // Keep element at original `pageY` till and when keyboard height is less than `pageY`
|
|
47
|
+
: -(keyboardHeight - initialPageY.value),
|
|
38
48
|
},
|
|
39
49
|
],
|
|
40
50
|
};
|
|
@@ -5,17 +5,14 @@ import { Gesture, GestureDetector } from 'react-native-gesture-handler';
|
|
|
5
5
|
|
|
6
6
|
import {
|
|
7
7
|
useHMSRoomStyleSheet,
|
|
8
|
-
useIsHLSViewer,
|
|
9
8
|
useShowChatAndParticipants,
|
|
10
9
|
} from '../hooks-util';
|
|
11
10
|
import { EyeIcon } from '../Icons';
|
|
12
|
-
import { hexToRgbA } from '../utils/theme';
|
|
13
11
|
import type { RootState } from '../redux';
|
|
14
12
|
import { TestIds } from '../utils/constants';
|
|
15
13
|
import { useIsAnyStreamingOn } from '../hooks-sdk';
|
|
16
14
|
|
|
17
15
|
const _HMSLiveViewerCount = () => {
|
|
18
|
-
const isHLSViewer = useIsHLSViewer();
|
|
19
16
|
const previewPeerCount = useSelector(
|
|
20
17
|
(state: RootState) => state.hmsStates.room?.peerCount
|
|
21
18
|
);
|
|
@@ -23,11 +20,8 @@ const _HMSLiveViewerCount = () => {
|
|
|
23
20
|
|
|
24
21
|
const hmsRoomStyles = useHMSRoomStyleSheet((theme, typograhy) => ({
|
|
25
22
|
viewers: {
|
|
26
|
-
backgroundColor:
|
|
27
|
-
|
|
28
|
-
hexToRgbA(theme.palette.background_dim, 0.64)
|
|
29
|
-
: undefined,
|
|
30
|
-
borderWidth: isHLSViewer ? 0 : 1,
|
|
23
|
+
backgroundColor: undefined,
|
|
24
|
+
borderWidth: 1,
|
|
31
25
|
borderColor: theme.palette.border_bright,
|
|
32
26
|
},
|
|
33
27
|
count: {
|
|
@@ -4,7 +4,7 @@ import { StyleSheet, Text, TouchableOpacity, View } from 'react-native';
|
|
|
4
4
|
import type { StyleProp, ViewStyle, TextStyle, TextProps } from 'react-native';
|
|
5
5
|
import { Gesture, GestureDetector } from 'react-native-gesture-handler';
|
|
6
6
|
|
|
7
|
-
import { useHMSRoomStyleSheet } from '../hooks-util';
|
|
7
|
+
import { useHMSRoomStyleSheet, useIsHLSViewer } from '../hooks-util';
|
|
8
8
|
import { ChatIcon, CloseIcon } from '../Icons';
|
|
9
9
|
import { UnmountAfterDelay } from './UnmountAfterDelay';
|
|
10
10
|
import { removeNotification } from '../redux/actions';
|
|
@@ -39,20 +39,26 @@ export const HMSNotification: React.FC<HMSNotificationProps> = ({
|
|
|
39
39
|
dismissable = false,
|
|
40
40
|
}) => {
|
|
41
41
|
const dispatch = useDispatch();
|
|
42
|
+
const isHLSViewer = useIsHLSViewer();
|
|
42
43
|
|
|
43
|
-
const hmsRoomStyles = useHMSRoomStyleSheet(
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
44
|
+
const hmsRoomStyles = useHMSRoomStyleSheet(
|
|
45
|
+
(theme, typography) => ({
|
|
46
|
+
container: {
|
|
47
|
+
backgroundColor: isHLSViewer
|
|
48
|
+
? theme.palette.surface_default
|
|
49
|
+
: theme.palette.surface_dim,
|
|
50
|
+
},
|
|
51
|
+
text: {
|
|
52
|
+
color: theme.palette.on_surface_high,
|
|
53
|
+
fontFamily: `${typography.font_family}-SemiBold`,
|
|
54
|
+
},
|
|
55
|
+
description: {
|
|
56
|
+
color: theme.palette.on_surface_medium,
|
|
57
|
+
fontFamily: `${typography.font_family}-Regular`,
|
|
58
|
+
},
|
|
59
|
+
}),
|
|
60
|
+
[isHLSViewer]
|
|
61
|
+
);
|
|
56
62
|
|
|
57
63
|
const dismissNotification =
|
|
58
64
|
onDismiss ||
|
|
@@ -13,6 +13,7 @@ import { AlertTriangleIcon } from '../Icons';
|
|
|
13
13
|
import { HMSReconnectingNotification } from './HMSReconnectingNotification';
|
|
14
14
|
import { useIsLandscapeOrientation } from '../utils/dimension';
|
|
15
15
|
import { HMSPollsQuizzesNotification } from './HMSPollsQuizzesNotification';
|
|
16
|
+
import { useIsHLSViewer } from '../hooks-util';
|
|
16
17
|
|
|
17
18
|
export interface HMSNotificationsProps {}
|
|
18
19
|
|
|
@@ -25,6 +26,7 @@ export const HMSNotifications: React.FC<HMSNotificationsProps> = () => {
|
|
|
25
26
|
const isLocalScreenShared = useSelector(
|
|
26
27
|
(state: RootState) => state.hmsStates.isLocalScreenShared
|
|
27
28
|
);
|
|
29
|
+
const isHLSViewer = useIsHLSViewer();
|
|
28
30
|
const isLandscapeOrientation = useIsLandscapeOrientation();
|
|
29
31
|
|
|
30
32
|
// notifications is a stack, first will appear last
|
|
@@ -84,7 +86,7 @@ export const HMSNotifications: React.FC<HMSNotificationsProps> = () => {
|
|
|
84
86
|
return (
|
|
85
87
|
<View
|
|
86
88
|
style={[
|
|
87
|
-
isLandscapeOrientation
|
|
89
|
+
isLandscapeOrientation && !isHLSViewer
|
|
88
90
|
? styles.absoluteLandscapeContainer
|
|
89
91
|
: styles.absoluteContainer,
|
|
90
92
|
{ paddingTop: (notifications.length - 1) * 16 },
|
|
@@ -32,11 +32,13 @@ const colors = [
|
|
|
32
32
|
];
|
|
33
33
|
const colorLocations = [0, 0.4, 1];
|
|
34
34
|
|
|
35
|
-
export interface
|
|
35
|
+
export interface HMSOverlayChatViewProps {
|
|
36
36
|
offset?: SharedValue<number>;
|
|
37
37
|
}
|
|
38
38
|
|
|
39
|
-
export const
|
|
39
|
+
export const HMSOverlayChatView: React.FC<HMSOverlayChatViewProps> = ({
|
|
40
|
+
offset,
|
|
41
|
+
}) => {
|
|
40
42
|
const footerHeight = useFooterHeight();
|
|
41
43
|
const hmsNotificationsHeight = useHMSNotificationsHeight();
|
|
42
44
|
const { chatState } = useHMSChatState();
|
|
@@ -77,7 +79,12 @@ export const HLSChatView: React.FC<HLSChatViewProps> = ({ offset }) => {
|
|
|
77
79
|
{chatState.enabled ? (
|
|
78
80
|
<>
|
|
79
81
|
<View style={styles.filterSheetWrapper}>
|
|
80
|
-
<ChatFilterBottomSheetOpener
|
|
82
|
+
<ChatFilterBottomSheetOpener
|
|
83
|
+
overlay={true}
|
|
84
|
+
useFilterModal={true}
|
|
85
|
+
showActionBtn={true}
|
|
86
|
+
useActionModal={true}
|
|
87
|
+
/>
|
|
81
88
|
</View>
|
|
82
89
|
|
|
83
90
|
{isLocalPeerBlockedFromChat ? (
|
|
@@ -0,0 +1,189 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { useDispatch, useSelector } from 'react-redux';
|
|
3
|
+
import {
|
|
4
|
+
View,
|
|
5
|
+
Text,
|
|
6
|
+
StyleSheet,
|
|
7
|
+
Platform,
|
|
8
|
+
TouchableOpacity,
|
|
9
|
+
} from 'react-native';
|
|
10
|
+
import type { HMSMessage } from '@100mslive/react-native-hms';
|
|
11
|
+
import { Gesture, GestureDetector } from 'react-native-gesture-handler';
|
|
12
|
+
|
|
13
|
+
import {
|
|
14
|
+
useAllowBlockingPeerFromChat,
|
|
15
|
+
useAllowPinningMessage,
|
|
16
|
+
useHMSRoomStyleSheet,
|
|
17
|
+
useModalType,
|
|
18
|
+
} from '../hooks-util';
|
|
19
|
+
import { PinIcon, ThreeDotsIcon } from '../Icons';
|
|
20
|
+
import { setSelectedMessageForAction } from '../redux/actions';
|
|
21
|
+
import { ModalTypes } from '../utils/types';
|
|
22
|
+
import type { RootState } from '../redux';
|
|
23
|
+
|
|
24
|
+
interface HMSMessageProps {
|
|
25
|
+
message: HMSMessage;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
const _HMSOverlayMessageView: React.FC<HMSMessageProps> = ({ message }) => {
|
|
29
|
+
const dispatch = useDispatch();
|
|
30
|
+
const { handleModalVisibleType } = useModalType();
|
|
31
|
+
const localPeerId = useSelector(
|
|
32
|
+
(state: RootState) => state.hmsStates.localPeer?.peerID
|
|
33
|
+
);
|
|
34
|
+
|
|
35
|
+
const allowPinningMessage = useAllowPinningMessage();
|
|
36
|
+
const allowPeerBlocking = useAllowBlockingPeerFromChat();
|
|
37
|
+
const canRemoveOthers = useSelector(
|
|
38
|
+
(state: RootState) =>
|
|
39
|
+
!!state.hmsStates.localPeer?.role?.permissions?.removeOthers
|
|
40
|
+
);
|
|
41
|
+
|
|
42
|
+
const isPinned = useSelector(
|
|
43
|
+
(state: RootState) =>
|
|
44
|
+
state.messages.pinnedMessages.findIndex(
|
|
45
|
+
(pinnedMessage) => pinnedMessage.id === message.messageId
|
|
46
|
+
) >= 0
|
|
47
|
+
);
|
|
48
|
+
|
|
49
|
+
const messageSender = message.sender;
|
|
50
|
+
|
|
51
|
+
const hmsRoomStyles = useHMSRoomStyleSheet(
|
|
52
|
+
(_theme, typography) => ({
|
|
53
|
+
senderName: {
|
|
54
|
+
color: '#ffffff',
|
|
55
|
+
fontFamily: `${typography.font_family}-SemiBold`,
|
|
56
|
+
textShadowColor: 'rgba(0, 0, 0, 0.5)',
|
|
57
|
+
},
|
|
58
|
+
message: {
|
|
59
|
+
color: '#ffffff',
|
|
60
|
+
fontFamily: `${typography.font_family}-Regular`,
|
|
61
|
+
textShadowColor: 'rgba(0, 0, 0, 0.5)',
|
|
62
|
+
},
|
|
63
|
+
threeDots: {
|
|
64
|
+
tintColor: '#ffffff',
|
|
65
|
+
},
|
|
66
|
+
pinnedLabel: {
|
|
67
|
+
color: '#ffffff',
|
|
68
|
+
},
|
|
69
|
+
}),
|
|
70
|
+
[]
|
|
71
|
+
);
|
|
72
|
+
|
|
73
|
+
const onThreeDotsPress = () => {
|
|
74
|
+
dispatch(setSelectedMessageForAction(message));
|
|
75
|
+
handleModalVisibleType(ModalTypes.MESSAGE_OPTIONS);
|
|
76
|
+
};
|
|
77
|
+
|
|
78
|
+
const canTakeAction =
|
|
79
|
+
allowPinningMessage || // can pin message, OR
|
|
80
|
+
(allowPeerBlocking &&
|
|
81
|
+
message.sender &&
|
|
82
|
+
message.sender.peerID !== localPeerId) || // can block peers, OR
|
|
83
|
+
(canRemoveOthers &&
|
|
84
|
+
message.sender &&
|
|
85
|
+
message.sender.peerID !== localPeerId); // can remove participants
|
|
86
|
+
|
|
87
|
+
return (
|
|
88
|
+
<View style={styles.container}>
|
|
89
|
+
{isPinned ? (
|
|
90
|
+
<View style={styles.pinLabelContainer}>
|
|
91
|
+
<PinIcon
|
|
92
|
+
type="pin"
|
|
93
|
+
style={[styles.pinIcon, hmsRoomStyles.threeDots]}
|
|
94
|
+
/>
|
|
95
|
+
<Text style={[styles.pinnedLabel, hmsRoomStyles.pinnedLabel]}>
|
|
96
|
+
PINNED
|
|
97
|
+
</Text>
|
|
98
|
+
</View>
|
|
99
|
+
) : null}
|
|
100
|
+
|
|
101
|
+
<View style={styles.nameWrapper}>
|
|
102
|
+
<Text
|
|
103
|
+
style={[styles.senderName, hmsRoomStyles.senderName]}
|
|
104
|
+
numberOfLines={1}
|
|
105
|
+
>
|
|
106
|
+
{messageSender
|
|
107
|
+
? messageSender.isLocal
|
|
108
|
+
? 'You'
|
|
109
|
+
: messageSender.name
|
|
110
|
+
: 'Anonymous'}
|
|
111
|
+
</Text>
|
|
112
|
+
|
|
113
|
+
{canTakeAction ? (
|
|
114
|
+
<GestureDetector gesture={Gesture.Tap()}>
|
|
115
|
+
<TouchableOpacity
|
|
116
|
+
hitSlop={styles.threeDotsHitSlop}
|
|
117
|
+
onPress={onThreeDotsPress}
|
|
118
|
+
>
|
|
119
|
+
<ThreeDotsIcon
|
|
120
|
+
stack="vertical"
|
|
121
|
+
style={[styles.threeDots, hmsRoomStyles.threeDots]}
|
|
122
|
+
/>
|
|
123
|
+
</TouchableOpacity>
|
|
124
|
+
</GestureDetector>
|
|
125
|
+
) : null}
|
|
126
|
+
</View>
|
|
127
|
+
|
|
128
|
+
<Text style={[styles.message, hmsRoomStyles.message]}>
|
|
129
|
+
{message.message}
|
|
130
|
+
</Text>
|
|
131
|
+
</View>
|
|
132
|
+
);
|
|
133
|
+
};
|
|
134
|
+
|
|
135
|
+
export const HMSOverlayMessageView = React.memo(_HMSOverlayMessageView);
|
|
136
|
+
|
|
137
|
+
const styles = StyleSheet.create({
|
|
138
|
+
container: {
|
|
139
|
+
marginTop: 8,
|
|
140
|
+
width: '100%',
|
|
141
|
+
},
|
|
142
|
+
nameWrapper: {
|
|
143
|
+
flexDirection: 'row',
|
|
144
|
+
alignItems: 'center',
|
|
145
|
+
},
|
|
146
|
+
senderName: {
|
|
147
|
+
flexGrow: 1,
|
|
148
|
+
fontSize: 14,
|
|
149
|
+
lineHeight: Platform.OS === 'android' ? 20 : undefined,
|
|
150
|
+
letterSpacing: 0.1,
|
|
151
|
+
textShadowOffset: { height: 1, width: 1 },
|
|
152
|
+
textShadowRadius: 2,
|
|
153
|
+
},
|
|
154
|
+
message: {
|
|
155
|
+
fontSize: 14,
|
|
156
|
+
lineHeight: Platform.OS === 'android' ? 20 : undefined,
|
|
157
|
+
letterSpacing: 0.25,
|
|
158
|
+
marginTop: 2,
|
|
159
|
+
textShadowOffset: { height: 0.5, width: 0.5 },
|
|
160
|
+
textShadowRadius: 2,
|
|
161
|
+
},
|
|
162
|
+
threeDots: {
|
|
163
|
+
width: 20,
|
|
164
|
+
height: 20,
|
|
165
|
+
marginLeft: 4,
|
|
166
|
+
},
|
|
167
|
+
threeDotsHitSlop: {
|
|
168
|
+
left: 12,
|
|
169
|
+
right: 12,
|
|
170
|
+
top: 12,
|
|
171
|
+
bottom: 12,
|
|
172
|
+
},
|
|
173
|
+
pinLabelContainer: {
|
|
174
|
+
flexDirection: 'row',
|
|
175
|
+
alignItems: 'center',
|
|
176
|
+
marginBottom: 4,
|
|
177
|
+
},
|
|
178
|
+
pinIcon: {
|
|
179
|
+
width: 12,
|
|
180
|
+
height: 12,
|
|
181
|
+
marginRight: 4,
|
|
182
|
+
},
|
|
183
|
+
pinnedLabel: {
|
|
184
|
+
fontSize: 10,
|
|
185
|
+
textTransform: 'uppercase',
|
|
186
|
+
lineHeight: 16,
|
|
187
|
+
letterSpacing: 1.5,
|
|
188
|
+
},
|
|
189
|
+
});
|
|
@@ -15,6 +15,7 @@ import {
|
|
|
15
15
|
useHMSReconnection,
|
|
16
16
|
useHMSRemovedFromRoomUpdate,
|
|
17
17
|
useHMSRoomStyle,
|
|
18
|
+
useIsHLSViewer,
|
|
18
19
|
useLandscapeImmersiveMode,
|
|
19
20
|
usePIPListener,
|
|
20
21
|
useSetDefaultChatRecipient,
|
|
@@ -22,6 +23,7 @@ import {
|
|
|
22
23
|
import { MeetingScreenContent } from './MeetingScreenContent';
|
|
23
24
|
import { HMSHLSStreamLoading } from './HMSHLSStreamLoading';
|
|
24
25
|
import type { RootState } from '../redux';
|
|
26
|
+
import { HLSViewerScreenContent } from './HLSViewerScreenContent';
|
|
25
27
|
|
|
26
28
|
interface MeetingProps {
|
|
27
29
|
peerTrackNodes: Array<PeerTrackNode>;
|
|
@@ -32,6 +34,8 @@ export const Meeting: React.FC<MeetingProps> = ({ peerTrackNodes }) => {
|
|
|
32
34
|
(state: RootState) => state.app.startingHLSStream
|
|
33
35
|
);
|
|
34
36
|
|
|
37
|
+
const isHLSViewer = useIsHLSViewer();
|
|
38
|
+
|
|
35
39
|
// TODO: Fetch latest Room and localPeer on mount of this component?
|
|
36
40
|
|
|
37
41
|
useFetchHMSRoles();
|
|
@@ -81,7 +85,11 @@ export const Meeting: React.FC<MeetingProps> = ({ peerTrackNodes }) => {
|
|
|
81
85
|
|
|
82
86
|
return (
|
|
83
87
|
<View style={[styles.container, containerStyles]}>
|
|
84
|
-
|
|
88
|
+
{isHLSViewer ? (
|
|
89
|
+
<HLSViewerScreenContent />
|
|
90
|
+
) : (
|
|
91
|
+
<MeetingScreenContent peerTrackNodes={peerTrackNodes} />
|
|
92
|
+
)}
|
|
85
93
|
</View>
|
|
86
94
|
);
|
|
87
95
|
};
|
|
@@ -17,10 +17,9 @@ import type { RootState } from '../redux';
|
|
|
17
17
|
import { Footer } from './Footer';
|
|
18
18
|
import { DisplayView } from './DisplayView';
|
|
19
19
|
import { Header } from './Header';
|
|
20
|
-
import {
|
|
20
|
+
import { useKeyboardState } from '../hooks-util';
|
|
21
21
|
import { HMSStatusBar } from './StatusBar';
|
|
22
22
|
import { AnimatedFooter } from './AnimatedFooter';
|
|
23
|
-
import { HLSFooter } from './HLSFooter';
|
|
24
23
|
import { AnimatedHeader } from './AnimatedHeader';
|
|
25
24
|
// import { ReconnectionView } from './ReconnectionView';
|
|
26
25
|
|
|
@@ -32,7 +31,6 @@ export const MeetingScreenContent: React.FC<MeetingScreenContentProps> = ({
|
|
|
32
31
|
peerTrackNodes,
|
|
33
32
|
}) => {
|
|
34
33
|
const offset = useSharedValue(1);
|
|
35
|
-
const isHLSViewer = useIsHLSViewer();
|
|
36
34
|
const timerIdRef = useRef<NodeJS.Timeout | null>(null);
|
|
37
35
|
const [controlsHidden, setControlsHidden] = useState(false);
|
|
38
36
|
const isPipModeActive = useSelector(
|
|
@@ -101,15 +99,13 @@ export const MeetingScreenContent: React.FC<MeetingScreenContentProps> = ({
|
|
|
101
99
|
<View collapsable={false} style={styles.container}>
|
|
102
100
|
{isPipModeActive ? null : (
|
|
103
101
|
<AnimatedHeader offset={offset}>
|
|
104
|
-
<Header
|
|
102
|
+
<Header />
|
|
105
103
|
</AnimatedHeader>
|
|
106
104
|
)}
|
|
107
105
|
|
|
108
106
|
<DisplayView offset={offset} peerTrackNodes={peerTrackNodes} />
|
|
109
107
|
|
|
110
|
-
{isPipModeActive ? null :
|
|
111
|
-
<HLSFooter offset={offset} />
|
|
112
|
-
) : (
|
|
108
|
+
{isPipModeActive ? null : (
|
|
113
109
|
<AnimatedFooter offset={offset}>
|
|
114
110
|
<Footer />
|
|
115
111
|
</AnimatedFooter>
|
|
@@ -4,7 +4,7 @@ import type { SharedValue } from 'react-native-reanimated';
|
|
|
4
4
|
import { HMSNotifications } from './HMSNotifications';
|
|
5
5
|
import { OverlayContainer } from './OverlayContainer';
|
|
6
6
|
import type { OverlayProps } from './OverlayContainer';
|
|
7
|
-
import {
|
|
7
|
+
import { HMSOverlayChatView } from './HMSOverlayChatView';
|
|
8
8
|
import { useShowChatAndParticipants } from '../hooks-util';
|
|
9
9
|
|
|
10
10
|
export type OverlayedViewsProps = {
|
|
@@ -19,7 +19,7 @@ const _OverlayedViews: React.FC<OverlayedViewsProps> = ({
|
|
|
19
19
|
|
|
20
20
|
return (
|
|
21
21
|
<OverlayContainer.Overlay animatedStyle={animatedStyle}>
|
|
22
|
-
{overlayChatVisible ? <
|
|
22
|
+
{overlayChatVisible ? <HMSOverlayChatView offset={offset} /> : null}
|
|
23
23
|
|
|
24
24
|
<HMSNotifications />
|
|
25
25
|
</OverlayContainer.Overlay>
|