@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
|
@@ -20,7 +20,11 @@ import { HMSPreviewTile } from './HMSPreviewTile';
|
|
|
20
20
|
import { HMSPreviewTitle } from './HMSPreviewTitle';
|
|
21
21
|
import { HMSManageAudioOutput } from './HMSManageAudioOutput';
|
|
22
22
|
import { HMSPreviewNetworkQuality } from './HMSPreviewNetworkQuality';
|
|
23
|
-
import {
|
|
23
|
+
import {
|
|
24
|
+
useCanPublishAudio,
|
|
25
|
+
useCanPublishVideo,
|
|
26
|
+
useHMSActions,
|
|
27
|
+
} from '../hooks-sdk';
|
|
24
28
|
import { HMSPreviewHLSLiveIndicator } from './HMSPreviewHLSLiveIndicator';
|
|
25
29
|
import { CompanyLogo } from './CompanyLogo';
|
|
26
30
|
import {
|
|
@@ -30,6 +34,9 @@ import {
|
|
|
30
34
|
} from '../hooks-util';
|
|
31
35
|
import { HMSKeyboardAvoidingView } from './HMSKeyboardAvoidingView';
|
|
32
36
|
import { hexToRgbA } from '../utils/theme';
|
|
37
|
+
import { HMSManageNoiseCancellation } from './HMSManageNoiseCancellation';
|
|
38
|
+
import { useSelector } from 'react-redux';
|
|
39
|
+
import type { RootState } from '../redux';
|
|
33
40
|
|
|
34
41
|
const backButtonEdges = ['top'] as const;
|
|
35
42
|
const headerEdges = ['top', 'left', 'right'] as const;
|
|
@@ -88,6 +95,35 @@ export const Preview = ({
|
|
|
88
95
|
setupAudioVideoOnPreview().then((r) => console.log(r));
|
|
89
96
|
}, []);
|
|
90
97
|
|
|
98
|
+
const canPublishAudio = useCanPublishAudio();
|
|
99
|
+
const isLocalAudioMuted = useSelector(
|
|
100
|
+
(state: RootState) => state.hmsStates.isLocalAudioMuted
|
|
101
|
+
);
|
|
102
|
+
|
|
103
|
+
const [isNCAvailable, setIsNCAvailable] = React.useState(false);
|
|
104
|
+
|
|
105
|
+
const noiseCancellationPlugin = useSelector(
|
|
106
|
+
(state: RootState) => state.hmsStates.noiseCancellationPlugin
|
|
107
|
+
);
|
|
108
|
+
|
|
109
|
+
useEffect(() => {
|
|
110
|
+
if (noiseCancellationPlugin) {
|
|
111
|
+
let isMounted = true;
|
|
112
|
+
|
|
113
|
+
noiseCancellationPlugin.isNoiseCancellationAvailable().then((r) => {
|
|
114
|
+
if (isMounted) {
|
|
115
|
+
setIsNCAvailable(r);
|
|
116
|
+
}
|
|
117
|
+
});
|
|
118
|
+
return () => {
|
|
119
|
+
isMounted = false;
|
|
120
|
+
};
|
|
121
|
+
}
|
|
122
|
+
}, [noiseCancellationPlugin]);
|
|
123
|
+
|
|
124
|
+
const showNoiseCancellationButton =
|
|
125
|
+
canPublishAudio && !isLocalAudioMuted && isNCAvailable;
|
|
126
|
+
|
|
91
127
|
return (
|
|
92
128
|
<TouchableWithoutFeedback onPress={Keyboard.dismiss}>
|
|
93
129
|
<View style={[styles.container, hmsRoomStyles.container]}>
|
|
@@ -138,13 +174,15 @@ export const Preview = ({
|
|
|
138
174
|
<View style={styles.micAndCameraControls}>
|
|
139
175
|
<HMSManageLocalAudio />
|
|
140
176
|
|
|
141
|
-
<View style={styles.
|
|
177
|
+
<View style={styles.manageLocalButtonWrapper}>
|
|
142
178
|
<HMSManageLocalVideo />
|
|
143
179
|
</View>
|
|
144
180
|
|
|
145
181
|
<HMSManageCameraRotation />
|
|
146
182
|
</View>
|
|
147
183
|
|
|
184
|
+
{showNoiseCancellationButton && <HMSManageNoiseCancellation />}
|
|
185
|
+
|
|
148
186
|
<HMSManageAudioOutput />
|
|
149
187
|
</View>
|
|
150
188
|
)}
|
|
@@ -201,8 +239,9 @@ const styles = StyleSheet.create({
|
|
|
201
239
|
},
|
|
202
240
|
micAndCameraControls: {
|
|
203
241
|
flexDirection: 'row',
|
|
242
|
+
alignItems: 'center',
|
|
204
243
|
},
|
|
205
|
-
|
|
244
|
+
manageLocalButtonWrapper: {
|
|
206
245
|
marginHorizontal: 16,
|
|
207
246
|
},
|
|
208
247
|
joinButtonRow: {
|
|
@@ -16,10 +16,12 @@ import {
|
|
|
16
16
|
PollVoteIcon,
|
|
17
17
|
RecordingIcon,
|
|
18
18
|
ScreenShareIcon,
|
|
19
|
+
WaveIcon,
|
|
19
20
|
} from '../Icons';
|
|
20
21
|
import { BottomSheet, useBottomSheetActions } from './BottomSheet';
|
|
21
22
|
import {
|
|
22
23
|
isPublishingAllowed,
|
|
24
|
+
useHMSConferencingScreenConfig,
|
|
23
25
|
useHMSLayoutConfig,
|
|
24
26
|
useHMSRoomColorPalette,
|
|
25
27
|
useHMSRoomStyleSheet,
|
|
@@ -27,6 +29,7 @@ import {
|
|
|
27
29
|
useStartRecording,
|
|
28
30
|
} from '../hooks-util';
|
|
29
31
|
import {
|
|
32
|
+
useCanPublishAudio,
|
|
30
33
|
useCanPublishScreen,
|
|
31
34
|
useHMSActions,
|
|
32
35
|
useIsAnyStreamingOn,
|
|
@@ -183,6 +186,72 @@ export const RoomSettingsModalContent: React.FC<
|
|
|
183
186
|
};
|
|
184
187
|
// #endregion
|
|
185
188
|
|
|
189
|
+
// #region Noise Cancellation Plugin
|
|
190
|
+
const noiseCancellationPlugin = useSelector(
|
|
191
|
+
(state: RootState) => state.hmsStates.noiseCancellationPlugin
|
|
192
|
+
);
|
|
193
|
+
const [isNoiseCancellationEnabled, setIsNoiseCancellationEnabled] =
|
|
194
|
+
React.useState(false);
|
|
195
|
+
const [isNoiseCancellationAvailable, setIsNoiseCancellationAvailable] =
|
|
196
|
+
React.useState(false);
|
|
197
|
+
|
|
198
|
+
const canPublishAudio = useCanPublishAudio();
|
|
199
|
+
|
|
200
|
+
const isLocalAudioMuted = useSelector(
|
|
201
|
+
(state: RootState) => state.hmsStates.isLocalAudioMuted
|
|
202
|
+
);
|
|
203
|
+
|
|
204
|
+
const showNoiseCancellationButton =
|
|
205
|
+
canPublishAudio && isNoiseCancellationAvailable;
|
|
206
|
+
|
|
207
|
+
React.useEffect(() => {
|
|
208
|
+
if (noiseCancellationPlugin) {
|
|
209
|
+
let mounted = true;
|
|
210
|
+
|
|
211
|
+
Promise.all(
|
|
212
|
+
[
|
|
213
|
+
noiseCancellationPlugin.isEnabled(),
|
|
214
|
+
noiseCancellationPlugin.isNoiseCancellationAvailable(),
|
|
215
|
+
].map((promise) =>
|
|
216
|
+
promise
|
|
217
|
+
.then((value) => ({ status: 'fulfilled' as const, value }))
|
|
218
|
+
.catch((reason) => ({ status: 'rejected' as const, reason }))
|
|
219
|
+
)
|
|
220
|
+
).then((results) => {
|
|
221
|
+
const [isEnabledResult, isAvailableResult] = results;
|
|
222
|
+
if (mounted) {
|
|
223
|
+
if (isEnabledResult && isEnabledResult.status === 'fulfilled') {
|
|
224
|
+
setIsNoiseCancellationEnabled(isEnabledResult.value);
|
|
225
|
+
}
|
|
226
|
+
if (isAvailableResult && isAvailableResult.status === 'fulfilled') {
|
|
227
|
+
setIsNoiseCancellationAvailable(isAvailableResult.value);
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
});
|
|
231
|
+
|
|
232
|
+
return () => {
|
|
233
|
+
mounted = false;
|
|
234
|
+
};
|
|
235
|
+
}
|
|
236
|
+
}, [noiseCancellationPlugin]);
|
|
237
|
+
|
|
238
|
+
const handleNoiseCancellation = () => {
|
|
239
|
+
// Register callback to be called when bottom sheet is hiddden
|
|
240
|
+
registerOnModalHideAction(() => {
|
|
241
|
+
if (!noiseCancellationPlugin || !isNoiseCancellationAvailable) return;
|
|
242
|
+
|
|
243
|
+
if (isNoiseCancellationEnabled) {
|
|
244
|
+
noiseCancellationPlugin.disable();
|
|
245
|
+
} else {
|
|
246
|
+
noiseCancellationPlugin.enable();
|
|
247
|
+
}
|
|
248
|
+
});
|
|
249
|
+
|
|
250
|
+
// Close the current bottom sheet
|
|
251
|
+
closeRoomSettingsModal();
|
|
252
|
+
};
|
|
253
|
+
// #endregion
|
|
254
|
+
|
|
186
255
|
const changeName = () => {
|
|
187
256
|
// Register callback to be called when bottom sheet is hiddden
|
|
188
257
|
registerOnModalHideAction(() => {
|
|
@@ -207,6 +276,10 @@ export const RoomSettingsModalContent: React.FC<
|
|
|
207
276
|
!!layoutConfig?.screens?.conferencing?.default?.elements?.brb
|
|
208
277
|
);
|
|
209
278
|
|
|
279
|
+
const canRaiseHand = useHMSConferencingScreenConfig(
|
|
280
|
+
(confScreenConfig) => !!confScreenConfig?.elements?.hand_raise
|
|
281
|
+
);
|
|
282
|
+
|
|
210
283
|
const isOnStage = useHMSLayoutConfig((layoutConfig) => {
|
|
211
284
|
return !!layoutConfig?.screens?.conferencing?.default?.elements
|
|
212
285
|
?.on_stage_exp;
|
|
@@ -217,7 +290,7 @@ export const RoomSettingsModalContent: React.FC<
|
|
|
217
290
|
return (allowed && allowed.length > 0) ?? false;
|
|
218
291
|
});
|
|
219
292
|
|
|
220
|
-
const showHandRaiseIcon = !isOnStage && allowedToPublish;
|
|
293
|
+
const showHandRaiseIcon = canRaiseHand && !isOnStage && allowedToPublish;
|
|
221
294
|
|
|
222
295
|
return (
|
|
223
296
|
<View>
|
|
@@ -321,6 +394,17 @@ export const RoomSettingsModalContent: React.FC<
|
|
|
321
394
|
isActive: false,
|
|
322
395
|
hide: !canReadOrWritePoll,
|
|
323
396
|
},
|
|
397
|
+
{
|
|
398
|
+
id: 'noise-cancellation',
|
|
399
|
+
icon: <WaveIcon style={{ width: 20, height: 20 }} />,
|
|
400
|
+
label: isNoiseCancellationEnabled
|
|
401
|
+
? 'Noise Reduced'
|
|
402
|
+
: 'Reduce Noise',
|
|
403
|
+
pressHandler: handleNoiseCancellation,
|
|
404
|
+
isActive: isNoiseCancellationEnabled,
|
|
405
|
+
hide: !showNoiseCancellationButton,
|
|
406
|
+
disabled: isLocalAudioMuted,
|
|
407
|
+
},
|
|
324
408
|
].filter((itm) => !itm.hide),
|
|
325
409
|
true
|
|
326
410
|
).map((itm, idx) => {
|
package/src/components/styles.ts
CHANGED
package/src/hooks-util.ts
CHANGED
|
@@ -155,7 +155,16 @@ import { getRoomLayout } from './modules/HMSManager';
|
|
|
155
155
|
import { DEFAULT_THEME, DEFAULT_TYPOGRAPHY } from './utils/theme';
|
|
156
156
|
import { NotificationTypes } from './types';
|
|
157
157
|
import { KeyboardState, useSharedValue } from 'react-native-reanimated';
|
|
158
|
-
import {
|
|
158
|
+
import {
|
|
159
|
+
useCanPublishAudio,
|
|
160
|
+
useCanPublishScreen,
|
|
161
|
+
useCanPublishVideo,
|
|
162
|
+
useHMSActions,
|
|
163
|
+
} from './hooks-sdk';
|
|
164
|
+
import {
|
|
165
|
+
useSafeAreaFrame,
|
|
166
|
+
useSafeAreaInsets,
|
|
167
|
+
} from 'react-native-safe-area-context';
|
|
159
168
|
|
|
160
169
|
export const useHMSListeners = (
|
|
161
170
|
setPeerTrackNodes: React.Dispatch<React.SetStateAction<PeerTrackNode[]>>
|
|
@@ -1033,7 +1042,7 @@ export const useHMSRoleChangeRequest = (
|
|
|
1033
1042
|
type SessionStoreListeners = Array<{ remove: () => void }>;
|
|
1034
1043
|
|
|
1035
1044
|
export const useHMSSessionStoreListeners = (
|
|
1036
|
-
gridViewRef
|
|
1045
|
+
gridViewRef?: React.MutableRefObject<GridViewRefAttrs | null>
|
|
1037
1046
|
) => {
|
|
1038
1047
|
const store = useStore<RootState>();
|
|
1039
1048
|
const dispatch = useDispatch();
|
|
@@ -1054,7 +1063,7 @@ export const useHMSSessionStoreListeners = (
|
|
|
1054
1063
|
// set value to the state to rerender the component to reflect changes
|
|
1055
1064
|
dispatch(saveUserData({ spotlightTrackId: id }));
|
|
1056
1065
|
// Scroll to start of the list
|
|
1057
|
-
gridViewRef
|
|
1066
|
+
gridViewRef?.current
|
|
1058
1067
|
?.getRegularTilesFlatlistRef()
|
|
1059
1068
|
.current?.scrollToOffset({ animated: true, offset: 0 });
|
|
1060
1069
|
}
|
|
@@ -1831,6 +1840,7 @@ export const useHMSConfig = () => {
|
|
|
1831
1840
|
};
|
|
1832
1841
|
|
|
1833
1842
|
export const useShowChatAndParticipants = () => {
|
|
1843
|
+
const isHLSViewer = useIsHLSViewer();
|
|
1834
1844
|
const dispatch = useDispatch();
|
|
1835
1845
|
const { modalVisibleType, handleModalVisibleType: setModalVisible } =
|
|
1836
1846
|
useModalType();
|
|
@@ -1839,7 +1849,8 @@ export const useShowChatAndParticipants = () => {
|
|
|
1839
1849
|
(chatConfig) => chatConfig?.is_overlay
|
|
1840
1850
|
);
|
|
1841
1851
|
const canShowChat = useHMSConferencingScreenConfig(
|
|
1842
|
-
(conferencingScreenConfig) =>
|
|
1852
|
+
(conferencingScreenConfig) =>
|
|
1853
|
+
!!conferencingScreenConfig?.elements?.chat && !isHLSViewer
|
|
1843
1854
|
);
|
|
1844
1855
|
const canShowParticipants = useHMSConferencingScreenConfig(
|
|
1845
1856
|
(conferencingScreenConfig) =>
|
|
@@ -2551,15 +2562,16 @@ export const useBackButtonPress = () => {
|
|
|
2551
2562
|
};
|
|
2552
2563
|
|
|
2553
2564
|
export const useLandscapeImmersiveMode = () => {
|
|
2565
|
+
const isHLSViewer = useIsHLSViewer();
|
|
2554
2566
|
const isLandscapeOrientation = useIsLandscapeOrientation();
|
|
2555
2567
|
|
|
2556
2568
|
useEffect(() => {
|
|
2557
|
-
if (isLandscapeOrientation) {
|
|
2569
|
+
if (!isHLSViewer && isLandscapeOrientation) {
|
|
2558
2570
|
WindowController.hideSystemBars();
|
|
2559
2571
|
|
|
2560
2572
|
return WindowController.showSystemBars;
|
|
2561
2573
|
}
|
|
2562
|
-
}, [isLandscapeOrientation]);
|
|
2574
|
+
}, [isHLSViewer, isLandscapeOrientation]);
|
|
2563
2575
|
};
|
|
2564
2576
|
|
|
2565
2577
|
export const useHLSCuedPolls = () => {
|
|
@@ -3034,3 +3046,170 @@ export const useAllowBlockingPeerFromChat = () => {
|
|
|
3034
3046
|
(config) => config?.real_time_controls?.can_block_user ?? false
|
|
3035
3047
|
);
|
|
3036
3048
|
};
|
|
3049
|
+
|
|
3050
|
+
export const useCanShowRoomOptionsButton = () => {
|
|
3051
|
+
const canPublishAudio = useCanPublishAudio();
|
|
3052
|
+
const canPublishVideo = useCanPublishVideo();
|
|
3053
|
+
const canPublishScreen = useCanPublishScreen();
|
|
3054
|
+
|
|
3055
|
+
const isViewer = !(canPublishAudio || canPublishVideo || canPublishScreen);
|
|
3056
|
+
|
|
3057
|
+
const editUsernameDisabled = useSelector(
|
|
3058
|
+
(state: RootState) => state.app.editUsernameDisabled
|
|
3059
|
+
);
|
|
3060
|
+
|
|
3061
|
+
const [isNoiseCancellationAvailable, setIsNoiseCancellationAvailable] =
|
|
3062
|
+
useState(false);
|
|
3063
|
+
const noiseCancellationPlugin = useSelector(
|
|
3064
|
+
(state: RootState) => state.hmsStates.noiseCancellationPlugin
|
|
3065
|
+
);
|
|
3066
|
+
useEffect(() => {
|
|
3067
|
+
if (noiseCancellationPlugin) {
|
|
3068
|
+
let mounted = true;
|
|
3069
|
+
|
|
3070
|
+
noiseCancellationPlugin
|
|
3071
|
+
.isNoiseCancellationAvailable()
|
|
3072
|
+
.then((isAvailable) => {
|
|
3073
|
+
if (mounted) {
|
|
3074
|
+
setIsNoiseCancellationAvailable(isAvailable);
|
|
3075
|
+
}
|
|
3076
|
+
});
|
|
3077
|
+
|
|
3078
|
+
return () => {
|
|
3079
|
+
mounted = false;
|
|
3080
|
+
};
|
|
3081
|
+
}
|
|
3082
|
+
}, [noiseCancellationPlugin]);
|
|
3083
|
+
|
|
3084
|
+
const canShowBRB = useHMSLayoutConfig(
|
|
3085
|
+
(layoutConfig) =>
|
|
3086
|
+
!!layoutConfig?.screens?.conferencing?.default?.elements?.brb
|
|
3087
|
+
);
|
|
3088
|
+
|
|
3089
|
+
const canStartRecording = useSelector(
|
|
3090
|
+
(state: RootState) =>
|
|
3091
|
+
!!state.hmsStates.localPeer?.role?.permissions?.browserRecording
|
|
3092
|
+
);
|
|
3093
|
+
|
|
3094
|
+
const canReadOrWritePoll = useSelector((state: RootState) => {
|
|
3095
|
+
const permissions = state.hmsStates.localPeer?.role?.permissions;
|
|
3096
|
+
return permissions?.pollRead || permissions?.pollWrite;
|
|
3097
|
+
});
|
|
3098
|
+
|
|
3099
|
+
const { canShowParticipants } = useShowChatAndParticipants();
|
|
3100
|
+
|
|
3101
|
+
const canEditUsernameFromRoomModal = isViewer && !editUsernameDisabled;
|
|
3102
|
+
|
|
3103
|
+
const canShowOptions =
|
|
3104
|
+
canShowParticipants ||
|
|
3105
|
+
canPublishScreen ||
|
|
3106
|
+
canShowBRB ||
|
|
3107
|
+
canStartRecording ||
|
|
3108
|
+
canEditUsernameFromRoomModal ||
|
|
3109
|
+
canReadOrWritePoll ||
|
|
3110
|
+
isNoiseCancellationAvailable;
|
|
3111
|
+
|
|
3112
|
+
return canShowOptions;
|
|
3113
|
+
};
|
|
3114
|
+
|
|
3115
|
+
export const useHLSViewsConstraints = () => {
|
|
3116
|
+
const hlsFullScreen = useSelector(
|
|
3117
|
+
(state: RootState) => state.app.hlsFullScreen
|
|
3118
|
+
);
|
|
3119
|
+
const isLandscapeOrientation = useIsLandscapeOrientation();
|
|
3120
|
+
const { width: safeAreaWidthFrame, height: safeAreaHeightFrame } =
|
|
3121
|
+
useSafeAreaFrame();
|
|
3122
|
+
const {
|
|
3123
|
+
top: topInset,
|
|
3124
|
+
bottom: bottomInset,
|
|
3125
|
+
left: leftInset,
|
|
3126
|
+
right: rightInset,
|
|
3127
|
+
} = useSafeAreaInsets();
|
|
3128
|
+
|
|
3129
|
+
const playerWrapperConstraints = hlsFullScreen
|
|
3130
|
+
? {
|
|
3131
|
+
width: safeAreaWidthFrame - leftInset - rightInset,
|
|
3132
|
+
height: isLandscapeOrientation
|
|
3133
|
+
? safeAreaHeightFrame
|
|
3134
|
+
: safeAreaHeightFrame - topInset - bottomInset,
|
|
3135
|
+
}
|
|
3136
|
+
: {
|
|
3137
|
+
width: isLandscapeOrientation
|
|
3138
|
+
? (safeAreaWidthFrame - leftInset - rightInset) * 0.6
|
|
3139
|
+
: safeAreaWidthFrame,
|
|
3140
|
+
height: isLandscapeOrientation
|
|
3141
|
+
? safeAreaHeightFrame
|
|
3142
|
+
: (safeAreaWidthFrame * 9) / 16,
|
|
3143
|
+
};
|
|
3144
|
+
|
|
3145
|
+
const chatWrapperConstraints = {
|
|
3146
|
+
width: isLandscapeOrientation
|
|
3147
|
+
? safeAreaWidthFrame - playerWrapperConstraints.width - leftInset
|
|
3148
|
+
: playerWrapperConstraints.width,
|
|
3149
|
+
height: isLandscapeOrientation
|
|
3150
|
+
? playerWrapperConstraints.height
|
|
3151
|
+
: safeAreaHeightFrame - playerWrapperConstraints.height - topInset,
|
|
3152
|
+
};
|
|
3153
|
+
|
|
3154
|
+
const descriptionPaneConstraints = chatWrapperConstraints;
|
|
3155
|
+
|
|
3156
|
+
return {
|
|
3157
|
+
playerWrapperConstraints,
|
|
3158
|
+
chatWrapperConstraints,
|
|
3159
|
+
descriptionPaneConstraints,
|
|
3160
|
+
};
|
|
3161
|
+
};
|
|
3162
|
+
|
|
3163
|
+
export const useHLSPlayerConstraints = () => {
|
|
3164
|
+
const hlsFullScreen = useSelector(
|
|
3165
|
+
(state: RootState) => state.app.hlsFullScreen
|
|
3166
|
+
);
|
|
3167
|
+
const isLandscapeOrientation = useIsLandscapeOrientation();
|
|
3168
|
+
|
|
3169
|
+
const resolution = useHMSHLSPlayerResolution();
|
|
3170
|
+
|
|
3171
|
+
const { playerWrapperConstraints } = useHLSViewsConstraints();
|
|
3172
|
+
|
|
3173
|
+
const wrapperWidth = playerWrapperConstraints.width;
|
|
3174
|
+
const wrapperHeight = playerWrapperConstraints.height;
|
|
3175
|
+
|
|
3176
|
+
if (!resolution) {
|
|
3177
|
+
return {
|
|
3178
|
+
width: wrapperWidth,
|
|
3179
|
+
height: wrapperHeight,
|
|
3180
|
+
};
|
|
3181
|
+
}
|
|
3182
|
+
|
|
3183
|
+
const sr = resolution.width / resolution.height; // stream width/height ratio
|
|
3184
|
+
const wr = wrapperWidth / wrapperHeight; // Wrapper width/height ratio
|
|
3185
|
+
|
|
3186
|
+
/**
|
|
3187
|
+
* Handling Landscape Orientation for both Full and Normal screen
|
|
3188
|
+
*/
|
|
3189
|
+
if (isLandscapeOrientation) {
|
|
3190
|
+
return sr > 1 || sr > wr
|
|
3191
|
+
? {
|
|
3192
|
+
width: wrapperWidth,
|
|
3193
|
+
height: wrapperWidth / sr,
|
|
3194
|
+
}
|
|
3195
|
+
: {
|
|
3196
|
+
width: sr * wrapperHeight,
|
|
3197
|
+
height: wrapperHeight,
|
|
3198
|
+
};
|
|
3199
|
+
}
|
|
3200
|
+
|
|
3201
|
+
/**
|
|
3202
|
+
* Handling Portrait Orientation
|
|
3203
|
+
*/
|
|
3204
|
+
if (hlsFullScreen) {
|
|
3205
|
+
return {
|
|
3206
|
+
width: sr > wr ? wrapperWidth : wrapperHeight * sr,
|
|
3207
|
+
height: sr > wr ? wrapperWidth / sr : wrapperHeight,
|
|
3208
|
+
};
|
|
3209
|
+
}
|
|
3210
|
+
|
|
3211
|
+
return {
|
|
3212
|
+
width: wrapperHeight * sr,
|
|
3213
|
+
height: wrapperHeight,
|
|
3214
|
+
};
|
|
3215
|
+
};
|
package/src/redux/actionTypes.ts
CHANGED
|
@@ -109,6 +109,10 @@ const SET_INITIAL_ROLE = 'SET_INITIAL_ROLE';
|
|
|
109
109
|
|
|
110
110
|
const SET_CHAT_PEER_BLACKLIST = 'SET_CHAT_PEER_BLACKLIST';
|
|
111
111
|
|
|
112
|
+
const SET_HLS_DESC_PANE_VISIBLE = 'SET_HLS_DESC_PANE_VISIBLE';
|
|
113
|
+
|
|
114
|
+
const SET_HLS_FULL_SCREEN = 'SET_HLS_FULL_SCREEN';
|
|
115
|
+
|
|
112
116
|
const FILTER_OUT_BLOCKED_MSGS = 'FILTER_OUT_BLOCKED_MSGS';
|
|
113
117
|
|
|
114
118
|
export default {
|
|
@@ -158,6 +162,8 @@ export default {
|
|
|
158
162
|
SET_SELECTED_MESSAGE_FOR_ACTION,
|
|
159
163
|
SET_INITIAL_ROLE,
|
|
160
164
|
SET_CHAT_PEER_BLACKLIST,
|
|
165
|
+
SET_HLS_DESC_PANE_VISIBLE,
|
|
166
|
+
SET_HLS_FULL_SCREEN,
|
|
161
167
|
FILTER_OUT_BLOCKED_MSGS,
|
|
162
168
|
};
|
|
163
169
|
|
|
@@ -185,6 +191,7 @@ export enum HmsStateActionTypes {
|
|
|
185
191
|
REPLACE_PARTICIPANTS_LIST = 'REPLACE_PARTICIPANTS_LIST',
|
|
186
192
|
SET_ACTIVE_SPEAKERS = 'SET_ACTIVE_SPEAKERS',
|
|
187
193
|
SET_RECONNECTING = 'SET_RECONNECTING',
|
|
194
|
+
SET_NOISE_CANCELLATION_PLUGIN = 'SET_NOISE_CANCELLATION_PLUGIN',
|
|
188
195
|
SET_INITIAL_ROLE = 'SET_INITIAL_ROLE',
|
|
189
196
|
}
|
|
190
197
|
|
|
@@ -3,6 +3,7 @@ import type {
|
|
|
3
3
|
HMSLocalAudioStats,
|
|
4
4
|
HMSLocalVideoStats,
|
|
5
5
|
HMSMessage,
|
|
6
|
+
HMSNoiseCancellationPlugin,
|
|
6
7
|
HMSPeer,
|
|
7
8
|
HMSPoll,
|
|
8
9
|
HMSPollQuestion,
|
|
@@ -431,6 +432,13 @@ export const setReconnecting = (reconnecting: boolean) => ({
|
|
|
431
432
|
reconnecting,
|
|
432
433
|
});
|
|
433
434
|
|
|
435
|
+
export const setNoiseCancellationPlugin = (
|
|
436
|
+
noiseCancellationPlugin: HMSNoiseCancellationPlugin
|
|
437
|
+
) => ({
|
|
438
|
+
type: HmsStateActionTypes.SET_NOISE_CANCELLATION_PLUGIN,
|
|
439
|
+
noiseCancellationPlugin,
|
|
440
|
+
});
|
|
441
|
+
|
|
434
442
|
export const setHandleBackButton = (handleBackButton?: boolean) => ({
|
|
435
443
|
type: actionTypes.SET_HANDLE_BACK_BUTTON,
|
|
436
444
|
payload: { handleBackButton },
|
|
@@ -468,6 +476,16 @@ export const filterOutMsgsFromBlockedPeers = (chatPeerBlacklist: string[]) => ({
|
|
|
468
476
|
payload: chatPeerBlacklist,
|
|
469
477
|
});
|
|
470
478
|
|
|
479
|
+
export const setHlsDescriptionPaneVisible = (visible: boolean) => ({
|
|
480
|
+
type: actionTypes.SET_HLS_DESC_PANE_VISIBLE,
|
|
481
|
+
payload: { visible },
|
|
482
|
+
});
|
|
483
|
+
|
|
484
|
+
export const setHlsFullScreen = (fullScreen: boolean) => ({
|
|
485
|
+
type: actionTypes.SET_HLS_FULL_SCREEN,
|
|
486
|
+
payload: { fullScreen },
|
|
487
|
+
});
|
|
488
|
+
|
|
471
489
|
/**
|
|
472
490
|
* POLLS
|
|
473
491
|
*/
|
|
@@ -62,6 +62,8 @@ type IntialStateType = {
|
|
|
62
62
|
selectedMessageForAction: null | HMSMessage;
|
|
63
63
|
initialRole: HMSRole | null;
|
|
64
64
|
chatPeerBlacklist: string[]; // list of userIds
|
|
65
|
+
hlsDescriptionPaneVisible: boolean;
|
|
66
|
+
hlsFullScreen: boolean;
|
|
65
67
|
};
|
|
66
68
|
|
|
67
69
|
const INITIAL_STATE: IntialStateType = {
|
|
@@ -99,6 +101,8 @@ const INITIAL_STATE: IntialStateType = {
|
|
|
99
101
|
selectedMessageForAction: null,
|
|
100
102
|
initialRole: null,
|
|
101
103
|
chatPeerBlacklist: [],
|
|
104
|
+
hlsDescriptionPaneVisible: false,
|
|
105
|
+
hlsFullScreen: false,
|
|
102
106
|
};
|
|
103
107
|
|
|
104
108
|
const appReducer = (
|
|
@@ -357,6 +361,18 @@ const appReducer = (
|
|
|
357
361
|
action.payload.chatPeerBlacklist ?? INITIAL_STATE.chatPeerBlacklist,
|
|
358
362
|
};
|
|
359
363
|
}
|
|
364
|
+
case ActionTypes.SET_HLS_DESC_PANE_VISIBLE: {
|
|
365
|
+
return {
|
|
366
|
+
...state,
|
|
367
|
+
hlsDescriptionPaneVisible: action.payload.visible,
|
|
368
|
+
};
|
|
369
|
+
}
|
|
370
|
+
case ActionTypes.SET_HLS_FULL_SCREEN: {
|
|
371
|
+
return {
|
|
372
|
+
...state,
|
|
373
|
+
hlsFullScreen: action.payload.fullScreen,
|
|
374
|
+
};
|
|
375
|
+
}
|
|
360
376
|
case HmsStateActionTypes.CLEAR_STATES:
|
|
361
377
|
return INITIAL_STATE;
|
|
362
378
|
default:
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type {
|
|
2
2
|
HMSLocalPeer,
|
|
3
|
+
HMSNoiseCancellationPlugin,
|
|
3
4
|
HMSPeer,
|
|
4
5
|
HMSRole,
|
|
5
6
|
HMSRoleChangeRequest,
|
|
@@ -29,7 +30,8 @@ type ActionType =
|
|
|
29
30
|
| AddUpdateParticipant
|
|
30
31
|
| ReplaceParticipantsList
|
|
31
32
|
| SetActiveSpeakers
|
|
32
|
-
| SetReconnecting
|
|
33
|
+
| SetReconnecting
|
|
34
|
+
| SetNoiseCancellationPlugin;
|
|
33
35
|
|
|
34
36
|
type SetRoomAction = {
|
|
35
37
|
type: HmsStateActionTypes.SET_ROOM_STATE;
|
|
@@ -131,6 +133,11 @@ type SetReconnecting = {
|
|
|
131
133
|
reconnecting: boolean;
|
|
132
134
|
};
|
|
133
135
|
|
|
136
|
+
type SetNoiseCancellationPlugin = {
|
|
137
|
+
type: HmsStateActionTypes.SET_NOISE_CANCELLATION_PLUGIN;
|
|
138
|
+
noiseCancellationPlugin: HMSNoiseCancellationPlugin;
|
|
139
|
+
};
|
|
140
|
+
|
|
134
141
|
type IntialStateType = {
|
|
135
142
|
isLocalAudioMuted: boolean | undefined;
|
|
136
143
|
isLocalVideoMuted: boolean | undefined;
|
|
@@ -145,6 +152,7 @@ type IntialStateType = {
|
|
|
145
152
|
previewPeersList: HMSPeer[];
|
|
146
153
|
layoutConfig: Layout[] | null;
|
|
147
154
|
roleChangeRequest: HMSRoleChangeRequest | null;
|
|
155
|
+
noiseCancellationPlugin: HMSNoiseCancellationPlugin | null;
|
|
148
156
|
};
|
|
149
157
|
|
|
150
158
|
const INITIAL_STATE: IntialStateType = {
|
|
@@ -161,6 +169,7 @@ const INITIAL_STATE: IntialStateType = {
|
|
|
161
169
|
previewPeersList: [],
|
|
162
170
|
layoutConfig: null,
|
|
163
171
|
roleChangeRequest: null,
|
|
172
|
+
noiseCancellationPlugin: null,
|
|
164
173
|
};
|
|
165
174
|
|
|
166
175
|
const hmsStatesReducer = (
|
|
@@ -557,6 +566,11 @@ const hmsStatesReducer = (
|
|
|
557
566
|
...state,
|
|
558
567
|
reconnecting: action.reconnecting,
|
|
559
568
|
};
|
|
569
|
+
case HmsStateActionTypes.SET_NOISE_CANCELLATION_PLUGIN:
|
|
570
|
+
return {
|
|
571
|
+
...state,
|
|
572
|
+
noiseCancellationPlugin: action.noiseCancellationPlugin,
|
|
573
|
+
};
|
|
560
574
|
case HmsStateActionTypes.CLEAR_STATES:
|
|
561
575
|
return INITIAL_STATE;
|
|
562
576
|
default:
|
package/src/utils/functions.ts
CHANGED
|
@@ -445,6 +445,7 @@ export function groupIntoPairs(totalNumber: number) {
|
|
|
445
445
|
|
|
446
446
|
/**
|
|
447
447
|
* @param list array of items
|
|
448
|
+
* @param fill boolean to fill the last triplet with `undefined` if it has less than 3 items
|
|
448
449
|
* @returns list of triplets
|
|
449
450
|
*
|
|
450
451
|
* Example: If list is `[a, b, c, d]`, then output will be `[ [a, b, c], [d] ]`
|
package/src/utils/hooks.ts
CHANGED
|
@@ -111,9 +111,16 @@ export const useFetchLeaderboardResponse = (
|
|
|
111
111
|
const dispatch = useDispatch();
|
|
112
112
|
const hmsInstance = useHMSInstance();
|
|
113
113
|
|
|
114
|
-
const
|
|
115
|
-
|
|
116
|
-
|
|
114
|
+
const localPeerPollInitiator = useSelector((state: RootState) => {
|
|
115
|
+
if (!pollId) return null;
|
|
116
|
+
const localPeerUserId = state.hmsStates.localPeer?.customerUserID;
|
|
117
|
+
const pollInitiatorUserID =
|
|
118
|
+
state.polls.polls[pollId]?.createdBy?.customerUserID;
|
|
119
|
+
return (
|
|
120
|
+
localPeerUserId &&
|
|
121
|
+
pollInitiatorUserID &&
|
|
122
|
+
localPeerUserId === pollInitiatorUserID
|
|
123
|
+
);
|
|
117
124
|
});
|
|
118
125
|
|
|
119
126
|
const leaderboardData = useSelector((state: RootState) => {
|
|
@@ -134,7 +141,7 @@ export const useFetchLeaderboardResponse = (
|
|
|
134
141
|
pollId,
|
|
135
142
|
5,
|
|
136
143
|
1, // Indexing starts from 1
|
|
137
|
-
!
|
|
144
|
+
!localPeerPollInitiator // fetchCurrentUser only if user is voter, and not poll initiator
|
|
138
145
|
);
|
|
139
146
|
if (mounted) {
|
|
140
147
|
dispatch(addLeaderboard(pollId, response));
|
|
@@ -146,7 +153,7 @@ export const useFetchLeaderboardResponse = (
|
|
|
146
153
|
return () => {
|
|
147
154
|
mounted = false;
|
|
148
155
|
};
|
|
149
|
-
}, [pollId, leaderboardDataExist,
|
|
156
|
+
}, [pollId, leaderboardDataExist, localPeerPollInitiator]);
|
|
150
157
|
|
|
151
158
|
return leaderboardData;
|
|
152
159
|
};
|
|
@@ -167,10 +174,6 @@ export const useLeaderboardSummaryData = (
|
|
|
167
174
|
localPeerUserId === pollInitiatorUserID
|
|
168
175
|
);
|
|
169
176
|
});
|
|
170
|
-
const canCreateOrEndPoll = useSelector((state: RootState) => {
|
|
171
|
-
const permissions = state.hmsStates.localPeer?.role?.permissions;
|
|
172
|
-
return permissions?.pollWrite;
|
|
173
|
-
});
|
|
174
177
|
|
|
175
178
|
const leaderboardData = useSelector((state: RootState) => {
|
|
176
179
|
if (!pollId) return null;
|
|
@@ -237,9 +240,6 @@ export const useLeaderboardSummaryData = (
|
|
|
237
240
|
: null;
|
|
238
241
|
|
|
239
242
|
const voterSummaryData = useMemo(() => {
|
|
240
|
-
if (!localLeaderboardEntry || canCreateOrEndPoll) {
|
|
241
|
-
return null;
|
|
242
|
-
}
|
|
243
243
|
return [
|
|
244
244
|
[
|
|
245
245
|
{
|