@100mslive/react-native-room-kit 0.0.3 → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +413 -11
- package/lib/commonjs/HMSInstanceSetup.js +3 -15
- package/lib/commonjs/HMSInstanceSetup.js.map +1 -1
- package/lib/commonjs/HMSPrebuilt.js +17 -6
- package/lib/commonjs/HMSPrebuilt.js.map +1 -1
- package/lib/commonjs/HMSRoomSetup.js +76 -21
- package/lib/commonjs/HMSRoomSetup.js.map +1 -1
- package/lib/commonjs/Icons/AlertTriangle/assets/alert-triangle.png +0 -0
- package/lib/commonjs/Icons/AlertTriangle/assets/alert-triangle@2x.png +0 -0
- package/lib/commonjs/Icons/AlertTriangle/assets/alert-triangle@3x.png +0 -0
- package/lib/commonjs/Icons/AlertTriangle/index.js +34 -0
- package/lib/commonjs/Icons/AlertTriangle/index.js.map +1 -0
- package/lib/commonjs/Icons/AnswerPhone/index.js +5 -1
- package/lib/commonjs/Icons/AnswerPhone/index.js.map +1 -1
- package/lib/commonjs/Icons/BRB/assets/BRB.png +0 -0
- package/lib/commonjs/Icons/BRB/assets/BRB@2x.png +0 -0
- package/lib/commonjs/Icons/BRB/assets/BRB@3x.png +0 -0
- package/lib/commonjs/Icons/BRB/index.js +35 -0
- package/lib/commonjs/Icons/BRB/index.js.map +1 -0
- package/lib/commonjs/Icons/Bluetooth/index.js +5 -1
- package/lib/commonjs/Icons/Bluetooth/index.js.map +1 -1
- package/lib/commonjs/Icons/Camera/index.js +5 -1
- package/lib/commonjs/Icons/Camera/index.js.map +1 -1
- package/lib/commonjs/Icons/Chat/index.js +5 -1
- package/lib/commonjs/Icons/Chat/index.js.map +1 -1
- package/lib/commonjs/Icons/Check/assets/check.png +0 -0
- package/lib/commonjs/Icons/Check/assets/check@2x.png +0 -0
- package/lib/commonjs/Icons/Check/assets/check@3x.png +0 -0
- package/lib/commonjs/Icons/Check/index.js +34 -0
- package/lib/commonjs/Icons/Check/index.js.map +1 -0
- package/lib/commonjs/Icons/Chevron/index.js +5 -1
- package/lib/commonjs/Icons/Chevron/index.js.map +1 -1
- package/lib/commonjs/Icons/Close/index.js +5 -1
- package/lib/commonjs/Icons/Close/index.js.map +1 -1
- package/lib/commonjs/Icons/Hamburger/assets/hamburger.png +0 -0
- package/lib/commonjs/Icons/Hamburger/assets/hamburger@2x.png +0 -0
- package/lib/commonjs/Icons/Hamburger/assets/hamburger@3x.png +0 -0
- package/lib/commonjs/Icons/Hamburger/index.js +34 -0
- package/lib/commonjs/Icons/Hamburger/index.js.map +1 -0
- package/lib/commonjs/Icons/Hand/index.js +6 -4
- package/lib/commonjs/Icons/Hand/index.js.map +1 -1
- package/lib/commonjs/Icons/Headphones/index.js +5 -1
- package/lib/commonjs/Icons/Headphones/index.js.map +1 -1
- package/lib/commonjs/Icons/Maximize/assets/maximize.png +0 -0
- package/lib/commonjs/Icons/Maximize/assets/maximize@2x.png +0 -0
- package/lib/commonjs/Icons/Maximize/assets/maximize@3x.png +0 -0
- package/lib/commonjs/Icons/Maximize/index.js +34 -0
- package/lib/commonjs/Icons/Maximize/index.js.map +1 -0
- package/lib/commonjs/Icons/Mic/index.js +5 -1
- package/lib/commonjs/Icons/Mic/index.js.map +1 -1
- package/lib/commonjs/Icons/Minimize/assets/minimize.png +0 -0
- package/lib/commonjs/Icons/Minimize/assets/minimize@2x.png +0 -0
- package/lib/commonjs/Icons/Minimize/assets/minimize@3x.png +0 -0
- package/lib/commonjs/Icons/Minimize/index.js +34 -0
- package/lib/commonjs/Icons/Minimize/index.js.map +1 -0
- package/lib/commonjs/Icons/Participants/index.js +5 -1
- package/lib/commonjs/Icons/Participants/index.js.map +1 -1
- package/lib/commonjs/Icons/Pencil/assets/pencil.png +0 -0
- package/lib/commonjs/Icons/Pencil/assets/pencil@2x.png +0 -0
- package/lib/commonjs/Icons/Pencil/assets/pencil@3x.png +0 -0
- package/lib/commonjs/Icons/Pencil/index.js +34 -0
- package/lib/commonjs/Icons/Pencil/index.js.map +1 -0
- package/lib/commonjs/Icons/Pin/assets/pin.png +0 -0
- package/lib/commonjs/Icons/Pin/assets/pin@2x.png +0 -0
- package/lib/commonjs/Icons/Pin/assets/pin@3x.png +0 -0
- package/lib/commonjs/Icons/Pin/index.js +34 -0
- package/lib/commonjs/Icons/Pin/index.js.map +1 -0
- package/lib/commonjs/Icons/Radio/assets/radio.png +0 -0
- package/lib/commonjs/Icons/Radio/assets/radio@2x.png +0 -0
- package/lib/commonjs/Icons/Radio/assets/radio@3x.png +0 -0
- package/lib/commonjs/Icons/Radio/index.js +30 -0
- package/lib/commonjs/Icons/Radio/index.js.map +1 -0
- package/lib/commonjs/Icons/Recording/assets/recording.png +0 -0
- package/lib/commonjs/Icons/Recording/assets/recording@2x.png +0 -0
- package/lib/commonjs/Icons/Recording/assets/recording@3x.png +0 -0
- package/lib/commonjs/Icons/Recording/index.js +34 -0
- package/lib/commonjs/Icons/Recording/index.js.map +1 -0
- package/lib/commonjs/Icons/RotateCamera/index.js +5 -1
- package/lib/commonjs/Icons/RotateCamera/index.js.map +1 -1
- package/lib/commonjs/Icons/ScreenShare/index.js +5 -1
- package/lib/commonjs/Icons/ScreenShare/index.js.map +1 -1
- package/lib/commonjs/Icons/Speaker/index.js +5 -1
- package/lib/commonjs/Icons/Speaker/index.js.map +1 -1
- package/lib/commonjs/Icons/Star/assets/star.png +0 -0
- package/lib/commonjs/Icons/Star/assets/star@2x.png +0 -0
- package/lib/commonjs/Icons/Star/assets/star@3x.png +0 -0
- package/lib/commonjs/Icons/Star/index.js +34 -0
- package/lib/commonjs/Icons/Star/index.js.map +1 -0
- package/lib/commonjs/Icons/Stop/assets/stop.png +0 -0
- package/lib/commonjs/Icons/Stop/assets/stop@2x.png +0 -0
- package/lib/commonjs/Icons/Stop/assets/stop@3x.png +0 -0
- package/lib/commonjs/Icons/Stop/index.js +34 -0
- package/lib/commonjs/Icons/Stop/index.js.map +1 -0
- package/lib/commonjs/Icons/ThreeDots/index.js +5 -1
- package/lib/commonjs/Icons/ThreeDots/index.js.map +1 -1
- package/lib/commonjs/Icons/Wave/index.js +5 -1
- package/lib/commonjs/Icons/Wave/index.js.map +1 -1
- package/lib/commonjs/Icons/index.js +132 -0
- package/lib/commonjs/Icons/index.js.map +1 -1
- package/lib/commonjs/components/AvatarView.js +1 -2
- package/lib/commonjs/components/AvatarView.js.map +1 -1
- package/lib/commonjs/components/BackButton.js +8 -6
- package/lib/commonjs/components/BackButton.js.map +1 -1
- package/lib/commonjs/components/BottomSheet.js +157 -0
- package/lib/commonjs/components/BottomSheet.js.map +1 -0
- package/lib/commonjs/components/ChangeNameModalContent.js +131 -0
- package/lib/commonjs/components/ChangeNameModalContent.js.map +1 -0
- package/lib/commonjs/components/CompanyLogo.js +38 -0
- package/lib/commonjs/components/CompanyLogo.js.map +1 -0
- package/lib/commonjs/components/CustomInput.js +2 -3
- package/lib/commonjs/components/CustomInput.js.map +1 -1
- package/lib/commonjs/components/DisplayView.js +12 -58
- package/lib/commonjs/components/DisplayView.js.map +1 -1
- package/lib/commonjs/components/EndRoomModalContent.js +85 -0
- package/lib/commonjs/components/EndRoomModalContent.js.map +1 -0
- package/lib/commonjs/components/Footer.js +8 -9
- package/lib/commonjs/components/Footer.js.map +1 -1
- package/lib/commonjs/components/GridView.js +53 -7
- package/lib/commonjs/components/GridView.js.map +1 -1
- package/lib/commonjs/components/HMSBaseButton.js +66 -0
- package/lib/commonjs/components/HMSBaseButton.js.map +1 -0
- package/lib/commonjs/components/HMSDangerButton.js +53 -0
- package/lib/commonjs/components/HMSDangerButton.js.map +1 -0
- package/lib/commonjs/components/HMSHLSStreamLoading.js +65 -0
- package/lib/commonjs/components/HMSHLSStreamLoading.js.map +1 -0
- package/lib/commonjs/components/HMSLocalVideoView.js +41 -0
- package/lib/commonjs/components/HMSLocalVideoView.js.map +1 -0
- package/lib/commonjs/components/{HMSSpeakerSettings.js → HMSManageAudioOutput.js} +70 -76
- package/lib/commonjs/components/HMSManageAudioOutput.js.map +1 -0
- package/lib/commonjs/components/HMSManageCameraRotation.js +5 -4
- package/lib/commonjs/components/HMSManageCameraRotation.js.map +1 -1
- package/lib/commonjs/components/HMSManageLeave.js +91 -159
- package/lib/commonjs/components/HMSManageLeave.js.map +1 -1
- package/lib/commonjs/components/HMSManageLocalAudio.js +1 -9
- package/lib/commonjs/components/HMSManageLocalAudio.js.map +1 -1
- package/lib/commonjs/components/HMSManageLocalVideo.js +1 -9
- package/lib/commonjs/components/HMSManageLocalVideo.js.map +1 -1
- package/lib/commonjs/components/HMSMeetingEnded.js +35 -0
- package/lib/commonjs/components/HMSMeetingEnded.js.map +1 -0
- package/lib/commonjs/components/HMSPreviewEditName.js +7 -38
- package/lib/commonjs/components/HMSPreviewEditName.js.map +1 -1
- package/lib/commonjs/components/HMSPreviewHLSLiveIndicator.js +71 -0
- package/lib/commonjs/components/HMSPreviewHLSLiveIndicator.js.map +1 -0
- package/lib/commonjs/components/HMSPreviewJoinButton.js +26 -37
- package/lib/commonjs/components/HMSPreviewJoinButton.js.map +1 -1
- package/lib/commonjs/components/HMSPreviewNetworkQuality.js +45 -0
- package/lib/commonjs/components/HMSPreviewNetworkQuality.js.map +1 -0
- package/lib/commonjs/components/HMSPreviewPeersList.js +21 -33
- package/lib/commonjs/components/HMSPreviewPeersList.js.map +1 -1
- package/lib/commonjs/components/HMSPreviewSubtitle.js +43 -7
- package/lib/commonjs/components/HMSPreviewSubtitle.js.map +1 -1
- package/lib/commonjs/components/HMSPreviewTile.js +18 -26
- package/lib/commonjs/components/HMSPreviewTile.js.map +1 -1
- package/lib/commonjs/components/HMSPreviewTitle.js +14 -6
- package/lib/commonjs/components/HMSPreviewTitle.js.map +1 -1
- package/lib/commonjs/components/HMSPrimaryButton.js +53 -0
- package/lib/commonjs/components/HMSPrimaryButton.js.map +1 -0
- package/lib/commonjs/components/HMSRecordingIndicator.js +46 -0
- package/lib/commonjs/components/HMSRecordingIndicator.js.map +1 -0
- package/lib/commonjs/components/HMSRoomOptions.js +22 -10
- package/lib/commonjs/components/HMSRoomOptions.js.map +1 -1
- package/lib/commonjs/components/HMSShowNetworkQuality.js +5 -6
- package/lib/commonjs/components/HMSShowNetworkQuality.js.map +1 -1
- package/lib/commonjs/components/HMSTextInput.js +66 -0
- package/lib/commonjs/components/HMSTextInput.js.map +1 -0
- package/lib/commonjs/components/Header.js +30 -30
- package/lib/commonjs/components/Header.js.map +1 -1
- package/lib/commonjs/components/LocalPeerRegularVideoView.js +26 -0
- package/lib/commonjs/components/LocalPeerRegularVideoView.js.map +1 -0
- package/lib/commonjs/components/LocalPeerScreenshareView.js +76 -0
- package/lib/commonjs/components/LocalPeerScreenshareView.js.map +1 -0
- package/lib/commonjs/components/Meeting.js +14 -3
- package/lib/commonjs/components/Meeting.js.map +1 -1
- package/lib/commonjs/components/MenuModal/Menu.js +1 -2
- package/lib/commonjs/components/MenuModal/Menu.js.map +1 -1
- package/lib/commonjs/components/MiniView.js +163 -0
- package/lib/commonjs/components/MiniView.js.map +1 -0
- package/lib/commonjs/components/Modals.js +35 -380
- package/lib/commonjs/components/Modals.js.map +1 -1
- package/lib/commonjs/components/PaginationDots.js +56 -0
- package/lib/commonjs/components/PaginationDots.js.map +1 -0
- package/lib/commonjs/components/Participants/ParticipantsList.js +1 -20
- package/lib/commonjs/components/Participants/ParticipantsList.js.map +1 -1
- package/lib/commonjs/components/ParticipantsCount.js +55 -0
- package/lib/commonjs/components/ParticipantsCount.js.map +1 -0
- package/lib/commonjs/components/PeerMinimizedView.js +114 -0
- package/lib/commonjs/components/PeerMinimizedView.js.map +1 -0
- package/lib/commonjs/components/PeerSettingsModalContent.js +69 -63
- package/lib/commonjs/components/PeerSettingsModalContent.js.map +1 -1
- package/lib/commonjs/components/PeerVideoTile/AvatarView.js +76 -0
- package/lib/commonjs/components/PeerVideoTile/AvatarView.js.map +1 -0
- package/lib/commonjs/components/PeerVideoTile/PeerAudioMutedIndicator.js +44 -0
- package/lib/commonjs/components/PeerVideoTile/PeerAudioMutedIndicator.js.map +1 -0
- package/lib/commonjs/components/PeerVideoTile/PeerMetadata.js +44 -0
- package/lib/commonjs/components/PeerVideoTile/PeerMetadata.js.map +1 -0
- package/lib/commonjs/components/PeerVideoTile/PeerNameAndNetwork.js +74 -0
- package/lib/commonjs/components/PeerVideoTile/PeerNameAndNetwork.js.map +1 -0
- package/lib/commonjs/components/PeerVideoTile/PeerVideoTileView.js +146 -0
- package/lib/commonjs/components/PeerVideoTile/PeerVideoTileView.js.map +1 -0
- package/lib/commonjs/components/PeerVideoTile/VideoView.js +84 -0
- package/lib/commonjs/components/PeerVideoTile/VideoView.js.map +1 -0
- package/lib/commonjs/components/PeerVideoTile/index.js +2 -0
- package/lib/commonjs/components/PeerVideoTile/index.js.map +1 -0
- package/lib/commonjs/components/PressableIcon.js +15 -8
- package/lib/commonjs/components/PressableIcon.js.map +1 -1
- package/lib/commonjs/components/Preview.js +93 -72
- package/lib/commonjs/components/Preview.js.map +1 -1
- package/lib/commonjs/components/RoomSettingsModalContent.js +228 -457
- package/lib/commonjs/components/RoomSettingsModalContent.js.map +1 -1
- package/lib/commonjs/components/RoomSettingsModalDebugModeContent.js +295 -0
- package/lib/commonjs/components/RoomSettingsModalDebugModeContent.js.map +1 -0
- package/lib/commonjs/components/StopRecordingModalContent.js +97 -0
- package/lib/commonjs/components/StopRecordingModalContent.js.map +1 -0
- package/lib/commonjs/components/Tile.js +29 -90
- package/lib/commonjs/components/Tile.js.map +1 -1
- package/lib/commonjs/components/TilesContainer.js +99 -10
- package/lib/commonjs/components/TilesContainer.js.map +1 -1
- package/lib/commonjs/components/UnmountAfterDelay.js +48 -0
- package/lib/commonjs/components/UnmountAfterDelay.js.map +1 -0
- package/lib/commonjs/components/WebrtcView.js +51 -0
- package/lib/commonjs/components/WebrtcView.js.map +1 -0
- package/lib/commonjs/components/WelcomeInMeeting.js +54 -0
- package/lib/commonjs/components/WelcomeInMeeting.js.map +1 -0
- package/lib/commonjs/components/index.js +0 -11
- package/lib/commonjs/components/index.js.map +1 -1
- package/lib/commonjs/hooks/useHmsInstance.js +0 -1
- package/lib/commonjs/hooks/useHmsInstance.js.map +1 -1
- package/lib/commonjs/hooks-sdk-selectors.js +6 -1
- package/lib/commonjs/hooks-sdk-selectors.js.map +1 -1
- package/lib/commonjs/hooks-sdk.js +16 -1
- package/lib/commonjs/hooks-sdk.js.map +1 -1
- package/lib/commonjs/hooks-util-selectors.js +14 -1
- package/lib/commonjs/hooks-util-selectors.js.map +1 -1
- package/lib/commonjs/hooks-util.js +421 -98
- package/lib/commonjs/hooks-util.js.map +1 -1
- package/lib/commonjs/modules/HMSManager.js +23 -0
- package/lib/commonjs/modules/HMSManager.js.map +1 -0
- package/lib/commonjs/modules/parser.js +22 -0
- package/lib/commonjs/modules/parser.js.map +1 -0
- package/lib/commonjs/peerTrackNodeUtils.js +8 -3
- package/lib/commonjs/peerTrackNodeUtils.js.map +1 -1
- package/lib/commonjs/redux/actionTypes.js +20 -1
- package/lib/commonjs/redux/actionTypes.js.map +1 -1
- package/lib/commonjs/redux/actions/index.js +65 -1
- package/lib/commonjs/redux/actions/index.js.map +1 -1
- package/lib/commonjs/redux/reducers/appState.js +70 -1
- package/lib/commonjs/redux/reducers/appState.js.map +1 -1
- package/lib/commonjs/redux/reducers/hmsStates.js +7 -1
- package/lib/commonjs/redux/reducers/hmsStates.js.map +1 -1
- package/lib/commonjs/redux/reducers/userState.js +3 -1
- package/lib/commonjs/redux/reducers/userState.js.map +1 -1
- package/lib/commonjs/utils/functions.js +51 -1
- package/lib/commonjs/utils/functions.js.map +1 -1
- package/lib/commonjs/utils/theme.js +63 -8
- package/lib/commonjs/utils/theme.js.map +1 -1
- package/lib/commonjs/utils/types.js +8 -2
- package/lib/commonjs/utils/types.js.map +1 -1
- package/lib/commonjs/utils.js +2 -2
- package/lib/commonjs/utils.js.map +1 -1
- package/lib/module/HMSInstanceSetup.js +3 -15
- package/lib/module/HMSInstanceSetup.js.map +1 -1
- package/lib/module/HMSPrebuilt.js +17 -5
- package/lib/module/HMSPrebuilt.js.map +1 -1
- package/lib/module/HMSRoomSetup.js +81 -26
- package/lib/module/HMSRoomSetup.js.map +1 -1
- package/lib/module/Icons/AlertTriangle/assets/alert-triangle.png +0 -0
- package/lib/module/Icons/AlertTriangle/assets/alert-triangle@2x.png +0 -0
- package/lib/module/Icons/AlertTriangle/assets/alert-triangle@3x.png +0 -0
- package/lib/module/Icons/AlertTriangle/index.js +26 -0
- package/lib/module/Icons/AlertTriangle/index.js.map +1 -0
- package/lib/module/Icons/AnswerPhone/index.js +5 -1
- package/lib/module/Icons/AnswerPhone/index.js.map +1 -1
- package/lib/module/Icons/BRB/assets/BRB.png +0 -0
- package/lib/module/Icons/BRB/assets/BRB@2x.png +0 -0
- package/lib/module/Icons/BRB/assets/BRB@3x.png +0 -0
- package/lib/module/Icons/BRB/index.js +27 -0
- package/lib/module/Icons/BRB/index.js.map +1 -0
- package/lib/module/Icons/Bluetooth/index.js +5 -1
- package/lib/module/Icons/Bluetooth/index.js.map +1 -1
- package/lib/module/Icons/Camera/index.js +5 -1
- package/lib/module/Icons/Camera/index.js.map +1 -1
- package/lib/module/Icons/Chat/index.js +5 -1
- package/lib/module/Icons/Chat/index.js.map +1 -1
- package/lib/module/Icons/Check/assets/check.png +0 -0
- package/lib/module/Icons/Check/assets/check@2x.png +0 -0
- package/lib/module/Icons/Check/assets/check@3x.png +0 -0
- package/lib/module/Icons/Check/index.js +26 -0
- package/lib/module/Icons/Check/index.js.map +1 -0
- package/lib/module/Icons/Chevron/index.js +5 -1
- package/lib/module/Icons/Chevron/index.js.map +1 -1
- package/lib/module/Icons/Close/index.js +5 -1
- package/lib/module/Icons/Close/index.js.map +1 -1
- package/lib/module/Icons/Hamburger/assets/hamburger.png +0 -0
- package/lib/module/Icons/Hamburger/assets/hamburger@2x.png +0 -0
- package/lib/module/Icons/Hamburger/assets/hamburger@3x.png +0 -0
- package/lib/module/Icons/Hamburger/index.js +26 -0
- package/lib/module/Icons/Hamburger/index.js.map +1 -0
- package/lib/module/Icons/Hand/index.js +6 -4
- package/lib/module/Icons/Hand/index.js.map +1 -1
- package/lib/module/Icons/Headphones/index.js +5 -1
- package/lib/module/Icons/Headphones/index.js.map +1 -1
- package/lib/module/Icons/Maximize/assets/maximize.png +0 -0
- package/lib/module/Icons/Maximize/assets/maximize@2x.png +0 -0
- package/lib/module/Icons/Maximize/assets/maximize@3x.png +0 -0
- package/lib/module/Icons/Maximize/index.js +26 -0
- package/lib/module/Icons/Maximize/index.js.map +1 -0
- package/lib/module/Icons/Mic/index.js +5 -1
- package/lib/module/Icons/Mic/index.js.map +1 -1
- package/lib/module/Icons/Minimize/assets/minimize.png +0 -0
- package/lib/module/Icons/Minimize/assets/minimize@2x.png +0 -0
- package/lib/module/Icons/Minimize/assets/minimize@3x.png +0 -0
- package/lib/module/Icons/Minimize/index.js +26 -0
- package/lib/module/Icons/Minimize/index.js.map +1 -0
- package/lib/module/Icons/Participants/index.js +5 -1
- package/lib/module/Icons/Participants/index.js.map +1 -1
- package/lib/module/Icons/Pencil/assets/pencil.png +0 -0
- package/lib/module/Icons/Pencil/assets/pencil@2x.png +0 -0
- package/lib/module/Icons/Pencil/assets/pencil@3x.png +0 -0
- package/lib/module/Icons/Pencil/index.js +26 -0
- package/lib/module/Icons/Pencil/index.js.map +1 -0
- package/lib/module/Icons/Pin/assets/pin.png +0 -0
- package/lib/module/Icons/Pin/assets/pin@2x.png +0 -0
- package/lib/module/Icons/Pin/assets/pin@3x.png +0 -0
- package/lib/module/Icons/Pin/index.js +26 -0
- package/lib/module/Icons/Pin/index.js.map +1 -0
- package/lib/module/Icons/Radio/assets/radio.png +0 -0
- package/lib/module/Icons/Radio/assets/radio@2x.png +0 -0
- package/lib/module/Icons/Radio/assets/radio@3x.png +0 -0
- package/lib/module/Icons/Radio/index.js +22 -0
- package/lib/module/Icons/Radio/index.js.map +1 -0
- package/lib/module/Icons/Recording/assets/recording.png +0 -0
- package/lib/module/Icons/Recording/assets/recording@2x.png +0 -0
- package/lib/module/Icons/Recording/assets/recording@3x.png +0 -0
- package/lib/module/Icons/Recording/index.js +26 -0
- package/lib/module/Icons/Recording/index.js.map +1 -0
- package/lib/module/Icons/RotateCamera/index.js +5 -1
- package/lib/module/Icons/RotateCamera/index.js.map +1 -1
- package/lib/module/Icons/ScreenShare/index.js +5 -1
- package/lib/module/Icons/ScreenShare/index.js.map +1 -1
- package/lib/module/Icons/Speaker/index.js +5 -1
- package/lib/module/Icons/Speaker/index.js.map +1 -1
- package/lib/module/Icons/Star/assets/star.png +0 -0
- package/lib/module/Icons/Star/assets/star@2x.png +0 -0
- package/lib/module/Icons/Star/assets/star@3x.png +0 -0
- package/lib/module/Icons/Star/index.js +26 -0
- package/lib/module/Icons/Star/index.js.map +1 -0
- package/lib/module/Icons/Stop/assets/stop.png +0 -0
- package/lib/module/Icons/Stop/assets/stop@2x.png +0 -0
- package/lib/module/Icons/Stop/assets/stop@3x.png +0 -0
- package/lib/module/Icons/Stop/index.js +26 -0
- package/lib/module/Icons/Stop/index.js.map +1 -0
- package/lib/module/Icons/ThreeDots/index.js +5 -1
- package/lib/module/Icons/ThreeDots/index.js.map +1 -1
- package/lib/module/Icons/Wave/index.js +5 -1
- package/lib/module/Icons/Wave/index.js.map +1 -1
- package/lib/module/Icons/index.js +12 -0
- package/lib/module/Icons/index.js.map +1 -1
- package/lib/module/components/AvatarView.js +1 -2
- package/lib/module/components/AvatarView.js.map +1 -1
- package/lib/module/components/BackButton.js +9 -7
- package/lib/module/components/BackButton.js.map +1 -1
- package/lib/module/components/BottomSheet.js +146 -0
- package/lib/module/components/BottomSheet.js.map +1 -0
- package/lib/module/components/ChangeNameModalContent.js +122 -0
- package/lib/module/components/ChangeNameModalContent.js.map +1 -0
- package/lib/module/components/CompanyLogo.js +30 -0
- package/lib/module/components/CompanyLogo.js.map +1 -0
- package/lib/module/components/CustomInput.js +2 -3
- package/lib/module/components/CustomInput.js.map +1 -1
- package/lib/module/components/DisplayView.js +16 -61
- package/lib/module/components/DisplayView.js.map +1 -1
- package/lib/module/components/EndRoomModalContent.js +76 -0
- package/lib/module/components/EndRoomModalContent.js.map +1 -0
- package/lib/module/components/Footer.js +9 -10
- package/lib/module/components/Footer.js.map +1 -1
- package/lib/module/components/GridView.js +55 -10
- package/lib/module/components/GridView.js.map +1 -1
- package/lib/module/components/HMSBaseButton.js +57 -0
- package/lib/module/components/HMSBaseButton.js.map +1 -0
- package/lib/module/components/HMSDangerButton.js +44 -0
- package/lib/module/components/HMSDangerButton.js.map +1 -0
- package/lib/module/components/HMSHLSStreamLoading.js +56 -0
- package/lib/module/components/HMSHLSStreamLoading.js.map +1 -0
- package/lib/module/components/HMSLocalVideoView.js +32 -0
- package/lib/module/components/HMSLocalVideoView.js.map +1 -0
- package/lib/module/components/{HMSSpeakerSettings.js → HMSManageAudioOutput.js} +70 -77
- package/lib/module/components/HMSManageAudioOutput.js.map +1 -0
- package/lib/module/components/HMSManageCameraRotation.js +5 -4
- package/lib/module/components/HMSManageCameraRotation.js.map +1 -1
- package/lib/module/components/HMSManageLeave.js +95 -161
- package/lib/module/components/HMSManageLeave.js.map +1 -1
- package/lib/module/components/HMSManageLocalAudio.js +1 -9
- package/lib/module/components/HMSManageLocalAudio.js.map +1 -1
- package/lib/module/components/HMSManageLocalVideo.js +1 -9
- package/lib/module/components/HMSManageLocalVideo.js.map +1 -1
- package/lib/module/components/HMSMeetingEnded.js +26 -0
- package/lib/module/components/HMSMeetingEnded.js.map +1 -0
- package/lib/module/components/HMSPreviewEditName.js +7 -38
- package/lib/module/components/HMSPreviewEditName.js.map +1 -1
- package/lib/module/components/HMSPreviewHLSLiveIndicator.js +62 -0
- package/lib/module/components/HMSPreviewHLSLiveIndicator.js.map +1 -0
- package/lib/module/components/HMSPreviewJoinButton.js +28 -39
- package/lib/module/components/HMSPreviewJoinButton.js.map +1 -1
- package/lib/module/components/HMSPreviewNetworkQuality.js +36 -0
- package/lib/module/components/HMSPreviewNetworkQuality.js.map +1 -0
- package/lib/module/components/HMSPreviewPeersList.js +21 -33
- package/lib/module/components/HMSPreviewPeersList.js.map +1 -1
- package/lib/module/components/HMSPreviewSubtitle.js +43 -7
- package/lib/module/components/HMSPreviewSubtitle.js.map +1 -1
- package/lib/module/components/HMSPreviewTile.js +18 -26
- package/lib/module/components/HMSPreviewTile.js.map +1 -1
- package/lib/module/components/HMSPreviewTitle.js +14 -6
- package/lib/module/components/HMSPreviewTitle.js.map +1 -1
- package/lib/module/components/HMSPrimaryButton.js +44 -0
- package/lib/module/components/HMSPrimaryButton.js.map +1 -0
- package/lib/module/components/HMSRecordingIndicator.js +37 -0
- package/lib/module/components/HMSRecordingIndicator.js.map +1 -0
- package/lib/module/components/HMSRoomOptions.js +23 -11
- package/lib/module/components/HMSRoomOptions.js.map +1 -1
- package/lib/module/components/HMSShowNetworkQuality.js +6 -7
- package/lib/module/components/HMSShowNetworkQuality.js.map +1 -1
- package/lib/module/components/HMSTextInput.js +57 -0
- package/lib/module/components/HMSTextInput.js.map +1 -0
- package/lib/module/components/Header.js +32 -32
- package/lib/module/components/Header.js.map +1 -1
- package/lib/module/components/LocalPeerRegularVideoView.js +17 -0
- package/lib/module/components/LocalPeerRegularVideoView.js.map +1 -0
- package/lib/module/components/LocalPeerScreenshareView.js +66 -0
- package/lib/module/components/LocalPeerScreenshareView.js.map +1 -0
- package/lib/module/components/Meeting.js +15 -4
- package/lib/module/components/Meeting.js.map +1 -1
- package/lib/module/components/MenuModal/Menu.js +1 -2
- package/lib/module/components/MenuModal/Menu.js.map +1 -1
- package/lib/module/components/MiniView.js +154 -0
- package/lib/module/components/MiniView.js.map +1 -0
- package/lib/module/components/Modals.js +37 -378
- package/lib/module/components/Modals.js.map +1 -1
- package/lib/module/components/PaginationDots.js +47 -0
- package/lib/module/components/PaginationDots.js.map +1 -0
- package/lib/module/components/Participants/ParticipantsList.js +1 -20
- package/lib/module/components/Participants/ParticipantsList.js.map +1 -1
- package/lib/module/components/ParticipantsCount.js +46 -0
- package/lib/module/components/ParticipantsCount.js.map +1 -0
- package/lib/module/components/PeerMinimizedView.js +104 -0
- package/lib/module/components/PeerMinimizedView.js.map +1 -0
- package/lib/module/components/PeerSettingsModalContent.js +72 -66
- package/lib/module/components/PeerSettingsModalContent.js.map +1 -1
- package/lib/module/components/PeerVideoTile/AvatarView.js +66 -0
- package/lib/module/components/PeerVideoTile/AvatarView.js.map +1 -0
- package/lib/module/components/PeerVideoTile/PeerAudioMutedIndicator.js +35 -0
- package/lib/module/components/PeerVideoTile/PeerAudioMutedIndicator.js.map +1 -0
- package/lib/module/components/PeerVideoTile/PeerMetadata.js +35 -0
- package/lib/module/components/PeerVideoTile/PeerMetadata.js.map +1 -0
- package/lib/module/components/PeerVideoTile/PeerNameAndNetwork.js +65 -0
- package/lib/module/components/PeerVideoTile/PeerNameAndNetwork.js.map +1 -0
- package/lib/module/components/PeerVideoTile/PeerVideoTileView.js +136 -0
- package/lib/module/components/PeerVideoTile/PeerVideoTileView.js.map +1 -0
- package/lib/module/components/PeerVideoTile/VideoView.js +75 -0
- package/lib/module/components/PeerVideoTile/VideoView.js.map +1 -0
- package/lib/module/components/PeerVideoTile/index.js +2 -0
- package/lib/module/components/PeerVideoTile/index.js.map +1 -0
- package/lib/module/components/PressableIcon.js +15 -8
- package/lib/module/components/PressableIcon.js.map +1 -1
- package/lib/module/components/Preview.js +93 -72
- package/lib/module/components/Preview.js.map +1 -1
- package/lib/module/components/RoomSettingsModalContent.js +231 -459
- package/lib/module/components/RoomSettingsModalContent.js.map +1 -1
- package/lib/module/components/RoomSettingsModalDebugModeContent.js +287 -0
- package/lib/module/components/RoomSettingsModalDebugModeContent.js.map +1 -0
- package/lib/module/components/StopRecordingModalContent.js +88 -0
- package/lib/module/components/StopRecordingModalContent.js.map +1 -0
- package/lib/module/components/Tile.js +30 -91
- package/lib/module/components/Tile.js.map +1 -1
- package/lib/module/components/TilesContainer.js +100 -10
- package/lib/module/components/TilesContainer.js.map +1 -1
- package/lib/module/components/UnmountAfterDelay.js +39 -0
- package/lib/module/components/UnmountAfterDelay.js.map +1 -0
- package/lib/module/components/WebrtcView.js +41 -0
- package/lib/module/components/WebrtcView.js.map +1 -0
- package/lib/module/components/WelcomeInMeeting.js +45 -0
- package/lib/module/components/WelcomeInMeeting.js.map +1 -0
- package/lib/module/components/index.js +0 -1
- package/lib/module/components/index.js.map +1 -1
- package/lib/module/hooks/useHmsInstance.js +0 -1
- package/lib/module/hooks/useHmsInstance.js.map +1 -1
- package/lib/module/hooks-sdk-selectors.js +4 -0
- package/lib/module/hooks-sdk-selectors.js.map +1 -1
- package/lib/module/hooks-sdk.js +16 -1
- package/lib/module/hooks-sdk.js.map +1 -1
- package/lib/module/hooks-util-selectors.js +12 -0
- package/lib/module/hooks-util-selectors.js.map +1 -1
- package/lib/module/hooks-util.js +417 -104
- package/lib/module/hooks-util.js.map +1 -1
- package/lib/module/modules/HMSManager.js +17 -0
- package/lib/module/modules/HMSManager.js.map +1 -0
- package/lib/module/modules/parser.js +16 -0
- package/lib/module/modules/parser.js.map +1 -0
- package/lib/module/peerTrackNodeUtils.js +6 -2
- package/lib/module/peerTrackNodeUtils.js.map +1 -1
- package/lib/module/redux/actionTypes.js +20 -1
- package/lib/module/redux/actionTypes.js.map +1 -1
- package/lib/module/redux/actions/index.js +54 -0
- package/lib/module/redux/actions/index.js.map +1 -1
- package/lib/module/redux/reducers/appState.js +70 -1
- package/lib/module/redux/reducers/appState.js.map +1 -1
- package/lib/module/redux/reducers/hmsStates.js +7 -1
- package/lib/module/redux/reducers/hmsStates.js.map +1 -1
- package/lib/module/redux/reducers/userState.js +3 -1
- package/lib/module/redux/reducers/userState.js.map +1 -1
- package/lib/module/utils/functions.js +47 -0
- package/lib/module/utils/functions.js.map +1 -1
- package/lib/module/utils/theme.js +58 -5
- package/lib/module/utils/theme.js.map +1 -1
- package/lib/module/utils/types.js +6 -1
- package/lib/module/utils/types.js.map +1 -1
- package/lib/module/utils.js +2 -2
- package/lib/module/utils.js.map +1 -1
- package/lib/typescript/HMSInstanceSetup.d.ts.map +1 -1
- package/lib/typescript/HMSPrebuilt.d.ts +3 -3
- package/lib/typescript/HMSPrebuilt.d.ts.map +1 -1
- package/lib/typescript/HMSRoomSetup.d.ts.map +1 -1
- package/lib/typescript/Icons/AlertTriangle/index.d.ts +7 -0
- package/lib/typescript/Icons/AlertTriangle/index.d.ts.map +1 -0
- package/lib/typescript/Icons/AnswerPhone/index.d.ts.map +1 -1
- package/lib/typescript/Icons/BRB/index.d.ts +7 -0
- package/lib/typescript/Icons/BRB/index.d.ts.map +1 -0
- package/lib/typescript/Icons/Bluetooth/index.d.ts.map +1 -1
- package/lib/typescript/Icons/Camera/index.d.ts.map +1 -1
- package/lib/typescript/Icons/Chat/index.d.ts.map +1 -1
- package/lib/typescript/Icons/Check/index.d.ts +7 -0
- package/lib/typescript/Icons/Check/index.d.ts.map +1 -0
- package/lib/typescript/Icons/Chevron/index.d.ts.map +1 -1
- package/lib/typescript/Icons/Close/index.d.ts.map +1 -1
- package/lib/typescript/Icons/Hamburger/index.d.ts +7 -0
- package/lib/typescript/Icons/Hamburger/index.d.ts.map +1 -0
- package/lib/typescript/Icons/Hand/index.d.ts.map +1 -1
- package/lib/typescript/Icons/Headphones/index.d.ts.map +1 -1
- package/lib/typescript/Icons/Maximize/index.d.ts +7 -0
- package/lib/typescript/Icons/Maximize/index.d.ts.map +1 -0
- package/lib/typescript/Icons/Mic/index.d.ts.map +1 -1
- package/lib/typescript/Icons/Minimize/index.d.ts +7 -0
- package/lib/typescript/Icons/Minimize/index.d.ts.map +1 -0
- package/lib/typescript/Icons/Participants/index.d.ts.map +1 -1
- package/lib/typescript/Icons/Pencil/index.d.ts +7 -0
- package/lib/typescript/Icons/Pencil/index.d.ts.map +1 -0
- package/lib/typescript/Icons/Pin/index.d.ts +7 -0
- package/lib/typescript/Icons/Pin/index.d.ts.map +1 -0
- package/lib/typescript/Icons/Radio/index.d.ts +7 -0
- package/lib/typescript/Icons/Radio/index.d.ts.map +1 -0
- package/lib/typescript/Icons/Recording/index.d.ts +7 -0
- package/lib/typescript/Icons/Recording/index.d.ts.map +1 -0
- package/lib/typescript/Icons/RotateCamera/index.d.ts.map +1 -1
- package/lib/typescript/Icons/ScreenShare/index.d.ts.map +1 -1
- package/lib/typescript/Icons/Speaker/index.d.ts.map +1 -1
- package/lib/typescript/Icons/Star/index.d.ts +7 -0
- package/lib/typescript/Icons/Star/index.d.ts.map +1 -0
- package/lib/typescript/Icons/Stop/index.d.ts +7 -0
- package/lib/typescript/Icons/Stop/index.d.ts.map +1 -0
- package/lib/typescript/Icons/ThreeDots/index.d.ts.map +1 -1
- package/lib/typescript/Icons/Wave/index.d.ts.map +1 -1
- package/lib/typescript/Icons/index.d.ts +12 -0
- package/lib/typescript/Icons/index.d.ts.map +1 -1
- package/lib/typescript/components/BackButton.d.ts.map +1 -1
- package/lib/typescript/components/BottomSheet.d.ts +25 -0
- package/lib/typescript/components/BottomSheet.d.ts.map +1 -0
- package/lib/typescript/components/ChangeNameModalContent.d.ts +6 -0
- package/lib/typescript/components/ChangeNameModalContent.d.ts.map +1 -0
- package/lib/typescript/components/CompanyLogo.d.ts +7 -0
- package/lib/typescript/components/CompanyLogo.d.ts.map +1 -0
- package/lib/typescript/components/CustomInput.d.ts +1 -1
- package/lib/typescript/components/CustomInput.d.ts.map +1 -1
- package/lib/typescript/components/DisplayView.d.ts.map +1 -1
- package/lib/typescript/components/EndRoomModalContent.d.ts +6 -0
- package/lib/typescript/components/EndRoomModalContent.d.ts.map +1 -0
- package/lib/typescript/components/Footer.d.ts.map +1 -1
- package/lib/typescript/components/GridView.d.ts +3 -4
- package/lib/typescript/components/GridView.d.ts.map +1 -1
- package/lib/typescript/components/HMSBaseButton.d.ts +15 -0
- package/lib/typescript/components/HMSBaseButton.d.ts.map +1 -0
- package/lib/typescript/components/HMSDangerButton.d.ts +12 -0
- package/lib/typescript/components/HMSDangerButton.d.ts.map +1 -0
- package/lib/typescript/components/HMSHLSStreamLoading.d.ts +3 -0
- package/lib/typescript/components/HMSHLSStreamLoading.d.ts.map +1 -0
- package/lib/typescript/components/HMSLocalVideoView.d.ts +3 -0
- package/lib/typescript/components/HMSLocalVideoView.d.ts.map +1 -0
- package/lib/typescript/components/HMSManageAudioOutput.d.ts +3 -0
- package/lib/typescript/components/HMSManageAudioOutput.d.ts.map +1 -0
- package/lib/typescript/components/HMSManageLeave.d.ts.map +1 -1
- package/lib/typescript/components/HMSManageLocalAudio.d.ts.map +1 -1
- package/lib/typescript/components/HMSManageLocalVideo.d.ts.map +1 -1
- package/lib/typescript/components/HMSMeetingEnded.d.ts +3 -0
- package/lib/typescript/components/HMSMeetingEnded.d.ts.map +1 -0
- package/lib/typescript/components/HMSPreviewEditName.d.ts.map +1 -1
- package/lib/typescript/components/HMSPreviewHLSLiveIndicator.d.ts +3 -0
- package/lib/typescript/components/HMSPreviewHLSLiveIndicator.d.ts.map +1 -0
- package/lib/typescript/components/HMSPreviewJoinButton.d.ts.map +1 -1
- package/lib/typescript/components/HMSPreviewNetworkQuality.d.ts +3 -0
- package/lib/typescript/components/HMSPreviewNetworkQuality.d.ts.map +1 -0
- package/lib/typescript/components/HMSPreviewPeersList.d.ts.map +1 -1
- package/lib/typescript/components/HMSPreviewSubtitle.d.ts.map +1 -1
- package/lib/typescript/components/HMSPreviewTile.d.ts.map +1 -1
- package/lib/typescript/components/HMSPreviewTitle.d.ts.map +1 -1
- package/lib/typescript/components/HMSPrimaryButton.d.ts +12 -0
- package/lib/typescript/components/HMSPrimaryButton.d.ts.map +1 -0
- package/lib/typescript/components/HMSRecordingIndicator.d.ts +3 -0
- package/lib/typescript/components/HMSRecordingIndicator.d.ts.map +1 -0
- package/lib/typescript/components/HMSRoomOptions.d.ts.map +1 -1
- package/lib/typescript/components/HMSShowNetworkQuality.d.ts.map +1 -1
- package/lib/typescript/components/HMSTextInput.d.ts +10 -0
- package/lib/typescript/components/HMSTextInput.d.ts.map +1 -0
- package/lib/typescript/components/Header.d.ts.map +1 -1
- package/lib/typescript/components/LocalPeerRegularVideoView.d.ts +6 -0
- package/lib/typescript/components/LocalPeerRegularVideoView.d.ts.map +1 -0
- package/lib/typescript/components/LocalPeerScreenshareView.d.ts +3 -0
- package/lib/typescript/components/LocalPeerScreenshareView.d.ts.map +1 -0
- package/lib/typescript/components/Meeting.d.ts.map +1 -1
- package/lib/typescript/components/MenuModal/Menu.d.ts.map +1 -1
- package/lib/typescript/components/MiniView.d.ts +9 -0
- package/lib/typescript/components/MiniView.d.ts.map +1 -0
- package/lib/typescript/components/Modals.d.ts +1 -16
- package/lib/typescript/components/Modals.d.ts.map +1 -1
- package/lib/typescript/components/PaginationDots.d.ts +6 -0
- package/lib/typescript/components/PaginationDots.d.ts.map +1 -0
- package/lib/typescript/components/Participants/ParticipantsList.d.ts.map +1 -1
- package/lib/typescript/components/ParticipantsCount.d.ts +3 -0
- package/lib/typescript/components/ParticipantsCount.d.ts.map +1 -0
- package/lib/typescript/components/PeerMinimizedView.d.ts +12 -0
- package/lib/typescript/components/PeerMinimizedView.d.ts.map +1 -0
- package/lib/typescript/components/PeerSettingsModalContent.d.ts +1 -0
- package/lib/typescript/components/PeerSettingsModalContent.d.ts.map +1 -1
- package/lib/typescript/components/PeerVideoTile/AvatarView.d.ts +9 -0
- package/lib/typescript/components/PeerVideoTile/AvatarView.d.ts.map +1 -0
- package/lib/typescript/components/PeerVideoTile/PeerAudioMutedIndicator.d.ts +6 -0
- package/lib/typescript/components/PeerVideoTile/PeerAudioMutedIndicator.d.ts.map +1 -0
- package/lib/typescript/components/PeerVideoTile/PeerMetadata.d.ts +6 -0
- package/lib/typescript/components/PeerVideoTile/PeerMetadata.d.ts.map +1 -0
- package/lib/typescript/components/PeerVideoTile/PeerNameAndNetwork.d.ts +10 -0
- package/lib/typescript/components/PeerVideoTile/PeerNameAndNetwork.d.ts.map +1 -0
- package/lib/typescript/components/PeerVideoTile/PeerVideoTileView.d.ts +10 -0
- package/lib/typescript/components/PeerVideoTile/PeerVideoTileView.d.ts.map +1 -0
- package/lib/typescript/components/PeerVideoTile/VideoView.d.ts +13 -0
- package/lib/typescript/components/PeerVideoTile/VideoView.d.ts.map +1 -0
- package/lib/typescript/components/PeerVideoTile/index.d.ts +1 -0
- package/lib/typescript/components/PeerVideoTile/index.d.ts.map +1 -0
- package/lib/typescript/components/PressableIcon.d.ts.map +1 -1
- package/lib/typescript/components/Preview.d.ts.map +1 -1
- package/lib/typescript/components/RoomSettingsModalContent.d.ts +2 -2
- package/lib/typescript/components/RoomSettingsModalContent.d.ts.map +1 -1
- package/lib/typescript/components/RoomSettingsModalDebugModeContent.d.ts +17 -0
- package/lib/typescript/components/RoomSettingsModalDebugModeContent.d.ts.map +1 -0
- package/lib/typescript/components/StopRecordingModalContent.d.ts +6 -0
- package/lib/typescript/components/StopRecordingModalContent.d.ts.map +1 -0
- package/lib/typescript/components/Tile.d.ts +12 -3
- package/lib/typescript/components/Tile.d.ts.map +1 -1
- package/lib/typescript/components/TilesContainer.d.ts.map +1 -1
- package/lib/typescript/components/UnmountAfterDelay.d.ts +12 -0
- package/lib/typescript/components/UnmountAfterDelay.d.ts.map +1 -0
- package/lib/typescript/components/WebrtcView.d.ts +10 -0
- package/lib/typescript/components/WebrtcView.d.ts.map +1 -0
- package/lib/typescript/components/WelcomeInMeeting.d.ts +5 -0
- package/lib/typescript/components/WelcomeInMeeting.d.ts.map +1 -0
- package/lib/typescript/components/index.d.ts +0 -1
- package/lib/typescript/components/index.d.ts.map +1 -1
- package/lib/typescript/hooks-sdk-selectors.d.ts +2 -0
- package/lib/typescript/hooks-sdk-selectors.d.ts.map +1 -1
- package/lib/typescript/hooks-sdk.d.ts +1 -0
- package/lib/typescript/hooks-sdk.d.ts.map +1 -1
- package/lib/typescript/hooks-util-selectors.d.ts +2 -0
- package/lib/typescript/hooks-util-selectors.d.ts.map +1 -1
- package/lib/typescript/hooks-util.d.ts +24 -4
- package/lib/typescript/hooks-util.d.ts.map +1 -1
- package/lib/typescript/modules/HMSManager.d.ts +4 -0
- package/lib/typescript/modules/HMSManager.d.ts.map +1 -0
- package/lib/typescript/modules/parser.d.ts +3 -0
- package/lib/typescript/modules/parser.d.ts.map +1 -0
- package/lib/typescript/peerTrackNodeUtils.d.ts +1 -0
- package/lib/typescript/peerTrackNodeUtils.d.ts.map +1 -1
- package/lib/typescript/redux/actionTypes.d.ts +11 -1
- package/lib/typescript/redux/actionTypes.d.ts.map +1 -1
- package/lib/typescript/redux/actions/index.d.ts +61 -3
- package/lib/typescript/redux/actions/index.d.ts.map +1 -1
- package/lib/typescript/redux/index.d.ts +10 -1
- package/lib/typescript/redux/index.d.ts.map +1 -1
- package/lib/typescript/redux/reducers/appState.d.ts +8 -0
- package/lib/typescript/redux/reducers/appState.d.ts.map +1 -1
- package/lib/typescript/redux/reducers/hmsStates.d.ts +7 -1
- package/lib/typescript/redux/reducers/hmsStates.d.ts.map +1 -1
- package/lib/typescript/redux/reducers/index.d.ts +10 -1
- package/lib/typescript/redux/reducers/index.d.ts.map +1 -1
- package/lib/typescript/redux/reducers/userState.d.ts +3 -2
- package/lib/typescript/redux/reducers/userState.d.ts.map +1 -1
- package/lib/typescript/utils/functions.d.ts +14 -0
- package/lib/typescript/utils/functions.d.ts.map +1 -1
- package/lib/typescript/utils/theme.d.ts +7 -3
- package/lib/typescript/utils/theme.d.ts.map +1 -1
- package/lib/typescript/utils/types.d.ts +8 -4
- package/lib/typescript/utils/types.d.ts.map +1 -1
- package/package.json +11 -16
- package/src/HMSInstanceSetup.tsx +5 -31
- package/src/HMSPrebuilt.tsx +27 -8
- package/src/HMSRoomSetup.tsx +98 -23
- package/src/Icons/AlertTriangle/assets/alert-triangle.png +0 -0
- package/src/Icons/AlertTriangle/assets/alert-triangle@2x.png +0 -0
- package/src/Icons/AlertTriangle/assets/alert-triangle@3x.png +0 -0
- package/src/Icons/AlertTriangle/index.tsx +33 -0
- package/src/Icons/AnswerPhone/index.tsx +7 -1
- package/src/Icons/BRB/assets/BRB.png +0 -0
- package/src/Icons/BRB/assets/BRB@2x.png +0 -0
- package/src/Icons/BRB/assets/BRB@3x.png +0 -0
- package/src/Icons/BRB/index.tsx +31 -0
- package/src/Icons/Bluetooth/index.tsx +7 -1
- package/src/Icons/Camera/index.tsx +7 -1
- package/src/Icons/Chat/index.tsx +7 -1
- package/src/Icons/Check/assets/check.png +0 -0
- package/src/Icons/Check/assets/check@2x.png +0 -0
- package/src/Icons/Check/assets/check@3x.png +0 -0
- package/src/Icons/Check/index.tsx +33 -0
- package/src/Icons/Chevron/index.tsx +7 -1
- package/src/Icons/Close/index.tsx +7 -1
- package/src/Icons/Hamburger/assets/hamburger.png +0 -0
- package/src/Icons/Hamburger/assets/hamburger@2x.png +0 -0
- package/src/Icons/Hamburger/assets/hamburger@3x.png +0 -0
- package/src/Icons/Hamburger/index.tsx +33 -0
- package/src/Icons/Hand/index.tsx +6 -3
- package/src/Icons/Headphones/index.tsx +7 -1
- package/src/Icons/Maximize/assets/maximize.png +0 -0
- package/src/Icons/Maximize/assets/maximize@2x.png +0 -0
- package/src/Icons/Maximize/assets/maximize@3x.png +0 -0
- package/src/Icons/Maximize/index.tsx +33 -0
- package/src/Icons/Mic/index.tsx +7 -1
- package/src/Icons/Minimize/assets/minimize.png +0 -0
- package/src/Icons/Minimize/assets/minimize@2x.png +0 -0
- package/src/Icons/Minimize/assets/minimize@3x.png +0 -0
- package/src/Icons/Minimize/index.tsx +33 -0
- package/src/Icons/Participants/index.tsx +7 -1
- package/src/Icons/Pencil/assets/pencil.png +0 -0
- package/src/Icons/Pencil/assets/pencil@2x.png +0 -0
- package/src/Icons/Pencil/assets/pencil@3x.png +0 -0
- package/src/Icons/Pencil/index.tsx +33 -0
- package/src/Icons/Pin/assets/pin.png +0 -0
- package/src/Icons/Pin/assets/pin@2x.png +0 -0
- package/src/Icons/Pin/assets/pin@3x.png +0 -0
- package/src/Icons/Pin/index.tsx +30 -0
- package/src/Icons/Radio/assets/radio.png +0 -0
- package/src/Icons/Radio/assets/radio@2x.png +0 -0
- package/src/Icons/Radio/assets/radio@3x.png +0 -0
- package/src/Icons/Radio/index.tsx +27 -0
- package/src/Icons/Recording/assets/recording.png +0 -0
- package/src/Icons/Recording/assets/recording@2x.png +0 -0
- package/src/Icons/Recording/assets/recording@3x.png +0 -0
- package/src/Icons/Recording/index.tsx +33 -0
- package/src/Icons/RotateCamera/index.tsx +7 -1
- package/src/Icons/ScreenShare/index.tsx +7 -1
- package/src/Icons/Speaker/index.tsx +12 -1
- package/src/Icons/Star/assets/star.png +0 -0
- package/src/Icons/Star/assets/star@2x.png +0 -0
- package/src/Icons/Star/assets/star@3x.png +0 -0
- package/src/Icons/Star/index.tsx +30 -0
- package/src/Icons/Stop/assets/stop.png +0 -0
- package/src/Icons/Stop/assets/stop@2x.png +0 -0
- package/src/Icons/Stop/assets/stop@3x.png +0 -0
- package/src/Icons/Stop/index.tsx +33 -0
- package/src/Icons/ThreeDots/index.tsx +7 -1
- package/src/Icons/Wave/index.tsx +7 -1
- package/src/Icons/index.ts +12 -0
- package/src/components/AvatarView.tsx +1 -2
- package/src/components/BackButton.tsx +9 -6
- package/src/components/BottomSheet.tsx +191 -0
- package/src/components/ChangeNameModalContent.tsx +157 -0
- package/src/components/CompanyLogo.tsx +35 -0
- package/src/components/CustomInput.tsx +2 -3
- package/src/components/DisplayView.tsx +16 -75
- package/src/components/EndRoomModalContent.tsx +90 -0
- package/src/components/Footer.tsx +7 -7
- package/src/components/GridView.tsx +91 -20
- package/src/components/HLSView.tsx +1 -1
- package/src/components/HMSBaseButton.tsx +91 -0
- package/src/components/HMSDangerButton.tsx +65 -0
- package/src/components/HMSHLSStreamLoading.tsx +68 -0
- package/src/components/HMSLocalVideoView.tsx +42 -0
- package/src/components/{HMSSpeakerSettings.tsx → HMSManageAudioOutput.tsx} +99 -78
- package/src/components/HMSManageCameraRotation.tsx +11 -8
- package/src/components/HMSManageLeave.tsx +107 -183
- package/src/components/HMSManageLocalAudio.tsx +1 -10
- package/src/components/HMSManageLocalVideo.tsx +1 -10
- package/src/components/HMSMeetingEnded.tsx +28 -0
- package/src/components/HMSPreviewEditName.tsx +4 -45
- package/src/components/HMSPreviewHLSLiveIndicator.tsx +66 -0
- package/src/components/HMSPreviewJoinButton.tsx +36 -51
- package/src/components/HMSPreviewNetworkQuality.tsx +43 -0
- package/src/components/HMSPreviewPeersList.tsx +25 -54
- package/src/components/HMSPreviewSubtitle.tsx +46 -6
- package/src/components/HMSPreviewTile.tsx +20 -31
- package/src/components/HMSPreviewTitle.tsx +18 -5
- package/src/components/HMSPrimaryButton.tsx +63 -0
- package/src/components/HMSRecordingIndicator.tsx +37 -0
- package/src/components/HMSRoomOptions.tsx +30 -16
- package/src/components/HMSShowNetworkQuality.tsx +7 -6
- package/src/components/HMSTextInput.tsx +78 -0
- package/src/components/Header.tsx +37 -36
- package/src/components/LocalPeerRegularVideoView.tsx +28 -0
- package/src/components/LocalPeerScreenshareView.tsx +72 -0
- package/src/components/Meeting.tsx +21 -3
- package/src/components/MenuModal/Menu.tsx +1 -1
- package/src/components/MiniView.tsx +213 -0
- package/src/components/Modals.tsx +5 -409
- package/src/components/PaginationDots.tsx +65 -0
- package/src/components/Participants/ParticipantsList.tsx +0 -24
- package/src/components/ParticipantsCount.tsx +52 -0
- package/src/components/PeerMinimizedView.tsx +131 -0
- package/src/components/PeerSettingsModalContent.tsx +108 -66
- package/src/components/PeerVideoTile/AvatarView.tsx +79 -0
- package/src/components/PeerVideoTile/PeerAudioMutedIndicator.tsx +41 -0
- package/src/components/PeerVideoTile/PeerMetadata.tsx +46 -0
- package/src/components/PeerVideoTile/PeerNameAndNetwork.tsx +81 -0
- package/src/components/PeerVideoTile/PeerVideoTileView.tsx +180 -0
- package/src/components/PeerVideoTile/VideoView.tsx +104 -0
- package/src/components/PeerVideoTile/index.ts +0 -0
- package/src/components/PressableIcon.tsx +15 -8
- package/src/components/Preview.tsx +150 -104
- package/src/components/RoomSettingsModalContent.tsx +234 -659
- package/src/components/RoomSettingsModalDebugModeContent.tsx +446 -0
- package/src/components/StopRecordingModalContent.tsx +109 -0
- package/src/components/Tile.tsx +49 -90
- package/src/components/TilesContainer.tsx +116 -14
- package/src/components/UnmountAfterDelay.tsx +61 -0
- package/src/components/WebrtcView.tsx +72 -0
- package/src/components/WelcomeInMeeting.tsx +52 -0
- package/src/components/index.ts +0 -1
- package/src/hooks/useHmsInstance.ts +0 -1
- package/src/hooks-sdk-selectors.tsx +7 -0
- package/src/hooks-sdk.ts +18 -0
- package/src/hooks-util-selectors.tsx +21 -0
- package/src/hooks-util.ts +548 -130
- package/src/modules/HMSManager.ts +25 -0
- package/src/modules/parser.ts +22 -0
- package/src/peerTrackNodeUtils.tsx +13 -10
- package/src/redux/actionTypes.ts +28 -0
- package/src/redux/actions/index.ts +64 -2
- package/src/redux/reducers/appState.ts +65 -0
- package/src/redux/reducers/hmsStates.ts +15 -1
- package/src/redux/reducers/userState.ts +5 -2
- package/src/utils/functions.ts +48 -0
- package/src/utils/theme.ts +75 -5
- package/src/utils/types.ts +9 -4
- package/src/utils.ts +2 -2
- package/lib/commonjs/components/HMSSpeakerSettings.js.map +0 -1
- package/lib/commonjs/components/ZoomableView.js +0 -84
- package/lib/commonjs/components/ZoomableView.js.map +0 -1
- package/lib/module/components/HMSSpeakerSettings.js.map +0 -1
- package/lib/module/components/ZoomableView.js +0 -76
- package/lib/module/components/ZoomableView.js.map +0 -1
- package/lib/typescript/components/HMSSpeakerSettings.d.ts +0 -3
- package/lib/typescript/components/HMSSpeakerSettings.d.ts.map +0 -1
- package/lib/typescript/components/ZoomableView.d.ts +0 -6
- package/lib/typescript/components/ZoomableView.d.ts.map +0 -1
- package/src/components/ZoomableView.tsx +0 -91
|
@@ -7,8 +7,6 @@ import {
|
|
|
7
7
|
TextInput,
|
|
8
8
|
StyleSheet,
|
|
9
9
|
Image,
|
|
10
|
-
Platform,
|
|
11
|
-
InteractionManager,
|
|
12
10
|
useWindowDimensions,
|
|
13
11
|
} from 'react-native';
|
|
14
12
|
import type { ImageURISource } from 'react-native';
|
|
@@ -34,24 +32,15 @@ import Feather from 'react-native-vector-icons/Feather';
|
|
|
34
32
|
import Entypo from 'react-native-vector-icons/Entypo';
|
|
35
33
|
import MaterialCommunityIcons from 'react-native-vector-icons/MaterialCommunityIcons';
|
|
36
34
|
import MaterialIcons from 'react-native-vector-icons/MaterialIcons';
|
|
37
|
-
import { Slider } from '@miblanchard/react-native-slider';
|
|
38
|
-
import RNFetchBlob from 'rn-fetch-blob';
|
|
39
|
-
import RNFS from 'react-native-fs';
|
|
40
|
-
import Share from 'react-native-share';
|
|
41
35
|
|
|
42
36
|
import { styles } from './styles';
|
|
43
37
|
|
|
44
38
|
import { CustomButton } from './CustomButton';
|
|
45
|
-
import { CustomInput } from './CustomInput';
|
|
46
39
|
import { Menu, MenuItem } from './MenuModal';
|
|
47
40
|
|
|
48
41
|
import { CustomPicker } from './Picker';
|
|
49
|
-
import {
|
|
50
|
-
|
|
51
|
-
changeShowStats,
|
|
52
|
-
saveUserData,
|
|
53
|
-
} from '../redux/actions';
|
|
54
|
-
import { requestExternalStoragePermission, getTime } from '../utils/functions';
|
|
42
|
+
import { changeHLSAspectRatio, changeShowStats } from '../redux/actions';
|
|
43
|
+
import { getTime } from '../utils/functions';
|
|
55
44
|
import {
|
|
56
45
|
LayoutParams,
|
|
57
46
|
ModalTypes,
|
|
@@ -176,106 +165,6 @@ export const SaveScreenshot = ({
|
|
|
176
165
|
(state: RootState) => state.hmsStates.localPeer || undefined
|
|
177
166
|
);
|
|
178
167
|
|
|
179
|
-
/**
|
|
180
|
-
* Get target path on external storage to save image
|
|
181
|
-
* @param {string} imageExtension file extension to use for image
|
|
182
|
-
* @param {string} peerName name of peer to use in image name
|
|
183
|
-
* @returns string - path on external storage to save image
|
|
184
|
-
*/
|
|
185
|
-
const getTargetPath = (imageExtension: string, peerName?: string) => {
|
|
186
|
-
// formatting peer name
|
|
187
|
-
const formattedPeerName = peerName
|
|
188
|
-
? peerName.replace(/ /g, '-').toLowerCase()
|
|
189
|
-
: '';
|
|
190
|
-
|
|
191
|
-
// name to use for image
|
|
192
|
-
const imageName = `${formattedPeerName}-snapshot-${Date.now()}.${imageExtension}`;
|
|
193
|
-
|
|
194
|
-
// directory for saving image
|
|
195
|
-
const targetDir =
|
|
196
|
-
Platform.OS === 'ios'
|
|
197
|
-
? RNFetchBlob.fs.dirs.DocumentDir
|
|
198
|
-
: RNFetchBlob.fs.dirs.DCIMDir;
|
|
199
|
-
|
|
200
|
-
const targetLocation = `${targetDir}/${imageName}`;
|
|
201
|
-
|
|
202
|
-
return targetLocation;
|
|
203
|
-
};
|
|
204
|
-
|
|
205
|
-
const saveToDisk = async () => {
|
|
206
|
-
try {
|
|
207
|
-
// Requesting External Storage permission to save image to disk
|
|
208
|
-
const permission = await requestExternalStoragePermission();
|
|
209
|
-
|
|
210
|
-
// checking External Storage permission and availability of image source that we have to save to disk
|
|
211
|
-
if (permission && peer && imageSource) {
|
|
212
|
-
// Waiting for Interactions (Modal Close Animation) to finish
|
|
213
|
-
InteractionManager.runAfterInteractions(async () => {
|
|
214
|
-
// image extension to use
|
|
215
|
-
const imageExtension = 'png';
|
|
216
|
-
|
|
217
|
-
// Removing `file://` from URI if it exists, to keep it consistent with `base64` image case
|
|
218
|
-
const source = imageSource.uri.replace('file://', '');
|
|
219
|
-
|
|
220
|
-
// Checking if source is the local file on device
|
|
221
|
-
const isSourceLocalFile = imageSource.uri.startsWith('file://');
|
|
222
|
-
|
|
223
|
-
// if source is local file on ios device then we don't need to do any file system operation
|
|
224
|
-
// We can use that local file to show preview window to user on ios
|
|
225
|
-
const targetLocation =
|
|
226
|
-
isSourceLocalFile && Platform.OS === 'ios'
|
|
227
|
-
? source
|
|
228
|
-
: getTargetPath(imageExtension, peer.name);
|
|
229
|
-
|
|
230
|
-
// if source is local file on android device, then we copy source file to target path
|
|
231
|
-
if (isSourceLocalFile) {
|
|
232
|
-
if (Platform.OS === 'android') {
|
|
233
|
-
await RNFS.copyFile(
|
|
234
|
-
source, // Source Dir
|
|
235
|
-
targetLocation // Target Dir
|
|
236
|
-
);
|
|
237
|
-
}
|
|
238
|
-
}
|
|
239
|
-
// if source is not local file, then we write to target path
|
|
240
|
-
else {
|
|
241
|
-
await RNFetchBlob.fs.writeFile(
|
|
242
|
-
targetLocation, // Target Dir
|
|
243
|
-
source.replace('data:image/png;base64,', ''), // Data to write to "Target Dir"
|
|
244
|
-
'base64'
|
|
245
|
-
);
|
|
246
|
-
}
|
|
247
|
-
|
|
248
|
-
Share.open({ url: 'file://' + targetLocation })
|
|
249
|
-
.then(({ message }) => {
|
|
250
|
-
if (message.includes('SaveToCameraRoll')) {
|
|
251
|
-
Toast.showWithGravity(
|
|
252
|
-
'Snapshot has been saved successfully',
|
|
253
|
-
Toast.LONG,
|
|
254
|
-
Toast.TOP
|
|
255
|
-
);
|
|
256
|
-
}
|
|
257
|
-
cancelModal();
|
|
258
|
-
})
|
|
259
|
-
.catch((error) => console.log('share error -> ', error))
|
|
260
|
-
.finally(() => {
|
|
261
|
-
// On Android, We have already saved image into DCIM dir
|
|
262
|
-
// Therefore, we can notify user about "save success" and close modal
|
|
263
|
-
if (Platform.OS === 'android') {
|
|
264
|
-
Toast.showWithGravity(
|
|
265
|
-
'Snapshot has been saved successfully',
|
|
266
|
-
Toast.LONG,
|
|
267
|
-
Toast.TOP
|
|
268
|
-
);
|
|
269
|
-
cancelModal();
|
|
270
|
-
}
|
|
271
|
-
});
|
|
272
|
-
});
|
|
273
|
-
}
|
|
274
|
-
} catch (error) {
|
|
275
|
-
console.warn('Snapshot Save Error: ', error);
|
|
276
|
-
}
|
|
277
|
-
};
|
|
278
|
-
|
|
279
168
|
return (
|
|
280
169
|
<View style={[{ flexGrow: 1 }, styles.volumeModalContainer]}>
|
|
281
170
|
<Text style={styles.roleChangeModalHeading}>
|
|
@@ -290,116 +179,9 @@ export const SaveScreenshot = ({
|
|
|
290
179
|
) : null}
|
|
291
180
|
<View style={styles.roleChangeModalPermissionContainer}>
|
|
292
181
|
<CustomButton
|
|
293
|
-
title="
|
|
294
|
-
onPress={cancelModal}
|
|
295
|
-
viewStyle={[styles.roleChangeModalCancelButton, { width: '40%' }]}
|
|
296
|
-
textStyle={styles.roleChangeModalButtonText}
|
|
297
|
-
/>
|
|
298
|
-
<CustomButton
|
|
299
|
-
title="Save to Disk"
|
|
300
|
-
onPress={saveToDisk}
|
|
301
|
-
viewStyle={[styles.roleChangeModalSuccessButton, { width: '56%' }]}
|
|
302
|
-
textStyle={styles.roleChangeModalButtonText}
|
|
303
|
-
/>
|
|
304
|
-
</View>
|
|
305
|
-
</View>
|
|
306
|
-
);
|
|
307
|
-
};
|
|
308
|
-
|
|
309
|
-
export const ChangeVolumeModal = ({
|
|
310
|
-
cancelModal,
|
|
311
|
-
}: {
|
|
312
|
-
cancelModal: Function;
|
|
313
|
-
}) => {
|
|
314
|
-
const instance = useHMSInstance();
|
|
315
|
-
const peer = useSelector((state: RootState) => state.app.peerToUpdate);
|
|
316
|
-
const [volume, setVolume] = useState<number>(0);
|
|
317
|
-
|
|
318
|
-
const changeVolume = () => {
|
|
319
|
-
if (peer?.audioTrack) {
|
|
320
|
-
instance?.setVolume(peer?.audioTrack, volume);
|
|
321
|
-
}
|
|
322
|
-
cancelModal();
|
|
323
|
-
};
|
|
324
|
-
|
|
325
|
-
return (
|
|
326
|
-
<View style={styles.volumeModalContainer}>
|
|
327
|
-
<Text style={styles.roleChangeModalHeading}>Set Volume</Text>
|
|
328
|
-
<View style={styles.volumeModalSlider}>
|
|
329
|
-
<Text style={styles.roleChangeModalDescription}>Volume: {volume}</Text>
|
|
330
|
-
<Slider
|
|
331
|
-
value={volume}
|
|
332
|
-
maximumValue={10}
|
|
333
|
-
minimumValue={0}
|
|
334
|
-
step={1}
|
|
335
|
-
onValueChange={(value: any) => setVolume(value[0])}
|
|
336
|
-
/>
|
|
337
|
-
</View>
|
|
338
|
-
<View style={styles.roleChangeModalPermissionContainer}>
|
|
339
|
-
<CustomButton
|
|
340
|
-
title="Cancel"
|
|
341
|
-
onPress={cancelModal}
|
|
342
|
-
viewStyle={styles.roleChangeModalCancelButton}
|
|
343
|
-
textStyle={styles.roleChangeModalButtonText}
|
|
344
|
-
/>
|
|
345
|
-
<CustomButton
|
|
346
|
-
title="Change"
|
|
347
|
-
onPress={changeVolume}
|
|
348
|
-
viewStyle={styles.roleChangeModalSuccessButton}
|
|
349
|
-
textStyle={styles.roleChangeModalButtonText}
|
|
350
|
-
/>
|
|
351
|
-
</View>
|
|
352
|
-
</View>
|
|
353
|
-
);
|
|
354
|
-
};
|
|
355
|
-
|
|
356
|
-
export const ChangeNameModal = ({ cancelModal }: { cancelModal: Function }) => {
|
|
357
|
-
const instance = useHMSInstance();
|
|
358
|
-
const peer = useSelector((state: RootState) => state.app.peerToUpdate);
|
|
359
|
-
const dispatch = useDispatch();
|
|
360
|
-
|
|
361
|
-
const [name, setName] = useState<string>(peer?.name!);
|
|
362
|
-
|
|
363
|
-
const changeName = () => {
|
|
364
|
-
if (name.length > 0) {
|
|
365
|
-
instance
|
|
366
|
-
?.changeName(name)
|
|
367
|
-
.then((d) => {
|
|
368
|
-
dispatch(
|
|
369
|
-
saveUserData({
|
|
370
|
-
userName: name,
|
|
371
|
-
})
|
|
372
|
-
);
|
|
373
|
-
console.log('Change Name Success: ', d);
|
|
374
|
-
})
|
|
375
|
-
.catch((e) => console.log('Change Name Error: ', e));
|
|
376
|
-
}
|
|
377
|
-
cancelModal();
|
|
378
|
-
};
|
|
379
|
-
|
|
380
|
-
return (
|
|
381
|
-
<View style={styles.volumeModalContainer}>
|
|
382
|
-
<Text style={styles.roleChangeModalHeading}>Change Name</Text>
|
|
383
|
-
<View style={styles.volumeModalSlider}>
|
|
384
|
-
<CustomInput
|
|
385
|
-
value={name}
|
|
386
|
-
onChangeText={setName}
|
|
387
|
-
inputStyle={styles.participantChangeNameInput}
|
|
388
|
-
placeholderTextColor={COLORS.TEXT.DISABLED}
|
|
389
|
-
placeholder="Find what you’re looking for"
|
|
390
|
-
/>
|
|
391
|
-
</View>
|
|
392
|
-
<View style={styles.roleChangeModalPermissionContainer}>
|
|
393
|
-
<CustomButton
|
|
394
|
-
title="Cancel"
|
|
182
|
+
title="Done"
|
|
395
183
|
onPress={cancelModal}
|
|
396
|
-
viewStyle={styles.roleChangeModalCancelButton}
|
|
397
|
-
textStyle={styles.roleChangeModalButtonText}
|
|
398
|
-
/>
|
|
399
|
-
<CustomButton
|
|
400
|
-
title="Change"
|
|
401
|
-
onPress={changeName}
|
|
402
|
-
viewStyle={styles.roleChangeModalSuccessButton}
|
|
184
|
+
viewStyle={[styles.roleChangeModalCancelButton, { width: '100%' }]}
|
|
403
185
|
textStyle={styles.roleChangeModalButtonText}
|
|
404
186
|
/>
|
|
405
187
|
</View>
|
|
@@ -674,56 +456,6 @@ export const LeaveRoomModal = ({
|
|
|
674
456
|
);
|
|
675
457
|
};
|
|
676
458
|
|
|
677
|
-
export const EndRoomModal = ({
|
|
678
|
-
onSuccess,
|
|
679
|
-
cancelModal,
|
|
680
|
-
}: {
|
|
681
|
-
onSuccess: Function;
|
|
682
|
-
cancelModal: Function;
|
|
683
|
-
}) => {
|
|
684
|
-
const onEnd = () => {
|
|
685
|
-
cancelModal();
|
|
686
|
-
onSuccess();
|
|
687
|
-
};
|
|
688
|
-
return (
|
|
689
|
-
<View style={styles.volumeModalContainer}>
|
|
690
|
-
<View style={styles.participantMenuItem}>
|
|
691
|
-
<Feather
|
|
692
|
-
name="alert-triangle"
|
|
693
|
-
style={[styles.participantMenuItemIcon, styles.error]}
|
|
694
|
-
size={24}
|
|
695
|
-
/>
|
|
696
|
-
<Text style={[styles.roleChangeModalHeading, styles.error]}>
|
|
697
|
-
End Session
|
|
698
|
-
</Text>
|
|
699
|
-
</View>
|
|
700
|
-
<View style={styles.roleChangeModalPermissionContainer}>
|
|
701
|
-
<Text style={styles.roleChangeModalDescription}>
|
|
702
|
-
The session will end for everyone and all the activities will stop.
|
|
703
|
-
You can’t undo this action.
|
|
704
|
-
</Text>
|
|
705
|
-
</View>
|
|
706
|
-
<View style={styles.roleChangeModalPermissionContainer}>
|
|
707
|
-
<CustomButton
|
|
708
|
-
title="Don’t End"
|
|
709
|
-
onPress={cancelModal}
|
|
710
|
-
viewStyle={styles.roleChangeModalCancelButton}
|
|
711
|
-
textStyle={styles.roleChangeModalButtonText}
|
|
712
|
-
/>
|
|
713
|
-
<CustomButton
|
|
714
|
-
title="End Session"
|
|
715
|
-
onPress={onEnd}
|
|
716
|
-
viewStyle={[
|
|
717
|
-
styles.roleChangeModalSuccessButton,
|
|
718
|
-
styles.errorContainer,
|
|
719
|
-
]}
|
|
720
|
-
textStyle={styles.roleChangeModalButtonText}
|
|
721
|
-
/>
|
|
722
|
-
</View>
|
|
723
|
-
</View>
|
|
724
|
-
);
|
|
725
|
-
};
|
|
726
|
-
|
|
727
459
|
export const ChangeAudioOutputModal = ({
|
|
728
460
|
cancelModal,
|
|
729
461
|
}: {
|
|
@@ -1423,15 +1155,12 @@ export const HlsStreamingModal = ({
|
|
|
1423
1155
|
};
|
|
1424
1156
|
|
|
1425
1157
|
export const RecordingModal = ({
|
|
1426
|
-
recordingModal,
|
|
1427
1158
|
setModalVisible,
|
|
1428
1159
|
}: {
|
|
1429
|
-
recordingModal: boolean;
|
|
1430
1160
|
setModalVisible(modalType: ModalTypes, delay?: any): void;
|
|
1431
1161
|
}) => {
|
|
1432
1162
|
const instance = useHMSInstance();
|
|
1433
1163
|
const roomID = useSelector((state: RootState) => state.user.roomID);
|
|
1434
|
-
const [resolutionDetails, setResolutionDetails] = useState<boolean>(false);
|
|
1435
1164
|
const [recordingDetails, setRecordingDetails] = useState<HMSRTMPConfig>({
|
|
1436
1165
|
record: false,
|
|
1437
1166
|
meetingURL: roomID ? roomID + '?token=beam_recording' : undefined,
|
|
@@ -1445,7 +1174,7 @@ export const RecordingModal = ({
|
|
|
1445
1174
|
setModalVisible(ModalTypes.DEFAULT);
|
|
1446
1175
|
};
|
|
1447
1176
|
|
|
1448
|
-
return
|
|
1177
|
+
return (
|
|
1449
1178
|
<View style={styles.roleChangeModal}>
|
|
1450
1179
|
<Text style={styles.roleChangeModalHeading}>Recording Details</Text>
|
|
1451
1180
|
<TextInput
|
|
@@ -1498,38 +1227,6 @@ export const RecordingModal = ({
|
|
|
1498
1227
|
</View>
|
|
1499
1228
|
<Text style={styles.roleChangeModalPermission}>Record</Text>
|
|
1500
1229
|
</TouchableOpacity>
|
|
1501
|
-
<TouchableOpacity
|
|
1502
|
-
style={styles.checkboxButtonContainer}
|
|
1503
|
-
onPress={() => {
|
|
1504
|
-
setResolutionDetails(!resolutionDetails);
|
|
1505
|
-
if (!resolutionDetails) {
|
|
1506
|
-
setModalVisible(ModalTypes.RESOLUTION, true);
|
|
1507
|
-
setRecordingDetails({
|
|
1508
|
-
...recordingDetails,
|
|
1509
|
-
resolution: {
|
|
1510
|
-
height: 720,
|
|
1511
|
-
width: 1280,
|
|
1512
|
-
},
|
|
1513
|
-
});
|
|
1514
|
-
} else {
|
|
1515
|
-
setRecordingDetails({
|
|
1516
|
-
...recordingDetails,
|
|
1517
|
-
resolution: undefined,
|
|
1518
|
-
});
|
|
1519
|
-
}
|
|
1520
|
-
}}
|
|
1521
|
-
>
|
|
1522
|
-
<View style={styles.roleChangeModalCheckBox}>
|
|
1523
|
-
{resolutionDetails && (
|
|
1524
|
-
<Entypo
|
|
1525
|
-
name="check"
|
|
1526
|
-
style={styles.roleChangeModalCheck}
|
|
1527
|
-
size={10}
|
|
1528
|
-
/>
|
|
1529
|
-
)}
|
|
1530
|
-
</View>
|
|
1531
|
-
<Text style={styles.roleChangeModalPermission}>Resolution</Text>
|
|
1532
|
-
</TouchableOpacity>
|
|
1533
1230
|
<View style={styles.roleChangeModalPermissionContainer}>
|
|
1534
1231
|
<CustomButton
|
|
1535
1232
|
title="Cancel"
|
|
@@ -1545,62 +1242,6 @@ export const RecordingModal = ({
|
|
|
1545
1242
|
/>
|
|
1546
1243
|
</View>
|
|
1547
1244
|
</View>
|
|
1548
|
-
) : (
|
|
1549
|
-
<View style={styles.roleChangeModal}>
|
|
1550
|
-
<Text style={styles.roleChangeModalHeading}>Resolution Details</Text>
|
|
1551
|
-
<View style={styles.resolutionContainer}>
|
|
1552
|
-
<View style={styles.resolutionDetails}>
|
|
1553
|
-
<Text style={styles.interRegular}>Height :</Text>
|
|
1554
|
-
<Text style={styles.resolutionValue}>
|
|
1555
|
-
{recordingDetails.resolution?.height}
|
|
1556
|
-
</Text>
|
|
1557
|
-
</View>
|
|
1558
|
-
<Slider
|
|
1559
|
-
value={recordingDetails.resolution?.height}
|
|
1560
|
-
maximumValue={1280}
|
|
1561
|
-
minimumValue={480}
|
|
1562
|
-
step={10}
|
|
1563
|
-
onValueChange={(value: any) => {
|
|
1564
|
-
setRecordingDetails({
|
|
1565
|
-
...recordingDetails,
|
|
1566
|
-
resolution: {
|
|
1567
|
-
height: parseInt(value),
|
|
1568
|
-
width: recordingDetails.resolution?.width ?? 1280,
|
|
1569
|
-
},
|
|
1570
|
-
});
|
|
1571
|
-
}}
|
|
1572
|
-
/>
|
|
1573
|
-
<View style={styles.resolutionDetails}>
|
|
1574
|
-
<Text style={styles.interRegular}>Width :</Text>
|
|
1575
|
-
<Text style={styles.resolutionValue}>
|
|
1576
|
-
{recordingDetails.resolution?.width}
|
|
1577
|
-
</Text>
|
|
1578
|
-
</View>
|
|
1579
|
-
<Slider
|
|
1580
|
-
value={recordingDetails.resolution?.width}
|
|
1581
|
-
maximumValue={1280}
|
|
1582
|
-
minimumValue={500}
|
|
1583
|
-
step={10}
|
|
1584
|
-
onValueChange={(value: any) => {
|
|
1585
|
-
setRecordingDetails({
|
|
1586
|
-
...recordingDetails,
|
|
1587
|
-
resolution: {
|
|
1588
|
-
width: parseInt(value),
|
|
1589
|
-
height: recordingDetails.resolution?.height ?? 720,
|
|
1590
|
-
},
|
|
1591
|
-
});
|
|
1592
|
-
}}
|
|
1593
|
-
/>
|
|
1594
|
-
</View>
|
|
1595
|
-
<View style={styles.sortingButtonContainer}>
|
|
1596
|
-
<CustomButton
|
|
1597
|
-
title="Back"
|
|
1598
|
-
onPress={() => setModalVisible(ModalTypes.RECORDING, true)}
|
|
1599
|
-
viewStyle={styles.backButton}
|
|
1600
|
-
textStyle={styles.roleChangeModalButtonText}
|
|
1601
|
-
/>
|
|
1602
|
-
</View>
|
|
1603
|
-
</View>
|
|
1604
1245
|
);
|
|
1605
1246
|
};
|
|
1606
1247
|
|
|
@@ -1757,51 +1398,6 @@ export const RealTime = ({ startedAt }: { startedAt?: Date }) => {
|
|
|
1757
1398
|
);
|
|
1758
1399
|
};
|
|
1759
1400
|
|
|
1760
|
-
export const AudioShareSetVolumeModal = ({
|
|
1761
|
-
success,
|
|
1762
|
-
cancel,
|
|
1763
|
-
}: {
|
|
1764
|
-
success: Function;
|
|
1765
|
-
cancel: Function;
|
|
1766
|
-
}) => {
|
|
1767
|
-
const [volume, setVolume] = useState<number>(0);
|
|
1768
|
-
|
|
1769
|
-
const changeVolume = () => {
|
|
1770
|
-
success(volume);
|
|
1771
|
-
cancel();
|
|
1772
|
-
};
|
|
1773
|
-
|
|
1774
|
-
return (
|
|
1775
|
-
<View style={styles.volumeModalContainer}>
|
|
1776
|
-
<Text style={styles.roleChangeModalHeading}>Set Volume</Text>
|
|
1777
|
-
<View style={styles.volumeModalSlider}>
|
|
1778
|
-
<Text style={styles.roleChangeModalDescription}>Volume: {volume}</Text>
|
|
1779
|
-
<Slider
|
|
1780
|
-
value={volume}
|
|
1781
|
-
maximumValue={1}
|
|
1782
|
-
minimumValue={0}
|
|
1783
|
-
step={0.1}
|
|
1784
|
-
onValueChange={(value: any) => setVolume(value[0])}
|
|
1785
|
-
/>
|
|
1786
|
-
</View>
|
|
1787
|
-
<View style={styles.roleChangeModalPermissionContainer}>
|
|
1788
|
-
<CustomButton
|
|
1789
|
-
title="Cancel"
|
|
1790
|
-
onPress={cancel}
|
|
1791
|
-
viewStyle={styles.roleChangeModalCancelButton}
|
|
1792
|
-
textStyle={styles.roleChangeModalButtonText}
|
|
1793
|
-
/>
|
|
1794
|
-
<CustomButton
|
|
1795
|
-
title="Change"
|
|
1796
|
-
onPress={changeVolume}
|
|
1797
|
-
viewStyle={styles.roleChangeModalSuccessButton}
|
|
1798
|
-
textStyle={styles.roleChangeModalButtonText}
|
|
1799
|
-
/>
|
|
1800
|
-
</View>
|
|
1801
|
-
</View>
|
|
1802
|
-
);
|
|
1803
|
-
};
|
|
1804
|
-
|
|
1805
1401
|
interface ChangeBulkRoleModalProps {
|
|
1806
1402
|
cancelModal(): void;
|
|
1807
1403
|
}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { useSelector } from 'react-redux';
|
|
3
|
+
import { StyleSheet, View } from 'react-native';
|
|
4
|
+
|
|
5
|
+
import { useHMSRoomStyleSheet } from '../hooks-util';
|
|
6
|
+
import type { RootState } from '../redux';
|
|
7
|
+
|
|
8
|
+
export interface PaginationDotsProps {
|
|
9
|
+
list: any[];
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
const _PaginationDots: React.FC<PaginationDotsProps> = ({ list }) => {
|
|
13
|
+
const activeIndex = useSelector(
|
|
14
|
+
(state: RootState) => state.app.gridViewActivePage
|
|
15
|
+
);
|
|
16
|
+
|
|
17
|
+
const hmsRoomStyles = useHMSRoomStyleSheet(
|
|
18
|
+
(theme) => ({
|
|
19
|
+
dot: { backgroundColor: theme.palette.on_surface_low },
|
|
20
|
+
activeDot: { backgroundColor: theme.palette.on_surface_high },
|
|
21
|
+
}),
|
|
22
|
+
[]
|
|
23
|
+
);
|
|
24
|
+
|
|
25
|
+
return (
|
|
26
|
+
<View style={styles.container}>
|
|
27
|
+
{list.map((listItem, idx) => {
|
|
28
|
+
const isActive = activeIndex === idx;
|
|
29
|
+
const isFirst = idx === 0;
|
|
30
|
+
|
|
31
|
+
return (
|
|
32
|
+
<View
|
|
33
|
+
key={listItem?.id || idx.toString()}
|
|
34
|
+
style={[
|
|
35
|
+
styles.dot,
|
|
36
|
+
hmsRoomStyles.dot,
|
|
37
|
+
isFirst ? styles.firstDot : null,
|
|
38
|
+
isActive ? hmsRoomStyles.activeDot : null,
|
|
39
|
+
]}
|
|
40
|
+
/>
|
|
41
|
+
);
|
|
42
|
+
})}
|
|
43
|
+
</View>
|
|
44
|
+
);
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
const styles = StyleSheet.create({
|
|
48
|
+
container: {
|
|
49
|
+
flexDirection: 'row',
|
|
50
|
+
alignItems: 'center',
|
|
51
|
+
justifyContent: 'center',
|
|
52
|
+
marginVertical: 16,
|
|
53
|
+
},
|
|
54
|
+
dot: {
|
|
55
|
+
width: 8,
|
|
56
|
+
aspectRatio: 1,
|
|
57
|
+
borderRadius: 4,
|
|
58
|
+
marginLeft: 12,
|
|
59
|
+
},
|
|
60
|
+
firstDot: {
|
|
61
|
+
marginLeft: 0,
|
|
62
|
+
},
|
|
63
|
+
});
|
|
64
|
+
|
|
65
|
+
export const PaginationDots = React.memo(_PaginationDots);
|
|
@@ -88,16 +88,6 @@ export const ParticipantsList: React.FC<ParticipantsListProps> = ({ data }) => {
|
|
|
88
88
|
}
|
|
89
89
|
};
|
|
90
90
|
|
|
91
|
-
const onSetVolumePress = (peer: HMSPeer) => {
|
|
92
|
-
hideMenu();
|
|
93
|
-
setTimeout(() => {
|
|
94
|
-
batch(() => {
|
|
95
|
-
dispatch(setPeerToUpdate(peer));
|
|
96
|
-
setModalVisible(ModalTypes.VOLUME, true);
|
|
97
|
-
});
|
|
98
|
-
}, 500);
|
|
99
|
-
};
|
|
100
|
-
|
|
101
91
|
return (
|
|
102
92
|
<FlatList
|
|
103
93
|
data={data}
|
|
@@ -226,20 +216,6 @@ export const ParticipantsList: React.FC<ParticipantsListProps> = ({ data }) => {
|
|
|
226
216
|
</View>
|
|
227
217
|
</MenuItem>
|
|
228
218
|
) : null}
|
|
229
|
-
{peer.isLocal === false && !!peer.audioTrack ? (
|
|
230
|
-
<MenuItem onPress={() => onSetVolumePress(peer)}>
|
|
231
|
-
<View style={styles.participantMenuItem}>
|
|
232
|
-
<Ionicons
|
|
233
|
-
name="volume-high-outline"
|
|
234
|
-
style={styles.participantMenuItemIcon}
|
|
235
|
-
size={24}
|
|
236
|
-
/>
|
|
237
|
-
<Text style={styles.participantMenuItemName}>
|
|
238
|
-
Set Volume
|
|
239
|
-
</Text>
|
|
240
|
-
</View>
|
|
241
|
-
</MenuItem>
|
|
242
|
-
) : null}
|
|
243
219
|
</Menu>
|
|
244
220
|
</View>
|
|
245
221
|
);
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { StyleSheet, Text, View } from 'react-native';
|
|
3
|
+
import { useSelector } from 'react-redux';
|
|
4
|
+
|
|
5
|
+
import { useHMSRoomStyleSheet } from '../hooks-util';
|
|
6
|
+
import type { RootState } from '../redux';
|
|
7
|
+
|
|
8
|
+
const _ParticipantsCount = () => {
|
|
9
|
+
const hmsRoomStyles = useHMSRoomStyleSheet((theme, typography) => ({
|
|
10
|
+
container: {
|
|
11
|
+
backgroundColor: theme.palette.surface_bright,
|
|
12
|
+
},
|
|
13
|
+
count: {
|
|
14
|
+
color: theme.palette.on_surface_high,
|
|
15
|
+
fontFamily: `${typography.font_family}-SemiBold`,
|
|
16
|
+
},
|
|
17
|
+
}));
|
|
18
|
+
|
|
19
|
+
const peerCount = useSelector(
|
|
20
|
+
(state: RootState) => state.hmsStates.room?.peerCount
|
|
21
|
+
);
|
|
22
|
+
|
|
23
|
+
if (typeof peerCount !== 'number') {
|
|
24
|
+
return null;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
return (
|
|
28
|
+
<View style={[styles.container, hmsRoomStyles.container]}>
|
|
29
|
+
<Text style={[styles.count, hmsRoomStyles.count]}>{peerCount}</Text>
|
|
30
|
+
</View>
|
|
31
|
+
);
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
const styles = StyleSheet.create({
|
|
35
|
+
container: {
|
|
36
|
+
position: 'absolute',
|
|
37
|
+
right: 0,
|
|
38
|
+
borderRadius: 40,
|
|
39
|
+
paddingHorizontal: 4,
|
|
40
|
+
paddingVertical: 2,
|
|
41
|
+
alignItems: 'center',
|
|
42
|
+
justifyContent: 'center',
|
|
43
|
+
},
|
|
44
|
+
count: {
|
|
45
|
+
fontSize: 10,
|
|
46
|
+
lineHeight: 16,
|
|
47
|
+
letterSpacing: 1.5,
|
|
48
|
+
textAlign: 'center',
|
|
49
|
+
},
|
|
50
|
+
});
|
|
51
|
+
|
|
52
|
+
export const ParticipantsCount = React.memo(_ParticipantsCount);
|