@100mslive/react-native-room-kit 1.1.4 → 1.1.6
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/HMSContainer.js +1 -1
- package/lib/commonjs/HMSContainer.js.map +1 -1
- package/lib/commonjs/HMSInstanceSetup.js +15 -6
- package/lib/commonjs/HMSInstanceSetup.js.map +1 -1
- package/lib/commonjs/HMSPrebuilt.js +1 -1
- package/lib/commonjs/HMSPrebuilt.js.map +1 -1
- package/lib/commonjs/HMSRoomSetup.js +1 -1
- package/lib/commonjs/HMSRoomSetup.js.map +1 -1
- 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/index.js +11 -0
- package/lib/commonjs/Icons/index.js.map +1 -1
- package/lib/commonjs/components/AnimatedFooter.js +1 -1
- package/lib/commonjs/components/AnimatedFooter.js.map +1 -1
- package/lib/commonjs/components/AnimatedHLSFooter.js +1 -1
- package/lib/commonjs/components/AnimatedHLSFooter.js.map +1 -1
- package/lib/commonjs/components/AnimatedHeader.js +2 -12
- package/lib/commonjs/components/AnimatedHeader.js.map +1 -1
- package/lib/commonjs/components/AvatarView.js +1 -1
- package/lib/commonjs/components/AvatarView.js.map +1 -1
- package/lib/commonjs/components/BackButton.js +1 -1
- package/lib/commonjs/components/BackButton.js.map +1 -1
- package/lib/commonjs/components/BottomSheet.js +1 -1
- package/lib/commonjs/components/BottomSheet.js.map +1 -1
- package/lib/commonjs/components/ChangeNameModalContent.js +1 -1
- package/lib/commonjs/components/ChangeNameModalContent.js.map +1 -1
- package/lib/commonjs/components/Chat/ChatBanner.js +2 -1
- package/lib/commonjs/components/Chat/ChatBanner.js.map +1 -1
- package/lib/commonjs/components/Chat/ChatFilterBottomSheet.js +1 -1
- package/lib/commonjs/components/Chat/ChatFilterBottomSheet.js.map +1 -1
- package/lib/commonjs/components/Chat/ChatFilterBottomSheetOpener.js +11 -8
- package/lib/commonjs/components/Chat/ChatFilterBottomSheetOpener.js.map +1 -1
- package/lib/commonjs/components/Chat/ChatFilterBottomSheetView.js +1 -1
- package/lib/commonjs/components/Chat/ChatFilterBottomSheetView.js.map +1 -1
- package/lib/commonjs/components/Chat/ChatFilterItem.js +1 -1
- package/lib/commonjs/components/Chat/ChatFilterItem.js.map +1 -1
- package/lib/commonjs/components/Chat/ChatFilterView.js +3 -2
- package/lib/commonjs/components/Chat/ChatFilterView.js.map +1 -1
- package/lib/commonjs/components/Chat/ChatList.js +5 -3
- package/lib/commonjs/components/Chat/ChatList.js.map +1 -1
- package/lib/commonjs/components/Chat/ChatMessage.js +1 -1
- package/lib/commonjs/components/Chat/ChatMessage.js.map +1 -1
- package/lib/commonjs/components/Chat/ChatMoreActionsModal.js +1 -1
- package/lib/commonjs/components/Chat/ChatMoreActionsModal.js.map +1 -1
- package/lib/commonjs/components/Chat/ChatMoreActionsSheetView.js +1 -1
- package/lib/commonjs/components/Chat/ChatMoreActionsSheetView.js.map +1 -1
- package/lib/commonjs/components/Chat/ChatMoreActionsView.js +1 -1
- package/lib/commonjs/components/Chat/ChatMoreActionsView.js.map +1 -1
- package/lib/commonjs/components/Chat/ChatPaused.js +1 -1
- package/lib/commonjs/components/Chat/ChatPaused.js.map +1 -1
- package/lib/commonjs/components/Chat/MessageOptionsBottomSheet.js +1 -1
- package/lib/commonjs/components/Chat/MessageOptionsBottomSheet.js.map +1 -1
- package/lib/commonjs/components/Chat/MessageOptionsBottomSheetView.js +1 -1
- package/lib/commonjs/components/Chat/MessageOptionsBottomSheetView.js.map +1 -1
- package/lib/commonjs/components/Chat/MessageOptionsView.js +1 -1
- package/lib/commonjs/components/Chat/MessageOptionsView.js.map +1 -1
- package/lib/commonjs/components/Chat/PeerBlockedFromChat.js +1 -1
- package/lib/commonjs/components/Chat/PeerBlockedFromChat.js.map +1 -1
- package/lib/commonjs/components/Chat/PinnedMessages.js +1 -1
- package/lib/commonjs/components/Chat/PinnedMessages.js.map +1 -1
- package/lib/commonjs/components/ChatAndParticipants/ChatAndParticipantsBottomSheet.js +1 -1
- package/lib/commonjs/components/ChatAndParticipants/ChatAndParticipantsBottomSheet.js.map +1 -1
- package/lib/commonjs/components/ChatAndParticipants/ChatAndParticipantsHeader.js +1 -1
- package/lib/commonjs/components/ChatAndParticipants/ChatAndParticipantsHeader.js.map +1 -1
- package/lib/commonjs/components/ChatAndParticipants/ChatAndParticipantsView.js +3 -2
- package/lib/commonjs/components/ChatAndParticipants/ChatAndParticipantsView.js.map +1 -1
- package/lib/commonjs/components/ChatAndParticipants/ChatView.js +1 -1
- package/lib/commonjs/components/ChatAndParticipants/ChatView.js.map +1 -1
- package/lib/commonjs/components/ChatAndParticipants/ParticipantsView.js +1 -1
- package/lib/commonjs/components/ChatAndParticipants/ParticipantsView.js.map +1 -1
- package/lib/commonjs/components/CreatePoll.js +1 -1
- package/lib/commonjs/components/CreatePoll.js.map +1 -1
- package/lib/commonjs/components/DisplayView.js +2 -10
- package/lib/commonjs/components/DisplayView.js.map +1 -1
- package/lib/commonjs/components/EndRoomModal.js +1 -1
- package/lib/commonjs/components/EndRoomModal.js.map +1 -1
- package/lib/commonjs/components/EndRoomModalContent.js +1 -1
- package/lib/commonjs/components/EndRoomModalContent.js.map +1 -1
- package/lib/commonjs/components/Footer.js +12 -32
- package/lib/commonjs/components/Footer.js.map +1 -1
- package/lib/commonjs/components/FullScreenVideoView.js +1 -1
- package/lib/commonjs/components/FullScreenVideoView.js.map +1 -1
- package/lib/commonjs/components/GridView.js +1 -1
- package/lib/commonjs/components/GridView.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 +55 -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/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/HLSFooter.js +2 -2
- package/lib/commonjs/components/HLSFooter.js.map +1 -1
- 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/{HLSView.js → HLSPlayer.js} +35 -38
- package/lib/commonjs/components/HLSPlayer.js.map +1 -0
- package/lib/commonjs/components/HLSPlayerContainer.js +64 -0
- package/lib/commonjs/components/HLSPlayerContainer.js.map +1 -0
- package/lib/commonjs/components/HLSPlayerControls.js +87 -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/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/HMSBaseButton.js +1 -1
- package/lib/commonjs/components/HMSBaseButton.js.map +1 -1
- package/lib/commonjs/components/HMSChat.js +1 -1
- package/lib/commonjs/components/HMSChat.js.map +1 -1
- package/lib/commonjs/components/HMSDangerButton.js +1 -1
- package/lib/commonjs/components/HMSDangerButton.js.map +1 -1
- package/lib/commonjs/components/HMSHLSMessage.js +1 -1
- package/lib/commonjs/components/HMSHLSMessage.js.map +1 -1
- package/lib/commonjs/components/HMSHLSMessageList.js +1 -1
- package/lib/commonjs/components/HMSHLSMessageList.js.map +1 -1
- package/lib/commonjs/components/HMSHLSNotStarted.js +16 -8
- package/lib/commonjs/components/HMSHLSNotStarted.js.map +1 -1
- package/lib/commonjs/components/HMSHLSStreamLoading.js +1 -1
- package/lib/commonjs/components/HMSHLSStreamLoading.js.map +1 -1
- package/lib/commonjs/components/HMSHandRaiseNotification.js +1 -1
- package/lib/commonjs/components/HMSHandRaiseNotification.js.map +1 -1
- package/lib/commonjs/components/HMSKeyboardAvoidingView.android.js +1 -1
- package/lib/commonjs/components/HMSKeyboardAvoidingView.android.js.map +1 -1
- package/lib/commonjs/components/HMSKeyboardAvoidingView.js +6 -2
- package/lib/commonjs/components/HMSKeyboardAvoidingView.js.map +1 -1
- package/lib/commonjs/components/HMSLiveIndicator.js +1 -1
- package/lib/commonjs/components/HMSLiveIndicator.js.map +1 -1
- package/lib/commonjs/components/HMSLiveViewerCount.js +3 -5
- package/lib/commonjs/components/HMSLiveViewerCount.js.map +1 -1
- package/lib/commonjs/components/HMSLocalScreenshareNotification.js +1 -1
- package/lib/commonjs/components/HMSLocalScreenshareNotification.js.map +1 -1
- package/lib/commonjs/components/HMSLocalVideoView.js +1 -1
- package/lib/commonjs/components/HMSLocalVideoView.js.map +1 -1
- package/lib/commonjs/components/HMSManageAudioOutput.js +1 -1
- package/lib/commonjs/components/HMSManageAudioOutput.js.map +1 -1
- package/lib/commonjs/components/HMSManageCameraRotation.js +1 -1
- package/lib/commonjs/components/HMSManageCameraRotation.js.map +1 -1
- package/lib/commonjs/components/HMSManageLeave.js +1 -1
- package/lib/commonjs/components/HMSManageLeave.js.map +1 -1
- package/lib/commonjs/components/HMSManageLocalAudio.js +1 -1
- package/lib/commonjs/components/HMSManageLocalAudio.js.map +1 -1
- package/lib/commonjs/components/HMSManageLocalVideo.js +1 -1
- package/lib/commonjs/components/HMSManageLocalVideo.js.map +1 -1
- package/lib/commonjs/components/HMSManageNoiseCancellation.js +36 -0
- package/lib/commonjs/components/HMSManageNoiseCancellation.js.map +1 -0
- package/lib/commonjs/components/HMSManageRaiseHand.js +1 -1
- package/lib/commonjs/components/HMSManageRaiseHand.js.map +1 -1
- package/lib/commonjs/components/HMSMeetingEnded.js +1 -1
- package/lib/commonjs/components/HMSMeetingEnded.js.map +1 -1
- package/lib/commonjs/components/HMSNotification.js +4 -3
- package/lib/commonjs/components/HMSNotification.js.map +1 -1
- package/lib/commonjs/components/HMSNotifications.js +4 -2
- package/lib/commonjs/components/HMSNotifications.js.map +1 -1
- package/lib/commonjs/components/HMSOverlayChatView.js +8 -5
- package/lib/commonjs/components/HMSOverlayChatView.js.map +1 -1
- package/lib/commonjs/components/HMSPollsQuizzesNotification.js +1 -1
- package/lib/commonjs/components/HMSPollsQuizzesNotification.js.map +1 -1
- package/lib/commonjs/components/HMSPreviewEditName.js +1 -1
- package/lib/commonjs/components/HMSPreviewEditName.js.map +1 -1
- package/lib/commonjs/components/HMSPreviewHLSLiveIndicator.js +1 -1
- package/lib/commonjs/components/HMSPreviewHLSLiveIndicator.js.map +1 -1
- package/lib/commonjs/components/HMSPreviewJoinButton.js +1 -1
- package/lib/commonjs/components/HMSPreviewJoinButton.js.map +1 -1
- package/lib/commonjs/components/HMSPreviewNetworkQuality.js +1 -1
- package/lib/commonjs/components/HMSPreviewNetworkQuality.js.map +1 -1
- package/lib/commonjs/components/HMSPreviewPeersList.js +1 -1
- package/lib/commonjs/components/HMSPreviewPeersList.js.map +1 -1
- package/lib/commonjs/components/HMSPreviewSubtitle.js +1 -1
- package/lib/commonjs/components/HMSPreviewSubtitle.js.map +1 -1
- package/lib/commonjs/components/HMSPreviewTile.js +1 -1
- package/lib/commonjs/components/HMSPreviewTile.js.map +1 -1
- package/lib/commonjs/components/HMSPreviewTitle.js +1 -1
- package/lib/commonjs/components/HMSPreviewTitle.js.map +1 -1
- package/lib/commonjs/components/HMSPrimaryButton.js +1 -1
- package/lib/commonjs/components/HMSPrimaryButton.js.map +1 -1
- package/lib/commonjs/components/HMSReconnectingNotification.js +1 -1
- package/lib/commonjs/components/HMSReconnectingNotification.js.map +1 -1
- package/lib/commonjs/components/HMSRecordingIndicator.js +1 -1
- package/lib/commonjs/components/HMSRecordingIndicator.js.map +1 -1
- package/lib/commonjs/components/HMSRoleChangeDeclinedNotification.js +1 -1
- package/lib/commonjs/components/HMSRoleChangeDeclinedNotification.js.map +1 -1
- package/lib/commonjs/components/HMSRoomOptions.js +1 -1
- package/lib/commonjs/components/HMSRoomOptions.js.map +1 -1
- package/lib/commonjs/components/HMSSecondaryButton.js +1 -1
- package/lib/commonjs/components/HMSSecondaryButton.js.map +1 -1
- package/lib/commonjs/components/HMSSendMessageInput.js +1 -1
- package/lib/commonjs/components/HMSSendMessageInput.js.map +1 -1
- package/lib/commonjs/components/HMSTerminalErrorNotification.js +1 -1
- package/lib/commonjs/components/HMSTerminalErrorNotification.js.map +1 -1
- package/lib/commonjs/components/HMSTextInput.js +1 -1
- package/lib/commonjs/components/HMSTextInput.js.map +1 -1
- package/lib/commonjs/components/HMSVideoView.js +1 -1
- package/lib/commonjs/components/HMSVideoView.js.map +1 -1
- package/lib/commonjs/components/Header.js +1 -1
- package/lib/commonjs/components/Header.js.map +1 -1
- package/lib/commonjs/components/LeaderboardEntry.js +1 -1
- package/lib/commonjs/components/LeaderboardEntry.js.map +1 -1
- package/lib/commonjs/components/LeaveRoomBottomSheet.js +1 -1
- package/lib/commonjs/components/LeaveRoomBottomSheet.js.map +1 -1
- package/lib/commonjs/components/LocalPeerRegularVideoView.js +1 -1
- package/lib/commonjs/components/LocalPeerRegularVideoView.js.map +1 -1
- package/lib/commonjs/components/LocalPeerScreenshareView.js +1 -1
- package/lib/commonjs/components/LocalPeerScreenshareView.js.map +1 -1
- package/lib/commonjs/components/Meeting.js +4 -2
- package/lib/commonjs/components/Meeting.js.map +1 -1
- package/lib/commonjs/components/MeetingScreenContent.js +3 -10
- package/lib/commonjs/components/MeetingScreenContent.js.map +1 -1
- package/lib/commonjs/components/MiniView.js +1 -1
- package/lib/commonjs/components/MiniView.js.map +1 -1
- package/lib/commonjs/components/Modals.js +1 -1
- package/lib/commonjs/components/Modals.js.map +1 -1
- package/lib/commonjs/components/OverlayContainer.js +1 -1
- package/lib/commonjs/components/OverlayContainer.js.map +1 -1
- package/lib/commonjs/components/OverlayedViews.js +2 -2
- package/lib/commonjs/components/OverlayedViews.js.map +1 -1
- package/lib/commonjs/components/PIPView.js +1 -1
- package/lib/commonjs/components/PIPView.js.map +1 -1
- package/lib/commonjs/components/PaginationDots.js +1 -1
- package/lib/commonjs/components/PaginationDots.js.map +1 -1
- package/lib/commonjs/components/Participants/MultiRoleParticipantsList.js +1 -1
- package/lib/commonjs/components/Participants/MultiRoleParticipantsList.js.map +1 -1
- package/lib/commonjs/components/Participants/ParticipantsAccordian.js +1 -1
- package/lib/commonjs/components/Participants/ParticipantsAccordian.js.map +1 -1
- package/lib/commonjs/components/Participants/ParticipantsAccordianExpanded.js +1 -1
- package/lib/commonjs/components/Participants/ParticipantsAccordianExpanded.js.map +1 -1
- package/lib/commonjs/components/Participants/ParticipantsGroupFooter.js +1 -1
- package/lib/commonjs/components/Participants/ParticipantsGroupFooter.js.map +1 -1
- package/lib/commonjs/components/Participants/ParticipantsGroupHeader.js +1 -1
- package/lib/commonjs/components/Participants/ParticipantsGroupHeader.js.map +1 -1
- package/lib/commonjs/components/Participants/ParticipantsGroupOptions.js +1 -1
- package/lib/commonjs/components/Participants/ParticipantsGroupOptions.js.map +1 -1
- package/lib/commonjs/components/Participants/ParticipantsItem.js +12 -3
- package/lib/commonjs/components/Participants/ParticipantsItem.js.map +1 -1
- package/lib/commonjs/components/Participants/ParticipantsItemOption.js +1 -1
- package/lib/commonjs/components/Participants/ParticipantsItemOption.js.map +1 -1
- package/lib/commonjs/components/Participants/ParticipantsItemOptions.js +6 -5
- package/lib/commonjs/components/Participants/ParticipantsItemOptions.js.map +1 -1
- package/lib/commonjs/components/Participants/ParticipantsList.js +1 -1
- package/lib/commonjs/components/Participants/ParticipantsList.js.map +1 -1
- package/lib/commonjs/components/Participants/ParticipantsListFooter.js +1 -1
- package/lib/commonjs/components/Participants/ParticipantsListFooter.js.map +1 -1
- package/lib/commonjs/components/Participants/ParticipantsSeachInput.js +1 -1
- package/lib/commonjs/components/Participants/ParticipantsSeachInput.js.map +1 -1
- package/lib/commonjs/components/ParticipantsCount.js +1 -1
- package/lib/commonjs/components/ParticipantsCount.js.map +1 -1
- package/lib/commonjs/components/PeerMinimizedView.js +1 -1
- package/lib/commonjs/components/PeerMinimizedView.js.map +1 -1
- package/lib/commonjs/components/PeerRTCStatsContainer.js +1 -1
- package/lib/commonjs/components/PeerRTCStatsContainer.js.map +1 -1
- package/lib/commonjs/components/PeerSettingsModalContent.js +3 -2
- package/lib/commonjs/components/PeerSettingsModalContent.js.map +1 -1
- package/lib/commonjs/components/PeerVideoTile/AvatarView.js +1 -1
- package/lib/commonjs/components/PeerVideoTile/AvatarView.js.map +1 -1
- package/lib/commonjs/components/PeerVideoTile/HMSFullScreenButton.js +1 -1
- package/lib/commonjs/components/PeerVideoTile/HMSFullScreenButton.js.map +1 -1
- package/lib/commonjs/components/PeerVideoTile/HMSPinchGesture.js +1 -1
- package/lib/commonjs/components/PeerVideoTile/HMSPinchGesture.js.map +1 -1
- package/lib/commonjs/components/PeerVideoTile/PeerAudioIndicator.js +1 -1
- package/lib/commonjs/components/PeerVideoTile/PeerAudioIndicator.js.map +1 -1
- package/lib/commonjs/components/PeerVideoTile/PeerMetadata.js +1 -1
- package/lib/commonjs/components/PeerVideoTile/PeerMetadata.js.map +1 -1
- package/lib/commonjs/components/PeerVideoTile/PeerNameAndNetwork.js +12 -3
- package/lib/commonjs/components/PeerVideoTile/PeerNameAndNetwork.js.map +1 -1
- package/lib/commonjs/components/PeerVideoTile/PeerVideoTileView.js +2 -1
- package/lib/commonjs/components/PeerVideoTile/PeerVideoTileView.js.map +1 -1
- package/lib/commonjs/components/PeerVideoTile/VideoView.js +1 -1
- package/lib/commonjs/components/PeerVideoTile/VideoView.js.map +1 -1
- package/lib/commonjs/components/PollAndQuizQuestionResponseCard.js +1 -1
- package/lib/commonjs/components/PollAndQuizQuestionResponseCard.js.map +1 -1
- package/lib/commonjs/components/PollAndQuizQuestionResponseCards.js +1 -1
- package/lib/commonjs/components/PollAndQuizQuestionResponseCards.js.map +1 -1
- package/lib/commonjs/components/PollAndQuizSheetScreen.js +1 -1
- package/lib/commonjs/components/PollAndQuizSheetScreen.js.map +1 -1
- package/lib/commonjs/components/PollAndQuizVoting.js +12 -4
- package/lib/commonjs/components/PollAndQuizVoting.js.map +1 -1
- package/lib/commonjs/components/PollAndQuizzStateLabel.js +1 -1
- package/lib/commonjs/components/PollAndQuizzStateLabel.js.map +1 -1
- package/lib/commonjs/components/PollQDeleteConfirmationSheetView.js +1 -1
- package/lib/commonjs/components/PollQDeleteConfirmationSheetView.js.map +1 -1
- package/lib/commonjs/components/PollQuestion.js +1 -1
- package/lib/commonjs/components/PollQuestion.js.map +1 -1
- package/lib/commonjs/components/PollQuestionDeleteConfirmation.js +1 -1
- package/lib/commonjs/components/PollQuestionDeleteConfirmation.js.map +1 -1
- package/lib/commonjs/components/PollQuestions.js +1 -1
- package/lib/commonjs/components/PollQuestions.js.map +1 -1
- package/lib/commonjs/components/PollResponseProgressView.js +1 -1
- package/lib/commonjs/components/PollResponseProgressView.js.map +1 -1
- package/lib/commonjs/components/PollsAndQuizBottomSheet.js +1 -1
- package/lib/commonjs/components/PollsAndQuizBottomSheet.js.map +1 -1
- package/lib/commonjs/components/PollsAndQuizzesCard.js +1 -1
- package/lib/commonjs/components/PollsAndQuizzesCard.js.map +1 -1
- package/lib/commonjs/components/PollsAndQuizzesModalContent.js +1 -1
- package/lib/commonjs/components/PollsAndQuizzesModalContent.js.map +1 -1
- package/lib/commonjs/components/PollsConfigAndList.js +1 -1
- package/lib/commonjs/components/PollsConfigAndList.js.map +1 -1
- package/lib/commonjs/components/PressableIcon.js +2 -3
- package/lib/commonjs/components/PressableIcon.js.map +1 -1
- package/lib/commonjs/components/Preview.js +26 -5
- package/lib/commonjs/components/Preview.js.map +1 -1
- package/lib/commonjs/components/PreviewForRoleChangeModal.js +1 -1
- package/lib/commonjs/components/PreviewForRoleChangeModal.js.map +1 -1
- package/lib/commonjs/components/PreviousPollsAndQuizzesList.js +1 -1
- package/lib/commonjs/components/PreviousPollsAndQuizzesList.js.map +1 -1
- package/lib/commonjs/components/QuizEndOptionsView.js +1 -1
- package/lib/commonjs/components/QuizEndOptionsView.js.map +1 -1
- package/lib/commonjs/components/QuizLeaderboardEntriesScreen.js +1 -1
- package/lib/commonjs/components/QuizLeaderboardEntriesScreen.js.map +1 -1
- package/lib/commonjs/components/QuizLeaderboardScreen.js +1 -1
- package/lib/commonjs/components/QuizLeaderboardScreen.js.map +1 -1
- package/lib/commonjs/components/QuizLeaderboardSummary.js +1 -1
- package/lib/commonjs/components/QuizLeaderboardSummary.js.map +1 -1
- package/lib/commonjs/components/ReconnectionView.js +1 -1
- package/lib/commonjs/components/ReconnectionView.js.map +1 -1
- package/lib/commonjs/components/RoomSettingsModalContent.js +67 -2
- package/lib/commonjs/components/RoomSettingsModalContent.js.map +1 -1
- package/lib/commonjs/components/StatusBar.js +1 -1
- package/lib/commonjs/components/StatusBar.js.map +1 -1
- package/lib/commonjs/components/StopRecordingModalContent.js +1 -1
- package/lib/commonjs/components/StopRecordingModalContent.js.map +1 -1
- package/lib/commonjs/components/StreamingQualityModalContent.js +1 -1
- package/lib/commonjs/components/StreamingQualityModalContent.js.map +1 -1
- package/lib/commonjs/components/UnmountAfterDelay.js +1 -1
- package/lib/commonjs/components/UnmountAfterDelay.js.map +1 -1
- package/lib/commonjs/components/VoterParticipationSummary.js +1 -1
- package/lib/commonjs/components/VoterParticipationSummary.js.map +1 -1
- package/lib/commonjs/components/WebrtcView.js +1 -1
- package/lib/commonjs/components/WebrtcView.js.map +1 -1
- package/lib/commonjs/components/WelcomeInMeeting.js +1 -1
- package/lib/commonjs/components/WelcomeInMeeting.js.map +1 -1
- package/lib/commonjs/components/styles.js +4 -0
- package/lib/commonjs/components/styles.js.map +1 -1
- package/lib/commonjs/hooks-util.js +128 -5
- package/lib/commonjs/hooks-util.js.map +1 -1
- package/lib/commonjs/redux/actionTypes.js +5 -0
- package/lib/commonjs/redux/actionTypes.js.map +1 -1
- package/lib/commonjs/redux/actions/index.js +23 -4
- package/lib/commonjs/redux/actions/index.js.map +1 -1
- package/lib/commonjs/redux/reducers/appState.js +18 -2
- package/lib/commonjs/redux/reducers/appState.js.map +1 -1
- package/lib/commonjs/redux/reducers/hmsStates.js +7 -1
- package/lib/commonjs/redux/reducers/hmsStates.js.map +1 -1
- package/lib/commonjs/redux/reducers/message.js +1 -1
- package/lib/commonjs/redux/reducers/message.js.map +1 -1
- package/lib/commonjs/redux/reducers/userState.js +1 -1
- package/lib/commonjs/redux/reducers/userState.js.map +1 -1
- package/lib/commonjs/utils/functions.js +1 -0
- package/lib/commonjs/utils/functions.js.map +1 -1
- package/lib/commonjs/utils/hooks.js +12 -18
- package/lib/commonjs/utils/hooks.js.map +1 -1
- package/lib/module/HMSInstanceSetup.js +16 -7
- package/lib/module/HMSInstanceSetup.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/index.js +1 -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/ChatFilterView.js +2 -1
- package/lib/module/components/Chat/ChatFilterView.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 +12 -32
- 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 +46 -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/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/HLSFooter.js +2 -2
- package/lib/module/components/HLSFooter.js.map +1 -1
- 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/{HLSView.js → HLSPlayer.js} +35 -38
- package/lib/module/components/HLSPlayer.js.map +1 -0
- package/lib/module/components/HLSPlayerContainer.js +56 -0
- package/lib/module/components/HLSPlayerContainer.js.map +1 -0
- package/lib/module/components/HLSPlayerControls.js +81 -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/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/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/HMSManageNoiseCancellation.js +28 -0
- package/lib/module/components/HMSManageNoiseCancellation.js.map +1 -0
- 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/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/ParticipantsItem.js +12 -3
- package/lib/module/components/Participants/ParticipantsItem.js.map +1 -1
- package/lib/module/components/Participants/ParticipantsItemOptions.js +5 -4
- package/lib/module/components/Participants/ParticipantsItemOptions.js.map +1 -1
- package/lib/module/components/PeerSettingsModalContent.js +4 -3
- package/lib/module/components/PeerSettingsModalContent.js.map +1 -1
- package/lib/module/components/PeerVideoTile/PeerNameAndNetwork.js +12 -3
- package/lib/module/components/PeerVideoTile/PeerNameAndNetwork.js.map +1 -1
- package/lib/module/components/PeerVideoTile/PeerVideoTileView.js +2 -1
- package/lib/module/components/PeerVideoTile/PeerVideoTileView.js.map +1 -1
- package/lib/module/components/PollAndQuizVoting.js +11 -3
- package/lib/module/components/PollAndQuizVoting.js.map +1 -1
- package/lib/module/components/PressableIcon.js +1 -2
- package/lib/module/components/PressableIcon.js.map +1 -1
- package/lib/module/components/Preview.js +26 -5
- package/lib/module/components/Preview.js.map +1 -1
- package/lib/module/components/RoomSettingsModalContent.js +69 -4
- package/lib/module/components/RoomSettingsModalContent.js.map +1 -1
- package/lib/module/components/styles.js +4 -0
- package/lib/module/components/styles.js.map +1 -1
- package/lib/module/hooks-util.js +125 -5
- package/lib/module/hooks-util.js.map +1 -1
- package/lib/module/redux/actionTypes.js +5 -0
- package/lib/module/redux/actionTypes.js.map +1 -1
- package/lib/module/redux/actions/index.js +16 -0
- package/lib/module/redux/actions/index.js.map +1 -1
- package/lib/module/redux/reducers/appState.js +17 -1
- package/lib/module/redux/reducers/appState.js.map +1 -1
- package/lib/module/redux/reducers/hmsStates.js +7 -1
- package/lib/module/redux/reducers/hmsStates.js.map +1 -1
- package/lib/module/utils/functions.js +1 -0
- package/lib/module/utils/functions.js.map +1 -1
- package/lib/module/utils/hooks.js +12 -18
- package/lib/module/utils/hooks.js.map +1 -1
- package/lib/typescript/HMSInstanceSetup.d.ts.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/index.d.ts +1 -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/ChatFilterView.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/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/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/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/HLSPlayer.d.ts +4 -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 +4 -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/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/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/HMSManageNoiseCancellation.d.ts +3 -0
- package/lib/typescript/components/HMSManageNoiseCancellation.d.ts.map +1 -0
- 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/Meeting.d.ts.map +1 -1
- package/lib/typescript/components/MeetingScreenContent.d.ts.map +1 -1
- package/lib/typescript/components/Participants/ParticipantsItem.d.ts.map +1 -1
- package/lib/typescript/components/Participants/ParticipantsItemOptions.d.ts.map +1 -1
- package/lib/typescript/components/PeerSettingsModalContent.d.ts.map +1 -1
- package/lib/typescript/components/PeerVideoTile/PeerNameAndNetwork.d.ts +1 -0
- package/lib/typescript/components/PeerVideoTile/PeerNameAndNetwork.d.ts.map +1 -1
- package/lib/typescript/components/PeerVideoTile/PeerVideoTileView.d.ts.map +1 -1
- package/lib/typescript/components/PollAndQuizVoting.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/components/RoomSettingsModalContent.d.ts.map +1 -1
- package/lib/typescript/components/styles.d.ts +4 -0
- package/lib/typescript/components/styles.d.ts.map +1 -1
- package/lib/typescript/hooks-util.d.ts +20 -1
- 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 +17 -1
- package/lib/typescript/redux/actions/index.d.ts.map +1 -1
- package/lib/typescript/redux/index.d.ts +3 -0
- package/lib/typescript/redux/index.d.ts.map +1 -1
- package/lib/typescript/redux/reducers/appState.d.ts +2 -0
- package/lib/typescript/redux/reducers/appState.d.ts.map +1 -1
- package/lib/typescript/redux/reducers/hmsStates.d.ts +7 -2
- package/lib/typescript/redux/reducers/hmsStates.d.ts.map +1 -1
- package/lib/typescript/redux/reducers/index.d.ts +3 -0
- package/lib/typescript/redux/reducers/index.d.ts.map +1 -1
- package/lib/typescript/utils/functions.d.ts +1 -0
- package/lib/typescript/utils/functions.d.ts.map +1 -1
- package/lib/typescript/utils/hooks.d.ts.map +1 -1
- package/package.json +66 -5
- package/src/HMSInstanceSetup.tsx +26 -5
- 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/index.ts +1 -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/ChatFilterView.tsx +6 -2
- 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 +11 -54
- 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 +62 -0
- package/src/components/HLSChatView.tsx +55 -0
- package/src/components/HLSDescriptionPane.tsx +168 -0
- package/src/components/HLSDescriptionPaneHeader.tsx +78 -0
- package/src/components/HLSFooter.tsx +2 -2
- package/src/components/HLSHandRaiseButton.tsx +41 -0
- package/src/components/HLSManageChatTextInput.tsx +98 -0
- package/src/components/HLSNotifications.tsx +33 -0
- package/src/components/{HLSView.tsx → HLSPlayer.tsx} +80 -77
- package/src/components/HLSPlayerContainer.tsx +67 -0
- package/src/components/HLSPlayerControls.tsx +101 -0
- package/src/components/HLSRecordingStatusText.tsx +50 -0
- package/src/components/HLSRoomOptionsButton.tsx +19 -0
- package/src/components/HLSStreamStartedTime.tsx +79 -0
- package/src/components/HLSViewerScreenContent.tsx +96 -0
- package/src/components/HMSHLSNotStarted.tsx +18 -7
- package/src/components/HMSKeyboardAvoidingView.tsx +16 -6
- package/src/components/HMSLiveViewerCount.tsx +2 -8
- package/src/components/HMSManageNoiseCancellation.tsx +41 -0
- package/src/components/HMSNotification.tsx +20 -14
- package/src/components/HMSNotifications.tsx +3 -1
- package/src/components/HMSOverlayChatView.tsx +10 -3
- 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/ParticipantsItem.tsx +29 -3
- package/src/components/Participants/ParticipantsItemOptions.tsx +9 -4
- package/src/components/PeerSettingsModalContent.tsx +14 -10
- package/src/components/PeerVideoTile/PeerNameAndNetwork.tsx +25 -9
- package/src/components/PeerVideoTile/PeerVideoTileView.tsx +2 -0
- package/src/components/PollAndQuizVoting.tsx +13 -1
- package/src/components/PressableIcon.tsx +1 -3
- package/src/components/Preview.tsx +42 -3
- package/src/components/RoomSettingsModalContent.tsx +85 -1
- package/src/components/styles.ts +4 -0
- package/src/hooks-util.ts +185 -6
- package/src/redux/actionTypes.ts +7 -0
- package/src/redux/actions/index.ts +18 -0
- package/src/redux/reducers/appState.ts +16 -0
- package/src/redux/reducers/hmsStates.ts +15 -1
- package/src/utils/functions.ts +1 -0
- package/src/utils/hooks.ts +12 -12
- package/lib/commonjs/components/HLSView.js.map +0 -1
- package/lib/module/components/HLSView.js.map +0 -1
- package/lib/typescript/components/HLSView.d.ts +0 -4
- package/lib/typescript/components/HLSView.d.ts.map +0 -1
|
@@ -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
|
+
});
|
|
@@ -6,13 +6,12 @@ import {
|
|
|
6
6
|
Text,
|
|
7
7
|
StyleSheet,
|
|
8
8
|
Platform,
|
|
9
|
-
|
|
9
|
+
ActivityIndicator,
|
|
10
10
|
} from 'react-native';
|
|
11
11
|
import {
|
|
12
12
|
HMSHLSPlayer,
|
|
13
13
|
HMSHLSPlayerPlaybackState,
|
|
14
14
|
useHMSHLSPlayerPlaybackState,
|
|
15
|
-
useHMSHLSPlayerResolution,
|
|
16
15
|
} from '@100mslive/react-native-hms';
|
|
17
16
|
|
|
18
17
|
import type { RootState } from '../redux';
|
|
@@ -23,18 +22,20 @@ import { CustomControls } from './CustomHLSPlayerControls';
|
|
|
23
22
|
import { COLORS, hexToRgbA } from '../utils/theme';
|
|
24
23
|
import { HMSHLSNotStarted } from './HMSHLSNotStarted';
|
|
25
24
|
import { CrossCircleIcon } from '../Icons';
|
|
26
|
-
import {
|
|
25
|
+
import {
|
|
26
|
+
useHLSPlayerConstraints,
|
|
27
|
+
useHMSRoomColorPalette,
|
|
28
|
+
useHMSRoomStyleSheet,
|
|
29
|
+
} from '../hooks-util';
|
|
27
30
|
import { useIsHLSStreamingOn } from '../hooks-sdk';
|
|
28
|
-
import { useIsLandscapeOrientation } from '../utils/dimension';
|
|
29
31
|
|
|
30
|
-
export const
|
|
32
|
+
export const _HLSPlayer: React.FC = () => {
|
|
31
33
|
const dispatch = useDispatch();
|
|
32
34
|
const isHLSStreaming = useIsHLSStreamingOn();
|
|
33
35
|
const isStreamUrlPresent = useSelector(
|
|
34
36
|
(state: RootState) =>
|
|
35
37
|
!!state.hmsStates.room?.hlsStreamingState.variants?.[0]?.hlsStreamUrl
|
|
36
38
|
);
|
|
37
|
-
const { width, height } = useWindowDimensions();
|
|
38
39
|
const hmsHlsPlayerRef = useRef<ComponentRef<typeof HMSHLSPlayer>>(null);
|
|
39
40
|
const showHLSStats = useSelector(
|
|
40
41
|
(state: RootState) => state.app.joinConfig.showHLSStats
|
|
@@ -100,6 +101,7 @@ export const _HLSView: React.FC = () => {
|
|
|
100
101
|
}
|
|
101
102
|
};
|
|
102
103
|
|
|
104
|
+
const hlsPlayerConstraints = useHLSPlayerConstraints();
|
|
103
105
|
const [playerKey, setPlayerKey] = React.useState(1);
|
|
104
106
|
|
|
105
107
|
const prevReconnectingRef = React.useRef<null | boolean>(null);
|
|
@@ -108,12 +110,13 @@ export const _HLSView: React.FC = () => {
|
|
|
108
110
|
);
|
|
109
111
|
|
|
110
112
|
const hlsPlayerPlaybackState = useHMSHLSPlayerPlaybackState();
|
|
111
|
-
const resolution = useHMSHLSPlayerResolution();
|
|
112
|
-
const isLandscapeOrientation = useIsLandscapeOrientation();
|
|
113
113
|
|
|
114
114
|
const isPlaybackFailed =
|
|
115
115
|
hlsPlayerPlaybackState === HMSHLSPlayerPlaybackState.FAILED;
|
|
116
116
|
|
|
117
|
+
const isPlayerBuffering =
|
|
118
|
+
hlsPlayerPlaybackState === HMSHLSPlayerPlaybackState.BUFFERING;
|
|
119
|
+
|
|
117
120
|
React.useEffect(() => {
|
|
118
121
|
const prevReconnecting = prevReconnectingRef.current;
|
|
119
122
|
|
|
@@ -140,80 +143,85 @@ export const _HLSView: React.FC = () => {
|
|
|
140
143
|
color: theme.palette.on_surface_high,
|
|
141
144
|
fontFamily: `${typography.font_family}-Regular`,
|
|
142
145
|
},
|
|
146
|
+
warningText: {
|
|
147
|
+
color: theme.palette.alert_warning,
|
|
148
|
+
fontFamily: `${typography.font_family}-SemiBold`,
|
|
149
|
+
},
|
|
143
150
|
}));
|
|
144
151
|
|
|
152
|
+
const { primary_bright: PrimaryBrightColor } = useHMSRoomColorPalette();
|
|
153
|
+
|
|
154
|
+
if (!isHLSStreaming) return <HMSHLSNotStarted />;
|
|
155
|
+
|
|
156
|
+
if (!isStreamUrlPresent)
|
|
157
|
+
return (
|
|
158
|
+
<View style={styles.textContainer}>
|
|
159
|
+
<Text style={[styles.warningSubtitle, hmsRoomStyles.warningText]}>
|
|
160
|
+
Stream URL not found!
|
|
161
|
+
</Text>
|
|
162
|
+
</View>
|
|
163
|
+
);
|
|
164
|
+
|
|
145
165
|
return (
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
</View>
|
|
195
|
-
) : null}
|
|
196
|
-
</View>
|
|
197
|
-
) : (
|
|
198
|
-
<View style={styles.textContainer}>
|
|
199
|
-
<Text style={styles.warningSubtitle}>Stream URL not found!</Text>
|
|
200
|
-
</View>
|
|
201
|
-
)
|
|
202
|
-
) : (
|
|
203
|
-
<HMSHLSNotStarted />
|
|
204
|
-
)}
|
|
205
|
-
</View>
|
|
166
|
+
<>
|
|
167
|
+
<HMSHLSPlayer
|
|
168
|
+
key={playerKey}
|
|
169
|
+
ref={hmsHlsPlayerRef}
|
|
170
|
+
enableStats={showHLSStats}
|
|
171
|
+
enableControls={enableHLSPlayerControls}
|
|
172
|
+
style={{
|
|
173
|
+
width: hlsPlayerConstraints.width,
|
|
174
|
+
height: hlsPlayerConstraints.height,
|
|
175
|
+
}}
|
|
176
|
+
/>
|
|
177
|
+
|
|
178
|
+
<HLSPlayerEmoticons />
|
|
179
|
+
|
|
180
|
+
{showHLSStats ? (
|
|
181
|
+
<HLSPlayerStatsView onClosePress={handleClosePress} />
|
|
182
|
+
) : null}
|
|
183
|
+
|
|
184
|
+
{showCustomHLSPlayerControls ? (
|
|
185
|
+
<CustomControls handleControlPress={hlsPlayerActions} />
|
|
186
|
+
) : null}
|
|
187
|
+
|
|
188
|
+
{isPlayerBuffering ? (
|
|
189
|
+
<View
|
|
190
|
+
style={[
|
|
191
|
+
styles.playbackFailedContainer,
|
|
192
|
+
hmsRoomStyles.failedContainer,
|
|
193
|
+
]}
|
|
194
|
+
>
|
|
195
|
+
<ActivityIndicator size={'large'} color={PrimaryBrightColor} />
|
|
196
|
+
</View>
|
|
197
|
+
) : null}
|
|
198
|
+
|
|
199
|
+
{isPlaybackFailed ? (
|
|
200
|
+
<View
|
|
201
|
+
style={[
|
|
202
|
+
styles.playbackFailedContainer,
|
|
203
|
+
hmsRoomStyles.failedContainer,
|
|
204
|
+
]}
|
|
205
|
+
>
|
|
206
|
+
<CrossCircleIcon />
|
|
207
|
+
|
|
208
|
+
<Text style={[styles.playbackFailed, hmsRoomStyles.failedText]}>
|
|
209
|
+
Playback Failed
|
|
210
|
+
</Text>
|
|
211
|
+
</View>
|
|
212
|
+
) : null}
|
|
213
|
+
</>
|
|
206
214
|
);
|
|
207
215
|
};
|
|
208
216
|
|
|
209
|
-
export const
|
|
217
|
+
export const HLSPlayer = React.memo(_HLSPlayer);
|
|
210
218
|
|
|
211
219
|
const styles = StyleSheet.create({
|
|
212
220
|
hlsView: {
|
|
213
221
|
flex: 1,
|
|
214
222
|
},
|
|
215
223
|
hlsPlayerContainer: {
|
|
216
|
-
flex: 1,
|
|
224
|
+
// flex: 1,
|
|
217
225
|
position: 'relative',
|
|
218
226
|
},
|
|
219
227
|
textContainer: {
|
|
@@ -223,16 +231,11 @@ const styles = StyleSheet.create({
|
|
|
223
231
|
justifyContent: 'center',
|
|
224
232
|
},
|
|
225
233
|
warningSubtitle: {
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
fontSize: 20,
|
|
229
|
-
fontWeight: '600',
|
|
234
|
+
fontSize: 16,
|
|
235
|
+
lineHeight: 20,
|
|
230
236
|
letterSpacing: 0.25,
|
|
231
237
|
textAlign: 'center',
|
|
232
238
|
},
|
|
233
|
-
taleLessSpaceAsYouCan: {
|
|
234
|
-
flex: 0,
|
|
235
|
-
},
|
|
236
239
|
playbackFailedContainer: {
|
|
237
240
|
flex: 1,
|
|
238
241
|
width: '100%',
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { View, StyleSheet } from 'react-native';
|
|
3
|
+
|
|
4
|
+
import { useHLSViewsConstraints } from '../hooks-util';
|
|
5
|
+
import { HLSPlayer } from './HLSPlayer';
|
|
6
|
+
import { HLSPlayerControls } from './HLSPlayerControls';
|
|
7
|
+
|
|
8
|
+
export const _HLSPlayerContainer: React.FC = () => {
|
|
9
|
+
// const hlsPlayerRef = useRef(null);
|
|
10
|
+
const { playerWrapperConstraints } = useHLSViewsConstraints();
|
|
11
|
+
|
|
12
|
+
return (
|
|
13
|
+
<View
|
|
14
|
+
style={[
|
|
15
|
+
styles.hlsPlayerContainer,
|
|
16
|
+
{
|
|
17
|
+
backgroundColor: 'black',
|
|
18
|
+
width: playerWrapperConstraints.width,
|
|
19
|
+
height: playerWrapperConstraints.height,
|
|
20
|
+
},
|
|
21
|
+
]}
|
|
22
|
+
>
|
|
23
|
+
<HLSPlayer />
|
|
24
|
+
|
|
25
|
+
<HLSPlayerControls />
|
|
26
|
+
</View>
|
|
27
|
+
);
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
export const HLSPlayerContainer = React.memo(_HLSPlayerContainer);
|
|
31
|
+
|
|
32
|
+
const styles = StyleSheet.create({
|
|
33
|
+
hlsView: {
|
|
34
|
+
flex: 1,
|
|
35
|
+
},
|
|
36
|
+
hlsPlayerContainer: {
|
|
37
|
+
// flex: 1,
|
|
38
|
+
position: 'relative',
|
|
39
|
+
},
|
|
40
|
+
textContainer: {
|
|
41
|
+
flex: 1,
|
|
42
|
+
paddingHorizontal: 24,
|
|
43
|
+
alignItems: 'center',
|
|
44
|
+
justifyContent: 'center',
|
|
45
|
+
},
|
|
46
|
+
warningSubtitle: {
|
|
47
|
+
fontSize: 16,
|
|
48
|
+
lineHeight: 20,
|
|
49
|
+
letterSpacing: 0.25,
|
|
50
|
+
textAlign: 'center',
|
|
51
|
+
},
|
|
52
|
+
playbackFailedContainer: {
|
|
53
|
+
flex: 1,
|
|
54
|
+
width: '100%',
|
|
55
|
+
height: '100%',
|
|
56
|
+
alignItems: 'center',
|
|
57
|
+
justifyContent: 'center',
|
|
58
|
+
position: 'absolute',
|
|
59
|
+
},
|
|
60
|
+
playbackFailed: {
|
|
61
|
+
fontSize: 24,
|
|
62
|
+
lineHeight: 32,
|
|
63
|
+
letterSpacing: 0.5,
|
|
64
|
+
textAlign: 'center',
|
|
65
|
+
marginTop: 8,
|
|
66
|
+
},
|
|
67
|
+
});
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { View, StyleSheet, TouchableOpacity } from 'react-native';
|
|
3
|
+
import { useDispatch, useSelector } from 'react-redux';
|
|
4
|
+
|
|
5
|
+
import {
|
|
6
|
+
// CCIcon,
|
|
7
|
+
CloseIcon,
|
|
8
|
+
MaximizeIcon,
|
|
9
|
+
MinimizeIcon,
|
|
10
|
+
} from '../Icons';
|
|
11
|
+
import { ModalTypes } from '../utils/types';
|
|
12
|
+
import { useModalType } from '../hooks-util';
|
|
13
|
+
import type { RootState } from '../redux';
|
|
14
|
+
import { setHlsFullScreen } from '../redux/actions';
|
|
15
|
+
|
|
16
|
+
export const _HLSPlayerControls: React.FC = () => {
|
|
17
|
+
// const isHLSStreaming = useIsHLSStreamingOn();
|
|
18
|
+
// const isStreamUrlPresent = useSelector(
|
|
19
|
+
// (state: RootState) =>
|
|
20
|
+
// !!state.hmsStates.room?.hlsStreamingState.variants?.[0]?.hlsStreamUrl
|
|
21
|
+
// );
|
|
22
|
+
const dispatch = useDispatch();
|
|
23
|
+
const hlsFullScreen = useSelector(
|
|
24
|
+
(state: RootState) => state.app.hlsFullScreen
|
|
25
|
+
);
|
|
26
|
+
const { handleModalVisibleType } = useModalType();
|
|
27
|
+
|
|
28
|
+
const handleCloseBtnPress = () => {
|
|
29
|
+
handleModalVisibleType(ModalTypes.LEAVE_ROOM);
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
// const handleCCBtnPress = () => {
|
|
33
|
+
// //
|
|
34
|
+
// };
|
|
35
|
+
|
|
36
|
+
const toggleFullScreen = () => {
|
|
37
|
+
dispatch(setHlsFullScreen(!hlsFullScreen));
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
return (
|
|
41
|
+
<View style={styles.container}>
|
|
42
|
+
<View style={styles.controlsRow}>
|
|
43
|
+
<TouchableOpacity onPress={handleCloseBtnPress} style={styles.icon}>
|
|
44
|
+
<CloseIcon size="medium" />
|
|
45
|
+
</TouchableOpacity>
|
|
46
|
+
|
|
47
|
+
{/* <View style={[styles.normalRow, styles.gap]}>
|
|
48
|
+
<TouchableOpacity
|
|
49
|
+
onPress={handleCCBtnPress}
|
|
50
|
+
style={[styles.icon, styles.gap]}
|
|
51
|
+
>
|
|
52
|
+
<CCIcon size="medium" enabled={true} />
|
|
53
|
+
</TouchableOpacity>
|
|
54
|
+
</View> */}
|
|
55
|
+
</View>
|
|
56
|
+
|
|
57
|
+
<View style={styles.controlsRow}>
|
|
58
|
+
<View />
|
|
59
|
+
|
|
60
|
+
<View style={[styles.normalRow, styles.gap]}>
|
|
61
|
+
<TouchableOpacity onPress={toggleFullScreen} style={styles.icon}>
|
|
62
|
+
{hlsFullScreen ? (
|
|
63
|
+
<MinimizeIcon size="medium" />
|
|
64
|
+
) : (
|
|
65
|
+
<MaximizeIcon size="medium" />
|
|
66
|
+
)}
|
|
67
|
+
</TouchableOpacity>
|
|
68
|
+
</View>
|
|
69
|
+
</View>
|
|
70
|
+
</View>
|
|
71
|
+
);
|
|
72
|
+
};
|
|
73
|
+
|
|
74
|
+
export const HLSPlayerControls = React.memo(_HLSPlayerControls);
|
|
75
|
+
|
|
76
|
+
const styles = StyleSheet.create({
|
|
77
|
+
container: {
|
|
78
|
+
position: 'absolute',
|
|
79
|
+
width: '100%',
|
|
80
|
+
height: '100%',
|
|
81
|
+
zIndex: 5,
|
|
82
|
+
justifyContent: 'space-between',
|
|
83
|
+
},
|
|
84
|
+
controlsRow: {
|
|
85
|
+
flexDirection: 'row',
|
|
86
|
+
alignItems: 'center',
|
|
87
|
+
justifyContent: 'space-between',
|
|
88
|
+
marginHorizontal: 8,
|
|
89
|
+
},
|
|
90
|
+
normalRow: {
|
|
91
|
+
flexDirection: 'row',
|
|
92
|
+
alignItems: 'center',
|
|
93
|
+
},
|
|
94
|
+
icon: {
|
|
95
|
+
padding: 4,
|
|
96
|
+
alignSelf: 'flex-start',
|
|
97
|
+
},
|
|
98
|
+
gap: {
|
|
99
|
+
marginLeft: 16,
|
|
100
|
+
},
|
|
101
|
+
});
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { Text } from 'react-native';
|
|
3
|
+
import type { TextProps } from 'react-native';
|
|
4
|
+
import { useSelector } from 'react-redux';
|
|
5
|
+
import { HMSRecordingState } from '@100mslive/react-native-hms';
|
|
6
|
+
|
|
7
|
+
import type { RootState } from '../redux';
|
|
8
|
+
import { useIsAnyRecordingOn, useIsAnyRecordingPaused } from '../hooks-sdk';
|
|
9
|
+
|
|
10
|
+
interface HLSRecordingStatusTextProps extends TextProps {
|
|
11
|
+
prefix?: React.ReactElement;
|
|
12
|
+
suffix?: React.ReactElement;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export const HLSRecordingStatusText: React.FC<HLSRecordingStatusTextProps> = ({
|
|
16
|
+
prefix,
|
|
17
|
+
suffix,
|
|
18
|
+
...restProps
|
|
19
|
+
}) => {
|
|
20
|
+
const isRecordingOn = useIsAnyRecordingOn();
|
|
21
|
+
const isRecordingPaused = useIsAnyRecordingPaused();
|
|
22
|
+
const startingOrStoppingRecording = useSelector(
|
|
23
|
+
(state: RootState) =>
|
|
24
|
+
state.app.startingOrStoppingRecording ||
|
|
25
|
+
state.hmsStates.room?.browserRecordingState.state ===
|
|
26
|
+
HMSRecordingState.STARTING ||
|
|
27
|
+
state.hmsStates.room?.serverRecordingState.state ===
|
|
28
|
+
HMSRecordingState.STARTING ||
|
|
29
|
+
state.hmsStates.room?.hlsRecordingState?.state ===
|
|
30
|
+
HMSRecordingState.STARTING
|
|
31
|
+
);
|
|
32
|
+
|
|
33
|
+
if (startingOrStoppingRecording || !(isRecordingPaused && isRecordingOn)) {
|
|
34
|
+
return null;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
return (
|
|
38
|
+
<>
|
|
39
|
+
{prefix}
|
|
40
|
+
<Text {...restProps}>
|
|
41
|
+
{isRecordingPaused
|
|
42
|
+
? 'Recording Paused'
|
|
43
|
+
: isRecordingOn
|
|
44
|
+
? 'Recording'
|
|
45
|
+
: ''}
|
|
46
|
+
</Text>
|
|
47
|
+
{suffix}
|
|
48
|
+
</>
|
|
49
|
+
);
|
|
50
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { View } from 'react-native';
|
|
3
|
+
|
|
4
|
+
import { useCanShowRoomOptionsButton } from '../hooks-util';
|
|
5
|
+
import { HMSRoomOptions } from './HMSRoomOptions';
|
|
6
|
+
|
|
7
|
+
export const HLSRoomOptionsButton = () => {
|
|
8
|
+
const canShowOptions = useCanShowRoomOptionsButton();
|
|
9
|
+
|
|
10
|
+
if (!canShowOptions) {
|
|
11
|
+
return null;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
return (
|
|
15
|
+
<View style={{ marginLeft: 12 }}>
|
|
16
|
+
<HMSRoomOptions />
|
|
17
|
+
</View>
|
|
18
|
+
);
|
|
19
|
+
};
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { StyleSheet, Text } from 'react-native';
|
|
3
|
+
|
|
4
|
+
import { useHMSRoomStyleSheet } from '../hooks-util';
|
|
5
|
+
import { useSelector } from 'react-redux';
|
|
6
|
+
import type { RootState } from '../redux';
|
|
7
|
+
|
|
8
|
+
export interface HLSStreamStartedTimeProps {
|
|
9
|
+
prefix?: React.ReactElement;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export const HLSStreamStartedTime: React.FC<HLSStreamStartedTimeProps> = ({
|
|
13
|
+
prefix,
|
|
14
|
+
}) => {
|
|
15
|
+
const streamStartedTime = useSelector(
|
|
16
|
+
(state: RootState) =>
|
|
17
|
+
state.hmsStates.room?.hlsStreamingState.variants?.[0]?.startedAt
|
|
18
|
+
);
|
|
19
|
+
const [streamStartedBeforeMillis, setStreamStartedBeforeMillis] =
|
|
20
|
+
React.useState(0);
|
|
21
|
+
|
|
22
|
+
React.useEffect(() => {
|
|
23
|
+
if (streamStartedTime) {
|
|
24
|
+
const beforeMilliSecs = Date.now() - streamStartedTime.getTime();
|
|
25
|
+
|
|
26
|
+
setStreamStartedBeforeMillis(beforeMilliSecs);
|
|
27
|
+
|
|
28
|
+
const intervalId = setInterval(() => {
|
|
29
|
+
setStreamStartedBeforeMillis((secs) => {
|
|
30
|
+
secs += 1000;
|
|
31
|
+
return secs;
|
|
32
|
+
});
|
|
33
|
+
}, 1000);
|
|
34
|
+
|
|
35
|
+
return () => {
|
|
36
|
+
clearInterval(intervalId);
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
}, [streamStartedTime]);
|
|
40
|
+
|
|
41
|
+
const hmsRoomStyles = useHMSRoomStyleSheet((theme, typography) => ({
|
|
42
|
+
regularSurfaceMedium: {
|
|
43
|
+
fontFamily: `${typography.font_family}-Regular`,
|
|
44
|
+
color: theme.palette.on_surface_medium,
|
|
45
|
+
},
|
|
46
|
+
}));
|
|
47
|
+
|
|
48
|
+
if (!streamStartedTime) {
|
|
49
|
+
return null;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
const { h, min, sec } = msToTime(streamStartedBeforeMillis);
|
|
53
|
+
|
|
54
|
+
return (
|
|
55
|
+
<>
|
|
56
|
+
{prefix}
|
|
57
|
+
|
|
58
|
+
<Text style={[styles.subtitle, hmsRoomStyles.regularSurfaceMedium]}>
|
|
59
|
+
Started {h > 0 ? `${h} h` : min > 0 ? `${min} min` : `${sec} sec`} ago
|
|
60
|
+
</Text>
|
|
61
|
+
</>
|
|
62
|
+
);
|
|
63
|
+
};
|
|
64
|
+
|
|
65
|
+
const styles = StyleSheet.create({
|
|
66
|
+
subtitle: {
|
|
67
|
+
fontSize: 12,
|
|
68
|
+
lineHeight: 16,
|
|
69
|
+
},
|
|
70
|
+
});
|
|
71
|
+
|
|
72
|
+
function msToTime(duration: number) {
|
|
73
|
+
return {
|
|
74
|
+
ms: duration,
|
|
75
|
+
sec: Math.floor(duration / 1000),
|
|
76
|
+
min: Math.floor(duration / 1000 / 60),
|
|
77
|
+
h: Math.floor(duration / 1000 / 60 / 60),
|
|
78
|
+
};
|
|
79
|
+
}
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { StyleSheet, View } from 'react-native';
|
|
3
|
+
import { useSelector } from 'react-redux';
|
|
4
|
+
import { SafeAreaView } from 'react-native-safe-area-context';
|
|
5
|
+
|
|
6
|
+
import { HMSStatusBar } from './StatusBar';
|
|
7
|
+
import { HLSPlayerContainer } from './HLSPlayerContainer';
|
|
8
|
+
import { LeaveRoomBottomSheet } from './LeaveRoomBottomSheet';
|
|
9
|
+
import { PreviewForRoleChangeModal } from './PreviewForRoleChangeModal';
|
|
10
|
+
import { ChatAndParticipantsBottomSheet } from './ChatAndParticipants';
|
|
11
|
+
import { DefaultModal } from './DefaultModal';
|
|
12
|
+
import { ModalTypes, PipModes } from '../utils/types';
|
|
13
|
+
import {
|
|
14
|
+
useHMSRoleChangeRequest,
|
|
15
|
+
useHMSRoomStyleSheet,
|
|
16
|
+
useHMSSessionStoreListeners,
|
|
17
|
+
useModalType,
|
|
18
|
+
} from '../hooks-util';
|
|
19
|
+
import { ChangeAspectRatio } from './Modals';
|
|
20
|
+
import type { RootState } from '../redux';
|
|
21
|
+
import { HLSChatView } from './HLSChatView';
|
|
22
|
+
import { useIsLandscapeOrientation } from '../utils/dimension';
|
|
23
|
+
|
|
24
|
+
interface HLSViewerScreenContentProps {}
|
|
25
|
+
|
|
26
|
+
export const HLSViewerScreenContent: React.FC<
|
|
27
|
+
HLSViewerScreenContentProps
|
|
28
|
+
> = ({}) => {
|
|
29
|
+
const isPipModeActive = useSelector(
|
|
30
|
+
(state: RootState) => state.app.pipModeStatus === PipModes.ACTIVE
|
|
31
|
+
);
|
|
32
|
+
const isLandscapeOrientation = useIsLandscapeOrientation();
|
|
33
|
+
|
|
34
|
+
const hmsRoomStyles = useHMSRoomStyleSheet((theme) => ({
|
|
35
|
+
container: {
|
|
36
|
+
backgroundColor: theme.palette.surface_dim,
|
|
37
|
+
},
|
|
38
|
+
}));
|
|
39
|
+
|
|
40
|
+
const {
|
|
41
|
+
modalVisibleType: modalVisible,
|
|
42
|
+
handleModalVisibleType: setModalVisible,
|
|
43
|
+
} = useModalType();
|
|
44
|
+
|
|
45
|
+
useHMSSessionStoreListeners();
|
|
46
|
+
|
|
47
|
+
useHMSRoleChangeRequest();
|
|
48
|
+
|
|
49
|
+
return (
|
|
50
|
+
<View style={[styles.container, hmsRoomStyles.container]}>
|
|
51
|
+
<HMSStatusBar barStyle={'light-content'} />
|
|
52
|
+
|
|
53
|
+
<SafeAreaView
|
|
54
|
+
style={[
|
|
55
|
+
styles.container,
|
|
56
|
+
hmsRoomStyles.container,
|
|
57
|
+
isLandscapeOrientation ? styles.landscapeContainer : null,
|
|
58
|
+
]}
|
|
59
|
+
>
|
|
60
|
+
<HLSPlayerContainer />
|
|
61
|
+
|
|
62
|
+
<HLSChatView />
|
|
63
|
+
</SafeAreaView>
|
|
64
|
+
|
|
65
|
+
{isPipModeActive ? null : (
|
|
66
|
+
<>
|
|
67
|
+
<LeaveRoomBottomSheet />
|
|
68
|
+
|
|
69
|
+
<PreviewForRoleChangeModal />
|
|
70
|
+
|
|
71
|
+
<ChatAndParticipantsBottomSheet />
|
|
72
|
+
|
|
73
|
+
<DefaultModal
|
|
74
|
+
modalPosiion="center"
|
|
75
|
+
modalVisible={modalVisible === ModalTypes.HLS_PLAYER_ASPECT_RATIO}
|
|
76
|
+
setModalVisible={() => setModalVisible(ModalTypes.DEFAULT)}
|
|
77
|
+
>
|
|
78
|
+
<ChangeAspectRatio
|
|
79
|
+
cancelModal={() => setModalVisible(ModalTypes.DEFAULT)}
|
|
80
|
+
/>
|
|
81
|
+
</DefaultModal>
|
|
82
|
+
</>
|
|
83
|
+
)}
|
|
84
|
+
</View>
|
|
85
|
+
);
|
|
86
|
+
};
|
|
87
|
+
|
|
88
|
+
const styles = StyleSheet.create({
|
|
89
|
+
container: {
|
|
90
|
+
flexGrow: 1,
|
|
91
|
+
position: 'relative',
|
|
92
|
+
},
|
|
93
|
+
landscapeContainer: {
|
|
94
|
+
flexDirection: 'row',
|
|
95
|
+
},
|
|
96
|
+
});
|