@100mslive/react-native-room-kit 0.1.0 → 1.0.0
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/README.md +1 -10
- package/lib/commonjs/HMSPrebuilt.js +6 -6
- package/lib/commonjs/HMSPrebuilt.js.map +1 -1
- package/lib/commonjs/HMSRoomSetup.js +27 -30
- package/lib/commonjs/HMSRoomSetup.js.map +1 -1
- package/lib/commonjs/Icons/AlertTriangle/assets/alert-triangle-filled.png +0 -0
- package/lib/commonjs/Icons/AlertTriangle/assets/alert-triangle-filled@2x.png +0 -0
- package/lib/commonjs/Icons/AlertTriangle/assets/alert-triangle-filled@3x.png +0 -0
- package/lib/commonjs/Icons/AlertTriangle/index.js +2 -1
- package/lib/commonjs/Icons/AlertTriangle/index.js.map +1 -1
- package/lib/commonjs/Icons/Eye/assets/eye-on-small.png +0 -0
- package/lib/commonjs/Icons/Eye/assets/eye-on-small@2x.png +0 -0
- package/lib/commonjs/Icons/Eye/assets/eye-on-small@3x.png +0 -0
- package/lib/commonjs/Icons/Eye/index.js +35 -0
- package/lib/commonjs/Icons/Eye/index.js.map +1 -0
- package/lib/commonjs/Icons/Hamburger/assets/hamburger.png +0 -0
- package/lib/commonjs/Icons/Hamburger/assets/hamburger@2x.png +0 -0
- package/lib/commonjs/Icons/Hamburger/assets/hamburger@3x.png +0 -0
- package/lib/commonjs/Icons/Person/assets/person-left.png +0 -0
- package/lib/commonjs/Icons/Person/assets/person-left@2x.png +0 -0
- package/lib/commonjs/Icons/Person/assets/person-left@3x.png +0 -0
- package/lib/commonjs/Icons/Person/assets/person-off.png +0 -0
- package/lib/commonjs/Icons/Person/assets/person-off@2x.png +0 -0
- package/lib/commonjs/Icons/Person/assets/person-off@3x.png +0 -0
- package/lib/commonjs/Icons/Person/assets/person-rectangle.png +0 -0
- package/lib/commonjs/Icons/Person/assets/person-rectangle@2x.png +0 -0
- package/lib/commonjs/Icons/Person/assets/person-rectangle@3x.png +0 -0
- package/lib/commonjs/Icons/Person/index.js +2 -1
- package/lib/commonjs/Icons/Person/index.js.map +1 -1
- package/lib/commonjs/Icons/Radio/assets/radio-xlarge.png +0 -0
- package/lib/commonjs/Icons/Radio/assets/radio-xlarge@2x.png +0 -0
- package/lib/commonjs/Icons/Radio/assets/radio-xlarge@3x.png +0 -0
- package/lib/commonjs/Icons/Radio/index.js +29 -1
- package/lib/commonjs/Icons/Radio/index.js.map +1 -1
- package/lib/commonjs/Icons/Search/assets/search.png +0 -0
- package/lib/commonjs/Icons/Search/assets/search@2x.png +0 -0
- package/lib/commonjs/Icons/Search/assets/search@3x.png +0 -0
- package/lib/commonjs/Icons/Search/index.js +34 -0
- package/lib/commonjs/Icons/Search/index.js.map +1 -0
- package/lib/commonjs/Icons/Stop/assets/stop.png +0 -0
- package/lib/commonjs/Icons/Stop/assets/stop@2x.png +0 -0
- package/lib/commonjs/Icons/Stop/assets/stop@3x.png +0 -0
- package/lib/commonjs/Icons/Stop/index.js.map +1 -1
- package/lib/commonjs/Icons/index.js +22 -0
- package/lib/commonjs/Icons/index.js.map +1 -1
- package/lib/commonjs/assets/audio-level-white.json +1271 -0
- package/lib/commonjs/assets/empty-chat-illustration/empty-chat.png +0 -0
- package/lib/commonjs/assets/empty-chat-illustration/empty-chat@2x.png +0 -0
- package/lib/commonjs/assets/empty-chat-illustration/empty-chat@3x.png +0 -0
- package/lib/commonjs/assets/welcome.png +0 -0
- package/lib/commonjs/components/AnimatedFooter.js +35 -0
- package/lib/commonjs/components/AnimatedFooter.js.map +1 -0
- package/lib/commonjs/components/AnimatedHLSFooter.js +36 -0
- package/lib/commonjs/components/AnimatedHLSFooter.js.map +1 -0
- package/lib/commonjs/components/AnimatedHeader.js +44 -0
- package/lib/commonjs/components/AnimatedHeader.js.map +1 -0
- package/lib/commonjs/components/BottomSheet.js +6 -3
- package/lib/commonjs/components/BottomSheet.js.map +1 -1
- package/lib/commonjs/components/ChangeNameModalContent.js +0 -12
- package/lib/commonjs/components/ChangeNameModalContent.js.map +1 -1
- package/lib/commonjs/components/Chat/ChatBanner.js +35 -55
- package/lib/commonjs/components/Chat/ChatBanner.js.map +1 -1
- package/lib/commonjs/components/Chat/ChatFilterBottomSheetOpener.js +83 -0
- package/lib/commonjs/components/Chat/ChatFilterBottomSheetOpener.js.map +1 -0
- package/lib/commonjs/components/Chat/ChatFilterBottomSheetView.js +69 -0
- package/lib/commonjs/components/Chat/ChatFilterBottomSheetView.js.map +1 -0
- package/lib/commonjs/components/Chat/ChatFilterItem.js +71 -0
- package/lib/commonjs/components/Chat/ChatFilterItem.js.map +1 -0
- package/lib/commonjs/components/Chat/ChatFilterView.js +198 -0
- package/lib/commonjs/components/Chat/ChatFilterView.js.map +1 -0
- package/lib/commonjs/components/Chat/ChatList.js +6 -6
- package/lib/commonjs/components/Chat/ChatList.js.map +1 -1
- package/lib/commonjs/components/Chat/ChatMessage.js +35 -135
- package/lib/commonjs/components/Chat/ChatMessage.js.map +1 -1
- package/lib/commonjs/components/Chat/PinnedMessage.js +39 -43
- package/lib/commonjs/components/Chat/PinnedMessage.js.map +1 -1
- package/lib/commonjs/components/ChatAndParticipants/ChatAndParticipantsBottomSheet.js +42 -0
- package/lib/commonjs/components/ChatAndParticipants/ChatAndParticipantsBottomSheet.js.map +1 -0
- package/lib/commonjs/components/ChatAndParticipants/ChatAndParticipantsHeader.js +105 -0
- package/lib/commonjs/components/ChatAndParticipants/ChatAndParticipantsHeader.js.map +1 -0
- package/lib/commonjs/components/ChatAndParticipants/ChatAndParticipantsView.js +66 -0
- package/lib/commonjs/components/ChatAndParticipants/ChatAndParticipantsView.js.map +1 -0
- package/lib/commonjs/components/ChatAndParticipants/ChatView.js +37 -0
- package/lib/commonjs/components/ChatAndParticipants/ChatView.js.map +1 -0
- package/lib/commonjs/components/{Participants/SearchableParticipantsView.js → ChatAndParticipants/ParticipantsView.js} +24 -12
- package/lib/commonjs/components/ChatAndParticipants/ParticipantsView.js.map +1 -0
- package/lib/commonjs/components/ChatAndParticipants/index.js +17 -0
- package/lib/commonjs/components/ChatAndParticipants/index.js.map +1 -0
- package/lib/commonjs/components/CompanyLogo.js +5 -4
- package/lib/commonjs/components/CompanyLogo.js.map +1 -1
- package/lib/commonjs/components/DefaultModal.js +2 -6
- package/lib/commonjs/components/DefaultModal.js.map +1 -1
- package/lib/commonjs/components/DisplayView.js +9 -21
- package/lib/commonjs/components/DisplayView.js.map +1 -1
- package/lib/commonjs/components/EndRoomModalContent.js +20 -6
- package/lib/commonjs/components/EndRoomModalContent.js.map +1 -1
- package/lib/commonjs/components/Footer.js +41 -27
- package/lib/commonjs/components/Footer.js.map +1 -1
- package/lib/commonjs/components/FullScreenVideoView.js +74 -0
- package/lib/commonjs/components/FullScreenVideoView.js.map +1 -0
- package/lib/commonjs/components/GridView.js +129 -48
- package/lib/commonjs/components/GridView.js.map +1 -1
- package/lib/commonjs/components/{ParticipantsModal.js → HLSFooter.js} +19 -27
- package/lib/commonjs/components/HLSFooter.js.map +1 -0
- package/lib/commonjs/components/HLSView.js +10 -22
- package/lib/commonjs/components/HLSView.js.map +1 -1
- package/lib/commonjs/components/HMSChat.js +15 -14
- package/lib/commonjs/components/HMSChat.js.map +1 -1
- package/lib/commonjs/components/HMSHLSMessage.js +67 -0
- package/lib/commonjs/components/HMSHLSMessage.js.map +1 -0
- package/lib/commonjs/components/HMSHLSMessageList.js +58 -0
- package/lib/commonjs/components/HMSHLSMessageList.js.map +1 -0
- package/lib/commonjs/components/HMSHLSNotStarted.js +27 -24
- package/lib/commonjs/components/HMSHLSNotStarted.js.map +1 -1
- package/lib/commonjs/components/HMSHandRaiseNotification.js +84 -0
- package/lib/commonjs/components/HMSHandRaiseNotification.js.map +1 -0
- package/lib/commonjs/components/HMSKeyboardAvoidingView.js +49 -0
- package/lib/commonjs/components/HMSKeyboardAvoidingView.js.map +1 -0
- package/lib/commonjs/components/HMSLiveIndicator.js +105 -0
- package/lib/commonjs/components/HMSLiveIndicator.js.map +1 -0
- package/lib/commonjs/components/HMSLocalScreenshareNotification.js +38 -0
- package/lib/commonjs/components/HMSLocalScreenshareNotification.js.map +1 -0
- package/lib/commonjs/components/HMSLocalVideoView.js +4 -23
- package/lib/commonjs/components/HMSLocalVideoView.js.map +1 -1
- package/lib/commonjs/components/HMSManageAudioOutput.js +7 -1
- package/lib/commonjs/components/HMSManageAudioOutput.js.map +1 -1
- package/lib/commonjs/components/HMSManageLeave.js +47 -37
- package/lib/commonjs/components/HMSManageLeave.js.map +1 -1
- package/lib/commonjs/components/HMSManageRaiseHand.js +2 -15
- package/lib/commonjs/components/HMSManageRaiseHand.js.map +1 -1
- package/lib/commonjs/components/HMSNotification.js +96 -0
- package/lib/commonjs/components/HMSNotification.js.map +1 -0
- package/lib/commonjs/components/HMSNotifications.js +114 -0
- package/lib/commonjs/components/HMSNotifications.js.map +1 -0
- package/lib/commonjs/components/HMSOverlayChatView.js +30 -0
- package/lib/commonjs/components/HMSOverlayChatView.js.map +1 -0
- package/lib/commonjs/components/HMSPreviewJoinButton.js +1 -2
- 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/HMSPreviewSubtitle.js +1 -3
- package/lib/commonjs/components/HMSPreviewSubtitle.js.map +1 -1
- package/lib/commonjs/components/HMSPreviewTitle.js +1 -3
- package/lib/commonjs/components/HMSPreviewTitle.js.map +1 -1
- package/lib/commonjs/components/HMSRecordingIndicator.js +7 -3
- package/lib/commonjs/components/HMSRecordingIndicator.js.map +1 -1
- package/lib/commonjs/components/HMSRoleChangeDeclinedNotification.js +30 -0
- package/lib/commonjs/components/HMSRoleChangeDeclinedNotification.js.map +1 -0
- package/lib/commonjs/components/HMSSendMessageInput.js +57 -0
- package/lib/commonjs/components/HMSSendMessageInput.js.map +1 -0
- package/lib/commonjs/components/HMSTextInput.js +98 -12
- package/lib/commonjs/components/HMSTextInput.js.map +1 -1
- package/lib/commonjs/components/HMSVideoView.js +43 -0
- package/lib/commonjs/components/HMSVideoView.js.map +1 -0
- package/lib/commonjs/components/Header.js +19 -123
- package/lib/commonjs/components/Header.js.map +1 -1
- package/lib/commonjs/components/LocalPeerScreenshareView.js +1 -7
- package/lib/commonjs/components/LocalPeerScreenshareView.js.map +1 -1
- package/lib/commonjs/components/Meeting.js +7 -5
- package/lib/commonjs/components/Meeting.js.map +1 -1
- package/lib/commonjs/components/MeetingScreenContent.js +23 -9
- package/lib/commonjs/components/MeetingScreenContent.js.map +1 -1
- package/lib/commonjs/components/MenuModal/Menu.js +2 -2
- package/lib/commonjs/components/MenuModal/Menu.js.map +1 -1
- package/lib/commonjs/components/MiniView.js +8 -3
- package/lib/commonjs/components/MiniView.js.map +1 -1
- package/lib/commonjs/components/Modals.js +88 -317
- package/lib/commonjs/components/Modals.js.map +1 -1
- package/lib/commonjs/components/OverlayContainer.js +41 -0
- package/lib/commonjs/components/OverlayContainer.js.map +1 -0
- package/lib/commonjs/components/OverlayedViews.js +22 -0
- package/lib/commonjs/components/OverlayedViews.js.map +1 -0
- package/lib/commonjs/components/PaginationDots.js +4 -4
- package/lib/commonjs/components/PaginationDots.js.map +1 -1
- package/lib/commonjs/components/Participants/ParticipantsGroupHeader.js +131 -0
- package/lib/commonjs/components/Participants/ParticipantsGroupHeader.js.map +1 -0
- package/lib/commonjs/components/Participants/ParticipantsGroupOptions.js +80 -0
- package/lib/commonjs/components/Participants/ParticipantsGroupOptions.js.map +1 -0
- package/lib/commonjs/components/Participants/ParticipantsItem.js +132 -0
- package/lib/commonjs/components/Participants/ParticipantsItem.js.map +1 -0
- package/lib/commonjs/components/Participants/ParticipantsItemOption.js +46 -0
- package/lib/commonjs/components/Participants/ParticipantsItemOption.js.map +1 -0
- package/lib/commonjs/components/Participants/ParticipantsItemOptions.js +220 -0
- package/lib/commonjs/components/Participants/ParticipantsItemOptions.js.map +1 -0
- package/lib/commonjs/components/Participants/ParticipantsList.js +40 -224
- package/lib/commonjs/components/Participants/ParticipantsList.js.map +1 -1
- package/lib/commonjs/components/Participants/ParticipantsSeachInput.js +36 -30
- package/lib/commonjs/components/Participants/ParticipantsSeachInput.js.map +1 -1
- package/lib/commonjs/components/Participants/index.js +0 -33
- package/lib/commonjs/components/Participants/index.js.map +1 -1
- package/lib/commonjs/components/PeerMinimizedView.js +1 -1
- package/lib/commonjs/components/PeerSettingsModalContent.js +47 -123
- package/lib/commonjs/components/PeerSettingsModalContent.js.map +1 -1
- package/lib/commonjs/components/PeerVideoTile/AvatarView.js +19 -5
- package/lib/commonjs/components/PeerVideoTile/AvatarView.js.map +1 -1
- package/lib/commonjs/components/PeerVideoTile/HMSFullScreenButton.js +45 -0
- package/lib/commonjs/components/PeerVideoTile/HMSFullScreenButton.js.map +1 -0
- package/lib/commonjs/components/PeerVideoTile/HMSPinchGesture.js +202 -0
- package/lib/commonjs/components/PeerVideoTile/HMSPinchGesture.js.map +1 -0
- package/lib/commonjs/components/PeerVideoTile/{PeerAudioMutedIndicator.js → PeerAudioIndicator.js} +30 -4
- package/lib/commonjs/components/PeerVideoTile/PeerAudioIndicator.js.map +1 -0
- package/lib/commonjs/components/PeerVideoTile/PeerNameAndNetwork.js +10 -2
- package/lib/commonjs/components/PeerVideoTile/PeerNameAndNetwork.js.map +1 -1
- package/lib/commonjs/components/PeerVideoTile/PeerVideoTileView.js +38 -17
- package/lib/commonjs/components/PeerVideoTile/PeerVideoTileView.js.map +1 -1
- package/lib/commonjs/components/PeerVideoTile/VideoView.js +43 -10
- package/lib/commonjs/components/PeerVideoTile/VideoView.js.map +1 -1
- package/lib/commonjs/components/PressableIcon.js +10 -5
- package/lib/commonjs/components/PressableIcon.js.map +1 -1
- package/lib/commonjs/components/Preview.js +5 -14
- package/lib/commonjs/components/Preview.js.map +1 -1
- package/lib/commonjs/components/PreviewForRoleChangeModal.js +332 -0
- package/lib/commonjs/components/PreviewForRoleChangeModal.js.map +1 -0
- package/lib/commonjs/components/ReconnectionView.js +66 -0
- package/lib/commonjs/components/ReconnectionView.js.map +1 -0
- package/lib/commonjs/components/RoomSettingsModalContent.js +25 -33
- package/lib/commonjs/components/RoomSettingsModalContent.js.map +1 -1
- package/lib/commonjs/components/RoomSettingsModalDebugModeContent.js +31 -70
- package/lib/commonjs/components/RoomSettingsModalDebugModeContent.js.map +1 -1
- package/lib/commonjs/components/StatusBar.js +7 -5
- package/lib/commonjs/components/StatusBar.js.map +1 -1
- package/lib/commonjs/components/StopRecordingModalContent.js.map +1 -1
- package/lib/commonjs/components/StreamingQualityModalContent.js +8 -9
- package/lib/commonjs/components/StreamingQualityModalContent.js.map +1 -1
- package/lib/commonjs/components/TilesContainer.js +31 -9
- package/lib/commonjs/components/TilesContainer.js.map +1 -1
- package/lib/commonjs/components/WebrtcView.js +11 -14
- package/lib/commonjs/components/WebrtcView.js.map +1 -1
- package/lib/commonjs/components/WelcomeInMeeting.js +7 -31
- package/lib/commonjs/components/WelcomeInMeeting.js.map +1 -1
- package/lib/commonjs/components/index.js +0 -33
- package/lib/commonjs/components/index.js.map +1 -1
- package/lib/commonjs/hooks-util-selectors.js +43 -9
- package/lib/commonjs/hooks-util-selectors.js.map +1 -1
- package/lib/commonjs/hooks-util.js +619 -213
- package/lib/commonjs/hooks-util.js.map +1 -1
- package/lib/commonjs/modules/HMSManager.js +3 -3
- package/lib/commonjs/modules/HMSManager.js.map +1 -1
- package/lib/commonjs/modules/parser.js +2 -3
- package/lib/commonjs/modules/parser.js.map +1 -1
- package/lib/commonjs/redux/actionTypes.js +25 -1
- package/lib/commonjs/redux/actionTypes.js.map +1 -1
- package/lib/commonjs/redux/actions/index.js +90 -1
- package/lib/commonjs/redux/actions/index.js.map +1 -1
- package/lib/commonjs/redux/reducers/appState.js +77 -2
- package/lib/commonjs/redux/reducers/appState.js.map +1 -1
- package/lib/commonjs/redux/reducers/chatWindow.js +3 -7
- package/lib/commonjs/redux/reducers/chatWindow.js.map +1 -1
- package/lib/commonjs/redux/reducers/hmsStates.js +70 -7
- package/lib/commonjs/redux/reducers/hmsStates.js.map +1 -1
- package/lib/commonjs/utils/functions.js +11 -4
- package/lib/commonjs/utils/functions.js.map +1 -1
- package/lib/commonjs/utils/theme.js +2 -0
- package/lib/commonjs/utils/theme.js.map +1 -1
- package/lib/commonjs/utils/types.js +9 -3
- package/lib/commonjs/utils/types.js.map +1 -1
- package/lib/commonjs/utils.js +8 -1
- package/lib/commonjs/utils.js.map +1 -1
- package/lib/module/HMSPrebuilt.js +6 -6
- package/lib/module/HMSPrebuilt.js.map +1 -1
- package/lib/module/HMSRoomSetup.js +29 -32
- package/lib/module/HMSRoomSetup.js.map +1 -1
- package/lib/module/Icons/AlertTriangle/assets/alert-triangle-filled.png +0 -0
- package/lib/module/Icons/AlertTriangle/assets/alert-triangle-filled@2x.png +0 -0
- package/lib/module/Icons/AlertTriangle/assets/alert-triangle-filled@3x.png +0 -0
- package/lib/module/Icons/AlertTriangle/index.js +2 -1
- package/lib/module/Icons/AlertTriangle/index.js.map +1 -1
- package/lib/module/Icons/Eye/assets/eye-on-small.png +0 -0
- package/lib/module/Icons/Eye/assets/eye-on-small@2x.png +0 -0
- package/lib/module/Icons/Eye/assets/eye-on-small@3x.png +0 -0
- package/lib/module/Icons/Eye/index.js +27 -0
- package/lib/module/Icons/Eye/index.js.map +1 -0
- package/lib/module/Icons/Hamburger/assets/hamburger.png +0 -0
- package/lib/module/Icons/Hamburger/assets/hamburger@2x.png +0 -0
- package/lib/module/Icons/Hamburger/assets/hamburger@3x.png +0 -0
- package/lib/module/Icons/Person/assets/person-left.png +0 -0
- package/lib/module/Icons/Person/assets/person-left@2x.png +0 -0
- package/lib/module/Icons/Person/assets/person-left@3x.png +0 -0
- package/lib/module/Icons/Person/assets/person-off.png +0 -0
- package/lib/module/Icons/Person/assets/person-off@2x.png +0 -0
- package/lib/module/Icons/Person/assets/person-off@3x.png +0 -0
- package/lib/module/Icons/Person/assets/person-rectangle.png +0 -0
- package/lib/module/Icons/Person/assets/person-rectangle@2x.png +0 -0
- package/lib/module/Icons/Person/assets/person-rectangle@3x.png +0 -0
- package/lib/module/Icons/Person/index.js +2 -1
- package/lib/module/Icons/Person/index.js.map +1 -1
- package/lib/module/Icons/Radio/assets/radio-xlarge.png +0 -0
- package/lib/module/Icons/Radio/assets/radio-xlarge@2x.png +0 -0
- package/lib/module/Icons/Radio/assets/radio-xlarge@3x.png +0 -0
- package/lib/module/Icons/Radio/index.js +30 -2
- package/lib/module/Icons/Radio/index.js.map +1 -1
- package/lib/module/Icons/Search/assets/search.png +0 -0
- package/lib/module/Icons/Search/assets/search@2x.png +0 -0
- package/lib/module/Icons/Search/assets/search@3x.png +0 -0
- package/lib/module/Icons/Search/index.js +26 -0
- package/lib/module/Icons/Search/index.js.map +1 -0
- package/lib/module/Icons/Stop/assets/stop.png +0 -0
- package/lib/module/Icons/Stop/assets/stop@2x.png +0 -0
- package/lib/module/Icons/Stop/assets/stop@3x.png +0 -0
- package/lib/module/Icons/Stop/index.js.map +1 -1
- package/lib/module/Icons/index.js +2 -0
- package/lib/module/Icons/index.js.map +1 -1
- package/lib/module/assets/audio-level-white.json +1271 -0
- package/lib/module/assets/empty-chat-illustration/empty-chat.png +0 -0
- package/lib/module/assets/empty-chat-illustration/empty-chat@2x.png +0 -0
- package/lib/module/assets/empty-chat-illustration/empty-chat@3x.png +0 -0
- package/lib/module/assets/welcome.png +0 -0
- package/lib/module/components/AnimatedFooter.js +26 -0
- package/lib/module/components/AnimatedFooter.js.map +1 -0
- package/lib/module/components/AnimatedHLSFooter.js +27 -0
- package/lib/module/components/AnimatedHLSFooter.js.map +1 -0
- package/lib/module/components/AnimatedHeader.js +35 -0
- package/lib/module/components/AnimatedHeader.js.map +1 -0
- package/lib/module/components/BottomSheet.js +6 -3
- package/lib/module/components/BottomSheet.js.map +1 -1
- package/lib/module/components/ChangeNameModalContent.js +2 -14
- package/lib/module/components/ChangeNameModalContent.js.map +1 -1
- package/lib/module/components/Chat/ChatBanner.js +36 -55
- package/lib/module/components/Chat/ChatBanner.js.map +1 -1
- package/lib/module/components/Chat/ChatFilterBottomSheetOpener.js +74 -0
- package/lib/module/components/Chat/ChatFilterBottomSheetOpener.js.map +1 -0
- package/lib/module/components/Chat/ChatFilterBottomSheetView.js +60 -0
- package/lib/module/components/Chat/ChatFilterBottomSheetView.js.map +1 -0
- package/lib/module/components/Chat/ChatFilterItem.js +62 -0
- package/lib/module/components/Chat/ChatFilterItem.js.map +1 -0
- package/lib/module/components/Chat/ChatFilterView.js +189 -0
- package/lib/module/components/Chat/ChatFilterView.js.map +1 -0
- package/lib/module/components/Chat/ChatList.js +6 -6
- package/lib/module/components/Chat/ChatList.js.map +1 -1
- package/lib/module/components/Chat/ChatMessage.js +36 -135
- package/lib/module/components/Chat/ChatMessage.js.map +1 -1
- package/lib/module/components/Chat/PinnedMessage.js +40 -43
- package/lib/module/components/Chat/PinnedMessage.js.map +1 -1
- package/lib/module/components/ChatAndParticipants/ChatAndParticipantsBottomSheet.js +33 -0
- package/lib/module/components/ChatAndParticipants/ChatAndParticipantsBottomSheet.js.map +1 -0
- package/lib/module/components/ChatAndParticipants/ChatAndParticipantsHeader.js +96 -0
- package/lib/module/components/ChatAndParticipants/ChatAndParticipantsHeader.js.map +1 -0
- package/lib/module/components/ChatAndParticipants/ChatAndParticipantsView.js +57 -0
- package/lib/module/components/ChatAndParticipants/ChatAndParticipantsView.js.map +1 -0
- package/lib/module/components/ChatAndParticipants/ChatView.js +28 -0
- package/lib/module/components/ChatAndParticipants/ChatView.js.map +1 -0
- package/lib/module/components/ChatAndParticipants/ParticipantsView.js +30 -0
- package/lib/module/components/ChatAndParticipants/ParticipantsView.js.map +1 -0
- package/lib/module/components/ChatAndParticipants/index.js +2 -0
- package/lib/module/components/ChatAndParticipants/index.js.map +1 -0
- package/lib/module/components/CompanyLogo.js +5 -4
- package/lib/module/components/CompanyLogo.js.map +1 -1
- package/lib/module/components/DefaultModal.js +2 -6
- package/lib/module/components/DefaultModal.js.map +1 -1
- package/lib/module/components/DisplayView.js +10 -22
- package/lib/module/components/DisplayView.js.map +1 -1
- package/lib/module/components/EndRoomModalContent.js +20 -6
- package/lib/module/components/EndRoomModalContent.js.map +1 -1
- package/lib/module/components/Footer.js +43 -29
- package/lib/module/components/Footer.js.map +1 -1
- package/lib/module/components/FullScreenVideoView.js +64 -0
- package/lib/module/components/FullScreenVideoView.js.map +1 -0
- package/lib/module/components/GridView.js +130 -49
- package/lib/module/components/GridView.js.map +1 -1
- package/lib/module/components/HLSFooter.js +26 -0
- package/lib/module/components/HLSFooter.js.map +1 -0
- package/lib/module/components/HLSView.js +11 -23
- package/lib/module/components/HLSView.js.map +1 -1
- package/lib/module/components/HMSChat.js +16 -15
- package/lib/module/components/HMSChat.js.map +1 -1
- package/lib/module/components/HMSHLSMessage.js +58 -0
- package/lib/module/components/HMSHLSMessage.js.map +1 -0
- package/lib/module/components/HMSHLSMessageList.js +49 -0
- package/lib/module/components/HMSHLSMessageList.js.map +1 -0
- package/lib/module/components/HMSHLSNotStarted.js +29 -26
- package/lib/module/components/HMSHLSNotStarted.js.map +1 -1
- package/lib/module/components/HMSHandRaiseNotification.js +75 -0
- package/lib/module/components/HMSHandRaiseNotification.js.map +1 -0
- package/lib/module/components/HMSKeyboardAvoidingView.js +40 -0
- package/lib/module/components/HMSKeyboardAvoidingView.js.map +1 -0
- package/lib/module/components/HMSLiveIndicator.js +96 -0
- package/lib/module/components/HMSLiveIndicator.js.map +1 -0
- package/lib/module/components/HMSLocalScreenshareNotification.js +29 -0
- package/lib/module/components/HMSLocalScreenshareNotification.js.map +1 -0
- package/lib/module/components/HMSLocalVideoView.js +4 -23
- package/lib/module/components/HMSLocalVideoView.js.map +1 -1
- package/lib/module/components/HMSManageAudioOutput.js +8 -2
- package/lib/module/components/HMSManageAudioOutput.js.map +1 -1
- package/lib/module/components/HMSManageLeave.js +49 -39
- package/lib/module/components/HMSManageLeave.js.map +1 -1
- package/lib/module/components/HMSManageRaiseHand.js +2 -15
- package/lib/module/components/HMSManageRaiseHand.js.map +1 -1
- package/lib/module/components/HMSNotification.js +87 -0
- package/lib/module/components/HMSNotification.js.map +1 -0
- package/lib/module/components/HMSNotifications.js +105 -0
- package/lib/module/components/HMSNotifications.js.map +1 -0
- package/lib/module/components/HMSOverlayChatView.js +20 -0
- package/lib/module/components/HMSOverlayChatView.js.map +1 -0
- package/lib/module/components/HMSPreviewJoinButton.js +2 -3
- package/lib/module/components/HMSPreviewJoinButton.js.map +1 -1
- package/lib/module/components/HMSPreviewNetworkQuality.js +1 -1
- package/lib/module/components/HMSPreviewNetworkQuality.js.map +1 -1
- package/lib/module/components/HMSPreviewSubtitle.js +2 -4
- package/lib/module/components/HMSPreviewSubtitle.js.map +1 -1
- package/lib/module/components/HMSPreviewTitle.js +2 -4
- package/lib/module/components/HMSPreviewTitle.js.map +1 -1
- package/lib/module/components/HMSRecordingIndicator.js +7 -3
- package/lib/module/components/HMSRecordingIndicator.js.map +1 -1
- package/lib/module/components/HMSRoleChangeDeclinedNotification.js +21 -0
- package/lib/module/components/HMSRoleChangeDeclinedNotification.js.map +1 -0
- package/lib/module/components/HMSSendMessageInput.js +48 -0
- package/lib/module/components/HMSSendMessageInput.js.map +1 -0
- package/lib/module/components/HMSTextInput.js +99 -13
- package/lib/module/components/HMSTextInput.js.map +1 -1
- package/lib/module/components/HMSVideoView.js +34 -0
- package/lib/module/components/HMSVideoView.js.map +1 -0
- package/lib/module/components/Header.js +18 -123
- package/lib/module/components/Header.js.map +1 -1
- package/lib/module/components/LocalPeerScreenshareView.js +1 -6
- package/lib/module/components/LocalPeerScreenshareView.js.map +1 -1
- package/lib/module/components/Meeting.js +9 -7
- package/lib/module/components/Meeting.js.map +1 -1
- package/lib/module/components/MeetingScreenContent.js +25 -11
- package/lib/module/components/MeetingScreenContent.js.map +1 -1
- package/lib/module/components/MenuModal/Menu.js +2 -2
- package/lib/module/components/MenuModal/Menu.js.map +1 -1
- package/lib/module/components/MiniView.js +8 -3
- package/lib/module/components/MiniView.js.map +1 -1
- package/lib/module/components/Modals.js +88 -313
- package/lib/module/components/Modals.js.map +1 -1
- package/lib/module/components/OverlayContainer.js +32 -0
- package/lib/module/components/OverlayContainer.js.map +1 -0
- package/lib/module/components/OverlayedViews.js +13 -0
- package/lib/module/components/OverlayedViews.js.map +1 -0
- package/lib/module/components/PaginationDots.js +4 -4
- package/lib/module/components/PaginationDots.js.map +1 -1
- package/lib/module/components/Participants/ParticipantsGroupHeader.js +121 -0
- package/lib/module/components/Participants/ParticipantsGroupHeader.js.map +1 -0
- package/lib/module/components/Participants/ParticipantsGroupOptions.js +71 -0
- package/lib/module/components/Participants/ParticipantsGroupOptions.js.map +1 -0
- package/lib/module/components/Participants/ParticipantsItem.js +123 -0
- package/lib/module/components/Participants/ParticipantsItem.js.map +1 -0
- package/lib/module/components/Participants/ParticipantsItemOption.js +37 -0
- package/lib/module/components/Participants/ParticipantsItemOption.js.map +1 -0
- package/lib/module/components/Participants/ParticipantsItemOptions.js +211 -0
- package/lib/module/components/Participants/ParticipantsItemOptions.js.map +1 -0
- package/lib/module/components/Participants/ParticipantsList.js +42 -225
- package/lib/module/components/Participants/ParticipantsList.js.map +1 -1
- package/lib/module/components/Participants/ParticipantsSeachInput.js +37 -30
- package/lib/module/components/Participants/ParticipantsSeachInput.js.map +1 -1
- package/lib/module/components/Participants/index.js +0 -3
- package/lib/module/components/Participants/index.js.map +1 -1
- package/lib/module/components/PeerMinimizedView.js +1 -1
- package/lib/module/components/PeerSettingsModalContent.js +50 -126
- package/lib/module/components/PeerSettingsModalContent.js.map +1 -1
- package/lib/module/components/PeerVideoTile/AvatarView.js +19 -5
- package/lib/module/components/PeerVideoTile/AvatarView.js.map +1 -1
- package/lib/module/components/PeerVideoTile/HMSFullScreenButton.js +36 -0
- package/lib/module/components/PeerVideoTile/HMSFullScreenButton.js.map +1 -0
- package/lib/module/components/PeerVideoTile/HMSPinchGesture.js +193 -0
- package/lib/module/components/PeerVideoTile/HMSPinchGesture.js.map +1 -0
- package/lib/module/components/PeerVideoTile/PeerAudioIndicator.js +60 -0
- package/lib/module/components/PeerVideoTile/PeerAudioIndicator.js.map +1 -0
- package/lib/module/components/PeerVideoTile/PeerNameAndNetwork.js +11 -3
- package/lib/module/components/PeerVideoTile/PeerNameAndNetwork.js.map +1 -1
- package/lib/module/components/PeerVideoTile/PeerVideoTileView.js +41 -20
- package/lib/module/components/PeerVideoTile/PeerVideoTileView.js.map +1 -1
- package/lib/module/components/PeerVideoTile/VideoView.js +43 -10
- package/lib/module/components/PeerVideoTile/VideoView.js.map +1 -1
- package/lib/module/components/PressableIcon.js +11 -6
- package/lib/module/components/PressableIcon.js.map +1 -1
- package/lib/module/components/Preview.js +6 -13
- package/lib/module/components/Preview.js.map +1 -1
- package/lib/module/components/PreviewForRoleChangeModal.js +322 -0
- package/lib/module/components/PreviewForRoleChangeModal.js.map +1 -0
- package/lib/module/components/ReconnectionView.js +56 -0
- package/lib/module/components/ReconnectionView.js.map +1 -0
- package/lib/module/components/RoomSettingsModalContent.js +27 -35
- package/lib/module/components/RoomSettingsModalContent.js.map +1 -1
- package/lib/module/components/RoomSettingsModalDebugModeContent.js +31 -70
- package/lib/module/components/RoomSettingsModalDebugModeContent.js.map +1 -1
- package/lib/module/components/StatusBar.js +7 -5
- package/lib/module/components/StatusBar.js.map +1 -1
- package/lib/module/components/StopRecordingModalContent.js.map +1 -1
- package/lib/module/components/StreamingQualityModalContent.js +8 -8
- package/lib/module/components/StreamingQualityModalContent.js.map +1 -1
- package/lib/module/components/TilesContainer.js +31 -9
- package/lib/module/components/TilesContainer.js.map +1 -1
- package/lib/module/components/WebrtcView.js +11 -14
- package/lib/module/components/WebrtcView.js.map +1 -1
- package/lib/module/components/WelcomeInMeeting.js +8 -32
- package/lib/module/components/WelcomeInMeeting.js.map +1 -1
- package/lib/module/components/index.js +0 -3
- package/lib/module/components/index.js.map +1 -1
- package/lib/module/hooks-util-selectors.js +38 -8
- package/lib/module/hooks-util-selectors.js.map +1 -1
- package/lib/module/hooks-util.js +615 -213
- package/lib/module/hooks-util.js.map +1 -1
- package/lib/module/modules/HMSManager.js +3 -3
- package/lib/module/modules/HMSManager.js.map +1 -1
- package/lib/module/modules/parser.js +2 -3
- package/lib/module/modules/parser.js.map +1 -1
- package/lib/module/redux/actionTypes.js +25 -1
- package/lib/module/redux/actionTypes.js.map +1 -1
- package/lib/module/redux/actions/index.js +74 -0
- package/lib/module/redux/actions/index.js.map +1 -1
- package/lib/module/redux/reducers/appState.js +78 -2
- package/lib/module/redux/reducers/appState.js.map +1 -1
- package/lib/module/redux/reducers/chatWindow.js +3 -7
- package/lib/module/redux/reducers/chatWindow.js.map +1 -1
- package/lib/module/redux/reducers/hmsStates.js +70 -7
- package/lib/module/redux/reducers/hmsStates.js.map +1 -1
- package/lib/module/utils/functions.js +9 -3
- package/lib/module/utils/functions.js.map +1 -1
- package/lib/module/utils/theme.js +2 -0
- package/lib/module/utils/theme.js.map +1 -1
- package/lib/module/utils/types.js +6 -2
- package/lib/module/utils/types.js.map +1 -1
- package/lib/module/utils.js +6 -0
- package/lib/module/utils.js.map +1 -1
- package/lib/typescript/HMSPrebuilt.d.ts +1 -0
- package/lib/typescript/HMSPrebuilt.d.ts.map +1 -1
- package/lib/typescript/HMSRoomSetup.d.ts.map +1 -1
- package/lib/typescript/Icons/AlertTriangle/index.d.ts +1 -0
- package/lib/typescript/Icons/AlertTriangle/index.d.ts.map +1 -1
- package/lib/typescript/Icons/Eye/index.d.ts +8 -0
- package/lib/typescript/Icons/Eye/index.d.ts.map +1 -0
- package/lib/typescript/Icons/Person/index.d.ts +1 -0
- package/lib/typescript/Icons/Person/index.d.ts.map +1 -1
- package/lib/typescript/Icons/Radio/index.d.ts +7 -3
- package/lib/typescript/Icons/Radio/index.d.ts.map +1 -1
- package/lib/typescript/Icons/Search/index.d.ts +7 -0
- package/lib/typescript/Icons/Search/index.d.ts.map +1 -0
- package/lib/typescript/Icons/Stop/index.d.ts.map +1 -1
- package/lib/typescript/Icons/index.d.ts +2 -0
- package/lib/typescript/Icons/index.d.ts.map +1 -1
- package/lib/typescript/components/AnimatedFooter.d.ts +8 -0
- package/lib/typescript/components/AnimatedFooter.d.ts.map +1 -0
- package/lib/typescript/components/AnimatedHLSFooter.d.ts +11 -0
- package/lib/typescript/components/AnimatedHLSFooter.d.ts.map +1 -0
- package/lib/typescript/components/AnimatedHeader.d.ts +7 -0
- package/lib/typescript/components/AnimatedHeader.d.ts.map +1 -0
- package/lib/typescript/components/BottomSheet.d.ts +4 -1
- package/lib/typescript/components/BottomSheet.d.ts.map +1 -1
- package/lib/typescript/components/ChangeNameModalContent.d.ts.map +1 -1
- package/lib/typescript/components/Chat/ChatBanner.d.ts +1 -1
- package/lib/typescript/components/Chat/ChatBanner.d.ts.map +1 -1
- package/lib/typescript/components/Chat/ChatFilterBottomSheetOpener.d.ts +6 -0
- package/lib/typescript/components/Chat/ChatFilterBottomSheetOpener.d.ts.map +1 -0
- package/lib/typescript/components/Chat/ChatFilterBottomSheetView.d.ts +6 -0
- package/lib/typescript/components/Chat/ChatFilterBottomSheetView.d.ts.map +1 -0
- package/lib/typescript/components/Chat/ChatFilterItem.d.ts +12 -0
- package/lib/typescript/components/Chat/ChatFilterItem.d.ts.map +1 -0
- package/lib/typescript/components/Chat/ChatFilterView.d.ts +6 -0
- package/lib/typescript/components/Chat/ChatFilterView.d.ts.map +1 -0
- package/lib/typescript/components/Chat/ChatList.d.ts.map +1 -1
- package/lib/typescript/components/Chat/ChatMessage.d.ts +2 -2
- package/lib/typescript/components/Chat/ChatMessage.d.ts.map +1 -1
- package/lib/typescript/components/Chat/PinnedMessage.d.ts.map +1 -1
- package/lib/typescript/components/ChatAndParticipants/ChatAndParticipantsBottomSheet.d.ts +3 -0
- package/lib/typescript/components/ChatAndParticipants/ChatAndParticipantsBottomSheet.d.ts.map +1 -0
- package/lib/typescript/components/ChatAndParticipants/ChatAndParticipantsHeader.d.ts +7 -0
- package/lib/typescript/components/ChatAndParticipants/ChatAndParticipantsHeader.d.ts.map +1 -0
- package/lib/typescript/components/ChatAndParticipants/ChatAndParticipantsView.d.ts +3 -0
- package/lib/typescript/components/ChatAndParticipants/ChatAndParticipantsView.d.ts.map +1 -0
- package/lib/typescript/components/ChatAndParticipants/ChatView.d.ts +6 -0
- package/lib/typescript/components/ChatAndParticipants/ChatView.d.ts.map +1 -0
- package/lib/typescript/components/ChatAndParticipants/ParticipantsView.d.ts +5 -0
- package/lib/typescript/components/ChatAndParticipants/ParticipantsView.d.ts.map +1 -0
- package/lib/typescript/components/ChatAndParticipants/index.d.ts +2 -0
- package/lib/typescript/components/ChatAndParticipants/index.d.ts.map +1 -0
- package/lib/typescript/components/CompanyLogo.d.ts.map +1 -1
- package/lib/typescript/components/DefaultModal.d.ts.map +1 -1
- package/lib/typescript/components/DisplayView.d.ts.map +1 -1
- package/lib/typescript/components/EndRoomModalContent.d.ts.map +1 -1
- package/lib/typescript/components/Footer.d.ts +0 -2
- package/lib/typescript/components/Footer.d.ts.map +1 -1
- package/lib/typescript/components/FullScreenVideoView.d.ts +3 -0
- package/lib/typescript/components/FullScreenVideoView.d.ts.map +1 -0
- package/lib/typescript/components/GridView.d.ts +12 -1
- package/lib/typescript/components/GridView.d.ts.map +1 -1
- package/lib/typescript/components/HLSFooter.d.ts +8 -0
- package/lib/typescript/components/HLSFooter.d.ts.map +1 -0
- package/lib/typescript/components/HLSView.d.ts.map +1 -1
- package/lib/typescript/components/HMSBaseButton.d.ts +2 -2
- package/lib/typescript/components/HMSBaseButton.d.ts.map +1 -1
- package/lib/typescript/components/HMSChat.d.ts.map +1 -1
- package/lib/typescript/components/HMSHLSMessage.d.ts +8 -0
- package/lib/typescript/components/HMSHLSMessage.d.ts.map +1 -0
- package/lib/typescript/components/HMSHLSMessageList.d.ts +3 -0
- package/lib/typescript/components/HMSHLSMessageList.d.ts.map +1 -0
- package/lib/typescript/components/HMSHLSNotStarted.d.ts.map +1 -1
- package/lib/typescript/components/HMSHandRaiseNotification.d.ts +10 -0
- package/lib/typescript/components/HMSHandRaiseNotification.d.ts.map +1 -0
- package/lib/typescript/components/HMSKeyboardAvoidingView.d.ts +8 -0
- package/lib/typescript/components/HMSKeyboardAvoidingView.d.ts.map +1 -0
- package/lib/typescript/components/HMSLiveIndicator.d.ts +3 -0
- package/lib/typescript/components/HMSLiveIndicator.d.ts.map +1 -0
- package/lib/typescript/components/HMSLocalScreenshareNotification.d.ts +5 -0
- package/lib/typescript/components/HMSLocalScreenshareNotification.d.ts.map +1 -0
- package/lib/typescript/components/HMSLocalVideoView.d.ts.map +1 -1
- package/lib/typescript/components/HMSManageAudioOutput.d.ts.map +1 -1
- package/lib/typescript/components/HMSManageLeave.d.ts.map +1 -1
- package/lib/typescript/components/HMSManageRaiseHand.d.ts.map +1 -1
- package/lib/typescript/components/HMSNotification.d.ts +15 -0
- package/lib/typescript/components/HMSNotification.d.ts.map +1 -0
- package/lib/typescript/components/HMSNotifications.d.ts +5 -0
- package/lib/typescript/components/HMSNotifications.d.ts.map +1 -0
- package/lib/typescript/components/HMSOverlayChatView.d.ts +3 -0
- package/lib/typescript/components/HMSOverlayChatView.d.ts.map +1 -0
- package/lib/typescript/components/HMSPreviewJoinButton.d.ts.map +1 -1
- package/lib/typescript/components/HMSPreviewNetworkQuality.d.ts.map +1 -1
- package/lib/typescript/components/HMSPreviewSubtitle.d.ts.map +1 -1
- package/lib/typescript/components/HMSPreviewTitle.d.ts.map +1 -1
- package/lib/typescript/components/HMSRecordingIndicator.d.ts.map +1 -1
- package/lib/typescript/components/HMSRoleChangeDeclinedNotification.d.ts +9 -0
- package/lib/typescript/components/HMSRoleChangeDeclinedNotification.d.ts.map +1 -0
- package/lib/typescript/components/HMSSendMessageInput.d.ts +9 -0
- package/lib/typescript/components/HMSSendMessageInput.d.ts.map +1 -0
- package/lib/typescript/components/HMSTextInput.d.ts +20 -6
- package/lib/typescript/components/HMSTextInput.d.ts.map +1 -1
- package/lib/typescript/components/HMSVideoView.d.ts +6 -0
- package/lib/typescript/components/HMSVideoView.d.ts.map +1 -0
- package/lib/typescript/components/Header.d.ts +3 -2
- package/lib/typescript/components/Header.d.ts.map +1 -1
- package/lib/typescript/components/LocalPeerScreenshareView.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/MiniView.d.ts.map +1 -1
- package/lib/typescript/components/Modals.d.ts +1 -21
- package/lib/typescript/components/Modals.d.ts.map +1 -1
- package/lib/typescript/components/OverlayContainer.d.ts +9 -0
- package/lib/typescript/components/OverlayContainer.d.ts.map +1 -0
- package/lib/typescript/components/OverlayedViews.d.ts +4 -0
- package/lib/typescript/components/OverlayedViews.d.ts.map +1 -0
- package/lib/typescript/components/PaginationDots.d.ts +3 -0
- package/lib/typescript/components/PaginationDots.d.ts.map +1 -1
- package/lib/typescript/components/Participants/ParticipantsGroupHeader.d.ts +9 -0
- package/lib/typescript/components/Participants/ParticipantsGroupHeader.d.ts.map +1 -0
- package/lib/typescript/components/Participants/ParticipantsGroupOptions.d.ts +8 -0
- package/lib/typescript/components/Participants/ParticipantsGroupOptions.d.ts.map +1 -0
- package/lib/typescript/components/Participants/ParticipantsItem.d.ts +9 -0
- package/lib/typescript/components/Participants/ParticipantsItem.d.ts.map +1 -0
- package/lib/typescript/components/Participants/ParticipantsItemOption.d.ts +12 -0
- package/lib/typescript/components/Participants/ParticipantsItemOption.d.ts.map +1 -0
- package/lib/typescript/components/Participants/ParticipantsItemOptions.d.ts +10 -0
- package/lib/typescript/components/Participants/ParticipantsItemOptions.d.ts.map +1 -0
- package/lib/typescript/components/Participants/ParticipantsList.d.ts +4 -2
- package/lib/typescript/components/Participants/ParticipantsList.d.ts.map +1 -1
- package/lib/typescript/components/Participants/ParticipantsSeachInput.d.ts.map +1 -1
- package/lib/typescript/components/Participants/index.d.ts +0 -3
- package/lib/typescript/components/Participants/index.d.ts.map +1 -1
- package/lib/typescript/components/PeerSettingsModalContent.d.ts.map +1 -1
- package/lib/typescript/components/PeerVideoTile/AvatarView.d.ts +4 -0
- package/lib/typescript/components/PeerVideoTile/AvatarView.d.ts.map +1 -1
- package/lib/typescript/components/PeerVideoTile/HMSFullScreenButton.d.ts +7 -0
- package/lib/typescript/components/PeerVideoTile/HMSFullScreenButton.d.ts.map +1 -0
- package/lib/typescript/components/PeerVideoTile/HMSPinchGesture.d.ts +7 -0
- package/lib/typescript/components/PeerVideoTile/HMSPinchGesture.d.ts.map +1 -0
- package/lib/typescript/components/PeerVideoTile/PeerAudioIndicator.d.ts +8 -0
- package/lib/typescript/components/PeerVideoTile/PeerAudioIndicator.d.ts.map +1 -0
- package/lib/typescript/components/PeerVideoTile/PeerNameAndNetwork.d.ts.map +1 -1
- package/lib/typescript/components/PeerVideoTile/PeerVideoTileView.d.ts +2 -1
- package/lib/typescript/components/PeerVideoTile/PeerVideoTileView.d.ts.map +1 -1
- package/lib/typescript/components/PeerVideoTile/VideoView.d.ts +1 -0
- package/lib/typescript/components/PeerVideoTile/VideoView.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/PreviewForRoleChangeModal.d.ts +3 -0
- package/lib/typescript/components/PreviewForRoleChangeModal.d.ts.map +1 -0
- package/lib/typescript/components/ReconnectionView.d.ts +4 -0
- package/lib/typescript/components/ReconnectionView.d.ts.map +1 -0
- package/lib/typescript/components/RoomSettingsModalContent.d.ts.map +1 -1
- package/lib/typescript/components/RoomSettingsModalDebugModeContent.d.ts.map +1 -1
- package/lib/typescript/components/StatusBar.d.ts +2 -1
- package/lib/typescript/components/StatusBar.d.ts.map +1 -1
- package/lib/typescript/components/StopRecordingModalContent.d.ts.map +1 -1
- package/lib/typescript/components/StreamingQualityModalContent.d.ts.map +1 -1
- package/lib/typescript/components/TilesContainer.d.ts.map +1 -1
- package/lib/typescript/components/WebrtcView.d.ts.map +1 -1
- package/lib/typescript/components/WelcomeInMeeting.d.ts.map +1 -1
- package/lib/typescript/components/index.d.ts +0 -3
- package/lib/typescript/components/index.d.ts.map +1 -1
- package/lib/typescript/hooks-util-selectors.d.ts +7 -2
- package/lib/typescript/hooks-util-selectors.d.ts.map +1 -1
- package/lib/typescript/hooks-util.d.ts +53 -23
- package/lib/typescript/hooks-util.d.ts.map +1 -1
- package/lib/typescript/modules/HMSManager.d.ts +1 -1
- package/lib/typescript/modules/HMSManager.d.ts.map +1 -1
- package/lib/typescript/modules/parser.d.ts +1 -1
- package/lib/typescript/modules/parser.d.ts.map +1 -1
- package/lib/typescript/redux/actionTypes.d.ts +16 -1
- package/lib/typescript/redux/actionTypes.d.ts.map +1 -1
- package/lib/typescript/redux/actions/index.d.ts +92 -4
- package/lib/typescript/redux/actions/index.d.ts.map +1 -1
- package/lib/typescript/redux/index.d.ts +22 -2
- package/lib/typescript/redux/index.d.ts.map +1 -1
- package/lib/typescript/redux/reducers/appState.d.ts +10 -0
- package/lib/typescript/redux/reducers/appState.d.ts.map +1 -1
- package/lib/typescript/redux/reducers/chatWindow.d.ts +6 -6
- package/lib/typescript/redux/reducers/chatWindow.d.ts.map +1 -1
- package/lib/typescript/redux/reducers/hmsStates.d.ts +32 -4
- package/lib/typescript/redux/reducers/hmsStates.d.ts.map +1 -1
- package/lib/typescript/redux/reducers/index.d.ts +22 -2
- package/lib/typescript/redux/reducers/index.d.ts.map +1 -1
- package/lib/typescript/redux/reducers/userState.d.ts +1 -0
- package/lib/typescript/redux/reducers/userState.d.ts.map +1 -1
- package/lib/typescript/utils/functions.d.ts +3 -1
- package/lib/typescript/utils/functions.d.ts.map +1 -1
- package/lib/typescript/utils/theme.d.ts +1 -1
- package/lib/typescript/utils/theme.d.ts.map +1 -1
- package/lib/typescript/utils/types.d.ts +6 -2
- package/lib/typescript/utils/types.d.ts.map +1 -1
- package/lib/typescript/utils.d.ts +5 -0
- package/lib/typescript/utils.d.ts.map +1 -1
- package/package.json +13 -8
- package/src/HMSPrebuilt.tsx +10 -10
- package/src/HMSRoomSetup.tsx +50 -28
- package/src/Icons/AlertTriangle/assets/alert-triangle-filled.png +0 -0
- package/src/Icons/AlertTriangle/assets/alert-triangle-filled@2x.png +0 -0
- package/src/Icons/AlertTriangle/assets/alert-triangle-filled@3x.png +0 -0
- package/src/Icons/AlertTriangle/index.tsx +9 -2
- package/src/Icons/Eye/assets/eye-on-small.png +0 -0
- package/src/Icons/Eye/assets/eye-on-small@2x.png +0 -0
- package/src/Icons/Eye/assets/eye-on-small@3x.png +0 -0
- package/src/Icons/Eye/index.tsx +36 -0
- package/src/Icons/Hamburger/assets/hamburger.png +0 -0
- package/src/Icons/Hamburger/assets/hamburger@2x.png +0 -0
- package/src/Icons/Hamburger/assets/hamburger@3x.png +0 -0
- package/src/Icons/Person/assets/person-left.png +0 -0
- package/src/Icons/Person/assets/person-left@2x.png +0 -0
- package/src/Icons/Person/assets/person-left@3x.png +0 -0
- package/src/Icons/Person/assets/person-off.png +0 -0
- package/src/Icons/Person/assets/person-off@2x.png +0 -0
- package/src/Icons/Person/assets/person-off@3x.png +0 -0
- package/src/Icons/Person/assets/person-rectangle.png +0 -0
- package/src/Icons/Person/assets/person-rectangle@2x.png +0 -0
- package/src/Icons/Person/assets/person-rectangle@3x.png +0 -0
- package/src/Icons/Person/index.tsx +13 -2
- package/src/Icons/Radio/assets/radio-xlarge.png +0 -0
- package/src/Icons/Radio/assets/radio-xlarge@2x.png +0 -0
- package/src/Icons/Radio/assets/radio-xlarge@3x.png +0 -0
- package/src/Icons/Radio/index.tsx +53 -4
- package/src/Icons/Search/assets/search.png +0 -0
- package/src/Icons/Search/assets/search@2x.png +0 -0
- package/src/Icons/Search/assets/search@3x.png +0 -0
- package/src/Icons/Search/index.tsx +33 -0
- package/src/Icons/Stop/assets/stop.png +0 -0
- package/src/Icons/Stop/assets/stop@2x.png +0 -0
- package/src/Icons/Stop/assets/stop@3x.png +0 -0
- package/src/Icons/Stop/index.tsx +1 -4
- package/src/Icons/index.ts +2 -0
- package/src/assets/audio-level-white.json +1271 -0
- package/src/assets/empty-chat-illustration/empty-chat.png +0 -0
- package/src/assets/empty-chat-illustration/empty-chat@2x.png +0 -0
- package/src/assets/empty-chat-illustration/empty-chat@3x.png +0 -0
- package/src/assets/welcome.png +0 -0
- package/src/components/AnimatedFooter.tsx +37 -0
- package/src/components/AnimatedHLSFooter.tsx +43 -0
- package/src/components/AnimatedHeader.tsx +53 -0
- package/src/components/BottomSheet.tsx +8 -4
- package/src/components/ChangeNameModalContent.tsx +2 -11
- package/src/components/Chat/ChatBanner.tsx +37 -52
- package/src/components/Chat/ChatFilterBottomSheetOpener.tsx +88 -0
- package/src/components/Chat/ChatFilterBottomSheetView.tsx +81 -0
- package/src/components/Chat/ChatFilterItem.tsx +71 -0
- package/src/components/Chat/ChatFilterView.tsx +250 -0
- package/src/components/Chat/ChatList.tsx +16 -12
- package/src/components/Chat/ChatMessage.tsx +48 -197
- package/src/components/Chat/PinnedMessage.tsx +45 -45
- package/src/components/ChatAndParticipants/ChatAndParticipantsBottomSheet.tsx +38 -0
- package/src/components/ChatAndParticipants/ChatAndParticipantsHeader.tsx +140 -0
- package/src/components/ChatAndParticipants/ChatAndParticipantsView.tsx +84 -0
- package/src/components/ChatAndParticipants/ChatView.tsx +42 -0
- package/src/components/ChatAndParticipants/ParticipantsView.tsx +41 -0
- package/src/components/ChatAndParticipants/index.ts +1 -0
- package/src/components/CompanyLogo.tsx +4 -3
- package/src/components/DefaultModal.tsx +4 -6
- package/src/components/DisplayView.tsx +11 -28
- package/src/components/EndRoomModalContent.tsx +32 -7
- package/src/components/Footer.tsx +76 -36
- package/src/components/FullScreenVideoView.tsx +77 -0
- package/src/components/GridView.tsx +186 -65
- package/src/components/HLSFooter.tsx +32 -0
- package/src/components/HLSView.tsx +6 -33
- package/src/components/HMSBaseButton.tsx +2 -2
- package/src/components/HMSChat.tsx +12 -25
- package/src/components/HMSHLSMessage.tsx +72 -0
- package/src/components/HMSHLSMessageList.tsx +60 -0
- package/src/components/HMSHLSNotStarted.tsx +27 -32
- package/src/components/HMSHandRaiseNotification.tsx +101 -0
- package/src/components/HMSKeyboardAvoidingView.tsx +58 -0
- package/src/components/HMSLiveIndicator.tsx +124 -0
- package/src/components/HMSLocalScreenshareNotification.tsx +41 -0
- package/src/components/HMSLocalVideoView.tsx +4 -31
- package/src/components/HMSManageAudioOutput.tsx +14 -2
- package/src/components/HMSManageLeave.tsx +56 -35
- package/src/components/HMSManageRaiseHand.tsx +2 -16
- package/src/components/HMSNotification.tsx +126 -0
- package/src/components/HMSNotifications.tsx +154 -0
- package/src/components/HMSOverlayChatView.tsx +36 -0
- package/src/components/HMSPreviewJoinButton.tsx +6 -3
- package/src/components/HMSPreviewNetworkQuality.tsx +3 -1
- package/src/components/HMSPreviewSubtitle.tsx +2 -6
- package/src/components/HMSPreviewTitle.tsx +2 -6
- package/src/components/HMSRecordingIndicator.tsx +18 -5
- package/src/components/HMSRoleChangeDeclinedNotification.tsx +25 -0
- package/src/components/HMSSendMessageInput.tsx +59 -0
- package/src/components/HMSTextInput.tsx +157 -23
- package/src/components/HMSVideoView.tsx +43 -0
- package/src/components/Header.tsx +28 -136
- package/src/components/LocalPeerScreenshareView.tsx +0 -6
- package/src/components/Meeting.tsx +15 -8
- package/src/components/MeetingScreenContent.tsx +29 -12
- package/src/components/MiniView.tsx +10 -4
- package/src/components/Modals.tsx +112 -370
- package/src/components/OverlayContainer.tsx +31 -0
- package/src/components/OverlayedViews.tsx +22 -0
- package/src/components/PaginationDots.tsx +9 -8
- package/src/components/Participants/ParticipantsGroupHeader.tsx +145 -0
- package/src/components/Participants/ParticipantsGroupOptions.tsx +87 -0
- package/src/components/Participants/ParticipantsItem.tsx +170 -0
- package/src/components/Participants/ParticipantsItemOption.tsx +52 -0
- package/src/components/Participants/ParticipantsItemOptions.tsx +262 -0
- package/src/components/Participants/ParticipantsList.tsx +68 -278
- package/src/components/Participants/ParticipantsSeachInput.tsx +37 -35
- package/src/components/Participants/index.ts +0 -3
- package/src/components/PeerMinimizedView.tsx +1 -1
- package/src/components/PeerSettingsModalContent.tsx +44 -191
- package/src/components/PeerVideoTile/AvatarView.tsx +43 -5
- package/src/components/PeerVideoTile/HMSFullScreenButton.tsx +56 -0
- package/src/components/PeerVideoTile/HMSPinchGesture.tsx +176 -0
- package/src/components/PeerVideoTile/PeerAudioIndicator.tsx +78 -0
- package/src/components/PeerVideoTile/PeerNameAndNetwork.tsx +15 -2
- package/src/components/PeerVideoTile/PeerVideoTileView.tsx +172 -115
- package/src/components/PeerVideoTile/VideoView.tsx +59 -9
- package/src/components/PressableIcon.tsx +26 -13
- package/src/components/Preview.tsx +17 -24
- package/src/components/PreviewForRoleChangeModal.tsx +448 -0
- package/src/components/ReconnectionView.tsx +73 -0
- package/src/components/RoomSettingsModalContent.tsx +32 -29
- package/src/components/RoomSettingsModalDebugModeContent.tsx +11 -65
- package/src/components/StatusBar.tsx +6 -4
- package/src/components/StopRecordingModalContent.tsx +3 -1
- package/src/components/StreamingQualityModalContent.tsx +8 -8
- package/src/components/TilesContainer.tsx +54 -24
- package/src/components/WebrtcView.tsx +29 -19
- package/src/components/WelcomeInMeeting.tsx +5 -34
- package/src/components/index.ts +0 -3
- package/src/hooks-util-selectors.tsx +69 -6
- package/src/hooks-util.ts +856 -273
- package/src/modules/HMSManager.ts +3 -3
- package/src/modules/parser.ts +3 -4
- package/src/redux/actionTypes.ts +33 -0
- package/src/redux/actions/index.ts +99 -2
- package/src/redux/reducers/appState.ts +87 -2
- package/src/redux/reducers/chatWindow.ts +12 -5
- package/src/redux/reducers/hmsStates.ts +136 -4
- package/src/redux/reducers/userState.ts +1 -1
- package/src/utils/functions.ts +10 -1
- package/src/utils/theme.ts +3 -1
- package/src/utils/types.ts +6 -2
- package/src/utils.ts +6 -0
- package/lib/commonjs/assets/100ms-logo.png +0 -0
- package/lib/commonjs/assets/brb.png +0 -0
- package/lib/commonjs/assets/icon.png +0 -0
- package/lib/commonjs/assets/illustration.png +0 -0
- package/lib/commonjs/assets/network_0.png +0 -0
- package/lib/commonjs/assets/network_1.png +0 -0
- package/lib/commonjs/assets/network_2.png +0 -0
- package/lib/commonjs/assets/network_3.png +0 -0
- package/lib/commonjs/assets/network_4.png +0 -0
- package/lib/commonjs/assets/user_music.png +0 -0
- package/lib/commonjs/components/ChatWindow.js +0 -608
- package/lib/commonjs/components/ChatWindow.js.map +0 -1
- package/lib/commonjs/components/CustomInput.js +0 -89
- package/lib/commonjs/components/CustomInput.js.map +0 -1
- package/lib/commonjs/components/DisplayTrack.js +0 -70
- package/lib/commonjs/components/DisplayTrack.js.map +0 -1
- package/lib/commonjs/components/HMSShareScreen.js +0 -59
- package/lib/commonjs/components/HMSShareScreen.js.map +0 -1
- package/lib/commonjs/components/HMSShowNetworkQuality.js +0 -56
- package/lib/commonjs/components/HMSShowNetworkQuality.js.map +0 -1
- package/lib/commonjs/components/LiveButton.js +0 -70
- package/lib/commonjs/components/LiveButton.js.map +0 -1
- package/lib/commonjs/components/Participants/ParticipantsFilter.js +0 -128
- package/lib/commonjs/components/Participants/ParticipantsFilter.js.map +0 -1
- package/lib/commonjs/components/Participants/ParticipantsHeader.js +0 -67
- package/lib/commonjs/components/Participants/ParticipantsHeader.js.map +0 -1
- package/lib/commonjs/components/Participants/SearchableParticipantsView.js.map +0 -1
- package/lib/commonjs/components/ParticipantsModal.js.map +0 -1
- package/lib/commonjs/components/PeerVideoTile/PeerAudioMutedIndicator.js.map +0 -1
- package/lib/commonjs/components/Picker.js +0 -93
- package/lib/commonjs/components/Picker.js.map +0 -1
- package/lib/module/assets/100ms-logo.png +0 -0
- package/lib/module/assets/brb.png +0 -0
- package/lib/module/assets/icon.png +0 -0
- package/lib/module/assets/illustration.png +0 -0
- package/lib/module/assets/network_0.png +0 -0
- package/lib/module/assets/network_1.png +0 -0
- package/lib/module/assets/network_2.png +0 -0
- package/lib/module/assets/network_3.png +0 -0
- package/lib/module/assets/network_4.png +0 -0
- package/lib/module/assets/user_music.png +0 -0
- package/lib/module/components/ChatWindow.js +0 -595
- package/lib/module/components/ChatWindow.js.map +0 -1
- package/lib/module/components/CustomInput.js +0 -82
- package/lib/module/components/CustomInput.js.map +0 -1
- package/lib/module/components/DisplayTrack.js +0 -63
- package/lib/module/components/DisplayTrack.js.map +0 -1
- package/lib/module/components/HMSShareScreen.js +0 -50
- package/lib/module/components/HMSShareScreen.js.map +0 -1
- package/lib/module/components/HMSShowNetworkQuality.js +0 -47
- package/lib/module/components/HMSShowNetworkQuality.js.map +0 -1
- package/lib/module/components/LiveButton.js +0 -61
- package/lib/module/components/LiveButton.js.map +0 -1
- package/lib/module/components/Participants/ParticipantsFilter.js +0 -121
- package/lib/module/components/Participants/ParticipantsFilter.js.map +0 -1
- package/lib/module/components/Participants/ParticipantsHeader.js +0 -58
- package/lib/module/components/Participants/ParticipantsHeader.js.map +0 -1
- package/lib/module/components/Participants/SearchableParticipantsView.js +0 -18
- package/lib/module/components/Participants/SearchableParticipantsView.js.map +0 -1
- package/lib/module/components/ParticipantsModal.js +0 -34
- package/lib/module/components/ParticipantsModal.js.map +0 -1
- package/lib/module/components/PeerVideoTile/PeerAudioMutedIndicator.js +0 -35
- package/lib/module/components/PeerVideoTile/PeerAudioMutedIndicator.js.map +0 -1
- package/lib/module/components/Picker.js +0 -83
- package/lib/module/components/Picker.js.map +0 -1
- package/lib/typescript/components/ChatWindow.d.ts +0 -22
- package/lib/typescript/components/ChatWindow.d.ts.map +0 -1
- package/lib/typescript/components/CustomInput.d.ts +0 -24
- package/lib/typescript/components/CustomInput.d.ts.map +0 -1
- package/lib/typescript/components/DisplayTrack.d.ts +0 -9
- package/lib/typescript/components/DisplayTrack.d.ts.map +0 -1
- package/lib/typescript/components/HMSShareScreen.d.ts +0 -9
- package/lib/typescript/components/HMSShareScreen.d.ts.map +0 -1
- package/lib/typescript/components/HMSShowNetworkQuality.d.ts +0 -3
- package/lib/typescript/components/HMSShowNetworkQuality.d.ts.map +0 -1
- package/lib/typescript/components/LiveButton.d.ts +0 -17
- package/lib/typescript/components/LiveButton.d.ts.map +0 -1
- package/lib/typescript/components/Participants/ParticipantsFilter.d.ts +0 -6
- package/lib/typescript/components/Participants/ParticipantsFilter.d.ts.map +0 -1
- package/lib/typescript/components/Participants/ParticipantsHeader.d.ts +0 -9
- package/lib/typescript/components/Participants/ParticipantsHeader.d.ts.map +0 -1
- package/lib/typescript/components/Participants/SearchableParticipantsView.d.ts +0 -3
- package/lib/typescript/components/Participants/SearchableParticipantsView.d.ts.map +0 -1
- package/lib/typescript/components/ParticipantsModal.d.ts +0 -5
- package/lib/typescript/components/ParticipantsModal.d.ts.map +0 -1
- package/lib/typescript/components/PeerVideoTile/PeerAudioMutedIndicator.d.ts +0 -6
- package/lib/typescript/components/PeerVideoTile/PeerAudioMutedIndicator.d.ts.map +0 -1
- package/lib/typescript/components/Picker.d.ts +0 -9
- package/lib/typescript/components/Picker.d.ts.map +0 -1
- package/src/assets/100ms-logo.png +0 -0
- package/src/assets/brb.png +0 -0
- package/src/assets/icon.png +0 -0
- package/src/assets/illustration.png +0 -0
- package/src/assets/network_0.png +0 -0
- package/src/assets/network_1.png +0 -0
- package/src/assets/network_2.png +0 -0
- package/src/assets/network_3.png +0 -0
- package/src/assets/network_4.png +0 -0
- package/src/assets/user_music.png +0 -0
- package/src/components/ChatWindow.tsx +0 -706
- package/src/components/CustomInput.tsx +0 -138
- package/src/components/DisplayTrack.tsx +0 -92
- package/src/components/HMSShareScreen.tsx +0 -71
- package/src/components/HMSShowNetworkQuality.tsx +0 -68
- package/src/components/LiveButton.tsx +0 -77
- package/src/components/Participants/ParticipantsFilter.tsx +0 -144
- package/src/components/Participants/ParticipantsHeader.tsx +0 -64
- package/src/components/Participants/SearchableParticipantsView.tsx +0 -21
- package/src/components/ParticipantsModal.tsx +0 -46
- package/src/components/PeerVideoTile/PeerAudioMutedIndicator.tsx +0 -41
- package/src/components/Picker.tsx +0 -108
|
@@ -1,35 +1,65 @@
|
|
|
1
1
|
import React, { memo, useMemo } from 'react';
|
|
2
2
|
import { View, StyleSheet, Platform } from 'react-native';
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
import { useIsHLSViewer } from '../hooks-util';
|
|
3
|
+
import { SafeAreaView } from 'react-native-safe-area-context';
|
|
4
|
+
|
|
5
|
+
import {
|
|
6
|
+
useHMSLayoutConfig,
|
|
7
|
+
useHMSRoomStyle,
|
|
8
|
+
useIsHLSViewer,
|
|
9
|
+
useShowChatAndParticipants,
|
|
10
|
+
} from '../hooks-util';
|
|
12
11
|
import { HMSManageLeave } from './HMSManageLeave';
|
|
13
12
|
import { HMSManageRaiseHand } from './HMSManageRaiseHand';
|
|
14
13
|
import { HMSManageLocalAudio } from './HMSManageLocalAudio';
|
|
15
14
|
import { HMSManageLocalVideo } from './HMSManageLocalVideo';
|
|
16
15
|
import { HMSChat } from './HMSChat';
|
|
17
16
|
import { HMSRoomOptions } from './HMSRoomOptions';
|
|
18
|
-
import {
|
|
17
|
+
import {
|
|
18
|
+
useCanPublishAudio,
|
|
19
|
+
useCanPublishScreen,
|
|
20
|
+
useCanPublishVideo,
|
|
21
|
+
} from '../hooks-sdk';
|
|
22
|
+
import { useSelector } from 'react-redux';
|
|
23
|
+
import type { RootState } from '../redux';
|
|
19
24
|
|
|
20
|
-
interface FooterProps {
|
|
21
|
-
offset: SharedValue<number>;
|
|
22
|
-
}
|
|
25
|
+
interface FooterProps {}
|
|
23
26
|
|
|
24
|
-
export const _Footer: React.FC<FooterProps> = (
|
|
27
|
+
export const _Footer: React.FC<FooterProps> = () => {
|
|
25
28
|
const isHLSViewer = useIsHLSViewer();
|
|
26
29
|
const canPublishAudio = useCanPublishAudio();
|
|
27
30
|
const canPublishVideo = useCanPublishVideo();
|
|
31
|
+
const canPublishScreen = useCanPublishScreen();
|
|
32
|
+
|
|
33
|
+
const isViewer = !(canPublishAudio || canPublishVideo || canPublishScreen);
|
|
34
|
+
|
|
35
|
+
const { canShowParticipants, canShowChat } = useShowChatAndParticipants();
|
|
36
|
+
|
|
37
|
+
const canShowBRB = useHMSLayoutConfig(
|
|
38
|
+
(layoutConfig) =>
|
|
39
|
+
!!layoutConfig?.screens?.conferencing?.default?.elements?.brb
|
|
40
|
+
);
|
|
41
|
+
|
|
42
|
+
const isOnStage = useHMSLayoutConfig((layoutConfig) => {
|
|
43
|
+
return !!layoutConfig?.screens?.conferencing?.default?.elements
|
|
44
|
+
?.on_stage_exp;
|
|
45
|
+
});
|
|
46
|
+
|
|
47
|
+
const canStartRecording = useSelector(
|
|
48
|
+
(state: RootState) =>
|
|
49
|
+
!!state.hmsStates.localPeer?.role?.permissions?.browserRecording
|
|
50
|
+
);
|
|
51
|
+
|
|
52
|
+
const canShowOptions =
|
|
53
|
+
canPublishScreen || canShowParticipants || canShowBRB || canStartRecording;
|
|
28
54
|
|
|
29
55
|
const footerActionButtons = useMemo(() => {
|
|
30
|
-
const actions = [
|
|
56
|
+
const actions = [];
|
|
57
|
+
|
|
58
|
+
if (canShowChat) {
|
|
59
|
+
actions.push('chat');
|
|
60
|
+
}
|
|
31
61
|
|
|
32
|
-
if (
|
|
62
|
+
if (!isOnStage && isViewer) {
|
|
33
63
|
actions.unshift('hand-raise');
|
|
34
64
|
}
|
|
35
65
|
|
|
@@ -43,27 +73,35 @@ export const _Footer: React.FC<FooterProps> = ({ offset }) => {
|
|
|
43
73
|
|
|
44
74
|
actions.unshift('leave');
|
|
45
75
|
|
|
76
|
+
if (canShowOptions) {
|
|
77
|
+
actions.push('options');
|
|
78
|
+
}
|
|
79
|
+
|
|
46
80
|
return actions;
|
|
47
|
-
}, [
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
const
|
|
57
|
-
|
|
58
|
-
}
|
|
59
|
-
return {
|
|
60
|
-
pointerEvents: offset.value === 0 ? 'none' : 'auto',
|
|
61
|
-
};
|
|
62
|
-
}, []);
|
|
81
|
+
}, [
|
|
82
|
+
isOnStage,
|
|
83
|
+
canShowOptions,
|
|
84
|
+
canShowChat,
|
|
85
|
+
isViewer,
|
|
86
|
+
canPublishAudio,
|
|
87
|
+
canPublishVideo,
|
|
88
|
+
]);
|
|
89
|
+
|
|
90
|
+
const containerStyles = useHMSRoomStyle((theme) => ({
|
|
91
|
+
backgroundColor: theme.palette.background_dim,
|
|
92
|
+
}));
|
|
63
93
|
|
|
64
94
|
return (
|
|
65
|
-
<
|
|
66
|
-
|
|
95
|
+
<SafeAreaView
|
|
96
|
+
style={isHLSViewer ? null : containerStyles}
|
|
97
|
+
edges={['bottom']}
|
|
98
|
+
>
|
|
99
|
+
<View
|
|
100
|
+
style={[
|
|
101
|
+
styles.container,
|
|
102
|
+
isHLSViewer ? styles.hlsContainer : containerStyles,
|
|
103
|
+
]}
|
|
104
|
+
>
|
|
67
105
|
{footerActionButtons.map((actionType, index) => {
|
|
68
106
|
return (
|
|
69
107
|
<View
|
|
@@ -87,7 +125,7 @@ export const _Footer: React.FC<FooterProps> = ({ offset }) => {
|
|
|
87
125
|
);
|
|
88
126
|
})}
|
|
89
127
|
</View>
|
|
90
|
-
</
|
|
128
|
+
</SafeAreaView>
|
|
91
129
|
);
|
|
92
130
|
};
|
|
93
131
|
|
|
@@ -95,12 +133,14 @@ const styles = StyleSheet.create({
|
|
|
95
133
|
container: {
|
|
96
134
|
paddingTop: 16,
|
|
97
135
|
paddingHorizontal: 16,
|
|
98
|
-
backgroundColor: COLORS.BACKGROUND.DIM,
|
|
99
136
|
flexDirection: 'row',
|
|
100
137
|
alignItems: 'center',
|
|
101
138
|
justifyContent: 'center',
|
|
102
139
|
marginBottom: Platform.OS === 'android' ? 16 : 0, // TODO: need to correct hide aimation offsets because of this change
|
|
103
140
|
},
|
|
141
|
+
hlsContainer: {
|
|
142
|
+
paddingTop: 8,
|
|
143
|
+
},
|
|
104
144
|
iconWrapper: {
|
|
105
145
|
marginLeft: 24,
|
|
106
146
|
},
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import Modal from 'react-native-modal';
|
|
3
|
+
import { StyleSheet, View } from 'react-native';
|
|
4
|
+
import { useDispatch, useSelector } from 'react-redux';
|
|
5
|
+
import { SafeAreaView } from 'react-native-safe-area-context';
|
|
6
|
+
import { GestureHandlerRootView } from 'react-native-gesture-handler';
|
|
7
|
+
|
|
8
|
+
import type { RootState } from '../redux';
|
|
9
|
+
import { useHMSRoomColorPalette, useHMSRoomStyle } from '../hooks-util';
|
|
10
|
+
import { setFullScreenPeerTrackNode } from '../redux/actions';
|
|
11
|
+
import { HMSFullScreenButton } from './PeerVideoTile/HMSFullScreenButton';
|
|
12
|
+
import { PeerVideoTileView } from './PeerVideoTile/PeerVideoTileView';
|
|
13
|
+
|
|
14
|
+
export const FullScreenVideoView = () => {
|
|
15
|
+
const dispatch = useDispatch();
|
|
16
|
+
const fullScreenPeerTrackNode = useSelector(
|
|
17
|
+
(state: RootState) => state.app.fullScreenPeerTrackNode
|
|
18
|
+
);
|
|
19
|
+
|
|
20
|
+
const { background_dim: backgroundDimColor } = useHMSRoomColorPalette();
|
|
21
|
+
|
|
22
|
+
const contentContainerStyles = useHMSRoomStyle((theme) => ({
|
|
23
|
+
backgroundColor: theme.palette.background_dim,
|
|
24
|
+
}));
|
|
25
|
+
|
|
26
|
+
const handleClosingFullScreenView = () => {
|
|
27
|
+
dispatch(setFullScreenPeerTrackNode(null));
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
return (
|
|
31
|
+
<Modal
|
|
32
|
+
isVisible={fullScreenPeerTrackNode !== null}
|
|
33
|
+
animationIn={'fadeInUp'}
|
|
34
|
+
animationInTiming={100}
|
|
35
|
+
animationOutTiming={100}
|
|
36
|
+
animationOut={'fadeOutDown'}
|
|
37
|
+
backdropColor={backgroundDimColor}
|
|
38
|
+
backdropOpacity={0.3}
|
|
39
|
+
onBackButtonPress={handleClosingFullScreenView}
|
|
40
|
+
onBackdropPress={handleClosingFullScreenView}
|
|
41
|
+
useNativeDriver={true}
|
|
42
|
+
useNativeDriverForBackdrop={true}
|
|
43
|
+
hideModalContentWhileAnimating={true}
|
|
44
|
+
style={styles.modal}
|
|
45
|
+
supportedOrientations={['portrait', 'landscape']}
|
|
46
|
+
>
|
|
47
|
+
<GestureHandlerRootView style={styles.container}>
|
|
48
|
+
<SafeAreaView style={styles.container}>
|
|
49
|
+
<View style={[styles.contentContainer, contentContainerStyles]}>
|
|
50
|
+
{fullScreenPeerTrackNode &&
|
|
51
|
+
fullScreenPeerTrackNode.track?.trackId ? (
|
|
52
|
+
<PeerVideoTileView
|
|
53
|
+
peerTrackNode={fullScreenPeerTrackNode}
|
|
54
|
+
zoomIn={true}
|
|
55
|
+
/>
|
|
56
|
+
) : null}
|
|
57
|
+
|
|
58
|
+
<HMSFullScreenButton peerTrackNode={fullScreenPeerTrackNode!} />
|
|
59
|
+
</View>
|
|
60
|
+
</SafeAreaView>
|
|
61
|
+
</GestureHandlerRootView>
|
|
62
|
+
</Modal>
|
|
63
|
+
);
|
|
64
|
+
};
|
|
65
|
+
|
|
66
|
+
const styles = StyleSheet.create({
|
|
67
|
+
modal: {
|
|
68
|
+
margin: 0,
|
|
69
|
+
},
|
|
70
|
+
container: {
|
|
71
|
+
flexGrow: 1,
|
|
72
|
+
},
|
|
73
|
+
contentContainer: {
|
|
74
|
+
flex: 1,
|
|
75
|
+
position: 'relative',
|
|
76
|
+
},
|
|
77
|
+
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { useRef, useState, useImperativeHandle } from 'react';
|
|
2
2
|
import type { ElementRef } from 'react';
|
|
3
|
-
import { View, FlatList, StyleSheet } from 'react-native';
|
|
3
|
+
import { View, FlatList, StyleSheet, Dimensions } from 'react-native';
|
|
4
4
|
import { useDispatch, useSelector } from 'react-redux';
|
|
5
5
|
import type {
|
|
6
6
|
LayoutChangeEvent,
|
|
@@ -17,6 +17,7 @@ import { MiniView } from './MiniView';
|
|
|
17
17
|
import type { RootState } from '../redux';
|
|
18
18
|
import { PaginationDots } from './PaginationDots';
|
|
19
19
|
import { setGridViewActivePage } from '../redux/actions';
|
|
20
|
+
import { Tile } from './Tile';
|
|
20
21
|
|
|
21
22
|
export type GridViewProps = {
|
|
22
23
|
onPeerTileMorePress(peerTrackNode: PeerTrackNode): void;
|
|
@@ -25,7 +26,10 @@ export type GridViewProps = {
|
|
|
25
26
|
|
|
26
27
|
export type GridViewRefAttrs = {
|
|
27
28
|
captureViewScreenshot(node: PeerTrackNode): any;
|
|
28
|
-
|
|
29
|
+
getRegularTilesFlatlistRef(): React.RefObject<FlatList<PeerTrackNode[]>>;
|
|
30
|
+
getScreenshareTilesFlatlistRef(): React.RefObject<
|
|
31
|
+
FlatList<PeerTrackNode>
|
|
32
|
+
> | null;
|
|
29
33
|
};
|
|
30
34
|
|
|
31
35
|
const FLATLIST_VIEWABILITY_CONFIG = {
|
|
@@ -35,14 +39,18 @@ const FLATLIST_VIEWABILITY_CONFIG = {
|
|
|
35
39
|
|
|
36
40
|
export const GridView = React.forwardRef<GridViewRefAttrs, GridViewProps>(
|
|
37
41
|
({ pairedPeers, onPeerTileMorePress }, ref) => {
|
|
38
|
-
const dispatch = useDispatch();
|
|
39
42
|
const [screenshotData, setScreenshotData] = useState<{
|
|
40
43
|
peer: HMSPeer;
|
|
41
44
|
source: { uri: string };
|
|
42
45
|
} | null>(null);
|
|
43
46
|
const hmsViewRefs = useRef<Record<string, ElementRef<typeof HMSView>>>({});
|
|
44
|
-
const
|
|
47
|
+
const regularTilesFlatlistRef = useRef<FlatList<PeerTrackNode[]>>(null);
|
|
48
|
+
const screenshareTilesFlatlistRef = useRef<FlatList<PeerTrackNode>>(null);
|
|
45
49
|
const insetTileBoundingBoxRef = useRef<LayoutRectangle | null>(null);
|
|
50
|
+
|
|
51
|
+
const screenshareTilesAvailable = useSelector(
|
|
52
|
+
(state: RootState) => state.app.screensharePeerTrackNodes.length > 0
|
|
53
|
+
);
|
|
46
54
|
const miniviewPeerTrackNodeExists = useSelector(
|
|
47
55
|
(state: RootState) => !!state.app.miniviewPeerTrackNode
|
|
48
56
|
);
|
|
@@ -77,8 +85,11 @@ export const GridView = React.forwardRef<GridViewRefAttrs, GridViewProps>(
|
|
|
77
85
|
console.warn('HmsView Capture Error: ', error)
|
|
78
86
|
);
|
|
79
87
|
},
|
|
80
|
-
|
|
81
|
-
return
|
|
88
|
+
getRegularTilesFlatlistRef: () => {
|
|
89
|
+
return regularTilesFlatlistRef;
|
|
90
|
+
},
|
|
91
|
+
getScreenshareTilesFlatlistRef: () => {
|
|
92
|
+
return screenshareTilesFlatlistRef;
|
|
82
93
|
},
|
|
83
94
|
}),
|
|
84
95
|
[]
|
|
@@ -91,21 +102,6 @@ export const GridView = React.forwardRef<GridViewRefAttrs, GridViewProps>(
|
|
|
91
102
|
[]
|
|
92
103
|
);
|
|
93
104
|
|
|
94
|
-
const _renderItem = React.useCallback(
|
|
95
|
-
({ item }) => {
|
|
96
|
-
return (
|
|
97
|
-
<TilesContainer
|
|
98
|
-
onPeerTileMorePress={onPeerTileMorePress}
|
|
99
|
-
peerTrackNodes={item}
|
|
100
|
-
setHmsViewRefs={setHmsViewRefs}
|
|
101
|
-
/>
|
|
102
|
-
);
|
|
103
|
-
},
|
|
104
|
-
[onPeerTileMorePress, setHmsViewRefs]
|
|
105
|
-
);
|
|
106
|
-
|
|
107
|
-
const _keyExtractor = React.useCallback((item) => item[0]?.id, []);
|
|
108
|
-
|
|
109
105
|
const _handleLayoutChange = React.useCallback(
|
|
110
106
|
({ nativeEvent }: LayoutChangeEvent) => {
|
|
111
107
|
insetTileBoundingBoxRef.current = nativeEvent.layout;
|
|
@@ -113,53 +109,31 @@ export const GridView = React.forwardRef<GridViewRefAttrs, GridViewProps>(
|
|
|
113
109
|
[]
|
|
114
110
|
);
|
|
115
111
|
|
|
116
|
-
const _handleViewableItemsChanged = React.useCallback(
|
|
117
|
-
(info: { viewableItems: ViewToken[]; changed: ViewToken[] }) => {
|
|
118
|
-
const firstViewable = info.viewableItems[0];
|
|
119
|
-
|
|
120
|
-
if (
|
|
121
|
-
firstViewable?.isViewable &&
|
|
122
|
-
typeof firstViewable.index === 'number'
|
|
123
|
-
) {
|
|
124
|
-
dispatch(setGridViewActivePage(firstViewable.index));
|
|
125
|
-
}
|
|
126
|
-
},
|
|
127
|
-
[]
|
|
128
|
-
);
|
|
129
|
-
|
|
130
112
|
return (
|
|
131
113
|
<View style={styles.container}>
|
|
132
|
-
<View style={styles.
|
|
133
|
-
<View
|
|
134
|
-
onLayout={_handleLayoutChange}
|
|
135
|
-
style={styles.measureLayoutView}
|
|
136
|
-
/>
|
|
114
|
+
<View onLayout={_handleLayoutChange} style={styles.measureLayoutView} />
|
|
137
115
|
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
maxToRenderPerBatch={1}
|
|
144
|
-
windowSize={2}
|
|
145
|
-
pagingEnabled
|
|
146
|
-
showsHorizontalScrollIndicator={false}
|
|
147
|
-
renderItem={_renderItem}
|
|
148
|
-
numColumns={1}
|
|
149
|
-
keyExtractor={_keyExtractor}
|
|
150
|
-
onViewableItemsChanged={_handleViewableItemsChanged}
|
|
151
|
-
viewabilityConfig={FLATLIST_VIEWABILITY_CONFIG}
|
|
116
|
+
{screenshareTilesAvailable ? (
|
|
117
|
+
<ScreenshareTiles
|
|
118
|
+
ref={screenshareTilesFlatlistRef}
|
|
119
|
+
setHmsViewRefs={setHmsViewRefs}
|
|
120
|
+
onPeerTileMorePress={onPeerTileMorePress}
|
|
152
121
|
/>
|
|
122
|
+
) : null}
|
|
153
123
|
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
</View>
|
|
124
|
+
<RegularTiles
|
|
125
|
+
ref={regularTilesFlatlistRef}
|
|
126
|
+
pairedPeers={pairedPeers}
|
|
127
|
+
setHmsViewRefs={setHmsViewRefs}
|
|
128
|
+
onPeerTileMorePress={onPeerTileMorePress}
|
|
129
|
+
/>
|
|
161
130
|
|
|
162
|
-
{pairedPeers.length >
|
|
131
|
+
{pairedPeers.length > 0 && miniviewPeerTrackNodeExists ? (
|
|
132
|
+
<MiniView
|
|
133
|
+
boundingBoxRef={insetTileBoundingBoxRef}
|
|
134
|
+
onMoreOptionsPress={onPeerTileMorePress}
|
|
135
|
+
/>
|
|
136
|
+
) : null}
|
|
163
137
|
|
|
164
138
|
{/* Save Captured Screenshot of HMSView Modal */}
|
|
165
139
|
<DefaultModal
|
|
@@ -182,9 +156,6 @@ GridView.displayName = 'GridView';
|
|
|
182
156
|
const styles = StyleSheet.create({
|
|
183
157
|
container: {
|
|
184
158
|
flex: 1,
|
|
185
|
-
},
|
|
186
|
-
tilesArea: {
|
|
187
|
-
flex: 1,
|
|
188
159
|
position: 'relative',
|
|
189
160
|
},
|
|
190
161
|
measureLayoutView: {
|
|
@@ -193,3 +164,153 @@ const styles = StyleSheet.create({
|
|
|
193
164
|
height: '100%',
|
|
194
165
|
},
|
|
195
166
|
});
|
|
167
|
+
|
|
168
|
+
export type RegularTilesProps = {
|
|
169
|
+
setHmsViewRefs(viewId: string, ref: typeof HMSView | null): void;
|
|
170
|
+
onPeerTileMorePress(peerTrackNode: PeerTrackNode): void;
|
|
171
|
+
pairedPeers: PeerTrackNode[][];
|
|
172
|
+
};
|
|
173
|
+
|
|
174
|
+
const RegularTiles = React.forwardRef<
|
|
175
|
+
FlatList<PeerTrackNode[]>,
|
|
176
|
+
RegularTilesProps
|
|
177
|
+
>(({ pairedPeers, onPeerTileMorePress, setHmsViewRefs }, flatlistRef) => {
|
|
178
|
+
const dispatch = useDispatch();
|
|
179
|
+
const screenshareTilesAvailable = useSelector(
|
|
180
|
+
(state: RootState) => state.app.screensharePeerTrackNodes.length > 0
|
|
181
|
+
);
|
|
182
|
+
const activeIndex = useSelector(
|
|
183
|
+
(state: RootState) => state.app.gridViewActivePage
|
|
184
|
+
);
|
|
185
|
+
|
|
186
|
+
const _keyExtractor = React.useCallback((item) => item[0]?.id, []);
|
|
187
|
+
|
|
188
|
+
const _handleViewableItemsChanged = React.useCallback(
|
|
189
|
+
(info: { viewableItems: ViewToken[]; changed: ViewToken[] }) => {
|
|
190
|
+
const firstViewable = info.viewableItems[0];
|
|
191
|
+
|
|
192
|
+
if (
|
|
193
|
+
firstViewable?.isViewable &&
|
|
194
|
+
typeof firstViewable.index === 'number'
|
|
195
|
+
) {
|
|
196
|
+
dispatch(setGridViewActivePage(firstViewable.index));
|
|
197
|
+
}
|
|
198
|
+
},
|
|
199
|
+
[]
|
|
200
|
+
);
|
|
201
|
+
|
|
202
|
+
const _renderItem = React.useCallback(
|
|
203
|
+
({ item }) => {
|
|
204
|
+
return (
|
|
205
|
+
<TilesContainer
|
|
206
|
+
onPeerTileMorePress={onPeerTileMorePress}
|
|
207
|
+
peerTrackNodes={item}
|
|
208
|
+
setHmsViewRefs={setHmsViewRefs}
|
|
209
|
+
/>
|
|
210
|
+
);
|
|
211
|
+
},
|
|
212
|
+
[onPeerTileMorePress, setHmsViewRefs]
|
|
213
|
+
);
|
|
214
|
+
|
|
215
|
+
return (
|
|
216
|
+
<View style={{ flex: screenshareTilesAvailable ? undefined : 1 }}>
|
|
217
|
+
<FlatList
|
|
218
|
+
ref={flatlistRef}
|
|
219
|
+
horizontal={true}
|
|
220
|
+
data={pairedPeers}
|
|
221
|
+
initialNumToRender={1}
|
|
222
|
+
maxToRenderPerBatch={1}
|
|
223
|
+
windowSize={2}
|
|
224
|
+
pagingEnabled
|
|
225
|
+
showsHorizontalScrollIndicator={false}
|
|
226
|
+
renderItem={_renderItem}
|
|
227
|
+
numColumns={1}
|
|
228
|
+
keyExtractor={_keyExtractor}
|
|
229
|
+
onViewableItemsChanged={_handleViewableItemsChanged}
|
|
230
|
+
viewabilityConfig={FLATLIST_VIEWABILITY_CONFIG}
|
|
231
|
+
/>
|
|
232
|
+
|
|
233
|
+
{pairedPeers.length > 1 ? (
|
|
234
|
+
<PaginationDots
|
|
235
|
+
list={pairedPeers}
|
|
236
|
+
activeIndex={activeIndex}
|
|
237
|
+
style={screenshareTilesAvailable ? { marginVertical: 8 } : null}
|
|
238
|
+
/>
|
|
239
|
+
) : null}
|
|
240
|
+
</View>
|
|
241
|
+
);
|
|
242
|
+
});
|
|
243
|
+
|
|
244
|
+
export type ScreenshareTilesProps = {
|
|
245
|
+
setHmsViewRefs(viewId: string, ref: typeof HMSView | null): void;
|
|
246
|
+
onPeerTileMorePress(peerTrackNode: PeerTrackNode): void;
|
|
247
|
+
};
|
|
248
|
+
|
|
249
|
+
const ScreenshareTiles = React.forwardRef<
|
|
250
|
+
FlatList<PeerTrackNode>,
|
|
251
|
+
ScreenshareTilesProps
|
|
252
|
+
>(({ onPeerTileMorePress, setHmsViewRefs }, flatlistRef) => {
|
|
253
|
+
const [activePage, setActivePage] = useState(0);
|
|
254
|
+
const screensharePeerTrackNodes = useSelector(
|
|
255
|
+
(state: RootState) => state.app.screensharePeerTrackNodes
|
|
256
|
+
);
|
|
257
|
+
|
|
258
|
+
const _keyExtractor = React.useCallback((item) => item.id, []);
|
|
259
|
+
|
|
260
|
+
const _handleViewableItemsChanged = React.useCallback(
|
|
261
|
+
(info: { viewableItems: ViewToken[]; changed: ViewToken[] }) => {
|
|
262
|
+
const firstViewable = info.viewableItems[0];
|
|
263
|
+
|
|
264
|
+
if (
|
|
265
|
+
firstViewable?.isViewable &&
|
|
266
|
+
typeof firstViewable.index === 'number'
|
|
267
|
+
) {
|
|
268
|
+
setActivePage(firstViewable.index);
|
|
269
|
+
}
|
|
270
|
+
},
|
|
271
|
+
[]
|
|
272
|
+
);
|
|
273
|
+
|
|
274
|
+
const _renderItem = React.useCallback(
|
|
275
|
+
({ item }) => {
|
|
276
|
+
return (
|
|
277
|
+
<Tile
|
|
278
|
+
height={'100%'}
|
|
279
|
+
width={Dimensions.get('window').width}
|
|
280
|
+
peerTrackNode={item}
|
|
281
|
+
onPeerTileMorePress={onPeerTileMorePress}
|
|
282
|
+
setHmsViewRefs={setHmsViewRefs}
|
|
283
|
+
/>
|
|
284
|
+
);
|
|
285
|
+
},
|
|
286
|
+
[onPeerTileMorePress, setHmsViewRefs]
|
|
287
|
+
);
|
|
288
|
+
|
|
289
|
+
return (
|
|
290
|
+
<View style={{ flex: 1, marginBottom: 4 }}>
|
|
291
|
+
<FlatList
|
|
292
|
+
ref={flatlistRef}
|
|
293
|
+
horizontal={true}
|
|
294
|
+
data={screensharePeerTrackNodes}
|
|
295
|
+
initialNumToRender={1}
|
|
296
|
+
maxToRenderPerBatch={1}
|
|
297
|
+
windowSize={2}
|
|
298
|
+
pagingEnabled
|
|
299
|
+
showsHorizontalScrollIndicator={false}
|
|
300
|
+
renderItem={_renderItem}
|
|
301
|
+
numColumns={1}
|
|
302
|
+
keyExtractor={_keyExtractor}
|
|
303
|
+
onViewableItemsChanged={_handleViewableItemsChanged}
|
|
304
|
+
viewabilityConfig={FLATLIST_VIEWABILITY_CONFIG}
|
|
305
|
+
/>
|
|
306
|
+
|
|
307
|
+
{screensharePeerTrackNodes.length > 1 ? (
|
|
308
|
+
<PaginationDots
|
|
309
|
+
list={screensharePeerTrackNodes}
|
|
310
|
+
activeIndex={activePage}
|
|
311
|
+
style={{ marginVertical: 8 }}
|
|
312
|
+
/>
|
|
313
|
+
) : null}
|
|
314
|
+
</View>
|
|
315
|
+
);
|
|
316
|
+
});
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { StyleSheet } from 'react-native';
|
|
3
|
+
import type { SharedValue } from 'react-native-reanimated';
|
|
4
|
+
|
|
5
|
+
import { Footer } from './Footer';
|
|
6
|
+
import { AnimatedHLSFooter } from './AnimatedHLSFooter';
|
|
7
|
+
import { HLSChatView } from './HMSOverlayChatView';
|
|
8
|
+
import { useShowChatAndParticipants } from '../hooks-util';
|
|
9
|
+
|
|
10
|
+
interface HLSFooterProps {
|
|
11
|
+
offset: SharedValue<number>;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export const HLSFooter: React.FC<HLSFooterProps> = ({ offset }) => {
|
|
15
|
+
const { overlayChatVisible } = useShowChatAndParticipants();
|
|
16
|
+
|
|
17
|
+
return (
|
|
18
|
+
<AnimatedHLSFooter offset={offset} style={styles.animatedContainer}>
|
|
19
|
+
{overlayChatVisible ? <HLSChatView /> : null}
|
|
20
|
+
|
|
21
|
+
<Footer />
|
|
22
|
+
</AnimatedHLSFooter>
|
|
23
|
+
);
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
const styles = StyleSheet.create({
|
|
27
|
+
animatedContainer: {
|
|
28
|
+
position: 'absolute',
|
|
29
|
+
bottom: 0,
|
|
30
|
+
width: '100%',
|
|
31
|
+
},
|
|
32
|
+
});
|
|
@@ -1,18 +1,15 @@
|
|
|
1
|
-
import React, { useRef
|
|
1
|
+
import React, { useRef } from 'react';
|
|
2
2
|
import type { ComponentRef } from 'react';
|
|
3
3
|
import { useDispatch, useSelector } from 'react-redux';
|
|
4
4
|
import { View, Text, StyleSheet } from 'react-native';
|
|
5
5
|
import { HMSHLSPlayer } from '@100mslive/react-native-hms';
|
|
6
|
-
import { AvoidSoftInput } from 'react-native-avoid-softinput';
|
|
7
6
|
|
|
8
7
|
import type { RootState } from '../redux';
|
|
9
8
|
import { changeShowHLSStats } from '../redux/actions';
|
|
10
9
|
import { HLSPlayerStatsView } from './HLSPlayerStatsView';
|
|
11
10
|
import { HLSPlayerEmoticons } from './HLSPlayerEmoticons';
|
|
12
11
|
import { CustomControls } from './CustomHLSPlayerControls';
|
|
13
|
-
import { ChatView } from './ChatWindow';
|
|
14
12
|
import { COLORS } from '../utils/theme';
|
|
15
|
-
import { usePortraitChatViewVisible } from '../hooks-util';
|
|
16
13
|
import { HMSHLSNotStarted } from './HMSHLSNotStarted';
|
|
17
14
|
|
|
18
15
|
export const HLSView: React.FC = () => {
|
|
@@ -28,10 +25,6 @@ export const HLSView: React.FC = () => {
|
|
|
28
25
|
const enableHLSPlayerControls = useSelector(
|
|
29
26
|
(state: RootState) => state.app.joinConfig.enableHLSPlayerControls
|
|
30
27
|
);
|
|
31
|
-
const hlsAspectRatio = useSelector(
|
|
32
|
-
(state: RootState) => state.app.hlsAspectRatio
|
|
33
|
-
);
|
|
34
|
-
const portraitChatViewVisible = usePortraitChatViewVisible();
|
|
35
28
|
|
|
36
29
|
const handleClosePress = () => {
|
|
37
30
|
dispatch(changeShowHLSStats(false));
|
|
@@ -46,7 +39,7 @@ export const HLSView: React.FC = () => {
|
|
|
46
39
|
| 'seekForward'
|
|
47
40
|
| 'seekBackward'
|
|
48
41
|
| 'seekToLive'
|
|
49
|
-
| 'setVolume'
|
|
42
|
+
| 'setVolume',
|
|
50
43
|
>(
|
|
51
44
|
action: T,
|
|
52
45
|
...args: any[]
|
|
@@ -87,42 +80,24 @@ export const HLSView: React.FC = () => {
|
|
|
87
80
|
}
|
|
88
81
|
};
|
|
89
82
|
|
|
90
|
-
useEffect(() => {
|
|
91
|
-
AvoidSoftInput.setAdjustNothing();
|
|
92
|
-
AvoidSoftInput.setEnabled(true);
|
|
93
|
-
|
|
94
|
-
return () => AvoidSoftInput.setEnabled(false);
|
|
95
|
-
}, []);
|
|
96
|
-
|
|
97
83
|
return (
|
|
98
84
|
<View style={styles.hlsView}>
|
|
99
85
|
{room?.hlsStreamingState?.running ? (
|
|
100
86
|
room?.hlsStreamingState?.variants?.slice(0, 1)?.map((variant, index) =>
|
|
101
87
|
variant?.hlsStreamUrl ? (
|
|
102
|
-
<View
|
|
103
|
-
key={index}
|
|
104
|
-
style={[
|
|
105
|
-
styles.hlsPlayerContainer,
|
|
106
|
-
portraitChatViewVisible ? styles.taleLessSpaceAsYouCan : null,
|
|
107
|
-
]}
|
|
108
|
-
>
|
|
109
|
-
{/* <View>
|
|
110
|
-
<Animated.View style={{flex: canShowChatView ? 0 : 1}} collapsable={false} layout={}> */}
|
|
88
|
+
<View key={index} style={styles.hlsPlayerContainer}>
|
|
111
89
|
<HMSHLSPlayer
|
|
112
90
|
ref={hmsHlsPlayerRef}
|
|
113
|
-
containerStyle={
|
|
114
|
-
portraitChatViewVisible ? styles.taleLessSpaceAsYouCan : null
|
|
115
|
-
}
|
|
116
|
-
aspectRatio={hlsAspectRatio.value}
|
|
117
91
|
enableStats={showHLSStats}
|
|
118
92
|
enableControls={enableHLSPlayerControls}
|
|
119
93
|
/>
|
|
120
|
-
|
|
121
|
-
</View> */}
|
|
94
|
+
|
|
122
95
|
<HLSPlayerEmoticons />
|
|
96
|
+
|
|
123
97
|
{showHLSStats ? (
|
|
124
98
|
<HLSPlayerStatsView onClosePress={handleClosePress} />
|
|
125
99
|
) : null}
|
|
100
|
+
|
|
126
101
|
{showCustomHLSPlayerControls ? (
|
|
127
102
|
<CustomControls handleControlPress={hlsPlayerActions} />
|
|
128
103
|
) : null}
|
|
@@ -136,8 +111,6 @@ export const HLSView: React.FC = () => {
|
|
|
136
111
|
) : (
|
|
137
112
|
<HMSHLSNotStarted />
|
|
138
113
|
)}
|
|
139
|
-
|
|
140
|
-
{portraitChatViewVisible ? <ChatView /> : null}
|
|
141
114
|
</View>
|
|
142
115
|
);
|
|
143
116
|
};
|
|
@@ -12,8 +12,8 @@ export interface HMSBaseButtonProps {
|
|
|
12
12
|
title: string;
|
|
13
13
|
loading: boolean;
|
|
14
14
|
onPress(): void;
|
|
15
|
-
underlayColor
|
|
16
|
-
loaderColor
|
|
15
|
+
underlayColor?: ColorValue | undefined;
|
|
16
|
+
loaderColor?: ColorValue | undefined;
|
|
17
17
|
style?: StyleProp<ViewStyle>;
|
|
18
18
|
textStyle?: StyleProp<TextStyle>;
|
|
19
19
|
disabled?: boolean;
|