@100mslive/react-native-room-kit 0.0.3 → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +413 -11
- package/lib/commonjs/HMSInstanceSetup.js +3 -15
- package/lib/commonjs/HMSInstanceSetup.js.map +1 -1
- package/lib/commonjs/HMSPrebuilt.js +17 -6
- package/lib/commonjs/HMSPrebuilt.js.map +1 -1
- package/lib/commonjs/HMSRoomSetup.js +76 -21
- package/lib/commonjs/HMSRoomSetup.js.map +1 -1
- package/lib/commonjs/Icons/AlertTriangle/assets/alert-triangle.png +0 -0
- package/lib/commonjs/Icons/AlertTriangle/assets/alert-triangle@2x.png +0 -0
- package/lib/commonjs/Icons/AlertTriangle/assets/alert-triangle@3x.png +0 -0
- package/lib/commonjs/Icons/AlertTriangle/index.js +34 -0
- package/lib/commonjs/Icons/AlertTriangle/index.js.map +1 -0
- package/lib/commonjs/Icons/AnswerPhone/index.js +5 -1
- package/lib/commonjs/Icons/AnswerPhone/index.js.map +1 -1
- package/lib/commonjs/Icons/BRB/assets/BRB.png +0 -0
- package/lib/commonjs/Icons/BRB/assets/BRB@2x.png +0 -0
- package/lib/commonjs/Icons/BRB/assets/BRB@3x.png +0 -0
- package/lib/commonjs/Icons/BRB/index.js +35 -0
- package/lib/commonjs/Icons/BRB/index.js.map +1 -0
- package/lib/commonjs/Icons/Bluetooth/index.js +5 -1
- package/lib/commonjs/Icons/Bluetooth/index.js.map +1 -1
- package/lib/commonjs/Icons/Camera/index.js +5 -1
- package/lib/commonjs/Icons/Camera/index.js.map +1 -1
- package/lib/commonjs/Icons/Chat/index.js +5 -1
- package/lib/commonjs/Icons/Chat/index.js.map +1 -1
- package/lib/commonjs/Icons/Check/assets/check.png +0 -0
- package/lib/commonjs/Icons/Check/assets/check@2x.png +0 -0
- package/lib/commonjs/Icons/Check/assets/check@3x.png +0 -0
- package/lib/commonjs/Icons/Check/index.js +34 -0
- package/lib/commonjs/Icons/Check/index.js.map +1 -0
- package/lib/commonjs/Icons/Chevron/index.js +5 -1
- package/lib/commonjs/Icons/Chevron/index.js.map +1 -1
- package/lib/commonjs/Icons/Close/index.js +5 -1
- package/lib/commonjs/Icons/Close/index.js.map +1 -1
- package/lib/commonjs/Icons/Hamburger/assets/hamburger.png +0 -0
- package/lib/commonjs/Icons/Hamburger/assets/hamburger@2x.png +0 -0
- package/lib/commonjs/Icons/Hamburger/assets/hamburger@3x.png +0 -0
- package/lib/commonjs/Icons/Hamburger/index.js +34 -0
- package/lib/commonjs/Icons/Hamburger/index.js.map +1 -0
- package/lib/commonjs/Icons/Hand/index.js +6 -4
- package/lib/commonjs/Icons/Hand/index.js.map +1 -1
- package/lib/commonjs/Icons/Headphones/index.js +5 -1
- package/lib/commonjs/Icons/Headphones/index.js.map +1 -1
- package/lib/commonjs/Icons/Maximize/assets/maximize.png +0 -0
- package/lib/commonjs/Icons/Maximize/assets/maximize@2x.png +0 -0
- package/lib/commonjs/Icons/Maximize/assets/maximize@3x.png +0 -0
- package/lib/commonjs/Icons/Maximize/index.js +34 -0
- package/lib/commonjs/Icons/Maximize/index.js.map +1 -0
- package/lib/commonjs/Icons/Mic/index.js +5 -1
- package/lib/commonjs/Icons/Mic/index.js.map +1 -1
- package/lib/commonjs/Icons/Minimize/assets/minimize.png +0 -0
- package/lib/commonjs/Icons/Minimize/assets/minimize@2x.png +0 -0
- package/lib/commonjs/Icons/Minimize/assets/minimize@3x.png +0 -0
- package/lib/commonjs/Icons/Minimize/index.js +34 -0
- package/lib/commonjs/Icons/Minimize/index.js.map +1 -0
- package/lib/commonjs/Icons/Participants/index.js +5 -1
- package/lib/commonjs/Icons/Participants/index.js.map +1 -1
- package/lib/commonjs/Icons/Pencil/assets/pencil.png +0 -0
- package/lib/commonjs/Icons/Pencil/assets/pencil@2x.png +0 -0
- package/lib/commonjs/Icons/Pencil/assets/pencil@3x.png +0 -0
- package/lib/commonjs/Icons/Pencil/index.js +34 -0
- package/lib/commonjs/Icons/Pencil/index.js.map +1 -0
- package/lib/commonjs/Icons/Pin/assets/pin.png +0 -0
- package/lib/commonjs/Icons/Pin/assets/pin@2x.png +0 -0
- package/lib/commonjs/Icons/Pin/assets/pin@3x.png +0 -0
- package/lib/commonjs/Icons/Pin/index.js +34 -0
- package/lib/commonjs/Icons/Pin/index.js.map +1 -0
- package/lib/commonjs/Icons/Radio/assets/radio.png +0 -0
- package/lib/commonjs/Icons/Radio/assets/radio@2x.png +0 -0
- package/lib/commonjs/Icons/Radio/assets/radio@3x.png +0 -0
- package/lib/commonjs/Icons/Radio/index.js +30 -0
- package/lib/commonjs/Icons/Radio/index.js.map +1 -0
- package/lib/commonjs/Icons/Recording/assets/recording.png +0 -0
- package/lib/commonjs/Icons/Recording/assets/recording@2x.png +0 -0
- package/lib/commonjs/Icons/Recording/assets/recording@3x.png +0 -0
- package/lib/commonjs/Icons/Recording/index.js +34 -0
- package/lib/commonjs/Icons/Recording/index.js.map +1 -0
- package/lib/commonjs/Icons/RotateCamera/index.js +5 -1
- package/lib/commonjs/Icons/RotateCamera/index.js.map +1 -1
- package/lib/commonjs/Icons/ScreenShare/index.js +5 -1
- package/lib/commonjs/Icons/ScreenShare/index.js.map +1 -1
- package/lib/commonjs/Icons/Speaker/index.js +5 -1
- package/lib/commonjs/Icons/Speaker/index.js.map +1 -1
- package/lib/commonjs/Icons/Star/assets/star.png +0 -0
- package/lib/commonjs/Icons/Star/assets/star@2x.png +0 -0
- package/lib/commonjs/Icons/Star/assets/star@3x.png +0 -0
- package/lib/commonjs/Icons/Star/index.js +34 -0
- package/lib/commonjs/Icons/Star/index.js.map +1 -0
- package/lib/commonjs/Icons/Stop/assets/stop.png +0 -0
- package/lib/commonjs/Icons/Stop/assets/stop@2x.png +0 -0
- package/lib/commonjs/Icons/Stop/assets/stop@3x.png +0 -0
- package/lib/commonjs/Icons/Stop/index.js +34 -0
- package/lib/commonjs/Icons/Stop/index.js.map +1 -0
- package/lib/commonjs/Icons/ThreeDots/index.js +5 -1
- package/lib/commonjs/Icons/ThreeDots/index.js.map +1 -1
- package/lib/commonjs/Icons/Wave/index.js +5 -1
- package/lib/commonjs/Icons/Wave/index.js.map +1 -1
- package/lib/commonjs/Icons/index.js +132 -0
- package/lib/commonjs/Icons/index.js.map +1 -1
- package/lib/commonjs/components/AvatarView.js +1 -2
- package/lib/commonjs/components/AvatarView.js.map +1 -1
- package/lib/commonjs/components/BackButton.js +8 -6
- package/lib/commonjs/components/BackButton.js.map +1 -1
- package/lib/commonjs/components/BottomSheet.js +157 -0
- package/lib/commonjs/components/BottomSheet.js.map +1 -0
- package/lib/commonjs/components/ChangeNameModalContent.js +131 -0
- package/lib/commonjs/components/ChangeNameModalContent.js.map +1 -0
- package/lib/commonjs/components/CompanyLogo.js +38 -0
- package/lib/commonjs/components/CompanyLogo.js.map +1 -0
- package/lib/commonjs/components/CustomInput.js +2 -3
- package/lib/commonjs/components/CustomInput.js.map +1 -1
- package/lib/commonjs/components/DisplayView.js +12 -58
- package/lib/commonjs/components/DisplayView.js.map +1 -1
- package/lib/commonjs/components/EndRoomModalContent.js +85 -0
- package/lib/commonjs/components/EndRoomModalContent.js.map +1 -0
- package/lib/commonjs/components/Footer.js +8 -9
- package/lib/commonjs/components/Footer.js.map +1 -1
- package/lib/commonjs/components/GridView.js +53 -7
- package/lib/commonjs/components/GridView.js.map +1 -1
- package/lib/commonjs/components/HMSBaseButton.js +66 -0
- package/lib/commonjs/components/HMSBaseButton.js.map +1 -0
- package/lib/commonjs/components/HMSDangerButton.js +53 -0
- package/lib/commonjs/components/HMSDangerButton.js.map +1 -0
- package/lib/commonjs/components/HMSHLSStreamLoading.js +65 -0
- package/lib/commonjs/components/HMSHLSStreamLoading.js.map +1 -0
- package/lib/commonjs/components/HMSLocalVideoView.js +41 -0
- package/lib/commonjs/components/HMSLocalVideoView.js.map +1 -0
- package/lib/commonjs/components/{HMSSpeakerSettings.js → HMSManageAudioOutput.js} +70 -76
- package/lib/commonjs/components/HMSManageAudioOutput.js.map +1 -0
- package/lib/commonjs/components/HMSManageCameraRotation.js +5 -4
- package/lib/commonjs/components/HMSManageCameraRotation.js.map +1 -1
- package/lib/commonjs/components/HMSManageLeave.js +91 -159
- package/lib/commonjs/components/HMSManageLeave.js.map +1 -1
- package/lib/commonjs/components/HMSManageLocalAudio.js +1 -9
- package/lib/commonjs/components/HMSManageLocalAudio.js.map +1 -1
- package/lib/commonjs/components/HMSManageLocalVideo.js +1 -9
- package/lib/commonjs/components/HMSManageLocalVideo.js.map +1 -1
- package/lib/commonjs/components/HMSMeetingEnded.js +35 -0
- package/lib/commonjs/components/HMSMeetingEnded.js.map +1 -0
- package/lib/commonjs/components/HMSPreviewEditName.js +7 -38
- package/lib/commonjs/components/HMSPreviewEditName.js.map +1 -1
- package/lib/commonjs/components/HMSPreviewHLSLiveIndicator.js +71 -0
- package/lib/commonjs/components/HMSPreviewHLSLiveIndicator.js.map +1 -0
- package/lib/commonjs/components/HMSPreviewJoinButton.js +26 -37
- package/lib/commonjs/components/HMSPreviewJoinButton.js.map +1 -1
- package/lib/commonjs/components/HMSPreviewNetworkQuality.js +45 -0
- package/lib/commonjs/components/HMSPreviewNetworkQuality.js.map +1 -0
- package/lib/commonjs/components/HMSPreviewPeersList.js +21 -33
- package/lib/commonjs/components/HMSPreviewPeersList.js.map +1 -1
- package/lib/commonjs/components/HMSPreviewSubtitle.js +43 -7
- package/lib/commonjs/components/HMSPreviewSubtitle.js.map +1 -1
- package/lib/commonjs/components/HMSPreviewTile.js +18 -26
- package/lib/commonjs/components/HMSPreviewTile.js.map +1 -1
- package/lib/commonjs/components/HMSPreviewTitle.js +14 -6
- package/lib/commonjs/components/HMSPreviewTitle.js.map +1 -1
- package/lib/commonjs/components/HMSPrimaryButton.js +53 -0
- package/lib/commonjs/components/HMSPrimaryButton.js.map +1 -0
- package/lib/commonjs/components/HMSRecordingIndicator.js +46 -0
- package/lib/commonjs/components/HMSRecordingIndicator.js.map +1 -0
- package/lib/commonjs/components/HMSRoomOptions.js +22 -10
- package/lib/commonjs/components/HMSRoomOptions.js.map +1 -1
- package/lib/commonjs/components/HMSShowNetworkQuality.js +5 -6
- package/lib/commonjs/components/HMSShowNetworkQuality.js.map +1 -1
- package/lib/commonjs/components/HMSTextInput.js +66 -0
- package/lib/commonjs/components/HMSTextInput.js.map +1 -0
- package/lib/commonjs/components/Header.js +30 -30
- package/lib/commonjs/components/Header.js.map +1 -1
- package/lib/commonjs/components/LocalPeerRegularVideoView.js +26 -0
- package/lib/commonjs/components/LocalPeerRegularVideoView.js.map +1 -0
- package/lib/commonjs/components/LocalPeerScreenshareView.js +76 -0
- package/lib/commonjs/components/LocalPeerScreenshareView.js.map +1 -0
- package/lib/commonjs/components/Meeting.js +14 -3
- package/lib/commonjs/components/Meeting.js.map +1 -1
- package/lib/commonjs/components/MenuModal/Menu.js +1 -2
- package/lib/commonjs/components/MenuModal/Menu.js.map +1 -1
- package/lib/commonjs/components/MiniView.js +163 -0
- package/lib/commonjs/components/MiniView.js.map +1 -0
- package/lib/commonjs/components/Modals.js +35 -380
- package/lib/commonjs/components/Modals.js.map +1 -1
- package/lib/commonjs/components/PaginationDots.js +56 -0
- package/lib/commonjs/components/PaginationDots.js.map +1 -0
- package/lib/commonjs/components/Participants/ParticipantsList.js +1 -20
- package/lib/commonjs/components/Participants/ParticipantsList.js.map +1 -1
- package/lib/commonjs/components/ParticipantsCount.js +55 -0
- package/lib/commonjs/components/ParticipantsCount.js.map +1 -0
- package/lib/commonjs/components/PeerMinimizedView.js +114 -0
- package/lib/commonjs/components/PeerMinimizedView.js.map +1 -0
- package/lib/commonjs/components/PeerSettingsModalContent.js +69 -63
- package/lib/commonjs/components/PeerSettingsModalContent.js.map +1 -1
- package/lib/commonjs/components/PeerVideoTile/AvatarView.js +76 -0
- package/lib/commonjs/components/PeerVideoTile/AvatarView.js.map +1 -0
- package/lib/commonjs/components/PeerVideoTile/PeerAudioMutedIndicator.js +44 -0
- package/lib/commonjs/components/PeerVideoTile/PeerAudioMutedIndicator.js.map +1 -0
- package/lib/commonjs/components/PeerVideoTile/PeerMetadata.js +44 -0
- package/lib/commonjs/components/PeerVideoTile/PeerMetadata.js.map +1 -0
- package/lib/commonjs/components/PeerVideoTile/PeerNameAndNetwork.js +74 -0
- package/lib/commonjs/components/PeerVideoTile/PeerNameAndNetwork.js.map +1 -0
- package/lib/commonjs/components/PeerVideoTile/PeerVideoTileView.js +146 -0
- package/lib/commonjs/components/PeerVideoTile/PeerVideoTileView.js.map +1 -0
- package/lib/commonjs/components/PeerVideoTile/VideoView.js +84 -0
- package/lib/commonjs/components/PeerVideoTile/VideoView.js.map +1 -0
- package/lib/commonjs/components/PeerVideoTile/index.js +2 -0
- package/lib/commonjs/components/PeerVideoTile/index.js.map +1 -0
- package/lib/commonjs/components/PressableIcon.js +15 -8
- package/lib/commonjs/components/PressableIcon.js.map +1 -1
- package/lib/commonjs/components/Preview.js +93 -72
- package/lib/commonjs/components/Preview.js.map +1 -1
- package/lib/commonjs/components/RoomSettingsModalContent.js +228 -457
- package/lib/commonjs/components/RoomSettingsModalContent.js.map +1 -1
- package/lib/commonjs/components/RoomSettingsModalDebugModeContent.js +295 -0
- package/lib/commonjs/components/RoomSettingsModalDebugModeContent.js.map +1 -0
- package/lib/commonjs/components/StopRecordingModalContent.js +97 -0
- package/lib/commonjs/components/StopRecordingModalContent.js.map +1 -0
- package/lib/commonjs/components/Tile.js +29 -90
- package/lib/commonjs/components/Tile.js.map +1 -1
- package/lib/commonjs/components/TilesContainer.js +99 -10
- package/lib/commonjs/components/TilesContainer.js.map +1 -1
- package/lib/commonjs/components/UnmountAfterDelay.js +48 -0
- package/lib/commonjs/components/UnmountAfterDelay.js.map +1 -0
- package/lib/commonjs/components/WebrtcView.js +51 -0
- package/lib/commonjs/components/WebrtcView.js.map +1 -0
- package/lib/commonjs/components/WelcomeInMeeting.js +54 -0
- package/lib/commonjs/components/WelcomeInMeeting.js.map +1 -0
- package/lib/commonjs/components/index.js +0 -11
- package/lib/commonjs/components/index.js.map +1 -1
- package/lib/commonjs/hooks/useHmsInstance.js +0 -1
- package/lib/commonjs/hooks/useHmsInstance.js.map +1 -1
- package/lib/commonjs/hooks-sdk-selectors.js +6 -1
- package/lib/commonjs/hooks-sdk-selectors.js.map +1 -1
- package/lib/commonjs/hooks-sdk.js +16 -1
- package/lib/commonjs/hooks-sdk.js.map +1 -1
- package/lib/commonjs/hooks-util-selectors.js +14 -1
- package/lib/commonjs/hooks-util-selectors.js.map +1 -1
- package/lib/commonjs/hooks-util.js +421 -98
- package/lib/commonjs/hooks-util.js.map +1 -1
- package/lib/commonjs/modules/HMSManager.js +23 -0
- package/lib/commonjs/modules/HMSManager.js.map +1 -0
- package/lib/commonjs/modules/parser.js +22 -0
- package/lib/commonjs/modules/parser.js.map +1 -0
- package/lib/commonjs/peerTrackNodeUtils.js +8 -3
- package/lib/commonjs/peerTrackNodeUtils.js.map +1 -1
- package/lib/commonjs/redux/actionTypes.js +20 -1
- package/lib/commonjs/redux/actionTypes.js.map +1 -1
- package/lib/commonjs/redux/actions/index.js +65 -1
- package/lib/commonjs/redux/actions/index.js.map +1 -1
- package/lib/commonjs/redux/reducers/appState.js +70 -1
- package/lib/commonjs/redux/reducers/appState.js.map +1 -1
- package/lib/commonjs/redux/reducers/hmsStates.js +7 -1
- package/lib/commonjs/redux/reducers/hmsStates.js.map +1 -1
- package/lib/commonjs/redux/reducers/userState.js +3 -1
- package/lib/commonjs/redux/reducers/userState.js.map +1 -1
- package/lib/commonjs/utils/functions.js +51 -1
- package/lib/commonjs/utils/functions.js.map +1 -1
- package/lib/commonjs/utils/theme.js +63 -8
- package/lib/commonjs/utils/theme.js.map +1 -1
- package/lib/commonjs/utils/types.js +8 -2
- package/lib/commonjs/utils/types.js.map +1 -1
- package/lib/commonjs/utils.js +2 -2
- package/lib/commonjs/utils.js.map +1 -1
- package/lib/module/HMSInstanceSetup.js +3 -15
- package/lib/module/HMSInstanceSetup.js.map +1 -1
- package/lib/module/HMSPrebuilt.js +17 -5
- package/lib/module/HMSPrebuilt.js.map +1 -1
- package/lib/module/HMSRoomSetup.js +81 -26
- package/lib/module/HMSRoomSetup.js.map +1 -1
- package/lib/module/Icons/AlertTriangle/assets/alert-triangle.png +0 -0
- package/lib/module/Icons/AlertTriangle/assets/alert-triangle@2x.png +0 -0
- package/lib/module/Icons/AlertTriangle/assets/alert-triangle@3x.png +0 -0
- package/lib/module/Icons/AlertTriangle/index.js +26 -0
- package/lib/module/Icons/AlertTriangle/index.js.map +1 -0
- package/lib/module/Icons/AnswerPhone/index.js +5 -1
- package/lib/module/Icons/AnswerPhone/index.js.map +1 -1
- package/lib/module/Icons/BRB/assets/BRB.png +0 -0
- package/lib/module/Icons/BRB/assets/BRB@2x.png +0 -0
- package/lib/module/Icons/BRB/assets/BRB@3x.png +0 -0
- package/lib/module/Icons/BRB/index.js +27 -0
- package/lib/module/Icons/BRB/index.js.map +1 -0
- package/lib/module/Icons/Bluetooth/index.js +5 -1
- package/lib/module/Icons/Bluetooth/index.js.map +1 -1
- package/lib/module/Icons/Camera/index.js +5 -1
- package/lib/module/Icons/Camera/index.js.map +1 -1
- package/lib/module/Icons/Chat/index.js +5 -1
- package/lib/module/Icons/Chat/index.js.map +1 -1
- package/lib/module/Icons/Check/assets/check.png +0 -0
- package/lib/module/Icons/Check/assets/check@2x.png +0 -0
- package/lib/module/Icons/Check/assets/check@3x.png +0 -0
- package/lib/module/Icons/Check/index.js +26 -0
- package/lib/module/Icons/Check/index.js.map +1 -0
- package/lib/module/Icons/Chevron/index.js +5 -1
- package/lib/module/Icons/Chevron/index.js.map +1 -1
- package/lib/module/Icons/Close/index.js +5 -1
- package/lib/module/Icons/Close/index.js.map +1 -1
- package/lib/module/Icons/Hamburger/assets/hamburger.png +0 -0
- package/lib/module/Icons/Hamburger/assets/hamburger@2x.png +0 -0
- package/lib/module/Icons/Hamburger/assets/hamburger@3x.png +0 -0
- package/lib/module/Icons/Hamburger/index.js +26 -0
- package/lib/module/Icons/Hamburger/index.js.map +1 -0
- package/lib/module/Icons/Hand/index.js +6 -4
- package/lib/module/Icons/Hand/index.js.map +1 -1
- package/lib/module/Icons/Headphones/index.js +5 -1
- package/lib/module/Icons/Headphones/index.js.map +1 -1
- package/lib/module/Icons/Maximize/assets/maximize.png +0 -0
- package/lib/module/Icons/Maximize/assets/maximize@2x.png +0 -0
- package/lib/module/Icons/Maximize/assets/maximize@3x.png +0 -0
- package/lib/module/Icons/Maximize/index.js +26 -0
- package/lib/module/Icons/Maximize/index.js.map +1 -0
- package/lib/module/Icons/Mic/index.js +5 -1
- package/lib/module/Icons/Mic/index.js.map +1 -1
- package/lib/module/Icons/Minimize/assets/minimize.png +0 -0
- package/lib/module/Icons/Minimize/assets/minimize@2x.png +0 -0
- package/lib/module/Icons/Minimize/assets/minimize@3x.png +0 -0
- package/lib/module/Icons/Minimize/index.js +26 -0
- package/lib/module/Icons/Minimize/index.js.map +1 -0
- package/lib/module/Icons/Participants/index.js +5 -1
- package/lib/module/Icons/Participants/index.js.map +1 -1
- package/lib/module/Icons/Pencil/assets/pencil.png +0 -0
- package/lib/module/Icons/Pencil/assets/pencil@2x.png +0 -0
- package/lib/module/Icons/Pencil/assets/pencil@3x.png +0 -0
- package/lib/module/Icons/Pencil/index.js +26 -0
- package/lib/module/Icons/Pencil/index.js.map +1 -0
- package/lib/module/Icons/Pin/assets/pin.png +0 -0
- package/lib/module/Icons/Pin/assets/pin@2x.png +0 -0
- package/lib/module/Icons/Pin/assets/pin@3x.png +0 -0
- package/lib/module/Icons/Pin/index.js +26 -0
- package/lib/module/Icons/Pin/index.js.map +1 -0
- package/lib/module/Icons/Radio/assets/radio.png +0 -0
- package/lib/module/Icons/Radio/assets/radio@2x.png +0 -0
- package/lib/module/Icons/Radio/assets/radio@3x.png +0 -0
- package/lib/module/Icons/Radio/index.js +22 -0
- package/lib/module/Icons/Radio/index.js.map +1 -0
- package/lib/module/Icons/Recording/assets/recording.png +0 -0
- package/lib/module/Icons/Recording/assets/recording@2x.png +0 -0
- package/lib/module/Icons/Recording/assets/recording@3x.png +0 -0
- package/lib/module/Icons/Recording/index.js +26 -0
- package/lib/module/Icons/Recording/index.js.map +1 -0
- package/lib/module/Icons/RotateCamera/index.js +5 -1
- package/lib/module/Icons/RotateCamera/index.js.map +1 -1
- package/lib/module/Icons/ScreenShare/index.js +5 -1
- package/lib/module/Icons/ScreenShare/index.js.map +1 -1
- package/lib/module/Icons/Speaker/index.js +5 -1
- package/lib/module/Icons/Speaker/index.js.map +1 -1
- package/lib/module/Icons/Star/assets/star.png +0 -0
- package/lib/module/Icons/Star/assets/star@2x.png +0 -0
- package/lib/module/Icons/Star/assets/star@3x.png +0 -0
- package/lib/module/Icons/Star/index.js +26 -0
- package/lib/module/Icons/Star/index.js.map +1 -0
- package/lib/module/Icons/Stop/assets/stop.png +0 -0
- package/lib/module/Icons/Stop/assets/stop@2x.png +0 -0
- package/lib/module/Icons/Stop/assets/stop@3x.png +0 -0
- package/lib/module/Icons/Stop/index.js +26 -0
- package/lib/module/Icons/Stop/index.js.map +1 -0
- package/lib/module/Icons/ThreeDots/index.js +5 -1
- package/lib/module/Icons/ThreeDots/index.js.map +1 -1
- package/lib/module/Icons/Wave/index.js +5 -1
- package/lib/module/Icons/Wave/index.js.map +1 -1
- package/lib/module/Icons/index.js +12 -0
- package/lib/module/Icons/index.js.map +1 -1
- package/lib/module/components/AvatarView.js +1 -2
- package/lib/module/components/AvatarView.js.map +1 -1
- package/lib/module/components/BackButton.js +9 -7
- package/lib/module/components/BackButton.js.map +1 -1
- package/lib/module/components/BottomSheet.js +146 -0
- package/lib/module/components/BottomSheet.js.map +1 -0
- package/lib/module/components/ChangeNameModalContent.js +122 -0
- package/lib/module/components/ChangeNameModalContent.js.map +1 -0
- package/lib/module/components/CompanyLogo.js +30 -0
- package/lib/module/components/CompanyLogo.js.map +1 -0
- package/lib/module/components/CustomInput.js +2 -3
- package/lib/module/components/CustomInput.js.map +1 -1
- package/lib/module/components/DisplayView.js +16 -61
- package/lib/module/components/DisplayView.js.map +1 -1
- package/lib/module/components/EndRoomModalContent.js +76 -0
- package/lib/module/components/EndRoomModalContent.js.map +1 -0
- package/lib/module/components/Footer.js +9 -10
- package/lib/module/components/Footer.js.map +1 -1
- package/lib/module/components/GridView.js +55 -10
- package/lib/module/components/GridView.js.map +1 -1
- package/lib/module/components/HMSBaseButton.js +57 -0
- package/lib/module/components/HMSBaseButton.js.map +1 -0
- package/lib/module/components/HMSDangerButton.js +44 -0
- package/lib/module/components/HMSDangerButton.js.map +1 -0
- package/lib/module/components/HMSHLSStreamLoading.js +56 -0
- package/lib/module/components/HMSHLSStreamLoading.js.map +1 -0
- package/lib/module/components/HMSLocalVideoView.js +32 -0
- package/lib/module/components/HMSLocalVideoView.js.map +1 -0
- package/lib/module/components/{HMSSpeakerSettings.js → HMSManageAudioOutput.js} +70 -77
- package/lib/module/components/HMSManageAudioOutput.js.map +1 -0
- package/lib/module/components/HMSManageCameraRotation.js +5 -4
- package/lib/module/components/HMSManageCameraRotation.js.map +1 -1
- package/lib/module/components/HMSManageLeave.js +95 -161
- package/lib/module/components/HMSManageLeave.js.map +1 -1
- package/lib/module/components/HMSManageLocalAudio.js +1 -9
- package/lib/module/components/HMSManageLocalAudio.js.map +1 -1
- package/lib/module/components/HMSManageLocalVideo.js +1 -9
- package/lib/module/components/HMSManageLocalVideo.js.map +1 -1
- package/lib/module/components/HMSMeetingEnded.js +26 -0
- package/lib/module/components/HMSMeetingEnded.js.map +1 -0
- package/lib/module/components/HMSPreviewEditName.js +7 -38
- package/lib/module/components/HMSPreviewEditName.js.map +1 -1
- package/lib/module/components/HMSPreviewHLSLiveIndicator.js +62 -0
- package/lib/module/components/HMSPreviewHLSLiveIndicator.js.map +1 -0
- package/lib/module/components/HMSPreviewJoinButton.js +28 -39
- package/lib/module/components/HMSPreviewJoinButton.js.map +1 -1
- package/lib/module/components/HMSPreviewNetworkQuality.js +36 -0
- package/lib/module/components/HMSPreviewNetworkQuality.js.map +1 -0
- package/lib/module/components/HMSPreviewPeersList.js +21 -33
- package/lib/module/components/HMSPreviewPeersList.js.map +1 -1
- package/lib/module/components/HMSPreviewSubtitle.js +43 -7
- package/lib/module/components/HMSPreviewSubtitle.js.map +1 -1
- package/lib/module/components/HMSPreviewTile.js +18 -26
- package/lib/module/components/HMSPreviewTile.js.map +1 -1
- package/lib/module/components/HMSPreviewTitle.js +14 -6
- package/lib/module/components/HMSPreviewTitle.js.map +1 -1
- package/lib/module/components/HMSPrimaryButton.js +44 -0
- package/lib/module/components/HMSPrimaryButton.js.map +1 -0
- package/lib/module/components/HMSRecordingIndicator.js +37 -0
- package/lib/module/components/HMSRecordingIndicator.js.map +1 -0
- package/lib/module/components/HMSRoomOptions.js +23 -11
- package/lib/module/components/HMSRoomOptions.js.map +1 -1
- package/lib/module/components/HMSShowNetworkQuality.js +6 -7
- package/lib/module/components/HMSShowNetworkQuality.js.map +1 -1
- package/lib/module/components/HMSTextInput.js +57 -0
- package/lib/module/components/HMSTextInput.js.map +1 -0
- package/lib/module/components/Header.js +32 -32
- package/lib/module/components/Header.js.map +1 -1
- package/lib/module/components/LocalPeerRegularVideoView.js +17 -0
- package/lib/module/components/LocalPeerRegularVideoView.js.map +1 -0
- package/lib/module/components/LocalPeerScreenshareView.js +66 -0
- package/lib/module/components/LocalPeerScreenshareView.js.map +1 -0
- package/lib/module/components/Meeting.js +15 -4
- package/lib/module/components/Meeting.js.map +1 -1
- package/lib/module/components/MenuModal/Menu.js +1 -2
- package/lib/module/components/MenuModal/Menu.js.map +1 -1
- package/lib/module/components/MiniView.js +154 -0
- package/lib/module/components/MiniView.js.map +1 -0
- package/lib/module/components/Modals.js +37 -378
- package/lib/module/components/Modals.js.map +1 -1
- package/lib/module/components/PaginationDots.js +47 -0
- package/lib/module/components/PaginationDots.js.map +1 -0
- package/lib/module/components/Participants/ParticipantsList.js +1 -20
- package/lib/module/components/Participants/ParticipantsList.js.map +1 -1
- package/lib/module/components/ParticipantsCount.js +46 -0
- package/lib/module/components/ParticipantsCount.js.map +1 -0
- package/lib/module/components/PeerMinimizedView.js +104 -0
- package/lib/module/components/PeerMinimizedView.js.map +1 -0
- package/lib/module/components/PeerSettingsModalContent.js +72 -66
- package/lib/module/components/PeerSettingsModalContent.js.map +1 -1
- package/lib/module/components/PeerVideoTile/AvatarView.js +66 -0
- package/lib/module/components/PeerVideoTile/AvatarView.js.map +1 -0
- package/lib/module/components/PeerVideoTile/PeerAudioMutedIndicator.js +35 -0
- package/lib/module/components/PeerVideoTile/PeerAudioMutedIndicator.js.map +1 -0
- package/lib/module/components/PeerVideoTile/PeerMetadata.js +35 -0
- package/lib/module/components/PeerVideoTile/PeerMetadata.js.map +1 -0
- package/lib/module/components/PeerVideoTile/PeerNameAndNetwork.js +65 -0
- package/lib/module/components/PeerVideoTile/PeerNameAndNetwork.js.map +1 -0
- package/lib/module/components/PeerVideoTile/PeerVideoTileView.js +136 -0
- package/lib/module/components/PeerVideoTile/PeerVideoTileView.js.map +1 -0
- package/lib/module/components/PeerVideoTile/VideoView.js +75 -0
- package/lib/module/components/PeerVideoTile/VideoView.js.map +1 -0
- package/lib/module/components/PeerVideoTile/index.js +2 -0
- package/lib/module/components/PeerVideoTile/index.js.map +1 -0
- package/lib/module/components/PressableIcon.js +15 -8
- package/lib/module/components/PressableIcon.js.map +1 -1
- package/lib/module/components/Preview.js +93 -72
- package/lib/module/components/Preview.js.map +1 -1
- package/lib/module/components/RoomSettingsModalContent.js +231 -459
- package/lib/module/components/RoomSettingsModalContent.js.map +1 -1
- package/lib/module/components/RoomSettingsModalDebugModeContent.js +287 -0
- package/lib/module/components/RoomSettingsModalDebugModeContent.js.map +1 -0
- package/lib/module/components/StopRecordingModalContent.js +88 -0
- package/lib/module/components/StopRecordingModalContent.js.map +1 -0
- package/lib/module/components/Tile.js +30 -91
- package/lib/module/components/Tile.js.map +1 -1
- package/lib/module/components/TilesContainer.js +100 -10
- package/lib/module/components/TilesContainer.js.map +1 -1
- package/lib/module/components/UnmountAfterDelay.js +39 -0
- package/lib/module/components/UnmountAfterDelay.js.map +1 -0
- package/lib/module/components/WebrtcView.js +41 -0
- package/lib/module/components/WebrtcView.js.map +1 -0
- package/lib/module/components/WelcomeInMeeting.js +45 -0
- package/lib/module/components/WelcomeInMeeting.js.map +1 -0
- package/lib/module/components/index.js +0 -1
- package/lib/module/components/index.js.map +1 -1
- package/lib/module/hooks/useHmsInstance.js +0 -1
- package/lib/module/hooks/useHmsInstance.js.map +1 -1
- package/lib/module/hooks-sdk-selectors.js +4 -0
- package/lib/module/hooks-sdk-selectors.js.map +1 -1
- package/lib/module/hooks-sdk.js +16 -1
- package/lib/module/hooks-sdk.js.map +1 -1
- package/lib/module/hooks-util-selectors.js +12 -0
- package/lib/module/hooks-util-selectors.js.map +1 -1
- package/lib/module/hooks-util.js +417 -104
- package/lib/module/hooks-util.js.map +1 -1
- package/lib/module/modules/HMSManager.js +17 -0
- package/lib/module/modules/HMSManager.js.map +1 -0
- package/lib/module/modules/parser.js +16 -0
- package/lib/module/modules/parser.js.map +1 -0
- package/lib/module/peerTrackNodeUtils.js +6 -2
- package/lib/module/peerTrackNodeUtils.js.map +1 -1
- package/lib/module/redux/actionTypes.js +20 -1
- package/lib/module/redux/actionTypes.js.map +1 -1
- package/lib/module/redux/actions/index.js +54 -0
- package/lib/module/redux/actions/index.js.map +1 -1
- package/lib/module/redux/reducers/appState.js +70 -1
- package/lib/module/redux/reducers/appState.js.map +1 -1
- package/lib/module/redux/reducers/hmsStates.js +7 -1
- package/lib/module/redux/reducers/hmsStates.js.map +1 -1
- package/lib/module/redux/reducers/userState.js +3 -1
- package/lib/module/redux/reducers/userState.js.map +1 -1
- package/lib/module/utils/functions.js +47 -0
- package/lib/module/utils/functions.js.map +1 -1
- package/lib/module/utils/theme.js +58 -5
- package/lib/module/utils/theme.js.map +1 -1
- package/lib/module/utils/types.js +6 -1
- package/lib/module/utils/types.js.map +1 -1
- package/lib/module/utils.js +2 -2
- package/lib/module/utils.js.map +1 -1
- package/lib/typescript/HMSInstanceSetup.d.ts.map +1 -1
- package/lib/typescript/HMSPrebuilt.d.ts +3 -3
- package/lib/typescript/HMSPrebuilt.d.ts.map +1 -1
- package/lib/typescript/HMSRoomSetup.d.ts.map +1 -1
- package/lib/typescript/Icons/AlertTriangle/index.d.ts +7 -0
- package/lib/typescript/Icons/AlertTriangle/index.d.ts.map +1 -0
- package/lib/typescript/Icons/AnswerPhone/index.d.ts.map +1 -1
- package/lib/typescript/Icons/BRB/index.d.ts +7 -0
- package/lib/typescript/Icons/BRB/index.d.ts.map +1 -0
- package/lib/typescript/Icons/Bluetooth/index.d.ts.map +1 -1
- package/lib/typescript/Icons/Camera/index.d.ts.map +1 -1
- package/lib/typescript/Icons/Chat/index.d.ts.map +1 -1
- package/lib/typescript/Icons/Check/index.d.ts +7 -0
- package/lib/typescript/Icons/Check/index.d.ts.map +1 -0
- package/lib/typescript/Icons/Chevron/index.d.ts.map +1 -1
- package/lib/typescript/Icons/Close/index.d.ts.map +1 -1
- package/lib/typescript/Icons/Hamburger/index.d.ts +7 -0
- package/lib/typescript/Icons/Hamburger/index.d.ts.map +1 -0
- package/lib/typescript/Icons/Hand/index.d.ts.map +1 -1
- package/lib/typescript/Icons/Headphones/index.d.ts.map +1 -1
- package/lib/typescript/Icons/Maximize/index.d.ts +7 -0
- package/lib/typescript/Icons/Maximize/index.d.ts.map +1 -0
- package/lib/typescript/Icons/Mic/index.d.ts.map +1 -1
- package/lib/typescript/Icons/Minimize/index.d.ts +7 -0
- package/lib/typescript/Icons/Minimize/index.d.ts.map +1 -0
- package/lib/typescript/Icons/Participants/index.d.ts.map +1 -1
- package/lib/typescript/Icons/Pencil/index.d.ts +7 -0
- package/lib/typescript/Icons/Pencil/index.d.ts.map +1 -0
- package/lib/typescript/Icons/Pin/index.d.ts +7 -0
- package/lib/typescript/Icons/Pin/index.d.ts.map +1 -0
- package/lib/typescript/Icons/Radio/index.d.ts +7 -0
- package/lib/typescript/Icons/Radio/index.d.ts.map +1 -0
- package/lib/typescript/Icons/Recording/index.d.ts +7 -0
- package/lib/typescript/Icons/Recording/index.d.ts.map +1 -0
- package/lib/typescript/Icons/RotateCamera/index.d.ts.map +1 -1
- package/lib/typescript/Icons/ScreenShare/index.d.ts.map +1 -1
- package/lib/typescript/Icons/Speaker/index.d.ts.map +1 -1
- package/lib/typescript/Icons/Star/index.d.ts +7 -0
- package/lib/typescript/Icons/Star/index.d.ts.map +1 -0
- package/lib/typescript/Icons/Stop/index.d.ts +7 -0
- package/lib/typescript/Icons/Stop/index.d.ts.map +1 -0
- package/lib/typescript/Icons/ThreeDots/index.d.ts.map +1 -1
- package/lib/typescript/Icons/Wave/index.d.ts.map +1 -1
- package/lib/typescript/Icons/index.d.ts +12 -0
- package/lib/typescript/Icons/index.d.ts.map +1 -1
- package/lib/typescript/components/BackButton.d.ts.map +1 -1
- package/lib/typescript/components/BottomSheet.d.ts +25 -0
- package/lib/typescript/components/BottomSheet.d.ts.map +1 -0
- package/lib/typescript/components/ChangeNameModalContent.d.ts +6 -0
- package/lib/typescript/components/ChangeNameModalContent.d.ts.map +1 -0
- package/lib/typescript/components/CompanyLogo.d.ts +7 -0
- package/lib/typescript/components/CompanyLogo.d.ts.map +1 -0
- package/lib/typescript/components/CustomInput.d.ts +1 -1
- package/lib/typescript/components/CustomInput.d.ts.map +1 -1
- package/lib/typescript/components/DisplayView.d.ts.map +1 -1
- package/lib/typescript/components/EndRoomModalContent.d.ts +6 -0
- package/lib/typescript/components/EndRoomModalContent.d.ts.map +1 -0
- package/lib/typescript/components/Footer.d.ts.map +1 -1
- package/lib/typescript/components/GridView.d.ts +3 -4
- package/lib/typescript/components/GridView.d.ts.map +1 -1
- package/lib/typescript/components/HMSBaseButton.d.ts +15 -0
- package/lib/typescript/components/HMSBaseButton.d.ts.map +1 -0
- package/lib/typescript/components/HMSDangerButton.d.ts +12 -0
- package/lib/typescript/components/HMSDangerButton.d.ts.map +1 -0
- package/lib/typescript/components/HMSHLSStreamLoading.d.ts +3 -0
- package/lib/typescript/components/HMSHLSStreamLoading.d.ts.map +1 -0
- package/lib/typescript/components/HMSLocalVideoView.d.ts +3 -0
- package/lib/typescript/components/HMSLocalVideoView.d.ts.map +1 -0
- package/lib/typescript/components/HMSManageAudioOutput.d.ts +3 -0
- package/lib/typescript/components/HMSManageAudioOutput.d.ts.map +1 -0
- package/lib/typescript/components/HMSManageLeave.d.ts.map +1 -1
- package/lib/typescript/components/HMSManageLocalAudio.d.ts.map +1 -1
- package/lib/typescript/components/HMSManageLocalVideo.d.ts.map +1 -1
- package/lib/typescript/components/HMSMeetingEnded.d.ts +3 -0
- package/lib/typescript/components/HMSMeetingEnded.d.ts.map +1 -0
- package/lib/typescript/components/HMSPreviewEditName.d.ts.map +1 -1
- package/lib/typescript/components/HMSPreviewHLSLiveIndicator.d.ts +3 -0
- package/lib/typescript/components/HMSPreviewHLSLiveIndicator.d.ts.map +1 -0
- package/lib/typescript/components/HMSPreviewJoinButton.d.ts.map +1 -1
- package/lib/typescript/components/HMSPreviewNetworkQuality.d.ts +3 -0
- package/lib/typescript/components/HMSPreviewNetworkQuality.d.ts.map +1 -0
- package/lib/typescript/components/HMSPreviewPeersList.d.ts.map +1 -1
- package/lib/typescript/components/HMSPreviewSubtitle.d.ts.map +1 -1
- package/lib/typescript/components/HMSPreviewTile.d.ts.map +1 -1
- package/lib/typescript/components/HMSPreviewTitle.d.ts.map +1 -1
- package/lib/typescript/components/HMSPrimaryButton.d.ts +12 -0
- package/lib/typescript/components/HMSPrimaryButton.d.ts.map +1 -0
- package/lib/typescript/components/HMSRecordingIndicator.d.ts +3 -0
- package/lib/typescript/components/HMSRecordingIndicator.d.ts.map +1 -0
- package/lib/typescript/components/HMSRoomOptions.d.ts.map +1 -1
- package/lib/typescript/components/HMSShowNetworkQuality.d.ts.map +1 -1
- package/lib/typescript/components/HMSTextInput.d.ts +10 -0
- package/lib/typescript/components/HMSTextInput.d.ts.map +1 -0
- package/lib/typescript/components/Header.d.ts.map +1 -1
- package/lib/typescript/components/LocalPeerRegularVideoView.d.ts +6 -0
- package/lib/typescript/components/LocalPeerRegularVideoView.d.ts.map +1 -0
- package/lib/typescript/components/LocalPeerScreenshareView.d.ts +3 -0
- package/lib/typescript/components/LocalPeerScreenshareView.d.ts.map +1 -0
- package/lib/typescript/components/Meeting.d.ts.map +1 -1
- package/lib/typescript/components/MenuModal/Menu.d.ts.map +1 -1
- package/lib/typescript/components/MiniView.d.ts +9 -0
- package/lib/typescript/components/MiniView.d.ts.map +1 -0
- package/lib/typescript/components/Modals.d.ts +1 -16
- package/lib/typescript/components/Modals.d.ts.map +1 -1
- package/lib/typescript/components/PaginationDots.d.ts +6 -0
- package/lib/typescript/components/PaginationDots.d.ts.map +1 -0
- package/lib/typescript/components/Participants/ParticipantsList.d.ts.map +1 -1
- package/lib/typescript/components/ParticipantsCount.d.ts +3 -0
- package/lib/typescript/components/ParticipantsCount.d.ts.map +1 -0
- package/lib/typescript/components/PeerMinimizedView.d.ts +12 -0
- package/lib/typescript/components/PeerMinimizedView.d.ts.map +1 -0
- package/lib/typescript/components/PeerSettingsModalContent.d.ts +1 -0
- package/lib/typescript/components/PeerSettingsModalContent.d.ts.map +1 -1
- package/lib/typescript/components/PeerVideoTile/AvatarView.d.ts +9 -0
- package/lib/typescript/components/PeerVideoTile/AvatarView.d.ts.map +1 -0
- package/lib/typescript/components/PeerVideoTile/PeerAudioMutedIndicator.d.ts +6 -0
- package/lib/typescript/components/PeerVideoTile/PeerAudioMutedIndicator.d.ts.map +1 -0
- package/lib/typescript/components/PeerVideoTile/PeerMetadata.d.ts +6 -0
- package/lib/typescript/components/PeerVideoTile/PeerMetadata.d.ts.map +1 -0
- package/lib/typescript/components/PeerVideoTile/PeerNameAndNetwork.d.ts +10 -0
- package/lib/typescript/components/PeerVideoTile/PeerNameAndNetwork.d.ts.map +1 -0
- package/lib/typescript/components/PeerVideoTile/PeerVideoTileView.d.ts +10 -0
- package/lib/typescript/components/PeerVideoTile/PeerVideoTileView.d.ts.map +1 -0
- package/lib/typescript/components/PeerVideoTile/VideoView.d.ts +13 -0
- package/lib/typescript/components/PeerVideoTile/VideoView.d.ts.map +1 -0
- package/lib/typescript/components/PeerVideoTile/index.d.ts +1 -0
- package/lib/typescript/components/PeerVideoTile/index.d.ts.map +1 -0
- package/lib/typescript/components/PressableIcon.d.ts.map +1 -1
- package/lib/typescript/components/Preview.d.ts.map +1 -1
- package/lib/typescript/components/RoomSettingsModalContent.d.ts +2 -2
- package/lib/typescript/components/RoomSettingsModalContent.d.ts.map +1 -1
- package/lib/typescript/components/RoomSettingsModalDebugModeContent.d.ts +17 -0
- package/lib/typescript/components/RoomSettingsModalDebugModeContent.d.ts.map +1 -0
- package/lib/typescript/components/StopRecordingModalContent.d.ts +6 -0
- package/lib/typescript/components/StopRecordingModalContent.d.ts.map +1 -0
- package/lib/typescript/components/Tile.d.ts +12 -3
- package/lib/typescript/components/Tile.d.ts.map +1 -1
- package/lib/typescript/components/TilesContainer.d.ts.map +1 -1
- package/lib/typescript/components/UnmountAfterDelay.d.ts +12 -0
- package/lib/typescript/components/UnmountAfterDelay.d.ts.map +1 -0
- package/lib/typescript/components/WebrtcView.d.ts +10 -0
- package/lib/typescript/components/WebrtcView.d.ts.map +1 -0
- package/lib/typescript/components/WelcomeInMeeting.d.ts +5 -0
- package/lib/typescript/components/WelcomeInMeeting.d.ts.map +1 -0
- package/lib/typescript/components/index.d.ts +0 -1
- package/lib/typescript/components/index.d.ts.map +1 -1
- package/lib/typescript/hooks-sdk-selectors.d.ts +2 -0
- package/lib/typescript/hooks-sdk-selectors.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-selectors.d.ts +2 -0
- package/lib/typescript/hooks-util-selectors.d.ts.map +1 -1
- package/lib/typescript/hooks-util.d.ts +24 -4
- package/lib/typescript/hooks-util.d.ts.map +1 -1
- package/lib/typescript/modules/HMSManager.d.ts +4 -0
- package/lib/typescript/modules/HMSManager.d.ts.map +1 -0
- package/lib/typescript/modules/parser.d.ts +3 -0
- package/lib/typescript/modules/parser.d.ts.map +1 -0
- package/lib/typescript/peerTrackNodeUtils.d.ts +1 -0
- package/lib/typescript/peerTrackNodeUtils.d.ts.map +1 -1
- package/lib/typescript/redux/actionTypes.d.ts +11 -1
- package/lib/typescript/redux/actionTypes.d.ts.map +1 -1
- package/lib/typescript/redux/actions/index.d.ts +61 -3
- package/lib/typescript/redux/actions/index.d.ts.map +1 -1
- package/lib/typescript/redux/index.d.ts +10 -1
- package/lib/typescript/redux/index.d.ts.map +1 -1
- package/lib/typescript/redux/reducers/appState.d.ts +8 -0
- package/lib/typescript/redux/reducers/appState.d.ts.map +1 -1
- package/lib/typescript/redux/reducers/hmsStates.d.ts +7 -1
- package/lib/typescript/redux/reducers/hmsStates.d.ts.map +1 -1
- package/lib/typescript/redux/reducers/index.d.ts +10 -1
- package/lib/typescript/redux/reducers/index.d.ts.map +1 -1
- package/lib/typescript/redux/reducers/userState.d.ts +3 -2
- package/lib/typescript/redux/reducers/userState.d.ts.map +1 -1
- package/lib/typescript/utils/functions.d.ts +14 -0
- package/lib/typescript/utils/functions.d.ts.map +1 -1
- package/lib/typescript/utils/theme.d.ts +7 -3
- package/lib/typescript/utils/theme.d.ts.map +1 -1
- package/lib/typescript/utils/types.d.ts +8 -4
- package/lib/typescript/utils/types.d.ts.map +1 -1
- package/package.json +11 -16
- package/src/HMSInstanceSetup.tsx +5 -31
- package/src/HMSPrebuilt.tsx +27 -8
- package/src/HMSRoomSetup.tsx +98 -23
- package/src/Icons/AlertTriangle/assets/alert-triangle.png +0 -0
- package/src/Icons/AlertTriangle/assets/alert-triangle@2x.png +0 -0
- package/src/Icons/AlertTriangle/assets/alert-triangle@3x.png +0 -0
- package/src/Icons/AlertTriangle/index.tsx +33 -0
- package/src/Icons/AnswerPhone/index.tsx +7 -1
- package/src/Icons/BRB/assets/BRB.png +0 -0
- package/src/Icons/BRB/assets/BRB@2x.png +0 -0
- package/src/Icons/BRB/assets/BRB@3x.png +0 -0
- package/src/Icons/BRB/index.tsx +31 -0
- package/src/Icons/Bluetooth/index.tsx +7 -1
- package/src/Icons/Camera/index.tsx +7 -1
- package/src/Icons/Chat/index.tsx +7 -1
- package/src/Icons/Check/assets/check.png +0 -0
- package/src/Icons/Check/assets/check@2x.png +0 -0
- package/src/Icons/Check/assets/check@3x.png +0 -0
- package/src/Icons/Check/index.tsx +33 -0
- package/src/Icons/Chevron/index.tsx +7 -1
- package/src/Icons/Close/index.tsx +7 -1
- package/src/Icons/Hamburger/assets/hamburger.png +0 -0
- package/src/Icons/Hamburger/assets/hamburger@2x.png +0 -0
- package/src/Icons/Hamburger/assets/hamburger@3x.png +0 -0
- package/src/Icons/Hamburger/index.tsx +33 -0
- package/src/Icons/Hand/index.tsx +6 -3
- package/src/Icons/Headphones/index.tsx +7 -1
- package/src/Icons/Maximize/assets/maximize.png +0 -0
- package/src/Icons/Maximize/assets/maximize@2x.png +0 -0
- package/src/Icons/Maximize/assets/maximize@3x.png +0 -0
- package/src/Icons/Maximize/index.tsx +33 -0
- package/src/Icons/Mic/index.tsx +7 -1
- package/src/Icons/Minimize/assets/minimize.png +0 -0
- package/src/Icons/Minimize/assets/minimize@2x.png +0 -0
- package/src/Icons/Minimize/assets/minimize@3x.png +0 -0
- package/src/Icons/Minimize/index.tsx +33 -0
- package/src/Icons/Participants/index.tsx +7 -1
- package/src/Icons/Pencil/assets/pencil.png +0 -0
- package/src/Icons/Pencil/assets/pencil@2x.png +0 -0
- package/src/Icons/Pencil/assets/pencil@3x.png +0 -0
- package/src/Icons/Pencil/index.tsx +33 -0
- package/src/Icons/Pin/assets/pin.png +0 -0
- package/src/Icons/Pin/assets/pin@2x.png +0 -0
- package/src/Icons/Pin/assets/pin@3x.png +0 -0
- package/src/Icons/Pin/index.tsx +30 -0
- package/src/Icons/Radio/assets/radio.png +0 -0
- package/src/Icons/Radio/assets/radio@2x.png +0 -0
- package/src/Icons/Radio/assets/radio@3x.png +0 -0
- package/src/Icons/Radio/index.tsx +27 -0
- package/src/Icons/Recording/assets/recording.png +0 -0
- package/src/Icons/Recording/assets/recording@2x.png +0 -0
- package/src/Icons/Recording/assets/recording@3x.png +0 -0
- package/src/Icons/Recording/index.tsx +33 -0
- package/src/Icons/RotateCamera/index.tsx +7 -1
- package/src/Icons/ScreenShare/index.tsx +7 -1
- package/src/Icons/Speaker/index.tsx +12 -1
- package/src/Icons/Star/assets/star.png +0 -0
- package/src/Icons/Star/assets/star@2x.png +0 -0
- package/src/Icons/Star/assets/star@3x.png +0 -0
- package/src/Icons/Star/index.tsx +30 -0
- package/src/Icons/Stop/assets/stop.png +0 -0
- package/src/Icons/Stop/assets/stop@2x.png +0 -0
- package/src/Icons/Stop/assets/stop@3x.png +0 -0
- package/src/Icons/Stop/index.tsx +33 -0
- package/src/Icons/ThreeDots/index.tsx +7 -1
- package/src/Icons/Wave/index.tsx +7 -1
- package/src/Icons/index.ts +12 -0
- package/src/components/AvatarView.tsx +1 -2
- package/src/components/BackButton.tsx +9 -6
- package/src/components/BottomSheet.tsx +191 -0
- package/src/components/ChangeNameModalContent.tsx +157 -0
- package/src/components/CompanyLogo.tsx +35 -0
- package/src/components/CustomInput.tsx +2 -3
- package/src/components/DisplayView.tsx +16 -75
- package/src/components/EndRoomModalContent.tsx +90 -0
- package/src/components/Footer.tsx +7 -7
- package/src/components/GridView.tsx +91 -20
- package/src/components/HLSView.tsx +1 -1
- package/src/components/HMSBaseButton.tsx +91 -0
- package/src/components/HMSDangerButton.tsx +65 -0
- package/src/components/HMSHLSStreamLoading.tsx +68 -0
- package/src/components/HMSLocalVideoView.tsx +42 -0
- package/src/components/{HMSSpeakerSettings.tsx → HMSManageAudioOutput.tsx} +99 -78
- package/src/components/HMSManageCameraRotation.tsx +11 -8
- package/src/components/HMSManageLeave.tsx +107 -183
- package/src/components/HMSManageLocalAudio.tsx +1 -10
- package/src/components/HMSManageLocalVideo.tsx +1 -10
- package/src/components/HMSMeetingEnded.tsx +28 -0
- package/src/components/HMSPreviewEditName.tsx +4 -45
- package/src/components/HMSPreviewHLSLiveIndicator.tsx +66 -0
- package/src/components/HMSPreviewJoinButton.tsx +36 -51
- package/src/components/HMSPreviewNetworkQuality.tsx +43 -0
- package/src/components/HMSPreviewPeersList.tsx +25 -54
- package/src/components/HMSPreviewSubtitle.tsx +46 -6
- package/src/components/HMSPreviewTile.tsx +20 -31
- package/src/components/HMSPreviewTitle.tsx +18 -5
- package/src/components/HMSPrimaryButton.tsx +63 -0
- package/src/components/HMSRecordingIndicator.tsx +37 -0
- package/src/components/HMSRoomOptions.tsx +30 -16
- package/src/components/HMSShowNetworkQuality.tsx +7 -6
- package/src/components/HMSTextInput.tsx +78 -0
- package/src/components/Header.tsx +37 -36
- package/src/components/LocalPeerRegularVideoView.tsx +28 -0
- package/src/components/LocalPeerScreenshareView.tsx +72 -0
- package/src/components/Meeting.tsx +21 -3
- package/src/components/MenuModal/Menu.tsx +1 -1
- package/src/components/MiniView.tsx +213 -0
- package/src/components/Modals.tsx +5 -409
- package/src/components/PaginationDots.tsx +65 -0
- package/src/components/Participants/ParticipantsList.tsx +0 -24
- package/src/components/ParticipantsCount.tsx +52 -0
- package/src/components/PeerMinimizedView.tsx +131 -0
- package/src/components/PeerSettingsModalContent.tsx +108 -66
- package/src/components/PeerVideoTile/AvatarView.tsx +79 -0
- package/src/components/PeerVideoTile/PeerAudioMutedIndicator.tsx +41 -0
- package/src/components/PeerVideoTile/PeerMetadata.tsx +46 -0
- package/src/components/PeerVideoTile/PeerNameAndNetwork.tsx +81 -0
- package/src/components/PeerVideoTile/PeerVideoTileView.tsx +180 -0
- package/src/components/PeerVideoTile/VideoView.tsx +104 -0
- package/src/components/PeerVideoTile/index.ts +0 -0
- package/src/components/PressableIcon.tsx +15 -8
- package/src/components/Preview.tsx +150 -104
- package/src/components/RoomSettingsModalContent.tsx +234 -659
- package/src/components/RoomSettingsModalDebugModeContent.tsx +446 -0
- package/src/components/StopRecordingModalContent.tsx +109 -0
- package/src/components/Tile.tsx +49 -90
- package/src/components/TilesContainer.tsx +116 -14
- package/src/components/UnmountAfterDelay.tsx +61 -0
- package/src/components/WebrtcView.tsx +72 -0
- package/src/components/WelcomeInMeeting.tsx +52 -0
- package/src/components/index.ts +0 -1
- package/src/hooks/useHmsInstance.ts +0 -1
- package/src/hooks-sdk-selectors.tsx +7 -0
- package/src/hooks-sdk.ts +18 -0
- package/src/hooks-util-selectors.tsx +21 -0
- package/src/hooks-util.ts +548 -130
- package/src/modules/HMSManager.ts +25 -0
- package/src/modules/parser.ts +22 -0
- package/src/peerTrackNodeUtils.tsx +13 -10
- package/src/redux/actionTypes.ts +28 -0
- package/src/redux/actions/index.ts +64 -2
- package/src/redux/reducers/appState.ts +65 -0
- package/src/redux/reducers/hmsStates.ts +15 -1
- package/src/redux/reducers/userState.ts +5 -2
- package/src/utils/functions.ts +48 -0
- package/src/utils/theme.ts +75 -5
- package/src/utils/types.ts +9 -4
- package/src/utils.ts +2 -2
- package/lib/commonjs/components/HMSSpeakerSettings.js.map +0 -1
- package/lib/commonjs/components/ZoomableView.js +0 -84
- package/lib/commonjs/components/ZoomableView.js.map +0 -1
- package/lib/module/components/HMSSpeakerSettings.js.map +0 -1
- package/lib/module/components/ZoomableView.js +0 -76
- package/lib/module/components/ZoomableView.js.map +0 -1
- package/lib/typescript/components/HMSSpeakerSettings.d.ts +0 -3
- package/lib/typescript/components/HMSSpeakerSettings.d.ts.map +0 -1
- package/lib/typescript/components/ZoomableView.d.ts +0 -6
- package/lib/typescript/components/ZoomableView.d.ts.map +0 -1
- package/src/components/ZoomableView.tsx +0 -91
|
@@ -21,6 +21,13 @@ declare const _default: import("redux").Reducer<import("redux").CombinedState<{
|
|
|
21
21
|
};
|
|
22
22
|
modalType: import("../../utils/types").ModalTypes;
|
|
23
23
|
peerToUpdate: import("@100mslive/react-native-hms").HMSPeer | null;
|
|
24
|
+
meetingState: import("../../types").MeetingState;
|
|
25
|
+
startingHLSStream: boolean;
|
|
26
|
+
insetViewMinimized: boolean;
|
|
27
|
+
miniviewPeerTrackNode: import("../../utils/types").PeerTrackNode | null;
|
|
28
|
+
localPeerTrackNode: import("../../utils/types").PeerTrackNode | null;
|
|
29
|
+
gridViewActivePage: number;
|
|
30
|
+
startingOrStoppingRecording: boolean;
|
|
24
31
|
};
|
|
25
32
|
user: {
|
|
26
33
|
userName: string;
|
|
@@ -37,7 +44,8 @@ declare const _default: import("redux").Reducer<import("redux").CombinedState<{
|
|
|
37
44
|
roomCode: string;
|
|
38
45
|
isHLSFlow: boolean;
|
|
39
46
|
roles: import("@100mslive/react-native-hms").HMSRole[];
|
|
40
|
-
iosBuildConfig: import("../../utils/types").
|
|
47
|
+
iosBuildConfig: import("../../utils/types").HMSIOSScreenShareConfig | null;
|
|
48
|
+
onLeave: (() => void) | undefined;
|
|
41
49
|
};
|
|
42
50
|
hmsStates: {
|
|
43
51
|
isLocalAudioMuted: boolean | undefined;
|
|
@@ -48,6 +56,7 @@ declare const _default: import("redux").Reducer<import("redux").CombinedState<{
|
|
|
48
56
|
localPeer: import("@100mslive/react-native-hms").HMSLocalPeer | null;
|
|
49
57
|
roles: import("@100mslive/react-native-hms").HMSRole[];
|
|
50
58
|
previewPeersList: import("@100mslive/react-native-hms").HMSPeer[];
|
|
59
|
+
layoutConfig: import("@100mslive/types-prebuilt").Layout | null;
|
|
51
60
|
};
|
|
52
61
|
chatWindow: any;
|
|
53
62
|
}>, any>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/redux/reducers/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/redux/reducers/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAOA,wBAMG"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { HMSRole, HMSSDK, HMSSessionStore } from '@100mslive/react-native-hms';
|
|
2
|
-
import type {
|
|
2
|
+
import type { HMSIOSScreenShareConfig } from '../../utils/types';
|
|
3
3
|
type ActionType = {
|
|
4
4
|
payload: any;
|
|
5
5
|
type: String;
|
|
@@ -19,7 +19,8 @@ type IntialStateType = {
|
|
|
19
19
|
roomCode: string;
|
|
20
20
|
isHLSFlow: boolean;
|
|
21
21
|
roles: HMSRole[];
|
|
22
|
-
iosBuildConfig:
|
|
22
|
+
iosBuildConfig: HMSIOSScreenShareConfig | null;
|
|
23
|
+
onLeave: (() => void) | undefined;
|
|
23
24
|
};
|
|
24
25
|
declare const userReducer: (state: IntialStateType | undefined, action: ActionType) => IntialStateType;
|
|
25
26
|
export default userReducer;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"userState.d.ts","sourceRoot":"","sources":["../../../../src/redux/reducers/userState.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,OAAO,EACP,MAAM,EACN,eAAe,EAChB,MAAM,6BAA6B,CAAC;AAGrC,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"userState.d.ts","sourceRoot":"","sources":["../../../../src/redux/reducers/userState.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,OAAO,EACP,MAAM,EACN,eAAe,EAChB,MAAM,6BAA6B,CAAC;AAGrC,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,mBAAmB,CAAC;AAEjE,KAAK,UAAU,GAAG;IAChB,OAAO,EAAE,GAAG,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,KAAK,eAAe,GAAG;IACrB,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,SAAS,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,GAAG,SAAS,CAAC;IACvD,SAAS,EAAE,OAAO,CAAC;IACnB,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,eAAe,CAAC,EAAE,eAAe,GAAG,IAAI,CAAC;IACzC,gBAAgB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACjC,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,OAAO,CAAC;IACnB,KAAK,EAAE,OAAO,EAAE,CAAC;IACjB,cAAc,EAAE,uBAAuB,GAAG,IAAI,CAAC;IAC/C,OAAO,EAAE,CAAC,MAAM,IAAI,CAAC,GAAG,SAAS,CAAC;CACnC,CAAC;AAkBF,QAAA,MAAM,WAAW,+CAEP,UAAU,KACjB,eAuCF,CAAC;AAEF,eAAe,WAAW,CAAC"}
|
|
@@ -44,4 +44,18 @@ export declare const getDisplayTrackDimensions: (peersInPage: number, top: numbe
|
|
|
44
44
|
export declare const getTrackForPIPView: (pairedPeers: PeerTrackNode[][]) => PeerTrackNode | undefined;
|
|
45
45
|
export declare const getTime: (millisecs: number) => [number, number, number];
|
|
46
46
|
export declare const getTimeStringin12HourFormat: (time: Date) => string;
|
|
47
|
+
/**
|
|
48
|
+
* @param totalNumber total number of tiles
|
|
49
|
+
* @returns list of pairs that can be made from total number of tiles
|
|
50
|
+
*
|
|
51
|
+
* Example: If totalNumber is `5`, then output will be = `[ [0, 1], [2, 3], [4] ]`;
|
|
52
|
+
*/
|
|
53
|
+
export declare function groupIntoPairs(totalNumber: number): number[][];
|
|
54
|
+
/**
|
|
55
|
+
* @param list array of items
|
|
56
|
+
* @returns list of triplets
|
|
57
|
+
*
|
|
58
|
+
* Example: If list is `[a, b, c, d]`, then output will be `[ [a, b, c], [d] ]`
|
|
59
|
+
*/
|
|
60
|
+
export declare function groupIntoTriplets<T>(list: T[], fill?: boolean): (T | undefined)[][];
|
|
47
61
|
//# sourceMappingURL=functions.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"functions.d.ts","sourceRoot":"","sources":["../../../src/utils/functions.ts"],"names":[],"mappings":"AAOA,OAAO,EACL,OAAO,EACP,QAAQ,EAGR,aAAa,EACd,MAAM,6BAA6B,CAAC;AAErC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAC7C,OAAO,EACL,WAAW,EAIZ,MAAM,0BAA0B,CAAC;AAGlC,eAAO,MAAM,aAAa,cACmC,CAAC;AAG9D,eAAO,MAAM,cAAc,cAAsB,CAAC;AAElD,eAAO,MAAM,WAAW,UAAW,MAAM,KAAG,MAkB3C,CAAC;AAEF,eAAO,MAAM,aAAa,cACb,MAAM,KAChB;IACD,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,OAAO,CAAC,EAAE,OAAO,CAAC;CAWnB,CAAC;AAEF,eAAO,MAAM,gCAAgC,QAAa,QAAQ,OAAO,CAkCxE,CAAC;AAEF,eAAO,MAAM,WAAW,WACd,MAAM,WACL,QAAQ,WACR,QAAQ,kBA8ClB,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,sBAAsB,QAAS,MAAM,OAAO,MAAM,WAE9D,CAAC;AAEF,eAAO,MAAM,eAAe,WAAY,MAAM,WAM7C,CAAC;AAEF,eAAO,MAAM,YAAY,mBACP,aAAa,EAAE,UACvB,MAAM,KACb,aAAa,EAQf,CAAC;AAEF,eAAO,MAAM,iBAAiB,mBACZ,aAAa,EAAE,QACzB,OAAO,UACL,QAAQ,KACf,aAAa,EAaf,CAAC;AAEF,eAAO,MAAM,mBAAmB,mBACd,aAAa,EAAE,cACnB,OAAO,KAClB,aAAa,EAOf,CAAC;AAEF,eAAO,MAAM,oBAAoB,mBACf,aAAa,EAAE,QACzB,OAAO,SACN,QAAQ,KACd,aAAa,EAcf,CAAC;AAEF,eAAO,MAAM,eAAe,mBACV,aAAa,EAAE,QACzB,OAAO,KACZ,aAAa,EAUf,CAAC;AAEF,eAAO,MAAM,mBAAmB,SACxB,OAAO,UACL,QAAQ,KACf,aAgBF,CAAC;AAEF,eAAO,MAAM,qBAAqB,yBACV,aAAa,EAAE,yBACd,aAAa,EAAE,KACrC,aAAa,EAWf,CAAC;AAEF,eAAO,MAAM,UAAU,eAGtB,CAAC;AAEF,eAAO,MAAM,WAAW,SAAU,MAAM,KAAG,OAc1C,CAAC;AAEF,eAAO,MAAM,gBAAgB,gBACd,MACX,CAAC,OAAO,YAAY,OAAO,CAAC,CAAC,MAAM,OAAO,YAAY,OAAO,CAAC,CAC/D,KACA,QAAQ,OAAO,CAyCjB,CAAC;AAEF,eAAO,MAAM,QAAQ,4BACM,aAAa,EAAE,SACjC,MAAM,0BACW,MAAM,GAAG,IAAI,sBAsCtC,CAAC;AAEF,eAAO,MAAM,iBAAiB,qBACV,MAAM,GAAG,SAAS,GAAG,IAAI,cAC/B;IACV,cAAc,CAAC,EAAE,aAAa,CAAC;IAC/B,qBAAqB,CAAC,EAAE,QAAQ,CAAC;IACjC,aAAa,CAAC,EAAE,QAAQ,EAAE,CAAC;CAC5B;;;;CAuBF,CAAC;AAEF,eAAO,MAAM,yBAAyB,gBACvB,MAAM,OACd,MAAM,UACH,MAAM,yBACS,OAAO;;;CAoC/B,CAAC;AAKF,eAAO,MAAM,kBAAkB,gBAAiB,aAAa,EAAE,EAAE,8BAwBhE,CAAC;AAEF,eAAO,MAAM,OAAO,cAAe,MAAM,KAAG,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAQlE,CAAC;AAEF,eAAO,MAAM,2BAA2B,SAAU,IAAI,WAWrD,CAAC"}
|
|
1
|
+
{"version":3,"file":"functions.d.ts","sourceRoot":"","sources":["../../../src/utils/functions.ts"],"names":[],"mappings":"AAOA,OAAO,EACL,OAAO,EACP,QAAQ,EAGR,aAAa,EACd,MAAM,6BAA6B,CAAC;AAErC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAC7C,OAAO,EACL,WAAW,EAIZ,MAAM,0BAA0B,CAAC;AAGlC,eAAO,MAAM,aAAa,cACmC,CAAC;AAG9D,eAAO,MAAM,cAAc,cAAsB,CAAC;AAElD,eAAO,MAAM,WAAW,UAAW,MAAM,KAAG,MAkB3C,CAAC;AAEF,eAAO,MAAM,aAAa,cACb,MAAM,KAChB;IACD,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,OAAO,CAAC,EAAE,OAAO,CAAC;CAWnB,CAAC;AAEF,eAAO,MAAM,gCAAgC,QAAa,QAAQ,OAAO,CAkCxE,CAAC;AAEF,eAAO,MAAM,WAAW,WACd,MAAM,WACL,QAAQ,WACR,QAAQ,kBA8ClB,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,sBAAsB,QAAS,MAAM,OAAO,MAAM,WAE9D,CAAC;AAEF,eAAO,MAAM,eAAe,WAAY,MAAM,WAM7C,CAAC;AAEF,eAAO,MAAM,YAAY,mBACP,aAAa,EAAE,UACvB,MAAM,KACb,aAAa,EAQf,CAAC;AAEF,eAAO,MAAM,iBAAiB,mBACZ,aAAa,EAAE,QACzB,OAAO,UACL,QAAQ,KACf,aAAa,EAaf,CAAC;AAEF,eAAO,MAAM,mBAAmB,mBACd,aAAa,EAAE,cACnB,OAAO,KAClB,aAAa,EAOf,CAAC;AAEF,eAAO,MAAM,oBAAoB,mBACf,aAAa,EAAE,QACzB,OAAO,SACN,QAAQ,KACd,aAAa,EAcf,CAAC;AAEF,eAAO,MAAM,eAAe,mBACV,aAAa,EAAE,QACzB,OAAO,KACZ,aAAa,EAUf,CAAC;AAEF,eAAO,MAAM,mBAAmB,SACxB,OAAO,UACL,QAAQ,KACf,aAgBF,CAAC;AAEF,eAAO,MAAM,qBAAqB,yBACV,aAAa,EAAE,yBACd,aAAa,EAAE,KACrC,aAAa,EAWf,CAAC;AAEF,eAAO,MAAM,UAAU,eAGtB,CAAC;AAEF,eAAO,MAAM,WAAW,SAAU,MAAM,KAAG,OAc1C,CAAC;AAEF,eAAO,MAAM,gBAAgB,gBACd,MACX,CAAC,OAAO,YAAY,OAAO,CAAC,CAAC,MAAM,OAAO,YAAY,OAAO,CAAC,CAC/D,KACA,QAAQ,OAAO,CAyCjB,CAAC;AAEF,eAAO,MAAM,QAAQ,4BACM,aAAa,EAAE,SACjC,MAAM,0BACW,MAAM,GAAG,IAAI,sBAsCtC,CAAC;AAEF,eAAO,MAAM,iBAAiB,qBACV,MAAM,GAAG,SAAS,GAAG,IAAI,cAC/B;IACV,cAAc,CAAC,EAAE,aAAa,CAAC;IAC/B,qBAAqB,CAAC,EAAE,QAAQ,CAAC;IACjC,aAAa,CAAC,EAAE,QAAQ,EAAE,CAAC;CAC5B;;;;CAuBF,CAAC;AAEF,eAAO,MAAM,yBAAyB,gBACvB,MAAM,OACd,MAAM,UACH,MAAM,yBACS,OAAO;;;CAoC/B,CAAC;AAKF,eAAO,MAAM,kBAAkB,gBAAiB,aAAa,EAAE,EAAE,8BAwBhE,CAAC;AAEF,eAAO,MAAM,OAAO,cAAe,MAAM,KAAG,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAQlE,CAAC;AAEF,eAAO,MAAM,2BAA2B,SAAU,IAAI,WAWrD,CAAC;AAEF;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,WAAW,EAAE,MAAM,cAUjD;AAED;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,EAAE,IAAI,CAAC,EAAE,OAAO,uBAsB7D"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Theme } from '
|
|
1
|
+
import type { ColorPalette, Theme, Typography } from '@100mslive/types-prebuilt';
|
|
2
2
|
export declare const FONTS: {
|
|
3
3
|
H1: {
|
|
4
4
|
fontSize: number;
|
|
@@ -42,8 +42,7 @@ export declare const FONTS: {
|
|
|
42
42
|
letterSpacing: number;
|
|
43
43
|
};
|
|
44
44
|
};
|
|
45
|
-
export declare const
|
|
46
|
-
export declare const setAppTheme: (theme: Theme) => Theme;
|
|
45
|
+
export declare const STATIC_COLOR_PALETTE: ColorPalette;
|
|
47
46
|
export declare const COLORS: {
|
|
48
47
|
PRIMARY: {
|
|
49
48
|
LIGHT: string;
|
|
@@ -70,6 +69,7 @@ export declare const COLORS: {
|
|
|
70
69
|
BLACK: string;
|
|
71
70
|
WHITE: string;
|
|
72
71
|
OVERLAY: string;
|
|
72
|
+
LOADING_BACKDROP: string;
|
|
73
73
|
TEXT: {
|
|
74
74
|
HIGH_EMPHASIS: string;
|
|
75
75
|
MEDIUM_EMPHASIS: string;
|
|
@@ -93,6 +93,7 @@ export declare const COLORS: {
|
|
|
93
93
|
BACKGROUND: {
|
|
94
94
|
DIM: string;
|
|
95
95
|
DIM_80: string;
|
|
96
|
+
DIM_64: string;
|
|
96
97
|
DEFAULT: string;
|
|
97
98
|
DARK: string;
|
|
98
99
|
DARKER: string;
|
|
@@ -127,4 +128,7 @@ export declare const COLORS: {
|
|
|
127
128
|
};
|
|
128
129
|
};
|
|
129
130
|
};
|
|
131
|
+
export declare function hexToRgbA(hex: string, alpha?: number): string;
|
|
132
|
+
export declare const DEFAULT_TYPOGRAPHY: Typography;
|
|
133
|
+
export declare const DEFAULT_THEME: Required<Theme>;
|
|
130
134
|
//# sourceMappingURL=theme.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../../src/utils/theme.ts"],"names":[],"mappings":"AACA,OAAO,
|
|
1
|
+
{"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../../src/utils/theme.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,YAAY,EACZ,KAAK,EACL,UAAU,EACX,MAAM,2BAA2B,CAAC;AAEnC,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0ChB,CAAC;AAEH,eAAO,MAAM,oBAAoB,EAAE,YAyClC,CAAC;AAEF,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoFlB,CAAC;AAEF,wBAAgB,SAAS,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,GAAE,MAAU,UAavD;AAED,eAAO,MAAM,kBAAkB,EAAE,UAEhC,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,QAAQ,CAAC,KAAK,CAIzC,CAAC"}
|
|
@@ -43,7 +43,6 @@ export declare enum ModalTypes {
|
|
|
43
43
|
ZOOM = "zoom",
|
|
44
44
|
PREVIEW = "preview",
|
|
45
45
|
PARTICIPANTS = "participants",
|
|
46
|
-
VOLUME = "volume",
|
|
47
46
|
AUDIO_MIXING_MODE = "audioMixingMode",
|
|
48
47
|
SET_AUDIO_SHARE_VOLUME = "setAudioShareVolume",
|
|
49
48
|
WELCOME_SETTINGS = "welcomeSettings",
|
|
@@ -51,6 +50,7 @@ export declare enum ModalTypes {
|
|
|
51
50
|
PEER_SETTINGS = "peerSettings",
|
|
52
51
|
STREAMING_QUALITY_SETTING = "streamingQualitySetting",
|
|
53
52
|
HLS_PLAYER_ASPECT_RATIO = "hlsPlayerAspectRatio",
|
|
53
|
+
STOP_RECORDING = "stopRecording",
|
|
54
54
|
DEFAULT = ""
|
|
55
55
|
}
|
|
56
56
|
export declare enum SortingType {
|
|
@@ -71,12 +71,16 @@ export declare enum PipModes {
|
|
|
71
71
|
export declare enum Constants {
|
|
72
72
|
MEET_URL = "MEET_URL"
|
|
73
73
|
}
|
|
74
|
-
export type
|
|
75
|
-
appGroup
|
|
76
|
-
preferredExtension
|
|
74
|
+
export type HMSIOSScreenShareConfig = {
|
|
75
|
+
appGroup: string;
|
|
76
|
+
preferredExtension: string;
|
|
77
77
|
};
|
|
78
78
|
export declare const SUPPORTED_ASPECT_RATIOS: {
|
|
79
79
|
value: number;
|
|
80
80
|
id: string;
|
|
81
81
|
}[];
|
|
82
|
+
export declare enum MaxTilesInOnePage {
|
|
83
|
+
IN_PORTRAIT = 6,
|
|
84
|
+
IN_LANDSCAPE = 2
|
|
85
|
+
}
|
|
82
86
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/utils/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAE1E,MAAM,MAAM,aAAa,GAAG;IAC1B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,OAAO,CAAC;IACd,KAAK,CAAC,EAAE,aAAa,CAAC;IACtB,UAAU,CAAC,EAAE,OAAO,CAAC;CAEtB,CAAC;AAEF,oBAAY,YAAY;IACtB,KAAK,UAAU;IACf,IAAI,SAAS;IACb,cAAc,mBAAmB;IACjC,IAAI,SAAS;IACb,IAAI,SAAS;IACb,GAAG,QAAQ;IACX,OAAO,KAAK;CACb;AAED,oBAAY,SAAS;IACnB,KAAK,UAAU;IACf,MAAM,WAAW;IACjB,MAAM,WAAW;IACjB,OAAO,KAAK;CACb;AAED,oBAAY,UAAU;IACpB,kBAAkB,qBAAqB;IACvC,mBAAmB,sBAAsB;IACzC,iBAAiB,oBAAoB;IACrC,WAAW,eAAe;IAC1B,YAAY,qBAAqB;IACjC,iBAAiB,yBAAyB;IAC1C,WAAW,eAAe;IAC1B,aAAa,iBAAiB;IAC9B,iBAAiB,oBAAoB;IACrC,SAAS,cAAc;IACvB,UAAU,eAAe;IACzB,SAAS,aAAa;IACtB,MAAM,WAAW;IACjB,OAAO,YAAY;IACnB,UAAU,cAAc;IACxB,UAAU,cAAc;IACxB,QAAQ,YAAY;IACpB,QAAQ,aAAa;IACrB,IAAI,SAAS;IACb,IAAI,SAAS;IACb,OAAO,YAAY;IACnB,YAAY,iBAAiB;IAC7B,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/utils/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAE1E,MAAM,MAAM,aAAa,GAAG;IAC1B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,OAAO,CAAC;IACd,KAAK,CAAC,EAAE,aAAa,CAAC;IACtB,UAAU,CAAC,EAAE,OAAO,CAAC;CAEtB,CAAC;AAEF,oBAAY,YAAY;IACtB,KAAK,UAAU;IACf,IAAI,SAAS;IACb,cAAc,mBAAmB;IACjC,IAAI,SAAS;IACb,IAAI,SAAS;IACb,GAAG,QAAQ;IACX,OAAO,KAAK;CACb;AAED,oBAAY,SAAS;IACnB,KAAK,UAAU;IACf,MAAM,WAAW;IACjB,MAAM,WAAW;IACjB,OAAO,KAAK;CACb;AAED,oBAAY,UAAU;IACpB,kBAAkB,qBAAqB;IACvC,mBAAmB,sBAAsB;IACzC,iBAAiB,oBAAoB;IACrC,WAAW,eAAe;IAC1B,YAAY,qBAAqB;IACjC,iBAAiB,yBAAyB;IAC1C,WAAW,eAAe;IAC1B,aAAa,iBAAiB;IAC9B,iBAAiB,oBAAoB;IACrC,SAAS,cAAc;IACvB,UAAU,eAAe;IACzB,SAAS,aAAa;IACtB,MAAM,WAAW;IACjB,OAAO,YAAY;IACnB,UAAU,cAAc;IACxB,UAAU,cAAc;IACxB,QAAQ,YAAY;IACpB,QAAQ,aAAa;IACrB,IAAI,SAAS;IACb,IAAI,SAAS;IACb,OAAO,YAAY;IACnB,YAAY,iBAAiB;IAC7B,iBAAiB,oBAAoB;IACrC,sBAAsB,wBAAwB;IAC9C,gBAAgB,oBAAoB;IACpC,gBAAgB,mBAAmB;IACnC,aAAa,iBAAiB;IAC9B,yBAAyB,4BAA4B;IACrD,uBAAuB,yBAAyB;IAChD,cAAc,kBAAkB;IAChC,OAAO,KAAK;CACb;AAED,oBAAY,WAAW;IACrB,YAAY,uBAAuB;IACnC,QAAQ,aAAa;IACrB,aAAa,kBAAkB;IAC/B,OAAO,SAAS;CACjB;AAED,oBAAY,KAAK;IACf,KAAK,UAAU;IACf,IAAI,SAAS;CACd;AAED,oBAAY,QAAQ;IAClB,aAAa,KAAK;IAClB,MAAM,IAAI;IACV,QAAQ,IAAI;CACb;AAED,oBAAY,SAAS;IACnB,QAAQ,aAAa;CACtB;AAED,MAAM,MAAM,uBAAuB,GAAG;IACpC,QAAQ,EAAE,MAAM,CAAC;IACjB,kBAAkB,EAAE,MAAM,CAAC;CAC5B,CAAC;AAEF,eAAO,MAAM,uBAAuB;;;GAMnC,CAAC;AAEF,oBAAY,iBAAiB;IAC3B,WAAW,IAAI;IACf,YAAY,IAAI;CACjB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@100mslive/react-native-room-kit",
|
|
3
|
-
"version": "0.0
|
|
3
|
+
"version": "0.1.0",
|
|
4
4
|
"description": "100ms Room Kit provides simple & easy to use UI components to build Live Streaming & Video Conferencing experiences in your apps.",
|
|
5
5
|
"main": "lib/commonjs/index",
|
|
6
6
|
"module": "lib/module/index",
|
|
@@ -51,25 +51,12 @@
|
|
|
51
51
|
"registry": "https://registry.npmjs.org/"
|
|
52
52
|
},
|
|
53
53
|
"dependencies": {
|
|
54
|
-
"@100mslive/react-native-hms": "1.7.0",
|
|
55
|
-
"@miblanchard/react-native-slider": "^2.0.2",
|
|
56
54
|
"@react-navigation/native": "^6.0.8",
|
|
57
|
-
"@shopify/flash-list": "^1.4.3",
|
|
58
|
-
"react-native-avoid-softinput": "^2.4.8",
|
|
59
|
-
"react-native-device-info": "^9.0.2",
|
|
60
|
-
"react-native-document-picker": "^8.1.1",
|
|
61
|
-
"react-native-fs": "^2.19.0",
|
|
62
|
-
"react-native-gesture-handler": "^1.10.3",
|
|
63
|
-
"react-native-linear-gradient": "^2.7.3",
|
|
64
|
-
"react-native-modal": "^12.1.0",
|
|
65
|
-
"react-native-safe-area-context": "^3.3.0",
|
|
66
|
-
"react-native-share": "^8.2.2",
|
|
67
|
-
"react-native-simple-toast": "^1.1.3",
|
|
68
55
|
"react-redux": "^7.2.4",
|
|
69
|
-
"redux": "^4.1.0"
|
|
70
|
-
"rn-fetch-blob": "^0.12.0"
|
|
56
|
+
"redux": "^4.1.0"
|
|
71
57
|
},
|
|
72
58
|
"devDependencies": {
|
|
59
|
+
"@100mslive/types-prebuilt": "^0.8.0",
|
|
73
60
|
"@commitlint/config-conventional": "^17.0.2",
|
|
74
61
|
"@evilmartians/lefthook": "^1.2.2",
|
|
75
62
|
"@react-native-community/eslint-config": "^3.0.2",
|
|
@@ -93,10 +80,18 @@
|
|
|
93
80
|
"typescript": "^5.0.2"
|
|
94
81
|
},
|
|
95
82
|
"peerDependencies": {
|
|
83
|
+
"@100mslive/react-native-hms": "github:100mslive/100ms-react-native#release1.8.0",
|
|
84
|
+
"@shopify/flash-list": "^1.4.3",
|
|
96
85
|
"react": "*",
|
|
97
86
|
"react-native": "*",
|
|
87
|
+
"react-native-avoid-softinput": "^2.4.8",
|
|
88
|
+
"react-native-gesture-handler": "^2.12.1",
|
|
89
|
+
"react-native-linear-gradient": "^2.7.3",
|
|
90
|
+
"react-native-modal": "^12.1.0",
|
|
98
91
|
"react-native-permissions": "3.4.0",
|
|
99
92
|
"react-native-reanimated": "^2.17.0",
|
|
93
|
+
"react-native-safe-area-context": "^3.3.0",
|
|
94
|
+
"react-native-simple-toast": "^1.1.3",
|
|
100
95
|
"react-native-vector-icons": "^9.1.0"
|
|
101
96
|
},
|
|
102
97
|
"resolutions": {
|
package/src/HMSInstanceSetup.tsx
CHANGED
|
@@ -12,7 +12,6 @@ import {
|
|
|
12
12
|
HMSVideoTrackSettings,
|
|
13
13
|
} from '@100mslive/react-native-hms';
|
|
14
14
|
import React, { useEffect } from 'react';
|
|
15
|
-
import { getModel } from 'react-native-device-info';
|
|
16
15
|
import { batch, useDispatch } from 'react-redux';
|
|
17
16
|
|
|
18
17
|
import { getJoinConfig } from './utils';
|
|
@@ -20,26 +19,11 @@ import { saveUserData, setHMSInstance } from './redux/actions';
|
|
|
20
19
|
import { FullScreenIndicator } from './components/FullScreenIndicator';
|
|
21
20
|
import { clearConfig } from './hooks-util';
|
|
22
21
|
import { store } from './redux';
|
|
22
|
+
import type { HMSIOSScreenShareConfig } from './utils/types';
|
|
23
23
|
|
|
24
24
|
const getTrackSettings = () => {
|
|
25
25
|
const joinConfig = getJoinConfig();
|
|
26
26
|
|
|
27
|
-
const listOfFaultyDevices = [
|
|
28
|
-
'Pixel',
|
|
29
|
-
'Pixel XL',
|
|
30
|
-
'Moto G5',
|
|
31
|
-
'Moto G (5S) Plus',
|
|
32
|
-
'Moto G4',
|
|
33
|
-
'TA-1053',
|
|
34
|
-
'Mi A1',
|
|
35
|
-
'Mi A2',
|
|
36
|
-
'E5823', // Sony z5 compact
|
|
37
|
-
'Redmi Note 5',
|
|
38
|
-
'FP2', // Fairphone FP2
|
|
39
|
-
'MI 5',
|
|
40
|
-
];
|
|
41
|
-
const deviceModal = getModel();
|
|
42
|
-
|
|
43
27
|
/**
|
|
44
28
|
* Customize local peer's Audio track settings before Joining the Room.
|
|
45
29
|
*
|
|
@@ -49,15 +33,8 @@ const getTrackSettings = () => {
|
|
|
49
33
|
initialState: joinConfig.mutedAudio
|
|
50
34
|
? HMSTrackSettingsInitState.MUTED
|
|
51
35
|
: HMSTrackSettingsInitState.UNMUTED,
|
|
52
|
-
useHardwareEchoCancellation: listOfFaultyDevices.includes(deviceModal)
|
|
53
|
-
? true
|
|
54
|
-
: false,
|
|
55
36
|
audioSource: joinConfig.audioMixer
|
|
56
|
-
? [
|
|
57
|
-
'mic_node',
|
|
58
|
-
'screen_broadcast_audio_receiver_node',
|
|
59
|
-
'audio_file_player_node',
|
|
60
|
-
]
|
|
37
|
+
? ['mic_node', 'screen_broadcast_audio_receiver_node']
|
|
61
38
|
: undefined,
|
|
62
39
|
/**
|
|
63
40
|
* `audioMode` param allows you to capture audio in its highest quality
|
|
@@ -96,7 +73,8 @@ const getLogSettings = (): HMSLogSettings => {
|
|
|
96
73
|
});
|
|
97
74
|
};
|
|
98
75
|
|
|
99
|
-
const getIOSBuildConfig = () =>
|
|
76
|
+
const getIOSBuildConfig = (): Partial<HMSIOSScreenShareConfig> =>
|
|
77
|
+
store.getState().user.iosBuildConfig || {};
|
|
100
78
|
|
|
101
79
|
/**
|
|
102
80
|
* Regular Usage:
|
|
@@ -141,6 +119,7 @@ const getHmsInstance = async (): Promise<HMSSDK> => {
|
|
|
141
119
|
trackSettings,
|
|
142
120
|
appGroup,
|
|
143
121
|
preferredExtension,
|
|
122
|
+
isPrebuilt: true,
|
|
144
123
|
});
|
|
145
124
|
|
|
146
125
|
const logger = new HMSLogger();
|
|
@@ -160,19 +139,14 @@ export const HMSInstanceSetup = () => {
|
|
|
160
139
|
clearConfig();
|
|
161
140
|
getHmsInstance()
|
|
162
141
|
.then((hmssdkInstance) => {
|
|
163
|
-
console.log('$$$ hmssdkInstance id = ', hmssdkInstance.id);
|
|
164
142
|
if (!ignore) {
|
|
165
143
|
// If this component is mounted
|
|
166
144
|
// save instance in store
|
|
167
|
-
console.log('$$$ before batch');
|
|
168
145
|
batch(() => {
|
|
169
|
-
console.log('$$$ setHMSInstance call');
|
|
170
146
|
dispatch(setHMSInstance(hmssdkInstance));
|
|
171
147
|
// TODO: remove this from user reducer
|
|
172
|
-
console.log('$$$ saveUserData call');
|
|
173
148
|
dispatch(saveUserData({ hmsInstance: hmssdkInstance }));
|
|
174
149
|
});
|
|
175
|
-
console.log('$$$ after batch');
|
|
176
150
|
} else {
|
|
177
151
|
// If this component is not mounted when this response is received
|
|
178
152
|
// that means Root componnet is unmounted, we can destroy instance safely
|
package/src/HMSPrebuilt.tsx
CHANGED
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
import React, { memo } from 'react';
|
|
2
2
|
import { Provider } from 'react-redux';
|
|
3
|
+
import {
|
|
4
|
+
SafeAreaInsetsContext,
|
|
5
|
+
SafeAreaProvider,
|
|
6
|
+
} from 'react-native-safe-area-context';
|
|
3
7
|
|
|
4
8
|
import { store } from './redux/index';
|
|
5
9
|
import { HMSContainer } from './HMSContainer';
|
|
6
10
|
import { setPrebuiltData } from './redux/actions';
|
|
7
|
-
import type {
|
|
11
|
+
import type { HMSIOSScreenShareConfig } from './utils/types';
|
|
8
12
|
|
|
9
13
|
export interface HMSPrebuiltProps {
|
|
10
14
|
roomCode: string;
|
|
@@ -16,19 +20,34 @@ export interface HMSPrebuiltProps {
|
|
|
16
20
|
token: string;
|
|
17
21
|
};
|
|
18
22
|
debugMode?: boolean;
|
|
19
|
-
ios?:
|
|
23
|
+
ios?: HMSIOSScreenShareConfig;
|
|
20
24
|
};
|
|
25
|
+
onLeave?: () => void;
|
|
21
26
|
}
|
|
22
27
|
|
|
23
|
-
|
|
24
|
-
const { roomCode, options } = props;
|
|
28
|
+
const _HMSPrebuilt: React.FC<HMSPrebuiltProps> = (props) => {
|
|
29
|
+
const { roomCode, options, onLeave } = props;
|
|
25
30
|
|
|
26
|
-
store.dispatch(setPrebuiltData({ roomCode, options }));
|
|
31
|
+
store.dispatch(setPrebuiltData({ roomCode, options, onLeave }));
|
|
32
|
+
|
|
33
|
+
// @ts-ignore Not using `useContext` hook because we don't want to subscribe to updates
|
|
34
|
+
// We just want to check if SafeAreaProvider exists or not
|
|
35
|
+
const safeAreaProviderExists = !!SafeAreaInsetsContext.Consumer._currentValue;
|
|
36
|
+
|
|
37
|
+
if (safeAreaProviderExists) {
|
|
38
|
+
return (
|
|
39
|
+
<Provider store={store}>
|
|
40
|
+
<HMSContainer />
|
|
41
|
+
</Provider>
|
|
42
|
+
);
|
|
43
|
+
}
|
|
27
44
|
|
|
28
45
|
return (
|
|
29
|
-
<
|
|
30
|
-
<
|
|
31
|
-
|
|
46
|
+
<SafeAreaProvider>
|
|
47
|
+
<Provider store={store}>
|
|
48
|
+
<HMSContainer />
|
|
49
|
+
</Provider>
|
|
50
|
+
</SafeAreaProvider>
|
|
32
51
|
);
|
|
33
52
|
};
|
|
34
53
|
|
package/src/HMSRoomSetup.tsx
CHANGED
|
@@ -5,24 +5,40 @@ import {
|
|
|
5
5
|
HMSUpdateListenerActions,
|
|
6
6
|
} from '@100mslive/react-native-hms';
|
|
7
7
|
import React, { useCallback, useEffect, useRef, useState } from 'react';
|
|
8
|
-
import {
|
|
8
|
+
import {
|
|
9
|
+
Alert,
|
|
10
|
+
Keyboard,
|
|
11
|
+
Platform,
|
|
12
|
+
StatusBar,
|
|
13
|
+
StyleSheet,
|
|
14
|
+
View,
|
|
15
|
+
} from 'react-native';
|
|
9
16
|
import Toast from 'react-native-simple-toast';
|
|
10
|
-
import { batch, useDispatch } from 'react-redux';
|
|
17
|
+
import { batch, useDispatch, useSelector, useStore } from 'react-redux';
|
|
11
18
|
|
|
12
19
|
import { Preview } from './components';
|
|
13
20
|
import {
|
|
21
|
+
changeMeetingState,
|
|
22
|
+
changeStartingHLSStream,
|
|
14
23
|
clearStore,
|
|
15
24
|
setHMSLocalPeerState,
|
|
16
25
|
setHMSRoomState,
|
|
26
|
+
setLocalPeerTrackNode,
|
|
27
|
+
setMiniViewPeerTrackNode,
|
|
28
|
+
updateLocalPeerTrackNode,
|
|
17
29
|
} from './redux/actions';
|
|
18
30
|
import { createPeerTrackNode } from './utils/functions';
|
|
19
31
|
import type { PeerTrackNode } from './utils/types';
|
|
20
32
|
import { Meeting } from './components/Meeting';
|
|
21
33
|
import {
|
|
34
|
+
useHMSActiveSpeakerUpdates,
|
|
22
35
|
useHMSConfig,
|
|
23
36
|
useHMSInstance,
|
|
24
37
|
useHMSListeners,
|
|
38
|
+
useHMSRoomColorPalette,
|
|
39
|
+
useHMSRoomStyle,
|
|
25
40
|
useHMSSessionStore,
|
|
41
|
+
useLeaveMethods,
|
|
26
42
|
} from './hooks-util';
|
|
27
43
|
import {
|
|
28
44
|
peerTrackNodeExistForPeerAndTrack,
|
|
@@ -32,9 +48,10 @@ import {
|
|
|
32
48
|
} from './peerTrackNodeUtils';
|
|
33
49
|
import { MeetingState } from './types';
|
|
34
50
|
import { getJoinConfig } from './utils';
|
|
35
|
-
import { COLORS } from './utils/theme';
|
|
36
51
|
import { FullScreenIndicator } from './components/FullScreenIndicator';
|
|
37
|
-
import {
|
|
52
|
+
import { HMSMeetingEnded } from './components/HMSMeetingEnded';
|
|
53
|
+
import { selectIsHLSViewer, selectShouldGoLive } from './hooks-util-selectors';
|
|
54
|
+
import type { RootState } from './redux';
|
|
38
55
|
|
|
39
56
|
type PreviewData = {
|
|
40
57
|
room: HMSRoom;
|
|
@@ -42,19 +59,23 @@ type PreviewData = {
|
|
|
42
59
|
};
|
|
43
60
|
|
|
44
61
|
export const HMSRoomSetup = () => {
|
|
45
|
-
|
|
62
|
+
const ignoreHLSStreamPromise = useRef(false);
|
|
46
63
|
const didInitMeetingAction = useRef(false);
|
|
47
64
|
const hmsInstance = useHMSInstance();
|
|
48
65
|
const dispatch = useDispatch();
|
|
49
|
-
|
|
66
|
+
const reduxStore = useStore<RootState>();
|
|
50
67
|
|
|
51
68
|
const { getConfig, clearConfig } = useHMSConfig();
|
|
52
|
-
const
|
|
69
|
+
const meetingState = useSelector(
|
|
70
|
+
(state: RootState) => state.app.meetingState
|
|
71
|
+
);
|
|
53
72
|
const [peerTrackNodes, setPeerTrackNodes] = useState<PeerTrackNode[]>([]);
|
|
54
73
|
const [loading, setLoading] = useState(false);
|
|
74
|
+
const { goToPreview } = useLeaveMethods();
|
|
55
75
|
|
|
56
76
|
const joinMeeting = useCallback(async () => {
|
|
57
77
|
setLoading(true);
|
|
78
|
+
Keyboard.dismiss();
|
|
58
79
|
const hmsConfig = await getConfig();
|
|
59
80
|
// TODO: handle case when promise returned from `getConfig()` is resolved when Root component has been unmounted
|
|
60
81
|
hmsInstance.join(hmsConfig);
|
|
@@ -67,8 +88,22 @@ export const HMSRoomSetup = () => {
|
|
|
67
88
|
hmsInstance.preview(hmsConfig);
|
|
68
89
|
}, [getConfig, hmsInstance]);
|
|
69
90
|
|
|
91
|
+
const startHLSStreaming = useCallback(async () => {
|
|
92
|
+
dispatch(changeStartingHLSStream(true));
|
|
93
|
+
try {
|
|
94
|
+
const d = await hmsInstance.startHLSStreaming();
|
|
95
|
+
console.log('Start HLS Streaming Success: ', d);
|
|
96
|
+
} catch (e) {
|
|
97
|
+
console.log('Start HLS Streaming Error: ', e);
|
|
98
|
+
if (!ignoreHLSStreamPromise.current) {
|
|
99
|
+
console.log('Unable to go live at the moment: ', e);
|
|
100
|
+
goToPreview();
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
}, [goToPreview, hmsInstance]);
|
|
104
|
+
|
|
70
105
|
// HMS Room, Peers, Track Listeners
|
|
71
|
-
useHMSListeners(
|
|
106
|
+
useHMSListeners(setPeerTrackNodes);
|
|
72
107
|
|
|
73
108
|
/**
|
|
74
109
|
* Session store is a shared realtime key-value store that is accessible by everyone in the room.
|
|
@@ -126,24 +161,20 @@ export const HMSRoomSetup = () => {
|
|
|
126
161
|
// HMS Preview Listener
|
|
127
162
|
useEffect(() => {
|
|
128
163
|
const onPreviewHandler = (data: PreviewData) => {
|
|
129
|
-
|
|
164
|
+
setLoading(false);
|
|
130
165
|
batch(() => {
|
|
131
166
|
dispatch(setHMSRoomState(data.room));
|
|
132
167
|
dispatch(setHMSLocalPeerState(data.room.localPeer));
|
|
168
|
+
dispatch(changeMeetingState(MeetingState.IN_PREVIEW));
|
|
133
169
|
});
|
|
134
|
-
|
|
135
|
-
setLoading(false);
|
|
136
|
-
setMeetingState(MeetingState.IN_PREVIEW);
|
|
137
170
|
};
|
|
138
171
|
|
|
139
|
-
console.log('HMSUpdateListenerActions.ON_PREVIEW registered');
|
|
140
172
|
hmsInstance.addEventListener(
|
|
141
173
|
HMSUpdateListenerActions.ON_PREVIEW,
|
|
142
174
|
onPreviewHandler
|
|
143
175
|
);
|
|
144
176
|
|
|
145
177
|
return () => {
|
|
146
|
-
console.log('HMSUpdateListenerActions.ON_PREVIEW removed');
|
|
147
178
|
hmsInstance.removeEventListener(HMSUpdateListenerActions.ON_PREVIEW);
|
|
148
179
|
};
|
|
149
180
|
}, [hmsInstance]);
|
|
@@ -155,19 +186,37 @@ export const HMSRoomSetup = () => {
|
|
|
155
186
|
|
|
156
187
|
setLoading(false);
|
|
157
188
|
|
|
189
|
+
const reduxState = reduxStore.getState();
|
|
190
|
+
|
|
158
191
|
const localPeer = data.room.localPeer;
|
|
159
192
|
|
|
160
193
|
const peer = localPeer;
|
|
161
194
|
const track = localPeer.videoTrack as HMSTrack | undefined;
|
|
162
195
|
|
|
196
|
+
// Creating `PeerTrackNode` for local peer
|
|
197
|
+
const localPeerTrackNode = createPeerTrackNode(peer, track);
|
|
198
|
+
|
|
163
199
|
batch(() => {
|
|
164
200
|
if (selectIsHLSViewer(localPeer)) {
|
|
165
201
|
dispatch({ type: 'SET_SHOW_CHAT_VIEW', showChatView: true });
|
|
202
|
+
} else {
|
|
203
|
+
if (reduxState.app.localPeerTrackNode) {
|
|
204
|
+
dispatch(
|
|
205
|
+
updateLocalPeerTrackNode({ peer, track: peer.videoTrack })
|
|
206
|
+
);
|
|
207
|
+
} else {
|
|
208
|
+
// saving above created `PeerTrackNode` in store
|
|
209
|
+
dispatch(setLocalPeerTrackNode(localPeerTrackNode));
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
// setting local `PeerTrackNode` as node for MiniView
|
|
213
|
+
dispatch(setMiniViewPeerTrackNode(localPeerTrackNode));
|
|
166
214
|
}
|
|
167
215
|
dispatch(setHMSRoomState(data.room));
|
|
168
216
|
dispatch(setHMSLocalPeerState(data.room.localPeer));
|
|
169
217
|
});
|
|
170
218
|
|
|
219
|
+
// If `peerTrackNodes` also contains a tile for local peer then updating it
|
|
171
220
|
setPeerTrackNodes((prevPeerTrackNodes) => {
|
|
172
221
|
if (
|
|
173
222
|
track &&
|
|
@@ -182,11 +231,19 @@ export const HMSRoomSetup = () => {
|
|
|
182
231
|
if (peerTrackNodeExistForPeer(prevPeerTrackNodes, peer)) {
|
|
183
232
|
return replacePeerTrackNodes(prevPeerTrackNodes, peer);
|
|
184
233
|
}
|
|
185
|
-
|
|
186
|
-
|
|
234
|
+
|
|
235
|
+
// const hmsLocalPeer = createPeerTrackNode(peer, track);
|
|
236
|
+
// return [hmsLocalPeer, ...prevPeerTrackNodes];
|
|
237
|
+
|
|
238
|
+
return prevPeerTrackNodes;
|
|
187
239
|
});
|
|
188
240
|
|
|
189
|
-
|
|
241
|
+
const shouldGoLive = selectShouldGoLive(reduxState);
|
|
242
|
+
|
|
243
|
+
if (shouldGoLive) {
|
|
244
|
+
startHLSStreaming();
|
|
245
|
+
}
|
|
246
|
+
dispatch(changeMeetingState(MeetingState.IN_MEETING));
|
|
190
247
|
};
|
|
191
248
|
|
|
192
249
|
hmsInstance.addEventListener(
|
|
@@ -197,10 +254,19 @@ export const HMSRoomSetup = () => {
|
|
|
197
254
|
return () => {
|
|
198
255
|
hmsInstance.removeEventListener(HMSUpdateListenerActions.ON_JOIN);
|
|
199
256
|
};
|
|
200
|
-
}, [hmsInstance]);
|
|
257
|
+
}, [startHLSStreaming, hmsInstance]);
|
|
201
258
|
|
|
259
|
+
const meetingJoined = meetingState === MeetingState.IN_MEETING;
|
|
260
|
+
|
|
261
|
+
// HMS Active Speaker Listener
|
|
262
|
+
// dev-note: This is added here because we have `setPeerTrackNodes` here
|
|
263
|
+
useHMSActiveSpeakerUpdates(setPeerTrackNodes, meetingJoined);
|
|
264
|
+
|
|
265
|
+
const meetingEnded = meetingState === MeetingState.MEETING_ENDED;
|
|
266
|
+
|
|
267
|
+
// Handling Automatically calling Preview or Join API
|
|
202
268
|
useEffect(() => {
|
|
203
|
-
if (!didInitMeetingAction.current) {
|
|
269
|
+
if (!meetingEnded && !didInitMeetingAction.current) {
|
|
204
270
|
didInitMeetingAction.current = true;
|
|
205
271
|
|
|
206
272
|
// let ignore = false;
|
|
@@ -227,10 +293,12 @@ export const HMSRoomSetup = () => {
|
|
|
227
293
|
// ignore = true;
|
|
228
294
|
};
|
|
229
295
|
}
|
|
230
|
-
}, []);
|
|
296
|
+
}, [meetingEnded]);
|
|
231
297
|
|
|
232
298
|
useEffect(() => {
|
|
233
299
|
return () => {
|
|
300
|
+
ignoreHLSStreamPromise.current = true;
|
|
301
|
+
|
|
234
302
|
// TODOS:
|
|
235
303
|
// - Check If we have already left meeting, or destroyed native HMSSDK
|
|
236
304
|
// - No need to reset redux state?
|
|
@@ -253,10 +321,16 @@ export const HMSRoomSetup = () => {
|
|
|
253
321
|
};
|
|
254
322
|
}, [hmsInstance]);
|
|
255
323
|
|
|
324
|
+
const emptyViewStyles = useHMSRoomStyle((theme) => ({
|
|
325
|
+
backgroundColor: theme.palette.background_dim,
|
|
326
|
+
}));
|
|
327
|
+
|
|
328
|
+
const { background_dim: backgroundDimColor } = useHMSRoomColorPalette();
|
|
329
|
+
|
|
256
330
|
return (
|
|
257
331
|
<>
|
|
258
332
|
<StatusBar
|
|
259
|
-
backgroundColor={
|
|
333
|
+
backgroundColor={backgroundDimColor}
|
|
260
334
|
barStyle={'light-content'}
|
|
261
335
|
/>
|
|
262
336
|
|
|
@@ -264,10 +338,12 @@ export const HMSRoomSetup = () => {
|
|
|
264
338
|
<Preview join={joinMeeting} loadingButtonState={loading} />
|
|
265
339
|
) : meetingState === MeetingState.IN_MEETING ? (
|
|
266
340
|
<Meeting peerTrackNodes={peerTrackNodes} />
|
|
341
|
+
) : meetingState === MeetingState.MEETING_ENDED ? (
|
|
342
|
+
<HMSMeetingEnded />
|
|
267
343
|
) : loading ? (
|
|
268
344
|
<FullScreenIndicator />
|
|
269
345
|
) : (
|
|
270
|
-
<View style={styles.container} />
|
|
346
|
+
<View style={[styles.container, emptyViewStyles]} />
|
|
271
347
|
)}
|
|
272
348
|
</>
|
|
273
349
|
);
|
|
@@ -276,6 +352,5 @@ export const HMSRoomSetup = () => {
|
|
|
276
352
|
const styles = StyleSheet.create({
|
|
277
353
|
container: {
|
|
278
354
|
flex: 1,
|
|
279
|
-
backgroundColor: COLORS.BACKGROUND.DIM,
|
|
280
355
|
},
|
|
281
356
|
});
|
|
Binary file
|
|
Binary file
|
|
Binary file
|