@100mslive/react-native-room-kit 0.0.1
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/LICENSE +20 -0
- package/README.md +25 -0
- package/lib/commonjs/HMSContainer.js +20 -0
- package/lib/commonjs/HMSContainer.js.map +1 -0
- package/lib/commonjs/HMSInstanceSetup.js +160 -0
- package/lib/commonjs/HMSInstanceSetup.js.map +1 -0
- package/lib/commonjs/HMSPrebuilt.js +32 -0
- package/lib/commonjs/HMSPrebuilt.js.map +1 -0
- package/lib/commonjs/HMSRoomSetup.js +216 -0
- package/lib/commonjs/HMSRoomSetup.js.map +1 -0
- package/lib/commonjs/Icons/100ms/assets/hms-logo.png +0 -0
- package/lib/commonjs/Icons/100ms/assets/hms-logo@2x.png +0 -0
- package/lib/commonjs/Icons/100ms/assets/hms-logo@3x.png +0 -0
- package/lib/commonjs/Icons/100ms/index.js +30 -0
- package/lib/commonjs/Icons/100ms/index.js.map +1 -0
- package/lib/commonjs/Icons/Alert/assets/alert.png +0 -0
- package/lib/commonjs/Icons/Alert/assets/alert@2x.png +0 -0
- package/lib/commonjs/Icons/Alert/assets/alert@3x.png +0 -0
- package/lib/commonjs/Icons/Alert/index.js +30 -0
- package/lib/commonjs/Icons/Alert/index.js.map +1 -0
- package/lib/commonjs/Icons/Camera/assets/camera-muted.png +0 -0
- package/lib/commonjs/Icons/Camera/assets/camera-muted@2x.png +0 -0
- package/lib/commonjs/Icons/Camera/assets/camera-muted@3x.png +0 -0
- package/lib/commonjs/Icons/Camera/assets/camera-unmuted.png +0 -0
- package/lib/commonjs/Icons/Camera/assets/camera-unmuted@2x.png +0 -0
- package/lib/commonjs/Icons/Camera/assets/camera-unmuted@3x.png +0 -0
- package/lib/commonjs/Icons/Camera/index.js +31 -0
- package/lib/commonjs/Icons/Camera/index.js.map +1 -0
- package/lib/commonjs/Icons/Chat/assets/chat.png +0 -0
- package/lib/commonjs/Icons/Chat/assets/chat@2x.png +0 -0
- package/lib/commonjs/Icons/Chat/assets/chat@3x.png +0 -0
- package/lib/commonjs/Icons/Chat/index.js +30 -0
- package/lib/commonjs/Icons/Chat/index.js.map +1 -0
- package/lib/commonjs/Icons/Chevron/assets/chevron-down.png +0 -0
- package/lib/commonjs/Icons/Chevron/assets/chevron-down@2x.png +0 -0
- package/lib/commonjs/Icons/Chevron/assets/chevron-down@3x.png +0 -0
- package/lib/commonjs/Icons/Chevron/assets/chevron-left.png +0 -0
- package/lib/commonjs/Icons/Chevron/assets/chevron-left@2x.png +0 -0
- package/lib/commonjs/Icons/Chevron/assets/chevron-left@3x.png +0 -0
- package/lib/commonjs/Icons/Chevron/index.js +31 -0
- package/lib/commonjs/Icons/Chevron/index.js.map +1 -0
- package/lib/commonjs/Icons/Clock/assets/clock.png +0 -0
- package/lib/commonjs/Icons/Clock/assets/clock@2x.png +0 -0
- package/lib/commonjs/Icons/Clock/assets/clock@3x.png +0 -0
- package/lib/commonjs/Icons/Clock/index.js +30 -0
- package/lib/commonjs/Icons/Clock/index.js.map +1 -0
- package/lib/commonjs/Icons/Close/assets/close.png +0 -0
- package/lib/commonjs/Icons/Close/assets/close@2x.png +0 -0
- package/lib/commonjs/Icons/Close/assets/close@3x.png +0 -0
- package/lib/commonjs/Icons/Close/index.js +30 -0
- package/lib/commonjs/Icons/Close/index.js.map +1 -0
- package/lib/commonjs/Icons/End/assets/end.png +0 -0
- package/lib/commonjs/Icons/End/assets/end@2x.png +0 -0
- package/lib/commonjs/Icons/End/assets/end@3x.png +0 -0
- package/lib/commonjs/Icons/End/index.js +30 -0
- package/lib/commonjs/Icons/End/index.js.map +1 -0
- package/lib/commonjs/Icons/Hand/assets/hand.png +0 -0
- package/lib/commonjs/Icons/Hand/assets/hand@2x.png +0 -0
- package/lib/commonjs/Icons/Hand/assets/hand@3x.png +0 -0
- package/lib/commonjs/Icons/Hand/index.js +32 -0
- package/lib/commonjs/Icons/Hand/index.js.map +1 -0
- package/lib/commonjs/Icons/Leave/assets/leave.png +0 -0
- package/lib/commonjs/Icons/Leave/assets/leave@2x.png +0 -0
- package/lib/commonjs/Icons/Leave/assets/leave@3x.png +0 -0
- package/lib/commonjs/Icons/Leave/index.js +30 -0
- package/lib/commonjs/Icons/Leave/index.js.map +1 -0
- package/lib/commonjs/Icons/Mic/assets/mic-muted.png +0 -0
- package/lib/commonjs/Icons/Mic/assets/mic-muted@2x.png +0 -0
- package/lib/commonjs/Icons/Mic/assets/mic-muted@3x.png +0 -0
- package/lib/commonjs/Icons/Mic/assets/mic-unmuted.png +0 -0
- package/lib/commonjs/Icons/Mic/assets/mic-unmuted@2x.png +0 -0
- package/lib/commonjs/Icons/Mic/assets/mic-unmuted@3x.png +0 -0
- package/lib/commonjs/Icons/Mic/index.js +31 -0
- package/lib/commonjs/Icons/Mic/index.js.map +1 -0
- package/lib/commonjs/Icons/NetworkQuality/assets/network_0.png +0 -0
- package/lib/commonjs/Icons/NetworkQuality/assets/network_0@2x.png +0 -0
- package/lib/commonjs/Icons/NetworkQuality/assets/network_0@3x.png +0 -0
- package/lib/commonjs/Icons/NetworkQuality/assets/network_1.png +0 -0
- package/lib/commonjs/Icons/NetworkQuality/assets/network_1@2x.png +0 -0
- package/lib/commonjs/Icons/NetworkQuality/assets/network_1@3x.png +0 -0
- package/lib/commonjs/Icons/NetworkQuality/assets/network_2.png +0 -0
- package/lib/commonjs/Icons/NetworkQuality/assets/network_2@2x.png +0 -0
- package/lib/commonjs/Icons/NetworkQuality/assets/network_2@3x.png +0 -0
- package/lib/commonjs/Icons/NetworkQuality/assets/network_3.png +0 -0
- package/lib/commonjs/Icons/NetworkQuality/assets/network_3@2x.png +0 -0
- package/lib/commonjs/Icons/NetworkQuality/assets/network_3@3x.png +0 -0
- package/lib/commonjs/Icons/NetworkQuality/assets/network_4.png +0 -0
- package/lib/commonjs/Icons/NetworkQuality/assets/network_4@2x.png +0 -0
- package/lib/commonjs/Icons/NetworkQuality/assets/network_4@3x.png +0 -0
- package/lib/commonjs/Icons/NetworkQuality/assets/network_5.png +0 -0
- package/lib/commonjs/Icons/NetworkQuality/assets/network_5@2x.png +0 -0
- package/lib/commonjs/Icons/NetworkQuality/assets/network_5@3x.png +0 -0
- package/lib/commonjs/Icons/NetworkQuality/index.js +31 -0
- package/lib/commonjs/Icons/NetworkQuality/index.js.map +1 -0
- package/lib/commonjs/Icons/Participants/assets/participants.png +0 -0
- package/lib/commonjs/Icons/Participants/assets/participants@2x.png +0 -0
- package/lib/commonjs/Icons/Participants/assets/participants@3x.png +0 -0
- package/lib/commonjs/Icons/Participants/index.js +30 -0
- package/lib/commonjs/Icons/Participants/index.js.map +1 -0
- package/lib/commonjs/Icons/RotateCamera/assets/rotate-camera.png +0 -0
- package/lib/commonjs/Icons/RotateCamera/assets/rotate-camera@2x.png +0 -0
- package/lib/commonjs/Icons/RotateCamera/assets/rotate-camera@3x.png +0 -0
- package/lib/commonjs/Icons/RotateCamera/index.js +30 -0
- package/lib/commonjs/Icons/RotateCamera/index.js.map +1 -0
- package/lib/commonjs/Icons/ScreenShare/assets/screen-share.png +0 -0
- package/lib/commonjs/Icons/ScreenShare/assets/screen-share@2x.png +0 -0
- package/lib/commonjs/Icons/ScreenShare/assets/screen-share@3x.png +0 -0
- package/lib/commonjs/Icons/ScreenShare/index.js +30 -0
- package/lib/commonjs/Icons/ScreenShare/index.js.map +1 -0
- package/lib/commonjs/Icons/Send/assets/send.png +0 -0
- package/lib/commonjs/Icons/Send/assets/send@2x.png +0 -0
- package/lib/commonjs/Icons/Send/assets/send@3x.png +0 -0
- package/lib/commonjs/Icons/Send/index.js +30 -0
- package/lib/commonjs/Icons/Send/index.js.map +1 -0
- package/lib/commonjs/Icons/Settings/assets/settings.png +0 -0
- package/lib/commonjs/Icons/Settings/assets/settings@2x.png +0 -0
- package/lib/commonjs/Icons/Settings/assets/settings@3x.png +0 -0
- package/lib/commonjs/Icons/Settings/index.js +30 -0
- package/lib/commonjs/Icons/Settings/index.js.map +1 -0
- package/lib/commonjs/Icons/Speaker/assets/speaker-muted.png +0 -0
- package/lib/commonjs/Icons/Speaker/assets/speaker-muted@2x.png +0 -0
- package/lib/commonjs/Icons/Speaker/assets/speaker-muted@3x.png +0 -0
- package/lib/commonjs/Icons/Speaker/assets/speaker.png +0 -0
- package/lib/commonjs/Icons/Speaker/assets/speaker@2x.png +0 -0
- package/lib/commonjs/Icons/Speaker/assets/speaker@3x.png +0 -0
- package/lib/commonjs/Icons/Speaker/index.js +31 -0
- package/lib/commonjs/Icons/Speaker/index.js.map +1 -0
- package/lib/commonjs/Icons/ThreeDots/assets/three-dots-vertical.png +0 -0
- package/lib/commonjs/Icons/ThreeDots/assets/three-dots-vertical@2x.png +0 -0
- package/lib/commonjs/Icons/ThreeDots/assets/three-dots-vertical@3x.png +0 -0
- package/lib/commonjs/Icons/ThreeDots/index.js +31 -0
- package/lib/commonjs/Icons/ThreeDots/index.js.map +1 -0
- package/lib/commonjs/Icons/index.js +215 -0
- package/lib/commonjs/Icons/index.js.map +1 -0
- package/lib/commonjs/assets/100ms-logo.png +0 -0
- package/lib/commonjs/assets/brb.png +0 -0
- package/lib/commonjs/assets/icon.png +0 -0
- package/lib/commonjs/assets/illustration.png +0 -0
- package/lib/commonjs/assets/network_0.png +0 -0
- package/lib/commonjs/assets/network_1.png +0 -0
- package/lib/commonjs/assets/network_2.png +0 -0
- package/lib/commonjs/assets/network_3.png +0 -0
- package/lib/commonjs/assets/network_4.png +0 -0
- package/lib/commonjs/assets/user_music.png +0 -0
- package/lib/commonjs/components/AvatarView.js +48 -0
- package/lib/commonjs/components/AvatarView.js.map +1 -0
- package/lib/commonjs/components/BackButton.js +42 -0
- package/lib/commonjs/components/BackButton.js.map +1 -0
- package/lib/commonjs/components/Chat/ChatBanner.js +77 -0
- package/lib/commonjs/components/Chat/ChatBanner.js.map +1 -0
- package/lib/commonjs/components/Chat/ChatList.js +51 -0
- package/lib/commonjs/components/Chat/ChatList.js.map +1 -0
- package/lib/commonjs/components/Chat/ChatMessage.js +175 -0
- package/lib/commonjs/components/Chat/ChatMessage.js.map +1 -0
- package/lib/commonjs/components/Chat/PinnedMessage.js +85 -0
- package/lib/commonjs/components/Chat/PinnedMessage.js.map +1 -0
- package/lib/commonjs/components/Chat/index.js +50 -0
- package/lib/commonjs/components/Chat/index.js.map +1 -0
- package/lib/commonjs/components/ChatWindow.js +608 -0
- package/lib/commonjs/components/ChatWindow.js.map +1 -0
- package/lib/commonjs/components/CustomButton.js +53 -0
- package/lib/commonjs/components/CustomButton.js.map +1 -0
- package/lib/commonjs/components/CustomHLSPlayerControls.js +81 -0
- package/lib/commonjs/components/CustomHLSPlayerControls.js.map +1 -0
- package/lib/commonjs/components/CustomInput.js +90 -0
- package/lib/commonjs/components/CustomInput.js.map +1 -0
- package/lib/commonjs/components/DefaultModal.js +104 -0
- package/lib/commonjs/components/DefaultModal.js.map +1 -0
- package/lib/commonjs/components/DisplayTrack.js +70 -0
- package/lib/commonjs/components/DisplayTrack.js.map +1 -0
- package/lib/commonjs/components/DisplayView.js +213 -0
- package/lib/commonjs/components/DisplayView.js.map +1 -0
- package/lib/commonjs/components/Footer.js +86 -0
- package/lib/commonjs/components/Footer.js.map +1 -0
- package/lib/commonjs/components/FullScreenIndicator.js +25 -0
- package/lib/commonjs/components/FullScreenIndicator.js.map +1 -0
- package/lib/commonjs/components/GridView.js +98 -0
- package/lib/commonjs/components/GridView.js.map +1 -0
- package/lib/commonjs/components/HLSPlayerEmoticons.js +48 -0
- package/lib/commonjs/components/HLSPlayerEmoticons.js.map +1 -0
- package/lib/commonjs/components/HLSPlayerStatsView.js +64 -0
- package/lib/commonjs/components/HLSPlayerStatsView.js.map +1 -0
- package/lib/commonjs/components/HLSView.js +141 -0
- package/lib/commonjs/components/HLSView.js.map +1 -0
- package/lib/commonjs/components/HMSChat.js +31 -0
- package/lib/commonjs/components/HMSChat.js.map +1 -0
- package/lib/commonjs/components/HMSHLSNotStarted.js +59 -0
- package/lib/commonjs/components/HMSHLSNotStarted.js.map +1 -0
- package/lib/commonjs/components/HMSManageCameraRotation.js +42 -0
- package/lib/commonjs/components/HMSManageCameraRotation.js.map +1 -0
- package/lib/commonjs/components/HMSManageLeave.js +286 -0
- package/lib/commonjs/components/HMSManageLeave.js.map +1 -0
- package/lib/commonjs/components/HMSManageLocalAudio.js +46 -0
- package/lib/commonjs/components/HMSManageLocalAudio.js.map +1 -0
- package/lib/commonjs/components/HMSManageLocalVideo.js +46 -0
- package/lib/commonjs/components/HMSManageLocalVideo.js.map +1 -0
- package/lib/commonjs/components/HMSManageRaiseHand.js +48 -0
- package/lib/commonjs/components/HMSManageRaiseHand.js.map +1 -0
- package/lib/commonjs/components/HMSPreviewDeviceSettings.js +305 -0
- package/lib/commonjs/components/HMSPreviewDeviceSettings.js.map +1 -0
- package/lib/commonjs/components/HMSPreviewEditName.js +63 -0
- package/lib/commonjs/components/HMSPreviewEditName.js.map +1 -0
- package/lib/commonjs/components/HMSPreviewJoinButton.js +56 -0
- package/lib/commonjs/components/HMSPreviewJoinButton.js.map +1 -0
- package/lib/commonjs/components/HMSPreviewPeersList.js +89 -0
- package/lib/commonjs/components/HMSPreviewPeersList.js.map +1 -0
- package/lib/commonjs/components/HMSPreviewSubtitle.js +32 -0
- package/lib/commonjs/components/HMSPreviewSubtitle.js.map +1 -0
- package/lib/commonjs/components/HMSPreviewTile.js +138 -0
- package/lib/commonjs/components/HMSPreviewTile.js.map +1 -0
- package/lib/commonjs/components/HMSPreviewTitle.js +32 -0
- package/lib/commonjs/components/HMSPreviewTitle.js.map +1 -0
- package/lib/commonjs/components/HMSRoomOptions.js +105 -0
- package/lib/commonjs/components/HMSRoomOptions.js.map +1 -0
- package/lib/commonjs/components/HMSShareScreen.js +59 -0
- package/lib/commonjs/components/HMSShareScreen.js.map +1 -0
- package/lib/commonjs/components/HMSShowNetworkQuality.js +57 -0
- package/lib/commonjs/components/HMSShowNetworkQuality.js.map +1 -0
- package/lib/commonjs/components/Header.js +177 -0
- package/lib/commonjs/components/Header.js.map +1 -0
- package/lib/commonjs/components/LiveButton.js +70 -0
- package/lib/commonjs/components/LiveButton.js.map +1 -0
- package/lib/commonjs/components/Meeting.js +64 -0
- package/lib/commonjs/components/Meeting.js.map +1 -0
- package/lib/commonjs/components/MeetingScreenContent.js +98 -0
- package/lib/commonjs/components/MeetingScreenContent.js.map +1 -0
- package/lib/commonjs/components/MenuModal/Menu.js +250 -0
- package/lib/commonjs/components/MenuModal/Menu.js.map +1 -0
- package/lib/commonjs/components/MenuModal/MenuDivider.js +27 -0
- package/lib/commonjs/components/MenuModal/MenuDivider.js.map +1 -0
- package/lib/commonjs/components/MenuModal/MenuItem.js +60 -0
- package/lib/commonjs/components/MenuModal/MenuItem.js.map +1 -0
- package/lib/commonjs/components/MenuModal/index.js +27 -0
- package/lib/commonjs/components/MenuModal/index.js.map +1 -0
- package/lib/commonjs/components/Modals.js +1640 -0
- package/lib/commonjs/components/Modals.js.map +1 -0
- package/lib/commonjs/components/PIPView.js +33 -0
- package/lib/commonjs/components/PIPView.js.map +1 -0
- package/lib/commonjs/components/Participants/ParticipantsFilter.js +128 -0
- package/lib/commonjs/components/Participants/ParticipantsFilter.js.map +1 -0
- package/lib/commonjs/components/Participants/ParticipantsHeader.js +67 -0
- package/lib/commonjs/components/Participants/ParticipantsHeader.js.map +1 -0
- package/lib/commonjs/components/Participants/ParticipantsList.js +274 -0
- package/lib/commonjs/components/Participants/ParticipantsList.js.map +1 -0
- package/lib/commonjs/components/Participants/ParticipantsSeachInput.js +55 -0
- package/lib/commonjs/components/Participants/ParticipantsSeachInput.js.map +1 -0
- package/lib/commonjs/components/Participants/SearchableParticipantsView.js +27 -0
- package/lib/commonjs/components/Participants/SearchableParticipantsView.js.map +1 -0
- package/lib/commonjs/components/Participants/index.js +61 -0
- package/lib/commonjs/components/Participants/index.js.map +1 -0
- package/lib/commonjs/components/ParticipantsModal.js +43 -0
- package/lib/commonjs/components/ParticipantsModal.js.map +1 -0
- package/lib/commonjs/components/PeerDisplayView.js +79 -0
- package/lib/commonjs/components/PeerDisplayView.js.map +1 -0
- package/lib/commonjs/components/PeerRTCStatsContainer.js +70 -0
- package/lib/commonjs/components/PeerRTCStatsContainer.js.map +1 -0
- package/lib/commonjs/components/PeerRTCStatsView.js +54 -0
- package/lib/commonjs/components/PeerRTCStatsView.js.map +1 -0
- package/lib/commonjs/components/PeerSettingsModalContent.js +241 -0
- package/lib/commonjs/components/PeerSettingsModalContent.js.map +1 -0
- package/lib/commonjs/components/Picker.js +93 -0
- package/lib/commonjs/components/Picker.js.map +1 -0
- package/lib/commonjs/components/PressableIcon.js +46 -0
- package/lib/commonjs/components/PressableIcon.js.map +1 -0
- package/lib/commonjs/components/Preview.js +86 -0
- package/lib/commonjs/components/Preview.js.map +1 -0
- package/lib/commonjs/components/RoomSettingsModalContent.js +515 -0
- package/lib/commonjs/components/RoomSettingsModalContent.js.map +1 -0
- package/lib/commonjs/components/StatusBar.js +26 -0
- package/lib/commonjs/components/StatusBar.js.map +1 -0
- package/lib/commonjs/components/StreamingQualityModalContent.js +215 -0
- package/lib/commonjs/components/StreamingQualityModalContent.js.map +1 -0
- package/lib/commonjs/components/SwitchRow.js +49 -0
- package/lib/commonjs/components/SwitchRow.js.map +1 -0
- package/lib/commonjs/components/Tile.js +111 -0
- package/lib/commonjs/components/Tile.js.map +1 -0
- package/lib/commonjs/components/TilesContainer.js +38 -0
- package/lib/commonjs/components/TilesContainer.js.map +1 -0
- package/lib/commonjs/components/ZoomableView.js +84 -0
- package/lib/commonjs/components/ZoomableView.js.map +1 -0
- package/lib/commonjs/components/index.js +94 -0
- package/lib/commonjs/components/index.js.map +1 -0
- package/lib/commonjs/components/styles.js +965 -0
- package/lib/commonjs/components/styles.js.map +1 -0
- package/lib/commonjs/hooks/useHmsInstance.js +175 -0
- package/lib/commonjs/hooks/useHmsInstance.js.map +1 -0
- package/lib/commonjs/hooks-sdk-selectors.js +17 -0
- package/lib/commonjs/hooks-sdk-selectors.js.map +1 -0
- package/lib/commonjs/hooks-sdk.js +126 -0
- package/lib/commonjs/hooks-sdk.js.map +1 -0
- package/lib/commonjs/hooks-util-selectors.js +12 -0
- package/lib/commonjs/hooks-util-selectors.js.map +1 -0
- package/lib/commonjs/hooks-util.js +792 -0
- package/lib/commonjs/hooks-util.js.map +1 -0
- package/lib/commonjs/index.js +17 -0
- package/lib/commonjs/index.js.map +1 -0
- package/lib/commonjs/peerTrackNodeUtils.js +65 -0
- package/lib/commonjs/peerTrackNodeUtils.js.map +1 -0
- package/lib/commonjs/redux/actionTypes.js +75 -0
- package/lib/commonjs/redux/actionTypes.js.map +1 -0
- package/lib/commonjs/redux/actions/index.js +182 -0
- package/lib/commonjs/redux/actions/index.js.map +1 -0
- package/lib/commonjs/redux/index.js +12 -0
- package/lib/commonjs/redux/index.js.map +1 -0
- package/lib/commonjs/redux/reducers/appState.js +131 -0
- package/lib/commonjs/redux/reducers/appState.js.map +1 -0
- package/lib/commonjs/redux/reducers/chatWindow.js +45 -0
- package/lib/commonjs/redux/reducers/chatWindow.js.map +1 -0
- package/lib/commonjs/redux/reducers/hmsStates.js +67 -0
- package/lib/commonjs/redux/reducers/hmsStates.js.map +1 -0
- package/lib/commonjs/redux/reducers/index.js +22 -0
- package/lib/commonjs/redux/reducers/index.js.map +1 -0
- package/lib/commonjs/redux/reducers/message.js +43 -0
- package/lib/commonjs/redux/reducers/message.js.map +1 -0
- package/lib/commonjs/redux/reducers/userState.js +67 -0
- package/lib/commonjs/redux/reducers/userState.js.map +1 -0
- package/lib/commonjs/types.js +16 -0
- package/lib/commonjs/types.js.map +1 -0
- package/lib/commonjs/utils/dimension.js +64 -0
- package/lib/commonjs/utils/dimension.js.map +1 -0
- package/lib/commonjs/utils/functions.js +368 -0
- package/lib/commonjs/utils/functions.js.map +1 -0
- package/lib/commonjs/utils/getRoomLinkDetails.js +23 -0
- package/lib/commonjs/utils/getRoomLinkDetails.js.map +1 -0
- package/lib/commonjs/utils/hooks.js +46 -0
- package/lib/commonjs/utils/hooks.js.map +1 -0
- package/lib/commonjs/utils/theme.js +144 -0
- package/lib/commonjs/utils/theme.js.map +1 -0
- package/lib/commonjs/utils/types.js +104 -0
- package/lib/commonjs/utils/types.js.map +1 -0
- package/lib/commonjs/utils.js +30 -0
- package/lib/commonjs/utils.js.map +1 -0
- package/lib/module/HMSContainer.js +12 -0
- package/lib/module/HMSContainer.js.map +1 -0
- package/lib/module/HMSInstanceSetup.js +151 -0
- package/lib/module/HMSInstanceSetup.js.map +1 -0
- package/lib/module/HMSPrebuilt.js +22 -0
- package/lib/module/HMSPrebuilt.js.map +1 -0
- package/lib/module/HMSRoomSetup.js +206 -0
- package/lib/module/HMSRoomSetup.js.map +1 -0
- package/lib/module/Icons/100ms/assets/hms-logo.png +0 -0
- package/lib/module/Icons/100ms/assets/hms-logo@2x.png +0 -0
- package/lib/module/Icons/100ms/assets/hms-logo@3x.png +0 -0
- package/lib/module/Icons/100ms/index.js +22 -0
- package/lib/module/Icons/100ms/index.js.map +1 -0
- package/lib/module/Icons/Alert/assets/alert.png +0 -0
- package/lib/module/Icons/Alert/assets/alert@2x.png +0 -0
- package/lib/module/Icons/Alert/assets/alert@3x.png +0 -0
- package/lib/module/Icons/Alert/index.js +22 -0
- package/lib/module/Icons/Alert/index.js.map +1 -0
- package/lib/module/Icons/Camera/assets/camera-muted.png +0 -0
- package/lib/module/Icons/Camera/assets/camera-muted@2x.png +0 -0
- package/lib/module/Icons/Camera/assets/camera-muted@3x.png +0 -0
- package/lib/module/Icons/Camera/assets/camera-unmuted.png +0 -0
- package/lib/module/Icons/Camera/assets/camera-unmuted@2x.png +0 -0
- package/lib/module/Icons/Camera/assets/camera-unmuted@3x.png +0 -0
- package/lib/module/Icons/Camera/index.js +23 -0
- package/lib/module/Icons/Camera/index.js.map +1 -0
- package/lib/module/Icons/Chat/assets/chat.png +0 -0
- package/lib/module/Icons/Chat/assets/chat@2x.png +0 -0
- package/lib/module/Icons/Chat/assets/chat@3x.png +0 -0
- package/lib/module/Icons/Chat/index.js +22 -0
- package/lib/module/Icons/Chat/index.js.map +1 -0
- package/lib/module/Icons/Chevron/assets/chevron-down.png +0 -0
- package/lib/module/Icons/Chevron/assets/chevron-down@2x.png +0 -0
- package/lib/module/Icons/Chevron/assets/chevron-down@3x.png +0 -0
- package/lib/module/Icons/Chevron/assets/chevron-left.png +0 -0
- package/lib/module/Icons/Chevron/assets/chevron-left@2x.png +0 -0
- package/lib/module/Icons/Chevron/assets/chevron-left@3x.png +0 -0
- package/lib/module/Icons/Chevron/index.js +23 -0
- package/lib/module/Icons/Chevron/index.js.map +1 -0
- package/lib/module/Icons/Clock/assets/clock.png +0 -0
- package/lib/module/Icons/Clock/assets/clock@2x.png +0 -0
- package/lib/module/Icons/Clock/assets/clock@3x.png +0 -0
- package/lib/module/Icons/Clock/index.js +22 -0
- package/lib/module/Icons/Clock/index.js.map +1 -0
- package/lib/module/Icons/Close/assets/close.png +0 -0
- package/lib/module/Icons/Close/assets/close@2x.png +0 -0
- package/lib/module/Icons/Close/assets/close@3x.png +0 -0
- package/lib/module/Icons/Close/index.js +22 -0
- package/lib/module/Icons/Close/index.js.map +1 -0
- package/lib/module/Icons/End/assets/end.png +0 -0
- package/lib/module/Icons/End/assets/end@2x.png +0 -0
- package/lib/module/Icons/End/assets/end@3x.png +0 -0
- package/lib/module/Icons/End/index.js +22 -0
- package/lib/module/Icons/End/index.js.map +1 -0
- package/lib/module/Icons/Hand/assets/hand.png +0 -0
- package/lib/module/Icons/Hand/assets/hand@2x.png +0 -0
- package/lib/module/Icons/Hand/assets/hand@3x.png +0 -0
- package/lib/module/Icons/Hand/index.js +24 -0
- package/lib/module/Icons/Hand/index.js.map +1 -0
- package/lib/module/Icons/Leave/assets/leave.png +0 -0
- package/lib/module/Icons/Leave/assets/leave@2x.png +0 -0
- package/lib/module/Icons/Leave/assets/leave@3x.png +0 -0
- package/lib/module/Icons/Leave/index.js +22 -0
- package/lib/module/Icons/Leave/index.js.map +1 -0
- package/lib/module/Icons/Mic/assets/mic-muted.png +0 -0
- package/lib/module/Icons/Mic/assets/mic-muted@2x.png +0 -0
- package/lib/module/Icons/Mic/assets/mic-muted@3x.png +0 -0
- package/lib/module/Icons/Mic/assets/mic-unmuted.png +0 -0
- package/lib/module/Icons/Mic/assets/mic-unmuted@2x.png +0 -0
- package/lib/module/Icons/Mic/assets/mic-unmuted@3x.png +0 -0
- package/lib/module/Icons/Mic/index.js +23 -0
- package/lib/module/Icons/Mic/index.js.map +1 -0
- package/lib/module/Icons/NetworkQuality/assets/network_0.png +0 -0
- package/lib/module/Icons/NetworkQuality/assets/network_0@2x.png +0 -0
- package/lib/module/Icons/NetworkQuality/assets/network_0@3x.png +0 -0
- package/lib/module/Icons/NetworkQuality/assets/network_1.png +0 -0
- package/lib/module/Icons/NetworkQuality/assets/network_1@2x.png +0 -0
- package/lib/module/Icons/NetworkQuality/assets/network_1@3x.png +0 -0
- package/lib/module/Icons/NetworkQuality/assets/network_2.png +0 -0
- package/lib/module/Icons/NetworkQuality/assets/network_2@2x.png +0 -0
- package/lib/module/Icons/NetworkQuality/assets/network_2@3x.png +0 -0
- package/lib/module/Icons/NetworkQuality/assets/network_3.png +0 -0
- package/lib/module/Icons/NetworkQuality/assets/network_3@2x.png +0 -0
- package/lib/module/Icons/NetworkQuality/assets/network_3@3x.png +0 -0
- package/lib/module/Icons/NetworkQuality/assets/network_4.png +0 -0
- package/lib/module/Icons/NetworkQuality/assets/network_4@2x.png +0 -0
- package/lib/module/Icons/NetworkQuality/assets/network_4@3x.png +0 -0
- package/lib/module/Icons/NetworkQuality/assets/network_5.png +0 -0
- package/lib/module/Icons/NetworkQuality/assets/network_5@2x.png +0 -0
- package/lib/module/Icons/NetworkQuality/assets/network_5@3x.png +0 -0
- package/lib/module/Icons/NetworkQuality/index.js +23 -0
- package/lib/module/Icons/NetworkQuality/index.js.map +1 -0
- package/lib/module/Icons/Participants/assets/participants.png +0 -0
- package/lib/module/Icons/Participants/assets/participants@2x.png +0 -0
- package/lib/module/Icons/Participants/assets/participants@3x.png +0 -0
- package/lib/module/Icons/Participants/index.js +22 -0
- package/lib/module/Icons/Participants/index.js.map +1 -0
- package/lib/module/Icons/RotateCamera/assets/rotate-camera.png +0 -0
- package/lib/module/Icons/RotateCamera/assets/rotate-camera@2x.png +0 -0
- package/lib/module/Icons/RotateCamera/assets/rotate-camera@3x.png +0 -0
- package/lib/module/Icons/RotateCamera/index.js +22 -0
- package/lib/module/Icons/RotateCamera/index.js.map +1 -0
- package/lib/module/Icons/ScreenShare/assets/screen-share.png +0 -0
- package/lib/module/Icons/ScreenShare/assets/screen-share@2x.png +0 -0
- package/lib/module/Icons/ScreenShare/assets/screen-share@3x.png +0 -0
- package/lib/module/Icons/ScreenShare/index.js +22 -0
- package/lib/module/Icons/ScreenShare/index.js.map +1 -0
- package/lib/module/Icons/Send/assets/send.png +0 -0
- package/lib/module/Icons/Send/assets/send@2x.png +0 -0
- package/lib/module/Icons/Send/assets/send@3x.png +0 -0
- package/lib/module/Icons/Send/index.js +22 -0
- package/lib/module/Icons/Send/index.js.map +1 -0
- package/lib/module/Icons/Settings/assets/settings.png +0 -0
- package/lib/module/Icons/Settings/assets/settings@2x.png +0 -0
- package/lib/module/Icons/Settings/assets/settings@3x.png +0 -0
- package/lib/module/Icons/Settings/index.js +22 -0
- package/lib/module/Icons/Settings/index.js.map +1 -0
- package/lib/module/Icons/Speaker/assets/speaker-muted.png +0 -0
- package/lib/module/Icons/Speaker/assets/speaker-muted@2x.png +0 -0
- package/lib/module/Icons/Speaker/assets/speaker-muted@3x.png +0 -0
- package/lib/module/Icons/Speaker/assets/speaker.png +0 -0
- package/lib/module/Icons/Speaker/assets/speaker@2x.png +0 -0
- package/lib/module/Icons/Speaker/assets/speaker@3x.png +0 -0
- package/lib/module/Icons/Speaker/index.js +23 -0
- package/lib/module/Icons/Speaker/index.js.map +1 -0
- package/lib/module/Icons/ThreeDots/assets/three-dots-vertical.png +0 -0
- package/lib/module/Icons/ThreeDots/assets/three-dots-vertical@2x.png +0 -0
- package/lib/module/Icons/ThreeDots/assets/three-dots-vertical@3x.png +0 -0
- package/lib/module/Icons/ThreeDots/index.js +23 -0
- package/lib/module/Icons/ThreeDots/index.js.map +1 -0
- package/lib/module/Icons/index.js +20 -0
- package/lib/module/Icons/index.js.map +1 -0
- package/lib/module/assets/100ms-logo.png +0 -0
- package/lib/module/assets/brb.png +0 -0
- package/lib/module/assets/icon.png +0 -0
- package/lib/module/assets/illustration.png +0 -0
- package/lib/module/assets/network_0.png +0 -0
- package/lib/module/assets/network_1.png +0 -0
- package/lib/module/assets/network_2.png +0 -0
- package/lib/module/assets/network_3.png +0 -0
- package/lib/module/assets/network_4.png +0 -0
- package/lib/module/assets/user_music.png +0 -0
- package/lib/module/components/AvatarView.js +39 -0
- package/lib/module/components/AvatarView.js.map +1 -0
- package/lib/module/components/BackButton.js +33 -0
- package/lib/module/components/BackButton.js.map +1 -0
- package/lib/module/components/Chat/ChatBanner.js +67 -0
- package/lib/module/components/Chat/ChatBanner.js.map +1 -0
- package/lib/module/components/Chat/ChatList.js +44 -0
- package/lib/module/components/Chat/ChatList.js.map +1 -0
- package/lib/module/components/Chat/ChatMessage.js +165 -0
- package/lib/module/components/Chat/ChatMessage.js.map +1 -0
- package/lib/module/components/Chat/PinnedMessage.js +75 -0
- package/lib/module/components/Chat/PinnedMessage.js.map +1 -0
- package/lib/module/components/Chat/index.js +5 -0
- package/lib/module/components/Chat/index.js.map +1 -0
- package/lib/module/components/ChatWindow.js +595 -0
- package/lib/module/components/ChatWindow.js.map +1 -0
- package/lib/module/components/CustomButton.js +46 -0
- package/lib/module/components/CustomButton.js.map +1 -0
- package/lib/module/components/CustomHLSPlayerControls.js +73 -0
- package/lib/module/components/CustomHLSPlayerControls.js.map +1 -0
- package/lib/module/components/CustomInput.js +83 -0
- package/lib/module/components/CustomInput.js.map +1 -0
- package/lib/module/components/DefaultModal.js +96 -0
- package/lib/module/components/DefaultModal.js.map +1 -0
- package/lib/module/components/DisplayTrack.js +63 -0
- package/lib/module/components/DisplayTrack.js.map +1 -0
- package/lib/module/components/DisplayView.js +203 -0
- package/lib/module/components/DisplayView.js.map +1 -0
- package/lib/module/components/Footer.js +76 -0
- package/lib/module/components/Footer.js.map +1 -0
- package/lib/module/components/FullScreenIndicator.js +17 -0
- package/lib/module/components/FullScreenIndicator.js.map +1 -0
- package/lib/module/components/GridView.js +90 -0
- package/lib/module/components/GridView.js.map +1 -0
- package/lib/module/components/HLSPlayerEmoticons.js +40 -0
- package/lib/module/components/HLSPlayerEmoticons.js.map +1 -0
- package/lib/module/components/HLSPlayerStatsView.js +56 -0
- package/lib/module/components/HLSPlayerStatsView.js.map +1 -0
- package/lib/module/components/HLSView.js +132 -0
- package/lib/module/components/HLSView.js.map +1 -0
- package/lib/module/components/HMSChat.js +22 -0
- package/lib/module/components/HMSChat.js.map +1 -0
- package/lib/module/components/HMSHLSNotStarted.js +50 -0
- package/lib/module/components/HMSHLSNotStarted.js.map +1 -0
- package/lib/module/components/HMSManageCameraRotation.js +33 -0
- package/lib/module/components/HMSManageCameraRotation.js.map +1 -0
- package/lib/module/components/HMSManageLeave.js +276 -0
- package/lib/module/components/HMSManageLeave.js.map +1 -0
- package/lib/module/components/HMSManageLocalAudio.js +37 -0
- package/lib/module/components/HMSManageLocalAudio.js.map +1 -0
- package/lib/module/components/HMSManageLocalVideo.js +37 -0
- package/lib/module/components/HMSManageLocalVideo.js.map +1 -0
- package/lib/module/components/HMSManageRaiseHand.js +39 -0
- package/lib/module/components/HMSManageRaiseHand.js.map +1 -0
- package/lib/module/components/HMSPreviewDeviceSettings.js +296 -0
- package/lib/module/components/HMSPreviewDeviceSettings.js.map +1 -0
- package/lib/module/components/HMSPreviewEditName.js +54 -0
- package/lib/module/components/HMSPreviewEditName.js.map +1 -0
- package/lib/module/components/HMSPreviewJoinButton.js +47 -0
- package/lib/module/components/HMSPreviewJoinButton.js.map +1 -0
- package/lib/module/components/HMSPreviewPeersList.js +80 -0
- package/lib/module/components/HMSPreviewPeersList.js.map +1 -0
- package/lib/module/components/HMSPreviewSubtitle.js +23 -0
- package/lib/module/components/HMSPreviewSubtitle.js.map +1 -0
- package/lib/module/components/HMSPreviewTile.js +129 -0
- package/lib/module/components/HMSPreviewTile.js.map +1 -0
- package/lib/module/components/HMSPreviewTitle.js +23 -0
- package/lib/module/components/HMSPreviewTitle.js.map +1 -0
- package/lib/module/components/HMSRoomOptions.js +96 -0
- package/lib/module/components/HMSRoomOptions.js.map +1 -0
- package/lib/module/components/HMSShareScreen.js +50 -0
- package/lib/module/components/HMSShareScreen.js.map +1 -0
- package/lib/module/components/HMSShowNetworkQuality.js +48 -0
- package/lib/module/components/HMSShowNetworkQuality.js.map +1 -0
- package/lib/module/components/Header.js +167 -0
- package/lib/module/components/Header.js.map +1 -0
- package/lib/module/components/LiveButton.js +61 -0
- package/lib/module/components/LiveButton.js.map +1 -0
- package/lib/module/components/Meeting.js +55 -0
- package/lib/module/components/Meeting.js.map +1 -0
- package/lib/module/components/MeetingScreenContent.js +89 -0
- package/lib/module/components/MeetingScreenContent.js.map +1 -0
- package/lib/module/components/MenuModal/Menu.js +242 -0
- package/lib/module/components/MenuModal/Menu.js.map +1 -0
- package/lib/module/components/MenuModal/MenuDivider.js +20 -0
- package/lib/module/components/MenuModal/MenuDivider.js.map +1 -0
- package/lib/module/components/MenuModal/MenuItem.js +53 -0
- package/lib/module/components/MenuModal/MenuItem.js.map +1 -0
- package/lib/module/components/MenuModal/index.js +4 -0
- package/lib/module/components/MenuModal/index.js.map +1 -0
- package/lib/module/components/Modals.js +1609 -0
- package/lib/module/components/Modals.js.map +1 -0
- package/lib/module/components/PIPView.js +23 -0
- package/lib/module/components/PIPView.js.map +1 -0
- package/lib/module/components/Participants/ParticipantsFilter.js +121 -0
- package/lib/module/components/Participants/ParticipantsFilter.js.map +1 -0
- package/lib/module/components/Participants/ParticipantsHeader.js +58 -0
- package/lib/module/components/Participants/ParticipantsHeader.js.map +1 -0
- package/lib/module/components/Participants/ParticipantsList.js +264 -0
- package/lib/module/components/Participants/ParticipantsList.js.map +1 -0
- package/lib/module/components/Participants/ParticipantsSeachInput.js +45 -0
- package/lib/module/components/Participants/ParticipantsSeachInput.js.map +1 -0
- package/lib/module/components/Participants/SearchableParticipantsView.js +18 -0
- package/lib/module/components/Participants/SearchableParticipantsView.js.map +1 -0
- package/lib/module/components/Participants/index.js +6 -0
- package/lib/module/components/Participants/index.js.map +1 -0
- package/lib/module/components/ParticipantsModal.js +34 -0
- package/lib/module/components/ParticipantsModal.js.map +1 -0
- package/lib/module/components/PeerDisplayView.js +71 -0
- package/lib/module/components/PeerDisplayView.js.map +1 -0
- package/lib/module/components/PeerRTCStatsContainer.js +60 -0
- package/lib/module/components/PeerRTCStatsContainer.js.map +1 -0
- package/lib/module/components/PeerRTCStatsView.js +46 -0
- package/lib/module/components/PeerRTCStatsView.js.map +1 -0
- package/lib/module/components/PeerSettingsModalContent.js +233 -0
- package/lib/module/components/PeerSettingsModalContent.js.map +1 -0
- package/lib/module/components/Picker.js +83 -0
- package/lib/module/components/Picker.js.map +1 -0
- package/lib/module/components/PressableIcon.js +37 -0
- package/lib/module/components/PressableIcon.js.map +1 -0
- package/lib/module/components/Preview.js +77 -0
- package/lib/module/components/Preview.js.map +1 -0
- package/lib/module/components/RoomSettingsModalContent.js +505 -0
- package/lib/module/components/RoomSettingsModalContent.js.map +1 -0
- package/lib/module/components/StatusBar.js +17 -0
- package/lib/module/components/StatusBar.js.map +1 -0
- package/lib/module/components/StreamingQualityModalContent.js +205 -0
- package/lib/module/components/StreamingQualityModalContent.js.map +1 -0
- package/lib/module/components/SwitchRow.js +41 -0
- package/lib/module/components/SwitchRow.js.map +1 -0
- package/lib/module/components/Tile.js +104 -0
- package/lib/module/components/Tile.js.map +1 -0
- package/lib/module/components/TilesContainer.js +31 -0
- package/lib/module/components/TilesContainer.js.map +1 -0
- package/lib/module/components/ZoomableView.js +76 -0
- package/lib/module/components/ZoomableView.js.map +1 -0
- package/lib/module/components/index.js +9 -0
- package/lib/module/components/index.js.map +1 -0
- package/lib/module/components/styles.js +959 -0
- package/lib/module/components/styles.js.map +1 -0
- package/lib/module/hooks/useHmsInstance.js +174 -0
- package/lib/module/hooks/useHmsInstance.js.map +1 -0
- package/lib/module/hooks-sdk-selectors.js +9 -0
- package/lib/module/hooks-sdk-selectors.js.map +1 -0
- package/lib/module/hooks-sdk.js +115 -0
- package/lib/module/hooks-sdk.js.map +1 -0
- package/lib/module/hooks-util-selectors.js +5 -0
- package/lib/module/hooks-util-selectors.js.map +1 -0
- package/lib/module/hooks-util.js +772 -0
- package/lib/module/hooks-util.js.map +1 -0
- package/lib/module/index.js +2 -0
- package/lib/module/index.js.map +1 -0
- package/lib/module/peerTrackNodeUtils.js +52 -0
- package/lib/module/peerTrackNodeUtils.js.map +1 -0
- package/lib/module/redux/actionTypes.js +67 -0
- package/lib/module/redux/actionTypes.js.map +1 -0
- package/lib/module/redux/actions/index.js +144 -0
- package/lib/module/redux/actions/index.js.map +1 -0
- package/lib/module/redux/index.js +4 -0
- package/lib/module/redux/index.js.map +1 -0
- package/lib/module/redux/reducers/appState.js +123 -0
- package/lib/module/redux/reducers/appState.js.map +1 -0
- package/lib/module/redux/reducers/chatWindow.js +38 -0
- package/lib/module/redux/reducers/chatWindow.js.map +1 -0
- package/lib/module/redux/reducers/hmsStates.js +60 -0
- package/lib/module/redux/reducers/hmsStates.js.map +1 -0
- package/lib/module/redux/reducers/index.js +14 -0
- package/lib/module/redux/reducers/index.js.map +1 -0
- package/lib/module/redux/reducers/message.js +34 -0
- package/lib/module/redux/reducers/message.js.map +1 -0
- package/lib/module/redux/reducers/userState.js +58 -0
- package/lib/module/redux/reducers/userState.js.map +1 -0
- package/lib/module/types.js +9 -0
- package/lib/module/types.js.map +1 -0
- package/lib/module/utils/dimension.js +53 -0
- package/lib/module/utils/dimension.js.map +1 -0
- package/lib/module/utils/functions.js +338 -0
- package/lib/module/utils/functions.js.map +1 -0
- package/lib/module/utils/getRoomLinkDetails.js +16 -0
- package/lib/module/utils/getRoomLinkDetails.js.map +1 -0
- package/lib/module/utils/hooks.js +39 -0
- package/lib/module/utils/hooks.js.map +1 -0
- package/lib/module/utils/theme.js +134 -0
- package/lib/module/utils/theme.js.map +1 -0
- package/lib/module/utils/types.js +90 -0
- package/lib/module/utils/types.js.map +1 -0
- package/lib/module/utils.js +23 -0
- package/lib/module/utils.js.map +1 -0
- package/lib/typescript/HMSContainer.d.ts +3 -0
- package/lib/typescript/HMSContainer.d.ts.map +1 -0
- package/lib/typescript/HMSInstanceSetup.d.ts +3 -0
- package/lib/typescript/HMSInstanceSetup.d.ts.map +1 -0
- package/lib/typescript/HMSPrebuilt.d.ts +18 -0
- package/lib/typescript/HMSPrebuilt.d.ts.map +1 -0
- package/lib/typescript/HMSRoomSetup.d.ts +3 -0
- package/lib/typescript/HMSRoomSetup.d.ts.map +1 -0
- package/lib/typescript/Icons/100ms/index.d.ts +7 -0
- package/lib/typescript/Icons/100ms/index.d.ts.map +1 -0
- package/lib/typescript/Icons/Alert/index.d.ts +7 -0
- package/lib/typescript/Icons/Alert/index.d.ts.map +1 -0
- package/lib/typescript/Icons/Camera/index.d.ts +8 -0
- package/lib/typescript/Icons/Camera/index.d.ts.map +1 -0
- package/lib/typescript/Icons/Chat/index.d.ts +7 -0
- package/lib/typescript/Icons/Chat/index.d.ts.map +1 -0
- package/lib/typescript/Icons/Chevron/index.d.ts +8 -0
- package/lib/typescript/Icons/Chevron/index.d.ts.map +1 -0
- package/lib/typescript/Icons/Clock/index.d.ts +7 -0
- package/lib/typescript/Icons/Clock/index.d.ts.map +1 -0
- package/lib/typescript/Icons/Close/index.d.ts +7 -0
- package/lib/typescript/Icons/Close/index.d.ts.map +1 -0
- package/lib/typescript/Icons/End/index.d.ts +7 -0
- package/lib/typescript/Icons/End/index.d.ts.map +1 -0
- package/lib/typescript/Icons/Hand/index.d.ts +7 -0
- package/lib/typescript/Icons/Hand/index.d.ts.map +1 -0
- package/lib/typescript/Icons/Leave/index.d.ts +7 -0
- package/lib/typescript/Icons/Leave/index.d.ts.map +1 -0
- package/lib/typescript/Icons/Mic/index.d.ts +8 -0
- package/lib/typescript/Icons/Mic/index.d.ts.map +1 -0
- package/lib/typescript/Icons/NetworkQuality/index.d.ts +8 -0
- package/lib/typescript/Icons/NetworkQuality/index.d.ts.map +1 -0
- package/lib/typescript/Icons/Participants/index.d.ts +7 -0
- package/lib/typescript/Icons/Participants/index.d.ts.map +1 -0
- package/lib/typescript/Icons/RotateCamera/index.d.ts +7 -0
- package/lib/typescript/Icons/RotateCamera/index.d.ts.map +1 -0
- package/lib/typescript/Icons/ScreenShare/index.d.ts +7 -0
- package/lib/typescript/Icons/ScreenShare/index.d.ts.map +1 -0
- package/lib/typescript/Icons/Send/index.d.ts +7 -0
- package/lib/typescript/Icons/Send/index.d.ts.map +1 -0
- package/lib/typescript/Icons/Settings/index.d.ts +7 -0
- package/lib/typescript/Icons/Settings/index.d.ts.map +1 -0
- package/lib/typescript/Icons/Speaker/index.d.ts +8 -0
- package/lib/typescript/Icons/Speaker/index.d.ts.map +1 -0
- package/lib/typescript/Icons/ThreeDots/index.d.ts +8 -0
- package/lib/typescript/Icons/ThreeDots/index.d.ts.map +1 -0
- package/lib/typescript/Icons/index.d.ts +20 -0
- package/lib/typescript/Icons/index.d.ts.map +1 -0
- package/lib/typescript/components/AvatarView.d.ts +10 -0
- package/lib/typescript/components/AvatarView.d.ts.map +1 -0
- package/lib/typescript/components/BackButton.d.ts +5 -0
- package/lib/typescript/components/BackButton.d.ts.map +1 -0
- package/lib/typescript/components/Chat/ChatBanner.d.ts +3 -0
- package/lib/typescript/components/Chat/ChatBanner.d.ts.map +1 -0
- package/lib/typescript/components/Chat/ChatList.d.ts +5 -0
- package/lib/typescript/components/Chat/ChatList.d.ts.map +1 -0
- package/lib/typescript/components/Chat/ChatMessage.d.ts +8 -0
- package/lib/typescript/components/Chat/ChatMessage.d.ts.map +1 -0
- package/lib/typescript/components/Chat/PinnedMessage.d.ts +3 -0
- package/lib/typescript/components/Chat/PinnedMessage.d.ts.map +1 -0
- package/lib/typescript/components/Chat/index.d.ts +5 -0
- package/lib/typescript/components/Chat/index.d.ts.map +1 -0
- package/lib/typescript/components/ChatWindow.d.ts +22 -0
- package/lib/typescript/components/ChatWindow.d.ts.map +1 -0
- package/lib/typescript/components/CustomButton.d.ts +14 -0
- package/lib/typescript/components/CustomButton.d.ts.map +1 -0
- package/lib/typescript/components/CustomHLSPlayerControls.d.ts +7 -0
- package/lib/typescript/components/CustomHLSPlayerControls.d.ts.map +1 -0
- package/lib/typescript/components/CustomInput.d.ts +24 -0
- package/lib/typescript/components/CustomInput.d.ts.map +1 -0
- package/lib/typescript/components/DefaultModal.d.ts +15 -0
- package/lib/typescript/components/DefaultModal.d.ts.map +1 -0
- package/lib/typescript/components/DisplayTrack.d.ts +9 -0
- package/lib/typescript/components/DisplayTrack.d.ts.map +1 -0
- package/lib/typescript/components/DisplayView.d.ts +10 -0
- package/lib/typescript/components/DisplayView.d.ts.map +1 -0
- package/lib/typescript/components/Footer.d.ts +9 -0
- package/lib/typescript/components/Footer.d.ts.map +1 -0
- package/lib/typescript/components/FullScreenIndicator.d.ts +3 -0
- package/lib/typescript/components/FullScreenIndicator.d.ts.map +1 -0
- package/lib/typescript/components/GridView.d.ts +14 -0
- package/lib/typescript/components/GridView.d.ts.map +1 -0
- package/lib/typescript/components/HLSPlayerEmoticons.d.ts +2 -0
- package/lib/typescript/components/HLSPlayerEmoticons.d.ts.map +1 -0
- package/lib/typescript/components/HLSPlayerStatsView.d.ts +6 -0
- package/lib/typescript/components/HLSPlayerStatsView.d.ts.map +1 -0
- package/lib/typescript/components/HLSView.d.ts +3 -0
- package/lib/typescript/components/HLSView.d.ts.map +1 -0
- package/lib/typescript/components/HMSChat.d.ts +3 -0
- package/lib/typescript/components/HMSChat.d.ts.map +1 -0
- package/lib/typescript/components/HMSHLSNotStarted.d.ts +3 -0
- package/lib/typescript/components/HMSHLSNotStarted.d.ts.map +1 -0
- package/lib/typescript/components/HMSManageCameraRotation.d.ts +3 -0
- package/lib/typescript/components/HMSManageCameraRotation.d.ts.map +1 -0
- package/lib/typescript/components/HMSManageLeave.d.ts +9 -0
- package/lib/typescript/components/HMSManageLeave.d.ts.map +1 -0
- package/lib/typescript/components/HMSManageLocalAudio.d.ts +3 -0
- package/lib/typescript/components/HMSManageLocalAudio.d.ts.map +1 -0
- package/lib/typescript/components/HMSManageLocalVideo.d.ts +3 -0
- package/lib/typescript/components/HMSManageLocalVideo.d.ts.map +1 -0
- package/lib/typescript/components/HMSManageRaiseHand.d.ts +3 -0
- package/lib/typescript/components/HMSManageRaiseHand.d.ts.map +1 -0
- package/lib/typescript/components/HMSPreviewDeviceSettings.d.ts +3 -0
- package/lib/typescript/components/HMSPreviewDeviceSettings.d.ts.map +1 -0
- package/lib/typescript/components/HMSPreviewEditName.d.ts +5 -0
- package/lib/typescript/components/HMSPreviewEditName.d.ts.map +1 -0
- package/lib/typescript/components/HMSPreviewJoinButton.d.ts +7 -0
- package/lib/typescript/components/HMSPreviewJoinButton.d.ts.map +1 -0
- package/lib/typescript/components/HMSPreviewPeersList.d.ts +5 -0
- package/lib/typescript/components/HMSPreviewPeersList.d.ts.map +1 -0
- package/lib/typescript/components/HMSPreviewSubtitle.d.ts +6 -0
- package/lib/typescript/components/HMSPreviewSubtitle.d.ts.map +1 -0
- package/lib/typescript/components/HMSPreviewTile.d.ts +3 -0
- package/lib/typescript/components/HMSPreviewTile.d.ts.map +1 -0
- package/lib/typescript/components/HMSPreviewTitle.d.ts +6 -0
- package/lib/typescript/components/HMSPreviewTitle.d.ts.map +1 -0
- package/lib/typescript/components/HMSRoomOptions.d.ts +6 -0
- package/lib/typescript/components/HMSRoomOptions.d.ts.map +1 -0
- package/lib/typescript/components/HMSShareScreen.d.ts +9 -0
- package/lib/typescript/components/HMSShareScreen.d.ts.map +1 -0
- package/lib/typescript/components/HMSShowNetworkQuality.d.ts +3 -0
- package/lib/typescript/components/HMSShowNetworkQuality.d.ts.map +1 -0
- package/lib/typescript/components/Header.d.ts +9 -0
- package/lib/typescript/components/Header.d.ts.map +1 -0
- package/lib/typescript/components/LiveButton.d.ts +17 -0
- package/lib/typescript/components/LiveButton.d.ts.map +1 -0
- package/lib/typescript/components/Meeting.d.ts +8 -0
- package/lib/typescript/components/Meeting.d.ts.map +1 -0
- package/lib/typescript/components/MeetingScreenContent.d.ts +8 -0
- package/lib/typescript/components/MeetingScreenContent.d.ts.map +1 -0
- package/lib/typescript/components/MenuModal/Menu.d.ts +45 -0
- package/lib/typescript/components/MenuModal/Menu.d.ts.map +1 -0
- package/lib/typescript/components/MenuModal/MenuDivider.d.ts +6 -0
- package/lib/typescript/components/MenuModal/MenuDivider.d.ts.map +1 -0
- package/lib/typescript/components/MenuModal/MenuItem.d.ts +12 -0
- package/lib/typescript/components/MenuModal/MenuItem.d.ts.map +1 -0
- package/lib/typescript/components/MenuModal/index.d.ts +7 -0
- package/lib/typescript/components/MenuModal/index.d.ts.map +1 -0
- package/lib/typescript/components/Modals.d.ts +96 -0
- package/lib/typescript/components/Modals.d.ts.map +1 -0
- package/lib/typescript/components/PIPView.d.ts +8 -0
- package/lib/typescript/components/PIPView.d.ts.map +1 -0
- package/lib/typescript/components/Participants/ParticipantsFilter.d.ts +6 -0
- package/lib/typescript/components/Participants/ParticipantsFilter.d.ts.map +1 -0
- package/lib/typescript/components/Participants/ParticipantsHeader.d.ts +9 -0
- package/lib/typescript/components/Participants/ParticipantsHeader.d.ts.map +1 -0
- package/lib/typescript/components/Participants/ParticipantsList.d.ts +7 -0
- package/lib/typescript/components/Participants/ParticipantsList.d.ts.map +1 -0
- package/lib/typescript/components/Participants/ParticipantsSeachInput.d.ts +8 -0
- package/lib/typescript/components/Participants/ParticipantsSeachInput.d.ts.map +1 -0
- package/lib/typescript/components/Participants/SearchableParticipantsView.d.ts +3 -0
- package/lib/typescript/components/Participants/SearchableParticipantsView.d.ts.map +1 -0
- package/lib/typescript/components/Participants/index.d.ts +6 -0
- package/lib/typescript/components/Participants/index.d.ts.map +1 -0
- package/lib/typescript/components/ParticipantsModal.d.ts +5 -0
- package/lib/typescript/components/ParticipantsModal.d.ts.map +1 -0
- package/lib/typescript/components/PeerDisplayView.d.ts +11 -0
- package/lib/typescript/components/PeerDisplayView.d.ts.map +1 -0
- package/lib/typescript/components/PeerRTCStatsContainer.d.ts +9 -0
- package/lib/typescript/components/PeerRTCStatsContainer.d.ts.map +1 -0
- package/lib/typescript/components/PeerRTCStatsView.d.ts +10 -0
- package/lib/typescript/components/PeerRTCStatsView.d.ts.map +1 -0
- package/lib/typescript/components/PeerSettingsModalContent.d.ts +13 -0
- package/lib/typescript/components/PeerSettingsModalContent.d.ts.map +1 -0
- package/lib/typescript/components/Picker.d.ts +9 -0
- package/lib/typescript/components/Picker.d.ts.map +1 -0
- package/lib/typescript/components/PressableIcon.d.ts +11 -0
- package/lib/typescript/components/PressableIcon.d.ts.map +1 -0
- package/lib/typescript/components/Preview.d.ts +6 -0
- package/lib/typescript/components/Preview.d.ts.map +1 -0
- package/lib/typescript/components/RoomSettingsModalContent.d.ts +17 -0
- package/lib/typescript/components/RoomSettingsModalContent.d.ts.map +1 -0
- package/lib/typescript/components/StatusBar.d.ts +7 -0
- package/lib/typescript/components/StatusBar.d.ts.map +1 -0
- package/lib/typescript/components/StreamingQualityModalContent.d.ts +9 -0
- package/lib/typescript/components/StreamingQualityModalContent.d.ts.map +1 -0
- package/lib/typescript/components/SwitchRow.d.ts +12 -0
- package/lib/typescript/components/SwitchRow.d.ts.map +1 -0
- package/lib/typescript/components/Tile.d.ts +12 -0
- package/lib/typescript/components/Tile.d.ts.map +1 -0
- package/lib/typescript/components/TilesContainer.d.ts +11 -0
- package/lib/typescript/components/TilesContainer.d.ts.map +1 -0
- package/lib/typescript/components/ZoomableView.d.ts +6 -0
- package/lib/typescript/components/ZoomableView.d.ts.map +1 -0
- package/lib/typescript/components/index.d.ts +9 -0
- package/lib/typescript/components/index.d.ts.map +1 -0
- package/lib/typescript/components/styles.d.ts +945 -0
- package/lib/typescript/components/styles.d.ts.map +1 -0
- package/lib/typescript/hooks/useHmsInstance.d.ts +1 -0
- package/lib/typescript/hooks/useHmsInstance.d.ts.map +1 -0
- package/lib/typescript/hooks-sdk-selectors.d.ts +4 -0
- package/lib/typescript/hooks-sdk-selectors.d.ts.map +1 -0
- package/lib/typescript/hooks-sdk.d.ts +12 -0
- package/lib/typescript/hooks-sdk.d.ts.map +1 -0
- package/lib/typescript/hooks-util-selectors.d.ts +3 -0
- package/lib/typescript/hooks-util-selectors.d.ts.map +1 -0
- package/lib/typescript/hooks-util.d.ts +53 -0
- package/lib/typescript/hooks-util.d.ts.map +1 -0
- package/lib/typescript/index.d.ts +2 -0
- package/lib/typescript/index.d.ts.map +1 -0
- package/lib/typescript/peerTrackNodeUtils.d.ts +10 -0
- package/lib/typescript/peerTrackNodeUtils.d.ts.map +1 -0
- package/lib/typescript/redux/actionTypes.d.ts +56 -0
- package/lib/typescript/redux/actionTypes.d.ts.map +1 -0
- package/lib/typescript/redux/actions/index.d.ts +199 -0
- package/lib/typescript/redux/actions/index.d.ts.map +1 -0
- package/lib/typescript/redux/index.d.ts +55 -0
- package/lib/typescript/redux/index.d.ts.map +1 -0
- package/lib/typescript/redux/reducers/appState.d.ts +32 -0
- package/lib/typescript/redux/reducers/appState.d.ts.map +1 -0
- package/lib/typescript/redux/reducers/chatWindow.d.ts +10 -0
- package/lib/typescript/redux/reducers/chatWindow.d.ts.map +1 -0
- package/lib/typescript/redux/reducers/hmsStates.d.ts +46 -0
- package/lib/typescript/redux/reducers/hmsStates.d.ts.map +1 -0
- package/lib/typescript/redux/reducers/index.d.ts +54 -0
- package/lib/typescript/redux/reducers/index.d.ts.map +1 -0
- package/lib/typescript/redux/reducers/message.d.ts +12 -0
- package/lib/typescript/redux/reducers/message.d.ts.map +1 -0
- package/lib/typescript/redux/reducers/userState.d.ts +26 -0
- package/lib/typescript/redux/reducers/userState.d.ts.map +1 -0
- package/lib/typescript/types.d.ts +8 -0
- package/lib/typescript/types.d.ts.map +1 -0
- package/lib/typescript/utils/dimension.d.ts +15 -0
- package/lib/typescript/utils/dimension.d.ts.map +1 -0
- package/lib/typescript/utils/functions.d.ts +47 -0
- package/lib/typescript/utils/functions.d.ts.map +1 -0
- package/lib/typescript/utils/getRoomLinkDetails.d.ts +5 -0
- package/lib/typescript/utils/getRoomLinkDetails.d.ts.map +1 -0
- package/lib/typescript/utils/hooks.d.ts +2 -0
- package/lib/typescript/utils/hooks.d.ts.map +1 -0
- package/lib/typescript/utils/theme.d.ts +126 -0
- package/lib/typescript/utils/theme.d.ts.map +1 -0
- package/lib/typescript/utils/types.d.ts +82 -0
- package/lib/typescript/utils/types.d.ts.map +1 -0
- package/lib/typescript/utils.d.ts +12 -0
- package/lib/typescript/utils.d.ts.map +1 -0
- package/package.json +182 -0
- package/src/HMSContainer.tsx +18 -0
- package/src/HMSInstanceSetup.tsx +196 -0
- package/src/HMSPrebuilt.tsx +36 -0
- package/src/HMSRoomSetup.tsx +281 -0
- package/src/Icons/100ms/assets/hms-logo.png +0 -0
- package/src/Icons/100ms/assets/hms-logo@2x.png +0 -0
- package/src/Icons/100ms/assets/hms-logo@3x.png +0 -0
- package/src/Icons/100ms/index.tsx +27 -0
- package/src/Icons/Alert/assets/alert.png +0 -0
- package/src/Icons/Alert/assets/alert@2x.png +0 -0
- package/src/Icons/Alert/assets/alert@3x.png +0 -0
- package/src/Icons/Alert/index.tsx +27 -0
- package/src/Icons/Camera/assets/camera-muted.png +0 -0
- package/src/Icons/Camera/assets/camera-muted@2x.png +0 -0
- package/src/Icons/Camera/assets/camera-muted@3x.png +0 -0
- package/src/Icons/Camera/assets/camera-unmuted.png +0 -0
- package/src/Icons/Camera/assets/camera-unmuted@2x.png +0 -0
- package/src/Icons/Camera/assets/camera-unmuted@3x.png +0 -0
- package/src/Icons/Camera/index.tsx +34 -0
- package/src/Icons/Chat/assets/chat.png +0 -0
- package/src/Icons/Chat/assets/chat@2x.png +0 -0
- package/src/Icons/Chat/assets/chat@3x.png +0 -0
- package/src/Icons/Chat/index.tsx +24 -0
- package/src/Icons/Chevron/assets/chevron-down.png +0 -0
- package/src/Icons/Chevron/assets/chevron-down@2x.png +0 -0
- package/src/Icons/Chevron/assets/chevron-down@3x.png +0 -0
- package/src/Icons/Chevron/assets/chevron-left.png +0 -0
- package/src/Icons/Chevron/assets/chevron-left@2x.png +0 -0
- package/src/Icons/Chevron/assets/chevron-left@3x.png +0 -0
- package/src/Icons/Chevron/index.tsx +34 -0
- package/src/Icons/Clock/assets/clock.png +0 -0
- package/src/Icons/Clock/assets/clock@2x.png +0 -0
- package/src/Icons/Clock/assets/clock@3x.png +0 -0
- package/src/Icons/Clock/index.tsx +27 -0
- package/src/Icons/Close/assets/close.png +0 -0
- package/src/Icons/Close/assets/close@2x.png +0 -0
- package/src/Icons/Close/assets/close@3x.png +0 -0
- package/src/Icons/Close/index.tsx +27 -0
- package/src/Icons/End/assets/end.png +0 -0
- package/src/Icons/End/assets/end@2x.png +0 -0
- package/src/Icons/End/assets/end@3x.png +0 -0
- package/src/Icons/End/index.tsx +24 -0
- package/src/Icons/Hand/assets/hand.png +0 -0
- package/src/Icons/Hand/assets/hand@2x.png +0 -0
- package/src/Icons/Hand/assets/hand@3x.png +0 -0
- package/src/Icons/Hand/index.tsx +27 -0
- package/src/Icons/Leave/assets/leave.png +0 -0
- package/src/Icons/Leave/assets/leave@2x.png +0 -0
- package/src/Icons/Leave/assets/leave@3x.png +0 -0
- package/src/Icons/Leave/index.tsx +27 -0
- package/src/Icons/Mic/assets/mic-muted.png +0 -0
- package/src/Icons/Mic/assets/mic-muted@2x.png +0 -0
- package/src/Icons/Mic/assets/mic-muted@3x.png +0 -0
- package/src/Icons/Mic/assets/mic-unmuted.png +0 -0
- package/src/Icons/Mic/assets/mic-unmuted@2x.png +0 -0
- package/src/Icons/Mic/assets/mic-unmuted@3x.png +0 -0
- package/src/Icons/Mic/index.tsx +34 -0
- package/src/Icons/NetworkQuality/assets/network_0.png +0 -0
- package/src/Icons/NetworkQuality/assets/network_0@2x.png +0 -0
- package/src/Icons/NetworkQuality/assets/network_0@3x.png +0 -0
- package/src/Icons/NetworkQuality/assets/network_1.png +0 -0
- package/src/Icons/NetworkQuality/assets/network_1@2x.png +0 -0
- package/src/Icons/NetworkQuality/assets/network_1@3x.png +0 -0
- package/src/Icons/NetworkQuality/assets/network_2.png +0 -0
- package/src/Icons/NetworkQuality/assets/network_2@2x.png +0 -0
- package/src/Icons/NetworkQuality/assets/network_2@3x.png +0 -0
- package/src/Icons/NetworkQuality/assets/network_3.png +0 -0
- package/src/Icons/NetworkQuality/assets/network_3@2x.png +0 -0
- package/src/Icons/NetworkQuality/assets/network_3@3x.png +0 -0
- package/src/Icons/NetworkQuality/assets/network_4.png +0 -0
- package/src/Icons/NetworkQuality/assets/network_4@2x.png +0 -0
- package/src/Icons/NetworkQuality/assets/network_4@3x.png +0 -0
- package/src/Icons/NetworkQuality/assets/network_5.png +0 -0
- package/src/Icons/NetworkQuality/assets/network_5@2x.png +0 -0
- package/src/Icons/NetworkQuality/assets/network_5@3x.png +0 -0
- package/src/Icons/NetworkQuality/index.tsx +42 -0
- package/src/Icons/Participants/assets/participants.png +0 -0
- package/src/Icons/Participants/assets/participants@2x.png +0 -0
- package/src/Icons/Participants/assets/participants@3x.png +0 -0
- package/src/Icons/Participants/index.tsx +27 -0
- package/src/Icons/RotateCamera/assets/rotate-camera.png +0 -0
- package/src/Icons/RotateCamera/assets/rotate-camera@2x.png +0 -0
- package/src/Icons/RotateCamera/assets/rotate-camera@3x.png +0 -0
- package/src/Icons/RotateCamera/index.tsx +27 -0
- package/src/Icons/ScreenShare/assets/screen-share.png +0 -0
- package/src/Icons/ScreenShare/assets/screen-share@2x.png +0 -0
- package/src/Icons/ScreenShare/assets/screen-share@3x.png +0 -0
- package/src/Icons/ScreenShare/index.tsx +27 -0
- package/src/Icons/Send/assets/send.png +0 -0
- package/src/Icons/Send/assets/send@2x.png +0 -0
- package/src/Icons/Send/assets/send@3x.png +0 -0
- package/src/Icons/Send/index.tsx +24 -0
- package/src/Icons/Settings/assets/settings.png +0 -0
- package/src/Icons/Settings/assets/settings@2x.png +0 -0
- package/src/Icons/Settings/assets/settings@3x.png +0 -0
- package/src/Icons/Settings/index.tsx +27 -0
- package/src/Icons/Speaker/assets/speaker-muted.png +0 -0
- package/src/Icons/Speaker/assets/speaker-muted@2x.png +0 -0
- package/src/Icons/Speaker/assets/speaker-muted@3x.png +0 -0
- package/src/Icons/Speaker/assets/speaker.png +0 -0
- package/src/Icons/Speaker/assets/speaker@2x.png +0 -0
- package/src/Icons/Speaker/assets/speaker@3x.png +0 -0
- package/src/Icons/Speaker/index.tsx +34 -0
- package/src/Icons/ThreeDots/assets/three-dots-vertical.png +0 -0
- package/src/Icons/ThreeDots/assets/three-dots-vertical@2x.png +0 -0
- package/src/Icons/ThreeDots/assets/three-dots-vertical@3x.png +0 -0
- package/src/Icons/ThreeDots/index.tsx +34 -0
- package/src/Icons/index.ts +19 -0
- package/src/assets/100ms-logo.png +0 -0
- package/src/assets/brb.png +0 -0
- package/src/assets/icon.png +0 -0
- package/src/assets/illustration.png +0 -0
- package/src/assets/network_0.png +0 -0
- package/src/assets/network_1.png +0 -0
- package/src/assets/network_2.png +0 -0
- package/src/assets/network_3.png +0 -0
- package/src/assets/network_4.png +0 -0
- package/src/assets/user_music.png +0 -0
- package/src/components/AvatarView.tsx +54 -0
- package/src/components/BackButton.tsx +42 -0
- package/src/components/Chat/ChatBanner.tsx +70 -0
- package/src/components/Chat/ChatList.tsx +60 -0
- package/src/components/Chat/ChatMessage.tsx +237 -0
- package/src/components/Chat/PinnedMessage.tsx +89 -0
- package/src/components/Chat/index.ts +4 -0
- package/src/components/ChatWindow.tsx +706 -0
- package/src/components/CustomButton.tsx +80 -0
- package/src/components/CustomHLSPlayerControls.tsx +92 -0
- package/src/components/CustomInput.tsx +139 -0
- package/src/components/DefaultModal.tsx +117 -0
- package/src/components/DisplayTrack.tsx +92 -0
- package/src/components/DisplayView.tsx +314 -0
- package/src/components/Footer.tsx +109 -0
- package/src/components/FullScreenIndicator.tsx +21 -0
- package/src/components/GridView.tsx +124 -0
- package/src/components/HLSPlayerEmoticons.tsx +60 -0
- package/src/components/HLSPlayerStatsView.tsx +68 -0
- package/src/components/HLSView.tsx +170 -0
- package/src/components/HMSChat.tsx +36 -0
- package/src/components/HMSHLSNotStarted.tsx +62 -0
- package/src/components/HMSManageCameraRotation.tsx +48 -0
- package/src/components/HMSManageLeave.tsx +349 -0
- package/src/components/HMSManageLocalAudio.tsx +49 -0
- package/src/components/HMSManageLocalVideo.tsx +49 -0
- package/src/components/HMSManageRaiseHand.tsx +48 -0
- package/src/components/HMSPreviewDeviceSettings.tsx +387 -0
- package/src/components/HMSPreviewEditName.tsx +63 -0
- package/src/components/HMSPreviewJoinButton.tsx +64 -0
- package/src/components/HMSPreviewPeersList.tsx +108 -0
- package/src/components/HMSPreviewSubtitle.tsx +26 -0
- package/src/components/HMSPreviewTile.tsx +152 -0
- package/src/components/HMSPreviewTitle.tsx +26 -0
- package/src/components/HMSRoomOptions.tsx +141 -0
- package/src/components/HMSShareScreen.tsx +71 -0
- package/src/components/HMSShowNetworkQuality.tsx +67 -0
- package/src/components/Header.tsx +185 -0
- package/src/components/LiveButton.tsx +77 -0
- package/src/components/Meeting.tsx +72 -0
- package/src/components/MeetingScreenContent.tsx +109 -0
- package/src/components/MenuModal/Menu.tsx +305 -0
- package/src/components/MenuModal/MenuDivider.tsx +22 -0
- package/src/components/MenuModal/MenuItem.tsx +67 -0
- package/src/components/MenuModal/index.ts +7 -0
- package/src/components/Modals.tsx +2103 -0
- package/src/components/PIPView.tsx +30 -0
- package/src/components/Participants/ParticipantsFilter.tsx +144 -0
- package/src/components/Participants/ParticipantsHeader.tsx +64 -0
- package/src/components/Participants/ParticipantsList.tsx +331 -0
- package/src/components/Participants/ParticipantsSeachInput.tsx +55 -0
- package/src/components/Participants/SearchableParticipantsView.tsx +21 -0
- package/src/components/Participants/index.ts +5 -0
- package/src/components/ParticipantsModal.tsx +46 -0
- package/src/components/PeerDisplayView.tsx +112 -0
- package/src/components/PeerRTCStatsContainer.tsx +82 -0
- package/src/components/PeerRTCStatsView.tsx +110 -0
- package/src/components/PeerSettingsModalContent.tsx +355 -0
- package/src/components/Picker.tsx +108 -0
- package/src/components/PressableIcon.tsx +54 -0
- package/src/components/Preview.tsx +108 -0
- package/src/components/RoomSettingsModalContent.tsx +743 -0
- package/src/components/StatusBar.tsx +22 -0
- package/src/components/StreamingQualityModalContent.tsx +266 -0
- package/src/components/SwitchRow.tsx +55 -0
- package/src/components/Tile.tsx +119 -0
- package/src/components/TilesContainer.tsx +48 -0
- package/src/components/ZoomableView.tsx +91 -0
- package/src/components/index.ts +8 -0
- package/src/components/styles.ts +961 -0
- package/src/hooks/useHmsInstance.ts +173 -0
- package/src/hooks-sdk-selectors.tsx +9 -0
- package/src/hooks-sdk.ts +156 -0
- package/src/hooks-util-selectors.tsx +4 -0
- package/src/hooks-util.ts +1124 -0
- package/src/index.ts +1 -0
- package/src/peerTrackNodeUtils.tsx +114 -0
- package/src/redux/actionTypes.ts +85 -0
- package/src/redux/actions/index.ts +196 -0
- package/src/redux/index.ts +8 -0
- package/src/redux/reducers/appState.ts +143 -0
- package/src/redux/reducers/chatWindow.ts +35 -0
- package/src/redux/reducers/hmsStates.ts +126 -0
- package/src/redux/reducers/index.ts +14 -0
- package/src/redux/reducers/message.ts +36 -0
- package/src/redux/reducers/userState.ts +88 -0
- package/src/types.ts +7 -0
- package/src/utils/dimension.ts +57 -0
- package/src/utils/functions.ts +522 -0
- package/src/utils/getRoomLinkDetails.ts +23 -0
- package/src/utils/hooks.ts +104 -0
- package/src/utils/theme.ts +130 -0
- package/src/utils/types.ts +95 -0
- package/src/utils.ts +24 -0
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import ActionTypes, { HmsStateActionTypes } from '../actionTypes';
|
|
2
|
+
const INITIAL_STATE = {
|
|
3
|
+
messages: [],
|
|
4
|
+
pinnedMessage: null
|
|
5
|
+
};
|
|
6
|
+
const messageReducer = function () {
|
|
7
|
+
let state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : INITIAL_STATE;
|
|
8
|
+
let action = arguments.length > 1 ? arguments[1] : undefined;
|
|
9
|
+
switch (action.type) {
|
|
10
|
+
case ActionTypes.ADD_PINNED_MESSAGE.REQUEST:
|
|
11
|
+
const pinnedMessage = action.payload;
|
|
12
|
+
return {
|
|
13
|
+
...state,
|
|
14
|
+
pinnedMessage
|
|
15
|
+
};
|
|
16
|
+
case ActionTypes.ADD_MESSAGE.REQUEST:
|
|
17
|
+
const message = action.payload;
|
|
18
|
+
return {
|
|
19
|
+
...state,
|
|
20
|
+
messages: [message, ...state.messages]
|
|
21
|
+
};
|
|
22
|
+
case ActionTypes.CLEAR_MESSAGE_DATA.REQUEST:
|
|
23
|
+
return {
|
|
24
|
+
...state,
|
|
25
|
+
messages: []
|
|
26
|
+
};
|
|
27
|
+
case HmsStateActionTypes.CLEAR_STATES:
|
|
28
|
+
return INITIAL_STATE;
|
|
29
|
+
default:
|
|
30
|
+
return state;
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
export default messageReducer;
|
|
34
|
+
//# sourceMappingURL=message.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["ActionTypes","HmsStateActionTypes","INITIAL_STATE","messages","pinnedMessage","messageReducer","state","arguments","length","undefined","action","type","ADD_PINNED_MESSAGE","REQUEST","payload","ADD_MESSAGE","message","CLEAR_MESSAGE_DATA","CLEAR_STATES"],"sourceRoot":"../../../../src","sources":["redux/reducers/message.ts"],"mappings":"AACA,OAAOA,WAAW,IAAIC,mBAAmB,QAAQ,gBAAgB;AAYjE,MAAMC,aAAuB,GAAG;EAC9BC,QAAQ,EAAE,EAAE;EACZC,aAAa,EAAE;AACjB,CAAC;AAED,MAAMC,cAAc,GAAG,SAAAA,CAAA,EAA+C;EAAA,IAA9CC,KAAK,GAAAC,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAGL,aAAa;EAAA,IAAEQ,MAAkB,GAAAH,SAAA,CAAAC,MAAA,OAAAD,SAAA,MAAAE,SAAA;EAC/D,QAAQC,MAAM,CAACC,IAAI;IACjB,KAAKX,WAAW,CAACY,kBAAkB,CAACC,OAAO;MACzC,MAAMT,aAAa,GAAGM,MAAM,CAACI,OAAoC;MACjE,OAAO;QAAE,GAAGR,KAAK;QAAEF;MAAc,CAAC;IACpC,KAAKJ,WAAW,CAACe,WAAW,CAACF,OAAO;MAClC,MAAMG,OAAO,GAAGN,MAAM,CAACI,OAAqB;MAC5C,OAAO;QAAE,GAAGR,KAAK;QAAEH,QAAQ,EAAE,CAACa,OAAO,EAAE,GAAGV,KAAK,CAACH,QAAQ;MAAE,CAAC;IAC7D,KAAKH,WAAW,CAACiB,kBAAkB,CAACJ,OAAO;MACzC,OAAO;QAAE,GAAGP,KAAK;QAAEH,QAAQ,EAAE;MAAG,CAAC;IACnC,KAAKF,mBAAmB,CAACiB,YAAY;MACnC,OAAOhB,aAAa;IACtB;MACE,OAAOI,KAAK;EAChB;AACF,CAAC;AAED,eAAeD,cAAc"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { getMeetingCode, getMeetingUrl } from '../../utils/functions';
|
|
2
|
+
import ActionTypes, { HmsStateActionTypes } from '../actionTypes';
|
|
3
|
+
const INITIAL_STATE = {
|
|
4
|
+
userName: '',
|
|
5
|
+
userId: undefined,
|
|
6
|
+
endPoints: undefined,
|
|
7
|
+
debugMode: false,
|
|
8
|
+
hmsInstance: undefined,
|
|
9
|
+
roomID: getMeetingUrl(),
|
|
10
|
+
roomCode: getMeetingCode(),
|
|
11
|
+
isHLSFlow: true,
|
|
12
|
+
roles: [],
|
|
13
|
+
hmsSessionStore: null,
|
|
14
|
+
spotlightTrackId: null,
|
|
15
|
+
iosBuildConfig: null
|
|
16
|
+
};
|
|
17
|
+
const userReducer = function () {
|
|
18
|
+
let state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : INITIAL_STATE;
|
|
19
|
+
let action = arguments.length > 1 ? arguments[1] : undefined;
|
|
20
|
+
switch (action.type) {
|
|
21
|
+
case ActionTypes.SAVE_USER_DATA.REQUEST:
|
|
22
|
+
return {
|
|
23
|
+
...state,
|
|
24
|
+
...action.payload
|
|
25
|
+
};
|
|
26
|
+
case ActionTypes.SET_HMS_INSTANCE:
|
|
27
|
+
return {
|
|
28
|
+
...state,
|
|
29
|
+
hmsInstance: action.payload.hmsInstance
|
|
30
|
+
};
|
|
31
|
+
case ActionTypes.CLEAR_HMS_INSTANCE:
|
|
32
|
+
return {
|
|
33
|
+
...state,
|
|
34
|
+
hmsInstance: undefined,
|
|
35
|
+
hmsSessionStore: null,
|
|
36
|
+
spotlightTrackId: null
|
|
37
|
+
};
|
|
38
|
+
case HmsStateActionTypes.SET_USER_NAME:
|
|
39
|
+
return {
|
|
40
|
+
...state,
|
|
41
|
+
userName: action.payload.userName
|
|
42
|
+
};
|
|
43
|
+
case HmsStateActionTypes.SET_PREBUILT_DATA:
|
|
44
|
+
state.roomCode = action.payload.roomCode;
|
|
45
|
+
state.userName = action.payload.options.userName ?? '';
|
|
46
|
+
state.userId = action.payload.options.userId;
|
|
47
|
+
state.endPoints = action.payload.options.endPoints;
|
|
48
|
+
state.debugMode = action.payload.options.debugMode ?? false;
|
|
49
|
+
state.iosBuildConfig = action.payload.options.iosBuildConfig ?? null;
|
|
50
|
+
return state;
|
|
51
|
+
case HmsStateActionTypes.CLEAR_STATES:
|
|
52
|
+
return INITIAL_STATE;
|
|
53
|
+
default:
|
|
54
|
+
return state;
|
|
55
|
+
}
|
|
56
|
+
};
|
|
57
|
+
export default userReducer;
|
|
58
|
+
//# sourceMappingURL=userState.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["getMeetingCode","getMeetingUrl","ActionTypes","HmsStateActionTypes","INITIAL_STATE","userName","userId","undefined","endPoints","debugMode","hmsInstance","roomID","roomCode","isHLSFlow","roles","hmsSessionStore","spotlightTrackId","iosBuildConfig","userReducer","state","arguments","length","action","type","SAVE_USER_DATA","REQUEST","payload","SET_HMS_INSTANCE","CLEAR_HMS_INSTANCE","SET_USER_NAME","SET_PREBUILT_DATA","options","CLEAR_STATES"],"sourceRoot":"../../../../src","sources":["redux/reducers/userState.ts"],"mappings":"AAKA,SAASA,cAAc,EAAEC,aAAa,QAAQ,uBAAuB;AACrE,OAAOC,WAAW,IAAIC,mBAAmB,QAAQ,gBAAgB;AAuBjE,MAAMC,aAA8B,GAAG;EACrCC,QAAQ,EAAE,EAAE;EACZC,MAAM,EAAEC,SAAS;EACjBC,SAAS,EAAED,SAAS;EACpBE,SAAS,EAAE,KAAK;EAChBC,WAAW,EAAEH,SAAS;EACtBI,MAAM,EAAEV,aAAa,CAAC,CAAC;EACvBW,QAAQ,EAAEZ,cAAc,CAAC,CAAC;EAC1Ba,SAAS,EAAE,IAAI;EACfC,KAAK,EAAE,EAAE;EACTC,eAAe,EAAE,IAAI;EACrBC,gBAAgB,EAAE,IAAI;EACtBC,cAAc,EAAE;AAClB,CAAC;AAED,MAAMC,WAAW,GAAG,SAAAA,CAAA,EAGE;EAAA,IAFpBC,KAAK,GAAAC,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAb,SAAA,GAAAa,SAAA,MAAGhB,aAAa;EAAA,IACrBkB,MAAkB,GAAAF,SAAA,CAAAC,MAAA,OAAAD,SAAA,MAAAb,SAAA;EAElB,QAAQe,MAAM,CAACC,IAAI;IACjB,KAAKrB,WAAW,CAACsB,cAAc,CAACC,OAAO;MACrC,OAAO;QACL,GAAGN,KAAK;QACR,GAAGG,MAAM,CAACI;MACZ,CAAC;IACH,KAAKxB,WAAW,CAACyB,gBAAgB;MAC/B,OAAO;QACL,GAAGR,KAAK;QACRT,WAAW,EAAEY,MAAM,CAACI,OAAO,CAAChB;MAC9B,CAAC;IACH,KAAKR,WAAW,CAAC0B,kBAAkB;MACjC,OAAO;QACL,GAAGT,KAAK;QACRT,WAAW,EAAEH,SAAS;QACtBQ,eAAe,EAAE,IAAI;QACrBC,gBAAgB,EAAE;MACpB,CAAC;IACH,KAAKb,mBAAmB,CAAC0B,aAAa;MACpC,OAAO;QACL,GAAGV,KAAK;QACRd,QAAQ,EAAEiB,MAAM,CAACI,OAAO,CAACrB;MAC3B,CAAC;IACH,KAAKF,mBAAmB,CAAC2B,iBAAiB;MACxCX,KAAK,CAACP,QAAQ,GAAGU,MAAM,CAACI,OAAO,CAACd,QAAQ;MACxCO,KAAK,CAACd,QAAQ,GAAGiB,MAAM,CAACI,OAAO,CAACK,OAAO,CAAC1B,QAAQ,IAAI,EAAE;MACtDc,KAAK,CAACb,MAAM,GAAGgB,MAAM,CAACI,OAAO,CAACK,OAAO,CAACzB,MAAM;MAC5Ca,KAAK,CAACX,SAAS,GAAGc,MAAM,CAACI,OAAO,CAACK,OAAO,CAACvB,SAAS;MAClDW,KAAK,CAACV,SAAS,GAAGa,MAAM,CAACI,OAAO,CAACK,OAAO,CAACtB,SAAS,IAAI,KAAK;MAC3DU,KAAK,CAACF,cAAc,GAAGK,MAAM,CAACI,OAAO,CAACK,OAAO,CAACd,cAAc,IAAI,IAAI;MAEpE,OAAOE,KAAK;IACd,KAAKhB,mBAAmB,CAAC6B,YAAY;MACnC,OAAO5B,aAAa;IACtB;MACE,OAAOe,KAAK;EAChB;AACF,CAAC;AAED,eAAeD,WAAW"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export let MeetingState = /*#__PURE__*/function (MeetingState) {
|
|
2
|
+
MeetingState[MeetingState["NOT_JOINED"] = 0] = "NOT_JOINED";
|
|
3
|
+
MeetingState[MeetingState["IN_PREVIEW"] = 1] = "IN_PREVIEW";
|
|
4
|
+
MeetingState[MeetingState["IN_MEETING"] = 2] = "IN_MEETING";
|
|
5
|
+
MeetingState[MeetingState["MEETING_ENDED"] = 3] = "MEETING_ENDED";
|
|
6
|
+
MeetingState[MeetingState["ERROR"] = 4] = "ERROR";
|
|
7
|
+
return MeetingState;
|
|
8
|
+
}({});
|
|
9
|
+
//# sourceMappingURL=types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["MeetingState"],"sourceRoot":"../../src","sources":["types.ts"],"mappings":"AAAA,WAAYA,YAAY,0BAAZA,YAAY;EAAZA,YAAY,CAAZA,YAAY;EAAZA,YAAY,CAAZA,YAAY;EAAZA,YAAY,CAAZA,YAAY;EAAZA,YAAY,CAAZA,YAAY;EAAZA,YAAY,CAAZA,YAAY;EAAA,OAAZA,YAAY;AAAA"}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { Dimensions, PixelRatio, useWindowDimensions } from 'react-native';
|
|
2
|
+
const screenWidth = Dimensions.get('window').width;
|
|
3
|
+
const screenHeight = Dimensions.get('window').height;
|
|
4
|
+
const DesignHeight = 896;
|
|
5
|
+
const DesignWidth = 414;
|
|
6
|
+
|
|
7
|
+
// It is based on the screen width of your design layouts e.g Height 896 x Width 414
|
|
8
|
+
|
|
9
|
+
// function normalize(size) {
|
|
10
|
+
// return PixelRatio.roundToNearestPixel(size * scale);
|
|
11
|
+
// }
|
|
12
|
+
|
|
13
|
+
const viewWidth = width => {
|
|
14
|
+
// Parse string percentage input and convert it to number.
|
|
15
|
+
const percent = width / DesignWidth * 100;
|
|
16
|
+
const elemWidth = parseFloat(percent + '%');
|
|
17
|
+
|
|
18
|
+
// size (dp) to the nearest one that corresponds to an integer number of pixels.
|
|
19
|
+
return PixelRatio.roundToNearestPixel(screenWidth * elemWidth / 100);
|
|
20
|
+
};
|
|
21
|
+
const viewHeight = height => {
|
|
22
|
+
// Parse string percentage input and convert it to number.
|
|
23
|
+
const percent = height / DesignHeight * 100;
|
|
24
|
+
const elemHeight = parseFloat(percent + '%');
|
|
25
|
+
|
|
26
|
+
// size (dp) to the nearest one that correspons to an integer number of pixels.
|
|
27
|
+
return PixelRatio.roundToNearestPixel(screenHeight * elemHeight / 100);
|
|
28
|
+
};
|
|
29
|
+
export let Orientation = /*#__PURE__*/function (Orientation) {
|
|
30
|
+
Orientation[Orientation["PORTRAIT"] = 0] = "PORTRAIT";
|
|
31
|
+
Orientation[Orientation["LANDSCAPE"] = 1] = "LANDSCAPE";
|
|
32
|
+
return Orientation;
|
|
33
|
+
}({});
|
|
34
|
+
export const useOrientation = () => {
|
|
35
|
+
const {
|
|
36
|
+
height,
|
|
37
|
+
width
|
|
38
|
+
} = useWindowDimensions();
|
|
39
|
+
return width < height ? Orientation.PORTRAIT : Orientation.LANDSCAPE;
|
|
40
|
+
};
|
|
41
|
+
export const useIsLandscapeOrientation = () => {
|
|
42
|
+
return useOrientation() === Orientation.LANDSCAPE;
|
|
43
|
+
};
|
|
44
|
+
export const useIsPortraitOrientation = () => {
|
|
45
|
+
return useOrientation() === Orientation.PORTRAIT;
|
|
46
|
+
};
|
|
47
|
+
export default {
|
|
48
|
+
screenWidth,
|
|
49
|
+
screenHeight,
|
|
50
|
+
viewHeight,
|
|
51
|
+
viewWidth
|
|
52
|
+
};
|
|
53
|
+
//# sourceMappingURL=dimension.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["Dimensions","PixelRatio","useWindowDimensions","screenWidth","get","width","screenHeight","height","DesignHeight","DesignWidth","viewWidth","percent","elemWidth","parseFloat","roundToNearestPixel","viewHeight","elemHeight","Orientation","useOrientation","PORTRAIT","LANDSCAPE","useIsLandscapeOrientation","useIsPortraitOrientation"],"sourceRoot":"../../../src","sources":["utils/dimension.ts"],"mappings":"AAAA,SAASA,UAAU,EAAEC,UAAU,EAAEC,mBAAmB,QAAQ,cAAc;AAE1E,MAAMC,WAAW,GAAGH,UAAU,CAACI,GAAG,CAAC,QAAQ,CAAC,CAACC,KAAK;AAClD,MAAMC,YAAY,GAAGN,UAAU,CAACI,GAAG,CAAC,QAAQ,CAAC,CAACG,MAAM;AAEpD,MAAMC,YAAY,GAAG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1,338 @@
|
|
|
1
|
+
import { Platform, Dimensions, PermissionsAndroid, StatusBar } from 'react-native';
|
|
2
|
+
import Toast from 'react-native-simple-toast';
|
|
3
|
+
import { HMSTrackType, HMSTrackSource } from '@100mslive/react-native-hms';
|
|
4
|
+
import { PERMISSIONS, request, requestMultiple, RESULTS } from 'react-native-permissions';
|
|
5
|
+
import { getRoomLinkDetails } from './getRoomLinkDetails';
|
|
6
|
+
export const getMeetingUrl = () => 'https://yogi.app.100ms.live/streaming/meeting/nih-bkn-vek';
|
|
7
|
+
// 'https://yogi-live.app.100ms.live/streaming/preview/qii-tow-sjq'; // DOUBT: use this URL instead of "nih" one?
|
|
8
|
+
|
|
9
|
+
export const getMeetingCode = () => 'nih-bkn-vek';
|
|
10
|
+
export const getInitials = name => {
|
|
11
|
+
var _name;
|
|
12
|
+
name = (_name = name) === null || _name === void 0 ? void 0 : _name.trim();
|
|
13
|
+
let initials = '';
|
|
14
|
+
if (name && name.length > 0) {
|
|
15
|
+
const nameArray = name.split(' ');
|
|
16
|
+
const firstName = nameArray.length > 0 ? nameArray[0] : null;
|
|
17
|
+
const secondName = nameArray.length > 1 ? nameArray[1] : null;
|
|
18
|
+
if (firstName && secondName) {
|
|
19
|
+
initials = firstName.substring(0, 1) + secondName.substring(0, 1);
|
|
20
|
+
} else if (firstName) {
|
|
21
|
+
initials = firstName.substring(0, firstName.length > 1 ? 2 : 1);
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
return initials.toUpperCase();
|
|
25
|
+
};
|
|
26
|
+
export const parseMetadata = metadata => {
|
|
27
|
+
try {
|
|
28
|
+
if (metadata) {
|
|
29
|
+
const parsedMetadata = JSON.parse(metadata);
|
|
30
|
+
return parsedMetadata;
|
|
31
|
+
}
|
|
32
|
+
} catch (e) {
|
|
33
|
+
console.log(e);
|
|
34
|
+
}
|
|
35
|
+
return {};
|
|
36
|
+
};
|
|
37
|
+
export const requestExternalStoragePermission = async () => {
|
|
38
|
+
// Function to check the platform
|
|
39
|
+
// If Platform is Android then check for permissions.
|
|
40
|
+
if (Platform.OS === 'ios') {
|
|
41
|
+
return true;
|
|
42
|
+
} else {
|
|
43
|
+
try {
|
|
44
|
+
const granted = await PermissionsAndroid.request('android.permission.WRITE_EXTERNAL_STORAGE', {
|
|
45
|
+
title: 'Storage Permission Required',
|
|
46
|
+
message: 'Application needs access to your storage to download File',
|
|
47
|
+
buttonPositive: 'true'
|
|
48
|
+
});
|
|
49
|
+
if (granted === PermissionsAndroid.RESULTS.GRANTED) {
|
|
50
|
+
// Start downloading
|
|
51
|
+
console.log('Storage Permission Granted.');
|
|
52
|
+
return true;
|
|
53
|
+
} else {
|
|
54
|
+
// If permission denied then show alert
|
|
55
|
+
Toast.showWithGravity('Storage Permission Not Granted', Toast.LONG, Toast.TOP);
|
|
56
|
+
console.log('Storage Permission Not Granted');
|
|
57
|
+
}
|
|
58
|
+
} catch (err) {
|
|
59
|
+
// To handle permission related exception
|
|
60
|
+
console.log('checkPermissionToWriteExternalStroage: ' + err);
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
return false;
|
|
64
|
+
};
|
|
65
|
+
export const callService = async (roomID, success, failure) => {
|
|
66
|
+
let roomCode;
|
|
67
|
+
let subdomain;
|
|
68
|
+
try {
|
|
69
|
+
if (validateUrl(roomID)) {
|
|
70
|
+
const {
|
|
71
|
+
roomCode: code,
|
|
72
|
+
roomDomain: domain
|
|
73
|
+
} = getRoomLinkDetails(roomID);
|
|
74
|
+
roomCode = code;
|
|
75
|
+
subdomain = domain;
|
|
76
|
+
if (!code || !domain) {
|
|
77
|
+
failure('code, domain not found');
|
|
78
|
+
return;
|
|
79
|
+
}
|
|
80
|
+
} else {
|
|
81
|
+
failure('Invalid room join link');
|
|
82
|
+
return;
|
|
83
|
+
}
|
|
84
|
+
const permissions = await checkPermissions([PERMISSIONS.ANDROID.CAMERA, PERMISSIONS.ANDROID.RECORD_AUDIO, PERMISSIONS.ANDROID.BLUETOOTH_CONNECT]);
|
|
85
|
+
if (permissions) {
|
|
86
|
+
const userId = getRandomUserId(6);
|
|
87
|
+
const isQARoom = subdomain && subdomain.search('.qa-') >= 0;
|
|
88
|
+
success(roomCode, userId, isQARoom ? `https://auth-nonprod.100ms.live${Platform.OS === 'ios' ? '/' : ''}` : undefined,
|
|
89
|
+
// Auth Endpoint
|
|
90
|
+
isQARoom ? 'https://qa-init.100ms.live/init' : undefined // HMSConfig Endpoint
|
|
91
|
+
);
|
|
92
|
+
|
|
93
|
+
return;
|
|
94
|
+
} else {
|
|
95
|
+
failure('permission not granted');
|
|
96
|
+
return;
|
|
97
|
+
}
|
|
98
|
+
} catch (error) {
|
|
99
|
+
console.log(error);
|
|
100
|
+
failure('error in call service');
|
|
101
|
+
return;
|
|
102
|
+
}
|
|
103
|
+
};
|
|
104
|
+
|
|
105
|
+
/**
|
|
106
|
+
* @param min minimum range value
|
|
107
|
+
* @param max maximum range value
|
|
108
|
+
* @returns value between min and max, min is inclusive and max is exclusive
|
|
109
|
+
*/
|
|
110
|
+
export const getRandomNumberInRange = (min, max) => {
|
|
111
|
+
return Math.floor(Math.random() * (max - min) + min);
|
|
112
|
+
};
|
|
113
|
+
export const getRandomUserId = length => {
|
|
114
|
+
return Array.from({
|
|
115
|
+
length
|
|
116
|
+
}, () => {
|
|
117
|
+
const randomAlphaAsciiCode = getRandomNumberInRange(97, 123); // 97 - 122 is the ascii code range for a-z chars
|
|
118
|
+
const alphaCharacter = String.fromCharCode(randomAlphaAsciiCode);
|
|
119
|
+
return alphaCharacter;
|
|
120
|
+
}).join('');
|
|
121
|
+
};
|
|
122
|
+
export const getPeerNodes = (peerTrackNodes, peerID) => {
|
|
123
|
+
const nodes = [];
|
|
124
|
+
peerTrackNodes === null || peerTrackNodes === void 0 ? void 0 : peerTrackNodes.map(peerTrackNode => {
|
|
125
|
+
if (peerTrackNode.peer.peerID === peerID) {
|
|
126
|
+
nodes.push(peerTrackNode);
|
|
127
|
+
}
|
|
128
|
+
});
|
|
129
|
+
return nodes;
|
|
130
|
+
};
|
|
131
|
+
export const getPeerTrackNodes = (peerTrackNodes, peer, track) => {
|
|
132
|
+
const uniqueId = peer.peerID + ((track === null || track === void 0 ? void 0 : track.type) === HMSTrackType.VIDEO ? (track === null || track === void 0 ? void 0 : track.source) || HMSTrackSource.REGULAR : HMSTrackSource.REGULAR);
|
|
133
|
+
const nodes = [];
|
|
134
|
+
peerTrackNodes === null || peerTrackNodes === void 0 ? void 0 : peerTrackNodes.map(peerTrackNode => {
|
|
135
|
+
if (peerTrackNode.id === uniqueId) {
|
|
136
|
+
nodes.push(peerTrackNode);
|
|
137
|
+
}
|
|
138
|
+
});
|
|
139
|
+
return nodes;
|
|
140
|
+
};
|
|
141
|
+
export const updatedDegradedFlag = (peerTrackNodes, isDegraded) => {
|
|
142
|
+
return peerTrackNodes === null || peerTrackNodes === void 0 ? void 0 : peerTrackNodes.map(peerTrackNode => {
|
|
143
|
+
return {
|
|
144
|
+
...peerTrackNode,
|
|
145
|
+
isDegraded
|
|
146
|
+
};
|
|
147
|
+
});
|
|
148
|
+
};
|
|
149
|
+
export const updatePeerTrackNodes = (peerTrackNodes, peer, track) => {
|
|
150
|
+
const uniqueId = peer.peerID + (track.source === undefined ? HMSTrackSource.REGULAR : track.source);
|
|
151
|
+
return peerTrackNodes === null || peerTrackNodes === void 0 ? void 0 : peerTrackNodes.map(peerTrackNode => {
|
|
152
|
+
if (peerTrackNode.id === uniqueId) {
|
|
153
|
+
return {
|
|
154
|
+
...peerTrackNode,
|
|
155
|
+
peer,
|
|
156
|
+
track
|
|
157
|
+
};
|
|
158
|
+
}
|
|
159
|
+
return peerTrackNode;
|
|
160
|
+
});
|
|
161
|
+
};
|
|
162
|
+
export const updatePeerNodes = (peerTrackNodes, peer) => {
|
|
163
|
+
return peerTrackNodes === null || peerTrackNodes === void 0 ? void 0 : peerTrackNodes.map(peerTrackNode => {
|
|
164
|
+
if (peerTrackNode.peer.peerID === peer.peerID) {
|
|
165
|
+
return {
|
|
166
|
+
...peerTrackNode,
|
|
167
|
+
peer
|
|
168
|
+
};
|
|
169
|
+
}
|
|
170
|
+
return peerTrackNode;
|
|
171
|
+
});
|
|
172
|
+
};
|
|
173
|
+
export const createPeerTrackNode = (peer, track) => {
|
|
174
|
+
var _track, _track2;
|
|
175
|
+
if (!track || track.type === HMSTrackType.AUDIO) {
|
|
176
|
+
track = peer.videoTrack;
|
|
177
|
+
}
|
|
178
|
+
let isVideoTrack = false;
|
|
179
|
+
if (track && ((_track = track) === null || _track === void 0 ? void 0 : _track.type) === HMSTrackType.VIDEO) {
|
|
180
|
+
isVideoTrack = true;
|
|
181
|
+
}
|
|
182
|
+
const videoTrack = isVideoTrack ? track : undefined;
|
|
183
|
+
const trackSource = ((_track2 = track) === null || _track2 === void 0 ? void 0 : _track2.source) ?? HMSTrackSource.REGULAR;
|
|
184
|
+
return {
|
|
185
|
+
id: peer.peerID + trackSource,
|
|
186
|
+
peer: peer,
|
|
187
|
+
track: videoTrack,
|
|
188
|
+
isDegraded: false
|
|
189
|
+
};
|
|
190
|
+
};
|
|
191
|
+
export const replacePeerTrackNodes = (latestPeerTrackNodes, updatedPeerTrackNodes) => {
|
|
192
|
+
let newPeerTrackNodes = latestPeerTrackNodes;
|
|
193
|
+
updatedPeerTrackNodes.map(updatedPeerTrackNode => {
|
|
194
|
+
newPeerTrackNodes = newPeerTrackNodes.map(latestPeerTrackNode => {
|
|
195
|
+
if (latestPeerTrackNode.id === updatedPeerTrackNode.id) {
|
|
196
|
+
return updatedPeerTrackNode;
|
|
197
|
+
}
|
|
198
|
+
return latestPeerTrackNode;
|
|
199
|
+
});
|
|
200
|
+
});
|
|
201
|
+
return newPeerTrackNodes;
|
|
202
|
+
};
|
|
203
|
+
export const isPortrait = () => {
|
|
204
|
+
const dim = Dimensions.get('window');
|
|
205
|
+
return dim.height >= dim.width;
|
|
206
|
+
};
|
|
207
|
+
export const validateUrl = url => {
|
|
208
|
+
if (url) {
|
|
209
|
+
var pattern = new RegExp('^(https?:\\/\\/)?' + '((([a-z\\d]([a-z\\d-]*[a-z\\d])*)\\.)+[a-z]{2,}|' + '((\\d{1,3}\\.){3}\\d{1,3}))' + '(\\:\\d+)?(\\/[-a-z\\d%_.~+]*)*' + '(\\?[;&a-z\\d%_.~+=-]*)?' + '(\\#[-a-z\\d_]*)?$', 'i');
|
|
210
|
+
return pattern.test(url);
|
|
211
|
+
}
|
|
212
|
+
return false;
|
|
213
|
+
};
|
|
214
|
+
export const checkPermissions = async permissions => {
|
|
215
|
+
if (Platform.OS === 'ios') {
|
|
216
|
+
return true;
|
|
217
|
+
}
|
|
218
|
+
try {
|
|
219
|
+
const requiredPermissions = permissions.filter(permission => permission.toString() !== PERMISSIONS.ANDROID.BLUETOOTH_CONNECT);
|
|
220
|
+
const results = await requestMultiple(requiredPermissions);
|
|
221
|
+
let allPermissionsGranted = true;
|
|
222
|
+
requiredPermissions.forEach(permission => {
|
|
223
|
+
if (!(results[permission] === RESULTS.GRANTED)) {
|
|
224
|
+
allPermissionsGranted = false;
|
|
225
|
+
}
|
|
226
|
+
console.log(permission, ':', results[permission]);
|
|
227
|
+
});
|
|
228
|
+
|
|
229
|
+
// Bluetooth Connect Permission handling
|
|
230
|
+
if (permissions.findIndex(permission => permission.toString() === PERMISSIONS.ANDROID.BLUETOOTH_CONNECT) >= 0) {
|
|
231
|
+
const bleConnectResult = await request(PERMISSIONS.ANDROID.BLUETOOTH_CONNECT);
|
|
232
|
+
console.log(`${PERMISSIONS.ANDROID.BLUETOOTH_CONNECT} : ${bleConnectResult}`);
|
|
233
|
+
}
|
|
234
|
+
return allPermissionsGranted;
|
|
235
|
+
} catch (error) {
|
|
236
|
+
console.log(error);
|
|
237
|
+
return false;
|
|
238
|
+
}
|
|
239
|
+
};
|
|
240
|
+
export const pairData = (unGroupedPeerTrackNodes, batch, spotlightVideoTrackId) => {
|
|
241
|
+
const spotlightNode = [];
|
|
242
|
+
const pairedDataRegular = [];
|
|
243
|
+
const pairedDataSource = [];
|
|
244
|
+
let groupedPeerTrackNodes = [];
|
|
245
|
+
let itemsPushed = 0;
|
|
246
|
+
unGroupedPeerTrackNodes.map(item => {
|
|
247
|
+
var _item$track, _item$track2;
|
|
248
|
+
const {
|
|
249
|
+
onSpotlight
|
|
250
|
+
} = isTileOnSpotlight(spotlightVideoTrackId, {
|
|
251
|
+
tileVideoTrack: item.track,
|
|
252
|
+
peerRegularAudioTrack: item.peer.audioTrack,
|
|
253
|
+
peerAuxTracks: item.peer.auxiliaryTracks
|
|
254
|
+
});
|
|
255
|
+
if (onSpotlight) {
|
|
256
|
+
spotlightNode.push([item]);
|
|
257
|
+
} else if (((_item$track = item.track) === null || _item$track === void 0 ? void 0 : _item$track.source) !== HMSTrackSource.REGULAR && ((_item$track2 = item.track) === null || _item$track2 === void 0 ? void 0 : _item$track2.source) !== undefined) {
|
|
258
|
+
pairedDataSource.push([item]);
|
|
259
|
+
} else {
|
|
260
|
+
if (itemsPushed === batch) {
|
|
261
|
+
pairedDataRegular.push(groupedPeerTrackNodes);
|
|
262
|
+
groupedPeerTrackNodes = [];
|
|
263
|
+
itemsPushed = 0;
|
|
264
|
+
}
|
|
265
|
+
groupedPeerTrackNodes.push(item);
|
|
266
|
+
itemsPushed++;
|
|
267
|
+
}
|
|
268
|
+
});
|
|
269
|
+
if (groupedPeerTrackNodes.length) {
|
|
270
|
+
pairedDataRegular.push(groupedPeerTrackNodes);
|
|
271
|
+
}
|
|
272
|
+
return [...spotlightNode, ...pairedDataSource, ...pairedDataRegular];
|
|
273
|
+
};
|
|
274
|
+
export const isTileOnSpotlight = (spotlightTrackId, peerTracks) => {
|
|
275
|
+
var _peerTracks$tileVideo, _peerTracks$tileVideo2, _peerTracks$peerRegul, _peerTracks$peerAuxTr;
|
|
276
|
+
const trackSource = ((_peerTracks$tileVideo = peerTracks.tileVideoTrack) === null || _peerTracks$tileVideo === void 0 ? void 0 : _peerTracks$tileVideo.source) || HMSTrackSource.REGULAR;
|
|
277
|
+
const videoTrackId = (_peerTracks$tileVideo2 = peerTracks.tileVideoTrack) === null || _peerTracks$tileVideo2 === void 0 ? void 0 : _peerTracks$tileVideo2.trackId;
|
|
278
|
+
const audioTrackId = trackSource === HMSTrackSource.REGULAR ? (_peerTracks$peerRegul = peerTracks.peerRegularAudioTrack) === null || _peerTracks$peerRegul === void 0 ? void 0 : _peerTracks$peerRegul.trackId : (_peerTracks$peerAuxTr = peerTracks.peerAuxTracks) === null || _peerTracks$peerAuxTr === void 0 || (_peerTracks$peerAuxTr = _peerTracks$peerAuxTr.find(auxiliaryTrack => auxiliaryTrack.source === trackSource && auxiliaryTrack.type === HMSTrackType.AUDIO)) === null || _peerTracks$peerAuxTr === void 0 ? void 0 : _peerTracks$peerAuxTr.trackId;
|
|
279
|
+
return {
|
|
280
|
+
onSpotlight: spotlightTrackId ? spotlightTrackId === audioTrackId || spotlightTrackId === videoTrackId : false,
|
|
281
|
+
tileVideoTrackId: videoTrackId,
|
|
282
|
+
tileAudioTrackId: audioTrackId
|
|
283
|
+
};
|
|
284
|
+
};
|
|
285
|
+
export const getDisplayTrackDimensions = (peersInPage, top, bottom, isPortraitOrientation) => {
|
|
286
|
+
// window height - (header + footer + top + bottom + padding)
|
|
287
|
+
|
|
288
|
+
// Using "extra offset" (i.e. 32) for android as we are getting wrong window height
|
|
289
|
+
const viewHeight = Dimensions.get('window').height - (50 + 50 + top + bottom + (Platform.OS === 'android' ? 32 : 2));
|
|
290
|
+
let height, width;
|
|
291
|
+
if (isPortraitOrientation) {
|
|
292
|
+
height = peersInPage === 1 ? viewHeight / 1 : peersInPage === 2 ? viewHeight / 2 : peersInPage === 3 ? viewHeight / 3 : viewHeight / 2;
|
|
293
|
+
width = peersInPage === 1 ? '100%' : peersInPage === 2 ? '100%' : peersInPage === 3 ? '100%' : '50%';
|
|
294
|
+
} else {
|
|
295
|
+
height = viewHeight - (StatusBar.currentHeight || 0);
|
|
296
|
+
width = peersInPage === 1 ? '100%' : '50%';
|
|
297
|
+
}
|
|
298
|
+
return {
|
|
299
|
+
height,
|
|
300
|
+
width
|
|
301
|
+
};
|
|
302
|
+
};
|
|
303
|
+
|
|
304
|
+
// getTrackForPIPView function
|
|
305
|
+
// returns first remote peerTrack (regular or screenshare) that it founds
|
|
306
|
+
// otherwise returns first valid peerTrack
|
|
307
|
+
export const getTrackForPIPView = pairedPeers => {
|
|
308
|
+
const peerTracks = pairedPeers.flat();
|
|
309
|
+
|
|
310
|
+
// local
|
|
311
|
+
let videoPeerTrackNode = peerTracks[0];
|
|
312
|
+
for (const peerTrack of peerTracks) {
|
|
313
|
+
// Checking if we have "remote" screenshare track
|
|
314
|
+
if (peerTrack.peer.isLocal === false && peerTrack.track && peerTrack.track.source !== HMSTrackSource.REGULAR && peerTrack.track.type === HMSTrackType.VIDEO) {
|
|
315
|
+
return peerTrack;
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
// remote
|
|
319
|
+
if (peerTrack.peer.isLocal === false) {
|
|
320
|
+
return peerTrack;
|
|
321
|
+
}
|
|
322
|
+
}
|
|
323
|
+
return videoPeerTrackNode;
|
|
324
|
+
};
|
|
325
|
+
export const getTime = millisecs => {
|
|
326
|
+
const sec = Math.floor(millisecs / 1000 % 60);
|
|
327
|
+
const min = Math.floor(millisecs / (1000 * 60) % 60);
|
|
328
|
+
const h = Math.floor(millisecs / (1000 * 60 * 60) % 24);
|
|
329
|
+
return [h, min, sec];
|
|
330
|
+
};
|
|
331
|
+
export const getTimeStringin12HourFormat = time => {
|
|
332
|
+
let hours = time.getHours();
|
|
333
|
+
const minutes = time.getMinutes();
|
|
334
|
+
const notation = hours / 12 > 1 ? ' PM' : ' AM';
|
|
335
|
+
hours = hours % 12;
|
|
336
|
+
return (hours < 10 ? '0' + hours : hours) + ':' + (minutes < 10 ? '0' + minutes : minutes) + notation;
|
|
337
|
+
};
|
|
338
|
+
//# sourceMappingURL=functions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["Platform","Dimensions","PermissionsAndroid","StatusBar","Toast","HMSTrackType","HMSTrackSource","PERMISSIONS","request","requestMultiple","RESULTS","getRoomLinkDetails","getMeetingUrl","getMeetingCode","getInitials","name","_name","trim","initials","length","nameArray","split","firstName","secondName","substring","toUpperCase","parseMetadata","metadata","parsedMetadata","JSON","parse","e","console","log","requestExternalStoragePermission","OS","granted","title","message","buttonPositive","GRANTED","showWithGravity","LONG","TOP","err","callService","roomID","success","failure","roomCode","subdomain","validateUrl","code","roomDomain","domain","permissions","checkPermissions","ANDROID","CAMERA","RECORD_AUDIO","BLUETOOTH_CONNECT","userId","getRandomUserId","isQARoom","search","undefined","error","getRandomNumberInRange","min","max","Math","floor","random","Array","from","randomAlphaAsciiCode","alphaCharacter","String","fromCharCode","join","getPeerNodes","peerTrackNodes","peerID","nodes","map","peerTrackNode","peer","push","getPeerTrackNodes","track","uniqueId","type","VIDEO","source","REGULAR","id","updatedDegradedFlag","isDegraded","updatePeerTrackNodes","updatePeerNodes","createPeerTrackNode","_track","_track2","AUDIO","videoTrack","isVideoTrack","trackSource","replacePeerTrackNodes","latestPeerTrackNodes","updatedPeerTrackNodes","newPeerTrackNodes","updatedPeerTrackNode","latestPeerTrackNode","isPortrait","dim","get","height","width","url","pattern","RegExp","test","requiredPermissions","filter","permission","toString","results","allPermissionsGranted","forEach","findIndex","bleConnectResult","pairData","unGroupedPeerTrackNodes","batch","spotlightVideoTrackId","spotlightNode","pairedDataRegular","pairedDataSource","groupedPeerTrackNodes","itemsPushed","item","_item$track","_item$track2","onSpotlight","isTileOnSpotlight","tileVideoTrack","peerRegularAudioTrack","audioTrack","peerAuxTracks","auxiliaryTracks","spotlightTrackId","peerTracks","_peerTracks$tileVideo","_peerTracks$tileVideo2","_peerTracks$peerRegul","_peerTracks$peerAuxTr","videoTrackId","trackId","audioTrackId","find","auxiliaryTrack","tileVideoTrackId","tileAudioTrackId","getDisplayTrackDimensions","peersInPage","top","bottom","isPortraitOrientation","viewHeight","currentHeight","getTrackForPIPView","pairedPeers","flat","videoPeerTrackNode","peerTrack","isLocal","getTime","millisecs","sec","h","getTimeStringin12HourFormat","time","hours","getHours","minutes","getMinutes","notation"],"sourceRoot":"../../../src","sources":["utils/functions.ts"],"mappings":"AAAA,SACEA,QAAQ,EACRC,UAAU,EACVC,kBAAkB,EAClBC,SAAS,QACJ,cAAc;AACrB,OAAOC,KAAK,MAAM,2BAA2B;AAC7C,SAGEC,YAAY,EACZC,cAAc,QAET,6BAA6B;AAGpC,SACEC,WAAW,EACXC,OAAO,EACPC,eAAe,EACfC,OAAO,QACF,0BAA0B;AACjC,SAASC,kBAAkB,QAAQ,sBAAsB;AAEzD,OAAO,MAAMC,aAAa,GAAGA,CAAA,KAC3B,2DAA2D;AAC7D;;AAEA,OAAO,MAAMC,cAAc,GAAGA,CAAA,KAAM,aAAa;AAEjD,OAAO,MAAMC,WAAW,GAAIC,IAAa,IAAa;EAAA,IAAAC,KAAA;EACpDD,IAAI,IAAAC,KAAA,GAAGD,IAAI,cAAAC,KAAA,uBAAJA,KAAA,CAAMC,IAAI,CAAC,CAAC;EAEnB,IAAIC,QAAQ,GAAG,EAAE;EAEjB,IAAIH,IAAI,IAAIA,IAAI,CAACI,MAAM,GAAG,CAAC,EAAE;IAC3B,MAAMC,SAAS,GAAGL,IAAI,CAACM,KAAK,CAAC,GAAG,CAAC;IACjC,MAAMC,SAAS,GAAGF,SAAS,CAACD,MAAM,GAAG,CAAC,GAAGC,SAAS,CAAC,CAAC,CAAC,GAAG,IAAI;IAC5D,MAAMG,UAAU,GAAGH,SAAS,CAACD,MAAM,GAAG,CAAC,GAAGC,SAAS,CAAC,CAAC,CAAC,GAAG,IAAI;IAE7D,IAAIE,SAAS,IAAIC,UAAU,EAAE;MAC3BL,QAAQ,GAAGI,SAAS,CAACE,SAAS,CAAC,CAAC,EAAE,CAAC,CAAC,GAAGD,UAAU,CAACC,SAAS,CAAC,CAAC,EAAE,CAAC,CAAC;IACnE,CAAC,MAAM,IAAIF,SAAS,EAAE;MACpBJ,QAAQ,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CAACI,UAAU,CAAC,CAAC;EACjC,MAAMC,QAAQ,GAAGJ,KAAK,GAAG,EAAE,GAAG,CAAC,GAAG,KAAK,GAAG,KAAK;EAC/CA,KAAK,GAAGA,KAAK,GAAG,EAAE;EAClB,OACE,CAACA,KAAK,GAAG,EAAE,GAAG,GAAG,GAAGA,KAAK,GAAGA,KAAK,IACjC,GAAG,IACFE,OAAO,GAAG,EAAE,GAAG,GAAG,GAAGA,OAAO,GAAGA,OAAO,CAAC,GACxCE,QAAQ;AAEZ,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export const getRoomLinkDetails = roomLink => {
|
|
2
|
+
const codeObject = RegExp(/(?!\/)[a-zA-Z\-0-9]*$/g).exec(roomLink);
|
|
3
|
+
const domainObject = RegExp(/(https:\/\/)?(?:[a-zA-Z0-9.-])+(?!\\)/).exec(roomLink);
|
|
4
|
+
let roomCode = '';
|
|
5
|
+
let roomDomain = '';
|
|
6
|
+
if (codeObject && domainObject) {
|
|
7
|
+
roomCode = codeObject[0];
|
|
8
|
+
roomDomain = domainObject[0];
|
|
9
|
+
roomDomain = roomDomain.replace('https://', '');
|
|
10
|
+
}
|
|
11
|
+
return {
|
|
12
|
+
roomCode,
|
|
13
|
+
roomDomain
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
//# sourceMappingURL=getRoomLinkDetails.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["getRoomLinkDetails","roomLink","codeObject","RegExp","exec","domainObject","roomCode","roomDomain","replace"],"sourceRoot":"../../../src","sources":["utils/getRoomLinkDetails.ts"],"mappings":"AAAA,OAAO,MAAMA,kBAAkB,GAC7BC,QAAgB,IAC6B;EAC7C,MAAMC,UAAU,GAAGC,MAAM,CAAC,wBAAwB,CAAC,CAACC,IAAI,CAACH,QAAQ,CAAC;EAElE,MAAMI,YAAY,GAAGF,MAAM,CAAC,uCAAuC,CAAC,CAACC,IAAI,CACvEH,QACF,CAAC;EAED,IAAIK,QAAQ,GAAG,EAAE;EACjB,IAAIC,UAAU,GAAG,EAAE;EAEnB,IAAIL,UAAU,IAAIG,YAAY,EAAE;IAC9BC,QAAQ,GAAGJ,UAAU,CAAC,CAAC,CAAC;IACxBK,UAAU,GAAGF,YAAY,CAAC,CAAC,CAAC;IAC5BE,UAAU,GAAGA,UAAU,CAACC,OAAO,CAAC,UAAU,EAAE,EAAE,CAAC;EACjD;EAEA,OAAO;IACLF,QAAQ;IACRC;EACF,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { useEffect } from 'react';
|
|
2
|
+
import { useDispatch, useSelector } from 'react-redux';
|
|
3
|
+
import { HMSTrackSource, HMSUpdateListenerActions } from '@100mslive/react-native-hms';
|
|
4
|
+
import { setRTCStats } from '../redux/actions';
|
|
5
|
+
import { ModalTypes } from './types';
|
|
6
|
+
export const useRTCStatsListeners = () => {
|
|
7
|
+
const dispatch = useDispatch();
|
|
8
|
+
const hmsInstance = useSelector(state => state.user.hmsInstance);
|
|
9
|
+
const addListeners = useSelector(state => state.app.joinConfig.showStats || state.app.modalType === ModalTypes.RTC_STATS);
|
|
10
|
+
useEffect(() => {
|
|
11
|
+
if (hmsInstance && addListeners) {
|
|
12
|
+
hmsInstance.addEventListener(HMSUpdateListenerActions.ON_LOCAL_AUDIO_STATS, data => {
|
|
13
|
+
const audioStatId = data.track.source && data.track.source !== HMSTrackSource.REGULAR ? data.peer.peerID + data.track.source : data.peer.peerID;
|
|
14
|
+
|
|
15
|
+
// Saving Audio Track Stats by "peerId" plus "track source" if source is not regular
|
|
16
|
+
dispatch(setRTCStats(audioStatId, data.localAudioStats));
|
|
17
|
+
});
|
|
18
|
+
hmsInstance.addEventListener(HMSUpdateListenerActions.ON_LOCAL_VIDEO_STATS, data => {
|
|
19
|
+
dispatch(setRTCStats(data.track.trackId, data.localVideoStats));
|
|
20
|
+
});
|
|
21
|
+
hmsInstance.addEventListener(HMSUpdateListenerActions.ON_REMOTE_AUDIO_STATS, data => {
|
|
22
|
+
const audioStatId = data.track.source && data.track.source !== HMSTrackSource.REGULAR ? data.peer.peerID + data.track.source : data.peer.peerID;
|
|
23
|
+
|
|
24
|
+
// Saving Audio Track Stats by "peerId" plus "track source" if source is not regular
|
|
25
|
+
dispatch(setRTCStats(audioStatId, data.remoteAudioStats));
|
|
26
|
+
});
|
|
27
|
+
hmsInstance.addEventListener(HMSUpdateListenerActions.ON_REMOTE_VIDEO_STATS, data => {
|
|
28
|
+
dispatch(setRTCStats(data.track.trackId, data.remoteVideoStats));
|
|
29
|
+
});
|
|
30
|
+
return () => {
|
|
31
|
+
hmsInstance.removeEventListener(HMSUpdateListenerActions.ON_LOCAL_AUDIO_STATS);
|
|
32
|
+
hmsInstance.removeEventListener(HMSUpdateListenerActions.ON_LOCAL_VIDEO_STATS);
|
|
33
|
+
hmsInstance.removeEventListener(HMSUpdateListenerActions.ON_REMOTE_AUDIO_STATS);
|
|
34
|
+
hmsInstance.removeEventListener(HMSUpdateListenerActions.ON_REMOTE_VIDEO_STATS);
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
}, [hmsInstance, addListeners]);
|
|
38
|
+
};
|
|
39
|
+
//# sourceMappingURL=hooks.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["useEffect","useDispatch","useSelector","HMSTrackSource","HMSUpdateListenerActions","setRTCStats","ModalTypes","useRTCStatsListeners","dispatch","hmsInstance","state","user","addListeners","app","joinConfig","showStats","modalType","RTC_STATS","addEventListener","ON_LOCAL_AUDIO_STATS","data","audioStatId","track","source","REGULAR","peer","peerID","localAudioStats","ON_LOCAL_VIDEO_STATS","trackId","localVideoStats","ON_REMOTE_AUDIO_STATS","remoteAudioStats","ON_REMOTE_VIDEO_STATS","remoteVideoStats","removeEventListener"],"sourceRoot":"../../../src","sources":["utils/hooks.ts"],"mappings":"AAAA,SAASA,SAAS,QAAQ,OAAO;AACjC,SAASC,WAAW,EAAEC,WAAW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