@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
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { View } from 'react-native';
|
|
3
|
+
import { useSelector } from 'react-redux';
|
|
4
|
+
|
|
5
|
+
import { useHLSViewsConstraints, useHMSRoomStyleSheet } from '../hooks-util';
|
|
6
|
+
import { HLSChatHeaderView } from './HLSChatHeaderView';
|
|
7
|
+
import { HLSChatFooterView } from './HLSChatFooterView';
|
|
8
|
+
import { HLSChatMessages } from './HLSChatMessages';
|
|
9
|
+
import { HLSDescriptionPane } from './HLSDescriptionPane';
|
|
10
|
+
import { useIsLandscapeOrientation } from '../utils/dimension';
|
|
11
|
+
import type { RootState } from '../redux';
|
|
12
|
+
import { HLSNotifications } from './HLSNotifications';
|
|
13
|
+
|
|
14
|
+
export const HLSChatView = () => {
|
|
15
|
+
const isLandscapeOrientation = useIsLandscapeOrientation();
|
|
16
|
+
const { chatWrapperConstraints } = useHLSViewsConstraints();
|
|
17
|
+
const hlsFullScreen = useSelector(
|
|
18
|
+
(state: RootState) => state.app.hlsFullScreen
|
|
19
|
+
);
|
|
20
|
+
|
|
21
|
+
const hmsRoomStyles = useHMSRoomStyleSheet((theme) => ({
|
|
22
|
+
wrapper: {
|
|
23
|
+
backgroundColor: theme.palette.surface_dim,
|
|
24
|
+
},
|
|
25
|
+
}));
|
|
26
|
+
|
|
27
|
+
if (hlsFullScreen) {
|
|
28
|
+
return null;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
return (
|
|
32
|
+
<View
|
|
33
|
+
style={{
|
|
34
|
+
position: 'absolute',
|
|
35
|
+
bottom: isLandscapeOrientation ? undefined : 0,
|
|
36
|
+
right: 0,
|
|
37
|
+
width: chatWrapperConstraints.width,
|
|
38
|
+
height: chatWrapperConstraints.height,
|
|
39
|
+
}}
|
|
40
|
+
>
|
|
41
|
+
<View style={[{ flex: 1, position: 'relative' }, hmsRoomStyles.wrapper]}>
|
|
42
|
+
{isLandscapeOrientation ? null : <HLSChatHeaderView />}
|
|
43
|
+
|
|
44
|
+
<HLSChatMessages />
|
|
45
|
+
|
|
46
|
+
<HLSChatFooterView />
|
|
47
|
+
|
|
48
|
+
<HLSNotifications />
|
|
49
|
+
|
|
50
|
+
{/* Below is absolute positioned and only visible when state is true */}
|
|
51
|
+
{isLandscapeOrientation ? null : <HLSDescriptionPane />}
|
|
52
|
+
</View>
|
|
53
|
+
</View>
|
|
54
|
+
);
|
|
55
|
+
};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { StyleSheet, TouchableOpacity } from 'react-native';
|
|
3
|
+
import { GestureDetector, Gesture } from 'react-native-gesture-handler';
|
|
4
|
+
|
|
5
|
+
import { CloseIcon } from '../Icons';
|
|
6
|
+
import { ModalTypes } from '../utils/types';
|
|
7
|
+
import { useModalType } from '../hooks-util';
|
|
8
|
+
|
|
9
|
+
interface HLSPlayerControlsProps {
|
|
10
|
+
onPress?: () => void;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export const _HLSCloseMeetingControl: React.FC<HLSPlayerControlsProps> = ({
|
|
14
|
+
onPress,
|
|
15
|
+
}) => {
|
|
16
|
+
const { handleModalVisibleType } = useModalType();
|
|
17
|
+
|
|
18
|
+
const handleCloseBtnPress = () => {
|
|
19
|
+
onPress?.();
|
|
20
|
+
handleModalVisibleType(ModalTypes.LEAVE_ROOM);
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
return (
|
|
24
|
+
<GestureDetector gesture={Gesture.Tap()}>
|
|
25
|
+
<TouchableOpacity onPress={handleCloseBtnPress} style={styles.icon}>
|
|
26
|
+
<CloseIcon size="medium" />
|
|
27
|
+
</TouchableOpacity>
|
|
28
|
+
</GestureDetector>
|
|
29
|
+
);
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
export const HLSCloseMeetingControl = React.memo(_HLSCloseMeetingControl);
|
|
33
|
+
|
|
34
|
+
const styles = StyleSheet.create({
|
|
35
|
+
icon: {
|
|
36
|
+
padding: 4,
|
|
37
|
+
alignSelf: 'flex-start',
|
|
38
|
+
},
|
|
39
|
+
});
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
import React, { useRef, useState } from 'react';
|
|
2
|
+
import { StyleSheet, TouchableOpacity } from 'react-native';
|
|
3
|
+
import { useSelector } from 'react-redux';
|
|
4
|
+
import {
|
|
5
|
+
useHMSHLSPlayerPlaybackState,
|
|
6
|
+
HMSHLSPlayerPlaybackState,
|
|
7
|
+
} from '@100mslive/react-native-hms';
|
|
8
|
+
import type { HMSHLSPlayer } from '@100mslive/react-native-hms';
|
|
9
|
+
import { GestureDetector, Gesture } from 'react-native-gesture-handler';
|
|
10
|
+
|
|
11
|
+
import { CCIcon } from '../Icons';
|
|
12
|
+
import type { RootState } from '../redux';
|
|
13
|
+
import { useIsHLSStreamingOn } from '../hooks-sdk';
|
|
14
|
+
|
|
15
|
+
interface HLSClosedCaptionControlProps {
|
|
16
|
+
playerRef: React.RefObject<React.ElementRef<typeof HMSHLSPlayer>>;
|
|
17
|
+
onPress?: () => void;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export const _HLSClosedCaptionControl: React.FC<
|
|
21
|
+
HLSClosedCaptionControlProps
|
|
22
|
+
> = ({ playerRef, onPress }) => {
|
|
23
|
+
const isHLSStreamingOn = useIsHLSStreamingOn();
|
|
24
|
+
const isStreamUrlPresent = useSelector(
|
|
25
|
+
(state: RootState) =>
|
|
26
|
+
!!state.hmsStates.room?.hlsStreamingState.variants?.[0]?.hlsStreamUrl
|
|
27
|
+
);
|
|
28
|
+
|
|
29
|
+
let startedPlayingFirstTimeRef = useRef(false);
|
|
30
|
+
let prevPlaybackStateRef = useRef(HMSHLSPlayerPlaybackState.UNKNOWN);
|
|
31
|
+
const playbackState = useHMSHLSPlayerPlaybackState();
|
|
32
|
+
|
|
33
|
+
if (
|
|
34
|
+
prevPlaybackStateRef.current === HMSHLSPlayerPlaybackState.UNKNOWN &&
|
|
35
|
+
playbackState === HMSHLSPlayerPlaybackState.PLAYING
|
|
36
|
+
) {
|
|
37
|
+
prevPlaybackStateRef.current = playbackState;
|
|
38
|
+
startedPlayingFirstTimeRef.current = true;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
const [isCCSupported, setIsCCSupported] = useState(false);
|
|
42
|
+
const [isCCEnabled, setIsCCEnabled] = useState(true);
|
|
43
|
+
|
|
44
|
+
const handleCCBtnPress = () => {
|
|
45
|
+
if (!isCCSupported || !playerRef.current) {
|
|
46
|
+
return;
|
|
47
|
+
}
|
|
48
|
+
onPress?.();
|
|
49
|
+
if (isCCEnabled) {
|
|
50
|
+
playerRef.current.disableClosedCaption();
|
|
51
|
+
setIsCCEnabled(false);
|
|
52
|
+
} else {
|
|
53
|
+
playerRef.current.enableClosedCaption();
|
|
54
|
+
setIsCCEnabled(true);
|
|
55
|
+
}
|
|
56
|
+
};
|
|
57
|
+
|
|
58
|
+
React.useEffect(() => {
|
|
59
|
+
if (
|
|
60
|
+
isHLSStreamingOn &&
|
|
61
|
+
isStreamUrlPresent &&
|
|
62
|
+
startedPlayingFirstTimeRef.current &&
|
|
63
|
+
playerRef.current
|
|
64
|
+
) {
|
|
65
|
+
let mounted = true;
|
|
66
|
+
|
|
67
|
+
playerRef.current
|
|
68
|
+
.isClosedCaptionSupported()
|
|
69
|
+
.then((supported) => {
|
|
70
|
+
if (mounted) {
|
|
71
|
+
setIsCCSupported(supported);
|
|
72
|
+
}
|
|
73
|
+
})
|
|
74
|
+
.catch(() => {});
|
|
75
|
+
playerRef.current
|
|
76
|
+
.isClosedCaptionEnabled()
|
|
77
|
+
.then((enabled) => {
|
|
78
|
+
if (mounted) {
|
|
79
|
+
setIsCCEnabled(enabled);
|
|
80
|
+
}
|
|
81
|
+
})
|
|
82
|
+
.catch(() => {});
|
|
83
|
+
|
|
84
|
+
return () => {
|
|
85
|
+
mounted = false;
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
}, [
|
|
89
|
+
isHLSStreamingOn,
|
|
90
|
+
isStreamUrlPresent,
|
|
91
|
+
startedPlayingFirstTimeRef.current,
|
|
92
|
+
]);
|
|
93
|
+
|
|
94
|
+
if (!isCCSupported) {
|
|
95
|
+
return null;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
return (
|
|
99
|
+
<GestureDetector gesture={Gesture.Tap()}>
|
|
100
|
+
<TouchableOpacity
|
|
101
|
+
onPress={handleCCBtnPress}
|
|
102
|
+
style={[styles.icon, styles.gap]}
|
|
103
|
+
>
|
|
104
|
+
<CCIcon size="medium" enabled={isCCEnabled} />
|
|
105
|
+
</TouchableOpacity>
|
|
106
|
+
</GestureDetector>
|
|
107
|
+
);
|
|
108
|
+
};
|
|
109
|
+
|
|
110
|
+
export const HLSClosedCaptionControl = React.memo(_HLSClosedCaptionControl);
|
|
111
|
+
|
|
112
|
+
const styles = StyleSheet.create({
|
|
113
|
+
detectorContainer: {
|
|
114
|
+
position: 'absolute',
|
|
115
|
+
width: '100%',
|
|
116
|
+
height: '100%',
|
|
117
|
+
zIndex: 5,
|
|
118
|
+
},
|
|
119
|
+
container: {
|
|
120
|
+
flex: 1,
|
|
121
|
+
justifyContent: 'space-between',
|
|
122
|
+
},
|
|
123
|
+
controlsRow: {
|
|
124
|
+
flexDirection: 'row',
|
|
125
|
+
alignItems: 'center',
|
|
126
|
+
justifyContent: 'space-between',
|
|
127
|
+
marginHorizontal: 8,
|
|
128
|
+
},
|
|
129
|
+
normalRow: {
|
|
130
|
+
flexDirection: 'row',
|
|
131
|
+
alignItems: 'center',
|
|
132
|
+
},
|
|
133
|
+
icon: {
|
|
134
|
+
padding: 4,
|
|
135
|
+
alignSelf: 'flex-start',
|
|
136
|
+
},
|
|
137
|
+
gap: {
|
|
138
|
+
marginLeft: 16,
|
|
139
|
+
},
|
|
140
|
+
});
|
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { useDispatch, useSelector } from 'react-redux';
|
|
3
|
+
import { Linking, ScrollView, StyleSheet, Text, View } from 'react-native';
|
|
4
|
+
import { runOnJS, useSharedValue, withTiming } from 'react-native-reanimated';
|
|
5
|
+
|
|
6
|
+
import {
|
|
7
|
+
useHLSViewsConstraints,
|
|
8
|
+
useHMSConferencingScreenConfig,
|
|
9
|
+
useHMSRoomStyleSheet,
|
|
10
|
+
} from '../hooks-util';
|
|
11
|
+
import { HLSChatHeaderView } from './HLSChatHeaderView';
|
|
12
|
+
import {
|
|
13
|
+
HLSDescriptionPaneHeader,
|
|
14
|
+
HLSDescriptionPaneHeaderHeight,
|
|
15
|
+
} from './HLSDescriptionPaneHeader';
|
|
16
|
+
import { HLSAnimatedDescriptionPane } from './HLSAnimatedDescriptionPane';
|
|
17
|
+
import { setHlsDescriptionPaneVisible } from '../redux/actions';
|
|
18
|
+
import type { RootState } from '../redux';
|
|
19
|
+
|
|
20
|
+
interface HLSDescriptionPaneProps {}
|
|
21
|
+
|
|
22
|
+
export const HLSDescriptionPane: React.FC<HLSDescriptionPaneProps> = () => {
|
|
23
|
+
const dispatch = useDispatch();
|
|
24
|
+
const paneVisible = useSelector(
|
|
25
|
+
(state: RootState) => state.app.hlsDescriptionPaneVisible
|
|
26
|
+
);
|
|
27
|
+
|
|
28
|
+
const hmsRoomStyles = useHMSRoomStyleSheet((theme, typography) => ({
|
|
29
|
+
wrapper: {
|
|
30
|
+
backgroundColor: theme.palette.surface_dim,
|
|
31
|
+
},
|
|
32
|
+
regularSurfaceMedium: {
|
|
33
|
+
fontFamily: `${typography.font_family}-Regular`,
|
|
34
|
+
color: theme.palette.on_surface_medium,
|
|
35
|
+
},
|
|
36
|
+
link: {
|
|
37
|
+
color: theme.palette.primary_bright,
|
|
38
|
+
},
|
|
39
|
+
}));
|
|
40
|
+
|
|
41
|
+
const { descriptionPaneConstraints } = useHLSViewsConstraints();
|
|
42
|
+
|
|
43
|
+
const descriptionPaneContentHeight =
|
|
44
|
+
descriptionPaneConstraints.height - HLSDescriptionPaneHeaderHeight;
|
|
45
|
+
|
|
46
|
+
const desPaneTranslationValue = useSharedValue(0);
|
|
47
|
+
|
|
48
|
+
const _closeDescriptionPane = () => {
|
|
49
|
+
dispatch(setHlsDescriptionPaneVisible(false));
|
|
50
|
+
};
|
|
51
|
+
|
|
52
|
+
const hideDescriptionPane = () => {
|
|
53
|
+
if (paneVisible) {
|
|
54
|
+
desPaneTranslationValue.value = withTiming(0, { duration: 280 }, () => {
|
|
55
|
+
runOnJS(_closeDescriptionPane)();
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
};
|
|
59
|
+
|
|
60
|
+
React.useEffect(() => {
|
|
61
|
+
if (!paneVisible) {
|
|
62
|
+
return;
|
|
63
|
+
}
|
|
64
|
+
desPaneTranslationValue.value = withTiming(1, { duration: 280 });
|
|
65
|
+
return () => {
|
|
66
|
+
cancelAnimationFrame(desPaneTranslationValue.value);
|
|
67
|
+
};
|
|
68
|
+
}, [paneVisible]);
|
|
69
|
+
|
|
70
|
+
const description = useHMSConferencingScreenConfig((confScreenConfig) => {
|
|
71
|
+
return confScreenConfig?.elements?.header?.description;
|
|
72
|
+
});
|
|
73
|
+
|
|
74
|
+
const handleLinkPress = async (url: string) => {
|
|
75
|
+
const canOpen = await Linking.canOpenURL(url);
|
|
76
|
+
if (canOpen) {
|
|
77
|
+
Linking.openURL(url);
|
|
78
|
+
}
|
|
79
|
+
};
|
|
80
|
+
|
|
81
|
+
if (!paneVisible) {
|
|
82
|
+
return null;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
// TODO: for links to work, add query in manifest.xml
|
|
86
|
+
|
|
87
|
+
return (
|
|
88
|
+
<View
|
|
89
|
+
style={{
|
|
90
|
+
position: 'absolute',
|
|
91
|
+
bottom: 0,
|
|
92
|
+
width: descriptionPaneConstraints.width,
|
|
93
|
+
height: descriptionPaneConstraints.height,
|
|
94
|
+
zIndex: 10,
|
|
95
|
+
}}
|
|
96
|
+
>
|
|
97
|
+
<HLSDescriptionPaneHeader
|
|
98
|
+
close={hideDescriptionPane}
|
|
99
|
+
animatedValue={desPaneTranslationValue}
|
|
100
|
+
/>
|
|
101
|
+
|
|
102
|
+
<View style={{ flex: 1, overflow: 'hidden' }}>
|
|
103
|
+
<HLSAnimatedDescriptionPane
|
|
104
|
+
height={descriptionPaneContentHeight}
|
|
105
|
+
sharedValue={desPaneTranslationValue}
|
|
106
|
+
>
|
|
107
|
+
<ScrollView
|
|
108
|
+
style={hmsRoomStyles.wrapper}
|
|
109
|
+
contentContainerStyle={{ paddingBottom: 40 }}
|
|
110
|
+
>
|
|
111
|
+
<HLSChatHeaderView expanded={true} />
|
|
112
|
+
|
|
113
|
+
{description ? (
|
|
114
|
+
<Text
|
|
115
|
+
style={[styles.description, hmsRoomStyles.regularSurfaceMedium]}
|
|
116
|
+
>
|
|
117
|
+
{splitLinksAndContent(description, {
|
|
118
|
+
pressHandler: handleLinkPress,
|
|
119
|
+
style: hmsRoomStyles.link,
|
|
120
|
+
})}
|
|
121
|
+
</Text>
|
|
122
|
+
) : null}
|
|
123
|
+
</ScrollView>
|
|
124
|
+
</HLSAnimatedDescriptionPane>
|
|
125
|
+
</View>
|
|
126
|
+
</View>
|
|
127
|
+
);
|
|
128
|
+
};
|
|
129
|
+
|
|
130
|
+
const styles = StyleSheet.create({
|
|
131
|
+
description: {
|
|
132
|
+
fontSize: 14,
|
|
133
|
+
lineHeight: 20,
|
|
134
|
+
marginHorizontal: 16,
|
|
135
|
+
},
|
|
136
|
+
});
|
|
137
|
+
|
|
138
|
+
function splitLinksAndContent(
|
|
139
|
+
text: string,
|
|
140
|
+
{ pressHandler, style }: any
|
|
141
|
+
): string | (string | React.ReactElement)[] {
|
|
142
|
+
// Regular expression to find links in a string
|
|
143
|
+
const pattern = /http[s]?:\/\/\S+/g;
|
|
144
|
+
|
|
145
|
+
// Find all links in the text
|
|
146
|
+
const links = text.match(pattern) || [];
|
|
147
|
+
|
|
148
|
+
if (links.length <= 0) {
|
|
149
|
+
return text;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
// Split the text into an array of links and content
|
|
153
|
+
const parts = text.replace(pattern, '^<link>^').split('^');
|
|
154
|
+
|
|
155
|
+
return parts.map((p, i) => {
|
|
156
|
+
if (p !== '<link>') {
|
|
157
|
+
return p;
|
|
158
|
+
}
|
|
159
|
+
const link = links.pop();
|
|
160
|
+
return link ? (
|
|
161
|
+
<Text key={link + i} onPress={() => pressHandler(link)} style={style}>
|
|
162
|
+
{link}
|
|
163
|
+
</Text>
|
|
164
|
+
) : (
|
|
165
|
+
p
|
|
166
|
+
);
|
|
167
|
+
});
|
|
168
|
+
}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { StyleSheet, Text, TouchableOpacity, View } from 'react-native';
|
|
3
|
+
|
|
4
|
+
import { useHMSRoomStyleSheet } from '../hooks-util';
|
|
5
|
+
import { ChevronIcon } from '../Icons';
|
|
6
|
+
import Animated, {
|
|
7
|
+
useAnimatedStyle,
|
|
8
|
+
type SharedValue,
|
|
9
|
+
interpolate,
|
|
10
|
+
} from 'react-native-reanimated';
|
|
11
|
+
|
|
12
|
+
export interface HLSDescriptionPaneHeaderProps {
|
|
13
|
+
close(): void;
|
|
14
|
+
animatedValue: SharedValue<number>;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export const HLSDescriptionPaneHeaderHeight = 16 * 2 + 24; // vertical padding + content height
|
|
18
|
+
|
|
19
|
+
export const HLSDescriptionPaneHeader: React.FC<
|
|
20
|
+
HLSDescriptionPaneHeaderProps
|
|
21
|
+
> = ({ close, animatedValue }) => {
|
|
22
|
+
const hmsRoomStyles = useHMSRoomStyleSheet((theme, typography) => ({
|
|
23
|
+
container: {
|
|
24
|
+
backgroundColor: theme.palette.surface_dim,
|
|
25
|
+
borderBottomColor: theme.palette.border_bright,
|
|
26
|
+
},
|
|
27
|
+
semiBoldSurfaceHigh: {
|
|
28
|
+
fontFamily: `${typography.font_family}-SemiBold`,
|
|
29
|
+
color: theme.palette.on_surface_high,
|
|
30
|
+
},
|
|
31
|
+
}));
|
|
32
|
+
|
|
33
|
+
const animatedChevronStyles = useAnimatedStyle(
|
|
34
|
+
() => ({
|
|
35
|
+
transform: [
|
|
36
|
+
{
|
|
37
|
+
rotateZ: `${interpolate(animatedValue.value, [0, 1], [0, -180])}deg`,
|
|
38
|
+
},
|
|
39
|
+
],
|
|
40
|
+
}),
|
|
41
|
+
[]
|
|
42
|
+
);
|
|
43
|
+
|
|
44
|
+
const closeHlsDescriptionPane = () => {
|
|
45
|
+
close();
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
return (
|
|
49
|
+
<View style={[styles.container, hmsRoomStyles.container]}>
|
|
50
|
+
<Text style={[styles.title, hmsRoomStyles.semiBoldSurfaceHigh]}>
|
|
51
|
+
About Session
|
|
52
|
+
</Text>
|
|
53
|
+
|
|
54
|
+
<TouchableOpacity
|
|
55
|
+
hitSlop={{ bottom: 12, left: 12, top: 12, right: 12 }}
|
|
56
|
+
onPress={closeHlsDescriptionPane}
|
|
57
|
+
>
|
|
58
|
+
<Animated.View style={animatedChevronStyles}>
|
|
59
|
+
<ChevronIcon direction="down" />
|
|
60
|
+
</Animated.View>
|
|
61
|
+
</TouchableOpacity>
|
|
62
|
+
</View>
|
|
63
|
+
);
|
|
64
|
+
};
|
|
65
|
+
|
|
66
|
+
const styles = StyleSheet.create({
|
|
67
|
+
container: {
|
|
68
|
+
padding: 16,
|
|
69
|
+
flexDirection: 'row',
|
|
70
|
+
alignItems: 'center',
|
|
71
|
+
justifyContent: 'space-between',
|
|
72
|
+
borderBottomWidth: 1,
|
|
73
|
+
},
|
|
74
|
+
title: {
|
|
75
|
+
fontSize: 16,
|
|
76
|
+
lineHeight: 24,
|
|
77
|
+
},
|
|
78
|
+
});
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Platform, StyleSheet, Text } from 'react-native';
|
|
3
|
+
import {
|
|
4
|
+
HMSHLSPlaylistType,
|
|
5
|
+
useHMSHLSPlayerStat,
|
|
6
|
+
useIsHLSStreamLive,
|
|
7
|
+
} from '@100mslive/react-native-hms';
|
|
8
|
+
import { useSelector } from 'react-redux';
|
|
9
|
+
|
|
10
|
+
import { useHMSRoomStyle } from '../hooks-util';
|
|
11
|
+
import { useIsHLSStreamingOn } from '../hooks-sdk';
|
|
12
|
+
import type { RootState } from '../redux';
|
|
13
|
+
|
|
14
|
+
interface HLSDistanceFromLiveProps {}
|
|
15
|
+
|
|
16
|
+
export const _HLSDistanceFromLive: React.FC<HLSDistanceFromLiveProps> = () => {
|
|
17
|
+
const isHLSStreamingOn = useIsHLSStreamingOn();
|
|
18
|
+
const isDVRStream = useSelector(
|
|
19
|
+
(state: RootState) =>
|
|
20
|
+
state.hmsStates.room?.hlsStreamingState.variants?.[0]?.playlistType ===
|
|
21
|
+
HMSHLSPlaylistType.DVR
|
|
22
|
+
);
|
|
23
|
+
const isStreamLive = useIsHLSStreamLive();
|
|
24
|
+
|
|
25
|
+
if (!isHLSStreamingOn || !isDVRStream || isStreamLive) return null;
|
|
26
|
+
|
|
27
|
+
return <HLSDistanceFromLiveText />;
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
export const HLSDistanceFromLiveText = React.memo(() => {
|
|
31
|
+
const distanceFromLiveEdge = useHMSHLSPlayerStat('distanceFromLive');
|
|
32
|
+
|
|
33
|
+
const textStyle = useHMSRoomStyle((_, typography) => ({
|
|
34
|
+
fontFamily: `${typography.font_family}-Regular`,
|
|
35
|
+
color: '#ffffff',
|
|
36
|
+
}));
|
|
37
|
+
|
|
38
|
+
const hhmmss = msToHMS(
|
|
39
|
+
distanceFromLiveEdge - Platform.select({ default: 10000, ios: 1000 })
|
|
40
|
+
);
|
|
41
|
+
|
|
42
|
+
return <Text style={[styles.text, textStyle]}>-{hhmmss}</Text>;
|
|
43
|
+
});
|
|
44
|
+
|
|
45
|
+
export const HLSDistanceFromLive = React.memo(_HLSDistanceFromLive);
|
|
46
|
+
|
|
47
|
+
const styles = StyleSheet.create({
|
|
48
|
+
text: {
|
|
49
|
+
fontSize: 16,
|
|
50
|
+
lineHeight: 24,
|
|
51
|
+
letterSpacing: 0.5,
|
|
52
|
+
marginLeft: 8,
|
|
53
|
+
},
|
|
54
|
+
});
|
|
55
|
+
|
|
56
|
+
function msToHMS(ms: number) {
|
|
57
|
+
const seconds = Math.floor((ms / 1000) % 60);
|
|
58
|
+
const minutes = Math.floor((ms / 1000 / 60) % 60);
|
|
59
|
+
const hours = Math.floor((ms / 1000 / 3600) % 24);
|
|
60
|
+
|
|
61
|
+
const humanized = [
|
|
62
|
+
minutes > 0 ? minutes.toString().padStart(2, '0') : '0',
|
|
63
|
+
seconds.toString().padStart(2, '0'),
|
|
64
|
+
];
|
|
65
|
+
|
|
66
|
+
if (hours > 0) humanized.unshift(hours.toString().padStart(2, '0'));
|
|
67
|
+
|
|
68
|
+
return humanized.join(':');
|
|
69
|
+
}
|
|
@@ -4,7 +4,7 @@ import type { SharedValue } from 'react-native-reanimated';
|
|
|
4
4
|
|
|
5
5
|
import { Footer } from './Footer';
|
|
6
6
|
import { AnimatedHLSFooter } from './AnimatedHLSFooter';
|
|
7
|
-
import {
|
|
7
|
+
import { HMSOverlayChatView } from './HMSOverlayChatView';
|
|
8
8
|
import { useShowChatAndParticipants } from '../hooks-util';
|
|
9
9
|
import { HMSNotifications } from './HMSNotifications';
|
|
10
10
|
|
|
@@ -17,7 +17,7 @@ export const HLSFooter: React.FC<HLSFooterProps> = ({ offset }) => {
|
|
|
17
17
|
|
|
18
18
|
return (
|
|
19
19
|
<AnimatedHLSFooter offset={offset} style={styles.animatedContainer}>
|
|
20
|
-
{overlayChatVisible ? <
|
|
20
|
+
{overlayChatVisible ? <HMSOverlayChatView offset={offset} /> : null}
|
|
21
21
|
|
|
22
22
|
<HMSNotifications />
|
|
23
23
|
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { StyleSheet, TouchableOpacity } from 'react-native';
|
|
3
|
+
import { useDispatch, useSelector } from 'react-redux';
|
|
4
|
+
import { GestureDetector, Gesture } from 'react-native-gesture-handler';
|
|
5
|
+
|
|
6
|
+
import { MaximizeIcon, MinimizeIcon } from '../Icons';
|
|
7
|
+
import type { RootState } from '../redux';
|
|
8
|
+
import { setHlsFullScreen } from '../redux/actions';
|
|
9
|
+
|
|
10
|
+
interface HLSFullScreenControlProps {
|
|
11
|
+
onPress?: () => void;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export const _HLSFullScreenControl: React.FC<HLSFullScreenControlProps> = ({
|
|
15
|
+
onPress,
|
|
16
|
+
}) => {
|
|
17
|
+
const dispatch = useDispatch();
|
|
18
|
+
const hlsFullScreen = useSelector(
|
|
19
|
+
(state: RootState) => state.app.hlsFullScreen
|
|
20
|
+
);
|
|
21
|
+
const toggleFullScreen = () => {
|
|
22
|
+
onPress?.();
|
|
23
|
+
dispatch(setHlsFullScreen(!hlsFullScreen));
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
return (
|
|
27
|
+
<GestureDetector gesture={Gesture.Tap()}>
|
|
28
|
+
<TouchableOpacity onPress={toggleFullScreen} style={styles.icon}>
|
|
29
|
+
{hlsFullScreen ? (
|
|
30
|
+
<MinimizeIcon size="medium" />
|
|
31
|
+
) : (
|
|
32
|
+
<MaximizeIcon size="medium" />
|
|
33
|
+
)}
|
|
34
|
+
</TouchableOpacity>
|
|
35
|
+
</GestureDetector>
|
|
36
|
+
);
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
export const HLSFullScreenControl = React.memo(_HLSFullScreenControl);
|
|
40
|
+
|
|
41
|
+
const styles = StyleSheet.create({
|
|
42
|
+
icon: {
|
|
43
|
+
padding: 4,
|
|
44
|
+
alignSelf: 'flex-start',
|
|
45
|
+
},
|
|
46
|
+
});
|