@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,104 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { View, StyleSheet, TouchableOpacity, Text } from 'react-native';
|
|
3
|
+
import { useSelector } from 'react-redux';
|
|
4
|
+
import {
|
|
5
|
+
HMSHLSPlaylistType,
|
|
6
|
+
useIsHLSStreamLive,
|
|
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 { useHMSRoomStyleSheet } from '../hooks-util';
|
|
12
|
+
import { useIsHLSStreamingOn } from '../hooks-sdk';
|
|
13
|
+
import type { RootState } from '../redux';
|
|
14
|
+
|
|
15
|
+
interface HLSGoLiveControlProps {
|
|
16
|
+
playerRef: React.RefObject<React.ElementRef<typeof HMSHLSPlayer>>;
|
|
17
|
+
onPress?: () => void;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export const _HLSGoLiveControl: React.FC<HLSGoLiveControlProps> = ({
|
|
21
|
+
playerRef,
|
|
22
|
+
onPress,
|
|
23
|
+
}) => {
|
|
24
|
+
const isHLSStreamingOn = useIsHLSStreamingOn();
|
|
25
|
+
const isDVRStream = useSelector(
|
|
26
|
+
(state: RootState) =>
|
|
27
|
+
state.hmsStates.room?.hlsStreamingState.variants?.[0]?.playlistType ===
|
|
28
|
+
HMSHLSPlaylistType.DVR
|
|
29
|
+
);
|
|
30
|
+
const isStreamLive = useIsHLSStreamLive();
|
|
31
|
+
|
|
32
|
+
const handleGoLivePress = () => {
|
|
33
|
+
onPress?.();
|
|
34
|
+
playerRef.current?.seekToLivePosition();
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
const hmsRoomStyles = useHMSRoomStyleSheet(
|
|
38
|
+
(theme, typography) => ({
|
|
39
|
+
semiBoldSurfaceHigh: {
|
|
40
|
+
fontFamily: `${typography.font_family}-SemiBold`,
|
|
41
|
+
color: theme.palette.on_surface_high,
|
|
42
|
+
},
|
|
43
|
+
semiBoldSurfaceMedium: {
|
|
44
|
+
fontFamily: `${typography.font_family}-SemiBold`,
|
|
45
|
+
color: theme.palette.on_surface_medium,
|
|
46
|
+
},
|
|
47
|
+
liveIndicatorDot: {
|
|
48
|
+
backgroundColor: theme.palette.alert_error_default,
|
|
49
|
+
},
|
|
50
|
+
notLiveIndicatorDot: {
|
|
51
|
+
backgroundColor: theme.palette.on_surface_low,
|
|
52
|
+
},
|
|
53
|
+
}),
|
|
54
|
+
[]
|
|
55
|
+
);
|
|
56
|
+
|
|
57
|
+
if (!isHLSStreamingOn || !isDVRStream) return null;
|
|
58
|
+
|
|
59
|
+
return (
|
|
60
|
+
<GestureDetector gesture={Gesture.Tap()}>
|
|
61
|
+
<TouchableOpacity onPress={handleGoLivePress} style={styles.liveButton}>
|
|
62
|
+
<View
|
|
63
|
+
style={[
|
|
64
|
+
styles.liveIndicatorDot,
|
|
65
|
+
isStreamLive
|
|
66
|
+
? hmsRoomStyles.liveIndicatorDot
|
|
67
|
+
: hmsRoomStyles.notLiveIndicatorDot,
|
|
68
|
+
]}
|
|
69
|
+
/>
|
|
70
|
+
<Text
|
|
71
|
+
style={[
|
|
72
|
+
styles.liveText,
|
|
73
|
+
isStreamLive
|
|
74
|
+
? hmsRoomStyles.semiBoldSurfaceHigh
|
|
75
|
+
: hmsRoomStyles.semiBoldSurfaceMedium,
|
|
76
|
+
]}
|
|
77
|
+
>
|
|
78
|
+
{isStreamLive ? 'LIVE' : 'GO LIVE'}
|
|
79
|
+
</Text>
|
|
80
|
+
</TouchableOpacity>
|
|
81
|
+
</GestureDetector>
|
|
82
|
+
);
|
|
83
|
+
};
|
|
84
|
+
|
|
85
|
+
export const HLSGoLiveControl = React.memo(_HLSGoLiveControl);
|
|
86
|
+
|
|
87
|
+
const styles = StyleSheet.create({
|
|
88
|
+
liveButton: {
|
|
89
|
+
padding: 4,
|
|
90
|
+
alignItems: 'center',
|
|
91
|
+
flexDirection: 'row',
|
|
92
|
+
},
|
|
93
|
+
liveIndicatorDot: {
|
|
94
|
+
width: 8,
|
|
95
|
+
height: 8,
|
|
96
|
+
borderRadius: 4,
|
|
97
|
+
marginRight: 8,
|
|
98
|
+
},
|
|
99
|
+
liveText: {
|
|
100
|
+
fontSize: 16,
|
|
101
|
+
lineHeight: 24,
|
|
102
|
+
letterSpacing: 0.5,
|
|
103
|
+
},
|
|
104
|
+
});
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { View } from 'react-native';
|
|
3
|
+
|
|
4
|
+
import {
|
|
5
|
+
useHMSConferencingScreenConfig,
|
|
6
|
+
useHMSLayoutConfig,
|
|
7
|
+
} from '../hooks-util';
|
|
8
|
+
import { HMSManageRaiseHand } from './HMSManageRaiseHand';
|
|
9
|
+
import {
|
|
10
|
+
useCanPublishAudio,
|
|
11
|
+
useCanPublishScreen,
|
|
12
|
+
useCanPublishVideo,
|
|
13
|
+
} from '../hooks-sdk';
|
|
14
|
+
|
|
15
|
+
export const HLSHandRaiseButton = () => {
|
|
16
|
+
const canPublishAudio = useCanPublishAudio();
|
|
17
|
+
const canPublishVideo = useCanPublishVideo();
|
|
18
|
+
const canPublishScreen = useCanPublishScreen();
|
|
19
|
+
|
|
20
|
+
const canRaiseHand = useHMSConferencingScreenConfig(
|
|
21
|
+
(confScreenConfig) => !!confScreenConfig?.elements?.hand_raise
|
|
22
|
+
);
|
|
23
|
+
const isOnStage = useHMSLayoutConfig((layoutConfig) => {
|
|
24
|
+
return !!layoutConfig?.screens?.conferencing?.default?.elements
|
|
25
|
+
?.on_stage_exp;
|
|
26
|
+
});
|
|
27
|
+
|
|
28
|
+
const isViewer = !(canPublishAudio || canPublishVideo || canPublishScreen);
|
|
29
|
+
|
|
30
|
+
const canShowHandRaiseInFooter = canRaiseHand && !isOnStage && isViewer;
|
|
31
|
+
|
|
32
|
+
if (!canShowHandRaiseInFooter) {
|
|
33
|
+
return null;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
return (
|
|
37
|
+
<View style={{ marginLeft: 12 }}>
|
|
38
|
+
<HMSManageRaiseHand />
|
|
39
|
+
</View>
|
|
40
|
+
);
|
|
41
|
+
};
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { StyleSheet, View } from 'react-native';
|
|
3
|
+
import { useSelector } from 'react-redux';
|
|
4
|
+
import { useSafeAreaInsets } from 'react-native-safe-area-context';
|
|
5
|
+
|
|
6
|
+
import {
|
|
7
|
+
useHLSViewsConstraints,
|
|
8
|
+
useHMSChatState,
|
|
9
|
+
useHMSRoomStyleSheet,
|
|
10
|
+
useIsAllowedToSendMessage,
|
|
11
|
+
useIsLocalPeerBlockedFromChat,
|
|
12
|
+
} from '../hooks-util';
|
|
13
|
+
import { ChatPaused } from './Chat/ChatPaused';
|
|
14
|
+
import { PeerBlockedFromChat } from './Chat/PeerBlockedFromChat';
|
|
15
|
+
import { ChatFilterBottomSheetOpener } from './Chat/ChatFilterBottomSheetOpener';
|
|
16
|
+
import { HMSSendMessageInput } from './HMSSendMessageInput';
|
|
17
|
+
import type { RootState } from '../redux';
|
|
18
|
+
import { ChatFilterBottomSheet } from './Chat/ChatFilterBottomSheet';
|
|
19
|
+
import { HMSKeyboardAvoidingView } from './HMSKeyboardAvoidingView';
|
|
20
|
+
|
|
21
|
+
export const HLSManageChatTextInput = () => {
|
|
22
|
+
const { chatState } = useHMSChatState();
|
|
23
|
+
const isAllowedToSendMessage = useIsAllowedToSendMessage();
|
|
24
|
+
const isChatRecipientSelected = useSelector(
|
|
25
|
+
(state: RootState) => state.chatWindow.sendTo !== null
|
|
26
|
+
);
|
|
27
|
+
const isLocalPeerBlockedFromChat = useIsLocalPeerBlockedFromChat();
|
|
28
|
+
|
|
29
|
+
const hmsRoomStyles = useHMSRoomStyleSheet((theme) => ({
|
|
30
|
+
input: {
|
|
31
|
+
backgroundColor: theme.palette.surface_default,
|
|
32
|
+
borderColor: theme.palette.surface_default,
|
|
33
|
+
},
|
|
34
|
+
}));
|
|
35
|
+
|
|
36
|
+
const { chatWrapperConstraints } = useHLSViewsConstraints();
|
|
37
|
+
const { bottom: bottomInset } = useSafeAreaInsets();
|
|
38
|
+
|
|
39
|
+
const keyboardAvoidingStyles = React.useMemo(
|
|
40
|
+
() => ({
|
|
41
|
+
active: { width: chatWrapperConstraints.width - 32 },
|
|
42
|
+
inactive: { width: '100%' },
|
|
43
|
+
}),
|
|
44
|
+
[chatWrapperConstraints]
|
|
45
|
+
);
|
|
46
|
+
|
|
47
|
+
if (isLocalPeerBlockedFromChat) {
|
|
48
|
+
return <PeerBlockedFromChat style={styles.shrink} />;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
if (chatState.enabled) {
|
|
52
|
+
return (
|
|
53
|
+
<>
|
|
54
|
+
{/* INFO: Chat action button UI might be broken,
|
|
55
|
+
but hls-viewer might not have permission to take action */}
|
|
56
|
+
<View style={styles.grow}>
|
|
57
|
+
<ChatFilterBottomSheetOpener useFilterModal={true} />
|
|
58
|
+
|
|
59
|
+
{isAllowedToSendMessage && isChatRecipientSelected ? (
|
|
60
|
+
<HMSKeyboardAvoidingView
|
|
61
|
+
bottomOffset={bottomInset}
|
|
62
|
+
styleWhenActive={keyboardAvoidingStyles.active}
|
|
63
|
+
styleWhenInactive={keyboardAvoidingStyles.inactive}
|
|
64
|
+
>
|
|
65
|
+
<HMSSendMessageInput
|
|
66
|
+
containerStyle={[styles.input, hmsRoomStyles.input]}
|
|
67
|
+
/>
|
|
68
|
+
</HMSKeyboardAvoidingView>
|
|
69
|
+
) : null}
|
|
70
|
+
</View>
|
|
71
|
+
|
|
72
|
+
<ChatFilterBottomSheet />
|
|
73
|
+
</>
|
|
74
|
+
);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
if (isAllowedToSendMessage) {
|
|
78
|
+
return <ChatPaused style={styles.shrink} />;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
return <View style={styles.grow} />;
|
|
82
|
+
};
|
|
83
|
+
|
|
84
|
+
const styles = StyleSheet.create({
|
|
85
|
+
input: {
|
|
86
|
+
flex: 0,
|
|
87
|
+
height: 40,
|
|
88
|
+
marginHorizontal: 0,
|
|
89
|
+
marginTop: 0,
|
|
90
|
+
marginBottom: 0,
|
|
91
|
+
},
|
|
92
|
+
shrink: {
|
|
93
|
+
flexShrink: 1,
|
|
94
|
+
},
|
|
95
|
+
grow: {
|
|
96
|
+
flexGrow: 1,
|
|
97
|
+
},
|
|
98
|
+
});
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { StyleSheet, View } from 'react-native';
|
|
3
|
+
import { useSafeAreaInsets } from 'react-native-safe-area-context';
|
|
4
|
+
|
|
5
|
+
import { HMSNotifications } from './HMSNotifications';
|
|
6
|
+
|
|
7
|
+
const _HLSNotifications = () => {
|
|
8
|
+
const { bottom: bottomInset } = useSafeAreaInsets();
|
|
9
|
+
|
|
10
|
+
return (
|
|
11
|
+
<View
|
|
12
|
+
style={[
|
|
13
|
+
styles.container,
|
|
14
|
+
{
|
|
15
|
+
bottom: bottomInset + 90,
|
|
16
|
+
},
|
|
17
|
+
]}
|
|
18
|
+
>
|
|
19
|
+
<HMSNotifications />
|
|
20
|
+
</View>
|
|
21
|
+
);
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
export const HLSNotifications = React.memo(_HLSNotifications);
|
|
25
|
+
|
|
26
|
+
const styles = StyleSheet.create({
|
|
27
|
+
container: {
|
|
28
|
+
position: 'absolute',
|
|
29
|
+
width: '100%',
|
|
30
|
+
bottom: 0,
|
|
31
|
+
zIndex: 1,
|
|
32
|
+
},
|
|
33
|
+
});
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { HMSHLSPlaylistType } from '@100mslive/react-native-hms';
|
|
2
|
+
import type { HMSHLSPlayer } from '@100mslive/react-native-hms';
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
import { StyleSheet, TouchableOpacity, View } from 'react-native';
|
|
5
|
+
import { useSelector } from 'react-redux';
|
|
6
|
+
import { GestureDetector, Gesture } from 'react-native-gesture-handler';
|
|
7
|
+
|
|
8
|
+
import { useIsHLSStreamingOn } from '../hooks-sdk';
|
|
9
|
+
import type { RootState } from '../redux';
|
|
10
|
+
import { PauseIcon, PlayIcon } from '../Icons';
|
|
11
|
+
import { useHLSStreamResumePause } from '../hooks-util';
|
|
12
|
+
|
|
13
|
+
export interface HLSPlayPauseControlProps {
|
|
14
|
+
playerRef: React.RefObject<React.ElementRef<typeof HMSHLSPlayer>>;
|
|
15
|
+
onPress?: () => void;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
const _HLSPlayPauseControl: React.FC<HLSPlayPauseControlProps> = ({
|
|
19
|
+
playerRef,
|
|
20
|
+
onPress,
|
|
21
|
+
}) => {
|
|
22
|
+
const isHLSStreamingOn = useIsHLSStreamingOn();
|
|
23
|
+
const isDVRStream = useSelector((state: RootState) => {
|
|
24
|
+
return (
|
|
25
|
+
state.hmsStates.room?.hlsStreamingState.variants?.[0]?.playlistType ===
|
|
26
|
+
HMSHLSPlaylistType.DVR
|
|
27
|
+
);
|
|
28
|
+
});
|
|
29
|
+
|
|
30
|
+
const { isPaused, pauseStream, resumeStream } =
|
|
31
|
+
useHLSStreamResumePause(playerRef);
|
|
32
|
+
|
|
33
|
+
const togglePlayPause = () => {
|
|
34
|
+
onPress?.();
|
|
35
|
+
if (isPaused) {
|
|
36
|
+
resumeStream();
|
|
37
|
+
} else {
|
|
38
|
+
pauseStream();
|
|
39
|
+
}
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
if (!isHLSStreamingOn || !isDVRStream) return null;
|
|
43
|
+
|
|
44
|
+
return (
|
|
45
|
+
<GestureDetector gesture={Gesture.Tap()}>
|
|
46
|
+
<TouchableOpacity
|
|
47
|
+
onPress={togglePlayPause}
|
|
48
|
+
style={{ alignSelf: 'center' }}
|
|
49
|
+
>
|
|
50
|
+
<View style={styles.container}>
|
|
51
|
+
{isPaused ? <PlayIcon /> : <PauseIcon />}
|
|
52
|
+
</View>
|
|
53
|
+
</TouchableOpacity>
|
|
54
|
+
</GestureDetector>
|
|
55
|
+
);
|
|
56
|
+
};
|
|
57
|
+
|
|
58
|
+
export const HLSPlayPauseControl = React.memo(_HLSPlayPauseControl);
|
|
59
|
+
|
|
60
|
+
const styles = StyleSheet.create({
|
|
61
|
+
container: {
|
|
62
|
+
width: 64,
|
|
63
|
+
height: 64,
|
|
64
|
+
borderRadius: 32,
|
|
65
|
+
alignItems: 'center',
|
|
66
|
+
justifyContent: 'center',
|
|
67
|
+
backgroundColor: 'rgba(0, 0, 0, 0.6)',
|
|
68
|
+
},
|
|
69
|
+
});
|
|
@@ -0,0 +1,264 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { useSelector } from 'react-redux';
|
|
3
|
+
import {
|
|
4
|
+
View,
|
|
5
|
+
Text,
|
|
6
|
+
StyleSheet,
|
|
7
|
+
Platform,
|
|
8
|
+
ActivityIndicator,
|
|
9
|
+
} from 'react-native';
|
|
10
|
+
import {
|
|
11
|
+
HMSHLSPlayer,
|
|
12
|
+
HMSHLSPlayerPlaybackState,
|
|
13
|
+
useHMSHLSPlayerPlaybackState,
|
|
14
|
+
useHMSHLSPlayerSubtitles,
|
|
15
|
+
} from '@100mslive/react-native-hms';
|
|
16
|
+
|
|
17
|
+
import type { RootState } from '../redux';
|
|
18
|
+
// import { changeShowHLSStats } from '../redux/actions';
|
|
19
|
+
// import { HLSPlayerStatsView } from './HLSPlayerStatsView';
|
|
20
|
+
import { HLSPlayerEmoticons } from './HLSPlayerEmoticons';
|
|
21
|
+
import { COLORS, hexToRgbA } from '../utils/theme';
|
|
22
|
+
import { HMSHLSNotStarted } from './HMSHLSNotStarted';
|
|
23
|
+
import { CrossCircleIcon } from '../Icons';
|
|
24
|
+
import {
|
|
25
|
+
useHLSPlayerConstraints,
|
|
26
|
+
useHLSViewsConstraints,
|
|
27
|
+
useHMSRoomColorPalette,
|
|
28
|
+
useHMSRoomStyleSheet,
|
|
29
|
+
} from '../hooks-util';
|
|
30
|
+
import { useIsHLSStreamingOn } from '../hooks-sdk';
|
|
31
|
+
import { HMSPinchGesture } from './PeerVideoTile/HMSPinchGesture';
|
|
32
|
+
|
|
33
|
+
export interface HLSPlayerProps {}
|
|
34
|
+
|
|
35
|
+
export const _HLSPlayer = React.forwardRef<
|
|
36
|
+
React.ElementRef<typeof HMSHLSPlayer>,
|
|
37
|
+
HLSPlayerProps
|
|
38
|
+
>((_props, hlsPlayerRef) => {
|
|
39
|
+
// const dispatch = useDispatch();
|
|
40
|
+
const isHLSStreaming = useIsHLSStreamingOn();
|
|
41
|
+
const isStreamUrlPresent = useSelector(
|
|
42
|
+
(state: RootState) =>
|
|
43
|
+
!!state.hmsStates.room?.hlsStreamingState.variants?.[0]?.hlsStreamUrl
|
|
44
|
+
);
|
|
45
|
+
// const showHLSStats = useSelector(
|
|
46
|
+
// (state: RootState) => state.app.joinConfig.showHLSStats
|
|
47
|
+
// );
|
|
48
|
+
// const showCustomHLSPlayerControls = useSelector(
|
|
49
|
+
// (state: RootState) => state.app.joinConfig.showCustomHLSPlayerControls
|
|
50
|
+
// );
|
|
51
|
+
const enableHLSPlayerControls = useSelector(
|
|
52
|
+
(state: RootState) => state.app.joinConfig.enableHLSPlayerControls
|
|
53
|
+
);
|
|
54
|
+
|
|
55
|
+
// const handleClosePress = () => {
|
|
56
|
+
// dispatch(changeShowHLSStats(false));
|
|
57
|
+
// };
|
|
58
|
+
|
|
59
|
+
const hlsPlayerConstraints = useHLSPlayerConstraints();
|
|
60
|
+
const { playerWrapperConstraints } = useHLSViewsConstraints();
|
|
61
|
+
const [playerKey, setPlayerKey] = React.useState(1);
|
|
62
|
+
|
|
63
|
+
const prevReconnectingRef = React.useRef<null | boolean>(null);
|
|
64
|
+
const reconnecting = useSelector(
|
|
65
|
+
(state: RootState) => state.hmsStates.reconnecting
|
|
66
|
+
);
|
|
67
|
+
|
|
68
|
+
const hlsPlayerPlaybackState = useHMSHLSPlayerPlaybackState();
|
|
69
|
+
|
|
70
|
+
const subtitles = useHMSHLSPlayerSubtitles();
|
|
71
|
+
|
|
72
|
+
const isPlaybackFailed =
|
|
73
|
+
hlsPlayerPlaybackState === HMSHLSPlayerPlaybackState.FAILED;
|
|
74
|
+
|
|
75
|
+
const isPlayerBuffering =
|
|
76
|
+
hlsPlayerPlaybackState === HMSHLSPlayerPlaybackState.BUFFERING;
|
|
77
|
+
|
|
78
|
+
React.useEffect(() => {
|
|
79
|
+
const prevReconnecting = prevReconnectingRef.current;
|
|
80
|
+
|
|
81
|
+
if (
|
|
82
|
+
Platform.OS === 'android' &&
|
|
83
|
+
prevReconnecting && // previously were in reconnection state
|
|
84
|
+
reconnecting === false && // now in reconnected state
|
|
85
|
+
isPlaybackFailed // and player playback is in failed state
|
|
86
|
+
) {
|
|
87
|
+
// Recreate the HLS PLayer instance
|
|
88
|
+
setPlayerKey((prevKey) => (prevKey += 1));
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
prevReconnectingRef.current = reconnecting;
|
|
92
|
+
}, [reconnecting, isPlaybackFailed]);
|
|
93
|
+
|
|
94
|
+
const hmsRoomStyles = useHMSRoomStyleSheet((theme, typography) => ({
|
|
95
|
+
failedContainer: {
|
|
96
|
+
backgroundColor: theme.palette.background_dim
|
|
97
|
+
? hexToRgbA(theme.palette.background_dim, 0.7)
|
|
98
|
+
: COLORS.LOADING_BACKDROP,
|
|
99
|
+
},
|
|
100
|
+
failedText: {
|
|
101
|
+
color: theme.palette.on_surface_high,
|
|
102
|
+
fontFamily: `${typography.font_family}-Regular`,
|
|
103
|
+
},
|
|
104
|
+
warningText: {
|
|
105
|
+
color: theme.palette.alert_warning,
|
|
106
|
+
fontFamily: `${typography.font_family}-SemiBold`,
|
|
107
|
+
},
|
|
108
|
+
semiboldWhite: {
|
|
109
|
+
fontFamily: `${typography.font_family}-SemiBold`,
|
|
110
|
+
color: '#ffffff',
|
|
111
|
+
},
|
|
112
|
+
}));
|
|
113
|
+
|
|
114
|
+
const { primary_bright: PrimaryBrightColor } = useHMSRoomColorPalette();
|
|
115
|
+
|
|
116
|
+
if (!isHLSStreaming) return <HMSHLSNotStarted />;
|
|
117
|
+
|
|
118
|
+
if (!isStreamUrlPresent)
|
|
119
|
+
return (
|
|
120
|
+
<View style={styles.textContainer}>
|
|
121
|
+
<Text style={[styles.warningSubtitle, hmsRoomStyles.warningText]}>
|
|
122
|
+
Stream URL not found!
|
|
123
|
+
</Text>
|
|
124
|
+
</View>
|
|
125
|
+
);
|
|
126
|
+
|
|
127
|
+
return (
|
|
128
|
+
<>
|
|
129
|
+
<View style={styles.container}>
|
|
130
|
+
<View
|
|
131
|
+
style={[
|
|
132
|
+
styles.playerAndCaptionWrapper,
|
|
133
|
+
{
|
|
134
|
+
width: playerWrapperConstraints.width,
|
|
135
|
+
height: hlsPlayerConstraints.height,
|
|
136
|
+
},
|
|
137
|
+
]}
|
|
138
|
+
>
|
|
139
|
+
<HMSPinchGesture>
|
|
140
|
+
<View pointerEvents="none" style={styles.playerContainer}>
|
|
141
|
+
<HMSHLSPlayer
|
|
142
|
+
key={playerKey}
|
|
143
|
+
ref={hlsPlayerRef}
|
|
144
|
+
enableStats={true}
|
|
145
|
+
enableControls={enableHLSPlayerControls}
|
|
146
|
+
containerStyle={styles.playerContainer}
|
|
147
|
+
style={{
|
|
148
|
+
width: hlsPlayerConstraints.width,
|
|
149
|
+
height: hlsPlayerConstraints.height,
|
|
150
|
+
}}
|
|
151
|
+
/>
|
|
152
|
+
</View>
|
|
153
|
+
</HMSPinchGesture>
|
|
154
|
+
|
|
155
|
+
<View
|
|
156
|
+
style={[
|
|
157
|
+
{ width: playerWrapperConstraints.width - 48, left: 24 },
|
|
158
|
+
styles.closedCaptionsContainer,
|
|
159
|
+
]}
|
|
160
|
+
>
|
|
161
|
+
<Text style={[styles.closedCaptions, hmsRoomStyles.semiboldWhite]}>
|
|
162
|
+
{subtitles}
|
|
163
|
+
</Text>
|
|
164
|
+
</View>
|
|
165
|
+
</View>
|
|
166
|
+
</View>
|
|
167
|
+
|
|
168
|
+
<HLSPlayerEmoticons />
|
|
169
|
+
|
|
170
|
+
{/* {showHLSStats ? (
|
|
171
|
+
<HLSPlayerStatsView onClosePress={handleClosePress} />
|
|
172
|
+
) : null} */}
|
|
173
|
+
|
|
174
|
+
{isPlayerBuffering ? (
|
|
175
|
+
<View
|
|
176
|
+
style={[
|
|
177
|
+
styles.playbackFailedContainer,
|
|
178
|
+
hmsRoomStyles.failedContainer,
|
|
179
|
+
]}
|
|
180
|
+
>
|
|
181
|
+
<ActivityIndicator size={'large'} color={PrimaryBrightColor} />
|
|
182
|
+
</View>
|
|
183
|
+
) : null}
|
|
184
|
+
|
|
185
|
+
{isPlaybackFailed ? (
|
|
186
|
+
<View
|
|
187
|
+
style={[
|
|
188
|
+
styles.playbackFailedContainer,
|
|
189
|
+
hmsRoomStyles.failedContainer,
|
|
190
|
+
]}
|
|
191
|
+
>
|
|
192
|
+
<CrossCircleIcon />
|
|
193
|
+
|
|
194
|
+
<Text style={[styles.playbackFailed, hmsRoomStyles.failedText]}>
|
|
195
|
+
Playback Failed
|
|
196
|
+
</Text>
|
|
197
|
+
</View>
|
|
198
|
+
) : null}
|
|
199
|
+
</>
|
|
200
|
+
);
|
|
201
|
+
});
|
|
202
|
+
|
|
203
|
+
export const HLSPlayer = React.memo(_HLSPlayer);
|
|
204
|
+
|
|
205
|
+
const styles = StyleSheet.create({
|
|
206
|
+
container: {
|
|
207
|
+
flex: 1,
|
|
208
|
+
alignItems: 'center',
|
|
209
|
+
justifyContent: 'center',
|
|
210
|
+
},
|
|
211
|
+
playerAndCaptionWrapper: {
|
|
212
|
+
position: 'relative',
|
|
213
|
+
alignItems: 'center',
|
|
214
|
+
justifyContent: 'center',
|
|
215
|
+
},
|
|
216
|
+
playerContainer: {
|
|
217
|
+
flex: undefined,
|
|
218
|
+
alignItems: 'flex-start',
|
|
219
|
+
justifyContent: 'flex-start',
|
|
220
|
+
},
|
|
221
|
+
textContainer: {
|
|
222
|
+
flex: 1,
|
|
223
|
+
paddingHorizontal: 24,
|
|
224
|
+
alignItems: 'center',
|
|
225
|
+
justifyContent: 'center',
|
|
226
|
+
},
|
|
227
|
+
warningSubtitle: {
|
|
228
|
+
fontSize: 16,
|
|
229
|
+
lineHeight: 20,
|
|
230
|
+
letterSpacing: 0.25,
|
|
231
|
+
textAlign: 'center',
|
|
232
|
+
},
|
|
233
|
+
closedCaptionsContainer: {
|
|
234
|
+
position: 'absolute',
|
|
235
|
+
bottom: 4,
|
|
236
|
+
paddingHorizontal: 8,
|
|
237
|
+
paddingVertical: 4,
|
|
238
|
+
alignItems: 'center',
|
|
239
|
+
justifyContent: 'center',
|
|
240
|
+
},
|
|
241
|
+
closedCaptions: {
|
|
242
|
+
fontSize: 14,
|
|
243
|
+
lineHeight: 16,
|
|
244
|
+
textAlign: 'center',
|
|
245
|
+
textShadowColor: 'rgba(0, 0, 0, 0.8)',
|
|
246
|
+
textShadowRadius: 3,
|
|
247
|
+
textShadowOffset: { width: 1, height: 1 },
|
|
248
|
+
},
|
|
249
|
+
playbackFailedContainer: {
|
|
250
|
+
flex: 1,
|
|
251
|
+
width: '100%',
|
|
252
|
+
height: '100%',
|
|
253
|
+
alignItems: 'center',
|
|
254
|
+
justifyContent: 'center',
|
|
255
|
+
position: 'absolute',
|
|
256
|
+
},
|
|
257
|
+
playbackFailed: {
|
|
258
|
+
fontSize: 24,
|
|
259
|
+
lineHeight: 32,
|
|
260
|
+
letterSpacing: 0.5,
|
|
261
|
+
textAlign: 'center',
|
|
262
|
+
marginTop: 8,
|
|
263
|
+
},
|
|
264
|
+
});
|