@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
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/src/Icons/index.ts
CHANGED
|
@@ -6,6 +6,7 @@ import { Footer } from './Footer';
|
|
|
6
6
|
import { AnimatedHLSFooter } from './AnimatedHLSFooter';
|
|
7
7
|
import { HLSChatView } from './HMSOverlayChatView';
|
|
8
8
|
import { useShowChatAndParticipants } from '../hooks-util';
|
|
9
|
+
import { HMSNotifications } from './HMSNotifications';
|
|
9
10
|
|
|
10
11
|
interface HLSFooterProps {
|
|
11
12
|
offset: SharedValue<number>;
|
|
@@ -18,6 +19,8 @@ export const HLSFooter: React.FC<HLSFooterProps> = ({ offset }) => {
|
|
|
18
19
|
<AnimatedHLSFooter offset={offset} style={styles.animatedContainer}>
|
|
19
20
|
{overlayChatVisible ? <HLSChatView /> : null}
|
|
20
21
|
|
|
22
|
+
<HMSNotifications />
|
|
23
|
+
|
|
21
24
|
<Footer />
|
|
22
25
|
</AnimatedHLSFooter>
|
|
23
26
|
);
|
|
@@ -1,18 +1,24 @@
|
|
|
1
1
|
import React, { useRef } from 'react';
|
|
2
2
|
import type { ComponentRef } from 'react';
|
|
3
3
|
import { useDispatch, useSelector } from 'react-redux';
|
|
4
|
-
import { View, Text, StyleSheet } from 'react-native';
|
|
5
|
-
import {
|
|
4
|
+
import { View, Text, StyleSheet, Platform } from 'react-native';
|
|
5
|
+
import {
|
|
6
|
+
HMSHLSPlayer,
|
|
7
|
+
HMSHLSPlayerPlaybackState,
|
|
8
|
+
useHMSHLSPlayerPlaybackState,
|
|
9
|
+
} from '@100mslive/react-native-hms';
|
|
6
10
|
|
|
7
11
|
import type { RootState } from '../redux';
|
|
8
12
|
import { changeShowHLSStats } from '../redux/actions';
|
|
9
13
|
import { HLSPlayerStatsView } from './HLSPlayerStatsView';
|
|
10
14
|
import { HLSPlayerEmoticons } from './HLSPlayerEmoticons';
|
|
11
15
|
import { CustomControls } from './CustomHLSPlayerControls';
|
|
12
|
-
import { COLORS } from '../utils/theme';
|
|
16
|
+
import { COLORS, hexToRgbA } from '../utils/theme';
|
|
13
17
|
import { HMSHLSNotStarted } from './HMSHLSNotStarted';
|
|
18
|
+
import { CrossCircleIcon } from '../Icons';
|
|
19
|
+
import { useHMSRoomStyleSheet } from '../hooks-util';
|
|
14
20
|
|
|
15
|
-
export const
|
|
21
|
+
export const _HLSView: React.FC = () => {
|
|
16
22
|
const dispatch = useDispatch();
|
|
17
23
|
const room = useSelector((state: RootState) => state.hmsStates.room);
|
|
18
24
|
const hmsHlsPlayerRef = useRef<ComponentRef<typeof HMSHLSPlayer>>(null);
|
|
@@ -80,6 +86,46 @@ export const HLSView: React.FC = () => {
|
|
|
80
86
|
}
|
|
81
87
|
};
|
|
82
88
|
|
|
89
|
+
const [playerKey, setPlayerKey] = React.useState(1);
|
|
90
|
+
|
|
91
|
+
const prevReconnectingRef = React.useRef<null | boolean>(null);
|
|
92
|
+
const reconnecting = useSelector(
|
|
93
|
+
(state: RootState) => state.hmsStates.reconnecting
|
|
94
|
+
);
|
|
95
|
+
|
|
96
|
+
const hlsPlayerPlaybackState = useHMSHLSPlayerPlaybackState();
|
|
97
|
+
|
|
98
|
+
const isPlaybackFailed =
|
|
99
|
+
hlsPlayerPlaybackState === HMSHLSPlayerPlaybackState.FAILED;
|
|
100
|
+
|
|
101
|
+
React.useEffect(() => {
|
|
102
|
+
const prevReconnecting = prevReconnectingRef.current;
|
|
103
|
+
|
|
104
|
+
if (
|
|
105
|
+
Platform.OS === 'android' &&
|
|
106
|
+
prevReconnecting && // previously were in reconnection state
|
|
107
|
+
reconnecting === false && // now in reconnected state
|
|
108
|
+
isPlaybackFailed // and player playback is in failed state
|
|
109
|
+
) {
|
|
110
|
+
// Recreate the HLS PLayer instance
|
|
111
|
+
setPlayerKey((prevKey) => (prevKey += 1));
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
prevReconnectingRef.current = reconnecting;
|
|
115
|
+
}, [reconnecting, isPlaybackFailed]);
|
|
116
|
+
|
|
117
|
+
const hmsRoomStyles = useHMSRoomStyleSheet((theme, typography) => ({
|
|
118
|
+
failedContainer: {
|
|
119
|
+
backgroundColor: theme.palette.background_dim
|
|
120
|
+
? hexToRgbA(theme.palette.background_dim, 0.7)
|
|
121
|
+
: COLORS.LOADING_BACKDROP,
|
|
122
|
+
},
|
|
123
|
+
failedText: {
|
|
124
|
+
color: theme.palette.on_surface_high,
|
|
125
|
+
fontFamily: `${typography.font_family}-Regular`,
|
|
126
|
+
},
|
|
127
|
+
}));
|
|
128
|
+
|
|
83
129
|
return (
|
|
84
130
|
<View style={styles.hlsView}>
|
|
85
131
|
{room?.hlsStreamingState?.running ? (
|
|
@@ -87,6 +133,7 @@ export const HLSView: React.FC = () => {
|
|
|
87
133
|
variant?.hlsStreamUrl ? (
|
|
88
134
|
<View key={index} style={styles.hlsPlayerContainer}>
|
|
89
135
|
<HMSHLSPlayer
|
|
136
|
+
key={playerKey}
|
|
90
137
|
ref={hmsHlsPlayerRef}
|
|
91
138
|
enableStats={showHLSStats}
|
|
92
139
|
enableControls={enableHLSPlayerControls}
|
|
@@ -101,6 +148,23 @@ export const HLSView: React.FC = () => {
|
|
|
101
148
|
{showCustomHLSPlayerControls ? (
|
|
102
149
|
<CustomControls handleControlPress={hlsPlayerActions} />
|
|
103
150
|
) : null}
|
|
151
|
+
|
|
152
|
+
{isPlaybackFailed ? (
|
|
153
|
+
<View
|
|
154
|
+
style={[
|
|
155
|
+
styles.playbackFailedContainer,
|
|
156
|
+
hmsRoomStyles.failedContainer,
|
|
157
|
+
]}
|
|
158
|
+
>
|
|
159
|
+
<CrossCircleIcon />
|
|
160
|
+
|
|
161
|
+
<Text
|
|
162
|
+
style={[styles.playbackFailed, hmsRoomStyles.failedText]}
|
|
163
|
+
>
|
|
164
|
+
Playback Failed
|
|
165
|
+
</Text>
|
|
166
|
+
</View>
|
|
167
|
+
) : null}
|
|
104
168
|
</View>
|
|
105
169
|
) : (
|
|
106
170
|
<View key={index} style={styles.textContainer}>
|
|
@@ -115,6 +179,8 @@ export const HLSView: React.FC = () => {
|
|
|
115
179
|
);
|
|
116
180
|
};
|
|
117
181
|
|
|
182
|
+
export const HLSView = React.memo(_HLSView);
|
|
183
|
+
|
|
118
184
|
const styles = StyleSheet.create({
|
|
119
185
|
hlsView: {
|
|
120
186
|
flex: 1,
|
|
@@ -140,4 +206,19 @@ const styles = StyleSheet.create({
|
|
|
140
206
|
taleLessSpaceAsYouCan: {
|
|
141
207
|
flex: 0,
|
|
142
208
|
},
|
|
209
|
+
playbackFailedContainer: {
|
|
210
|
+
flex: 1,
|
|
211
|
+
width: '100%',
|
|
212
|
+
height: '100%',
|
|
213
|
+
alignItems: 'center',
|
|
214
|
+
justifyContent: 'center',
|
|
215
|
+
position: 'absolute',
|
|
216
|
+
},
|
|
217
|
+
playbackFailed: {
|
|
218
|
+
fontSize: 24,
|
|
219
|
+
lineHeight: 32,
|
|
220
|
+
letterSpacing: 0.5,
|
|
221
|
+
textAlign: 'center',
|
|
222
|
+
marginTop: 8,
|
|
223
|
+
},
|
|
143
224
|
});
|
|
@@ -31,11 +31,13 @@ import {
|
|
|
31
31
|
import type { RootState } from '../redux';
|
|
32
32
|
import { BottomSheet } from './BottomSheet';
|
|
33
33
|
import { TestIds } from '../utils/constants';
|
|
34
|
+
import { useHMSActions } from '../hooks-sdk';
|
|
34
35
|
|
|
35
36
|
export const HMSManageAudioOutput: React.FC = () => {
|
|
36
37
|
const hmsInstance = useHMSInstance();
|
|
37
38
|
const isHLSViewer = useIsHLSViewer();
|
|
38
39
|
const [settingsModalVisible, setSettingsModalVisible] = React.useState(false);
|
|
40
|
+
const { setRoomMuteLocally } = useHMSActions();
|
|
39
41
|
|
|
40
42
|
const [currentAudioOutputDevice, setCurrentAudioOutputDevice] =
|
|
41
43
|
React.useState<HMSAudioDevice | null>(null);
|
|
@@ -43,6 +45,9 @@ export const HMSManageAudioOutput: React.FC = () => {
|
|
|
43
45
|
React.useState<HMSAudioDevice[]>([]);
|
|
44
46
|
|
|
45
47
|
const debugMode = useSelector((state: RootState) => state.user.debugMode);
|
|
48
|
+
const roomLocallyMuted = useSelector(
|
|
49
|
+
(state: RootState) => state.hmsStates.roomLocallyMuted
|
|
50
|
+
);
|
|
46
51
|
|
|
47
52
|
// Fetch current selected audio device and audio devices list on Android
|
|
48
53
|
React.useEffect(() => {
|
|
@@ -79,16 +84,12 @@ export const HMSManageAudioOutput: React.FC = () => {
|
|
|
79
84
|
|
|
80
85
|
// Handles showing Modal for changing Audio device
|
|
81
86
|
const handleSpeakerChange = () => {
|
|
82
|
-
if (Platform.OS === '
|
|
83
|
-
hmsInstance
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
hmsInstance
|
|
87
|
-
.getAudioDevicesList()
|
|
88
|
-
.then((devices) => setAvailableAudioOutputDevices(devices)); // TODO(set-state-after-unmount): setting state irrespective of component unmount check
|
|
89
|
-
}
|
|
90
|
-
setSettingsModalVisible(true);
|
|
87
|
+
if (Platform.OS === 'android' && availableAudioOutputDevices.length === 0) {
|
|
88
|
+
hmsInstance
|
|
89
|
+
.getAudioDevicesList()
|
|
90
|
+
.then((devices) => setAvailableAudioOutputDevices(devices)); // TODO(set-state-after-unmount): setting state irrespective of component unmount check
|
|
91
91
|
}
|
|
92
|
+
setSettingsModalVisible(true);
|
|
92
93
|
};
|
|
93
94
|
|
|
94
95
|
// Add audio device change listeners
|
|
@@ -120,23 +121,29 @@ export const HMSManageAudioOutput: React.FC = () => {
|
|
|
120
121
|
}, [hmsInstance, debugMode]);
|
|
121
122
|
|
|
122
123
|
// Handle changing selected audio device
|
|
123
|
-
const handleSelectAudioDevice = (
|
|
124
|
-
|
|
124
|
+
const handleSelectAudioDevice = (
|
|
125
|
+
device: HMSAudioDevice | 'mute-audio' | 'ios-audio-device'
|
|
126
|
+
) => {
|
|
127
|
+
if (device === 'mute-audio') {
|
|
128
|
+
setRoomMuteLocally(true);
|
|
129
|
+
} else {
|
|
130
|
+
if (roomLocallyMuted) {
|
|
131
|
+
setRoomMuteLocally(false);
|
|
132
|
+
}
|
|
133
|
+
if (device === 'ios-audio-device') {
|
|
134
|
+
hmsInstance.switchAudioOutputUsingIOSUI();
|
|
135
|
+
} else {
|
|
136
|
+
hmsInstance.switchAudioOutput(device);
|
|
137
|
+
}
|
|
138
|
+
}
|
|
125
139
|
setSettingsModalVisible(false);
|
|
126
140
|
};
|
|
127
141
|
|
|
128
142
|
const hmsRoomStyles = useHMSRoomStyleSheet((theme, typography) => ({
|
|
129
|
-
headerText: {
|
|
130
|
-
color: theme.palette.on_surface_high,
|
|
131
|
-
fontFamily: `${typography.font_family}-Medium`,
|
|
132
|
-
},
|
|
133
143
|
text: {
|
|
134
144
|
color: theme.palette.on_surface_high,
|
|
135
145
|
fontFamily: `${typography.font_family}-SemiBold`,
|
|
136
146
|
},
|
|
137
|
-
divider: {
|
|
138
|
-
backgroundColor: theme.palette.border_default,
|
|
139
|
-
},
|
|
140
147
|
}));
|
|
141
148
|
|
|
142
149
|
return (
|
|
@@ -146,7 +153,9 @@ export const HMSManageAudioOutput: React.FC = () => {
|
|
|
146
153
|
onPress={handleSpeakerChange}
|
|
147
154
|
style={isHLSViewer ? styles.button : null}
|
|
148
155
|
>
|
|
149
|
-
{
|
|
156
|
+
{roomLocallyMuted ? (
|
|
157
|
+
<SpeakerIcon muted={true} />
|
|
158
|
+
) : Platform.OS === 'ios' ? (
|
|
150
159
|
<SpeakerIcon muted={false} />
|
|
151
160
|
) : (
|
|
152
161
|
getIcon(currentAudioOutputDevice || HMSAudioDevice.AUTOMATIC)
|
|
@@ -164,7 +173,33 @@ export const HMSManageAudioOutput: React.FC = () => {
|
|
|
164
173
|
<BottomSheet.Divider />
|
|
165
174
|
|
|
166
175
|
<View style={styles.contentContainer}>
|
|
167
|
-
{
|
|
176
|
+
{Platform.OS === 'ios' ? (
|
|
177
|
+
<>
|
|
178
|
+
<AudioOutputDevice
|
|
179
|
+
id={'ios-audio-device'}
|
|
180
|
+
hideDivider={true}
|
|
181
|
+
selected={!roomLocallyMuted}
|
|
182
|
+
text={'Auto'}
|
|
183
|
+
icon={<SpeakerIcon muted={false} />}
|
|
184
|
+
onPress={handleSelectAudioDevice}
|
|
185
|
+
checkTestID={TestIds.automatic_audio_device_active}
|
|
186
|
+
textTestID={TestIds.automatic_audio_device_text}
|
|
187
|
+
buttonTestID={TestIds.automatic_audio_device_btn}
|
|
188
|
+
/>
|
|
189
|
+
|
|
190
|
+
<AudioOutputDevice
|
|
191
|
+
id={'mute-audio'}
|
|
192
|
+
hideDivider={false}
|
|
193
|
+
selected={roomLocallyMuted}
|
|
194
|
+
text={'Mute Audio'}
|
|
195
|
+
icon={<SpeakerIcon muted={true} />}
|
|
196
|
+
onPress={handleSelectAudioDevice}
|
|
197
|
+
checkTestID={TestIds.mute_audio_active}
|
|
198
|
+
textTestID={TestIds.mute_audio_text}
|
|
199
|
+
buttonTestID={TestIds.mute_audio_btn}
|
|
200
|
+
/>
|
|
201
|
+
</>
|
|
202
|
+
) : availableAudioOutputDevices.length === 0 ? (
|
|
168
203
|
<View style={styles.emptyView}>
|
|
169
204
|
<Text
|
|
170
205
|
testID={TestIds.audio_modal_empty_text}
|
|
@@ -183,36 +218,39 @@ export const HMSManageAudioOutput: React.FC = () => {
|
|
|
183
218
|
const isFirst = index === 0;
|
|
184
219
|
|
|
185
220
|
return (
|
|
186
|
-
<
|
|
187
|
-
{
|
|
188
|
-
|
|
221
|
+
<AudioOutputDevice
|
|
222
|
+
key={device}
|
|
223
|
+
id={device}
|
|
224
|
+
hideDivider={isFirst}
|
|
225
|
+
selected={
|
|
226
|
+
device === currentAudioOutputDevice && !roomLocallyMuted
|
|
227
|
+
}
|
|
228
|
+
checkTestID={activeAudioDeviceTestIds[device]}
|
|
229
|
+
text={getDescription(device, currentAudioOutputDevice)}
|
|
230
|
+
textTestID={audioDeviceTextTestIds[device]}
|
|
231
|
+
icon={getIcon(
|
|
232
|
+
device === HMSAudioDevice.AUTOMATIC &&
|
|
233
|
+
currentAudioOutputDevice
|
|
234
|
+
? currentAudioOutputDevice
|
|
235
|
+
: device
|
|
189
236
|
)}
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
style={styles.audioDeviceItem}
|
|
194
|
-
onPress={() => handleSelectAudioDevice(device)}
|
|
195
|
-
>
|
|
196
|
-
<View style={styles.itemTextWrapper}>
|
|
197
|
-
{getIcon(
|
|
198
|
-
device === HMSAudioDevice.AUTOMATIC &&
|
|
199
|
-
currentAudioOutputDevice
|
|
200
|
-
? currentAudioOutputDevice
|
|
201
|
-
: device
|
|
202
|
-
)}
|
|
203
|
-
|
|
204
|
-
<Text testID={audioDeviceTextTestIds[device]} style={[styles.itemText, hmsRoomStyles.text]}>
|
|
205
|
-
{getDescription(device, currentAudioOutputDevice)}
|
|
206
|
-
</Text>
|
|
207
|
-
</View>
|
|
208
|
-
|
|
209
|
-
{device === currentAudioOutputDevice ? (
|
|
210
|
-
<CheckIcon testID={activeAudioDeviceTestIds[device]} />
|
|
211
|
-
) : null}
|
|
212
|
-
</TouchableOpacity>
|
|
213
|
-
</React.Fragment>
|
|
237
|
+
buttonTestID={audioDeviceTestIds[device]}
|
|
238
|
+
onPress={handleSelectAudioDevice}
|
|
239
|
+
/>
|
|
214
240
|
);
|
|
215
241
|
})}
|
|
242
|
+
|
|
243
|
+
<AudioOutputDevice
|
|
244
|
+
id={'mute-audio'}
|
|
245
|
+
hideDivider={false}
|
|
246
|
+
selected={roomLocallyMuted}
|
|
247
|
+
text={'Mute Audio'}
|
|
248
|
+
icon={<SpeakerIcon muted={true} />}
|
|
249
|
+
onPress={handleSelectAudioDevice}
|
|
250
|
+
checkTestID={TestIds.mute_audio_active}
|
|
251
|
+
textTestID={TestIds.mute_audio_text}
|
|
252
|
+
buttonTestID={TestIds.mute_audio_btn}
|
|
253
|
+
/>
|
|
216
254
|
</ScrollView>
|
|
217
255
|
)}
|
|
218
256
|
</View>
|
|
@@ -221,6 +259,84 @@ export const HMSManageAudioOutput: React.FC = () => {
|
|
|
221
259
|
);
|
|
222
260
|
};
|
|
223
261
|
|
|
262
|
+
interface AudioOutputDeviceProps {
|
|
263
|
+
id: HMSAudioDevice | 'mute-audio' | 'ios-audio-device';
|
|
264
|
+
hideDivider: boolean;
|
|
265
|
+
selected: boolean;
|
|
266
|
+
checkTestID: string;
|
|
267
|
+
text: string;
|
|
268
|
+
textTestID: string;
|
|
269
|
+
icon: React.ReactElement;
|
|
270
|
+
buttonTestID: string;
|
|
271
|
+
onPress(selected: HMSAudioDevice | 'mute-audio' | 'ios-audio-device'): void;
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
const AudioOutputDevice: React.FC<AudioOutputDeviceProps> = (props) => {
|
|
275
|
+
const {
|
|
276
|
+
id,
|
|
277
|
+
hideDivider,
|
|
278
|
+
selected,
|
|
279
|
+
checkTestID,
|
|
280
|
+
text,
|
|
281
|
+
textTestID,
|
|
282
|
+
icon,
|
|
283
|
+
buttonTestID,
|
|
284
|
+
onPress,
|
|
285
|
+
} = props;
|
|
286
|
+
|
|
287
|
+
const hmsRoomStyles = useHMSRoomStyleSheet(
|
|
288
|
+
(theme, typography) => ({
|
|
289
|
+
text: {
|
|
290
|
+
color: selected
|
|
291
|
+
? theme.palette.primary_bright
|
|
292
|
+
: theme.palette.on_surface_high,
|
|
293
|
+
fontFamily: `${typography.font_family}-SemiBold`,
|
|
294
|
+
},
|
|
295
|
+
divider: {
|
|
296
|
+
backgroundColor: theme.palette.border_default,
|
|
297
|
+
},
|
|
298
|
+
checkIcon: {
|
|
299
|
+
tintColor: theme.palette.primary_bright,
|
|
300
|
+
},
|
|
301
|
+
}),
|
|
302
|
+
[selected]
|
|
303
|
+
);
|
|
304
|
+
|
|
305
|
+
return (
|
|
306
|
+
<React.Fragment>
|
|
307
|
+
{hideDivider ? null : (
|
|
308
|
+
<View style={[styles.divider, hmsRoomStyles.divider]} />
|
|
309
|
+
)}
|
|
310
|
+
|
|
311
|
+
<TouchableOpacity
|
|
312
|
+
testID={buttonTestID}
|
|
313
|
+
disabled={selected}
|
|
314
|
+
style={styles.audioDeviceItem}
|
|
315
|
+
onPress={() => onPress(id)}
|
|
316
|
+
>
|
|
317
|
+
<View style={styles.itemTextWrapper}>
|
|
318
|
+
{icon
|
|
319
|
+
? React.cloneElement(icon, {
|
|
320
|
+
style: selected ? hmsRoomStyles.checkIcon : null,
|
|
321
|
+
})
|
|
322
|
+
: null}
|
|
323
|
+
|
|
324
|
+
<Text
|
|
325
|
+
testID={textTestID}
|
|
326
|
+
style={[styles.itemText, hmsRoomStyles.text]}
|
|
327
|
+
>
|
|
328
|
+
{text}
|
|
329
|
+
</Text>
|
|
330
|
+
</View>
|
|
331
|
+
|
|
332
|
+
{selected ? (
|
|
333
|
+
<CheckIcon testID={checkTestID} style={hmsRoomStyles.checkIcon} />
|
|
334
|
+
) : null}
|
|
335
|
+
</TouchableOpacity>
|
|
336
|
+
</React.Fragment>
|
|
337
|
+
);
|
|
338
|
+
};
|
|
339
|
+
|
|
224
340
|
const styles = StyleSheet.create({
|
|
225
341
|
button: {
|
|
226
342
|
backgroundColor: 'transparent',
|
|
@@ -321,4 +437,4 @@ const activeAudioDeviceTestIds = {
|
|
|
321
437
|
[HMSAudioDevice.WIRED_HEADSET]: TestIds.wired_headset_audio_device_active,
|
|
322
438
|
[HMSAudioDevice.EARPIECE]: TestIds.earpiece_audio_device_active,
|
|
323
439
|
[HMSAudioDevice.BLUETOOTH]: TestIds.bluetooth_audio_device_active,
|
|
324
|
-
} as const;
|
|
440
|
+
} as const;
|
|
@@ -6,14 +6,15 @@ import {
|
|
|
6
6
|
ScrollView,
|
|
7
7
|
TouchableOpacity,
|
|
8
8
|
Alert,
|
|
9
|
+
Linking,
|
|
9
10
|
} from 'react-native';
|
|
10
11
|
import {
|
|
11
12
|
HMSAudioMixingMode,
|
|
12
13
|
HMSUpdateListenerActions,
|
|
14
|
+
checkNotifications,
|
|
13
15
|
} from '@100mslive/react-native-hms';
|
|
14
16
|
import { useDispatch, useSelector } from 'react-redux';
|
|
15
17
|
import Toast from 'react-native-simple-toast';
|
|
16
|
-
import { openSettings, requestNotifications } from 'react-native-permissions';
|
|
17
18
|
|
|
18
19
|
import { COLORS } from '../utils/theme';
|
|
19
20
|
import type { RootState } from '../redux';
|
|
@@ -210,7 +211,7 @@ export const RoomSettingsModalDebugModeContent: React.FC<
|
|
|
210
211
|
// check notification permission on android platform
|
|
211
212
|
// Audio share feature needs foreground service running. for Foreground service to keep running, we need active notification.
|
|
212
213
|
if (Platform.OS === 'android') {
|
|
213
|
-
const result = await
|
|
214
|
+
const result = await checkNotifications();
|
|
214
215
|
|
|
215
216
|
console.log('Notification Permission Result: ', result);
|
|
216
217
|
|
|
@@ -220,7 +221,7 @@ export const RoomSettingsModalDebugModeContent: React.FC<
|
|
|
220
221
|
'100ms SDK needs notification permission to start audio share. Please allow notification from settings and try again!',
|
|
221
222
|
[
|
|
222
223
|
{ text: 'cancel' },
|
|
223
|
-
{ text: 'Go to Settings', onPress: () => openSettings() },
|
|
224
|
+
{ text: 'Go to Settings', onPress: () => Linking.openSettings() },
|
|
224
225
|
],
|
|
225
226
|
{ cancelable: true }
|
|
226
227
|
);
|
package/src/hooks-sdk.ts
CHANGED
|
@@ -5,6 +5,7 @@ import {
|
|
|
5
5
|
setIsLocalAudioMutedState,
|
|
6
6
|
setIsLocalScreenSharedState,
|
|
7
7
|
setIsLocalVideoMutedState,
|
|
8
|
+
setRoomLocallyMuted,
|
|
8
9
|
} from './redux/actions';
|
|
9
10
|
import {
|
|
10
11
|
selectAllowedTracksToPublish,
|
|
@@ -218,6 +219,28 @@ export const useHMSActions = () => {
|
|
|
218
219
|
[]
|
|
219
220
|
);
|
|
220
221
|
|
|
222
|
+
const setRoomMuteLocally = useCallback(
|
|
223
|
+
async (mute: boolean): Promise<void> => {
|
|
224
|
+
const state: RootState = store.getState();
|
|
225
|
+
const hmsInstance = state.user.hmsInstance;
|
|
226
|
+
|
|
227
|
+
if (!hmsInstance) {
|
|
228
|
+
return Promise.reject('HMSSDK Instance is not available!');
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
try {
|
|
232
|
+
const result = await hmsInstance.setPlaybackForAllAudio(mute);
|
|
233
|
+
console.log('Set Room Mute Locally Success: ', result);
|
|
234
|
+
|
|
235
|
+
dispatch(setRoomLocallyMuted(mute));
|
|
236
|
+
} catch (error) {
|
|
237
|
+
console.log('Set Room Mute Locally Error: ', error);
|
|
238
|
+
return Promise.reject(error);
|
|
239
|
+
}
|
|
240
|
+
},
|
|
241
|
+
[]
|
|
242
|
+
);
|
|
243
|
+
|
|
221
244
|
return {
|
|
222
245
|
setLocalAudioEnabled,
|
|
223
246
|
setLocalVideoEnabled,
|
|
@@ -228,5 +251,6 @@ export const useHMSActions = () => {
|
|
|
228
251
|
raiseLocalPeerHand,
|
|
229
252
|
lowerLocalPeerHand,
|
|
230
253
|
lowerRemotePeerHand,
|
|
254
|
+
setRoomMuteLocally,
|
|
231
255
|
};
|
|
232
256
|
};
|