@100mslive/react-native-room-kit 1.0.2 → 1.0.4-beta.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/lib/commonjs/Icons/100ms/index.js +4 -5
- package/lib/commonjs/Icons/100ms/index.js.map +1 -1
- package/lib/commonjs/Icons/Alert/index.js +4 -5
- package/lib/commonjs/Icons/Alert/index.js.map +1 -1
- package/lib/commonjs/Icons/AlertTriangle/index.js +5 -6
- package/lib/commonjs/Icons/AlertTriangle/index.js.map +1 -1
- package/lib/commonjs/Icons/AnswerPhone/index.js +4 -5
- package/lib/commonjs/Icons/AnswerPhone/index.js.map +1 -1
- package/lib/commonjs/Icons/BRB/index.js +4 -5
- package/lib/commonjs/Icons/BRB/index.js.map +1 -1
- package/lib/commonjs/Icons/Bluetooth/index.js +4 -5
- package/lib/commonjs/Icons/Bluetooth/index.js.map +1 -1
- package/lib/commonjs/Icons/Camera/index.js +5 -6
- package/lib/commonjs/Icons/Camera/index.js.map +1 -1
- package/lib/commonjs/Icons/Chat/index.js +4 -5
- package/lib/commonjs/Icons/Chat/index.js.map +1 -1
- package/lib/commonjs/Icons/Check/index.js +4 -5
- package/lib/commonjs/Icons/Check/index.js.map +1 -1
- package/lib/commonjs/Icons/Chevron/index.js +5 -6
- package/lib/commonjs/Icons/Chevron/index.js.map +1 -1
- package/lib/commonjs/Icons/Clock/index.js +4 -5
- package/lib/commonjs/Icons/Clock/index.js.map +1 -1
- package/lib/commonjs/Icons/Close/index.js +4 -5
- package/lib/commonjs/Icons/Close/index.js.map +1 -1
- package/lib/commonjs/Icons/CrossCircle/assets/cross-circle.png +0 -0
- package/lib/commonjs/Icons/CrossCircle/assets/cross-circle@2x.png +0 -0
- package/lib/commonjs/Icons/CrossCircle/assets/cross-circle@3x.png +0 -0
- package/lib/commonjs/Icons/CrossCircle/index.js +33 -0
- package/lib/commonjs/Icons/CrossCircle/index.js.map +1 -0
- package/lib/commonjs/Icons/End/index.js +4 -5
- package/lib/commonjs/Icons/End/index.js.map +1 -1
- package/lib/commonjs/Icons/Eye/index.js +5 -6
- package/lib/commonjs/Icons/Eye/index.js.map +1 -1
- package/lib/commonjs/Icons/GenericLogo/index.js +4 -5
- package/lib/commonjs/Icons/GenericLogo/index.js.map +1 -1
- package/lib/commonjs/Icons/Hamburger/index.js +4 -5
- package/lib/commonjs/Icons/Hamburger/index.js.map +1 -1
- package/lib/commonjs/Icons/Hand/assets/hand-off.png +0 -0
- package/lib/commonjs/Icons/Hand/assets/hand-off@2x.png +0 -0
- package/lib/commonjs/Icons/Hand/assets/hand-off@3x.png +0 -0
- package/lib/commonjs/Icons/Hand/index.js +5 -6
- package/lib/commonjs/Icons/Hand/index.js.map +1 -1
- package/lib/commonjs/Icons/Headphones/index.js +4 -5
- package/lib/commonjs/Icons/Headphones/index.js.map +1 -1
- package/lib/commonjs/Icons/Leave/index.js +4 -5
- package/lib/commonjs/Icons/Leave/index.js.map +1 -1
- package/lib/commonjs/Icons/Maximize/index.js +4 -5
- package/lib/commonjs/Icons/Maximize/index.js.map +1 -1
- package/lib/commonjs/Icons/Mic/index.js +5 -6
- package/lib/commonjs/Icons/Mic/index.js.map +1 -1
- package/lib/commonjs/Icons/Minimize/index.js +4 -5
- package/lib/commonjs/Icons/Minimize/index.js.map +1 -1
- package/lib/commonjs/Icons/NetworkQuality/index.js +5 -6
- package/lib/commonjs/Icons/NetworkQuality/index.js.map +1 -1
- package/lib/commonjs/Icons/Participants/index.js +4 -5
- package/lib/commonjs/Icons/Participants/index.js.map +1 -1
- package/lib/commonjs/Icons/Pencil/index.js +4 -5
- package/lib/commonjs/Icons/Pencil/index.js.map +1 -1
- package/lib/commonjs/Icons/Person/index.js +5 -6
- package/lib/commonjs/Icons/Person/index.js.map +1 -1
- package/lib/commonjs/Icons/Pin/index.js +4 -5
- package/lib/commonjs/Icons/Pin/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 +4 -5
- package/lib/commonjs/Icons/Radio/index.js.map +1 -1
- package/lib/commonjs/Icons/Recording/assets/recording-off.png +0 -0
- package/lib/commonjs/Icons/Recording/assets/recording-off@2x.png +0 -0
- package/lib/commonjs/Icons/Recording/assets/recording-off@3x.png +0 -0
- package/lib/commonjs/Icons/Recording/index.js +5 -6
- package/lib/commonjs/Icons/Recording/index.js.map +1 -1
- package/lib/commonjs/Icons/RotateCamera/index.js +4 -5
- package/lib/commonjs/Icons/RotateCamera/index.js.map +1 -1
- package/lib/commonjs/Icons/ScreenShare/index.js +4 -5
- package/lib/commonjs/Icons/ScreenShare/index.js.map +1 -1
- package/lib/commonjs/Icons/Search/index.js +4 -5
- package/lib/commonjs/Icons/Search/index.js.map +1 -1
- package/lib/commonjs/Icons/Send/index.js +4 -5
- package/lib/commonjs/Icons/Send/index.js.map +1 -1
- package/lib/commonjs/Icons/Settings/index.js +4 -5
- package/lib/commonjs/Icons/Settings/index.js.map +1 -1
- package/lib/commonjs/Icons/Speaker/index.js +6 -7
- package/lib/commonjs/Icons/Speaker/index.js.map +1 -1
- package/lib/commonjs/Icons/Star/index.js +4 -5
- package/lib/commonjs/Icons/Star/index.js.map +1 -1
- package/lib/commonjs/Icons/Stop/index.js +4 -5
- package/lib/commonjs/Icons/Stop/index.js.map +1 -1
- package/lib/commonjs/Icons/ThreeDots/index.js +5 -6
- package/lib/commonjs/Icons/ThreeDots/index.js.map +1 -1
- package/lib/commonjs/Icons/Wave/index.js +4 -5
- package/lib/commonjs/Icons/Wave/index.js.map +1 -1
- package/lib/commonjs/Icons/WelcomeHand/assets/welcome-hand.png +0 -0
- package/lib/commonjs/Icons/WelcomeHand/assets/welcome-hand@2x.png +0 -0
- package/lib/commonjs/Icons/WelcomeHand/assets/welcome-hand@3x.png +0 -0
- package/lib/commonjs/Icons/WelcomeHand/index.js +4 -5
- package/lib/commonjs/Icons/WelcomeHand/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 +4 -5
- package/lib/commonjs/components/AnimatedFooter.js.map +1 -1
- package/lib/commonjs/components/AnimatedHLSFooter.js +5 -6
- package/lib/commonjs/components/AnimatedHLSFooter.js.map +1 -1
- package/lib/commonjs/components/AnimatedHeader.js +4 -5
- package/lib/commonjs/components/AnimatedHeader.js.map +1 -1
- package/lib/commonjs/components/AvatarView.js +5 -6
- package/lib/commonjs/components/AvatarView.js.map +1 -1
- package/lib/commonjs/components/BottomSheet.js +18 -21
- package/lib/commonjs/components/BottomSheet.js.map +1 -1
- package/lib/commonjs/components/ChangeNameModalContent.js +3 -4
- package/lib/commonjs/components/ChangeNameModalContent.js.map +1 -1
- package/lib/commonjs/components/Chat/ChatFilterBottomSheetView.js +1 -2
- package/lib/commonjs/components/Chat/ChatFilterBottomSheetView.js.map +1 -1
- package/lib/commonjs/components/Chat/ChatFilterItem.js +6 -7
- package/lib/commonjs/components/Chat/ChatFilterItem.js.map +1 -1
- package/lib/commonjs/components/Chat/ChatFilterView.js +8 -11
- package/lib/commonjs/components/Chat/ChatFilterView.js.map +1 -1
- package/lib/commonjs/components/Chat/ChatMessage.js +3 -4
- package/lib/commonjs/components/Chat/ChatMessage.js.map +1 -1
- package/lib/commonjs/components/ChatAndParticipants/ChatAndParticipantsHeader.js +3 -4
- package/lib/commonjs/components/ChatAndParticipants/ChatAndParticipantsHeader.js.map +1 -1
- package/lib/commonjs/components/CompanyLogo.js +4 -5
- package/lib/commonjs/components/CompanyLogo.js.map +1 -1
- package/lib/commonjs/components/CustomButton.js +10 -11
- package/lib/commonjs/components/CustomButton.js.map +1 -1
- package/lib/commonjs/components/CustomHLSPlayerControls.js +3 -4
- package/lib/commonjs/components/CustomHLSPlayerControls.js.map +1 -1
- package/lib/commonjs/components/DefaultModal.js +11 -12
- package/lib/commonjs/components/DefaultModal.js.map +1 -1
- package/lib/commonjs/components/DisplayView.js +4 -5
- package/lib/commonjs/components/DisplayView.js.map +1 -1
- package/lib/commonjs/components/EndRoomModalContent.js +3 -4
- package/lib/commonjs/components/EndRoomModalContent.js.map +1 -1
- package/lib/commonjs/components/GridView.js +22 -28
- package/lib/commonjs/components/GridView.js.map +1 -1
- package/lib/commonjs/components/HLSFooter.js +5 -5
- package/lib/commonjs/components/HLSFooter.js.map +1 -1
- package/lib/commonjs/components/HLSPlayerStatsView.js +3 -4
- package/lib/commonjs/components/HLSPlayerStatsView.js.map +1 -1
- package/lib/commonjs/components/HLSView.js +59 -9
- package/lib/commonjs/components/HLSView.js.map +1 -1
- package/lib/commonjs/components/HMSBaseButton.js +12 -13
- package/lib/commonjs/components/HMSBaseButton.js.map +1 -1
- package/lib/commonjs/components/HMSDangerButton.js +9 -10
- package/lib/commonjs/components/HMSDangerButton.js.map +1 -1
- package/lib/commonjs/components/HMSHLSMessage.js +3 -4
- package/lib/commonjs/components/HMSHLSMessage.js.map +1 -1
- package/lib/commonjs/components/HMSHandRaiseNotification.js +6 -7
- package/lib/commonjs/components/HMSHandRaiseNotification.js.map +1 -1
- package/lib/commonjs/components/HMSKeyboardAvoidingView.js +5 -6
- package/lib/commonjs/components/HMSKeyboardAvoidingView.js.map +1 -1
- package/lib/commonjs/components/HMSManageAudioOutput.js +116 -34
- package/lib/commonjs/components/HMSManageAudioOutput.js.map +1 -1
- package/lib/commonjs/components/HMSNotification.js +13 -14
- package/lib/commonjs/components/HMSNotification.js.map +1 -1
- package/lib/commonjs/components/HMSPreviewJoinButton.js +4 -5
- package/lib/commonjs/components/HMSPreviewJoinButton.js.map +1 -1
- package/lib/commonjs/components/HMSPreviewSubtitle.js +3 -4
- package/lib/commonjs/components/HMSPreviewSubtitle.js.map +1 -1
- package/lib/commonjs/components/HMSPreviewTitle.js +3 -4
- package/lib/commonjs/components/HMSPreviewTitle.js.map +1 -1
- package/lib/commonjs/components/HMSPrimaryButton.js +9 -10
- package/lib/commonjs/components/HMSPrimaryButton.js.map +1 -1
- package/lib/commonjs/components/HMSRoleChangeDeclinedNotification.js +6 -7
- package/lib/commonjs/components/HMSRoleChangeDeclinedNotification.js.map +1 -1
- package/lib/commonjs/components/HMSSendMessageInput.js +4 -5
- package/lib/commonjs/components/HMSSendMessageInput.js.map +1 -1
- package/lib/commonjs/components/HMSTerminalErrorNotification.js +6 -7
- package/lib/commonjs/components/HMSTerminalErrorNotification.js.map +1 -1
- package/lib/commonjs/components/HMSTextInput.js +7 -8
- package/lib/commonjs/components/HMSTextInput.js.map +1 -1
- package/lib/commonjs/components/HMSVideoView.js +5 -6
- package/lib/commonjs/components/HMSVideoView.js.map +1 -1
- package/lib/commonjs/components/Header.js +4 -5
- package/lib/commonjs/components/Header.js.map +1 -1
- package/lib/commonjs/components/LocalPeerRegularVideoView.js +3 -4
- package/lib/commonjs/components/LocalPeerRegularVideoView.js.map +1 -1
- package/lib/commonjs/components/Meeting.js +3 -4
- package/lib/commonjs/components/Meeting.js.map +1 -1
- package/lib/commonjs/components/MeetingScreenContent.js +3 -4
- package/lib/commonjs/components/MeetingScreenContent.js.map +1 -1
- package/lib/commonjs/components/MenuModal/MenuDivider.js +3 -4
- package/lib/commonjs/components/MenuModal/MenuDivider.js.map +1 -1
- package/lib/commonjs/components/MenuModal/MenuItem.js +15 -19
- package/lib/commonjs/components/MenuModal/MenuItem.js.map +1 -1
- package/lib/commonjs/components/MiniView.js +4 -5
- package/lib/commonjs/components/MiniView.js.map +1 -1
- package/lib/commonjs/components/Modals.js +47 -60
- package/lib/commonjs/components/Modals.js.map +1 -1
- package/lib/commonjs/components/OverlayContainer.js +6 -8
- package/lib/commonjs/components/OverlayContainer.js.map +1 -1
- package/lib/commonjs/components/PIPView.js +7 -9
- package/lib/commonjs/components/PIPView.js.map +1 -1
- package/lib/commonjs/components/PaginationDots.js +5 -6
- package/lib/commonjs/components/PaginationDots.js.map +1 -1
- package/lib/commonjs/components/Participants/MultiRoleParticipantsList.js +4 -5
- package/lib/commonjs/components/Participants/MultiRoleParticipantsList.js.map +1 -1
- package/lib/commonjs/components/Participants/ParticipantsAccordian.js +7 -8
- package/lib/commonjs/components/Participants/ParticipantsAccordian.js.map +1 -1
- package/lib/commonjs/components/Participants/ParticipantsAccordianExpanded.js +4 -5
- package/lib/commonjs/components/Participants/ParticipantsAccordianExpanded.js.map +1 -1
- package/lib/commonjs/components/Participants/ParticipantsGroupFooter.js +4 -5
- package/lib/commonjs/components/Participants/ParticipantsGroupFooter.js.map +1 -1
- package/lib/commonjs/components/Participants/ParticipantsGroupHeader.js +7 -8
- package/lib/commonjs/components/Participants/ParticipantsGroupHeader.js.map +1 -1
- package/lib/commonjs/components/Participants/ParticipantsItem.js +4 -5
- package/lib/commonjs/components/Participants/ParticipantsItem.js.map +1 -1
- package/lib/commonjs/components/Participants/ParticipantsItemOption.js +7 -8
- package/lib/commonjs/components/Participants/ParticipantsItemOption.js.map +1 -1
- package/lib/commonjs/components/Participants/ParticipantsItemOptions.js +5 -6
- package/lib/commonjs/components/Participants/ParticipantsItemOptions.js.map +1 -1
- package/lib/commonjs/components/Participants/ParticipantsList.js +5 -6
- package/lib/commonjs/components/Participants/ParticipantsList.js.map +1 -1
- package/lib/commonjs/components/Participants/ParticipantsListFooter.js +3 -4
- package/lib/commonjs/components/Participants/ParticipantsListFooter.js.map +1 -1
- package/lib/commonjs/components/Participants/ParticipantsSeachInput.js +4 -5
- package/lib/commonjs/components/Participants/ParticipantsSeachInput.js.map +1 -1
- package/lib/commonjs/components/PeerDisplayView.js +6 -7
- package/lib/commonjs/components/PeerDisplayView.js.map +1 -1
- package/lib/commonjs/components/PeerMinimizedView.js +4 -5
- package/lib/commonjs/components/PeerMinimizedView.js.map +1 -1
- package/lib/commonjs/components/PeerRTCStatsContainer.js +5 -6
- package/lib/commonjs/components/PeerRTCStatsContainer.js.map +1 -1
- package/lib/commonjs/components/PeerRTCStatsView.js +4 -5
- package/lib/commonjs/components/PeerRTCStatsView.js.map +1 -1
- package/lib/commonjs/components/PeerSettingsModalContent.js +13 -15
- package/lib/commonjs/components/PeerSettingsModalContent.js.map +1 -1
- package/lib/commonjs/components/PeerVideoTile/AvatarView.js +7 -8
- package/lib/commonjs/components/PeerVideoTile/AvatarView.js.map +1 -1
- package/lib/commonjs/components/PeerVideoTile/HMSFullScreenButton.js +3 -4
- package/lib/commonjs/components/PeerVideoTile/HMSFullScreenButton.js.map +1 -1
- package/lib/commonjs/components/PeerVideoTile/HMSPinchGesture.js +7 -9
- package/lib/commonjs/components/PeerVideoTile/HMSPinchGesture.js.map +1 -1
- package/lib/commonjs/components/PeerVideoTile/PeerAudioIndicator.js +4 -5
- package/lib/commonjs/components/PeerVideoTile/PeerAudioIndicator.js.map +1 -1
- package/lib/commonjs/components/PeerVideoTile/PeerMetadata.js +4 -5
- package/lib/commonjs/components/PeerVideoTile/PeerMetadata.js.map +1 -1
- package/lib/commonjs/components/PeerVideoTile/PeerNameAndNetwork.js +6 -7
- package/lib/commonjs/components/PeerVideoTile/PeerNameAndNetwork.js.map +1 -1
- package/lib/commonjs/components/PeerVideoTile/PeerVideoTileView.js +6 -7
- package/lib/commonjs/components/PeerVideoTile/PeerVideoTileView.js.map +1 -1
- package/lib/commonjs/components/PeerVideoTile/VideoView.js +9 -10
- package/lib/commonjs/components/PeerVideoTile/VideoView.js.map +1 -1
- package/lib/commonjs/components/PressableIcon.js +8 -9
- package/lib/commonjs/components/PressableIcon.js.map +1 -1
- package/lib/commonjs/components/Preview.js +4 -5
- package/lib/commonjs/components/Preview.js.map +1 -1
- package/lib/commonjs/components/RoomSettingsModalContent.js +7 -8
- package/lib/commonjs/components/RoomSettingsModalContent.js.map +1 -1
- package/lib/commonjs/components/RoomSettingsModalDebugModeContent.js +18 -21
- package/lib/commonjs/components/RoomSettingsModalDebugModeContent.js.map +1 -1
- package/lib/commonjs/components/StatusBar.js +4 -5
- package/lib/commonjs/components/StatusBar.js.map +1 -1
- package/lib/commonjs/components/StopRecordingModalContent.js +3 -4
- package/lib/commonjs/components/StopRecordingModalContent.js.map +1 -1
- package/lib/commonjs/components/StreamingQualityModalContent.js +4 -5
- package/lib/commonjs/components/StreamingQualityModalContent.js.map +1 -1
- package/lib/commonjs/components/SwitchRow.js +7 -8
- package/lib/commonjs/components/SwitchRow.js.map +1 -1
- package/lib/commonjs/components/Tile.js +9 -10
- package/lib/commonjs/components/Tile.js.map +1 -1
- package/lib/commonjs/components/TilesContainer.js +5 -6
- package/lib/commonjs/components/TilesContainer.js.map +1 -1
- package/lib/commonjs/components/UnmountAfterDelay.js +6 -7
- package/lib/commonjs/components/UnmountAfterDelay.js.map +1 -1
- package/lib/commonjs/components/WebrtcView.js +4 -5
- package/lib/commonjs/components/WebrtcView.js.map +1 -1
- package/lib/commonjs/hooks-sdk.js +17 -1
- package/lib/commonjs/hooks-sdk.js.map +1 -1
- package/lib/commonjs/hooks-util.js +31 -36
- package/lib/commonjs/hooks-util.js.map +1 -1
- package/lib/commonjs/redux/reducers/appState.js +1 -3
- package/lib/commonjs/redux/reducers/appState.js.map +1 -1
- package/lib/commonjs/redux/reducers/chatWindow.js +1 -3
- package/lib/commonjs/redux/reducers/chatWindow.js.map +1 -1
- package/lib/commonjs/redux/reducers/hmsStates.js +1 -3
- package/lib/commonjs/redux/reducers/hmsStates.js.map +1 -1
- package/lib/commonjs/redux/reducers/message.js +1 -3
- package/lib/commonjs/redux/reducers/message.js.map +1 -1
- package/lib/commonjs/redux/reducers/userState.js +1 -3
- package/lib/commonjs/redux/reducers/userState.js.map +1 -1
- package/lib/commonjs/utils/constants.js +4 -1
- package/lib/commonjs/utils/constants.js.map +1 -1
- package/lib/commonjs/utils/functions.js +2 -71
- package/lib/commonjs/utils/functions.js.map +1 -1
- package/lib/commonjs/utils/theme.js +1 -2
- package/lib/commonjs/utils/theme.js.map +1 -1
- package/lib/module/Icons/100ms/index.js +4 -5
- package/lib/module/Icons/100ms/index.js.map +1 -1
- package/lib/module/Icons/Alert/index.js +4 -5
- package/lib/module/Icons/Alert/index.js.map +1 -1
- package/lib/module/Icons/AlertTriangle/index.js +5 -6
- package/lib/module/Icons/AlertTriangle/index.js.map +1 -1
- package/lib/module/Icons/AnswerPhone/index.js +4 -5
- package/lib/module/Icons/AnswerPhone/index.js.map +1 -1
- package/lib/module/Icons/BRB/index.js +4 -5
- package/lib/module/Icons/BRB/index.js.map +1 -1
- package/lib/module/Icons/Bluetooth/index.js +4 -5
- package/lib/module/Icons/Bluetooth/index.js.map +1 -1
- package/lib/module/Icons/Camera/index.js +5 -6
- package/lib/module/Icons/Camera/index.js.map +1 -1
- package/lib/module/Icons/Chat/index.js +4 -5
- package/lib/module/Icons/Chat/index.js.map +1 -1
- package/lib/module/Icons/Check/index.js +4 -5
- package/lib/module/Icons/Check/index.js.map +1 -1
- package/lib/module/Icons/Chevron/index.js +5 -6
- package/lib/module/Icons/Chevron/index.js.map +1 -1
- package/lib/module/Icons/Clock/index.js +4 -5
- package/lib/module/Icons/Clock/index.js.map +1 -1
- package/lib/module/Icons/Close/index.js +4 -5
- package/lib/module/Icons/Close/index.js.map +1 -1
- package/lib/module/Icons/CrossCircle/assets/cross-circle.png +0 -0
- package/lib/module/Icons/CrossCircle/assets/cross-circle@2x.png +0 -0
- package/lib/module/Icons/CrossCircle/assets/cross-circle@3x.png +0 -0
- package/lib/module/Icons/CrossCircle/index.js +25 -0
- package/lib/module/Icons/CrossCircle/index.js.map +1 -0
- package/lib/module/Icons/End/index.js +4 -5
- package/lib/module/Icons/End/index.js.map +1 -1
- package/lib/module/Icons/Eye/index.js +5 -6
- package/lib/module/Icons/Eye/index.js.map +1 -1
- package/lib/module/Icons/GenericLogo/index.js +4 -5
- package/lib/module/Icons/GenericLogo/index.js.map +1 -1
- package/lib/module/Icons/Hamburger/index.js +4 -5
- package/lib/module/Icons/Hamburger/index.js.map +1 -1
- package/lib/module/Icons/Hand/assets/hand-off.png +0 -0
- package/lib/module/Icons/Hand/assets/hand-off@2x.png +0 -0
- package/lib/module/Icons/Hand/assets/hand-off@3x.png +0 -0
- package/lib/module/Icons/Hand/index.js +5 -6
- package/lib/module/Icons/Hand/index.js.map +1 -1
- package/lib/module/Icons/Headphones/index.js +4 -5
- package/lib/module/Icons/Headphones/index.js.map +1 -1
- package/lib/module/Icons/Leave/index.js +4 -5
- package/lib/module/Icons/Leave/index.js.map +1 -1
- package/lib/module/Icons/Maximize/index.js +4 -5
- package/lib/module/Icons/Maximize/index.js.map +1 -1
- package/lib/module/Icons/Mic/index.js +5 -6
- package/lib/module/Icons/Mic/index.js.map +1 -1
- package/lib/module/Icons/Minimize/index.js +4 -5
- package/lib/module/Icons/Minimize/index.js.map +1 -1
- package/lib/module/Icons/NetworkQuality/index.js +5 -6
- package/lib/module/Icons/NetworkQuality/index.js.map +1 -1
- package/lib/module/Icons/Participants/index.js +4 -5
- package/lib/module/Icons/Participants/index.js.map +1 -1
- package/lib/module/Icons/Pencil/index.js +4 -5
- package/lib/module/Icons/Pencil/index.js.map +1 -1
- package/lib/module/Icons/Person/index.js +5 -6
- package/lib/module/Icons/Person/index.js.map +1 -1
- package/lib/module/Icons/Pin/index.js +4 -5
- package/lib/module/Icons/Pin/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 +4 -5
- package/lib/module/Icons/Radio/index.js.map +1 -1
- package/lib/module/Icons/Recording/assets/recording-off.png +0 -0
- package/lib/module/Icons/Recording/assets/recording-off@2x.png +0 -0
- package/lib/module/Icons/Recording/assets/recording-off@3x.png +0 -0
- package/lib/module/Icons/Recording/index.js +5 -6
- package/lib/module/Icons/Recording/index.js.map +1 -1
- package/lib/module/Icons/RotateCamera/index.js +4 -5
- package/lib/module/Icons/RotateCamera/index.js.map +1 -1
- package/lib/module/Icons/ScreenShare/index.js +4 -5
- package/lib/module/Icons/ScreenShare/index.js.map +1 -1
- package/lib/module/Icons/Search/index.js +4 -5
- package/lib/module/Icons/Search/index.js.map +1 -1
- package/lib/module/Icons/Send/index.js +4 -5
- package/lib/module/Icons/Send/index.js.map +1 -1
- package/lib/module/Icons/Settings/index.js +4 -5
- package/lib/module/Icons/Settings/index.js.map +1 -1
- package/lib/module/Icons/Speaker/index.js +6 -7
- package/lib/module/Icons/Speaker/index.js.map +1 -1
- package/lib/module/Icons/Star/index.js +4 -5
- package/lib/module/Icons/Star/index.js.map +1 -1
- package/lib/module/Icons/Stop/index.js +4 -5
- package/lib/module/Icons/Stop/index.js.map +1 -1
- package/lib/module/Icons/ThreeDots/index.js +5 -6
- package/lib/module/Icons/ThreeDots/index.js.map +1 -1
- package/lib/module/Icons/Wave/index.js +4 -5
- package/lib/module/Icons/Wave/index.js.map +1 -1
- package/lib/module/Icons/WelcomeHand/assets/welcome-hand.png +0 -0
- package/lib/module/Icons/WelcomeHand/assets/welcome-hand@2x.png +0 -0
- package/lib/module/Icons/WelcomeHand/assets/welcome-hand@3x.png +0 -0
- package/lib/module/Icons/WelcomeHand/index.js +4 -5
- package/lib/module/Icons/WelcomeHand/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/AnimatedFooter.js +4 -5
- package/lib/module/components/AnimatedFooter.js.map +1 -1
- package/lib/module/components/AnimatedHLSFooter.js +5 -6
- package/lib/module/components/AnimatedHLSFooter.js.map +1 -1
- package/lib/module/components/AnimatedHeader.js +4 -5
- package/lib/module/components/AnimatedHeader.js.map +1 -1
- package/lib/module/components/AvatarView.js +5 -6
- package/lib/module/components/AvatarView.js.map +1 -1
- package/lib/module/components/BottomSheet.js +18 -21
- package/lib/module/components/BottomSheet.js.map +1 -1
- package/lib/module/components/ChangeNameModalContent.js +3 -4
- package/lib/module/components/ChangeNameModalContent.js.map +1 -1
- package/lib/module/components/Chat/ChatFilterBottomSheetView.js +1 -2
- package/lib/module/components/Chat/ChatFilterBottomSheetView.js.map +1 -1
- package/lib/module/components/Chat/ChatFilterItem.js +6 -7
- package/lib/module/components/Chat/ChatFilterItem.js.map +1 -1
- package/lib/module/components/Chat/ChatFilterView.js +8 -11
- package/lib/module/components/Chat/ChatFilterView.js.map +1 -1
- package/lib/module/components/Chat/ChatMessage.js +3 -4
- package/lib/module/components/Chat/ChatMessage.js.map +1 -1
- package/lib/module/components/ChatAndParticipants/ChatAndParticipantsHeader.js +3 -4
- package/lib/module/components/ChatAndParticipants/ChatAndParticipantsHeader.js.map +1 -1
- package/lib/module/components/CompanyLogo.js +4 -5
- package/lib/module/components/CompanyLogo.js.map +1 -1
- package/lib/module/components/CustomButton.js +10 -11
- package/lib/module/components/CustomButton.js.map +1 -1
- package/lib/module/components/CustomHLSPlayerControls.js +3 -4
- package/lib/module/components/CustomHLSPlayerControls.js.map +1 -1
- package/lib/module/components/DefaultModal.js +11 -12
- package/lib/module/components/DefaultModal.js.map +1 -1
- package/lib/module/components/DisplayView.js +4 -5
- package/lib/module/components/DisplayView.js.map +1 -1
- package/lib/module/components/EndRoomModalContent.js +3 -4
- package/lib/module/components/EndRoomModalContent.js.map +1 -1
- package/lib/module/components/GridView.js +22 -28
- package/lib/module/components/GridView.js.map +1 -1
- package/lib/module/components/HLSFooter.js +5 -5
- package/lib/module/components/HLSFooter.js.map +1 -1
- package/lib/module/components/HLSPlayerStatsView.js +3 -4
- package/lib/module/components/HLSPlayerStatsView.js.map +1 -1
- package/lib/module/components/HLSView.js +60 -10
- package/lib/module/components/HLSView.js.map +1 -1
- package/lib/module/components/HMSBaseButton.js +12 -13
- package/lib/module/components/HMSBaseButton.js.map +1 -1
- package/lib/module/components/HMSDangerButton.js +9 -10
- package/lib/module/components/HMSDangerButton.js.map +1 -1
- package/lib/module/components/HMSHLSMessage.js +3 -4
- package/lib/module/components/HMSHLSMessage.js.map +1 -1
- package/lib/module/components/HMSHandRaiseNotification.js +6 -7
- package/lib/module/components/HMSHandRaiseNotification.js.map +1 -1
- package/lib/module/components/HMSKeyboardAvoidingView.js +5 -6
- package/lib/module/components/HMSKeyboardAvoidingView.js.map +1 -1
- package/lib/module/components/HMSManageAudioOutput.js +116 -34
- package/lib/module/components/HMSManageAudioOutput.js.map +1 -1
- package/lib/module/components/HMSNotification.js +13 -14
- package/lib/module/components/HMSNotification.js.map +1 -1
- package/lib/module/components/HMSPreviewJoinButton.js +4 -5
- package/lib/module/components/HMSPreviewJoinButton.js.map +1 -1
- package/lib/module/components/HMSPreviewSubtitle.js +3 -4
- package/lib/module/components/HMSPreviewSubtitle.js.map +1 -1
- package/lib/module/components/HMSPreviewTitle.js +3 -4
- package/lib/module/components/HMSPreviewTitle.js.map +1 -1
- package/lib/module/components/HMSPrimaryButton.js +9 -10
- package/lib/module/components/HMSPrimaryButton.js.map +1 -1
- package/lib/module/components/HMSRoleChangeDeclinedNotification.js +6 -7
- package/lib/module/components/HMSRoleChangeDeclinedNotification.js.map +1 -1
- package/lib/module/components/HMSSendMessageInput.js +4 -5
- package/lib/module/components/HMSSendMessageInput.js.map +1 -1
- package/lib/module/components/HMSTerminalErrorNotification.js +6 -7
- package/lib/module/components/HMSTerminalErrorNotification.js.map +1 -1
- package/lib/module/components/HMSTextInput.js +7 -8
- package/lib/module/components/HMSTextInput.js.map +1 -1
- package/lib/module/components/HMSVideoView.js +5 -6
- package/lib/module/components/HMSVideoView.js.map +1 -1
- package/lib/module/components/Header.js +4 -5
- package/lib/module/components/Header.js.map +1 -1
- package/lib/module/components/LocalPeerRegularVideoView.js +3 -4
- package/lib/module/components/LocalPeerRegularVideoView.js.map +1 -1
- package/lib/module/components/Meeting.js +3 -4
- package/lib/module/components/Meeting.js.map +1 -1
- package/lib/module/components/MeetingScreenContent.js +3 -4
- package/lib/module/components/MeetingScreenContent.js.map +1 -1
- package/lib/module/components/MenuModal/MenuDivider.js +3 -4
- package/lib/module/components/MenuModal/MenuDivider.js.map +1 -1
- package/lib/module/components/MenuModal/MenuItem.js +15 -19
- package/lib/module/components/MenuModal/MenuItem.js.map +1 -1
- package/lib/module/components/MiniView.js +4 -5
- package/lib/module/components/MiniView.js.map +1 -1
- package/lib/module/components/Modals.js +47 -60
- package/lib/module/components/Modals.js.map +1 -1
- package/lib/module/components/OverlayContainer.js +6 -8
- package/lib/module/components/OverlayContainer.js.map +1 -1
- package/lib/module/components/PIPView.js +7 -9
- package/lib/module/components/PIPView.js.map +1 -1
- package/lib/module/components/PaginationDots.js +5 -6
- package/lib/module/components/PaginationDots.js.map +1 -1
- package/lib/module/components/Participants/MultiRoleParticipantsList.js +4 -5
- package/lib/module/components/Participants/MultiRoleParticipantsList.js.map +1 -1
- package/lib/module/components/Participants/ParticipantsAccordian.js +7 -8
- package/lib/module/components/Participants/ParticipantsAccordian.js.map +1 -1
- package/lib/module/components/Participants/ParticipantsAccordianExpanded.js +4 -5
- package/lib/module/components/Participants/ParticipantsAccordianExpanded.js.map +1 -1
- package/lib/module/components/Participants/ParticipantsGroupFooter.js +4 -5
- package/lib/module/components/Participants/ParticipantsGroupFooter.js.map +1 -1
- package/lib/module/components/Participants/ParticipantsGroupHeader.js +7 -8
- package/lib/module/components/Participants/ParticipantsGroupHeader.js.map +1 -1
- package/lib/module/components/Participants/ParticipantsItem.js +4 -5
- package/lib/module/components/Participants/ParticipantsItem.js.map +1 -1
- package/lib/module/components/Participants/ParticipantsItemOption.js +7 -8
- package/lib/module/components/Participants/ParticipantsItemOption.js.map +1 -1
- package/lib/module/components/Participants/ParticipantsItemOptions.js +5 -6
- package/lib/module/components/Participants/ParticipantsItemOptions.js.map +1 -1
- package/lib/module/components/Participants/ParticipantsList.js +5 -6
- package/lib/module/components/Participants/ParticipantsList.js.map +1 -1
- package/lib/module/components/Participants/ParticipantsListFooter.js +3 -4
- package/lib/module/components/Participants/ParticipantsListFooter.js.map +1 -1
- package/lib/module/components/Participants/ParticipantsSeachInput.js +4 -5
- package/lib/module/components/Participants/ParticipantsSeachInput.js.map +1 -1
- package/lib/module/components/PeerDisplayView.js +6 -7
- package/lib/module/components/PeerDisplayView.js.map +1 -1
- package/lib/module/components/PeerMinimizedView.js +4 -5
- package/lib/module/components/PeerMinimizedView.js.map +1 -1
- package/lib/module/components/PeerRTCStatsContainer.js +5 -6
- package/lib/module/components/PeerRTCStatsContainer.js.map +1 -1
- package/lib/module/components/PeerRTCStatsView.js +4 -5
- package/lib/module/components/PeerRTCStatsView.js.map +1 -1
- package/lib/module/components/PeerSettingsModalContent.js +13 -15
- package/lib/module/components/PeerSettingsModalContent.js.map +1 -1
- package/lib/module/components/PeerVideoTile/AvatarView.js +7 -8
- package/lib/module/components/PeerVideoTile/AvatarView.js.map +1 -1
- package/lib/module/components/PeerVideoTile/HMSFullScreenButton.js +3 -4
- package/lib/module/components/PeerVideoTile/HMSFullScreenButton.js.map +1 -1
- package/lib/module/components/PeerVideoTile/HMSPinchGesture.js +7 -9
- package/lib/module/components/PeerVideoTile/HMSPinchGesture.js.map +1 -1
- package/lib/module/components/PeerVideoTile/PeerAudioIndicator.js +4 -5
- package/lib/module/components/PeerVideoTile/PeerAudioIndicator.js.map +1 -1
- package/lib/module/components/PeerVideoTile/PeerMetadata.js +4 -5
- package/lib/module/components/PeerVideoTile/PeerMetadata.js.map +1 -1
- package/lib/module/components/PeerVideoTile/PeerNameAndNetwork.js +6 -7
- package/lib/module/components/PeerVideoTile/PeerNameAndNetwork.js.map +1 -1
- package/lib/module/components/PeerVideoTile/PeerVideoTileView.js +6 -7
- package/lib/module/components/PeerVideoTile/PeerVideoTileView.js.map +1 -1
- package/lib/module/components/PeerVideoTile/VideoView.js +9 -10
- package/lib/module/components/PeerVideoTile/VideoView.js.map +1 -1
- package/lib/module/components/PressableIcon.js +8 -9
- package/lib/module/components/PressableIcon.js.map +1 -1
- package/lib/module/components/Preview.js +4 -5
- package/lib/module/components/Preview.js.map +1 -1
- package/lib/module/components/RoomSettingsModalContent.js +7 -8
- package/lib/module/components/RoomSettingsModalContent.js.map +1 -1
- package/lib/module/components/RoomSettingsModalDebugModeContent.js +20 -23
- package/lib/module/components/RoomSettingsModalDebugModeContent.js.map +1 -1
- package/lib/module/components/StatusBar.js +4 -5
- package/lib/module/components/StatusBar.js.map +1 -1
- package/lib/module/components/StopRecordingModalContent.js +3 -4
- package/lib/module/components/StopRecordingModalContent.js.map +1 -1
- package/lib/module/components/StreamingQualityModalContent.js +4 -5
- package/lib/module/components/StreamingQualityModalContent.js.map +1 -1
- package/lib/module/components/SwitchRow.js +7 -8
- package/lib/module/components/SwitchRow.js.map +1 -1
- package/lib/module/components/Tile.js +9 -10
- package/lib/module/components/Tile.js.map +1 -1
- package/lib/module/components/TilesContainer.js +5 -6
- package/lib/module/components/TilesContainer.js.map +1 -1
- package/lib/module/components/UnmountAfterDelay.js +6 -7
- package/lib/module/components/UnmountAfterDelay.js.map +1 -1
- package/lib/module/components/WebrtcView.js +4 -5
- package/lib/module/components/WebrtcView.js.map +1 -1
- package/lib/module/hooks-sdk.js +18 -2
- package/lib/module/hooks-sdk.js.map +1 -1
- package/lib/module/hooks-util.js +31 -36
- package/lib/module/hooks-util.js.map +1 -1
- package/lib/module/redux/reducers/appState.js +1 -3
- package/lib/module/redux/reducers/appState.js.map +1 -1
- package/lib/module/redux/reducers/chatWindow.js +1 -3
- package/lib/module/redux/reducers/chatWindow.js.map +1 -1
- package/lib/module/redux/reducers/hmsStates.js +1 -3
- package/lib/module/redux/reducers/hmsStates.js.map +1 -1
- package/lib/module/redux/reducers/message.js +1 -3
- package/lib/module/redux/reducers/message.js.map +1 -1
- package/lib/module/redux/reducers/userState.js +1 -3
- package/lib/module/redux/reducers/userState.js.map +1 -1
- package/lib/module/utils/constants.js +4 -1
- package/lib/module/utils/constants.js.map +1 -1
- package/lib/module/utils/functions.js +0 -67
- package/lib/module/utils/functions.js.map +1 -1
- package/lib/module/utils/theme.js +1 -2
- package/lib/module/utils/theme.js.map +1 -1
- package/lib/typescript/Icons/CrossCircle/index.d.ts +7 -0
- package/lib/typescript/Icons/CrossCircle/index.d.ts.map +1 -0
- package/lib/typescript/Icons/index.d.ts +1 -0
- package/lib/typescript/Icons/index.d.ts.map +1 -1
- package/lib/typescript/components/HLSFooter.d.ts.map +1 -1
- package/lib/typescript/components/HLSView.d.ts +2 -1
- package/lib/typescript/components/HLSView.d.ts.map +1 -1
- package/lib/typescript/components/HMSManageAudioOutput.d.ts.map +1 -1
- package/lib/typescript/components/RoomSettingsModalDebugModeContent.d.ts.map +1 -1
- package/lib/typescript/hooks-sdk.d.ts +1 -0
- package/lib/typescript/hooks-sdk.d.ts.map +1 -1
- package/lib/typescript/hooks-util.d.ts.map +1 -1
- package/lib/typescript/utils/constants.d.ts +3 -0
- package/lib/typescript/utils/constants.d.ts.map +1 -1
- package/lib/typescript/utils/functions.d.ts +0 -3
- package/lib/typescript/utils/functions.d.ts.map +1 -1
- package/package.json +2 -3
- package/src/Icons/CrossCircle/assets/cross-circle.png +0 -0
- package/src/Icons/CrossCircle/assets/cross-circle@2x.png +0 -0
- package/src/Icons/CrossCircle/assets/cross-circle@3x.png +0 -0
- package/src/Icons/CrossCircle/index.tsx +33 -0
- package/src/Icons/Hand/assets/hand-off.png +0 -0
- package/src/Icons/Hand/assets/hand-off@2x.png +0 -0
- package/src/Icons/Hand/assets/hand-off@3x.png +0 -0
- 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/Recording/assets/recording-off.png +0 -0
- package/src/Icons/Recording/assets/recording-off@2x.png +0 -0
- package/src/Icons/Recording/assets/recording-off@3x.png +0 -0
- package/src/Icons/WelcomeHand/assets/welcome-hand.png +0 -0
- package/src/Icons/WelcomeHand/assets/welcome-hand@2x.png +0 -0
- package/src/Icons/WelcomeHand/assets/welcome-hand@3x.png +0 -0
- package/src/Icons/index.ts +1 -0
- package/src/components/HLSFooter.tsx +3 -0
- package/src/components/HLSView.tsx +85 -4
- package/src/components/HMSManageAudioOutput.tsx +164 -48
- package/src/components/RoomSettingsModalDebugModeContent.tsx +4 -3
- package/src/hooks-sdk.ts +24 -0
- package/src/hooks-util.ts +95 -71
- package/src/utils/constants.ts +4 -0
- package/src/utils/functions.ts +8 -113
- package/lib/commonjs/utils/getRoomLinkDetails.js +0 -23
- package/lib/commonjs/utils/getRoomLinkDetails.js.map +0 -1
- package/lib/module/utils/getRoomLinkDetails.js +0 -16
- package/lib/module/utils/getRoomLinkDetails.js.map +0 -1
- package/lib/typescript/utils/getRoomLinkDetails.d.ts +0 -5
- package/lib/typescript/utils/getRoomLinkDetails.d.ts.map +0 -1
- package/src/utils/getRoomLinkDetails.ts +0 -23
package/src/hooks-util.ts
CHANGED
|
@@ -56,7 +56,11 @@ import {
|
|
|
56
56
|
PeerListRefreshInterval,
|
|
57
57
|
PipModes,
|
|
58
58
|
} from './utils/types';
|
|
59
|
-
import type {
|
|
59
|
+
import type {
|
|
60
|
+
ChatBroadcastFilter,
|
|
61
|
+
OnLeaveHandler,
|
|
62
|
+
PeerTrackNode,
|
|
63
|
+
} from './utils/types';
|
|
60
64
|
import { createPeerTrackNode } from './utils/functions';
|
|
61
65
|
import {
|
|
62
66
|
batch,
|
|
@@ -1256,10 +1260,12 @@ export const useHMSReconnection = () => {
|
|
|
1256
1260
|
if (mounted) {
|
|
1257
1261
|
batch(() => {
|
|
1258
1262
|
dispatch(setReconnecting(true));
|
|
1259
|
-
dispatch(
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
+
dispatch(
|
|
1264
|
+
addNotification({
|
|
1265
|
+
id: NotificationTypes.RECONNECTING,
|
|
1266
|
+
type: NotificationTypes.RECONNECTING,
|
|
1267
|
+
})
|
|
1268
|
+
);
|
|
1263
1269
|
});
|
|
1264
1270
|
}
|
|
1265
1271
|
});
|
|
@@ -1268,7 +1274,7 @@ export const useHMSReconnection = () => {
|
|
|
1268
1274
|
batch(() => {
|
|
1269
1275
|
dispatch(setReconnecting(false));
|
|
1270
1276
|
dispatch(removeNotification(NotificationTypes.RECONNECTING));
|
|
1271
|
-
})
|
|
1277
|
+
});
|
|
1272
1278
|
}
|
|
1273
1279
|
});
|
|
1274
1280
|
|
|
@@ -1426,13 +1432,19 @@ export const useAutoPip = (oneToOneCall: boolean) => {
|
|
|
1426
1432
|
);
|
|
1427
1433
|
const [numerator, denominator] = usePipAspectRatio(oneToOneCall);
|
|
1428
1434
|
|
|
1435
|
+
const remotePeersPresent = useSelector((state: RootState) => {
|
|
1436
|
+
const room = state.hmsStates.room;
|
|
1437
|
+
return room && room.peerCount !== null ? room.peerCount > 1 : false; // `peerCount` includes local peer
|
|
1438
|
+
});
|
|
1439
|
+
|
|
1429
1440
|
useEffect(() => {
|
|
1430
|
-
if (autoEnterPipMode) {
|
|
1441
|
+
if (autoEnterPipMode && remotePeersPresent) {
|
|
1431
1442
|
enableAutoPip({ aspectRatio: [numerator, denominator] });
|
|
1432
1443
|
|
|
1433
1444
|
return disableAutoPip;
|
|
1434
1445
|
}
|
|
1435
1446
|
}, [
|
|
1447
|
+
remotePeersPresent,
|
|
1436
1448
|
numerator,
|
|
1437
1449
|
denominator,
|
|
1438
1450
|
autoEnterPipMode,
|
|
@@ -1471,10 +1483,16 @@ export const usePipAspectRatio = (oneToOneCall: boolean): [number, number] => {
|
|
|
1471
1483
|
}
|
|
1472
1484
|
// default aspect ratio
|
|
1473
1485
|
return [16, 9];
|
|
1474
|
-
}, [
|
|
1486
|
+
}, [
|
|
1487
|
+
isHLSViewer,
|
|
1488
|
+
firstSSNodeId,
|
|
1489
|
+
oneToOneCall,
|
|
1490
|
+
ssResolution,
|
|
1491
|
+
hlsPlayerResolution,
|
|
1492
|
+
]);
|
|
1475
1493
|
|
|
1476
1494
|
return aspectRatio;
|
|
1477
|
-
}
|
|
1495
|
+
};
|
|
1478
1496
|
|
|
1479
1497
|
export const useHMSActiveSpeakerUpdates = (
|
|
1480
1498
|
setPeerTrackNodes: React.Dispatch<React.SetStateAction<PeerTrackNode[]>>,
|
|
@@ -2008,57 +2026,60 @@ export const useLeaveMethods = () => {
|
|
|
2008
2026
|
const dispatch = useDispatch();
|
|
2009
2027
|
const reduxStore = useStore<RootState>();
|
|
2010
2028
|
|
|
2011
|
-
const destroy = useCallback(
|
|
2012
|
-
|
|
2013
|
-
|
|
2014
|
-
|
|
2015
|
-
|
|
2016
|
-
|
|
2017
|
-
|
|
2018
|
-
|
|
2019
|
-
|
|
2020
|
-
|
|
2021
|
-
|
|
2022
|
-
|
|
2023
|
-
|
|
2024
|
-
|
|
2025
|
-
|
|
2026
|
-
|
|
2027
|
-
|
|
2028
|
-
|
|
2029
|
-
|
|
2030
|
-
|
|
2031
|
-
|
|
2032
|
-
|
|
2033
|
-
|
|
2034
|
-
|
|
2035
|
-
|
|
2036
|
-
|
|
2037
|
-
|
|
2038
|
-
onLeave
|
|
2039
|
-
|
|
2040
|
-
|
|
2041
|
-
|
|
2042
|
-
|
|
2043
|
-
|
|
2044
|
-
|
|
2045
|
-
|
|
2046
|
-
|
|
2047
|
-
|
|
2048
|
-
|
|
2049
|
-
|
|
2050
|
-
|
|
2029
|
+
const destroy = useCallback(
|
|
2030
|
+
(reason: Parameters<OnLeaveHandler>[0]) => {
|
|
2031
|
+
try {
|
|
2032
|
+
const s = hmsInstance.destroy();
|
|
2033
|
+
console.log('Destroy Success: ', s);
|
|
2034
|
+
// TODOS:
|
|
2035
|
+
// - If show `Meeting_Ended` is true, show Meeting screen by setting state to MEETING_ENDED
|
|
2036
|
+
// - Reset Redux States
|
|
2037
|
+
// - HMSInstance will not be available now
|
|
2038
|
+
// - When your presses "Re Join" Action button, restart process from root component
|
|
2039
|
+
// - When your presses "Done" Action button
|
|
2040
|
+
// - If we have callback fn, call it
|
|
2041
|
+
// - Otherwise try our best to navigate away from current screen
|
|
2042
|
+
//
|
|
2043
|
+
// - No screen to show
|
|
2044
|
+
// - No need to reset redux state?
|
|
2045
|
+
// - HMSInstance will be available till this point
|
|
2046
|
+
// - If we have callback fn, call it
|
|
2047
|
+
// - Otherwise try our best to navigate away from current screen
|
|
2048
|
+
// - When we are navigated away from screen, HMSInstance will be not available
|
|
2049
|
+
|
|
2050
|
+
// dispatch(clearMessageData());
|
|
2051
|
+
// dispatch(clearPeerData());
|
|
2052
|
+
// dispatch(clearHmsReference());
|
|
2053
|
+
|
|
2054
|
+
const onLeave = reduxStore.getState().user.onLeave;
|
|
2055
|
+
|
|
2056
|
+
if (typeof onLeave === 'function') {
|
|
2057
|
+
onLeave(reason);
|
|
2058
|
+
dispatch(clearStore());
|
|
2059
|
+
} else if (
|
|
2060
|
+
navigation &&
|
|
2061
|
+
typeof navigation.canGoBack === 'function' &&
|
|
2062
|
+
navigation.canGoBack()
|
|
2063
|
+
) {
|
|
2064
|
+
navigation.goBack();
|
|
2065
|
+
dispatch(clearStore());
|
|
2066
|
+
} else {
|
|
2067
|
+
// Otherwise default action is to show "Meeting Ended" screen
|
|
2068
|
+
dispatch(clearStore()); // TODO: We need different clearStore for MeetingEnded
|
|
2069
|
+
dispatch(changeMeetingState(MeetingState.MEETING_ENDED));
|
|
2070
|
+
}
|
|
2071
|
+
} catch (e) {
|
|
2072
|
+
console.log(`Destroy HMS instance Error: ${e}`);
|
|
2073
|
+
Toast.showWithGravity(
|
|
2074
|
+
`Destroy HMS instance Error: ${e}`,
|
|
2075
|
+
Toast.LONG,
|
|
2076
|
+
Toast.TOP
|
|
2077
|
+
);
|
|
2078
|
+
return Promise.reject(e);
|
|
2051
2079
|
}
|
|
2052
|
-
}
|
|
2053
|
-
|
|
2054
|
-
|
|
2055
|
-
`Destroy HMS instance Error: ${e}`,
|
|
2056
|
-
Toast.LONG,
|
|
2057
|
-
Toast.TOP
|
|
2058
|
-
);
|
|
2059
|
-
return Promise.reject(e);
|
|
2060
|
-
}
|
|
2061
|
-
}, [hmsInstance]);
|
|
2080
|
+
},
|
|
2081
|
+
[hmsInstance]
|
|
2082
|
+
);
|
|
2062
2083
|
|
|
2063
2084
|
const leave = useCallback(
|
|
2064
2085
|
async (reason: OnLeaveReason, shouldEndStream: boolean = false) => {
|
|
@@ -2093,15 +2114,18 @@ export const useLeaveMethods = () => {
|
|
|
2093
2114
|
}
|
|
2094
2115
|
}, [hmsInstance]);
|
|
2095
2116
|
|
|
2096
|
-
const endRoom = useCallback(
|
|
2097
|
-
|
|
2098
|
-
|
|
2099
|
-
|
|
2100
|
-
|
|
2101
|
-
|
|
2102
|
-
|
|
2103
|
-
|
|
2104
|
-
|
|
2117
|
+
const endRoom = useCallback(
|
|
2118
|
+
async (reason: OnLeaveReason) => {
|
|
2119
|
+
try {
|
|
2120
|
+
const d = await hmsInstance.endRoom('Host ended the room');
|
|
2121
|
+
console.log('EndRoom Success: ', d);
|
|
2122
|
+
await destroy(reason);
|
|
2123
|
+
} catch (e) {
|
|
2124
|
+
console.log('EndRoom Error: ', e);
|
|
2125
|
+
}
|
|
2126
|
+
},
|
|
2127
|
+
[destroy, hmsInstance]
|
|
2128
|
+
);
|
|
2105
2129
|
|
|
2106
2130
|
return { destroy, leave, endRoom, prebuiltCleanUp };
|
|
2107
2131
|
};
|
|
@@ -2227,8 +2251,8 @@ export const useSendMessage = () => {
|
|
|
2227
2251
|
'publishSettings' in sendingTo
|
|
2228
2252
|
? HMSMessageRecipientType.ROLES
|
|
2229
2253
|
: 'peerID' in sendingTo
|
|
2230
|
-
|
|
2231
|
-
|
|
2254
|
+
? HMSMessageRecipientType.PEER
|
|
2255
|
+
: HMSMessageRecipientType.BROADCAST,
|
|
2232
2256
|
recipientPeer: 'peerID' in sendingTo ? sendingTo : undefined,
|
|
2233
2257
|
recipientRoles: 'publishSettings' in sendingTo ? [sendingTo] : undefined,
|
|
2234
2258
|
});
|
|
@@ -2396,7 +2420,7 @@ export const useStartRecording = () => {
|
|
|
2396
2420
|
addNotification({
|
|
2397
2421
|
id: Math.random().toString(16).slice(2),
|
|
2398
2422
|
type: NotificationTypes.ERROR,
|
|
2399
|
-
message: error.message
|
|
2423
|
+
message: error.message,
|
|
2400
2424
|
})
|
|
2401
2425
|
);
|
|
2402
2426
|
});
|
package/src/utils/constants.ts
CHANGED
|
@@ -143,4 +143,8 @@ export const TestIds = {
|
|
|
143
143
|
bluetooth_audio_device_btn: 'bluetooth-audio-device-button',
|
|
144
144
|
bluetooth_audio_device_text: 'bluetooth-audio-device-text',
|
|
145
145
|
bluetooth_audio_device_active: 'bluetooth-audio-device--active',
|
|
146
|
+
|
|
147
|
+
mute_audio_btn: 'mute-audio-button',
|
|
148
|
+
mute_audio_text: 'mute-audio-text',
|
|
149
|
+
mute_audio_active: 'mute-audio--active',
|
|
146
150
|
} as const;
|
package/src/utils/functions.ts
CHANGED
|
@@ -15,13 +15,6 @@ import {
|
|
|
15
15
|
} from '@100mslive/react-native-hms';
|
|
16
16
|
|
|
17
17
|
import type { PeerTrackNode } from './types';
|
|
18
|
-
import {
|
|
19
|
-
PERMISSIONS,
|
|
20
|
-
request,
|
|
21
|
-
requestMultiple,
|
|
22
|
-
RESULTS,
|
|
23
|
-
} from 'react-native-permissions';
|
|
24
|
-
import { getRoomLinkDetails } from './getRoomLinkDetails';
|
|
25
18
|
|
|
26
19
|
export const getMeetingUrl = () =>
|
|
27
20
|
'https://yogi.app.100ms.live/streaming/meeting/nih-bkn-vek';
|
|
@@ -102,57 +95,6 @@ export const requestExternalStoragePermission = async (): Promise<boolean> => {
|
|
|
102
95
|
return false;
|
|
103
96
|
};
|
|
104
97
|
|
|
105
|
-
export const callService = async (
|
|
106
|
-
roomID: string,
|
|
107
|
-
success: Function,
|
|
108
|
-
failure: Function
|
|
109
|
-
) => {
|
|
110
|
-
let roomCode;
|
|
111
|
-
let subdomain;
|
|
112
|
-
try {
|
|
113
|
-
if (validateUrl(roomID)) {
|
|
114
|
-
const { roomCode: code, roomDomain: domain } = getRoomLinkDetails(roomID);
|
|
115
|
-
roomCode = code;
|
|
116
|
-
subdomain = domain;
|
|
117
|
-
|
|
118
|
-
if (!code || !domain) {
|
|
119
|
-
failure('code, domain not found');
|
|
120
|
-
return;
|
|
121
|
-
}
|
|
122
|
-
} else {
|
|
123
|
-
failure('Invalid room join link');
|
|
124
|
-
return;
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
const permissions = await checkPermissions([
|
|
128
|
-
PERMISSIONS.ANDROID.CAMERA,
|
|
129
|
-
PERMISSIONS.ANDROID.RECORD_AUDIO,
|
|
130
|
-
PERMISSIONS.ANDROID.BLUETOOTH_CONNECT,
|
|
131
|
-
]);
|
|
132
|
-
|
|
133
|
-
if (permissions) {
|
|
134
|
-
const userId = getRandomUserId(6);
|
|
135
|
-
const isQARoom = subdomain && subdomain.search('.qa-') >= 0;
|
|
136
|
-
success(
|
|
137
|
-
roomCode,
|
|
138
|
-
userId,
|
|
139
|
-
isQARoom
|
|
140
|
-
? `https://auth-nonprod.100ms.live${Platform.OS === 'ios' ? '/' : ''}`
|
|
141
|
-
: undefined, // Auth Endpoint
|
|
142
|
-
isQARoom ? 'https://qa-init.100ms.live/init' : undefined // HMSConfig Endpoint
|
|
143
|
-
);
|
|
144
|
-
return;
|
|
145
|
-
} else {
|
|
146
|
-
failure('permission not granted');
|
|
147
|
-
return;
|
|
148
|
-
}
|
|
149
|
-
} catch (error) {
|
|
150
|
-
console.log(error);
|
|
151
|
-
failure('error in call service');
|
|
152
|
-
return;
|
|
153
|
-
}
|
|
154
|
-
};
|
|
155
|
-
|
|
156
98
|
/**
|
|
157
99
|
* @param min minimum range value
|
|
158
100
|
* @param max maximum range value
|
|
@@ -307,53 +249,6 @@ export const validateUrl = (url?: string): boolean => {
|
|
|
307
249
|
return false;
|
|
308
250
|
};
|
|
309
251
|
|
|
310
|
-
export const checkPermissions = async (
|
|
311
|
-
permissions: Array<
|
|
312
|
-
(typeof PERMISSIONS.ANDROID)[keyof typeof PERMISSIONS.ANDROID]
|
|
313
|
-
>
|
|
314
|
-
): Promise<boolean> => {
|
|
315
|
-
if (Platform.OS === 'ios') {
|
|
316
|
-
return true;
|
|
317
|
-
}
|
|
318
|
-
|
|
319
|
-
try {
|
|
320
|
-
const requiredPermissions = permissions.filter(
|
|
321
|
-
(permission) =>
|
|
322
|
-
permission.toString() !== PERMISSIONS.ANDROID.BLUETOOTH_CONNECT
|
|
323
|
-
);
|
|
324
|
-
|
|
325
|
-
const results = await requestMultiple(requiredPermissions);
|
|
326
|
-
|
|
327
|
-
let allPermissionsGranted = true;
|
|
328
|
-
requiredPermissions.forEach((permission) => {
|
|
329
|
-
if (!(results[permission] === RESULTS.GRANTED)) {
|
|
330
|
-
allPermissionsGranted = false;
|
|
331
|
-
}
|
|
332
|
-
console.log(permission, ':', results[permission]);
|
|
333
|
-
});
|
|
334
|
-
|
|
335
|
-
// Bluetooth Connect Permission handling
|
|
336
|
-
if (
|
|
337
|
-
permissions.findIndex(
|
|
338
|
-
(permission) =>
|
|
339
|
-
permission.toString() === PERMISSIONS.ANDROID.BLUETOOTH_CONNECT
|
|
340
|
-
) >= 0
|
|
341
|
-
) {
|
|
342
|
-
const bleConnectResult = await request(
|
|
343
|
-
PERMISSIONS.ANDROID.BLUETOOTH_CONNECT
|
|
344
|
-
);
|
|
345
|
-
console.log(
|
|
346
|
-
`${PERMISSIONS.ANDROID.BLUETOOTH_CONNECT} : ${bleConnectResult}`
|
|
347
|
-
);
|
|
348
|
-
}
|
|
349
|
-
|
|
350
|
-
return allPermissionsGranted;
|
|
351
|
-
} catch (error) {
|
|
352
|
-
console.log(error);
|
|
353
|
-
return false;
|
|
354
|
-
}
|
|
355
|
-
};
|
|
356
|
-
|
|
357
252
|
export const pairData = (
|
|
358
253
|
unGroupedPeerTrackNodes: PeerTrackNode[],
|
|
359
254
|
batch: number,
|
|
@@ -448,19 +343,19 @@ export const getDisplayTrackDimensions = (
|
|
|
448
343
|
peersInPage === 1
|
|
449
344
|
? viewHeight / 1
|
|
450
345
|
: peersInPage === 2
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
346
|
+
? viewHeight / 2
|
|
347
|
+
: peersInPage === 3
|
|
348
|
+
? viewHeight / 3
|
|
349
|
+
: viewHeight / 2;
|
|
455
350
|
|
|
456
351
|
width =
|
|
457
352
|
peersInPage === 1
|
|
458
353
|
? '100%'
|
|
459
354
|
: peersInPage === 2
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
355
|
+
? '100%'
|
|
356
|
+
: peersInPage === 3
|
|
357
|
+
? '100%'
|
|
358
|
+
: '50%';
|
|
464
359
|
} else {
|
|
465
360
|
height = viewHeight - (StatusBar.currentHeight || 0);
|
|
466
361
|
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.getRoomLinkDetails = void 0;
|
|
7
|
-
const getRoomLinkDetails = roomLink => {
|
|
8
|
-
const codeObject = RegExp(/(?!\/)[a-zA-Z\-0-9]*$/g).exec(roomLink);
|
|
9
|
-
const domainObject = RegExp(/(https:\/\/)?(?:[a-zA-Z0-9.-])+(?!\\)/).exec(roomLink);
|
|
10
|
-
let roomCode = '';
|
|
11
|
-
let roomDomain = '';
|
|
12
|
-
if (codeObject && domainObject) {
|
|
13
|
-
roomCode = codeObject[0];
|
|
14
|
-
roomDomain = domainObject[0];
|
|
15
|
-
roomDomain = roomDomain.replace('https://', '');
|
|
16
|
-
}
|
|
17
|
-
return {
|
|
18
|
-
roomCode,
|
|
19
|
-
roomDomain
|
|
20
|
-
};
|
|
21
|
-
};
|
|
22
|
-
exports.getRoomLinkDetails = getRoomLinkDetails;
|
|
23
|
-
//# sourceMappingURL=getRoomLinkDetails.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["getRoomLinkDetails","roomLink","codeObject","RegExp","exec","domainObject","roomCode","roomDomain","replace","exports"],"sourceRoot":"../../../src","sources":["utils/getRoomLinkDetails.ts"],"mappings":";;;;;;AAAO,MAAMA,kBAAkB,GAC7BC,QAAgB,IAC6B;EAC7C,MAAMC,UAAU,GAAGC,MAAM,CAAC,wBAAwB,CAAC,CAACC,IAAI,CAACH,QAAQ,CAAC;EAElE,MAAMI,YAAY,GAAGF,MAAM,CAAC,uCAAuC,CAAC,CAACC,IAAI,CACvEH,QACF,CAAC;EAED,IAAIK,QAAQ,GAAG,EAAE;EACjB,IAAIC,UAAU,GAAG,EAAE;EAEnB,IAAIL,UAAU,IAAIG,YAAY,EAAE;IAC9BC,QAAQ,GAAGJ,UAAU,CAAC,CAAC,CAAC;IACxBK,UAAU,GAAGF,YAAY,CAAC,CAAC,CAAC;IAC5BE,UAAU,GAAGA,UAAU,CAACC,OAAO,CAAC,UAAU,EAAE,EAAE,CAAC;EACjD;EAEA,OAAO;IACLF,QAAQ;IACRC;EACF,CAAC;AACH,CAAC;AAACE,OAAA,CAAAT,kBAAA,GAAAA,kBAAA"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
export const getRoomLinkDetails = roomLink => {
|
|
2
|
-
const codeObject = RegExp(/(?!\/)[a-zA-Z\-0-9]*$/g).exec(roomLink);
|
|
3
|
-
const domainObject = RegExp(/(https:\/\/)?(?:[a-zA-Z0-9.-])+(?!\\)/).exec(roomLink);
|
|
4
|
-
let roomCode = '';
|
|
5
|
-
let roomDomain = '';
|
|
6
|
-
if (codeObject && domainObject) {
|
|
7
|
-
roomCode = codeObject[0];
|
|
8
|
-
roomDomain = domainObject[0];
|
|
9
|
-
roomDomain = roomDomain.replace('https://', '');
|
|
10
|
-
}
|
|
11
|
-
return {
|
|
12
|
-
roomCode,
|
|
13
|
-
roomDomain
|
|
14
|
-
};
|
|
15
|
-
};
|
|
16
|
-
//# sourceMappingURL=getRoomLinkDetails.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["getRoomLinkDetails","roomLink","codeObject","RegExp","exec","domainObject","roomCode","roomDomain","replace"],"sourceRoot":"../../../src","sources":["utils/getRoomLinkDetails.ts"],"mappings":"AAAA,OAAO,MAAMA,kBAAkB,GAC7BC,QAAgB,IAC6B;EAC7C,MAAMC,UAAU,GAAGC,MAAM,CAAC,wBAAwB,CAAC,CAACC,IAAI,CAACH,QAAQ,CAAC;EAElE,MAAMI,YAAY,GAAGF,MAAM,CAAC,uCAAuC,CAAC,CAACC,IAAI,CACvEH,QACF,CAAC;EAED,IAAIK,QAAQ,GAAG,EAAE;EACjB,IAAIC,UAAU,GAAG,EAAE;EAEnB,IAAIL,UAAU,IAAIG,YAAY,EAAE;IAC9BC,QAAQ,GAAGJ,UAAU,CAAC,CAAC,CAAC;IACxBK,UAAU,GAAGF,YAAY,CAAC,CAAC,CAAC;IAC5BE,UAAU,GAAGA,UAAU,CAACC,OAAO,CAAC,UAAU,EAAE,EAAE,CAAC;EACjD;EAEA,OAAO;IACLF,QAAQ;IACRC;EACF,CAAC;AACH,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getRoomLinkDetails.d.ts","sourceRoot":"","sources":["../../../src/utils/getRoomLinkDetails.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,kBAAkB,aACnB,MAAM;cACH,MAAM;gBAAc,MAAM;CAoBxC,CAAC"}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
export const getRoomLinkDetails = (
|
|
2
|
-
roomLink: string
|
|
3
|
-
): { roomCode: string; roomDomain: string } => {
|
|
4
|
-
const codeObject = RegExp(/(?!\/)[a-zA-Z\-0-9]*$/g).exec(roomLink);
|
|
5
|
-
|
|
6
|
-
const domainObject = RegExp(/(https:\/\/)?(?:[a-zA-Z0-9.-])+(?!\\)/).exec(
|
|
7
|
-
roomLink
|
|
8
|
-
);
|
|
9
|
-
|
|
10
|
-
let roomCode = '';
|
|
11
|
-
let roomDomain = '';
|
|
12
|
-
|
|
13
|
-
if (codeObject && domainObject) {
|
|
14
|
-
roomCode = codeObject[0];
|
|
15
|
-
roomDomain = domainObject[0];
|
|
16
|
-
roomDomain = roomDomain.replace('https://', '');
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
return {
|
|
20
|
-
roomCode,
|
|
21
|
-
roomDomain,
|
|
22
|
-
};
|
|
23
|
-
};
|