@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,121 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { Pressable, StyleSheet, Text, View } from 'react-native';
|
|
3
|
+
import { useDispatch, useSelector } from 'react-redux';
|
|
4
|
+
import { CompanyLogo } from './CompanyLogo';
|
|
5
|
+
import { useHMSConferencingScreenConfig, useHMSRoomStyleSheet } from '../hooks-util';
|
|
6
|
+
import { HLSRecordingStatusText } from './HLSRecordingStatusText';
|
|
7
|
+
import { useIsHLSStreamingOn } from '../hooks-sdk';
|
|
8
|
+
import { HLSStreamStartedTime } from './HLSStreamStartedTime';
|
|
9
|
+
import { setHlsDescriptionPaneVisible } from '../redux/actions';
|
|
10
|
+
export const _HLSChatHeaderView = ({
|
|
11
|
+
expanded = false
|
|
12
|
+
}) => {
|
|
13
|
+
const dispatch = useDispatch();
|
|
14
|
+
const isHLSStreaming = useIsHLSStreamingOn();
|
|
15
|
+
const peerCount = useSelector(state => {
|
|
16
|
+
var _state$hmsStates$room;
|
|
17
|
+
return (_state$hmsStates$room = state.hmsStates.room) === null || _state$hmsStates$room === void 0 ? void 0 : _state$hmsStates$room.peerCount;
|
|
18
|
+
});
|
|
19
|
+
const headerTitle = useHMSConferencingScreenConfig(confScreenConfig => {
|
|
20
|
+
var _confScreenConfig$ele;
|
|
21
|
+
return confScreenConfig === null || confScreenConfig === void 0 || (_confScreenConfig$ele = confScreenConfig.elements) === null || _confScreenConfig$ele === void 0 || (_confScreenConfig$ele = _confScreenConfig$ele.header) === null || _confScreenConfig$ele === void 0 ? void 0 : _confScreenConfig$ele.title;
|
|
22
|
+
});
|
|
23
|
+
const isValidHeaderDescription = useHMSConferencingScreenConfig(confScreenConfig => {
|
|
24
|
+
var _confScreenConfig$ele2;
|
|
25
|
+
return !!(confScreenConfig !== null && confScreenConfig !== void 0 && (_confScreenConfig$ele2 = confScreenConfig.elements) !== null && _confScreenConfig$ele2 !== void 0 && (_confScreenConfig$ele2 = _confScreenConfig$ele2.header) !== null && _confScreenConfig$ele2 !== void 0 && _confScreenConfig$ele2.description);
|
|
26
|
+
});
|
|
27
|
+
const showDescriptionPane = () => {
|
|
28
|
+
dispatch(setHlsDescriptionPaneVisible(true));
|
|
29
|
+
};
|
|
30
|
+
const hmsRoomStyles = useHMSRoomStyleSheet((theme, typography) => ({
|
|
31
|
+
container: {
|
|
32
|
+
backgroundColor: theme.palette.surface_dim,
|
|
33
|
+
borderBottomColor: theme.palette.border_bright
|
|
34
|
+
},
|
|
35
|
+
semiBoldSecondaryHigh: {
|
|
36
|
+
fontFamily: `${typography.font_family}-SemiBold`,
|
|
37
|
+
color: theme.palette.on_secondary_high
|
|
38
|
+
},
|
|
39
|
+
semiBoldSurfaceHigh: {
|
|
40
|
+
fontFamily: `${typography.font_family}-SemiBold`,
|
|
41
|
+
color: theme.palette.on_surface_high
|
|
42
|
+
},
|
|
43
|
+
regularSurfaceMedium: {
|
|
44
|
+
fontFamily: `${typography.font_family}-Regular`,
|
|
45
|
+
color: theme.palette.on_surface_medium
|
|
46
|
+
},
|
|
47
|
+
regularSurfaceLow: {
|
|
48
|
+
fontFamily: `${typography.font_family}-Regular`,
|
|
49
|
+
color: theme.palette.on_surface_low
|
|
50
|
+
}
|
|
51
|
+
}));
|
|
52
|
+
return /*#__PURE__*/React.createElement(View, {
|
|
53
|
+
style: [styles.container, hmsRoomStyles.container, expanded ? {
|
|
54
|
+
borderBottomWidth: 0
|
|
55
|
+
} : null]
|
|
56
|
+
}, /*#__PURE__*/React.createElement(CompanyLogo, {
|
|
57
|
+
style: styles.logo
|
|
58
|
+
}), /*#__PURE__*/React.createElement(View, {
|
|
59
|
+
style: {
|
|
60
|
+
flexShrink: 1
|
|
61
|
+
}
|
|
62
|
+
}, headerTitle ? /*#__PURE__*/React.createElement(Text, {
|
|
63
|
+
numberOfLines: expanded ? undefined : 2,
|
|
64
|
+
style: [styles.title, hmsRoomStyles.semiBoldSecondaryHigh]
|
|
65
|
+
}, headerTitle) : null, /*#__PURE__*/React.createElement(View, {
|
|
66
|
+
style: {
|
|
67
|
+
flexDirection: 'row',
|
|
68
|
+
alignItems: 'center'
|
|
69
|
+
}
|
|
70
|
+
}, /*#__PURE__*/React.createElement(Text, {
|
|
71
|
+
style: [styles.subtitle, hmsRoomStyles.regularSurfaceMedium]
|
|
72
|
+
}, peerCount, " ", isHLSStreaming ? 'watching' : 'joined'), isHLSStreaming ? /*#__PURE__*/React.createElement(HLSStreamStartedTime, {
|
|
73
|
+
prefix: /*#__PURE__*/React.createElement(Text, {
|
|
74
|
+
style: [styles.subtitleDivider, hmsRoomStyles.regularSurfaceLow]
|
|
75
|
+
}, "\u25CF")
|
|
76
|
+
}) : null, isValidHeaderDescription && !expanded ? /*#__PURE__*/React.createElement(Pressable, {
|
|
77
|
+
onPress: showDescriptionPane,
|
|
78
|
+
hitSlop: {
|
|
79
|
+
top: 8,
|
|
80
|
+
bottom: 8,
|
|
81
|
+
left: 8,
|
|
82
|
+
right: 8
|
|
83
|
+
}
|
|
84
|
+
}, /*#__PURE__*/React.createElement(Text, {
|
|
85
|
+
style: [styles.subtitle, {
|
|
86
|
+
marginLeft: 8
|
|
87
|
+
}, hmsRoomStyles.semiBoldSurfaceHigh]
|
|
88
|
+
}, "...more")) : /*#__PURE__*/React.createElement(HLSRecordingStatusText, {
|
|
89
|
+
style: [styles.subtitle, hmsRoomStyles.regularSurfaceMedium],
|
|
90
|
+
prefix: /*#__PURE__*/React.createElement(Text, {
|
|
91
|
+
style: [styles.subtitleDivider, hmsRoomStyles.regularSurfaceLow]
|
|
92
|
+
}, "\u25CF")
|
|
93
|
+
}))));
|
|
94
|
+
};
|
|
95
|
+
export const HLSChatHeaderView = /*#__PURE__*/React.memo(_HLSChatHeaderView);
|
|
96
|
+
const styles = StyleSheet.create({
|
|
97
|
+
container: {
|
|
98
|
+
padding: 16,
|
|
99
|
+
flexDirection: 'row',
|
|
100
|
+
alignItems: 'center',
|
|
101
|
+
borderBottomWidth: 1
|
|
102
|
+
},
|
|
103
|
+
logo: {
|
|
104
|
+
marginRight: 12
|
|
105
|
+
},
|
|
106
|
+
title: {
|
|
107
|
+
fontSize: 14,
|
|
108
|
+
lineHeight: 20,
|
|
109
|
+
marginBottom: 4
|
|
110
|
+
},
|
|
111
|
+
subtitle: {
|
|
112
|
+
fontSize: 12,
|
|
113
|
+
lineHeight: 16
|
|
114
|
+
},
|
|
115
|
+
subtitleDivider: {
|
|
116
|
+
fontSize: 6,
|
|
117
|
+
lineHeight: 16,
|
|
118
|
+
marginHorizontal: 8
|
|
119
|
+
}
|
|
120
|
+
});
|
|
121
|
+
//# sourceMappingURL=HLSChatHeaderView.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","Pressable","StyleSheet","Text","View","useDispatch","useSelector","CompanyLogo","useHMSConferencingScreenConfig","useHMSRoomStyleSheet","HLSRecordingStatusText","useIsHLSStreamingOn","HLSStreamStartedTime","setHlsDescriptionPaneVisible","_HLSChatHeaderView","expanded","dispatch","isHLSStreaming","peerCount","state","_state$hmsStates$room","hmsStates","room","headerTitle","confScreenConfig","_confScreenConfig$ele","elements","header","title","isValidHeaderDescription","_confScreenConfig$ele2","description","showDescriptionPane","hmsRoomStyles","theme","typography","container","backgroundColor","palette","surface_dim","borderBottomColor","border_bright","semiBoldSecondaryHigh","fontFamily","font_family","color","on_secondary_high","semiBoldSurfaceHigh","on_surface_high","regularSurfaceMedium","on_surface_medium","regularSurfaceLow","on_surface_low","createElement","style","styles","borderBottomWidth","logo","flexShrink","numberOfLines","undefined","flexDirection","alignItems","subtitle","prefix","subtitleDivider","onPress","hitSlop","top","bottom","left","right","marginLeft","HLSChatHeaderView","memo","create","padding","marginRight","fontSize","lineHeight","marginBottom","marginHorizontal"],"sourceRoot":"../../../src","sources":["components/HLSChatHeaderView.tsx"],"mappings":"AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,SAASC,SAAS,EAAEC,UAAU,EAAEC,IAAI,EAAEC,IAAI,QAAQ,cAAc;AAChE,SAASC,WAAW,EAAEC,WAAW,QAAQ,aAAa;AAEtD,SAASC,WAAW,QAAQ,eAAe;AAC3C,SACEC,8BAA8B,EAC9BC,oBAAoB,QACf,eAAe;AAEtB,SAASC,sBAAsB,QAAQ,0BAA0B;AACjE,SAASC,mBAAmB,QAAQ,cAAc;AAClD,SAASC,oBAAoB,QAAQ,wBAAwB;AAC7D,SAASC,4BAA4B,QAAQ,kBAAkB;AAM/D,OAAO,MAAMC,kBAAoD,GAAGA,CAAC;EACnEC,QAAQ,GAAG;AACb,CAAC,KAAK;EACJ,MAAMC,QAAQ,GAAGX,WAAW,CAAC,CAAC;EAC9B,MAAMY,cAAc,GAAGN,mBAAmB,CAAC,CAAC;EAE5C,MAAMO,SAAS,GAAGZ,WAAW,CAC1Ba,KAAgB;IAAA,IAAAC,qBAAA;IAAA,QAAAA,qBAAA,GAAKD,KAAK,CAACE,SAAS,CAACC,IAAI,cAAAF,qBAAA,uBAApBA,qBAAA,CAAsBF,SAAS;EAAA,CACvD,CAAC;EACD,MAAMK,WAAW,GAAGf,8BAA8B,CAAEgB,gBAAgB,IAAK;IAAA,IAAAC,qBAAA;IACvE,OAAOD,gBAAgB,aAAhBA,gBAAgB,gBAAAC,qBAAA,GAAhBD,gBAAgB,CAAEE,QAAQ,cAAAD,qBAAA,gBAAAA,qBAAA,GAA1BA,qBAAA,CAA4BE,MAAM,cAAAF,qBAAA,uBAAlCA,qBAAA,CAAoCG,KAAK;EAClD,CAAC,CAAC;EACF,MAAMC,wBAAwB,GAAGrB,8B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C,KAAK,EAAE;IAAE;EAAE,gBAElDvE,KAAA,CAAAqD,aAAA,CAAClD,IAAI;IACHmD,KAAK,EAAE,CACLC,MAAM,CAACQ,QAAQ,EACf;MAAES,UAAU,EAAE;IAAE,CAAC,EACjBvC,aAAa,CAACc,mBAAmB;EACjC,GACH,SAEK,CACG,CAAC,gBAEZ/C,KAAA,CAAAqD,aAAA,CAAC3C,sBAAsB;IACrB4C,KAAK,EAAE,CAACC,MAAM,CAACQ,QAAQ,EAAE9B,aAAa,CAACgB,oBAAoB,CAAE;IAC7De,MAAM,eACJhE,KAAA,CAAAqD,aAAA,CAAClD,IAAI;MACHmD,KAAK,EAAE,CACLC,MAAM,CAACU,eAAe,EACtBhC,aAAa,CAACkB,iBAAiB;IAC/B,GACH,QAEK;EACP,CACF,CAEC,CACF,CACF,CAAC;AAEX,CAAC;AAED,OAAO,MAAMsB,iBAAiB,gBAAGzE,KAAK,CAAC0E,IAAI,CAAC5D,kBAAkB,CAAC;AAE/D,MAAMyC,MAAM,GAAGrD,UAAU,CAACyE,MAAM,CAAC;EAC/BvC,SAAS,EAAE;IACTwC,OAAO,EAAE,EAAE;IACXf,aAAa,EAAE,KAAK;IACpBC,UAAU,EAAE,QAAQ;IACpBN,iBAAiB,EAAE;EACrB,CAAC;EACDC,IAAI,EAAE;IAAEoB,WAAW,EAAE;EAAG,CAAC;EACzBjD,KAAK,EAAE;IACLkD,QAAQ,EAAE,EAAE;IACZC,UAAU,EAAE,EAAE;IACdC,YAAY,EAAE;EAChB,CAAC;EACDjB,QAAQ,EAAE;IACRe,QAAQ,EAAE,EAAE;IACZC,UAAU,EAAE;EACd,CAAC;EACDd,eAAe,EAAE;IACfa,QAAQ,EAAE,CAAC;IACXC,UAAU,EAAE,EAAE;IACdE,gBAAgB,EAAE;EACpB;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { FlatList, Platform, StyleSheet, View } from 'react-native';
|
|
3
|
+
import { useSelector } from 'react-redux';
|
|
4
|
+
import { HMSHLSMessage } from './HMSHLSMessage';
|
|
5
|
+
import { ChatBanner, PinnedMessages } from './Chat';
|
|
6
|
+
import { MessageOptionsBottomSheet } from './Chat/MessageOptionsBottomSheet';
|
|
7
|
+
export const HLSChatMessages = () => {
|
|
8
|
+
const messages = useSelector(state => state.messages.messages);
|
|
9
|
+
const _keyExtractor = React.useCallback(item => item.messageId, []);
|
|
10
|
+
const _renderItem = React.useCallback(data => {
|
|
11
|
+
return /*#__PURE__*/React.createElement(HMSHLSMessage, {
|
|
12
|
+
message: data.item
|
|
13
|
+
});
|
|
14
|
+
}, []);
|
|
15
|
+
return /*#__PURE__*/React.createElement(View, {
|
|
16
|
+
style: {
|
|
17
|
+
flex: 1,
|
|
18
|
+
paddingHorizontal: 16
|
|
19
|
+
}
|
|
20
|
+
}, /*#__PURE__*/React.createElement(View, {
|
|
21
|
+
style: styles.container
|
|
22
|
+
}, /*#__PURE__*/React.createElement(PinnedMessages, null), messages.length > 0 ? /*#__PURE__*/React.createElement(FlatList, {
|
|
23
|
+
inverted: true,
|
|
24
|
+
data: messages,
|
|
25
|
+
contentContainerStyle: {
|
|
26
|
+
flexGrow: 1,
|
|
27
|
+
justifyContent: 'flex-end'
|
|
28
|
+
},
|
|
29
|
+
showsVerticalScrollIndicator: Platform.OS !== 'android'
|
|
30
|
+
// contentContainerStyle={styles.listContentContainer} // Bug: Android inverted flashlist will apply padding on left when `paddingRight: 12` is applied
|
|
31
|
+
,
|
|
32
|
+
keyboardShouldPersistTaps: "always"
|
|
33
|
+
// ListEmptyComponent={ChatBanner}
|
|
34
|
+
// ItemSeparatorComponent={() => <View style={{ height: 16 }} />} // TODO: There is a bug related to this: https://github.com/Shopify/flash-list/issues/638
|
|
35
|
+
,
|
|
36
|
+
renderItem: _renderItem,
|
|
37
|
+
keyExtractor: _keyExtractor
|
|
38
|
+
}) : /*#__PURE__*/React.createElement(ChatBanner, null)), /*#__PURE__*/React.createElement(MessageOptionsBottomSheet, null));
|
|
39
|
+
};
|
|
40
|
+
const styles = StyleSheet.create({
|
|
41
|
+
container: {
|
|
42
|
+
flex: 1
|
|
43
|
+
}
|
|
44
|
+
});
|
|
45
|
+
//# sourceMappingURL=HLSChatMessages.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","FlatList","Platform","StyleSheet","View","useSelector","HMSHLSMessage","ChatBanner","PinnedMessages","MessageOptionsBottomSheet","HLSChatMessages","messages","state","_keyExtractor","useCallback","item","messageId","_renderItem","data","createElement","message","style","flex","paddingHorizontal","styles","container","length","inverted","contentContainerStyle","flexGrow","justifyContent","showsVerticalScrollIndicator","OS","keyboardShouldPersistTaps","renderItem","keyExtractor","create"],"sourceRoot":"../../../src","sources":["components/HLSChatMessages.tsx"],"mappings":"AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,SAASC,QAAQ,EAAEC,QAAQ,EAAEC,UAAU,EAAEC,IAAI,QAAQ,cAAc;AACnE,SAASC,WAAW,QAAQ,aAAa;AAIzC,SAASC,aAAa,QAAQ,iBAAiB;AAC/C,SAASC,UAAU,EAAEC,cAAc,QAAQ,QAAQ;AACnD,SAASC,yBAAyB,QAAQ,kCAAkC;AAE5E,OAAO,MAAMC,eAAe,GAAGA,CAAA,KAAM;EACnC,MAAMC,QAAQ,GAAGN,WAAW,CAAEO,KAAgB,IAAKA,KAAK,CAACD,QAAQ,CAACA,QAAQ,CAAC;EAE3E,MAAME,aAAa,GAAGb,KAAK,CAACc,WAAW,CACpCC,IAAgB,IAAKA,IAAI,CAACC,SAAS,EACpC,EACF,CAAC;EAED,MAAMC,WAAW,GAAGjB,KAAK,CAACc,WAAW,CAAEI,IAA0B,IAAK;IACpE,oBAAOlB,KAAA,CAAAmB,aAAA,CAACb,aAAa;MAACc,OAAO,EAAEF,IAAI,CAACH;IAAK,CAAE,CAAC;EAC9C,CAAC,EAAE,EAAE,CAAC;EAEN,oBACEf,KAAA,CAAAmB,aAAA,CAACf,IAAI;IACHiB,KAAK,EAAE;MACLC,IAAI,EAAE,CAAC;MACPC,iBAAiB,EAAE;IACrB;EAAE,gBAEFvB,KAAA,CAAAmB,aAAA,CAACf,IAAI;IAACiB,KAAK,EAAEG,MAAM,CAACC;EAAU,gBAC5BzB,KAAA,CAAAmB,aAAA,CAACX,cAAc,MAAE,CAAC,EAEjBG,QAAQ,CAACe,MAAM,GAAG,CAAC,gBAClB1B,KAAA,CAAAmB,aAAA,CAAClB,QAAQ;IACP0B,QAAQ,EAAE,IAAK;IACfT,IAAI,EAAEP,QAAS;IACfiB,qBAAqB,EAAE;MAAEC,QAAQ,EAAE,CAAC;MAAEC,cAAc,EAAE;IAAW,CAAE;IACnEC,4BAA4B,EAAE7B,QAAQ,CAAC8B,EAAE,KAAK;IAC9C;IAAA;IACAC,yBAAyB,EAAC;IAC1B;IACA;IAAA;IACAC,UAAU,EAAEjB,WAAY;IACxBkB,YAAY,EAAEtB;EAAc,CAC7B,CAAC,gBAEFb,KAAA,CAAAmB,aAAA,CAACZ,UAAU,MAAE,CAEX,CAAC,eAEPP,KAAA,CAAAmB,aAAA,CAACV,yBAAyB,MAAE,CACxB,CAAC;AAEX,CAAC;AAED,MAAMe,MAAM,GAAGrB,UAAU,CAACiC,MAAM,CAAC;EAC/BX,SAAS,EAAE;IACTH,IAAI,EAAE;EACR;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { View } from 'react-native';
|
|
3
|
+
import { useSelector } from 'react-redux';
|
|
4
|
+
import { useHLSViewsConstraints, useHMSRoomStyleSheet } from '../hooks-util';
|
|
5
|
+
import { HLSChatHeaderView } from './HLSChatHeaderView';
|
|
6
|
+
import { HLSChatFooterView } from './HLSChatFooterView';
|
|
7
|
+
import { HLSChatMessages } from './HLSChatMessages';
|
|
8
|
+
import { HLSDescriptionPane } from './HLSDescriptionPane';
|
|
9
|
+
import { useIsLandscapeOrientation } from '../utils/dimension';
|
|
10
|
+
import { HLSNotifications } from './HLSNotifications';
|
|
11
|
+
export const HLSChatView = () => {
|
|
12
|
+
const isLandscapeOrientation = useIsLandscapeOrientation();
|
|
13
|
+
const {
|
|
14
|
+
chatWrapperConstraints
|
|
15
|
+
} = useHLSViewsConstraints();
|
|
16
|
+
const hlsFullScreen = useSelector(state => state.app.hlsFullScreen);
|
|
17
|
+
const hmsRoomStyles = useHMSRoomStyleSheet(theme => ({
|
|
18
|
+
wrapper: {
|
|
19
|
+
backgroundColor: theme.palette.surface_dim
|
|
20
|
+
}
|
|
21
|
+
}));
|
|
22
|
+
if (hlsFullScreen) {
|
|
23
|
+
return null;
|
|
24
|
+
}
|
|
25
|
+
return /*#__PURE__*/React.createElement(View, {
|
|
26
|
+
style: {
|
|
27
|
+
position: 'absolute',
|
|
28
|
+
bottom: isLandscapeOrientation ? undefined : 0,
|
|
29
|
+
right: 0,
|
|
30
|
+
width: chatWrapperConstraints.width,
|
|
31
|
+
height: chatWrapperConstraints.height
|
|
32
|
+
}
|
|
33
|
+
}, /*#__PURE__*/React.createElement(View, {
|
|
34
|
+
style: [{
|
|
35
|
+
flex: 1,
|
|
36
|
+
position: 'relative'
|
|
37
|
+
}, hmsRoomStyles.wrapper]
|
|
38
|
+
}, isLandscapeOrientation ? null : /*#__PURE__*/React.createElement(HLSChatHeaderView, null), /*#__PURE__*/React.createElement(HLSChatMessages, null), /*#__PURE__*/React.createElement(HLSChatFooterView, null), /*#__PURE__*/React.createElement(HLSNotifications, null), isLandscapeOrientation ? null : /*#__PURE__*/React.createElement(HLSDescriptionPane, null)));
|
|
39
|
+
};
|
|
40
|
+
//# sourceMappingURL=HLSChatView.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","View","useSelector","useHLSViewsConstraints","useHMSRoomStyleSheet","HLSChatHeaderView","HLSChatFooterView","HLSChatMessages","HLSDescriptionPane","useIsLandscapeOrientation","HLSNotifications","HLSChatView","isLandscapeOrientation","chatWrapperConstraints","hlsFullScreen","state","app","hmsRoomStyles","theme","wrapper","backgroundColor","palette","surface_dim","createElement","style","position","bottom","undefined","right","width","height","flex"],"sourceRoot":"../../../src","sources":["components/HLSChatView.tsx"],"mappings":"AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,SAASC,IAAI,QAAQ,cAAc;AACnC,SAASC,WAAW,QAAQ,aAAa;AAEzC,SAASC,sBAAsB,EAAEC,oBAAoB,QAAQ,eAAe;AAC5E,SAASC,iBAAiB,QAAQ,qBAAqB;AACvD,SAASC,iBAAiB,QAAQ,qBAAqB;AACvD,SAASC,eAAe,QAAQ,mBAAmB;AACnD,SAASC,kBAAkB,QAAQ,sBAAsB;AACzD,SAASC,yBAAyB,QAAQ,oBAAoB;AAE9D,SAASC,gBAAgB,QAAQ,oBAAoB;AAErD,OAAO,MAAMC,WAAW,GAAGA,CAAA,KAAM;EAC/B,MAAMC,sBAAsB,GAAGH,yBAAyB,CAAC,CAAC;EAC1D,MAAM;IAAEI;EAAuB,CAAC,GAAGV,sBAAsB,CAAC,CAAC;EAC3D,MAAMW,aAAa,GAAGZ,WAAW,CAC9Ba,KAAgB,IAAKA,KAAK,CAACC,GAAG,CAACF,aAClC,CAAC;EAED,MAAMG,aAAa,GAAGb,oBAAoB,CAAEc,KAAK,KAAM;IACrDC,OAAO,EAAE;MACPC,eAAe,EAAEF,KAAK,CAACG,OAAO,CAACC;IACjC;EACF,CAAC,CAAC,CAAC;EAEH,IAAIR,aAAa,EAAE;IACjB,OAAO,IAAI;EACb;EAEA,oBACEd,KAAA,CAAAuB,aAAA,CAACtB,IAAI;IACHuB,KAAK,EAAE;MACLC,QAAQ,EAAE,UAAU;MACpBC,MAAM,EAAEd,sBAAsB,GAAGe,SAAS,GAAG,CAAC;MAC9CC,KAAK,EAAE,CAAC;MACRC,KAAK,EAAEhB,sBAAsB,CAACgB,KAAK;MACnCC,MAAM,EAAEjB,sBAAsB,CAACiB;IACjC;EAAE,gBAEF9B,KAAA,CAAAuB,aAAA,CAACtB,IAAI;IAACuB,KAAK,EAAE,CAAC;MAAEO,IAAI,EAAE,CAAC;MAAEN,QAAQ,EAAE;IAAW,CAAC,EAAER,aAAa,CAACE,OAAO;EAAE,GACrEP,sBAAsB,GAAG,IAAI,gBAAGZ,KAAA,CAAAuB,aAAA,CAAClB,iBAAiB,MAAE,CAAC,eAEtDL,KAAA,CAAAuB,aAAA,CAAChB,eAAe,MAAE,CAAC,eAEnBP,KAAA,CAAAuB,aAAA,CAACjB,iBAAiB,MAAE,CAAC,eAErBN,KAAA,CAAAuB,aAAA,CAACb,gBAAgB,MAAE,CAAC,EAGnBE,sBAAsB,GAAG,IAAI,gBAAGZ,KAAA,CAAAuB,aAAA,CAACf,kBAAkB,MAAE,CAClD,CACF,CAAC;AAEX,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { StyleSheet, TouchableOpacity } from 'react-native';
|
|
3
|
+
import { GestureDetector, Gesture } from 'react-native-gesture-handler';
|
|
4
|
+
import { CloseIcon } from '../Icons';
|
|
5
|
+
import { ModalTypes } from '../utils/types';
|
|
6
|
+
import { useModalType } from '../hooks-util';
|
|
7
|
+
export const _HLSCloseMeetingControl = ({
|
|
8
|
+
onPress
|
|
9
|
+
}) => {
|
|
10
|
+
const {
|
|
11
|
+
handleModalVisibleType
|
|
12
|
+
} = useModalType();
|
|
13
|
+
const handleCloseBtnPress = () => {
|
|
14
|
+
onPress === null || onPress === void 0 || onPress();
|
|
15
|
+
handleModalVisibleType(ModalTypes.LEAVE_ROOM);
|
|
16
|
+
};
|
|
17
|
+
return /*#__PURE__*/React.createElement(GestureDetector, {
|
|
18
|
+
gesture: Gesture.Tap()
|
|
19
|
+
}, /*#__PURE__*/React.createElement(TouchableOpacity, {
|
|
20
|
+
onPress: handleCloseBtnPress,
|
|
21
|
+
style: styles.icon
|
|
22
|
+
}, /*#__PURE__*/React.createElement(CloseIcon, {
|
|
23
|
+
size: "medium"
|
|
24
|
+
})));
|
|
25
|
+
};
|
|
26
|
+
export const HLSCloseMeetingControl = /*#__PURE__*/React.memo(_HLSCloseMeetingControl);
|
|
27
|
+
const styles = StyleSheet.create({
|
|
28
|
+
icon: {
|
|
29
|
+
padding: 4,
|
|
30
|
+
alignSelf: 'flex-start'
|
|
31
|
+
}
|
|
32
|
+
});
|
|
33
|
+
//# sourceMappingURL=HLSCloseMeetingControl.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","StyleSheet","TouchableOpacity","GestureDetector","Gesture","CloseIcon","ModalTypes","useModalType","_HLSCloseMeetingControl","onPress","handleModalVisibleType","handleCloseBtnPress","LEAVE_ROOM","createElement","gesture","Tap","style","styles","icon","size","HLSCloseMeetingControl","memo","create","padding","alignSelf"],"sourceRoot":"../../../src","sources":["components/HLSCloseMeetingControl.tsx"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,UAAU,EAAEC,gBAAgB,QAAQ,cAAc;AAC3D,SAASC,eAAe,EAAEC,OAAO,QAAQ,8BAA8B;AAEvE,SAASC,SAAS,QAAQ,UAAU;AACpC,SAASC,UAAU,QAAQ,gBAAgB;AAC3C,SAASC,YAAY,QAAQ,eAAe;AAM5C,OAAO,MAAMC,uBAAyD,GAAGA,CAAC;EACxEC;AACF,CAAC,KAAK;EACJ,MAAM;IAAEC;EAAuB,CAAC,GAAGH,YAAY,CAAC,CAAC;EAEjD,MAAMI,mBAAmB,GAAGA,CAAA,KAAM;IAChCF,OAAO,aAAPA,OAAO,eAAPA,OAAO,CAAG,CAAC;IACXC,sBAAsB,CAACJ,UAAU,CAACM,UAAU,CAAC;EAC/C,CAAC;EAED,oBACEZ,KAAA,CAAAa,aAAA,CAACV,eAAe;IAACW,OAAO,EAAEV,OAAO,CAACW,GAAG,CAAC;EAAE,gBACtCf,KAAA,CAAAa,aAAA,CAACX,gBAAgB;IAACO,OAAO,EAAEE,mBAAoB;IAACK,KAAK,EAAEC,MAAM,CAACC;EAAK,gBACjElB,KAAA,CAAAa,aAAA,CAACR,SAAS;IAACc,IAAI,EAAC;EAAQ,CAAE,CACV,CACH,CAAC;AAEtB,CAAC;AAED,OAAO,MAAMC,sBAAsB,gBAAGpB,KAAK,CAACqB,IAAI,CAACb,uBAAuB,CAAC;AAEzE,MAAMS,MAAM,GAAGhB,UAAU,CAACqB,MAAM,CAAC;EAC/BJ,IAAI,EAAE;IACJK,OAAO,EAAE,CAAC;IACVC,SAAS,EAAE;EACb;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import React, { useRef, useState } from 'react';
|
|
2
|
+
import { StyleSheet, TouchableOpacity } from 'react-native';
|
|
3
|
+
import { useSelector } from 'react-redux';
|
|
4
|
+
import { useHMSHLSPlayerPlaybackState, HMSHLSPlayerPlaybackState } from '@100mslive/react-native-hms';
|
|
5
|
+
import { GestureDetector, Gesture } from 'react-native-gesture-handler';
|
|
6
|
+
import { CCIcon } from '../Icons';
|
|
7
|
+
import { useIsHLSStreamingOn } from '../hooks-sdk';
|
|
8
|
+
export const _HLSClosedCaptionControl = ({
|
|
9
|
+
playerRef,
|
|
10
|
+
onPress
|
|
11
|
+
}) => {
|
|
12
|
+
const isHLSStreamingOn = useIsHLSStreamingOn();
|
|
13
|
+
const isStreamUrlPresent = useSelector(state => {
|
|
14
|
+
var _state$hmsStates$room;
|
|
15
|
+
return !!((_state$hmsStates$room = state.hmsStates.room) !== null && _state$hmsStates$room !== void 0 && (_state$hmsStates$room = _state$hmsStates$room.hlsStreamingState.variants) !== null && _state$hmsStates$room !== void 0 && (_state$hmsStates$room = _state$hmsStates$room[0]) !== null && _state$hmsStates$room !== void 0 && _state$hmsStates$room.hlsStreamUrl);
|
|
16
|
+
});
|
|
17
|
+
let startedPlayingFirstTimeRef = useRef(false);
|
|
18
|
+
let prevPlaybackStateRef = useRef(HMSHLSPlayerPlaybackState.UNKNOWN);
|
|
19
|
+
const playbackState = useHMSHLSPlayerPlaybackState();
|
|
20
|
+
if (prevPlaybackStateRef.current === HMSHLSPlayerPlaybackState.UNKNOWN && playbackState === HMSHLSPlayerPlaybackState.PLAYING) {
|
|
21
|
+
prevPlaybackStateRef.current = playbackState;
|
|
22
|
+
startedPlayingFirstTimeRef.current = true;
|
|
23
|
+
}
|
|
24
|
+
const [isCCSupported, setIsCCSupported] = useState(false);
|
|
25
|
+
const [isCCEnabled, setIsCCEnabled] = useState(true);
|
|
26
|
+
const handleCCBtnPress = () => {
|
|
27
|
+
if (!isCCSupported || !playerRef.current) {
|
|
28
|
+
return;
|
|
29
|
+
}
|
|
30
|
+
onPress === null || onPress === void 0 || onPress();
|
|
31
|
+
if (isCCEnabled) {
|
|
32
|
+
playerRef.current.disableClosedCaption();
|
|
33
|
+
setIsCCEnabled(false);
|
|
34
|
+
} else {
|
|
35
|
+
playerRef.current.enableClosedCaption();
|
|
36
|
+
setIsCCEnabled(true);
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
React.useEffect(() => {
|
|
40
|
+
if (isHLSStreamingOn && isStreamUrlPresent && startedPlayingFirstTimeRef.current && playerRef.current) {
|
|
41
|
+
let mounted = true;
|
|
42
|
+
playerRef.current.isClosedCaptionSupported().then(supported => {
|
|
43
|
+
if (mounted) {
|
|
44
|
+
setIsCCSupported(supported);
|
|
45
|
+
}
|
|
46
|
+
}).catch(() => {});
|
|
47
|
+
playerRef.current.isClosedCaptionEnabled().then(enabled => {
|
|
48
|
+
if (mounted) {
|
|
49
|
+
setIsCCEnabled(enabled);
|
|
50
|
+
}
|
|
51
|
+
}).catch(() => {});
|
|
52
|
+
return () => {
|
|
53
|
+
mounted = false;
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
}, [isHLSStreamingOn, isStreamUrlPresent, startedPlayingFirstTimeRef.current]);
|
|
57
|
+
if (!isCCSupported) {
|
|
58
|
+
return null;
|
|
59
|
+
}
|
|
60
|
+
return /*#__PURE__*/React.createElement(GestureDetector, {
|
|
61
|
+
gesture: Gesture.Tap()
|
|
62
|
+
}, /*#__PURE__*/React.createElement(TouchableOpacity, {
|
|
63
|
+
onPress: handleCCBtnPress,
|
|
64
|
+
style: [styles.icon, styles.gap]
|
|
65
|
+
}, /*#__PURE__*/React.createElement(CCIcon, {
|
|
66
|
+
size: "medium",
|
|
67
|
+
enabled: isCCEnabled
|
|
68
|
+
})));
|
|
69
|
+
};
|
|
70
|
+
export const HLSClosedCaptionControl = /*#__PURE__*/React.memo(_HLSClosedCaptionControl);
|
|
71
|
+
const styles = StyleSheet.create({
|
|
72
|
+
detectorContainer: {
|
|
73
|
+
position: 'absolute',
|
|
74
|
+
width: '100%',
|
|
75
|
+
height: '100%',
|
|
76
|
+
zIndex: 5
|
|
77
|
+
},
|
|
78
|
+
container: {
|
|
79
|
+
flex: 1,
|
|
80
|
+
justifyContent: 'space-between'
|
|
81
|
+
},
|
|
82
|
+
controlsRow: {
|
|
83
|
+
flexDirection: 'row',
|
|
84
|
+
alignItems: 'center',
|
|
85
|
+
justifyContent: 'space-between',
|
|
86
|
+
marginHorizontal: 8
|
|
87
|
+
},
|
|
88
|
+
normalRow: {
|
|
89
|
+
flexDirection: 'row',
|
|
90
|
+
alignItems: 'center'
|
|
91
|
+
},
|
|
92
|
+
icon: {
|
|
93
|
+
padding: 4,
|
|
94
|
+
alignSelf: 'flex-start'
|
|
95
|
+
},
|
|
96
|
+
gap: {
|
|
97
|
+
marginLeft: 16
|
|
98
|
+
}
|
|
99
|
+
});
|
|
100
|
+
//# sourceMappingURL=HLSClosedCaptionControl.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","useRef","useState","StyleSheet","TouchableOpacity","useSelector","useHMSHLSPlayerPlaybackState","HMSHLSPlayerPlaybackState","GestureDetector","Gesture","CCIcon","useIsHLSStreamingOn","_HLSClosedCaptionControl","playerRef","onPress","isHLSStreamingOn","isStreamUrlPresent","state","_state$hmsStates$room","hmsStates","room","hlsStreamingState","variants","hlsStreamUrl","startedPlayingFirstTimeRef","prevPlaybackStateRef","UNKNOWN","playbackState","current","PLAYING","isCCSupported","setIsCCSupported","isCCEnabled","setIsCCEnabled","handleCCBtnPress","disableClosedCaption","enableClosedCaption","useEffect","mounted","isClosedCaptionSupported","then","supported","catch","isClosedCaptionEnabled","enabled","createElement","gesture","Tap","style","styles","icon","gap","size","HLSClosedCaptionControl","memo","create","detectorContainer","position","width","height","zIndex","container","flex","justifyContent","controlsRow","flexDirection","alignItems","marginHorizontal","normalRow","padding","alignSelf","marginLeft"],"sourceRoot":"../../../src","sources":["components/HLSClosedCaptionControl.tsx"],"mappings":"AAAA,OAAOA,KAAK,IAAIC,MAAM,EAAEC,QAAQ,QAAQ,OAAO;AAC/C,SAASC,UAAU,EAAEC,gBAAgB,QAAQ,cAAc;AAC3D,SAASC,WAAW,QAAQ,aAAa;AACzC,SACEC,4BAA4B,EAC5BC,yBAAyB,QACpB,6BAA6B;AAEpC,SAASC,eAAe,EAAEC,OAAO,QAAQ,8BAA8B;AAEvE,SAASC,MAAM,QAAQ,UAAU;AAEjC,SAASC,mBAAmB,QAAQ,cAAc;AAOlD,OAAO,MAAMC,wBAEZ,GAAGA,CAAC;EAAEC,SAAS;EAAEC;AAAQ,CAAC,KAAK;EAC9B,MAAMC,gBAAgB,GAAGJ,mBAAmB,CAAC,CAAC;EAC9C,MAAMK,kBAAkB,GAAGX,WAAW,CACnCY,KAAgB;IAAA,IAAAC,qBAAA;IAAA,OACf,CAAC,GAAAA,qBAAA,GAACD,KAAK,CAACE,SAAS,CAACC,IAAI,cAAAF,qBAAA,gBAAAA,qBAAA,GAApBA,qBAAA,CAAsBG,iBAAiB,CAACC,QAAQ,cAAAJ,qBAAA,gBAAAA,qBAAA,GAAhDA,qBAAA,CAAmD,CAAC,CAAC,cAAAA,qBAAA,eAArDA,qBAAA,CAAuDK,YAAY;EAAA,CACzE,CAAC;E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,EAAE,KAAK;IACpBC,UAAU,EAAE,QAAQ;IACpBH,cAAc,EAAE,eAAe;IAC/BI,gBAAgB,EAAE;EACpB,CAAC;EACDC,SAAS,EAAE;IACTH,aAAa,EAAE,KAAK;IACpBC,UAAU,EAAE;EACd,CAAC;EACDhB,IAAI,EAAE;IACJmB,OAAO,EAAE,CAAC;IACVC,SAAS,EAAE;EACb,CAAC;EACDnB,GAAG,EAAE;IACHoB,UAAU,EAAE;EACd;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,136 @@
|
|
|
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
|
+
import { useHLSViewsConstraints, useHMSConferencingScreenConfig, useHMSRoomStyleSheet } from '../hooks-util';
|
|
6
|
+
import { HLSChatHeaderView } from './HLSChatHeaderView';
|
|
7
|
+
import { HLSDescriptionPaneHeader, HLSDescriptionPaneHeaderHeight } from './HLSDescriptionPaneHeader';
|
|
8
|
+
import { HLSAnimatedDescriptionPane } from './HLSAnimatedDescriptionPane';
|
|
9
|
+
import { setHlsDescriptionPaneVisible } from '../redux/actions';
|
|
10
|
+
export const HLSDescriptionPane = () => {
|
|
11
|
+
const dispatch = useDispatch();
|
|
12
|
+
const paneVisible = useSelector(state => state.app.hlsDescriptionPaneVisible);
|
|
13
|
+
const hmsRoomStyles = useHMSRoomStyleSheet((theme, typography) => ({
|
|
14
|
+
wrapper: {
|
|
15
|
+
backgroundColor: theme.palette.surface_dim
|
|
16
|
+
},
|
|
17
|
+
regularSurfaceMedium: {
|
|
18
|
+
fontFamily: `${typography.font_family}-Regular`,
|
|
19
|
+
color: theme.palette.on_surface_medium
|
|
20
|
+
},
|
|
21
|
+
link: {
|
|
22
|
+
color: theme.palette.primary_bright
|
|
23
|
+
}
|
|
24
|
+
}));
|
|
25
|
+
const {
|
|
26
|
+
descriptionPaneConstraints
|
|
27
|
+
} = useHLSViewsConstraints();
|
|
28
|
+
const descriptionPaneContentHeight = descriptionPaneConstraints.height - HLSDescriptionPaneHeaderHeight;
|
|
29
|
+
const desPaneTranslationValue = useSharedValue(0);
|
|
30
|
+
const _closeDescriptionPane = () => {
|
|
31
|
+
dispatch(setHlsDescriptionPaneVisible(false));
|
|
32
|
+
};
|
|
33
|
+
const hideDescriptionPane = () => {
|
|
34
|
+
if (paneVisible) {
|
|
35
|
+
desPaneTranslationValue.value = withTiming(0, {
|
|
36
|
+
duration: 280
|
|
37
|
+
}, () => {
|
|
38
|
+
runOnJS(_closeDescriptionPane)();
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
};
|
|
42
|
+
React.useEffect(() => {
|
|
43
|
+
if (!paneVisible) {
|
|
44
|
+
return;
|
|
45
|
+
}
|
|
46
|
+
desPaneTranslationValue.value = withTiming(1, {
|
|
47
|
+
duration: 280
|
|
48
|
+
});
|
|
49
|
+
return () => {
|
|
50
|
+
cancelAnimationFrame(desPaneTranslationValue.value);
|
|
51
|
+
};
|
|
52
|
+
}, [paneVisible]);
|
|
53
|
+
const description = useHMSConferencingScreenConfig(confScreenConfig => {
|
|
54
|
+
var _confScreenConfig$ele;
|
|
55
|
+
return confScreenConfig === null || confScreenConfig === void 0 || (_confScreenConfig$ele = confScreenConfig.elements) === null || _confScreenConfig$ele === void 0 || (_confScreenConfig$ele = _confScreenConfig$ele.header) === null || _confScreenConfig$ele === void 0 ? void 0 : _confScreenConfig$ele.description;
|
|
56
|
+
});
|
|
57
|
+
const handleLinkPress = async url => {
|
|
58
|
+
const canOpen = await Linking.canOpenURL(url);
|
|
59
|
+
if (canOpen) {
|
|
60
|
+
Linking.openURL(url);
|
|
61
|
+
}
|
|
62
|
+
};
|
|
63
|
+
if (!paneVisible) {
|
|
64
|
+
return null;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
// TODO: for links to work, add query in manifest.xml
|
|
68
|
+
|
|
69
|
+
return /*#__PURE__*/React.createElement(View, {
|
|
70
|
+
style: {
|
|
71
|
+
position: 'absolute',
|
|
72
|
+
bottom: 0,
|
|
73
|
+
width: descriptionPaneConstraints.width,
|
|
74
|
+
height: descriptionPaneConstraints.height,
|
|
75
|
+
zIndex: 10
|
|
76
|
+
}
|
|
77
|
+
}, /*#__PURE__*/React.createElement(HLSDescriptionPaneHeader, {
|
|
78
|
+
close: hideDescriptionPane,
|
|
79
|
+
animatedValue: desPaneTranslationValue
|
|
80
|
+
}), /*#__PURE__*/React.createElement(View, {
|
|
81
|
+
style: {
|
|
82
|
+
flex: 1,
|
|
83
|
+
overflow: 'hidden'
|
|
84
|
+
}
|
|
85
|
+
}, /*#__PURE__*/React.createElement(HLSAnimatedDescriptionPane, {
|
|
86
|
+
height: descriptionPaneContentHeight,
|
|
87
|
+
sharedValue: desPaneTranslationValue
|
|
88
|
+
}, /*#__PURE__*/React.createElement(ScrollView, {
|
|
89
|
+
style: hmsRoomStyles.wrapper,
|
|
90
|
+
contentContainerStyle: {
|
|
91
|
+
paddingBottom: 40
|
|
92
|
+
}
|
|
93
|
+
}, /*#__PURE__*/React.createElement(HLSChatHeaderView, {
|
|
94
|
+
expanded: true
|
|
95
|
+
}), description ? /*#__PURE__*/React.createElement(Text, {
|
|
96
|
+
style: [styles.description, hmsRoomStyles.regularSurfaceMedium]
|
|
97
|
+
}, splitLinksAndContent(description, {
|
|
98
|
+
pressHandler: handleLinkPress,
|
|
99
|
+
style: hmsRoomStyles.link
|
|
100
|
+
})) : null))));
|
|
101
|
+
};
|
|
102
|
+
const styles = StyleSheet.create({
|
|
103
|
+
description: {
|
|
104
|
+
fontSize: 14,
|
|
105
|
+
lineHeight: 20,
|
|
106
|
+
marginHorizontal: 16
|
|
107
|
+
}
|
|
108
|
+
});
|
|
109
|
+
function splitLinksAndContent(text, {
|
|
110
|
+
pressHandler,
|
|
111
|
+
style
|
|
112
|
+
}) {
|
|
113
|
+
// Regular expression to find links in a string
|
|
114
|
+
const pattern = /http[s]?:\/\/\S+/g;
|
|
115
|
+
|
|
116
|
+
// Find all links in the text
|
|
117
|
+
const links = text.match(pattern) || [];
|
|
118
|
+
if (links.length <= 0) {
|
|
119
|
+
return text;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
// Split the text into an array of links and content
|
|
123
|
+
const parts = text.replace(pattern, '^<link>^').split('^');
|
|
124
|
+
return parts.map((p, i) => {
|
|
125
|
+
if (p !== '<link>') {
|
|
126
|
+
return p;
|
|
127
|
+
}
|
|
128
|
+
const link = links.pop();
|
|
129
|
+
return link ? /*#__PURE__*/React.createElement(Text, {
|
|
130
|
+
key: link + i,
|
|
131
|
+
onPress: () => pressHandler(link),
|
|
132
|
+
style: style
|
|
133
|
+
}, link) : p;
|
|
134
|
+
});
|
|
135
|
+
}
|
|
136
|
+
//# sourceMappingURL=HLSDescriptionPane.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","useDispatch","useSelector","Linking","ScrollView","StyleSheet","Text","View","runOnJS","useSharedValue","withTiming","useHLSViewsConstraints","useHMSConferencingScreenConfig","useHMSRoomStyleSheet","HLSChatHeaderView","HLSDescriptionPaneHeader","HLSDescriptionPaneHeaderHeight","HLSAnimatedDescriptionPane","setHlsDescriptionPaneVisible","HLSDescriptionPane","dispatch","paneVisible","state","app","hlsDescriptionPaneVisible","hmsRoomStyles","theme","typography","wrapper","backgroundColor","palette","surface_dim","regularSurfaceMedium","fontFamily","font_family","color","on_surface_medium","link","primary_bright","descriptionPaneConstraints","descriptionPaneContentHeight","height","desPaneTranslationValue","_closeDescriptionPane","hideDescriptionPane","value","duration","useEffect","cancelAnimationFrame","description","confScreenConfig","_confScreenConfig$ele","elements","header","handleLinkPress","url","canOpen","canOpenURL","openURL","createElement","style","position","bottom","width","zIndex","close","animatedValue","flex","overflow","sharedValue","contentContainerStyle","paddingBottom","expanded","styles","splitLinksAndContent","pressHandler","create","fontSize","lineHeight","marginHorizontal","text","pattern","links","match","length","parts","replace","split","map","p","i","pop","key","onPress"],"sourceRoot":"../../../src","sources":["components/HLSDescriptionPane.tsx"],"mappings":"AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,SAASC,WAAW,EAAEC,WAAW,QAAQ,aAAa;AACtD,SAASC,OAAO,EAAEC,UAAU,EAAEC,UAAU,EAAEC,IAAI,EAAEC,IAAI,QAAQ,cAAc;AAC1E,SAASC,OAAO,EAAEC,cAAc,EAAEC,UAAU,QAAQ,yBAAyB;AAE7E,SACEC,sBAAsB,EACtBC,8BAA8B,EAC9BC,oBAAoB,QACf,eAAe;AACtB,SAASC,iBAAiB,QAAQ,qBAAqB;AACvD,SACEC,wBAAwB,EACxBC,8BAA8B,QACzB,4BAA4B;AACnC,SAASC,0BAA0B,QAAQ,8BAA8B;AACzE,SAASC,4BAA4B,QAAQ,kBAAkB;AAK/D,OAAO,MAAMC,kBAAqD,GAAGA,CAAA,KAAM;EACzE,MAAMC,QAAQ,GAAGnB,WAAW,CAAC,CAAC;EAC9B,MAAMoB,WAAW,GAAGnB,WAAW,CAC5BoB,KAAgB,IAAKA,KAAK,CAACC,GAAG,CAACC,yBAClC,CAAC;EAED,MAAMC,aAAa,GAAGZ,oBAAoB,CAAC,CAACa,KAAK,EAAEC,UAAU,MAAM;IACjEC,OAAO,EAAE;MACPC,eAAe,EAAEH,KAAK,CAACI,OAAO,CAACC;IACjC,CAAC;IACDC,oBAAoB,EAAE;MACpBC,UAAU,EAAG,GAAEN,UAAU,CAACO,WAAY,UAAS;MAC/CC,KAAK,EAAET,KAAK,CAACI,OAAO,CAACM;IACvB,CAAC;IACDC,IAAI,EAAE;MACJF,KAAK,EAAET,KAAK,CAACI,OAAO,CAACQ;IACvB;EACF,CAAC,CAAC,CAAC;EAEH,MAAM;IAAEC;EAA2B,CAAC,GAAG5B,sBAAsB,CAAC,CAAC;EAE/D,MAAM6B,4BAA4B,GAChCD,0BAA0B,CAACE,M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AC/B3B,WAAW,EAAE;IACX4B,QAAQ,EAAE,EAAE;IACZC,UAAU,EAAE,EAAE;IACdC,gBAAgB,EAAE;EACpB;AACF,CAAC,CAAC;AAEF,SAASL,oBAAoBA,CAC3BM,IAAY,EACZ;EAAEL,YAAY;EAAEf;AAAW,CAAC,EACc;EAC1C;EACA,MAAMqB,OAAO,GAAG,mBAAmB;;EAEnC;EACA,MAAMC,KAAK,GAAGF,IAAI,CAACG,KAAK,CAACF,OAAO,CAAC,IAAI,EAAE;EAEvC,IAAIC,KAAK,CAACE,MAAM,IAAI,CAAC,EAAE;IACrB,OAAOJ,IAAI;EACb;;EAEA;EACA,MAAMK,KAAK,GAAGL,IAAI,CAACM,OAAO,CAACL,OAAO,EAAE,UAAU,CAAC,CAACM,KAAK,CAAC,GAAG,CAAC;EAE1D,OAAOF,KAAK,CAACG,GAAG,CAAC,CAACC,CAAC,EAAEC,CAAC,KAAK;IACzB,IAAID,CAAC,KAAK,QAAQ,EAAE;MAClB,OAAOA,CAAC;IACV;IACA,MAAMpD,IAAI,GAAG6C,KAAK,CAACS,GAAG,CAAC,CAAC;IACxB,OAAOtD,IAAI,gBACTrC,KAAA,CAAA2D,aAAA,CAACrD,IAAI;MAACsF,GAAG,EAAEvD,IAAI,GAAGqD,CAAE;MAACG,OAAO,EAAEA,CAAA,KAAMlB,YAAY,CAACtC,IAAI,CAAE;MAACuB,KAAK,EAAEA;IAAM,GAClEvB,IACG,CAAC,GAEPoD,CACD;EACH,CAAC,CAAC;AACJ","ignoreList":[]}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { StyleSheet, Text, TouchableOpacity, View } from 'react-native';
|
|
3
|
+
import { useHMSRoomStyleSheet } from '../hooks-util';
|
|
4
|
+
import { ChevronIcon } from '../Icons';
|
|
5
|
+
import Animated, { useAnimatedStyle, interpolate } from 'react-native-reanimated';
|
|
6
|
+
export const HLSDescriptionPaneHeaderHeight = 16 * 2 + 24; // vertical padding + content height
|
|
7
|
+
|
|
8
|
+
export const HLSDescriptionPaneHeader = ({
|
|
9
|
+
close,
|
|
10
|
+
animatedValue
|
|
11
|
+
}) => {
|
|
12
|
+
const hmsRoomStyles = useHMSRoomStyleSheet((theme, typography) => ({
|
|
13
|
+
container: {
|
|
14
|
+
backgroundColor: theme.palette.surface_dim,
|
|
15
|
+
borderBottomColor: theme.palette.border_bright
|
|
16
|
+
},
|
|
17
|
+
semiBoldSurfaceHigh: {
|
|
18
|
+
fontFamily: `${typography.font_family}-SemiBold`,
|
|
19
|
+
color: theme.palette.on_surface_high
|
|
20
|
+
}
|
|
21
|
+
}));
|
|
22
|
+
const animatedChevronStyles = useAnimatedStyle(() => ({
|
|
23
|
+
transform: [{
|
|
24
|
+
rotateZ: `${interpolate(animatedValue.value, [0, 1], [0, -180])}deg`
|
|
25
|
+
}]
|
|
26
|
+
}), []);
|
|
27
|
+
const closeHlsDescriptionPane = () => {
|
|
28
|
+
close();
|
|
29
|
+
};
|
|
30
|
+
return /*#__PURE__*/React.createElement(View, {
|
|
31
|
+
style: [styles.container, hmsRoomStyles.container]
|
|
32
|
+
}, /*#__PURE__*/React.createElement(Text, {
|
|
33
|
+
style: [styles.title, hmsRoomStyles.semiBoldSurfaceHigh]
|
|
34
|
+
}, "About Session"), /*#__PURE__*/React.createElement(TouchableOpacity, {
|
|
35
|
+
hitSlop: {
|
|
36
|
+
bottom: 12,
|
|
37
|
+
left: 12,
|
|
38
|
+
top: 12,
|
|
39
|
+
right: 12
|
|
40
|
+
},
|
|
41
|
+
onPress: closeHlsDescriptionPane
|
|
42
|
+
}, /*#__PURE__*/React.createElement(Animated.View, {
|
|
43
|
+
style: animatedChevronStyles
|
|
44
|
+
}, /*#__PURE__*/React.createElement(ChevronIcon, {
|
|
45
|
+
direction: "down"
|
|
46
|
+
}))));
|
|
47
|
+
};
|
|
48
|
+
const styles = StyleSheet.create({
|
|
49
|
+
container: {
|
|
50
|
+
padding: 16,
|
|
51
|
+
flexDirection: 'row',
|
|
52
|
+
alignItems: 'center',
|
|
53
|
+
justifyContent: 'space-between',
|
|
54
|
+
borderBottomWidth: 1
|
|
55
|
+
},
|
|
56
|
+
title: {
|
|
57
|
+
fontSize: 16,
|
|
58
|
+
lineHeight: 24
|
|
59
|
+
}
|
|
60
|
+
});
|
|
61
|
+
//# sourceMappingURL=HLSDescriptionPaneHeader.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","StyleSheet","Text","TouchableOpacity","View","useHMSRoomStyleSheet","ChevronIcon","Animated","useAnimatedStyle","interpolate","HLSDescriptionPaneHeaderHeight","HLSDescriptionPaneHeader","close","animatedValue","hmsRoomStyles","theme","typography","container","backgroundColor","palette","surface_dim","borderBottomColor","border_bright","semiBoldSurfaceHigh","fontFamily","font_family","color","on_surface_high","animatedChevronStyles","transform","rotateZ","value","closeHlsDescriptionPane","createElement","style","styles","title","hitSlop","bottom","left","top","right","onPress","direction","create","padding","flexDirection","alignItems","justifyContent","borderBottomWidth","fontSize","lineHeight"],"sourceRoot":"../../../src","sources":["components/HLSDescriptionPaneHeader.tsx"],"mappings":"AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,SAASC,UAAU,EAAEC,IAAI,EAAEC,gBAAgB,EAAEC,IAAI,QAAQ,cAAc;AAEvE,SAASC,oBAAoB,QAAQ,eAAe;AACpD,SAASC,WAAW,QAAQ,UAAU;AACtC,OAAOC,QAAQ,IACbC,gBAAgB,EAEhBC,WAAW,QACN,yBAAyB;AAOhC,OAAO,MAAMC,8BAA8B,GAAG,EAAE,GAAG,CAAC,GAAG,EAAE,CAAC,CAAC;;AAE3D,OAAO,MAAMC,wBAEZ,GAAGA,CAAC;EAAEC,KAAK;EAAEC;AAAc,CAAC,KAAK;EAChC,MAAMC,aAAa,GAAGT,oBAAoB,CAAC,CAACU,KAAK,EAAEC,UAAU,MAAM;IACjEC,SAAS,EAAE;MACTC,eAAe,EAAEH,KAAK,CAACI,OAAO,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MAAM,GAAGlC,UAAU,CAAC2C,MAAM,CAAC;EAC/B3B,SAAS,EAAE;IACT4B,OAAO,EAAE,EAAE;IACXC,aAAa,EAAE,KAAK;IACpBC,UAAU,EAAE,QAAQ;IACpBC,cAAc,EAAE,eAAe;IAC/BC,iBAAiB,EAAE;EACrB,CAAC;EACDb,KAAK,EAAE;IACLc,QAAQ,EAAE,EAAE;IACZC,UAAU,EAAE;EACd;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Platform, StyleSheet, Text } from 'react-native';
|
|
3
|
+
import { HMSHLSPlaylistType, useHMSHLSPlayerStat, useIsHLSStreamLive } from '@100mslive/react-native-hms';
|
|
4
|
+
import { useSelector } from 'react-redux';
|
|
5
|
+
import { useHMSRoomStyle } from '../hooks-util';
|
|
6
|
+
import { useIsHLSStreamingOn } from '../hooks-sdk';
|
|
7
|
+
export const _HLSDistanceFromLive = () => {
|
|
8
|
+
const isHLSStreamingOn = useIsHLSStreamingOn();
|
|
9
|
+
const isDVRStream = useSelector(state => {
|
|
10
|
+
var _state$hmsStates$room;
|
|
11
|
+
return ((_state$hmsStates$room = state.hmsStates.room) === null || _state$hmsStates$room === void 0 || (_state$hmsStates$room = _state$hmsStates$room.hlsStreamingState.variants) === null || _state$hmsStates$room === void 0 || (_state$hmsStates$room = _state$hmsStates$room[0]) === null || _state$hmsStates$room === void 0 ? void 0 : _state$hmsStates$room.playlistType) === HMSHLSPlaylistType.DVR;
|
|
12
|
+
});
|
|
13
|
+
const isStreamLive = useIsHLSStreamLive();
|
|
14
|
+
if (!isHLSStreamingOn || !isDVRStream || isStreamLive) return null;
|
|
15
|
+
return /*#__PURE__*/React.createElement(HLSDistanceFromLiveText, null);
|
|
16
|
+
};
|
|
17
|
+
export const HLSDistanceFromLiveText = /*#__PURE__*/React.memo(() => {
|
|
18
|
+
const distanceFromLiveEdge = useHMSHLSPlayerStat('distanceFromLive');
|
|
19
|
+
const textStyle = useHMSRoomStyle((_, typography) => ({
|
|
20
|
+
fontFamily: `${typography.font_family}-Regular`,
|
|
21
|
+
color: '#ffffff'
|
|
22
|
+
}));
|
|
23
|
+
const hhmmss = msToHMS(distanceFromLiveEdge - Platform.select({
|
|
24
|
+
default: 10000,
|
|
25
|
+
ios: 1000
|
|
26
|
+
}));
|
|
27
|
+
return /*#__PURE__*/React.createElement(Text, {
|
|
28
|
+
style: [styles.text, textStyle]
|
|
29
|
+
}, "-", hhmmss);
|
|
30
|
+
});
|
|
31
|
+
export const HLSDistanceFromLive = /*#__PURE__*/React.memo(_HLSDistanceFromLive);
|
|
32
|
+
const styles = StyleSheet.create({
|
|
33
|
+
text: {
|
|
34
|
+
fontSize: 16,
|
|
35
|
+
lineHeight: 24,
|
|
36
|
+
letterSpacing: 0.5,
|
|
37
|
+
marginLeft: 8
|
|
38
|
+
}
|
|
39
|
+
});
|
|
40
|
+
function msToHMS(ms) {
|
|
41
|
+
const seconds = Math.floor(ms / 1000 % 60);
|
|
42
|
+
const minutes = Math.floor(ms / 1000 / 60 % 60);
|
|
43
|
+
const hours = Math.floor(ms / 1000 / 3600 % 24);
|
|
44
|
+
const humanized = [minutes > 0 ? minutes.toString().padStart(2, '0') : '0', seconds.toString().padStart(2, '0')];
|
|
45
|
+
if (hours > 0) humanized.unshift(hours.toString().padStart(2, '0'));
|
|
46
|
+
return humanized.join(':');
|
|
47
|
+
}
|
|
48
|
+
//# sourceMappingURL=HLSDistanceFromLive.js.map
|