@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
|
@@ -5,107 +5,46 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.Tile = void 0;
|
|
7
7
|
var _react = _interopRequireDefault(require("react"));
|
|
8
|
+
var _reactRedux = require("react-redux");
|
|
8
9
|
var _reactNative = require("react-native");
|
|
9
10
|
var _reactNativeHms = require("@100mslive/react-native-hms");
|
|
10
|
-
var
|
|
11
|
-
var
|
|
12
|
-
var
|
|
13
|
-
var _functions = require("../utils/functions");
|
|
14
|
-
var _DisplayTrack = require("./DisplayTrack");
|
|
15
|
-
var _theme = require("../utils/theme");
|
|
16
|
-
var _dimension = require("../utils/dimension");
|
|
11
|
+
var _PeerRTCStatsContainer = _interopRequireDefault(require("./PeerRTCStatsContainer"));
|
|
12
|
+
var _LocalPeerScreenshareView = require("./LocalPeerScreenshareView");
|
|
13
|
+
var _PeerVideoTileView = require("./PeerVideoTile/PeerVideoTileView");
|
|
17
14
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
18
|
-
const
|
|
19
|
-
var _peerTrackNode$
|
|
15
|
+
const _Tile = _ref => {
|
|
16
|
+
var _peerTrackNode$track, _peerTrackNode$track2, _peerTrackNode$track3;
|
|
20
17
|
let {
|
|
18
|
+
aspectRatio,
|
|
19
|
+
width,
|
|
20
|
+
height,
|
|
21
21
|
onPeerTileMorePress,
|
|
22
22
|
peerTrackNode,
|
|
23
|
-
|
|
24
|
-
|
|
23
|
+
setHmsViewRefs,
|
|
24
|
+
style
|
|
25
25
|
} = _ref;
|
|
26
|
-
const
|
|
27
|
-
const
|
|
28
|
-
const
|
|
29
|
-
width: '100%',
|
|
30
|
-
height: '100%'
|
|
31
|
-
};
|
|
32
|
-
const twoTileStyle = {
|
|
33
|
-
width: '100%',
|
|
34
|
-
height: '50%'
|
|
35
|
-
};
|
|
36
|
-
const threeTileStyle = {
|
|
37
|
-
width: '100%',
|
|
38
|
-
height: '33.3333%'
|
|
39
|
-
};
|
|
40
|
-
const fourTileStyle = {
|
|
41
|
-
width: '50%',
|
|
42
|
-
height: '50%'
|
|
43
|
-
};
|
|
44
|
-
const oneTileStyleLandscape = {
|
|
45
|
-
width: '100%',
|
|
46
|
-
height: '100%'
|
|
47
|
-
};
|
|
48
|
-
const twoTileStyleLandscape = {
|
|
49
|
-
width: '50%',
|
|
50
|
-
height: '100%'
|
|
51
|
-
};
|
|
52
|
-
const threeTileStyleLandscape = {
|
|
53
|
-
width: '33.3333%',
|
|
54
|
-
height: '100%'
|
|
55
|
-
};
|
|
56
|
-
const fourTileStyleLandscape = {
|
|
57
|
-
width: '50%',
|
|
58
|
-
height: '50%'
|
|
59
|
-
};
|
|
26
|
+
const showStatsOnTiles = (0, _reactRedux.useSelector)(state => state.app.joinConfig.showStats);
|
|
27
|
+
const trackSource = (_peerTrackNode$track = peerTrackNode.track) === null || _peerTrackNode$track === void 0 ? void 0 : _peerTrackNode$track.source;
|
|
28
|
+
const isNonRegularTrack = trackSource && trackSource !== _reactNativeHms.HMSTrackSource.REGULAR;
|
|
60
29
|
return /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
61
30
|
style: [{
|
|
62
|
-
|
|
63
|
-
},
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
31
|
+
position: 'relative'
|
|
32
|
+
}, {
|
|
33
|
+
width,
|
|
34
|
+
height,
|
|
35
|
+
aspectRatio
|
|
36
|
+
}, style]
|
|
37
|
+
}, isNonRegularTrack && peerTrackNode.peer.isLocal ? /*#__PURE__*/_react.default.createElement(_LocalPeerScreenshareView.LocalPeerScreenshareView, null) : /*#__PURE__*/_react.default.createElement(_PeerVideoTileView.PeerVideoTileView, {
|
|
67
38
|
ref: ref => setHmsViewRefs(peerTrackNode.id, ref),
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
}, /*#__PURE__*/_react.default.createElement(_reactNative.TouchableOpacity, {
|
|
76
|
-
onPress: () => onPeerTileMorePress(peerTrackNode),
|
|
77
|
-
style: {
|
|
78
|
-
padding: 8,
|
|
79
|
-
backgroundColor: _theme.COLORS.SECONDARY.DISABLED,
|
|
80
|
-
borderRadius: 18
|
|
81
|
-
}
|
|
82
|
-
}, /*#__PURE__*/_react.default.createElement(_Feather.default, {
|
|
83
|
-
name: "more-horizontal",
|
|
84
|
-
style: _styles.styles.mic,
|
|
85
|
-
size: 20
|
|
86
|
-
}))), (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.default.createElement(_reactNative.View, {
|
|
87
|
-
style: _styles.styles.micContainer
|
|
88
|
-
}, /*#__PURE__*/_react.default.createElement(_Feather.default, {
|
|
89
|
-
name: "mic-off",
|
|
90
|
-
style: _styles.styles.mic,
|
|
91
|
-
size: 20
|
|
92
|
-
})), parsedMetadata !== null && parsedMetadata !== void 0 && parsedMetadata.isBRBOn ? /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
93
|
-
style: _styles.styles.status
|
|
94
|
-
}, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
95
|
-
style: _styles.styles.brbOnContainer
|
|
96
|
-
}, /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
97
|
-
style: _styles.styles.brbOn
|
|
98
|
-
}, "BRB"))) : null, parsedMetadata !== null && parsedMetadata !== void 0 && parsedMetadata.isHandRaised ? /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
99
|
-
style: _styles.styles.status
|
|
100
|
-
}, /*#__PURE__*/_react.default.createElement(_Ionicons.default, {
|
|
101
|
-
name: "hand-left",
|
|
102
|
-
style: {
|
|
103
|
-
color: _theme.COLORS.TWIN.YELLOW
|
|
104
|
-
},
|
|
105
|
-
size: 20
|
|
106
|
-
})) : null);
|
|
39
|
+
peerTrackNode: peerTrackNode,
|
|
40
|
+
onMoreOptionsPress: onPeerTileMorePress
|
|
41
|
+
}), showStatsOnTiles ? /*#__PURE__*/_react.default.createElement(_PeerRTCStatsContainer.default, {
|
|
42
|
+
trackId: (_peerTrackNode$track2 = peerTrackNode.track) === null || _peerTrackNode$track2 === void 0 ? void 0 : _peerTrackNode$track2.trackId,
|
|
43
|
+
peerId: peerTrackNode.peer.peerID,
|
|
44
|
+
trackSource: (_peerTrackNode$track3 = peerTrackNode.track) === null || _peerTrackNode$track3 === void 0 ? void 0 : _peerTrackNode$track3.source
|
|
45
|
+
}) : null);
|
|
107
46
|
};
|
|
108
|
-
const Tile = /*#__PURE__*/_react.default.memo(
|
|
47
|
+
const Tile = /*#__PURE__*/_react.default.memo(_Tile);
|
|
109
48
|
exports.Tile = Tile;
|
|
110
49
|
Tile.displayName = 'Tile';
|
|
111
50
|
//# sourceMappingURL=Tile.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireDefault","require","
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireDefault","require","_reactRedux","_reactNative","_reactNativeHms","_PeerRTCStatsContainer","_LocalPeerScreenshareView","_PeerVideoTileView","obj","__esModule","default","_Tile","_ref","_peerTrackNode$track","_peerTrackNode$track2","_peerTrackNode$track3","aspectRatio","width","height","onPeerTileMorePress","peerTrackNode","setHmsViewRefs","style","showStatsOnTiles","useSelector","state","app","joinConfig","showStats","trackSource","track","source","isNonRegularTrack","HMSTrackSource","REGULAR","createElement","View","position","peer","isLocal","LocalPeerScreenshareView","PeerVideoTileView","ref","id","onMoreOptionsPress","trackId","peerId","peerID","Tile","React","memo","exports","displayName"],"sourceRoot":"../../../src","sources":["components/Tile.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,WAAA,GAAAD,OAAA;AACA,IAAAE,YAAA,GAAAF,OAAA;AAEA,IAAAG,eAAA,GAAAH,OAAA;AAIA,IAAAI,sBAAA,GAAAL,sBAAA,CAAAC,OAAA;AAEA,IAAAK,yBAAA,GAAAL,OAAA;AACA,IAAAM,kBAAA,GAAAN,OAAA;AAAsE,SAAAD,uBAAAQ,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AAoBtE,MAAMG,KAA0B,GAAGC,IAAA,IAQ7B;EAAA,IAAAC,oBAAA,EAAAC,qBAAA,EAAAC,q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IAAI,CAACS,MAAO;IAClClB,WAAW,GAAAd,qBAAA,GAAEK,aAAa,CAACU,KAAK,cAAAf,qBAAA,uBAAnBA,qBAAA,CAAqBgB;EAAO,CAC1C,CAAC,GACA,IACA,CAAC;AAEX,CAAC;AAED,MAAMiB,IAAI,gBAAGC,cAAK,CAACC,IAAI,CAACvC,KAAK,CAAC;AAACwC,OAAA,CAAAH,IAAA,GAAAA,IAAA;AAE/BA,IAAI,CAACI,WAAW,GAAG,MAAM"}
|
|
@@ -7,10 +7,11 @@ exports.TilesContainer = void 0;
|
|
|
7
7
|
var _react = _interopRequireDefault(require("react"));
|
|
8
8
|
var _reactNative = require("react-native");
|
|
9
9
|
var _reactNativeSafeAreaContext = require("react-native-safe-area-context");
|
|
10
|
-
var _styles = require("./styles");
|
|
11
10
|
var _Tile = require("./Tile");
|
|
11
|
+
var _dimension = require("../utils/dimension");
|
|
12
|
+
var _functions = require("../utils/functions");
|
|
12
13
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
|
-
const
|
|
14
|
+
const _TilesContainer = _ref => {
|
|
14
15
|
let {
|
|
15
16
|
peerTrackNodes,
|
|
16
17
|
setHmsViewRefs,
|
|
@@ -20,19 +21,107 @@ const TilesContainerUnmemoized = _ref => {
|
|
|
20
21
|
left,
|
|
21
22
|
right
|
|
22
23
|
} = (0, _reactNativeSafeAreaContext.useSafeAreaInsets)();
|
|
24
|
+
const isLandscapeOrientation = (0, _dimension.useIsLandscapeOrientation)();
|
|
25
|
+
const stylesConfig = computeTileWidthAndHeight(peerTrackNodes.length, isLandscapeOrientation);
|
|
26
|
+
|
|
27
|
+
// In this layout, Tile will take as much height and width as possible
|
|
28
|
+
// Width and Height of Tile are independent of each other
|
|
29
|
+
const growableTileLayout = peerTrackNodes.length <= 4;
|
|
23
30
|
return /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
24
|
-
style: [
|
|
31
|
+
style: [
|
|
32
|
+
// If tile are growable, then we want whatever remaining space to be between them
|
|
33
|
+
{
|
|
34
|
+
justifyContent: growableTileLayout ? 'space-between' : 'center'
|
|
35
|
+
}, {
|
|
25
36
|
width: _reactNative.Dimensions.get('window').width - left - right
|
|
26
37
|
}]
|
|
27
|
-
}, peerTrackNodes
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
38
|
+
}, peerTrackNodes.length <= 3 ?
|
|
39
|
+
/*#__PURE__*/
|
|
40
|
+
// Use 1 Column Layout
|
|
41
|
+
_react.default.createElement(_react.default.Fragment, null, peerTrackNodes.map(peerTrackNode => {
|
|
42
|
+
return /*#__PURE__*/_react.default.createElement(_Tile.Tile, {
|
|
43
|
+
key: peerTrackNode.id,
|
|
44
|
+
setHmsViewRefs: setHmsViewRefs,
|
|
45
|
+
onPeerTileMorePress: onPeerTileMorePress,
|
|
46
|
+
peerTrackNode: peerTrackNode,
|
|
47
|
+
height: stylesConfig.height,
|
|
48
|
+
width: stylesConfig.width,
|
|
49
|
+
aspectRatio: stylesConfig.aspectRatio
|
|
50
|
+
});
|
|
51
|
+
})) :
|
|
52
|
+
/*#__PURE__*/
|
|
53
|
+
// Use Grid Layout
|
|
54
|
+
_react.default.createElement(_react.default.Fragment, null, (0, _functions.groupIntoPairs)(peerTrackNodes.length).map((pair, idx) => {
|
|
55
|
+
const peerTrackNodesPair = pair.map(nodeIndex => peerTrackNodes[nodeIndex]);
|
|
56
|
+
const isFirstPairGroup = idx === 0;
|
|
57
|
+
return /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
58
|
+
key: peerTrackNodesPair.map(peerTrackNode => peerTrackNode.id).join(','),
|
|
59
|
+
style: {
|
|
60
|
+
justifyContent: peerTrackNodesPair.length === 1 ? 'center' : 'space-between',
|
|
61
|
+
flexDirection: 'row',
|
|
62
|
+
flex: growableTileLayout ? 1 : 0,
|
|
63
|
+
marginTop: isFirstPairGroup ? 0 : 8
|
|
64
|
+
}
|
|
65
|
+
}, peerTrackNodesPair.map(peerTrackNode => {
|
|
66
|
+
return /*#__PURE__*/_react.default.createElement(_Tile.Tile, {
|
|
67
|
+
key: peerTrackNode.id,
|
|
68
|
+
setHmsViewRefs: setHmsViewRefs,
|
|
69
|
+
onPeerTileMorePress: onPeerTileMorePress,
|
|
70
|
+
peerTrackNode: peerTrackNode,
|
|
71
|
+
height: stylesConfig.height,
|
|
72
|
+
width: stylesConfig.width,
|
|
73
|
+
aspectRatio: stylesConfig.aspectRatio
|
|
74
|
+
});
|
|
75
|
+
}));
|
|
33
76
|
})));
|
|
34
77
|
};
|
|
35
|
-
const TilesContainer = /*#__PURE__*/_react.default.memo(
|
|
78
|
+
const TilesContainer = /*#__PURE__*/_react.default.memo(_TilesContainer);
|
|
36
79
|
exports.TilesContainer = TilesContainer;
|
|
37
80
|
TilesContainer.displayName = 'TilesContainer';
|
|
81
|
+
// Utility Functions
|
|
82
|
+
|
|
83
|
+
const oneTileStyle = {
|
|
84
|
+
width: '100%',
|
|
85
|
+
height: '100%'
|
|
86
|
+
}; // 1 Column Layout
|
|
87
|
+
const twoTileStyle = {
|
|
88
|
+
width: '100%',
|
|
89
|
+
height: '49.4444%'
|
|
90
|
+
}; // 1 Column Layout
|
|
91
|
+
const threeTileStyle = {
|
|
92
|
+
width: '100%',
|
|
93
|
+
height: '32.6666%'
|
|
94
|
+
}; // 1 Column Layout
|
|
95
|
+
|
|
96
|
+
const fourTileStyle = {
|
|
97
|
+
width: '49%',
|
|
98
|
+
height: '100%'
|
|
99
|
+
}; // Grid Layout when Width and Height has no-correlatiom
|
|
100
|
+
const fiveAndSixTileStyle = {
|
|
101
|
+
width: '49%',
|
|
102
|
+
aspectRatio: 1
|
|
103
|
+
}; // Grid Layout when width and Height as fixed aspectRatio
|
|
104
|
+
|
|
105
|
+
const oneTileStyleLandscape = {
|
|
106
|
+
width: '100%',
|
|
107
|
+
height: '100%'
|
|
108
|
+
};
|
|
109
|
+
const twoTileStyleLandscape = {
|
|
110
|
+
width: '50%',
|
|
111
|
+
height: '100%'
|
|
112
|
+
};
|
|
113
|
+
const threeTileStyleLandscape = {
|
|
114
|
+
width: '33.3333%',
|
|
115
|
+
height: '100%'
|
|
116
|
+
};
|
|
117
|
+
const fourTileStyleLandscape = {
|
|
118
|
+
width: '50%',
|
|
119
|
+
height: '50%'
|
|
120
|
+
};
|
|
121
|
+
function computeTileWidthAndHeight(totalTiles, isLandscapeOrientation) {
|
|
122
|
+
return (isLandscapeOrientation ? [oneTileStyleLandscape, twoTileStyleLandscape, threeTileStyleLandscape, fourTileStyleLandscape][Math.min(totalTiles - 1, 3)] : [oneTileStyle, twoTileStyle, threeTileStyle, fourTileStyle, fiveAndSixTileStyle][Math.min(totalTiles - 1, 4)]) || {
|
|
123
|
+
width: '100%',
|
|
124
|
+
height: '100%'
|
|
125
|
+
};
|
|
126
|
+
}
|
|
38
127
|
//# sourceMappingURL=TilesContainer.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_reactNativeSafeAreaContext","
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_reactNativeSafeAreaContext","_Tile","_dimension","_functions","obj","__esModule","default","_TilesContainer","_ref","peerTrackNodes","setHmsViewRefs","onPeerTileMorePress","left","right","useSafeAreaInsets","isLandscapeOrientation","useIsLandscapeOrientation","stylesConfig","computeTileWidthAndHeight","length","growableTileLayout","createElement","View","style","justifyContent","width","Dimensions","get","Fragment","map","peerTrackNode","Tile","key","id","height","aspectRatio","groupIntoPairs","pair","idx","peerTrackNodesPair","nodeIndex","isFirstPairGroup","join","flexDirection","flex","marginTop","TilesContainer","React","memo","exports","displayName","oneTileStyle","twoTileStyle","threeTileStyle","fourTileStyle","fiveAndSixTileStyle","oneTileStyleLandscape","twoTileStyleLandscape","threeTileStyleLandscape","fourTileStyleLandscape","totalTiles","Math","min"],"sourceRoot":"../../../src","sources":["components/TilesContainer.tsx"],"mappings":";;;;;;AAAA,IAA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AAE;AAAM,CAAC;AAE9D,SAAShB,yBAAyBA,CAChC0C,UAAkB,EAClB7C,sBAA+B,EAK/B;EACA,OACE,CAACA,sBAAsB,GACnB,CACEyC,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;IAAEnC,KAAK,EAAE,MAAM;IAAES,MAAM,EAAE;EAAO,CAAC;AAE5E"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.UnmountAfterDelay = void 0;
|
|
7
|
+
var React = _interopRequireWildcard(require("react"));
|
|
8
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
9
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
10
|
+
const UnmountAfterDelay = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
11
|
+
let {
|
|
12
|
+
delay = 4000,
|
|
13
|
+
children,
|
|
14
|
+
visible,
|
|
15
|
+
onUnmount
|
|
16
|
+
} = _ref;
|
|
17
|
+
const timeoutId = React.useRef(null);
|
|
18
|
+
const setTimer = React.useCallback(() => {
|
|
19
|
+
if (timeoutId.current) {
|
|
20
|
+
clearTimeout(timeoutId.current);
|
|
21
|
+
}
|
|
22
|
+
timeoutId.current = setTimeout(() => {
|
|
23
|
+
onUnmount();
|
|
24
|
+
timeoutId.current = null;
|
|
25
|
+
}, delay);
|
|
26
|
+
}, [delay]);
|
|
27
|
+
const clearTimer = React.useCallback(() => {
|
|
28
|
+
if (timeoutId.current) {
|
|
29
|
+
clearTimeout(timeoutId.current);
|
|
30
|
+
timeoutId.current = null;
|
|
31
|
+
}
|
|
32
|
+
}, []);
|
|
33
|
+
React.useImperativeHandle(ref, () => ({
|
|
34
|
+
resetTimer: () => {
|
|
35
|
+
clearTimer();
|
|
36
|
+
setTimer();
|
|
37
|
+
}
|
|
38
|
+
}), [setTimer]);
|
|
39
|
+
React.useEffect(() => {
|
|
40
|
+
if (visible) {
|
|
41
|
+
setTimer();
|
|
42
|
+
return clearTimer;
|
|
43
|
+
}
|
|
44
|
+
}, [visible, setTimer, clearTimer]);
|
|
45
|
+
return visible ? children : null;
|
|
46
|
+
});
|
|
47
|
+
exports.UnmountAfterDelay = UnmountAfterDelay;
|
|
48
|
+
//# sourceMappingURL=UnmountAfterDelay.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","_interopRequireWildcard","require","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","obj","__esModule","default","cache","has","get","newObj","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set","UnmountAfterDelay","forwardRef","_ref","ref","delay","children","visible","onUnmount","timeoutId","useRef","setTimer","useCallback","current","clearTimeout","setTimeout","clearTimer","useImperativeHandle","resetTimer","useEffect","exports"],"sourceRoot":"../../../src","sources":["components/UnmountAfterDelay.tsx"],"mappings":";;;;;;AAAA,IAAAA,KAAA,GAAAC,uBAAA,CAAAC,OAAA;AAA+B,SAAAC,yBAAAC,WAAA,eAAAC,OAAA,kCAAAC,iBAAA,OAAAD,OAAA,QAAAE,gBAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,WAAA,WAAAA,WAAA,GAAAG,gBAAA,GAAAD,iBAAA,KAAAF,WAAA;AAAA,SAAAH,wBAAAO,GAAA,EAAAJ,WAAA,SAAAA,WAAA,IAAAI,GAAA,IAAAA,GAAA,CAAAC,UAAA,WAAAD,GAAA,QAAAA,GAAA,oBAAAA,GAAA,wBAAAA,GAAA,4BAAAE,OAAA,EAAAF,GAAA,UAAAG,KAAA,GAAAR,wBAAA,CAAAC,WAAA,OAAAO,KAAA,IAAAA,KAAA,CAAAC,GAAA,CAAAJ,GAAA,YAAAG,KAAA,CAAAE,GAAA,CAAAL,GAAA,SAAAM,MAAA,WAAAC,qBAAA,GAAAC,MAAA,CAAAC,cAAA,IAAAD,MAAA,CAAAE,wBAAA,WAAAC,GAAA,IAAAX,GAAA,QAAAW,GAAA,kBAAAH,MAAA,CAAAI,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAd,GAAA,EAAAW,GAAA,SAAAI,IAAA,GAAAR,qBAAA,GAAAC,MAAA,CAAAE,wBAAA,CAAAV,GAAA,EAAAW,GAAA,cAAAI,IAAA,KAAAA,IAAA,CAAAV,GAAA,IAAAU,IAAA,CAAAC,GAAA,KAAAR,MAAA,CAAAC,cAAA,CAAAH,MAAA,EAAAK,GAAA,EAAAI,IAAA,YAAAT,MAAA,CAAAK,GAAA,IAAAX,GAAA,CAAAW,GAAA,SAAAL,MAAA,CAAAJ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CAACT,OAAO,EAAEI,QAAQ,EAAEK,UAAU,CAAC,CAAC;EAEnC,OAAOT,OAAO,GAAGD,QAAQ,GAAG,IAAI;AAClC,CAAC,CAAC;AAACc,OAAA,CAAAnB,iBAAA,GAAAA,iBAAA"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.WebrtcView = void 0;
|
|
7
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
8
|
+
var _reactRedux = require("react-redux");
|
|
9
|
+
var _types = require("../utils/types");
|
|
10
|
+
var _functions = require("../utils/functions");
|
|
11
|
+
var _GridView = require("./GridView");
|
|
12
|
+
var _PIPView = _interopRequireDefault(require("./PIPView"));
|
|
13
|
+
var _dimension = require("../utils/dimension");
|
|
14
|
+
var _LocalPeerRegularVideoView = require("./LocalPeerRegularVideoView");
|
|
15
|
+
var _WelcomeInMeeting = require("./WelcomeInMeeting");
|
|
16
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
17
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
18
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
19
|
+
const WebrtcView = /*#__PURE__*/_react.default.forwardRef((_ref, gridViewRef) => {
|
|
20
|
+
let {
|
|
21
|
+
peerTrackNodes,
|
|
22
|
+
handlePeerTileMorePress
|
|
23
|
+
} = _ref;
|
|
24
|
+
const isPortrait = (0, _dimension.useIsPortraitOrientation)();
|
|
25
|
+
const isPipModeActive = (0, _reactRedux.useSelector)(state => state.app.pipModeStatus === _types.PipModes.ACTIVE);
|
|
26
|
+
|
|
27
|
+
// State to track active spotlight trackId
|
|
28
|
+
const spotlightTrackId = (0, _reactRedux.useSelector)(state => state.user.spotlightTrackId);
|
|
29
|
+
const pairedPeers = (0, _react.useMemo)(() => (0, _functions.pairData)(peerTrackNodes, isPortrait ? _types.MaxTilesInOnePage.IN_PORTRAIT : _types.MaxTilesInOnePage.IN_LANDSCAPE, spotlightTrackId), [peerTrackNodes, spotlightTrackId, isPortrait]);
|
|
30
|
+
const canShowTiles = (0, _reactRedux.useSelector)(state => !!state.app.localPeerTrackNode || pairedPeers.length > 0);
|
|
31
|
+
if (!canShowTiles) {
|
|
32
|
+
return /*#__PURE__*/_react.default.createElement(_WelcomeInMeeting.WelcomeInMeeting, null);
|
|
33
|
+
}
|
|
34
|
+
if (isPipModeActive) {
|
|
35
|
+
return /*#__PURE__*/_react.default.createElement(_PIPView.default, {
|
|
36
|
+
pairedPeers: pairedPeers
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
if (pairedPeers.length > 0) {
|
|
40
|
+
return /*#__PURE__*/_react.default.createElement(_GridView.GridView, {
|
|
41
|
+
ref: gridViewRef,
|
|
42
|
+
onPeerTileMorePress: handlePeerTileMorePress,
|
|
43
|
+
pairedPeers: pairedPeers
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
return /*#__PURE__*/_react.default.createElement(_LocalPeerRegularVideoView.LocalPeerRegularVideoView, {
|
|
47
|
+
onMoreOptionsPress: handlePeerTileMorePress
|
|
48
|
+
});
|
|
49
|
+
});
|
|
50
|
+
exports.WebrtcView = WebrtcView;
|
|
51
|
+
//# sourceMappingURL=WebrtcView.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactRedux","_types","_functions","_GridView","_PIPView","_interopRequireDefault","_dimension","_LocalPeerRegularVideoView","_WelcomeInMeeting","obj","__esModule","default","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","cache","has","get","newObj","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set","WebrtcView","React","forwardRef","_ref","gridViewRef","peerTrackNodes","handlePeerTileMorePress","isPortrait","useIsPortraitOrientation","isPipModeActive","useSelector","state","app","pipModeStatus","PipModes","ACTIVE","spotlightTrackId","user","pairedPeers","useMemo","pairData","MaxTilesInOnePage","IN_PORTRAIT","IN_LANDSCAPE","canShowTiles","localPeerTrackNode","length","createElement","WelcomeInMeeting","GridView","ref","onPeerTileMorePress","LocalPeerRegularVideoView","onMoreOptionsPress","exports"],"sourceRoot":"../../../src","sources":["components/WebrtcView.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,WAAA,GAAAD,OAAA;AAEA,IAAAE,MAAA,GAAAF,OAAA;AAEA,IAAAG,UAAA,GAAAH,OAAA;AAEA,IAAAI,SAAA,GAAAJ,OAAA;AAEA,IAAAK,QAAA,GAAAC,sBAAA,CAAAN,OAAA;AACA,IAAAO,UAAA,GAAAP,OAAA;AACA,IAAAQ,0BAAA,GAAAR,OAAA;AACA,IAAAS,iBAAA,GAAAT,OAAA;AAAsD,SAAAM,uBAAAI,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAA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CAACnD,0BAAA,CAAAwD,yBAAyB;IAACC,kBAAkB,EAAE3B;EAAwB,CAAE,CAAC;AAE9E,CACF,CAAC;AAAC4B,OAAA,CAAAlC,UAAA,GAAAA,UAAA"}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.WelcomeInMeeting = void 0;
|
|
7
|
+
var React = _interopRequireWildcard(require("react"));
|
|
8
|
+
var _reactNative = require("react-native");
|
|
9
|
+
var _hooksUtil = require("../hooks-util");
|
|
10
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
11
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
12
|
+
const WelcomeInMeeting = () => {
|
|
13
|
+
const hmsRoomStyles = (0, _hooksUtil.useHMSRoomStyleSheet)((theme, typography) => ({
|
|
14
|
+
heading: {
|
|
15
|
+
fontFamily: `${typography.font_family}-Bold`,
|
|
16
|
+
color: theme.palette.on_surface_high
|
|
17
|
+
},
|
|
18
|
+
description: {
|
|
19
|
+
fontFamily: `${typography.font_family}-Medium`,
|
|
20
|
+
color: theme.palette.on_surface_medium
|
|
21
|
+
}
|
|
22
|
+
}));
|
|
23
|
+
return /*#__PURE__*/React.createElement(_reactNative.View, {
|
|
24
|
+
style: styles.container
|
|
25
|
+
}, /*#__PURE__*/React.createElement(_reactNative.Text, {
|
|
26
|
+
style: [styles.heading, hmsRoomStyles.heading]
|
|
27
|
+
}, "Welcome!"), /*#__PURE__*/React.createElement(_reactNative.Text, {
|
|
28
|
+
style: [styles.description, hmsRoomStyles.description]
|
|
29
|
+
}, "You're the first one here."), /*#__PURE__*/React.createElement(_reactNative.Text, {
|
|
30
|
+
style: [styles.description, hmsRoomStyles.description]
|
|
31
|
+
}, "Sit back and relax till the others join."));
|
|
32
|
+
};
|
|
33
|
+
exports.WelcomeInMeeting = WelcomeInMeeting;
|
|
34
|
+
const styles = _reactNative.StyleSheet.create({
|
|
35
|
+
container: {
|
|
36
|
+
flex: 1,
|
|
37
|
+
alignItems: 'center',
|
|
38
|
+
justifyContent: 'center'
|
|
39
|
+
},
|
|
40
|
+
heading: {
|
|
41
|
+
fontSize: 28,
|
|
42
|
+
lineHeight: 36,
|
|
43
|
+
letterSpacing: 0.1,
|
|
44
|
+
textAlign: 'center',
|
|
45
|
+
paddingBottom: 32
|
|
46
|
+
},
|
|
47
|
+
description: {
|
|
48
|
+
fontSize: 16,
|
|
49
|
+
lineHeight: 24,
|
|
50
|
+
letterSpacing: 0.15,
|
|
51
|
+
textAlign: 'center'
|
|
52
|
+
}
|
|
53
|
+
});
|
|
54
|
+
//# sourceMappingURL=WelcomeInMeeting.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","_interopRequireWildcard","require","_reactNative","_hooksUtil","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","obj","__esModule","default","cache","has","get","newObj","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set","WelcomeInMeeting","hmsRoomStyles","useHMSRoomStyleSheet","theme","typography","heading","fontFamily","font_family","color","palette","on_surface_high","description","on_surface_medium","createElement","View","style","styles","container","Text","exports","StyleSheet","create","flex","alignItems","justifyContent","fontSize","lineHeight","letterSpacing","textAlign","paddingBottom"],"sourceRoot":"../../../src","sources":["components/WelcomeInMeeting.tsx"],"mappings":";;;;;;AAAA,IAAAA,KAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAEA,IAAAE,UAAA,GAAAF,OAAA;AAAqD,SAAAG,yBAAAC,WAAA,eAAAC,OAAA,kCAAAC,iBAAA,OAAAD,OAAA,QAAAE,gBAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,WAAA,WAAAA,WAAA,GAAAG,gBAAA,GAAAD,iBAAA,KAAAF,WAAA;AAAA,SAAAL,wBAAAS,GAAA,EAAAJ,WAAA,SAAAA,WAAA,IAAAI,GAAA,IAAAA,GAAA,CAAAC,UAAA,WAAAD,GAAA,QAAAA,GAAA,oBAAAA,GAAA,wBAAAA,GAAA,4BAAAE,OAAA,EAAAF,GAAA,UAAAG,KAAA,GAAAR,wBAAA,CAAAC,WAAA,OAAAO,KAAA,IAAAA,KAAA,CAAAC,GAAA,CAAAJ,GAAA,YAAAG,KAAA,CAAAE,GAAA,CAAAL,GAAA,SAAAM,MAAA,WAAAC,qBAAA,GAAAC,MAAA,CAAAC,cAAA,IAAAD,MAAA,CAAAE,wBAAA,WAAAC,GAAA,IAAAX,GAAA,QAAAW,GAAA,kBAAAH,MAAA,CAAAI,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAd,GAAA,EAAAW,GAAA,SAAAI,IAAA,GAAAR,qBAAA,GAAAC,MAAA,CAAAE,wBAAA,CAAAV,GAAA,EAAAW,GAAA,cAAAI,IAAA,KAAAA,IAAA,CAAAV,GAAA,IAAAU,IAAA,CAAAC,GAAA,KAAAR,MAAA,CAAA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gB,MAAM,GAAGI,uBAAU,CAACC,MAAM,CAAC;EAC/BJ,SAAS,EAAE;IACTK,IAAI,EAAE,CAAC;IACPC,UAAU,EAAE,QAAQ;IACpBC,cAAc,EAAE;EAClB,CAAC;EACDnB,OAAO,EAAE;IACPoB,QAAQ,EAAE,EAAE;IACZC,UAAU,EAAE,EAAE;IACdC,aAAa,EAAE,GAAG;IAClBC,SAAS,EAAE,QAAQ;IACnBC,aAAa,EAAE;EACjB,CAAC;EACDlB,WAAW,EAAE;IACXc,QAAQ,EAAE,EAAE;IACZC,UAAU,EAAE,EAAE;IACdC,aAAa,EAAE,IAAI;IACnBC,SAAS,EAAE;EACb;AACF,CAAC,CAAC"}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.selectCanPublishTrack = exports.selectAllowedTracksToPublish = void 0;
|
|
6
|
+
exports.selectCanPublishTrackForRole = exports.selectCanPublishTrack = exports.selectAllowedTracksToPublish = void 0;
|
|
7
7
|
const selectAllowedTracksToPublish = state => {
|
|
8
8
|
var _state$hmsStates$loca;
|
|
9
9
|
return (_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.publishSettings) === null || _state$hmsStates$loca === void 0 ? void 0 : _state$hmsStates$loca.allowed;
|
|
@@ -14,4 +14,9 @@ const selectCanPublishTrack = (state, track) => {
|
|
|
14
14
|
return ((_selectAllowedTracksT = selectAllowedTracksToPublish(state)) === null || _selectAllowedTracksT === void 0 ? void 0 : _selectAllowedTracksT.includes(track)) ?? false;
|
|
15
15
|
};
|
|
16
16
|
exports.selectCanPublishTrack = selectCanPublishTrack;
|
|
17
|
+
const selectCanPublishTrackForRole = (role, track) => {
|
|
18
|
+
var _role$publishSettings;
|
|
19
|
+
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;
|
|
20
|
+
};
|
|
21
|
+
exports.selectCanPublishTrackForRole = selectCanPublishTrackForRole;
|
|
17
22
|
//# sourceMappingURL=hooks-sdk-selectors.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["selectAllowedTracksToPublish","state","_state$hmsStates$loca","hmsStates","localPeer","role","publishSettings","allowed","exports","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","exports","selectCanPublishTrack","track","_selectAllowedTracksT","includes","selectCanPublishTrackForRole","_role$publishSettings"],"sourceRoot":"../../src","sources":["hooks-sdk-selectors.tsx"],"mappings":";;;;;;AAIO,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;AAACC,OAAA,CAAAR,4BAAA,GAAAA,4BAAA;AAErD,MAAMS,qBAAqB,GAAGA,CACnCR,KAAgB,EAChBS,KAAmC;EAAA,IAAAC,qBAAA;EAAA,OAChC,EAAAA,qBAAA,GAAAX,4BAA4B,CAACC,KAAK,CAAC,cAAAU,qBAAA,uBAAnCA,qBAAA,CAAqCC,QAAQ,CAACF,KAAK,CAAC,KAAI,KAAK;AAAA;AAACF,OAAA,CAAAC,qBAAA,GAAAA,qBAAA;AAE5D,MAAMI,4BAA4B,GAAGA,CAC1CR,IAAyB,EACzBK,KAAmC;EAAA,IAAAI,qBAAA;EAAA,OAChC,CAAAT,IAAI,aAAJA,IAAI,gBAAAS,qBAAA,GAAJT,IAAI,CAAEC,eAAe,cAAAQ,qBAAA,gBAAAA,qBAAA,GAArBA,qBAAA,CAAuBP,OAAO,cAAAO,qBAAA,uBAA9BA,qBAAA,CAAgCF,QAAQ,CAACF,KAAK,CAAC,KAAI,KAAK;AAAA;AAACF,OAAA,CAAAK,4BAAA,GAAAA,4BAAA"}
|
|
@@ -114,12 +114,27 @@ const useHMSActions = () => {
|
|
|
114
114
|
return Promise.reject(error);
|
|
115
115
|
}
|
|
116
116
|
}, []);
|
|
117
|
+
const changeName = (0, _react.useCallback)(async name => {
|
|
118
|
+
const state = store.getState();
|
|
119
|
+
const hmsInstance = state.user.hmsInstance;
|
|
120
|
+
if (!hmsInstance) {
|
|
121
|
+
return Promise.reject('HMSSDK Instance is not available!');
|
|
122
|
+
}
|
|
123
|
+
try {
|
|
124
|
+
const result = await hmsInstance.changeName(name);
|
|
125
|
+
console.log('Change Name Success: ', result);
|
|
126
|
+
} catch (error) {
|
|
127
|
+
console.log('Change Name Error: ', error);
|
|
128
|
+
return Promise.reject(error);
|
|
129
|
+
}
|
|
130
|
+
}, []);
|
|
117
131
|
return {
|
|
118
132
|
setLocalAudioEnabled,
|
|
119
133
|
setLocalVideoEnabled,
|
|
120
134
|
switchCamera,
|
|
121
135
|
setScreenShareEnabled,
|
|
122
|
-
changeMetadata
|
|
136
|
+
changeMetadata,
|
|
137
|
+
changeName
|
|
123
138
|
};
|
|
124
139
|
};
|
|
125
140
|
exports.useHMSActions = useHMSActions;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_reactRedux","require","_actions","_hooksSdkSelectors","_react","useAllowedTracksToPublish","useSelector","selectAllowedTracksToPublish","exports","useCanPublishAudio","state","selectCanPublishTrack","useCanPublishVideo","useCanPublishScreen","useHMSActions","dispatch","useDispatch","store","useStore","setLocalAudioEnabled","useCallback","enable","getState","localPeer","hmsStates","Promise","reject","localAudioTrack","setIsLocalAudioMutedState","setMute","error","setLocalVideoEnabled","localVideoTrack","setIsLocalVideoMutedState","switchCamera","setScreenShareEnabled","hmsInstance","user","result","startScreenshare","console","log","stopScreenshare","setIsLocalScreenSharedState","changeMetadata","metadata","parsedMetadata","JSON","stringify"],"sourceRoot":"../../src","sources":["hooks-sdk.ts"],"mappings":";;;;;;AAAA,IAAAA,WAAA,GAAAC,OAAA;AAGA,IAAAC,QAAA,GAAAD,OAAA;AAKA,IAAAE,kBAAA,GAAAF,OAAA;AAIA,IAAAG,MAAA,GAAAH,OAAA;AAEO,MAAMI,yBAAyB,GAAGA,CAAA,KAAM;EAC7C,OAAO,IAAAC,uBAAW,EAACC,+CAA4B,CAAC;AAClD,CAAC;AAACC,OAAA,CAAAH,yBAAA,GAAAA,yBAAA;AAEK,MAAMI,kBAAkB,GAAGA,CAAA,KAAM;EACtC,OAAO,IAAAH,uBAAW,EAAEI,KAAgB,IAClC,IAAAC,wCAAqB,EAACD,KAAK,EAAE,OAAO,CACtC,CAAC;AACH,CAAC;AAACF,OAAA,CAAAC,kBAAA,GAAAA,kBAAA;AAEK,MAAMG,kBAAkB,GAAGA,CAAA,KAAM;EACtC,OAAO,IAAAN,uBAAW,EAAEI,KAAgB,IAClC,IAAAC,wCAAqB,EAACD,KAAK,EAAE,OAAO,CACtC,CAAC;AACH,CAAC;AAACF,OAAA,CAAAI,kBAAA,GAAAA,kBAAA;AAEK,MAAMC,mBAAmB,GAAGA,CAAA,KAAM;EACvC,OAAO,IAAAP,uBAAW,EAAEI,KAAgB,IAClC,IAAAC,wCAAqB,EAACD,KAAK,EAAE,QAAQ,CACvC,CAAC;AACH,CAAC;AAACF,OAAA,CAAAK,mBAAA,GAAAA,mBAAA;AAEK,MAAMC,aAAa,GAAGA,CAAA,KAAM;EACjC,MAAMC,QAAQ,GAAG,I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BS;EACF,CAAC;AACH,CAAC;
|
|
1
|
+
{"version":3,"names":["_reactRedux","require","_actions","_hooksSdkSelectors","_react","useAllowedTracksToPublish","useSelector","selectAllowedTracksToPublish","exports","useCanPublishAudio","state","selectCanPublishTrack","useCanPublishVideo","useCanPublishScreen","useHMSActions","dispatch","useDispatch","store","useStore","setLocalAudioEnabled","useCallback","enable","getState","localPeer","hmsStates","Promise","reject","localAudioTrack","setIsLocalAudioMutedState","setMute","error","setLocalVideoEnabled","localVideoTrack","setIsLocalVideoMutedState","switchCamera","setScreenShareEnabled","hmsInstance","user","result","startScreenshare","console","log","stopScreenshare","setIsLocalScreenSharedState","changeMetadata","metadata","parsedMetadata","JSON","stringify","changeName","name"],"sourceRoot":"../../src","sources":["hooks-sdk.ts"],"mappings":";;;;;;AAAA,IAAAA,WAAA,GAAAC,OAAA;AAGA,IAAAC,QAAA,GAAAD,OAAA;AAKA,IAAAE,kBAAA,GAAAF,OAAA;AAIA,IAAAG,MAAA,GAAAH,OAAA;AAEO,MAAMI,yBAAyB,GAAGA,CAAA,KAAM;EAC7C,OAAO,IAAAC,uBAAW,EAACC,+CAA4B,CAAC;AAClD,CAAC;AAACC,OAAA,CAAAH,yBAAA,GAAAA,yBAAA;AAEK,MAAMI,kBAAkB,GAAGA,CAAA,KAAM;EACtC,OAAO,IAAAH,uBAAW,EAAEI,KAAgB,IAClC,IAAAC,wCAAqB,EAACD,KAAK,EAAE,OAAO,CACtC,CAAC;AACH,CAAC;AAACF,OAAA,CAAAC,kBAAA,GAAAA,kBAAA;AAEK,MAAMG,kBAAkB,GAAGA,CAAA,KAAM;EACtC,OAAO,IAAAN,uBAAW,EAAEI,KAAgB,IAClC,IAAAC,wCAAqB,EAACD,KAAK,EAAE,OAAO,CACtC,CAAC;AACH,CAAC;AAACF,OAAA,CAAAI,kBAAA,GAAAA,kBAAA;AAEK,MAAMC,mBAAmB,GAAGA,CAAA,KAAM;EACvC,OAAO,IAAAP,uBAAW,EAAEI,KAAgB,I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EX,KAAK,CAAC;MAC7C,OAAOL,OAAO,CAACC,MAAM,CAACI,KAAK,CAAC;IAC9B;EACF,CAAC,EAAE,EAAE,CAAC;EAEN,MAAMmB,UAAU,GAAG,IAAA7B,kBAAW,EAAC,MAAO8B,IAAY,IAAoB;IACpE,MAAMxC,KAAgB,GAAGO,KAAK,CAACK,QAAQ,CAAC,CAAC;IACzC,MAAMc,WAAW,GAAG1B,KAAK,CAAC2B,IAAI,CAACD,WAAW;IAE1C,IAAI,CAACA,WAAW,EAAE;MAChB,OAAOX,OAAO,CAACC,MAAM,CAAC,mCAAmC,CAAC;IAC5D;IAEA,IAAI;MACF,MAAMY,MAAM,GAAG,MAAMF,WAAW,CAACa,UAAU,CAACC,IAAI,CAAC;MACjDV,OAAO,CAACC,GAAG,CAAC,uBAAuB,EAAEH,MAAM,CAAC;IAC9C,CAAC,CAAC,OAAOR,KAAK,EAAE;MACdU,OAAO,CAACC,GAAG,CAAC,qBAAqB,EAAEX,KAAK,CAAC;MACzC,OAAOL,OAAO,CAACC,MAAM,CAACI,KAAK,CAAC;IAC9B;EACF,CAAC,EAAE,EAAE,CAAC;EAEN,OAAO;IACLX,oBAAoB;IACpBY,oBAAoB;IACpBG,YAAY;IACZC,qBAAqB;IACrBS,cAAc;IACdK;EACF,CAAC;AACH,CAAC;AAACzC,OAAA,CAAAM,aAAA,GAAAA,aAAA"}
|
|
@@ -4,15 +4,21 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.selectShouldGoLive = exports.selectIsHLSViewer = void 0;
|
|
7
|
+
var _join_form = require("@100mslive/types-prebuilt/elements/join_form");
|
|
7
8
|
const selectIsHLSViewer = peer => {
|
|
8
9
|
var _peer$role;
|
|
9
10
|
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;
|
|
10
11
|
};
|
|
11
12
|
exports.selectIsHLSViewer = selectIsHLSViewer;
|
|
12
13
|
const selectShouldGoLive = state => {
|
|
13
|
-
var _state$hmsStates$room, _state$hmsStates$loca;
|
|
14
|
+
var _state$hmsStates$room, _layoutConfig$screens, _state$hmsStates$loca;
|
|
15
|
+
const layoutConfig = state.hmsStates.layoutConfig;
|
|
14
16
|
const isHLSStreaming = (_state$hmsStates$room = state.hmsStates.room) === null || _state$hmsStates$room === void 0 ? void 0 : _state$hmsStates$room.hlsStreamingState.running;
|
|
15
|
-
const
|
|
17
|
+
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;
|
|
18
|
+
const canStartHLSStreaming = joinButtonType === _join_form.JoinForm_JoinBtnType.JOIN_BTN_TYPE_JOIN_AND_GO_LIVE || joinButtonType === _join_form.JoinForm_JoinBtnType.JOIN_BTN_TYPE_JOIN_ONLY ?
|
|
19
|
+
// can start if `joinButtonType` is `JOIN_BTN_TYPE_JOIN_AND_GO_LIVE`
|
|
20
|
+
joinButtonType === _join_form.JoinForm_JoinBtnType.JOIN_BTN_TYPE_JOIN_AND_GO_LIVE : // Check if the Role has permission to start HLS Stream
|
|
21
|
+
(_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;
|
|
16
22
|
return canStartHLSStreaming && !isHLSStreaming;
|
|
17
23
|
};
|
|
18
24
|
exports.selectShouldGoLive = selectShouldGoLive;
|