@100mslive/react-native-room-kit 0.0.4 → 0.2.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 +2 -1
- package/lib/commonjs/HMSInstanceSetup.js.map +1 -1
- package/lib/commonjs/HMSPrebuilt.js +4 -2
- package/lib/commonjs/HMSPrebuilt.js.map +1 -1
- package/lib/commonjs/HMSRoomSetup.js +39 -8
- 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/index.js +5 -1
- package/lib/commonjs/Icons/Check/index.js.map +1 -1
- 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-xlarge.png +0 -0
- package/lib/commonjs/Icons/Radio/assets/radio-xlarge@2x.png +0 -0
- package/lib/commonjs/Icons/Radio/assets/radio-xlarge@3x.png +0 -0
- package/lib/commonjs/Icons/Radio/index.js +29 -1
- package/lib/commonjs/Icons/Radio/index.js.map +1 -1
- package/lib/commonjs/Icons/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 +110 -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 +6 -4
- 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 +15 -54
- 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 +17 -13
- 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/HMSHLSNotStarted.js +27 -19
- package/lib/commonjs/components/HMSHLSNotStarted.js.map +1 -1
- package/lib/commonjs/components/HMSHLSStreamLoading.js +17 -8
- package/lib/commonjs/components/HMSHLSStreamLoading.js.map +1 -1
- package/lib/commonjs/components/HMSManageAudioOutput.js +41 -75
- package/lib/commonjs/components/HMSManageAudioOutput.js.map +1 -1
- package/lib/commonjs/components/HMSManageCameraRotation.js +5 -4
- package/lib/commonjs/components/HMSManageCameraRotation.js.map +1 -1
- package/lib/commonjs/components/HMSManageLeave.js +101 -128
- 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/HMSManageRaiseHand.js +2 -15
- package/lib/commonjs/components/HMSManageRaiseHand.js.map +1 -1
- package/lib/commonjs/components/HMSMeetingEnded.js +1 -2
- package/lib/commonjs/components/HMSMeetingEnded.js.map +1 -1
- package/lib/commonjs/components/HMSPreviewEditName.js +3 -37
- package/lib/commonjs/components/HMSPreviewEditName.js.map +1 -1
- package/lib/commonjs/components/HMSPreviewHLSLiveIndicator.js +17 -10
- package/lib/commonjs/components/HMSPreviewHLSLiveIndicator.js.map +1 -1
- package/lib/commonjs/components/HMSPreviewJoinButton.js +23 -46
- package/lib/commonjs/components/HMSPreviewJoinButton.js.map +1 -1
- package/lib/commonjs/components/HMSPreviewNetworkQuality.js +5 -3
- package/lib/commonjs/components/HMSPreviewNetworkQuality.js.map +1 -1
- package/lib/commonjs/components/HMSPreviewPeersList.js +21 -10
- package/lib/commonjs/components/HMSPreviewPeersList.js.map +1 -1
- package/lib/commonjs/components/HMSPreviewSubtitle.js +22 -9
- package/lib/commonjs/components/HMSPreviewSubtitle.js.map +1 -1
- package/lib/commonjs/components/HMSPreviewTile.js +16 -8
- 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 +20 -7
- package/lib/commonjs/components/HMSRoomOptions.js.map +1 -1
- package/lib/commonjs/components/HMSShowNetworkQuality.js +5 -4
- 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 +8 -3
- package/lib/commonjs/components/Meeting.js.map +1 -1
- package/lib/commonjs/components/MeetingScreenContent.js +2 -1
- package/lib/commonjs/components/MeetingScreenContent.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 +31 -116
- 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/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 +68 -51
- 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 +19 -6
- package/lib/commonjs/components/Preview.js.map +1 -1
- package/lib/commonjs/components/RoomSettingsModalContent.js +233 -362
- 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/StatusBar.js +7 -5
- package/lib/commonjs/components/StatusBar.js.map +1 -1
- 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/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 +8 -2
- package/lib/commonjs/hooks-util-selectors.js.map +1 -1
- package/lib/commonjs/hooks-util.js +315 -93
- 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 +16 -1
- package/lib/commonjs/redux/actionTypes.js.map +1 -1
- package/lib/commonjs/redux/actions/index.js +51 -1
- package/lib/commonjs/redux/actions/index.js.map +1 -1
- package/lib/commonjs/redux/reducers/appState.js +57 -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 +62 -8
- package/lib/commonjs/utils/theme.js.map +1 -1
- package/lib/commonjs/utils/types.js +8 -1
- package/lib/commonjs/utils/types.js.map +1 -1
- package/lib/module/HMSInstanceSetup.js +2 -1
- package/lib/module/HMSInstanceSetup.js.map +1 -1
- package/lib/module/HMSPrebuilt.js +4 -2
- package/lib/module/HMSPrebuilt.js.map +1 -1
- package/lib/module/HMSRoomSetup.js +41 -10
- 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/index.js +5 -1
- package/lib/module/Icons/Check/index.js.map +1 -1
- 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-xlarge.png +0 -0
- package/lib/module/Icons/Radio/assets/radio-xlarge@2x.png +0 -0
- package/lib/module/Icons/Radio/assets/radio-xlarge@3x.png +0 -0
- package/lib/module/Icons/Radio/index.js +30 -2
- package/lib/module/Icons/Radio/index.js.map +1 -1
- package/lib/module/Icons/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 +10 -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 +6 -4
- 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 +19 -57
- 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 +19 -15
- 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/HMSHLSNotStarted.js +29 -21
- package/lib/module/components/HMSHLSNotStarted.js.map +1 -1
- package/lib/module/components/HMSHLSStreamLoading.js +17 -8
- package/lib/module/components/HMSHLSStreamLoading.js.map +1 -1
- package/lib/module/components/HMSManageAudioOutput.js +42 -77
- package/lib/module/components/HMSManageAudioOutput.js.map +1 -1
- package/lib/module/components/HMSManageCameraRotation.js +5 -4
- package/lib/module/components/HMSManageCameraRotation.js.map +1 -1
- package/lib/module/components/HMSManageLeave.js +104 -129
- 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/HMSManageRaiseHand.js +2 -15
- package/lib/module/components/HMSManageRaiseHand.js.map +1 -1
- package/lib/module/components/HMSMeetingEnded.js +1 -2
- package/lib/module/components/HMSMeetingEnded.js.map +1 -1
- package/lib/module/components/HMSPreviewEditName.js +3 -37
- package/lib/module/components/HMSPreviewEditName.js.map +1 -1
- package/lib/module/components/HMSPreviewHLSLiveIndicator.js +17 -10
- package/lib/module/components/HMSPreviewHLSLiveIndicator.js.map +1 -1
- package/lib/module/components/HMSPreviewJoinButton.js +26 -49
- package/lib/module/components/HMSPreviewJoinButton.js.map +1 -1
- package/lib/module/components/HMSPreviewNetworkQuality.js +6 -4
- package/lib/module/components/HMSPreviewNetworkQuality.js.map +1 -1
- package/lib/module/components/HMSPreviewPeersList.js +21 -10
- package/lib/module/components/HMSPreviewPeersList.js.map +1 -1
- package/lib/module/components/HMSPreviewSubtitle.js +22 -9
- package/lib/module/components/HMSPreviewSubtitle.js.map +1 -1
- package/lib/module/components/HMSPreviewTile.js +16 -8
- 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 +21 -8
- package/lib/module/components/HMSRoomOptions.js.map +1 -1
- package/lib/module/components/HMSShowNetworkQuality.js +6 -5
- 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 +9 -4
- package/lib/module/components/Meeting.js.map +1 -1
- package/lib/module/components/MeetingScreenContent.js +2 -1
- package/lib/module/components/MeetingScreenContent.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 +31 -114
- 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/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 +71 -54
- 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 +19 -6
- package/lib/module/components/Preview.js.map +1 -1
- package/lib/module/components/RoomSettingsModalContent.js +234 -364
- 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/StatusBar.js +7 -5
- package/lib/module/components/StatusBar.js.map +1 -1
- 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/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 +8 -2
- package/lib/module/hooks-util-selectors.js.map +1 -1
- package/lib/module/hooks-util.js +310 -96
- 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 +16 -1
- package/lib/module/redux/actionTypes.js.map +1 -1
- package/lib/module/redux/actions/index.js +42 -0
- package/lib/module/redux/actions/index.js.map +1 -1
- package/lib/module/redux/reducers/appState.js +57 -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 +57 -5
- package/lib/module/utils/theme.js.map +1 -1
- package/lib/module/utils/types.js +6 -0
- package/lib/module/utils/types.js.map +1 -1
- package/lib/typescript/HMSInstanceSetup.d.ts.map +1 -1
- package/lib/typescript/HMSPrebuilt.d.ts +1 -0
- package/lib/typescript/HMSPrebuilt.d.ts.map +1 -1
- package/lib/typescript/HMSRoomSetup.d.ts.map +1 -1
- package/lib/typescript/Icons/AlertTriangle/index.d.ts +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.map +1 -1
- 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 -3
- package/lib/typescript/Icons/Radio/index.d.ts.map +1 -1
- 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 +10 -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/HMSHLSNotStarted.d.ts.map +1 -1
- package/lib/typescript/components/HMSHLSStreamLoading.d.ts.map +1 -1
- package/lib/typescript/components/HMSManageAudioOutput.d.ts.map +1 -1
- package/lib/typescript/components/HMSManageLeave.d.ts.map +1 -1
- package/lib/typescript/components/HMSManageLocalAudio.d.ts.map +1 -1
- package/lib/typescript/components/HMSManageLocalVideo.d.ts.map +1 -1
- package/lib/typescript/components/HMSManageRaiseHand.d.ts.map +1 -1
- package/lib/typescript/components/HMSPreviewEditName.d.ts.map +1 -1
- package/lib/typescript/components/HMSPreviewHLSLiveIndicator.d.ts.map +1 -1
- package/lib/typescript/components/HMSPreviewJoinButton.d.ts.map +1 -1
- package/lib/typescript/components/HMSPreviewNetworkQuality.d.ts.map +1 -1
- 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/MiniView.d.ts +9 -0
- package/lib/typescript/components/MiniView.d.ts.map +1 -0
- package/lib/typescript/components/Modals.d.ts +0 -7
- 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/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/StatusBar.d.ts +2 -1
- package/lib/typescript/components/StatusBar.d.ts.map +1 -1
- 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/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.map +1 -1
- package/lib/typescript/hooks-util.d.ts +15 -2
- 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 +9 -1
- package/lib/typescript/redux/actionTypes.d.ts.map +1 -1
- package/lib/typescript/redux/actions/index.d.ts +45 -0
- package/lib/typescript/redux/actions/index.d.ts.map +1 -1
- package/lib/typescript/redux/index.d.ts +7 -0
- package/lib/typescript/redux/index.d.ts.map +1 -1
- package/lib/typescript/redux/reducers/appState.d.ts +5 -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 +7 -0
- package/lib/typescript/redux/reducers/index.d.ts.map +1 -1
- package/lib/typescript/redux/reducers/userState.d.ts +1 -0
- package/lib/typescript/redux/reducers/userState.d.ts.map +1 -1
- package/lib/typescript/utils/functions.d.ts +14 -0
- package/lib/typescript/utils/functions.d.ts.map +1 -1
- package/lib/typescript/utils/theme.d.ts +6 -3
- package/lib/typescript/utils/theme.d.ts.map +1 -1
- package/lib/typescript/utils/types.d.ts +5 -0
- package/lib/typescript/utils/types.d.ts.map +1 -1
- package/package.json +4 -2
- package/src/HMSInstanceSetup.tsx +1 -0
- package/src/HMSPrebuilt.tsx +3 -2
- package/src/HMSRoomSetup.tsx +45 -8
- 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/index.tsx +7 -1
- 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-xlarge.png +0 -0
- package/src/Icons/Radio/assets/radio-xlarge@2x.png +0 -0
- package/src/Icons/Radio/assets/radio-xlarge@3x.png +0 -0
- package/src/Icons/Radio/index.tsx +53 -4
- package/src/Icons/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 +30 -0
- package/src/Icons/ThreeDots/index.tsx +7 -1
- package/src/Icons/Wave/index.tsx +7 -1
- package/src/Icons/index.ts +10 -0
- package/src/components/AvatarView.tsx +1 -2
- package/src/components/BackButton.tsx +6 -3
- 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 +17 -67
- package/src/components/EndRoomModalContent.tsx +90 -0
- package/src/components/Footer.tsx +38 -33
- package/src/components/GridView.tsx +91 -20
- package/src/components/HMSBaseButton.tsx +91 -0
- package/src/components/HMSDangerButton.tsx +65 -0
- package/src/components/HMSHLSNotStarted.tsx +26 -20
- package/src/components/HMSHLSStreamLoading.tsx +18 -7
- package/src/components/HMSManageAudioOutput.tsx +59 -90
- package/src/components/HMSManageCameraRotation.tsx +11 -8
- package/src/components/HMSManageLeave.tsx +115 -126
- package/src/components/HMSManageLocalAudio.tsx +1 -10
- package/src/components/HMSManageLocalVideo.tsx +1 -10
- package/src/components/HMSManageRaiseHand.tsx +2 -16
- package/src/components/HMSMeetingEnded.tsx +1 -2
- package/src/components/HMSPreviewEditName.tsx +2 -44
- package/src/components/HMSPreviewHLSLiveIndicator.tsx +17 -9
- package/src/components/HMSPreviewJoinButton.tsx +33 -71
- package/src/components/HMSPreviewNetworkQuality.tsx +7 -4
- package/src/components/HMSPreviewPeersList.tsx +23 -13
- package/src/components/HMSPreviewSubtitle.tsx +27 -11
- package/src/components/HMSPreviewTile.tsx +19 -8
- package/src/components/HMSPreviewTitle.tsx +18 -5
- package/src/components/HMSPrimaryButton.tsx +63 -0
- package/src/components/HMSRecordingIndicator.tsx +39 -0
- package/src/components/HMSRoomOptions.tsx +28 -8
- package/src/components/HMSShowNetworkQuality.tsx +7 -5
- 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 +10 -3
- package/src/components/MeetingScreenContent.tsx +1 -1
- package/src/components/MiniView.tsx +213 -0
- package/src/components/Modals.tsx +1 -110
- package/src/components/PaginationDots.tsx +65 -0
- package/src/components/ParticipantsCount.tsx +52 -0
- package/src/components/PeerMinimizedView.tsx +131 -0
- package/src/components/PeerSettingsModalContent.tsx +110 -54
- 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 +24 -6
- package/src/components/RoomSettingsModalContent.tsx +237 -524
- package/src/components/RoomSettingsModalDebugModeContent.tsx +446 -0
- package/src/components/StatusBar.tsx +6 -4
- package/src/components/StopRecordingModalContent.tsx +111 -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/hooks-sdk-selectors.tsx +7 -0
- package/src/hooks-sdk.ts +18 -0
- package/src/hooks-util-selectors.tsx +12 -1
- package/src/hooks-util.ts +420 -114
- 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 +22 -0
- package/src/redux/actions/index.ts +53 -0
- package/src/redux/reducers/appState.ts +59 -0
- package/src/redux/reducers/hmsStates.ts +15 -1
- package/src/redux/reducers/userState.ts +3 -0
- package/src/utils/functions.ts +48 -0
- package/src/utils/theme.ts +74 -5
- package/src/utils/types.ts +6 -0
|
@@ -1,104 +1,43 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { useSelector } from 'react-redux';
|
|
3
|
+
import { View } from 'react-native';
|
|
3
4
|
import { HMSTrackSource } from '@100mslive/react-native-hms';
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
import { COLORS } from '../utils/theme';
|
|
10
|
-
import { useIsPortraitOrientation } from '../utils/dimension';
|
|
11
|
-
const TileUnmemoized = _ref => {
|
|
12
|
-
var _peerTrackNode$peer, _peerTrackNode$track, _peerTrackNode$track2, _peerTrackNode$peer2, _peerTrackNode$peer3;
|
|
5
|
+
import PeerRTCStatsContainer from './PeerRTCStatsContainer';
|
|
6
|
+
import { LocalPeerScreenshareView } from './LocalPeerScreenshareView';
|
|
7
|
+
import { PeerVideoTileView } from './PeerVideoTile/PeerVideoTileView';
|
|
8
|
+
const _Tile = _ref => {
|
|
9
|
+
var _peerTrackNode$track, _peerTrackNode$track2, _peerTrackNode$track3;
|
|
13
10
|
let {
|
|
11
|
+
aspectRatio,
|
|
12
|
+
width,
|
|
13
|
+
height,
|
|
14
14
|
onPeerTileMorePress,
|
|
15
15
|
peerTrackNode,
|
|
16
|
-
|
|
17
|
-
|
|
16
|
+
setHmsViewRefs,
|
|
17
|
+
style
|
|
18
18
|
} = _ref;
|
|
19
|
-
const
|
|
20
|
-
const
|
|
21
|
-
const
|
|
22
|
-
width: '100%',
|
|
23
|
-
height: '100%'
|
|
24
|
-
};
|
|
25
|
-
const twoTileStyle = {
|
|
26
|
-
width: '100%',
|
|
27
|
-
height: '50%'
|
|
28
|
-
};
|
|
29
|
-
const threeTileStyle = {
|
|
30
|
-
width: '100%',
|
|
31
|
-
height: '33.3333%'
|
|
32
|
-
};
|
|
33
|
-
const fourTileStyle = {
|
|
34
|
-
width: '50%',
|
|
35
|
-
height: '50%'
|
|
36
|
-
};
|
|
37
|
-
const oneTileStyleLandscape = {
|
|
38
|
-
width: '100%',
|
|
39
|
-
height: '100%'
|
|
40
|
-
};
|
|
41
|
-
const twoTileStyleLandscape = {
|
|
42
|
-
width: '50%',
|
|
43
|
-
height: '100%'
|
|
44
|
-
};
|
|
45
|
-
const threeTileStyleLandscape = {
|
|
46
|
-
width: '33.3333%',
|
|
47
|
-
height: '100%'
|
|
48
|
-
};
|
|
49
|
-
const fourTileStyleLandscape = {
|
|
50
|
-
width: '50%',
|
|
51
|
-
height: '50%'
|
|
52
|
-
};
|
|
19
|
+
const showStatsOnTiles = useSelector(state => state.app.joinConfig.showStats);
|
|
20
|
+
const trackSource = (_peerTrackNode$track = peerTrackNode.track) === null || _peerTrackNode$track === void 0 ? void 0 : _peerTrackNode$track.source;
|
|
21
|
+
const isNonRegularTrack = trackSource && trackSource !== HMSTrackSource.REGULAR;
|
|
53
22
|
return /*#__PURE__*/React.createElement(View, {
|
|
54
23
|
style: [{
|
|
55
|
-
|
|
56
|
-
},
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
24
|
+
position: 'relative'
|
|
25
|
+
}, {
|
|
26
|
+
width,
|
|
27
|
+
height,
|
|
28
|
+
aspectRatio
|
|
29
|
+
}, style]
|
|
30
|
+
}, isNonRegularTrack && peerTrackNode.peer.isLocal ? /*#__PURE__*/React.createElement(LocalPeerScreenshareView, null) : /*#__PURE__*/React.createElement(PeerVideoTileView, {
|
|
60
31
|
ref: ref => setHmsViewRefs(peerTrackNode.id, ref),
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
}, /*#__PURE__*/React.createElement(TouchableOpacity, {
|
|
69
|
-
onPress: () => onPeerTileMorePress(peerTrackNode),
|
|
70
|
-
style: {
|
|
71
|
-
padding: 8,
|
|
72
|
-
backgroundColor: COLORS.SECONDARY.DISABLED,
|
|
73
|
-
borderRadius: 18
|
|
74
|
-
}
|
|
75
|
-
}, /*#__PURE__*/React.createElement(Feather, {
|
|
76
|
-
name: "more-horizontal",
|
|
77
|
-
style: styles.mic,
|
|
78
|
-
size: 20
|
|
79
|
-
}))), (peerTrackNode === null || peerTrackNode === void 0 || (_peerTrackNode$peer3 = peerTrackNode.peer) === null || _peerTrackNode$peer3 === void 0 || (_peerTrackNode$peer3 = _peerTrackNode$peer3.audioTrack) === null || _peerTrackNode$peer3 === void 0 ? void 0 : _peerTrackNode$peer3.isMute()) && /*#__PURE__*/React.createElement(View, {
|
|
80
|
-
style: styles.micContainer
|
|
81
|
-
}, /*#__PURE__*/React.createElement(Feather, {
|
|
82
|
-
name: "mic-off",
|
|
83
|
-
style: styles.mic,
|
|
84
|
-
size: 20
|
|
85
|
-
})), parsedMetadata !== null && parsedMetadata !== void 0 && parsedMetadata.isBRBOn ? /*#__PURE__*/React.createElement(View, {
|
|
86
|
-
style: styles.status
|
|
87
|
-
}, /*#__PURE__*/React.createElement(View, {
|
|
88
|
-
style: styles.brbOnContainer
|
|
89
|
-
}, /*#__PURE__*/React.createElement(Text, {
|
|
90
|
-
style: styles.brbOn
|
|
91
|
-
}, "BRB"))) : null, parsedMetadata !== null && parsedMetadata !== void 0 && parsedMetadata.isHandRaised ? /*#__PURE__*/React.createElement(View, {
|
|
92
|
-
style: styles.status
|
|
93
|
-
}, /*#__PURE__*/React.createElement(Ionicons, {
|
|
94
|
-
name: "hand-left",
|
|
95
|
-
style: {
|
|
96
|
-
color: COLORS.TWIN.YELLOW
|
|
97
|
-
},
|
|
98
|
-
size: 20
|
|
99
|
-
})) : null);
|
|
32
|
+
peerTrackNode: peerTrackNode,
|
|
33
|
+
onMoreOptionsPress: onPeerTileMorePress
|
|
34
|
+
}), showStatsOnTiles ? /*#__PURE__*/React.createElement(PeerRTCStatsContainer, {
|
|
35
|
+
trackId: (_peerTrackNode$track2 = peerTrackNode.track) === null || _peerTrackNode$track2 === void 0 ? void 0 : _peerTrackNode$track2.trackId,
|
|
36
|
+
peerId: peerTrackNode.peer.peerID,
|
|
37
|
+
trackSource: (_peerTrackNode$track3 = peerTrackNode.track) === null || _peerTrackNode$track3 === void 0 ? void 0 : _peerTrackNode$track3.source
|
|
38
|
+
}) : null);
|
|
100
39
|
};
|
|
101
|
-
const Tile = /*#__PURE__*/React.memo(
|
|
40
|
+
const Tile = /*#__PURE__*/React.memo(_Tile);
|
|
102
41
|
Tile.displayName = 'Tile';
|
|
103
42
|
export { Tile };
|
|
104
43
|
//# sourceMappingURL=Tile.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","
|
|
1
|
+
{"version":3,"names":["React","useSelector","View","HMSTrackSource","PeerRTCStatsContainer","LocalPeerScreenshareView","PeerVideoTileView","_Tile","_ref","_peerTrackNode$track","_peerTrackNode$track2","_peerTrackNode$track3","aspectRatio","width","height","onPeerTileMorePress","peerTrackNode","setHmsViewRefs","style","showStatsOnTiles","state","app","joinConfig","showStats","trackSource","track","source","isNonRegularTrack","REGULAR","createElement","position","peer","isLocal","ref","id","onMoreOptionsPress","trackId","peerId","peerID","Tile","memo","displayName"],"sourceRoot":"../../../src","sources":["components/Tile.tsx"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,WAAW,QAAQ,aAAa;AACzC,SAASC,IAAI,QAAQ,cAAc;AAEnC,SAASC,cAAc,QAAQ,6BAA6B;AAI5D,OAAOC,qBAAqB,MAAM,yBAAyB;AAE3D,SAASC,wBAAwB,QAAQ,4BAA4B;AACrE,SAASC,iBAAiB,QAAQ,mCAAmC;AAoBrE,MAAMC,KAA0B,GAAGC,IAAA,IAQ7B;EAAA,IAAAC,oBAAA,EAAAC,qBAAA,EAAAC,qBAAA;EAAA,IAR8B;IAClCC,WAAW;IACXC,KAAK;IACLC,MAAM;IACNC,mBAAmB;IACnBC,aAAa;IACbC,cAAc;IACdC;EACF,CAAC,GAAAV,IAAA;EACC,MAAMW,gBAAgB,GAAGlB,WAAW,CACjCmB,KAAgB,IAAKA,KAAK,CAACC,GAAG,CAACC,UAAU,CAACC,SAC7C,CAAC;EAED,MAAMC,WAAW,IAAAf,oBAAA,GAAGO,aAAa,CAACS,KAAK,cAAAhB,oBAAA,uBAAnBA,oBAAA,CAAqBiB,MAAM;EAC/C,MAAMC,iBAAiB,GACrBH,WAAW,IAAIA,WAAW,KAAKrB,cAAc,CAACyB,OAAO;EAEvD,oBACE5B,KAAA,CAAA6B,aAAA,CAAC3B,IAAI;IACHgB,KAAK,EAAE,CAAC;MAAEY,QAAQ,EAAE;IAAW,CAAC,EAAE;MAAEjB,KAAK;MAAEC,MAAM;MAAEF;IAAY,CAAC,EAAEM,KAAK;EAAE,GAExES,iBAAiB,IAAIX,aAAa,CAACe,IAAI,CAACC,OAAO,gBAC9ChC,KAAA,CAAA6B,aAAA,CAACxB,wBAAwB,MAAE,CAAC,gBAE5BL,KAAA,CAAA6B,aAAA,CAACvB,iBAAiB;IAChB2B,GAAG,EAAGA,GAAG,IAAKhB,cAAc,CAACD,aAAa,CAACkB,EAAE,EAAED,GAAG,CAAE;IACpDjB,aAAa,EAAEA,aAAc;IAC7BmB,kBAAkB,EAAEpB;EAAoB,CACzC,CACF,EAEAI,gBAAgB,gBACfnB,KAAA,CAAA6B,aAAA,CAACzB,qBAAqB;IACpBgC,OAAO,GAAA1B,qBAAA,GAAEM,aAAa,CAACS,KAAK,cAAAf,qBAAA,uBAAnBA,qBAAA,CAAqB0B,OAAQ;IACtCC,MAAM,EAAErB,aAAa,CAACe,IAAI,CAACO,MAAO;IAClCd,WAAW,GAAAb,qBAAA,GAAEK,aAAa,CAACS,KAAK,cAAAd,qBAAA,uBAAnBA,qBAAA,CAAqBe;EAAO,CAC1C,CAAC,GACA,IACA,CAAC;AAEX,CAAC;AAED,MAAMa,IAAI,gBAAGvC,KAAK,CAACwC,IAAI,CAACjC,KAAK,CAAC;AAE9BgC,IAAI,CAACE,WAAW,GAAG,MAAM;AAEzB,SAASF,IAAI"}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { View, Dimensions } from 'react-native';
|
|
3
3
|
import { useSafeAreaInsets } from 'react-native-safe-area-context';
|
|
4
|
-
import { styles } from './styles';
|
|
5
4
|
import { Tile } from './Tile';
|
|
6
|
-
|
|
5
|
+
import { useIsLandscapeOrientation } from '../utils/dimension';
|
|
6
|
+
import { groupIntoPairs } from '../utils/functions';
|
|
7
|
+
const _TilesContainer = _ref => {
|
|
7
8
|
let {
|
|
8
9
|
peerTrackNodes,
|
|
9
10
|
setHmsViewRefs,
|
|
@@ -13,19 +14,108 @@ const TilesContainerUnmemoized = _ref => {
|
|
|
13
14
|
left,
|
|
14
15
|
right
|
|
15
16
|
} = useSafeAreaInsets();
|
|
17
|
+
const isLandscapeOrientation = useIsLandscapeOrientation();
|
|
18
|
+
const stylesConfig = computeTileWidthAndHeight(peerTrackNodes.length, isLandscapeOrientation);
|
|
19
|
+
|
|
20
|
+
// In this layout, Tile will take as much height and width as possible
|
|
21
|
+
// Width and Height of Tile are independent of each other
|
|
22
|
+
const growableTileLayout = peerTrackNodes.length <= 4;
|
|
16
23
|
return /*#__PURE__*/React.createElement(View, {
|
|
17
|
-
style: [
|
|
24
|
+
style: [
|
|
25
|
+
// If tile are growable, then we want whatever remaining space to be between them
|
|
26
|
+
{
|
|
27
|
+
justifyContent: growableTileLayout ? 'space-between' : 'center'
|
|
28
|
+
}, {
|
|
18
29
|
width: Dimensions.get('window').width - left - right
|
|
19
30
|
}]
|
|
20
|
-
}, peerTrackNodes
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
31
|
+
}, peerTrackNodes.length <= 3 ?
|
|
32
|
+
/*#__PURE__*/
|
|
33
|
+
// Use 1 Column Layout
|
|
34
|
+
React.createElement(React.Fragment, null, peerTrackNodes.map(peerTrackNode => {
|
|
35
|
+
return /*#__PURE__*/React.createElement(Tile, {
|
|
36
|
+
key: peerTrackNode.id,
|
|
37
|
+
setHmsViewRefs: setHmsViewRefs,
|
|
38
|
+
onPeerTileMorePress: onPeerTileMorePress,
|
|
39
|
+
peerTrackNode: peerTrackNode,
|
|
40
|
+
height: stylesConfig.height,
|
|
41
|
+
width: stylesConfig.width,
|
|
42
|
+
aspectRatio: stylesConfig.aspectRatio
|
|
43
|
+
});
|
|
44
|
+
})) :
|
|
45
|
+
/*#__PURE__*/
|
|
46
|
+
// Use Grid Layout
|
|
47
|
+
React.createElement(React.Fragment, null, groupIntoPairs(peerTrackNodes.length).map((pair, idx) => {
|
|
48
|
+
const peerTrackNodesPair = pair.map(nodeIndex => peerTrackNodes[nodeIndex]);
|
|
49
|
+
const isFirstPairGroup = idx === 0;
|
|
50
|
+
return /*#__PURE__*/React.createElement(View, {
|
|
51
|
+
key: peerTrackNodesPair.map(peerTrackNode => peerTrackNode.id).join(','),
|
|
52
|
+
style: {
|
|
53
|
+
justifyContent: peerTrackNodesPair.length === 1 ? 'center' : 'space-between',
|
|
54
|
+
flexDirection: 'row',
|
|
55
|
+
flex: growableTileLayout ? 1 : 0,
|
|
56
|
+
marginTop: isFirstPairGroup ? 0 : 8
|
|
57
|
+
}
|
|
58
|
+
}, peerTrackNodesPair.map(peerTrackNode => {
|
|
59
|
+
return /*#__PURE__*/React.createElement(Tile, {
|
|
60
|
+
key: peerTrackNode.id,
|
|
61
|
+
setHmsViewRefs: setHmsViewRefs,
|
|
62
|
+
onPeerTileMorePress: onPeerTileMorePress,
|
|
63
|
+
peerTrackNode: peerTrackNode,
|
|
64
|
+
height: stylesConfig.height,
|
|
65
|
+
width: stylesConfig.width,
|
|
66
|
+
aspectRatio: stylesConfig.aspectRatio
|
|
67
|
+
});
|
|
68
|
+
}));
|
|
26
69
|
})));
|
|
27
70
|
};
|
|
28
|
-
const TilesContainer = /*#__PURE__*/React.memo(
|
|
71
|
+
const TilesContainer = /*#__PURE__*/React.memo(_TilesContainer);
|
|
29
72
|
TilesContainer.displayName = 'TilesContainer';
|
|
30
73
|
export { TilesContainer };
|
|
74
|
+
|
|
75
|
+
// Utility Functions
|
|
76
|
+
|
|
77
|
+
const oneTileStyle = {
|
|
78
|
+
width: '100%',
|
|
79
|
+
height: '100%'
|
|
80
|
+
}; // 1 Column Layout
|
|
81
|
+
const twoTileStyle = {
|
|
82
|
+
width: '100%',
|
|
83
|
+
height: '49.4444%'
|
|
84
|
+
}; // 1 Column Layout
|
|
85
|
+
const threeTileStyle = {
|
|
86
|
+
width: '100%',
|
|
87
|
+
height: '32.6666%'
|
|
88
|
+
}; // 1 Column Layout
|
|
89
|
+
|
|
90
|
+
const fourTileStyle = {
|
|
91
|
+
width: '49%',
|
|
92
|
+
height: '100%'
|
|
93
|
+
}; // Grid Layout when Width and Height has no-correlatiom
|
|
94
|
+
const fiveAndSixTileStyle = {
|
|
95
|
+
width: '49%',
|
|
96
|
+
aspectRatio: 1
|
|
97
|
+
}; // Grid Layout when width and Height as fixed aspectRatio
|
|
98
|
+
|
|
99
|
+
const oneTileStyleLandscape = {
|
|
100
|
+
width: '100%',
|
|
101
|
+
height: '100%'
|
|
102
|
+
};
|
|
103
|
+
const twoTileStyleLandscape = {
|
|
104
|
+
width: '50%',
|
|
105
|
+
height: '100%'
|
|
106
|
+
};
|
|
107
|
+
const threeTileStyleLandscape = {
|
|
108
|
+
width: '33.3333%',
|
|
109
|
+
height: '100%'
|
|
110
|
+
};
|
|
111
|
+
const fourTileStyleLandscape = {
|
|
112
|
+
width: '50%',
|
|
113
|
+
height: '50%'
|
|
114
|
+
};
|
|
115
|
+
function computeTileWidthAndHeight(totalTiles, isLandscapeOrientation) {
|
|
116
|
+
return (isLandscapeOrientation ? [oneTileStyleLandscape, twoTileStyleLandscape, threeTileStyleLandscape, fourTileStyleLandscape][Math.min(totalTiles - 1, 3)] : [oneTileStyle, twoTileStyle, threeTileStyle, fourTileStyle, fiveAndSixTileStyle][Math.min(totalTiles - 1, 4)]) || {
|
|
117
|
+
width: '100%',
|
|
118
|
+
height: '100%'
|
|
119
|
+
};
|
|
120
|
+
}
|
|
31
121
|
//# sourceMappingURL=TilesContainer.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","View","Dimensions","useSafeAreaInsets","
|
|
1
|
+
{"version":3,"names":["React","View","Dimensions","useSafeAreaInsets","Tile","useIsLandscapeOrientation","groupIntoPairs","_TilesContainer","_ref","peerTrackNodes","setHmsViewRefs","onPeerTileMorePress","left","right","isLandscapeOrientation","stylesConfig","computeTileWidthAndHeight","length","growableTileLayout","createElement","style","justifyContent","width","get","Fragment","map","peerTrackNode","key","id","height","aspectRatio","pair","idx","peerTrackNodesPair","nodeIndex","isFirstPairGroup","join","flexDirection","flex","marginTop","TilesContainer","memo","displayName","oneTileStyle","twoTileStyle","threeTileStyle","fourTileStyle","fiveAndSixTileStyle","oneTileStyleLandscape","twoTileStyleLandscape","threeTileStyleLandscape","fourTileStyleLandscape","totalTiles","Math","min"],"sourceRoot":"../../../src","sources":["components/TilesContainer.tsx"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,IAAI,EAAEC,UAAU,QAAQ,cAAc;AAE/C,SAASC,iBAAiB,QAAQ,gCAAgC;AAGlE,SAASC,IAAI,QAAQ,QAAQ;AAE7B,SAASC,yBAAyB,QAAQ,oBAAoB;AAC9D,SAASC,cAAc,QAAQ,oBAAoB;AAQnD,MAAMC,eAA8C,GAAGC,IAAA,IAIjD;EAAA,IAJkD;IACtDC,cAAc;IACdC,cAAc;IACdC;EACF,CAAC,GAAAH,IAAA;EACC,MAAM;IAAEI,IAAI;IAAEC;EAAM,CAAC,GAAGV,iBAAiB,CAAC,CAAC;EAC3C,MAAMW,sBAAsB,GAAGT,yBAAyB,CAAC,CAAC;EAE1D,MAAMU,YAAY,GAAGC,yBAAyB,CAC5CP,cAAc,CAACQ,MAAM,EACrBH,sBACF,CAAC;;EAED;EACA;EACA,MAAMI,kBAAkB,GAAGT,cAAc,CAACQ,MAAM,IAAI,CAAC;EAErD,oBACEjB,KAAA,CAAAmB,aAAA,CAAClB,IAAI;IACHmB,KAAK,EAAE;IACL;IACA;MAAEC,cAAc,EAAEH,kBAAkB,GAAG,eAAe,GAAG;IAAS,CAAC,EACnE;MAAEI,KAAK,EAAEpB,UAAU,CAACqB,GAAG,CAAC,QAAQ,CAAC,CAACD,KAAK,GAAGV,IAAI,GAAGC;IAAM,CAAC;EACxD,GAEDJ,cAAc,CAACQ,MAAM,IAAI,CAAC;EAAA;EACzB;EACAjB,KAAA,CAAAmB,aAAA,CAACnB,KAAK,CAACwB,QAAQ,QACZf,cAAc,CAACgB,GAAG,CAAEC,aAA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,UAAkB,EAClBtC,sBAA+B,EAK/B;EACA,OACE,CAACA,sBAAsB,GACnB,CACEkC,qBAAqB,EACrBC,qBAAqB,EACrBC,uBAAuB,EACvBC,sBAAsB,CACvB,CAACE,IAAI,CAACC,GAAG,CAACF,UAAU,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC,GAC9B,CACET,YAAY,EACZC,YAAY,EACZC,cAAc,EACdC,aAAa,EACbC,mBAAmB,CACpB,CAACM,IAAI,CAACC,GAAG,CAACF,UAAU,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC,KAAK;IAAE9B,KAAK,EAAE,MAAM;IAAEO,MAAM,EAAE;EAAO,CAAC;AAE5E"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export const UnmountAfterDelay = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
3
|
+
let {
|
|
4
|
+
delay = 4000,
|
|
5
|
+
children,
|
|
6
|
+
visible,
|
|
7
|
+
onUnmount
|
|
8
|
+
} = _ref;
|
|
9
|
+
const timeoutId = React.useRef(null);
|
|
10
|
+
const setTimer = React.useCallback(() => {
|
|
11
|
+
if (timeoutId.current) {
|
|
12
|
+
clearTimeout(timeoutId.current);
|
|
13
|
+
}
|
|
14
|
+
timeoutId.current = setTimeout(() => {
|
|
15
|
+
onUnmount();
|
|
16
|
+
timeoutId.current = null;
|
|
17
|
+
}, delay);
|
|
18
|
+
}, [delay]);
|
|
19
|
+
const clearTimer = React.useCallback(() => {
|
|
20
|
+
if (timeoutId.current) {
|
|
21
|
+
clearTimeout(timeoutId.current);
|
|
22
|
+
timeoutId.current = null;
|
|
23
|
+
}
|
|
24
|
+
}, []);
|
|
25
|
+
React.useImperativeHandle(ref, () => ({
|
|
26
|
+
resetTimer: () => {
|
|
27
|
+
clearTimer();
|
|
28
|
+
setTimer();
|
|
29
|
+
}
|
|
30
|
+
}), [setTimer]);
|
|
31
|
+
React.useEffect(() => {
|
|
32
|
+
if (visible) {
|
|
33
|
+
setTimer();
|
|
34
|
+
return clearTimer;
|
|
35
|
+
}
|
|
36
|
+
}, [visible, setTimer, clearTimer]);
|
|
37
|
+
return visible ? children : null;
|
|
38
|
+
});
|
|
39
|
+
//# sourceMappingURL=UnmountAfterDelay.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","UnmountAfterDelay","forwardRef","_ref","ref","delay","children","visible","onUnmount","timeoutId","useRef","setTimer","useCallback","current","clearTimeout","setTimeout","clearTimer","useImperativeHandle","resetTimer","useEffect"],"sourceRoot":"../../../src","sources":["components/UnmountAfterDelay.tsx"],"mappings":"AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAiB9B,OAAO,MAAMC,iBAAiB,gBAAGD,KAAK,CAACE,UAAU,CAG/C,CAAAC,IAAA,EAAiDC,GAAG,KAAK;EAAA,IAAxD;IAAEC,KAAK,GAAG,IAAI;IAAEC,QAAQ;IAAEC,OAAO;IAAEC;EAAU,CAAC,GAAAL,IAAA;EAC/C,MAAMM,SAAS,GAAGT,KAAK,CAACU,MAAM,CAAwB,IAAI,CAAC;EAE3D,MAAMC,QAAQ,GAAGX,KAAK,CAACY,WAAW,CAAC,MAAM;IACvC,IAAIH,SAAS,CAACI,OAAO,EAAE;MACrBC,YAAY,CAACL,SAAS,CAACI,OAAO,CAAC;IACjC;IACAJ,SAAS,CAACI,OAAO,GAAGE,UAAU,CAAC,MAAM;MACnCP,SAAS,CAAC,CAAC;MACXC,SAAS,CAACI,OAAO,GAAG,IAAI;IAC1B,CAAC,EAAER,KAAK,CAAC;EACX,CAAC,EAAE,CAACA,KAAK,CAAC,CAAC;EAEX,MAAMW,UAAU,GAAGhB,KAAK,CAACY,WAAW,CAAC,MAAM;IACzC,IAAIH,SAAS,CAACI,OAAO,EAAE;MACrBC,YAAY,CAACL,SAAS,CAACI,OAAO,CAAC;MAC/BJ,SAAS,CAACI,OAAO,GAAG,IAAI;IAC1B;EACF,CAAC,EAAE,EAAE,CAAC;EAENb,KAAK,CAACiB,mBAAmB,CACvBb,GAAG,EACH,OAAO;IACLc,UAAU,EAAEA,CAAA,KAAM;MAChBF,UAAU,CAAC,CAAC;MACZL,QAAQ,CAAC,CAAC;IACZ;EACF,CAAC,CAAC,EACF,CAACA,QAAQ,CACX,CAAC;EAEDX,KAAK,CAACmB,SAAS,CAAC,MAAM;IACpB,IAAIZ,OAAO,EAAE;MACXI,QAAQ,CAAC,CAAC;MAEV,OAAOK,UAAU;IACnB;EACF,CAAC,EAAE,CAACT,OAAO,EAAEI,QAAQ,EAAEK,UAAU,CAAC,CAAC;EAEnC,OAAOT,OAAO,GAAGD,QAAQ,GAAG,IAAI;AAClC,CAAC,CAAC"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import React, { useMemo } from 'react';
|
|
2
|
+
import { useSelector } from 'react-redux';
|
|
3
|
+
import { MaxTilesInOnePage, PipModes } from '../utils/types';
|
|
4
|
+
import { pairData } from '../utils/functions';
|
|
5
|
+
import { GridView } from './GridView';
|
|
6
|
+
import PIPView from './PIPView';
|
|
7
|
+
import { useIsPortraitOrientation } from '../utils/dimension';
|
|
8
|
+
import { LocalPeerRegularVideoView } from './LocalPeerRegularVideoView';
|
|
9
|
+
import { WelcomeInMeeting } from './WelcomeInMeeting';
|
|
10
|
+
export const WebrtcView = /*#__PURE__*/React.forwardRef((_ref, gridViewRef) => {
|
|
11
|
+
let {
|
|
12
|
+
peerTrackNodes,
|
|
13
|
+
handlePeerTileMorePress
|
|
14
|
+
} = _ref;
|
|
15
|
+
const isPortrait = useIsPortraitOrientation();
|
|
16
|
+
const isPipModeActive = useSelector(state => state.app.pipModeStatus === PipModes.ACTIVE);
|
|
17
|
+
|
|
18
|
+
// State to track active spotlight trackId
|
|
19
|
+
const spotlightTrackId = useSelector(state => state.user.spotlightTrackId);
|
|
20
|
+
const pairedPeers = useMemo(() => pairData(peerTrackNodes, isPortrait ? MaxTilesInOnePage.IN_PORTRAIT : MaxTilesInOnePage.IN_LANDSCAPE, spotlightTrackId), [peerTrackNodes, spotlightTrackId, isPortrait]);
|
|
21
|
+
const canShowTiles = useSelector(state => !!state.app.localPeerTrackNode || pairedPeers.length > 0);
|
|
22
|
+
if (!canShowTiles) {
|
|
23
|
+
return /*#__PURE__*/React.createElement(WelcomeInMeeting, null);
|
|
24
|
+
}
|
|
25
|
+
if (isPipModeActive) {
|
|
26
|
+
return /*#__PURE__*/React.createElement(PIPView, {
|
|
27
|
+
pairedPeers: pairedPeers
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
if (pairedPeers.length > 0) {
|
|
31
|
+
return /*#__PURE__*/React.createElement(GridView, {
|
|
32
|
+
ref: gridViewRef,
|
|
33
|
+
onPeerTileMorePress: handlePeerTileMorePress,
|
|
34
|
+
pairedPeers: pairedPeers
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
return /*#__PURE__*/React.createElement(LocalPeerRegularVideoView, {
|
|
38
|
+
onMoreOptionsPress: handlePeerTileMorePress
|
|
39
|
+
});
|
|
40
|
+
});
|
|
41
|
+
//# sourceMappingURL=WebrtcView.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","useMemo","useSelector","MaxTilesInOnePage","PipModes","pairData","GridView","PIPView","useIsPortraitOrientation","LocalPeerRegularVideoView","WelcomeInMeeting","WebrtcView","forwardRef","_ref","gridViewRef","peerTrackNodes","handlePeerTileMorePress","isPortrait","isPipModeActive","state","app","pipModeStatus","ACTIVE","spotlightTrackId","user","pairedPeers","IN_PORTRAIT","IN_LANDSCAPE","canShowTiles","localPeerTrackNode","length","createElement","ref","onPeerTileMorePress","onMoreOptionsPress"],"sourceRoot":"../../../src","sources":["components/WebrtcView.tsx"],"mappings":"AAAA,OAAOA,KAAK,IAAIC,OAAO,QAAQ,OAAO;AACtC,SAASC,WAAW,QAAQ,aAAa;AAEzC,SAASC,iBAAiB,EAAEC,QAAQ,QAAQ,gBAAgB;AAE5D,SAASC,QAAQ,Q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,CAAC,EAAE;IAC1B,oBACE9B,KAAA,CAAA+B,aAAA,CAACzB,QAAQ;MACP0B,GAAG,EAAElB,WAAY;MACjBmB,mBAAmB,EAAEjB,uBAAwB;MAC7CS,WAAW,EAAEA;IAAY,CAC1B,CAAC;EAEN;EAEA,oBACEzB,KAAA,CAAA+B,aAAA,CAACtB,yBAAyB;IAACyB,kBAAkB,EAAElB;EAAwB,CAAE,CAAC;AAE9E,CACF,CAAC"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { View, Text, StyleSheet } from 'react-native';
|
|
3
|
+
import { useHMSRoomStyleSheet } from '../hooks-util';
|
|
4
|
+
export const WelcomeInMeeting = () => {
|
|
5
|
+
const hmsRoomStyles = useHMSRoomStyleSheet((theme, typography) => ({
|
|
6
|
+
heading: {
|
|
7
|
+
fontFamily: `${typography.font_family}-Bold`,
|
|
8
|
+
color: theme.palette.on_surface_high
|
|
9
|
+
},
|
|
10
|
+
description: {
|
|
11
|
+
fontFamily: `${typography.font_family}-Medium`,
|
|
12
|
+
color: theme.palette.on_surface_medium
|
|
13
|
+
}
|
|
14
|
+
}));
|
|
15
|
+
return /*#__PURE__*/React.createElement(View, {
|
|
16
|
+
style: styles.container
|
|
17
|
+
}, /*#__PURE__*/React.createElement(Text, {
|
|
18
|
+
style: [styles.heading, hmsRoomStyles.heading]
|
|
19
|
+
}, "Welcome!"), /*#__PURE__*/React.createElement(Text, {
|
|
20
|
+
style: [styles.description, hmsRoomStyles.description]
|
|
21
|
+
}, "You're the first one here."), /*#__PURE__*/React.createElement(Text, {
|
|
22
|
+
style: [styles.description, hmsRoomStyles.description]
|
|
23
|
+
}, "Sit back and relax till the others join."));
|
|
24
|
+
};
|
|
25
|
+
const styles = StyleSheet.create({
|
|
26
|
+
container: {
|
|
27
|
+
flex: 1,
|
|
28
|
+
alignItems: 'center',
|
|
29
|
+
justifyContent: 'center'
|
|
30
|
+
},
|
|
31
|
+
heading: {
|
|
32
|
+
fontSize: 28,
|
|
33
|
+
lineHeight: 36,
|
|
34
|
+
letterSpacing: 0.1,
|
|
35
|
+
textAlign: 'center',
|
|
36
|
+
paddingBottom: 32
|
|
37
|
+
},
|
|
38
|
+
description: {
|
|
39
|
+
fontSize: 16,
|
|
40
|
+
lineHeight: 24,
|
|
41
|
+
letterSpacing: 0.15,
|
|
42
|
+
textAlign: 'center'
|
|
43
|
+
}
|
|
44
|
+
});
|
|
45
|
+
//# sourceMappingURL=WelcomeInMeeting.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","View","Text","StyleSheet","useHMSRoomStyleSheet","WelcomeInMeeting","hmsRoomStyles","theme","typography","heading","fontFamily","font_family","color","palette","on_surface_high","description","on_surface_medium","createElement","style","styles","container","create","flex","alignItems","justifyContent","fontSize","lineHeight","letterSpacing","textAlign","paddingBottom"],"sourceRoot":"../../../src","sources":["components/WelcomeInMeeting.tsx"],"mappings":"AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,SAASC,IAAI,EAAEC,IAAI,EAAEC,UAAU,QAAQ,cAAc;AAErD,SAASC,oBAAoB,QAAQ,eAAe;AAIpD,OAAO,MAAMC,gBAAiD,GAAGA,CAAA,KAAM;EACrE,MAAMC,aAAa,GAAGF,oBAAoB,CAAC,CAACG,KAAK,EAAEC,UAAU,MAAM;IACjEC,OAAO,EAAE;MACPC,UAAU,EAAG,GAAEF,UAAU,CAACG,WAAY,OAAM;MAC5CC,KAAK,EAAEL,KAAK,CAACM,OAAO,CAACC;IACvB,CAAC;IACDC,WAAW,EAAE;MACXL,UAAU,EAAG,GAAEF,UAAU,CAACG,WAAY,SAAQ;MAC9CC,KAAK,EAAEL,KAAK,CAACM,OAAO,CAACG;IACvB;EACF,CAAC,CAAC,CAAC;EAEH,oBACEhB,KAAA,CAAAiB,aAAA,CAAChB,IAAI;IAACiB,KAAK,EAAEC,MAAM,CAACC;EAAU,gBAC5BpB,KAAA,CAAAiB,aAAA,CAACf,IAAI;IAACgB,KAAK,EAAE,CAACC,MAAM,CAACV,OAAO,EAAEH,aAAa,CAACG,OAAO;EAAE,GAAC,UAAc,CAAC,eACrET,KAAA,CAAAiB,aAAA,CAACf,IAAI;IAACgB,KAAK,EAAE,CAACC,MAAM,CAACJ,WAAW,EAAET,aAAa,CAACS,WAAW;EAAE,GAAC,4BAExD,CAAC,eACPf,KAAA,CAAAiB,aAAA,CAACf,IAAI;IAACgB,KAAK,EAAE,CAACC,MAAM,CAACJ,WAAW,EAAET,aAAa,CAACS,WAAW;EAAE,GAAC,0CAExD,CACF,CAAC;AAEX,CAAC;AAED,MAAMI,MAAM,GAAGhB,UAAU,CAACkB,MAAM,CAAC;EAC/BD,SAAS,EAAE;IACTE,IAAI,EAAE,CAAC;IACPC,UAAU,EAAE,QAAQ;IACpBC,cAAc,EAAE;EAClB,CAAC;EACDf,OAAO,EAAE;IACPgB,QAAQ,EAAE,EAAE;IACZC,UAAU,EAAE,EAAE;IACdC,aAAa,EAAE,GAAG;IAClBC,SAAS,EAAE,QAAQ;IACnBC,aAAa,EAAE;EACjB,CAAC;EACDd,WAAW,EAAE;IACXU,QAAQ,EAAE,EAAE;IACZC,UAAU,EAAE,EAAE;IACdC,aAAa,EAAE,IAAI;IACnBC,SAAS,EAAE;EACb;AACF,CAAC,CAAC"}
|
|
@@ -6,4 +6,8 @@ export const selectCanPublishTrack = (state, track) => {
|
|
|
6
6
|
var _selectAllowedTracksT;
|
|
7
7
|
return ((_selectAllowedTracksT = selectAllowedTracksToPublish(state)) === null || _selectAllowedTracksT === void 0 ? void 0 : _selectAllowedTracksT.includes(track)) ?? false;
|
|
8
8
|
};
|
|
9
|
+
export const selectCanPublishTrackForRole = (role, track) => {
|
|
10
|
+
var _role$publishSettings;
|
|
11
|
+
return (role === null || role === void 0 || (_role$publishSettings = role.publishSettings) === null || _role$publishSettings === void 0 || (_role$publishSettings = _role$publishSettings.allowed) === null || _role$publishSettings === void 0 ? void 0 : _role$publishSettings.includes(track)) ?? false;
|
|
12
|
+
};
|
|
9
13
|
//# sourceMappingURL=hooks-sdk-selectors.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["selectAllowedTracksToPublish","state","_state$hmsStates$loca","hmsStates","localPeer","role","publishSettings","allowed","selectCanPublishTrack","track","_selectAllowedTracksT","includes"],"sourceRoot":"../../src","sources":["hooks-sdk-selectors.tsx"],"mappings":"
|
|
1
|
+
{"version":3,"names":["selectAllowedTracksToPublish","state","_state$hmsStates$loca","hmsStates","localPeer","role","publishSettings","allowed","selectCanPublishTrack","track","_selectAllowedTracksT","includes","selectCanPublishTrackForRole","_role$publishSettings"],"sourceRoot":"../../src","sources":["hooks-sdk-selectors.tsx"],"mappings":"AAIA,OAAO,MAAMA,4BAA4B,GAAIC,KAAgB;EAAA,IAAAC,qBAAA;EAAA,QAAAA,qBAAA,GAC3DD,KAAK,CAACE,SAAS,CAACC,SAAS,cAAAF,qBAAA,gBAAAA,qBAAA,GAAzBA,qBAAA,CAA2BG,IAAI,cAAAH,qBAAA,gBAAAA,qBAAA,GAA/BA,qBAAA,CAAiCI,eAAe,cAAAJ,qBAAA,uBAAhDA,qBAAA,CAAkDK,OAAO;AAAA;AAE3D,OAAO,MAAMC,qBAAqB,GAAGA,CACnCP,KAAgB,EAChBQ,KAAmC;EAAA,IAAAC,qBAAA;EAAA,OAChC,EAAAA,qBAAA,GAAAV,4BAA4B,CAACC,KAAK,CAAC,cAAAS,qBAAA,uBAAnCA,qBAAA,CAAqCC,QAAQ,CAACF,KAAK,CAAC,KAAI,KAAK;AAAA;AAElE,OAAO,MAAMG,4BAA4B,GAAGA,CAC1CP,IAAyB,EACzBI,KAAmC;EAAA,IAAAI,qBAAA;EAAA,OAChC,CAAAR,IAAI,aAAJA,IAAI,gBAAAQ,qBAAA,GAAJR,IAAI,CAAEC,eAAe,cAAAO,qBAAA,gBAAAA,qBAAA,GAArBA,qBAAA,CAAuBN,OAAO,cAAAM,qBAAA,uBAA9BA,qBAAA,CAAgCF,QAAQ,CAACF,KAAK,CAAC,KAAI,KAAK;AAAA"}
|
package/lib/module/hooks-sdk.js
CHANGED
|
@@ -104,12 +104,27 @@ export const useHMSActions = () => {
|
|
|
104
104
|
return Promise.reject(error);
|
|
105
105
|
}
|
|
106
106
|
}, []);
|
|
107
|
+
const changeName = useCallback(async name => {
|
|
108
|
+
const state = store.getState();
|
|
109
|
+
const hmsInstance = state.user.hmsInstance;
|
|
110
|
+
if (!hmsInstance) {
|
|
111
|
+
return Promise.reject('HMSSDK Instance is not available!');
|
|
112
|
+
}
|
|
113
|
+
try {
|
|
114
|
+
const result = await hmsInstance.changeName(name);
|
|
115
|
+
console.log('Change Name Success: ', result);
|
|
116
|
+
} catch (error) {
|
|
117
|
+
console.log('Change Name Error: ', error);
|
|
118
|
+
return Promise.reject(error);
|
|
119
|
+
}
|
|
120
|
+
}, []);
|
|
107
121
|
return {
|
|
108
122
|
setLocalAudioEnabled,
|
|
109
123
|
setLocalVideoEnabled,
|
|
110
124
|
switchCamera,
|
|
111
125
|
setScreenShareEnabled,
|
|
112
|
-
changeMetadata
|
|
126
|
+
changeMetadata,
|
|
127
|
+
changeName
|
|
113
128
|
};
|
|
114
129
|
};
|
|
115
130
|
//# sourceMappingURL=hooks-sdk.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["useDispatch","useSelector","useStore","setIsLocalAudioMutedState","setIsLocalScreenSharedState","setIsLocalVideoMutedState","selectAllowedTracksToPublish","selectCanPublishTrack","useCallback","useAllowedTracksToPublish","useCanPublishAudio","state","useCanPublishVideo","useCanPublishScreen","useHMSActions","dispatch","store","setLocalAudioEnabled","enable","getState","localPeer","hmsStates","Promise","reject","localAudioTrack","setMute","error","setLocalVideoEnabled","localVideoTrack","switchCamera","setScreenShareEnabled","hmsInstance","user","result","startScreenshare","console","log","stopScreenshare","changeMetadata","metadata","parsedMetadata","JSON","stringify"],"sourceRoot":"../../src","sources":["hooks-sdk.ts"],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+B,QAAyB,IAAK;IACtE,MAAM5B,KAAgB,GAAGK,KAAK,CAACG,QAAQ,CAAC,CAAC;IACzC,MAAMY,WAAW,GAAGpB,KAAK,CAACqB,IAAI,CAACD,WAAW;IAE1C,IAAI,CAACA,WAAW,EAAE;MAChB,OAAOT,OAAO,CAACC,MAAM,CAAC,mCAAmC,CAAC;IAC5D;IAEA,IAAI;MACF,MAAMiB,cAAc,GAClB,OAAOD,QAAQ,KAAK,QAAQ,GAAGA,QAAQ,GAAGE,IAAI,CAACC,SAAS,CAACH,QAAQ,CAAC;MACpE,MAAMN,MAAM,GAAG,MAAMF,WAAW,CAACO,cAAc,CAACE,cAAc,CAAC;MAC/DL,OAAO,CAACC,GAAG,CAAC,2BAA2B,EAAEH,MAAM,CAAC;IAClD,CAAC,CAAC,OAAOP,KAAK,EAAE;MACdS,OAAO,CAACC,GAAG,CAAC,yBAAyB,EAAEV,KAAK,CAAC;MAC7C,OAAOJ,OAAO,CAACC,MAAM,CAACG,KAAK,CAAC;IAC9B;EACF,CAAC,EAAE,EAAE,CAAC;EAEN,OAAO;IACLT,oBAAoB;IACpBU,oBAAoB;IACpBE,YAAY;IACZC,qBAAqB;IACrBQ;EACF,CAAC;AACH,CAAC"}
|
|
1
|
+
{"version":3,"names":["useDispatch","useSelector","useStore","setIsLocalAudioMutedState","setIsLocalScreenSharedState","setIsLocalVideoMutedState","selectAllowedTracksToPublish","selectCanPublishTrack","useCallback","useAllowedTracksToPublish","useCanPublishAudio","state","useCanPublishVideo","useCanPublishScreen","useHMSActions","dispatch","store","setLocalAudioEnabled","enable","getState","localPeer","hmsStates","Promise","reject","localAudioTrack","setMute","error","setLocalVideoEnabled","localVideoTrack","switchCamera","setScreenShareEnabled","hmsInstance","user","result","startScreenshare","console","log","stopScreenshare","changeMetadata","metadata","parsedMetadata","JSON","stringify","changeName","name"],"sourceRoot":"../../src","sources":["hooks-sdk.ts"],"mappings":"AAAA,SAASA,WAAW,EAAEC,WAAW,EAAEC,QAAQ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pBU,oBAAoB;IACpBE,YAAY;IACZC,qBAAqB;IACrBQ,cAAc;IACdK;EACF,CAAC;AACH,CAAC"}
|
|
@@ -1,11 +1,17 @@
|
|
|
1
|
+
import { JoinForm_JoinBtnType } from '@100mslive/types-prebuilt/elements/join_form';
|
|
1
2
|
export const selectIsHLSViewer = peer => {
|
|
2
3
|
var _peer$role;
|
|
3
4
|
return (peer === null || peer === void 0 || (_peer$role = peer.role) === null || _peer$role === void 0 || (_peer$role = _peer$role.name) === null || _peer$role === void 0 ? void 0 : _peer$role.includes('hls')) ?? false;
|
|
4
5
|
};
|
|
5
6
|
export const selectShouldGoLive = state => {
|
|
6
|
-
var _state$hmsStates$room, _state$hmsStates$loca;
|
|
7
|
+
var _state$hmsStates$room, _layoutConfig$screens, _state$hmsStates$loca;
|
|
8
|
+
const layoutConfig = state.hmsStates.layoutConfig;
|
|
7
9
|
const isHLSStreaming = (_state$hmsStates$room = state.hmsStates.room) === null || _state$hmsStates$room === void 0 ? void 0 : _state$hmsStates$room.hlsStreamingState.running;
|
|
8
|
-
const
|
|
10
|
+
const joinButtonType = layoutConfig === null || layoutConfig === void 0 || (_layoutConfig$screens = layoutConfig.screens) === null || _layoutConfig$screens === void 0 || (_layoutConfig$screens = _layoutConfig$screens.preview) === null || _layoutConfig$screens === void 0 || (_layoutConfig$screens = _layoutConfig$screens.default) === null || _layoutConfig$screens === void 0 || (_layoutConfig$screens = _layoutConfig$screens.elements) === null || _layoutConfig$screens === void 0 || (_layoutConfig$screens = _layoutConfig$screens.join_form) === null || _layoutConfig$screens === void 0 ? void 0 : _layoutConfig$screens.join_btn_type;
|
|
11
|
+
const canStartHLSStreaming = joinButtonType === JoinForm_JoinBtnType.JOIN_BTN_TYPE_JOIN_AND_GO_LIVE || joinButtonType === JoinForm_JoinBtnType.JOIN_BTN_TYPE_JOIN_ONLY ?
|
|
12
|
+
// can start if `joinButtonType` is `JOIN_BTN_TYPE_JOIN_AND_GO_LIVE`
|
|
13
|
+
joinButtonType === JoinForm_JoinBtnType.JOIN_BTN_TYPE_JOIN_AND_GO_LIVE : // Check if the Role has permission to start HLS Stream
|
|
14
|
+
(_state$hmsStates$loca = state.hmsStates.localPeer) === null || _state$hmsStates$loca === void 0 || (_state$hmsStates$loca = _state$hmsStates$loca.role) === null || _state$hmsStates$loca === void 0 || (_state$hmsStates$loca = _state$hmsStates$loca.permissions) === null || _state$hmsStates$loca === void 0 ? void 0 : _state$hmsStates$loca.hlsStreaming;
|
|
9
15
|
return canStartHLSStreaming && !isHLSStreaming;
|
|
10
16
|
};
|
|
11
17
|
//# sourceMappingURL=hooks-util-selectors.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["selectIsHLSViewer","peer","_peer$role","role","name","includes","selectShouldGoLive","state","_state$hmsStates$room","_state$hmsStates$loca","
|
|
1
|
+
{"version":3,"names":["JoinForm_JoinBtnType","selectIsHLSViewer","peer","_peer$role","role","name","includes","selectShouldGoLive","state","_state$hmsStates$room","_layoutConfig$screens","_state$hmsStates$loca","layoutConfig","hmsStates","isHLSStreaming","room","hlsStreamingState","running","joinButtonType","screens","preview","default","elements","join_form","join_btn_type","canStartHLSStreaming","JOIN_BTN_TYPE_JOIN_AND_GO_LIVE","JOIN_BTN_TYPE_JOIN_ONLY","localPeer","permissions","hlsStreaming"],"sourceRoot":"../../src","sources":["hooks-util-selectors.tsx"],"mappings":"AACA,SAASA,oBAAoB,QAAQ,8CAA8C;AAInF,OAAO,MAAMC,iBAAiB,GAAIC,IAAgC;EAAA,IAAAC,UAAA;EAAA,OAChE,CAAAD,IAAI,aAAJA,IAAI,gBAAAC,UAAA,GAAJD,IAAI,CAAEE,IAAI,cAAAD,UAAA,gBAAAA,UAAA,GAAVA,UAAA,CAAYE,IAAI,cAAAF,UAAA,uBAAhBA,UAAA,CAAkBG,QAAQ,CAAC,KAAK,CAAC,KAAI,KAAK;AAAA;AAE5C,OAAO,MAAMC,kBAAkB,GAAIC,KAAgB,IAAK;EAAA,IAA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