@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,73 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { View, Text, TouchableOpacity, StyleSheet } from 'react-native';
|
|
3
|
+
import { COLORS } from '../utils/theme';
|
|
4
|
+
export const CustomControls = _ref => {
|
|
5
|
+
let {
|
|
6
|
+
handleControlPress
|
|
7
|
+
} = _ref;
|
|
8
|
+
return /*#__PURE__*/React.createElement(View, null, /*#__PURE__*/React.createElement(View, {
|
|
9
|
+
style: styles.wrapper
|
|
10
|
+
}, /*#__PURE__*/React.createElement(TouchableOpacity, {
|
|
11
|
+
style: styles.button,
|
|
12
|
+
onPress: () => handleControlPress('play')
|
|
13
|
+
}, /*#__PURE__*/React.createElement(Text, {
|
|
14
|
+
style: styles.text
|
|
15
|
+
}, "Play")), /*#__PURE__*/React.createElement(TouchableOpacity, {
|
|
16
|
+
style: styles.button,
|
|
17
|
+
onPress: () => handleControlPress('stop')
|
|
18
|
+
}, /*#__PURE__*/React.createElement(Text, {
|
|
19
|
+
style: styles.text
|
|
20
|
+
}, "Stop")), /*#__PURE__*/React.createElement(TouchableOpacity, {
|
|
21
|
+
style: styles.button,
|
|
22
|
+
onPress: () => handleControlPress('pause')
|
|
23
|
+
}, /*#__PURE__*/React.createElement(Text, {
|
|
24
|
+
style: styles.text
|
|
25
|
+
}, "Pause")), /*#__PURE__*/React.createElement(TouchableOpacity, {
|
|
26
|
+
style: styles.button,
|
|
27
|
+
onPress: () => handleControlPress('resume')
|
|
28
|
+
}, /*#__PURE__*/React.createElement(Text, {
|
|
29
|
+
style: styles.text
|
|
30
|
+
}, "Resume"))), /*#__PURE__*/React.createElement(View, {
|
|
31
|
+
style: styles.spacedWrapper
|
|
32
|
+
}, /*#__PURE__*/React.createElement(TouchableOpacity, {
|
|
33
|
+
style: styles.button,
|
|
34
|
+
onPress: () => handleControlPress('seekForward', 5)
|
|
35
|
+
}, /*#__PURE__*/React.createElement(Text, {
|
|
36
|
+
style: styles.text
|
|
37
|
+
}, "Forward 5 sec")), /*#__PURE__*/React.createElement(TouchableOpacity, {
|
|
38
|
+
style: styles.button,
|
|
39
|
+
onPress: () => handleControlPress('seekBackward', 5)
|
|
40
|
+
}, /*#__PURE__*/React.createElement(Text, {
|
|
41
|
+
style: styles.text
|
|
42
|
+
}, "Backward 5 sec"))), /*#__PURE__*/React.createElement(View, {
|
|
43
|
+
style: styles.spacedWrapper
|
|
44
|
+
}, /*#__PURE__*/React.createElement(TouchableOpacity, {
|
|
45
|
+
style: styles.button,
|
|
46
|
+
onPress: () => handleControlPress('seekToLive')
|
|
47
|
+
}, /*#__PURE__*/React.createElement(Text, {
|
|
48
|
+
style: styles.text
|
|
49
|
+
}, "Go to Live")), /*#__PURE__*/React.createElement(TouchableOpacity, {
|
|
50
|
+
style: styles.button,
|
|
51
|
+
onPress: () => handleControlPress('setVolume', 50)
|
|
52
|
+
}, /*#__PURE__*/React.createElement(Text, {
|
|
53
|
+
style: styles.text
|
|
54
|
+
}, "Low Volume to `50`"))));
|
|
55
|
+
};
|
|
56
|
+
const styles = StyleSheet.create({
|
|
57
|
+
wrapper: {
|
|
58
|
+
flexDirection: 'row',
|
|
59
|
+
justifyContent: 'space-evenly'
|
|
60
|
+
},
|
|
61
|
+
spacedWrapper: {
|
|
62
|
+
flexDirection: 'row',
|
|
63
|
+
justifyContent: 'space-evenly',
|
|
64
|
+
marginVertical: 8
|
|
65
|
+
},
|
|
66
|
+
button: {
|
|
67
|
+
padding: 12
|
|
68
|
+
},
|
|
69
|
+
text: {
|
|
70
|
+
color: COLORS.PRIMARY.LIGHT
|
|
71
|
+
}
|
|
72
|
+
});
|
|
73
|
+
//# sourceMappingURL=CustomHLSPlayerControls.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","View","Text","TouchableOpacity","StyleSheet","COLORS","CustomControls","_ref","handleControlPress","createElement","style","styles","wrapper","button","onPress","text","spacedWrapper","create","flexDirection","justifyContent","marginVertical","padding","color","PRIMARY","LIGHT"],"sourceRoot":"../../../src","sources":["components/CustomHLSPlayerControls.tsx"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,IAAI,EAAEC,IAAI,EAAEC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J,MAAM,GAAGP,UAAU,CAACa,MAAM,CAAC;EAC/BL,OAAO,EAAE;IAAEM,aAAa,EAAE,KAAK;IAAEC,cAAc,EAAE;EAAe,CAAC;EACjEH,aAAa,EAAE;IACbE,aAAa,EAAE,KAAK;IACpBC,cAAc,EAAE,cAAc;IAC9BC,cAAc,EAAE;EAClB,CAAC;EACDP,MAAM,EAAE;IAAEQ,OAAO,EAAE;EAAG,CAAC;EACvBN,IAAI,EAAE;IAAEO,KAAK,EAAEjB,MAAM,CAACkB,OAAO,CAACC;EAAM;AACtC,CAAC,CAAC"}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { StyleSheet, Text, TextInput, TouchableOpacity, View } from 'react-native';
|
|
3
|
+
import MaterialIcons from 'react-native-vector-icons/MaterialIcons';
|
|
4
|
+
import { COLORS } from '../utils/theme';
|
|
5
|
+
const CustomInput = (_ref // autoCompleteType = 'off',
|
|
6
|
+
) => {
|
|
7
|
+
let {
|
|
8
|
+
value,
|
|
9
|
+
title,
|
|
10
|
+
onChangeText,
|
|
11
|
+
placeholderTextColor,
|
|
12
|
+
placeholder,
|
|
13
|
+
textStyle,
|
|
14
|
+
viewStyle,
|
|
15
|
+
clearButtonStyle,
|
|
16
|
+
inputStyle,
|
|
17
|
+
defaultValue,
|
|
18
|
+
returnKeyType,
|
|
19
|
+
multiline,
|
|
20
|
+
blurOnSubmit,
|
|
21
|
+
disableFullscreenUI = true,
|
|
22
|
+
clear = true,
|
|
23
|
+
autoCapitalize = 'none' // autoCorrect = false,
|
|
24
|
+
} = _ref;
|
|
25
|
+
const showClear = clear && value !== undefined && (value === null || value === void 0 ? void 0 : value.length) > 0;
|
|
26
|
+
const onChange = newValue => {
|
|
27
|
+
onChangeText(newValue);
|
|
28
|
+
};
|
|
29
|
+
return /*#__PURE__*/React.createElement(View, {
|
|
30
|
+
style: [styles.inputContainer, viewStyle]
|
|
31
|
+
}, title && /*#__PURE__*/React.createElement(Text, {
|
|
32
|
+
style: textStyle
|
|
33
|
+
}, title), /*#__PURE__*/React.createElement(View, null, /*#__PURE__*/React.createElement(TextInput, {
|
|
34
|
+
disableFullscreenUI: disableFullscreenUI,
|
|
35
|
+
value: value,
|
|
36
|
+
onChangeText: onChange,
|
|
37
|
+
placeholderTextColor: placeholderTextColor,
|
|
38
|
+
placeholder: placeholder,
|
|
39
|
+
style: [!multiline && styles.input, showClear && styles.clear, inputStyle],
|
|
40
|
+
defaultValue: defaultValue,
|
|
41
|
+
returnKeyType: returnKeyType,
|
|
42
|
+
multiline: multiline,
|
|
43
|
+
blurOnSubmit: blurOnSubmit,
|
|
44
|
+
keyboardAppearance: "dark",
|
|
45
|
+
autoCapitalize: autoCapitalize,
|
|
46
|
+
autoCorrect: true,
|
|
47
|
+
textContentType: 'name',
|
|
48
|
+
autoCompleteType: 'name'
|
|
49
|
+
}), showClear && /*#__PURE__*/React.createElement(TouchableOpacity, {
|
|
50
|
+
onPress: () => {
|
|
51
|
+
onChange('');
|
|
52
|
+
},
|
|
53
|
+
style: [styles.clearContainer, clearButtonStyle]
|
|
54
|
+
}, /*#__PURE__*/React.createElement(MaterialIcons, {
|
|
55
|
+
name: "clear",
|
|
56
|
+
style: styles.clearIcon,
|
|
57
|
+
size: 24
|
|
58
|
+
}))));
|
|
59
|
+
};
|
|
60
|
+
const styles = StyleSheet.create({
|
|
61
|
+
inputContainer: {
|
|
62
|
+
width: '100%'
|
|
63
|
+
},
|
|
64
|
+
input: {
|
|
65
|
+
height: 48
|
|
66
|
+
},
|
|
67
|
+
clearContainer: {
|
|
68
|
+
position: 'absolute',
|
|
69
|
+
right: 0,
|
|
70
|
+
top: 0,
|
|
71
|
+
bottom: 0,
|
|
72
|
+
justifyContent: 'center',
|
|
73
|
+
paddingHorizontal: 8
|
|
74
|
+
},
|
|
75
|
+
clear: {
|
|
76
|
+
paddingRight: 40
|
|
77
|
+
},
|
|
78
|
+
clearIcon: {
|
|
79
|
+
color: COLORS.TEXT.HIGH_EMPHASIS
|
|
80
|
+
}
|
|
81
|
+
});
|
|
82
|
+
export { CustomInput };
|
|
83
|
+
//# sourceMappingURL=CustomInput.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","StyleSheet","Text","TextInput","TouchableOpacity","View","MaterialIcons","COLORS","CustomInput","_ref","value","title","onChangeText","placeholderTextColor","placeholder","textStyle","viewStyle","clearButtonStyle","inputStyle","defaultValue","returnKeyType","multiline","blurOnSubmit","disableFullscreenUI","clear","autoCapitalize","showClear","undefined","length","onChange","newValue","createElement","style","styles","inputContainer","input","keyboardAppearance","autoCorrect","textContentType","autoCompleteType","onPress","clearContainer","name","clearIcon","size","create","width","height","position","right","top","bottom","justifyContent","paddingHorizontal","paddingRight","color","TEXT","HIGH_EMPHASIS"],"sourceRoot":"../../../src","sources":["components/CustomInput.tsx"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SACEC,UAAU,EACVC,IAAI,EACJC,SAAS,EACTC,gBAAgB,EAChBC,IAAI,QACC,cAAc;AAOrB,OAAOC,aAAa,MAAM,yCAAyC;AAEnE,SAASC,MAAM,QAAQ,gBAAgB;AAEvC,MAAMC,WAAW,GAAGA,CAAAC,IAAA,CAiBlB;AAAA,KAiCI;EAAA,IAlDe;IACnBC,KAAK;IACLC,KAAK;IACLC,YAAY;IACZC,oBAAoB;IACpBC,WAAW;IACXC,SAAS;IACTC,SAAS;IACTC,gBAAgB;IAChBC,UAAU;IACVC,YAAY;IACZC,aAAa;IACbC,SAAS;IACTC,YAAY;IACZC,mBAAmB,GAAG,IAAI;IAC1BC,KAAK,GAAG,IAAI;IACZC,cAAc,GAAG,MAAM,CAAE;EAkC3B,CAAC,GAAAhB,IAAA;EACC,MAAMiB,SAAS,GAAGF,KAAK,IAAId,KAAK,KAAKiB,SAAS,IAAI,CAAAjB,KAAK,aAALA,KAAK,uBAALA,KAAK,CAAEkB,MAAM,IAAG,CAAC;EAEnE,MAAMC,QAAQ,GA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hB,CACF,CAAC;AAEX,CAAC;AAED,MAAMX,MAAM,GAAGhC,UAAU,CAAC4C,MAAM,CAAC;EAC/BX,cAAc,EAAE;IACdY,KAAK,EAAE;EACT,CAAC;EACDX,KAAK,EAAE;IACLY,MAAM,EAAE;EACV,CAAC;EACDN,cAAc,EAAE;IACdO,QAAQ,EAAE,UAAU;IACpBC,KAAK,EAAE,CAAC;IACRC,GAAG,EAAE,CAAC;IACNC,MAAM,EAAE,CAAC;IACTC,cAAc,EAAE,QAAQ;IACxBC,iBAAiB,EAAE;EACrB,CAAC;EACD7B,KAAK,EAAE;IACL8B,YAAY,EAAE;EAChB,CAAC;EACDX,SAAS,EAAE;IACTY,KAAK,EAAEhD,MAAM,CAACiD,IAAI,CAACC;EACrB;AACF,CAAC,CAAC;AAEF,SAASjD,WAAW"}
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { StyleSheet, View } from 'react-native';
|
|
3
|
+
import Modal from 'react-native-modal';
|
|
4
|
+
import MaterialCommunityIcons from 'react-native-vector-icons/MaterialCommunityIcons';
|
|
5
|
+
import { useSafeAreaInsets } from 'react-native-safe-area-context';
|
|
6
|
+
import { COLORS } from '../utils/theme';
|
|
7
|
+
import { CustomButton } from './CustomButton';
|
|
8
|
+
export const DefaultModal = _ref => {
|
|
9
|
+
let {
|
|
10
|
+
modalVisible,
|
|
11
|
+
setModalVisible,
|
|
12
|
+
children,
|
|
13
|
+
animationIn = 'fadeIn',
|
|
14
|
+
animationOut = 'fadeOut',
|
|
15
|
+
modalPosiion = 'flex-end',
|
|
16
|
+
backdrop = false,
|
|
17
|
+
viewStyle,
|
|
18
|
+
modalStyle
|
|
19
|
+
} = _ref;
|
|
20
|
+
const {
|
|
21
|
+
left,
|
|
22
|
+
right
|
|
23
|
+
} = useSafeAreaInsets();
|
|
24
|
+
return /*#__PURE__*/React.createElement(Modal, {
|
|
25
|
+
useNativeDriver: true,
|
|
26
|
+
useNativeDriverForBackdrop: true,
|
|
27
|
+
hideModalContentWhileAnimating: true,
|
|
28
|
+
animationIn: animationIn,
|
|
29
|
+
animationOut: animationOut,
|
|
30
|
+
avoidKeyboard: true,
|
|
31
|
+
isVisible: modalVisible,
|
|
32
|
+
coverScreen: true,
|
|
33
|
+
hasBackdrop: backdrop,
|
|
34
|
+
supportedOrientations: ['portrait', 'landscape'],
|
|
35
|
+
onBackdropPress: setModalVisible,
|
|
36
|
+
onDismiss: setModalVisible,
|
|
37
|
+
onBackButtonPress: setModalVisible,
|
|
38
|
+
style: [modalStyle, {
|
|
39
|
+
margin: 0,
|
|
40
|
+
justifyContent: modalPosiion
|
|
41
|
+
}]
|
|
42
|
+
}, /*#__PURE__*/React.createElement(View, {
|
|
43
|
+
style: [styles.contentContainer, modalPosiion === 'flex-end' ? styles.end : styles.center, viewStyle, {
|
|
44
|
+
marginLeft: left,
|
|
45
|
+
marginRight: right
|
|
46
|
+
}]
|
|
47
|
+
}, modalPosiion === 'flex-end' && /*#__PURE__*/React.createElement(CustomButton, {
|
|
48
|
+
onPress: setModalVisible,
|
|
49
|
+
viewStyle: styles.crossButton,
|
|
50
|
+
LeftIcon: /*#__PURE__*/React.createElement(MaterialCommunityIcons, {
|
|
51
|
+
name: "close",
|
|
52
|
+
style: styles.crossButtonIcon,
|
|
53
|
+
size: 24
|
|
54
|
+
})
|
|
55
|
+
}), children));
|
|
56
|
+
};
|
|
57
|
+
const styles = StyleSheet.create({
|
|
58
|
+
contentContainer: {
|
|
59
|
+
maxHeight: '80%',
|
|
60
|
+
// minHeight: '20%',
|
|
61
|
+
backgroundColor: COLORS.SURFACE.DEFAULT
|
|
62
|
+
},
|
|
63
|
+
end: {
|
|
64
|
+
flex: 1,
|
|
65
|
+
borderTopLeftRadius: 16,
|
|
66
|
+
borderTopRightRadius: 16,
|
|
67
|
+
padding: 16,
|
|
68
|
+
borderWidth: 1,
|
|
69
|
+
borderColor: COLORS.BORDER.LIGHT,
|
|
70
|
+
borderBottomWidth: 0
|
|
71
|
+
},
|
|
72
|
+
center: {
|
|
73
|
+
borderRadius: 16,
|
|
74
|
+
marginHorizontal: 24,
|
|
75
|
+
borderWidth: 1,
|
|
76
|
+
borderColor: COLORS.BORDER.LIGHT,
|
|
77
|
+
alignSelf: 'center',
|
|
78
|
+
width: '90%'
|
|
79
|
+
},
|
|
80
|
+
crossButton: {
|
|
81
|
+
height: 40,
|
|
82
|
+
width: 40,
|
|
83
|
+
position: 'absolute',
|
|
84
|
+
right: 16,
|
|
85
|
+
top: 16,
|
|
86
|
+
backgroundColor: COLORS.SURFACE.LIGHT,
|
|
87
|
+
borderRadius: 40,
|
|
88
|
+
alignItems: 'center',
|
|
89
|
+
justifyContent: 'center',
|
|
90
|
+
zIndex: 2
|
|
91
|
+
},
|
|
92
|
+
crossButtonIcon: {
|
|
93
|
+
color: COLORS.TEXT.HIGH_EMPHASIS
|
|
94
|
+
}
|
|
95
|
+
});
|
|
96
|
+
//# sourceMappingURL=DefaultModal.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","StyleSheet","View","Modal","MaterialCommunityIcons","useSafeAreaInsets","COLORS","CustomButton","DefaultModal","_ref","modalVisible","setModalVisible","children","animationIn","animationOut","modalPosiion","backdrop","viewStyle","modalStyle","left","right","createElement","useNativeDriver","useNativeDriverForBackdrop","hideModalContentWhileAnimating","avoidKeyboard","isVisible","coverScreen","hasBackdrop","supportedOrientations","onBackdropPress","onDismiss","onBackButtonPress","style","margin","justifyContent","styles","contentContainer","end","center","marginLeft","marginRight","onPress","crossButton","LeftIcon","name","crossButtonIcon","size","create","maxHeight","backgroundColor","SURFACE","DEFAULT","flex","borderTopLeftRadius","borderTopRightRadius","padding","borderWidth","borderColor","BORDER","LIGHT","borderBottomWidth","borderRadius","marginHorizontal","alignSelf","width","height","position","top","alignItems","zIndex","color","TEXT","HIGH_EMPHASIS"],"sourceRoot":"../../../src","sources":["components/DefaultModal.tsx"],"mappings":"AAAA,OAAOA,KAAK,MAA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,OAAO,CAACS,KAAK;IACrCE,YAAY,EAAE,EAAE;IAChBO,UAAU,EAAE,QAAQ;IACpBlC,cAAc,EAAE,QAAQ;IACxBmC,MAAM,EAAE;EACV,CAAC;EACDxB,eAAe,EAAE;IACfyB,KAAK,EAAEjE,MAAM,CAACkE,IAAI,CAACC;EACrB;AACF,CAAC,CAAC"}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { View, Text } from 'react-native';
|
|
3
|
+
import { HMSTrackSource, HMSTrackType } from '@100mslive/react-native-hms';
|
|
4
|
+
import MaterialCommunityIcons from 'react-native-vector-icons/MaterialCommunityIcons';
|
|
5
|
+
import { useSelector } from 'react-redux';
|
|
6
|
+
import { CustomButton } from '.';
|
|
7
|
+
import { styles } from './styles';
|
|
8
|
+
import PeerDisplayView from './PeerDisplayView';
|
|
9
|
+
import PeerRTCStatsContainer from './PeerRTCStatsContainer';
|
|
10
|
+
import { useHMSActions } from '../hooks-sdk';
|
|
11
|
+
// `ref` passed to DisplayTrack component will be passed to PeerDisplayView component
|
|
12
|
+
// as HMSView component is being rendered inside PeerDisplayView component
|
|
13
|
+
const DisplayTrack = /*#__PURE__*/React.forwardRef((_ref, hmsViewRef) => {
|
|
14
|
+
let {
|
|
15
|
+
isDegraded,
|
|
16
|
+
isLocal,
|
|
17
|
+
peer,
|
|
18
|
+
videoTrack,
|
|
19
|
+
videoStyles
|
|
20
|
+
} = _ref;
|
|
21
|
+
// hooks
|
|
22
|
+
const hmsActions = useHMSActions();
|
|
23
|
+
const showStatsOnTiles = useSelector(state => state.app.joinConfig.showStats);
|
|
24
|
+
|
|
25
|
+
// functions
|
|
26
|
+
const onEndScreenSharePress = async () => {
|
|
27
|
+
await hmsActions.setScreenShareEnabled(false);
|
|
28
|
+
};
|
|
29
|
+
return /*#__PURE__*/React.createElement(View, {
|
|
30
|
+
style: videoStyles
|
|
31
|
+
}, isLocal && (videoTrack === null || videoTrack === void 0 ? void 0 : videoTrack.source) === HMSTrackSource.SCREEN && (videoTrack === null || videoTrack === void 0 ? void 0 : videoTrack.type) === HMSTrackType.VIDEO ? /*#__PURE__*/React.createElement(View, {
|
|
32
|
+
style: styles.screenshareContainer
|
|
33
|
+
}, /*#__PURE__*/React.createElement(MaterialCommunityIcons, {
|
|
34
|
+
name: "monitor-share",
|
|
35
|
+
style: styles.icon,
|
|
36
|
+
size: 48
|
|
37
|
+
}), /*#__PURE__*/React.createElement(Text, {
|
|
38
|
+
style: styles.screenshareText
|
|
39
|
+
}, "You are sharing your screen"), /*#__PURE__*/React.createElement(CustomButton, {
|
|
40
|
+
title: "X Stop Screenshare",
|
|
41
|
+
onPress: onEndScreenSharePress,
|
|
42
|
+
viewStyle: styles.screenshareButton,
|
|
43
|
+
textStyle: styles.roleChangeModalButtonText
|
|
44
|
+
})) : /*#__PURE__*/React.createElement(PeerDisplayView, {
|
|
45
|
+
ref: hmsViewRef,
|
|
46
|
+
peer: peer,
|
|
47
|
+
isDegraded: isDegraded,
|
|
48
|
+
isLocal: isLocal,
|
|
49
|
+
videoTrack: videoTrack
|
|
50
|
+
}), showStatsOnTiles ? /*#__PURE__*/React.createElement(PeerRTCStatsContainer, {
|
|
51
|
+
trackId: videoTrack === null || videoTrack === void 0 ? void 0 : videoTrack.trackId,
|
|
52
|
+
peerId: peer.peerID,
|
|
53
|
+
trackSource: videoTrack === null || videoTrack === void 0 ? void 0 : videoTrack.source
|
|
54
|
+
}) : null, /*#__PURE__*/React.createElement(View, {
|
|
55
|
+
style: styles.peerNameContainer
|
|
56
|
+
}, /*#__PURE__*/React.createElement(Text, {
|
|
57
|
+
numberOfLines: 2,
|
|
58
|
+
style: styles.peerName
|
|
59
|
+
}, (videoTrack === null || videoTrack === void 0 ? void 0 : videoTrack.source) !== undefined && (videoTrack === null || videoTrack === void 0 ? void 0 : videoTrack.source) !== HMSTrackSource.REGULAR ? `${peer.name}'s ${videoTrack.source}` : isLocal ? `You (${peer.name})` : peer.name)));
|
|
60
|
+
});
|
|
61
|
+
DisplayTrack.displayName = 'DisplayTrack';
|
|
62
|
+
export { DisplayTrack };
|
|
63
|
+
//# sourceMappingURL=DisplayTrack.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","View","Text","HMSTrackSource","HMSTrackType","MaterialCommunityIcons","useSelector","CustomButton","styles","PeerDisplayView","PeerRTCStatsContainer","useHMSActions","DisplayTrack","forwardRef","_ref","hmsViewRef","isDegraded","isLocal","peer","videoTrack","videoStyles","hmsActions","showStatsOnTiles","state","app","joinConfig","showStats","onEndScreenSharePress","setScreenShareEnabled","createElement","style","source","SCREEN","type","VIDEO","screenshareContainer","name","icon","size","screenshareText","title","onPress","viewStyle","screenshareButton","textStyle","roleChangeModalButtonText","ref","trackId","peerId","peerID","trackSource","peerNameContainer","numberOfLines","peerName","undefined","REGULAR","displayName"],"sourceRoot":"../../../src","sources":["components/DisplayTrack.tsx"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AAEzB,SAASC,IAAI,EAAEC,IAAI,QAAQ,cAAc;AAEzC,SAASC,cAAc,EAAEC,YAAY,QAAQ,6BAA6B;AAC1E,OAAOC,sBAAsB,MAAM,kDAAkD;AACrF,SAASC,WAAW,QAAQ,aAAa;AAGzC,SAASC,YAAY,QAAQ,GAAG;AAChC,SAASC,MAAM,QAAQ,UAAU;AAEjC,OAAOC,eAAe,MAAM,mBAAmB;AAE/C,OAAOC,qBAAqB,MAAM,yBAAyB;AAC3D,SAASC,aAAa,QAAQ,cAAc;AAM5C;AACA;AACA,MAAMC,YAAY,gBAAGZ,KAAK,CAACa,UAAU,CAGnC,CAAAC,IAAA,EAAyDC,UAAU,KAAK;EAAA,IAAvE;IAAEC,UAAU;IAAEC,OAAO;IAAEC,IAAI;IAAEC,UAAU;IAAEC;EAAY,CAAC,GAAAN,IAAA;EACvD;EACA,MAAMO,UAAU,GAAGV,aAAa,CAAC,CAAC;EAClC,MAAMW,gBAAgB,GAAGhB,WAAW,CACj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ACnB,qBAAqB;IACpBqC,OAAO,EAAE5B,UAAU,aAAVA,UAAU,uBAAVA,UAAU,CAAE4B,OAAQ;IAC7BC,MAAM,EAAE9B,IAAI,CAAC+B,MAAO;IACpBC,WAAW,EAAE/B,UAAU,aAAVA,UAAU,uBAAVA,UAAU,CAAEY;EAAO,CACjC,CAAC,GACA,IAAI,eACR/B,KAAA,CAAA6B,aAAA,CAAC5B,IAAI;IAAC6B,KAAK,EAAEtB,MAAM,CAAC2C;EAAkB,gBACpCnD,KAAA,CAAA6B,aAAA,CAAC3B,IAAI;IAACkD,aAAa,EAAE,CAAE;IAACtB,KAAK,EAAEtB,MAAM,CAAC6C;EAAS,GAC5C,CAAAlC,UAAU,aAAVA,UAAU,uBAAVA,UAAU,CAAEY,MAAM,MAAKuB,SAAS,IACjC,CAAAnC,UAAU,aAAVA,UAAU,uBAAVA,UAAU,CAAEY,MAAM,MAAK5B,cAAc,CAACoD,OAAO,GACxC,GAAErC,IAAI,CAACkB,IAAK,MAAKjB,UAAU,CAACY,MAAO,EAAC,GACrCd,OAAO,GACN,QAAOC,IAAI,CAACkB,IAAK,GAAE,GACpBlB,IAAI,CAACkB,IACL,CACF,CACF,CAAC;AAEX,CAAC,CAAC;AAEFxB,YAAY,CAAC4C,WAAW,GAAG,cAAc;AAEzC,SAAS5C,YAAY"}
|
|
@@ -0,0 +1,203 @@
|
|
|
1
|
+
import React, { useEffect, useMemo, useRef, useState } from 'react';
|
|
2
|
+
import { useSelector } from 'react-redux';
|
|
3
|
+
import { View, Text, InteractionManager } from 'react-native';
|
|
4
|
+
import { HMSCameraControl } from '@100mslive/react-native-hms';
|
|
5
|
+
import Animated, { interpolate, useAnimatedStyle } from 'react-native-reanimated';
|
|
6
|
+
import { styles } from './styles';
|
|
7
|
+
import { DefaultModal } from './DefaultModal';
|
|
8
|
+
import { ModalTypes, PipModes } from '../utils/types';
|
|
9
|
+
import { pairData, requestExternalStoragePermission } from '../utils/functions';
|
|
10
|
+
import { ChangeAspectRatio, ChangeNameModal, ChangeRoleAccepteModal, ChangeRoleModal, ChangeTrackStateModal, ChangeVolumeModal, SaveScreenshot } from './Modals';
|
|
11
|
+
import { GridView } from './GridView';
|
|
12
|
+
import { HLSView } from './HLSView';
|
|
13
|
+
import PIPView from './PIPView';
|
|
14
|
+
import { PeerSettingsModalContent } from '../components/PeerSettingsModalContent';
|
|
15
|
+
import { StreamingQualityModalContent } from '../components/StreamingQualityModalContent';
|
|
16
|
+
import { useHMSChangeTrackStateRequest, useHMSInstance, useHMSRoleChangeRequest, useHMSSessionStoreListeners, useIsHLSViewer, useModalType } from '../hooks-util';
|
|
17
|
+
import { useIsPortraitOrientation } from '../utils/dimension';
|
|
18
|
+
import { ParticipantsModal } from './ParticipantsModal';
|
|
19
|
+
export const DisplayView = _ref => {
|
|
20
|
+
let {
|
|
21
|
+
offset,
|
|
22
|
+
peerTrackNodes
|
|
23
|
+
} = _ref;
|
|
24
|
+
// --- 100ms SDK Instance ---
|
|
25
|
+
const hmsInstance = useHMSInstance();
|
|
26
|
+
const isPortrait = useIsPortraitOrientation();
|
|
27
|
+
const isHLSViewer = useIsHLSViewer();
|
|
28
|
+
const {
|
|
29
|
+
modalVisibleType: modalVisible,
|
|
30
|
+
handleModalVisibleType: setModalVisible
|
|
31
|
+
} = useModalType();
|
|
32
|
+
|
|
33
|
+
// --- Refs ---
|
|
34
|
+
const gridViewRef = useRef(null);
|
|
35
|
+
const trackToChangeRef = useRef(null);
|
|
36
|
+
|
|
37
|
+
// --- Redux stores ---
|
|
38
|
+
const isPipModeActive = useSelector(state => state.app.pipModeStatus === PipModes.ACTIVE);
|
|
39
|
+
const spotlightTrackId = useSelector(state => state.user.spotlightTrackId); // State to track active spotlight trackId
|
|
40
|
+
|
|
41
|
+
// --- Component Local States ---
|
|
42
|
+
const [selectedPeerTrackNode, setSelectedPeerTrackNode] = useState(null);
|
|
43
|
+
const [capturedImagePath, setCapturedImagePath] = useState(null);
|
|
44
|
+
|
|
45
|
+
// --- Constants ---
|
|
46
|
+
const pairedPeers = useMemo(() => pairData(peerTrackNodes, isPortrait ? 4 : 2, spotlightTrackId), [peerTrackNodes, spotlightTrackId, isPortrait]);
|
|
47
|
+
|
|
48
|
+
// --- Listeners ---
|
|
49
|
+
useHMSSessionStoreListeners();
|
|
50
|
+
const trackStateChangeRequest = useHMSChangeTrackStateRequest(() => {
|
|
51
|
+
setModalVisible(ModalTypes.CHANGE_TRACK, true);
|
|
52
|
+
});
|
|
53
|
+
const roleChangeRequest = useHMSRoleChangeRequest(() => {
|
|
54
|
+
setModalVisible(ModalTypes.CHANGE_ROLE_ACCEPT, true);
|
|
55
|
+
});
|
|
56
|
+
|
|
57
|
+
// --- Effects ---
|
|
58
|
+
useEffect(() => {
|
|
59
|
+
// Scroll to start of the list
|
|
60
|
+
if (spotlightTrackId) {
|
|
61
|
+
var _gridViewRef$current;
|
|
62
|
+
(_gridViewRef$current = gridViewRef.current) === null || _gridViewRef$current === void 0 || (_gridViewRef$current = _gridViewRef$current.getFlatlistRef().current) === null || _gridViewRef$current === void 0 ? void 0 : _gridViewRef$current.scrollToOffset({
|
|
63
|
+
animated: true,
|
|
64
|
+
offset: 0
|
|
65
|
+
});
|
|
66
|
+
}
|
|
67
|
+
}, [spotlightTrackId]);
|
|
68
|
+
|
|
69
|
+
// functions
|
|
70
|
+
|
|
71
|
+
const handlePeerTileMorePress = React.useCallback(peerTrackNode => {
|
|
72
|
+
setSelectedPeerTrackNode(peerTrackNode);
|
|
73
|
+
setModalVisible(ModalTypes.PEER_SETTINGS);
|
|
74
|
+
}, [setModalVisible]);
|
|
75
|
+
const handleCaptureScreenShotPress = node => {
|
|
76
|
+
setModalVisible(ModalTypes.DEFAULT);
|
|
77
|
+
InteractionManager.runAfterInteractions(() => {
|
|
78
|
+
var _gridViewRef$current2;
|
|
79
|
+
(_gridViewRef$current2 = gridViewRef.current) === null || _gridViewRef$current2 === void 0 ? void 0 : _gridViewRef$current2.captureViewScreenshot(node);
|
|
80
|
+
});
|
|
81
|
+
};
|
|
82
|
+
const handleCaptureImageAtMaxSupportedResolutionPress = _node => {
|
|
83
|
+
setModalVisible(ModalTypes.DEFAULT);
|
|
84
|
+
InteractionManager.runAfterInteractions(async () => {
|
|
85
|
+
const permission = await requestExternalStoragePermission();
|
|
86
|
+
if (hmsInstance && permission) {
|
|
87
|
+
HMSCameraControl.captureImageAtMaxSupportedResolution(true).then(imagePath => {
|
|
88
|
+
console.log('captureImageAtMaxSupportedResolution result -> ', imagePath);
|
|
89
|
+
setModalVisible(ModalTypes.DEFAULT);
|
|
90
|
+
setCapturedImagePath({
|
|
91
|
+
uri: `file://${imagePath}`
|
|
92
|
+
});
|
|
93
|
+
}).catch(error => {
|
|
94
|
+
console.warn('captureImageAtMaxSupportedResolution error -> ', error);
|
|
95
|
+
});
|
|
96
|
+
}
|
|
97
|
+
});
|
|
98
|
+
};
|
|
99
|
+
const handleStreamingQualityPress = track => {
|
|
100
|
+
trackToChangeRef.current = track;
|
|
101
|
+
setModalVisible(ModalTypes.STREAMING_QUALITY_SETTING, true);
|
|
102
|
+
};
|
|
103
|
+
const animatedStyles = useAnimatedStyle(() => {
|
|
104
|
+
return {
|
|
105
|
+
transform: [{
|
|
106
|
+
translateY: interpolate(offset.value, [0, 1], [4, 0])
|
|
107
|
+
}]
|
|
108
|
+
};
|
|
109
|
+
}, []);
|
|
110
|
+
return /*#__PURE__*/React.createElement(Animated.View, {
|
|
111
|
+
style: [styles.container, animatedStyles]
|
|
112
|
+
}, isHLSViewer ? /*#__PURE__*/React.createElement(HLSView, null) : pairedPeers.length > 0 ? /*#__PURE__*/React.createElement(React.Fragment, null, isPipModeActive ? /*#__PURE__*/React.createElement(PIPView, {
|
|
113
|
+
pairedPeers: pairedPeers
|
|
114
|
+
}) : /*#__PURE__*/React.createElement(GridView, {
|
|
115
|
+
ref: gridViewRef,
|
|
116
|
+
onPeerTileMorePress: handlePeerTileMorePress,
|
|
117
|
+
pairedPeers: pairedPeers
|
|
118
|
+
})) : /*#__PURE__*/React.createElement(View, {
|
|
119
|
+
style: styles.welcomeContainer
|
|
120
|
+
}, /*#__PURE__*/React.createElement(Text, {
|
|
121
|
+
style: styles.welcomeHeading
|
|
122
|
+
}, "Welcome!"), /*#__PURE__*/React.createElement(Text, {
|
|
123
|
+
style: styles.welcomeDescription
|
|
124
|
+
}, "You're the first one here."), /*#__PURE__*/React.createElement(Text, {
|
|
125
|
+
style: styles.welcomeDescription
|
|
126
|
+
}, "Sit back and relax till the others join.")), isPipModeActive ? null : /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(DefaultModal, {
|
|
127
|
+
backdrop: true,
|
|
128
|
+
modalPosiion: "center",
|
|
129
|
+
viewStyle: {
|
|
130
|
+
minWidth: '70%',
|
|
131
|
+
width: undefined
|
|
132
|
+
},
|
|
133
|
+
modalVisible: modalVisible === ModalTypes.PEER_SETTINGS,
|
|
134
|
+
setModalVisible: () => setModalVisible(ModalTypes.DEFAULT)
|
|
135
|
+
}, selectedPeerTrackNode ? /*#__PURE__*/React.createElement(PeerSettingsModalContent, {
|
|
136
|
+
peerTrackNode: selectedPeerTrackNode,
|
|
137
|
+
cancelModal: () => setModalVisible(ModalTypes.DEFAULT),
|
|
138
|
+
onCaptureScreenShotPress: handleCaptureScreenShotPress,
|
|
139
|
+
onCaptureImageAtMaxSupportedResolutionPress: handleCaptureImageAtMaxSupportedResolutionPress,
|
|
140
|
+
onStreamingQualityPress: handleStreamingQualityPress
|
|
141
|
+
}) : null), /*#__PURE__*/React.createElement(DefaultModal, {
|
|
142
|
+
modalPosiion: "center",
|
|
143
|
+
modalVisible: modalVisible === ModalTypes.HLS_PLAYER_ASPECT_RATIO,
|
|
144
|
+
setModalVisible: () => setModalVisible(ModalTypes.DEFAULT)
|
|
145
|
+
}, /*#__PURE__*/React.createElement(ChangeAspectRatio, {
|
|
146
|
+
cancelModal: () => setModalVisible(ModalTypes.DEFAULT)
|
|
147
|
+
})), /*#__PURE__*/React.createElement(DefaultModal, {
|
|
148
|
+
modalPosiion: "center",
|
|
149
|
+
modalVisible: !!capturedImagePath,
|
|
150
|
+
setModalVisible: () => setCapturedImagePath(null)
|
|
151
|
+
}, capturedImagePath ? /*#__PURE__*/React.createElement(SaveScreenshot, {
|
|
152
|
+
imageSource: capturedImagePath,
|
|
153
|
+
cancelModal: () => setCapturedImagePath(null)
|
|
154
|
+
}) : null), /*#__PURE__*/React.createElement(DefaultModal, {
|
|
155
|
+
modalPosiion: "center",
|
|
156
|
+
modalVisible: modalVisible === ModalTypes.STREAMING_QUALITY_SETTING,
|
|
157
|
+
setModalVisible: () => setModalVisible(ModalTypes.DEFAULT)
|
|
158
|
+
}, trackToChangeRef.current ? /*#__PURE__*/React.createElement(StreamingQualityModalContent, {
|
|
159
|
+
track: trackToChangeRef.current,
|
|
160
|
+
cancelModal: () => {
|
|
161
|
+
setModalVisible(ModalTypes.DEFAULT);
|
|
162
|
+
}
|
|
163
|
+
}) : null), /*#__PURE__*/React.createElement(DefaultModal, {
|
|
164
|
+
modalPosiion: "center",
|
|
165
|
+
modalVisible: modalVisible === ModalTypes.CHANGE_TRACK,
|
|
166
|
+
setModalVisible: () => setModalVisible(ModalTypes.DEFAULT)
|
|
167
|
+
}, trackStateChangeRequest ? /*#__PURE__*/React.createElement(ChangeTrackStateModal, {
|
|
168
|
+
roleChangeRequest: trackStateChangeRequest,
|
|
169
|
+
cancelModal: () => setModalVisible(ModalTypes.DEFAULT)
|
|
170
|
+
}) : null), /*#__PURE__*/React.createElement(DefaultModal, {
|
|
171
|
+
modalPosiion: "center",
|
|
172
|
+
modalVisible: modalVisible === ModalTypes.CHANGE_ROLE_ACCEPT,
|
|
173
|
+
setModalVisible: () => setModalVisible(ModalTypes.DEFAULT)
|
|
174
|
+
}, roleChangeRequest ? /*#__PURE__*/React.createElement(ChangeRoleAccepteModal, {
|
|
175
|
+
instance: hmsInstance,
|
|
176
|
+
roleChangeRequest: roleChangeRequest,
|
|
177
|
+
cancelModal: () => setModalVisible(ModalTypes.DEFAULT)
|
|
178
|
+
}) : null), /*#__PURE__*/React.createElement(DefaultModal, {
|
|
179
|
+
animationIn: 'slideInUp',
|
|
180
|
+
animationOut: 'slideOutDown',
|
|
181
|
+
modalVisible: modalVisible === ModalTypes.PARTICIPANTS,
|
|
182
|
+
setModalVisible: () => setModalVisible(ModalTypes.DEFAULT)
|
|
183
|
+
}, /*#__PURE__*/React.createElement(ParticipantsModal, null)), /*#__PURE__*/React.createElement(DefaultModal, {
|
|
184
|
+
modalPosiion: "center",
|
|
185
|
+
modalVisible: modalVisible === ModalTypes.CHANGE_ROLE,
|
|
186
|
+
setModalVisible: () => setModalVisible(ModalTypes.DEFAULT)
|
|
187
|
+
}, /*#__PURE__*/React.createElement(ChangeRoleModal, {
|
|
188
|
+
cancelModal: () => setModalVisible(ModalTypes.DEFAULT)
|
|
189
|
+
})), /*#__PURE__*/React.createElement(DefaultModal, {
|
|
190
|
+
modalPosiion: "center",
|
|
191
|
+
modalVisible: modalVisible === ModalTypes.VOLUME,
|
|
192
|
+
setModalVisible: () => setModalVisible(ModalTypes.DEFAULT)
|
|
193
|
+
}, /*#__PURE__*/React.createElement(ChangeVolumeModal, {
|
|
194
|
+
cancelModal: () => setModalVisible(ModalTypes.DEFAULT)
|
|
195
|
+
})), /*#__PURE__*/React.createElement(DefaultModal, {
|
|
196
|
+
modalPosiion: "center",
|
|
197
|
+
modalVisible: modalVisible === ModalTypes.CHANGE_NAME,
|
|
198
|
+
setModalVisible: () => setModalVisible(ModalTypes.DEFAULT)
|
|
199
|
+
}, /*#__PURE__*/React.createElement(ChangeNameModal, {
|
|
200
|
+
cancelModal: () => setModalVisible(ModalTypes.DEFAULT)
|
|
201
|
+
}))));
|
|
202
|
+
};
|
|
203
|
+
//# sourceMappingURL=DisplayView.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","useEffect","useMemo","useRef","useState","useSelector","View","Text","InteractionManager","HMSCameraControl","Animated","interpolate","useAnimatedStyle","styles","DefaultModal","ModalTypes","PipModes","pairData","requestExternalStoragePermission","ChangeAspectRatio","ChangeNameModal","ChangeRoleAccepteModal","ChangeRoleModal","ChangeTrackStateModal","ChangeVolumeModal","SaveScreenshot","GridView","HLSView","PIPView","PeerSettingsModalContent","StreamingQualityModalContent","useHMSChangeTrackStateRequest","useHMSInstance","useHMSRoleChangeRequest","useHMSSessionStoreListeners","useIsHLSViewer","useModalType","useIsPortraitOrientation","ParticipantsModal","DisplayView","_ref","offset","peerTrackNodes","hmsInstance","isPortrait","isHLSViewer","modalVisibleType","modalVisible","handleModalVisibleType","setModalVisible","gridViewRef","trackToChangeRef","isPipModeActive","state","app","pipModeStatus","ACTIVE","spotlightTrackId","user","selectedPeerTrackNode","setSelectedPeerTrackNode","capturedImagePath","setCapturedImagePath","pairedPeers","trackStateChangeRequest","CHANGE_TRACK","roleChangeRequest","CHANGE_ROLE_ACCEPT","_gridViewRef$current","current","getFlatlistRef","scrollToOffset","animated","handlePeerTileMorePress","useCallback","peerTrackNode","PEER_SETTINGS","handleCaptureScreenShotPress","node","DEFAULT","runAfterInteractions","_gridViewRef$current2","captureViewScreenshot","handleCaptureImageAtMaxSupportedResolutionPress","_node","permission","captureImageAtMaxSupportedResolution","then","imagePath","console","log","uri","catch","error","warn","handleStreamingQualityPress","track","STREAMING_QUALITY_SETTING","animatedStyles","transform","translateY","value","createElement","style","container","length","Fragment","ref","onPeerTileMorePress","welcomeContainer","welcomeHeading","welcomeDescription","backdrop","modalPosiion","viewStyle","minWidth","width","undefined","cancelModal","onCaptureScreenShotPress","onCaptureImageAtMaxSupportedResolutionPress","onStreamingQualityPress","HLS_PLAYER_ASPECT_RATIO","imageSource","instance","animationIn","animationOut","PARTICIPANTS","CHANGE_ROLE","VOLUME","CHANGE_NAME"],"sourceRoot":"../../../src","sources":["components/DisplayView.tsx"],"mappings":"AAAA,OAAOA,KAAK,IAAIC,SAAS,EAAEC,OAAO,EAAEC,MAAM,EAAEC,QAAQ,QAA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AAW,EAAEA,CAAA,KAAMrE,eAAe,CAAClC,UAAU,CAACgE,OAAO;EAAE,CACxD,CACW,CAAC,eACf/E,KAAA,CAAAsG,aAAA,CAACxF,YAAY;IACXmG,YAAY,EAAC,QAAQ;IACrBlE,YAAY,EAAEA,YAAY,KAAKhC,UAAU,CAACmH,WAAY;IACtDjF,eAAe,EAAEA,CAAA,KAAMA,eAAe,CAAClC,UAAU,CAACgE,OAAO;EAAE,gBAE3D/E,KAAA,CAAAsG,aAAA,CAAClF,eAAe;IACdkG,WAAW,EAAEA,CAAA,KAAMrE,eAAe,CAAClC,UAAU,CAACgE,OAAO;EAAE,CACxD,CACW,CACd,CAES,CAAC;AAEpB,CAAC"}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import React, { memo, useMemo } from 'react';
|
|
2
|
+
import { View, StyleSheet } from 'react-native';
|
|
3
|
+
import Animated, { interpolate, useAnimatedProps, useAnimatedStyle } from 'react-native-reanimated';
|
|
4
|
+
import { COLORS } from '../utils/theme';
|
|
5
|
+
import { useIsHLSViewer } from '../hooks-util';
|
|
6
|
+
import { EndIcon } from '../Icons';
|
|
7
|
+
import { HMSManageLeave } from './HMSManageLeave';
|
|
8
|
+
import { HMSManageRaiseHand } from './HMSManageRaiseHand';
|
|
9
|
+
import { HMSManageLocalAudio } from './HMSManageLocalAudio';
|
|
10
|
+
import { HMSManageLocalVideo } from './HMSManageLocalVideo';
|
|
11
|
+
import { HMSChat } from './HMSChat';
|
|
12
|
+
import { HMSRoomOptions } from './HMSRoomOptions';
|
|
13
|
+
import { useCanPublishAudio, useCanPublishVideo } from '../hooks-sdk';
|
|
14
|
+
export const _Footer = _ref => {
|
|
15
|
+
let {
|
|
16
|
+
offset
|
|
17
|
+
} = _ref;
|
|
18
|
+
const isHLSViewer = useIsHLSViewer();
|
|
19
|
+
const canPublishAudio = useCanPublishAudio();
|
|
20
|
+
const canPublishVideo = useCanPublishVideo();
|
|
21
|
+
const footerActionButtons = useMemo(() => {
|
|
22
|
+
const actions = ['chat'];
|
|
23
|
+
if (isHLSViewer) {
|
|
24
|
+
actions.unshift('leave');
|
|
25
|
+
}
|
|
26
|
+
if (canPublishVideo) {
|
|
27
|
+
actions.unshift('video');
|
|
28
|
+
}
|
|
29
|
+
if (canPublishAudio) {
|
|
30
|
+
actions.unshift('audio');
|
|
31
|
+
}
|
|
32
|
+
actions.push(isHLSViewer ? 'hand-raise' : 'options');
|
|
33
|
+
return actions;
|
|
34
|
+
}, [isHLSViewer, canPublishAudio, canPublishVideo]);
|
|
35
|
+
const animatedStyles = useAnimatedStyle(() => {
|
|
36
|
+
return {
|
|
37
|
+
opacity: interpolate(offset.value, [0, 0.7, 1], [0, 0.5, 1]),
|
|
38
|
+
transform: [{
|
|
39
|
+
translateY: interpolate(offset.value, [0, 1], [10, 0])
|
|
40
|
+
}]
|
|
41
|
+
};
|
|
42
|
+
}, []);
|
|
43
|
+
const animatedProps = useAnimatedProps(() => {
|
|
44
|
+
return {
|
|
45
|
+
pointerEvents: offset.value === 0 ? 'none' : 'auto'
|
|
46
|
+
};
|
|
47
|
+
}, []);
|
|
48
|
+
return /*#__PURE__*/React.createElement(Animated.View, {
|
|
49
|
+
style: animatedStyles,
|
|
50
|
+
animatedProps: animatedProps
|
|
51
|
+
}, /*#__PURE__*/React.createElement(View, {
|
|
52
|
+
style: styles.container
|
|
53
|
+
}, footerActionButtons.map((actionType, index) => {
|
|
54
|
+
return /*#__PURE__*/React.createElement(View, {
|
|
55
|
+
key: actionType,
|
|
56
|
+
style: index === 0 ? null : styles.iconWrapper
|
|
57
|
+
}, actionType === 'leave' ? /*#__PURE__*/React.createElement(HMSManageLeave, {
|
|
58
|
+
leaveIconDelegate: /*#__PURE__*/React.createElement(EndIcon, null)
|
|
59
|
+
}) : actionType === 'audio' ? /*#__PURE__*/React.createElement(HMSManageLocalAudio, null) : actionType === 'video' ? /*#__PURE__*/React.createElement(HMSManageLocalVideo, null) : actionType === 'chat' ? /*#__PURE__*/React.createElement(HMSChat, null) : actionType === 'options' ? /*#__PURE__*/React.createElement(HMSRoomOptions, null) : actionType === 'hand-raise' ? /*#__PURE__*/React.createElement(HMSManageRaiseHand, null) : null);
|
|
60
|
+
})));
|
|
61
|
+
};
|
|
62
|
+
const styles = StyleSheet.create({
|
|
63
|
+
container: {
|
|
64
|
+
paddingVertical: 8,
|
|
65
|
+
paddingHorizontal: 16,
|
|
66
|
+
backgroundColor: COLORS.BACKGROUND.DIM,
|
|
67
|
+
flexDirection: 'row',
|
|
68
|
+
alignItems: 'center',
|
|
69
|
+
justifyContent: 'center'
|
|
70
|
+
},
|
|
71
|
+
iconWrapper: {
|
|
72
|
+
marginLeft: 24
|
|
73
|
+
}
|
|
74
|
+
});
|
|
75
|
+
export const Footer = /*#__PURE__*/memo(_Footer);
|
|
76
|
+
//# sourceMappingURL=Footer.js.map
|