@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,112 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { ElementRef } from 'react';
|
|
3
|
+
import { View, Text, StyleSheet } from 'react-native';
|
|
4
|
+
import {
|
|
5
|
+
HMSVideoViewMode,
|
|
6
|
+
HMSTrackSource,
|
|
7
|
+
HMSVideoTrack,
|
|
8
|
+
HMSPeer,
|
|
9
|
+
} from '@100mslive/react-native-hms';
|
|
10
|
+
import { useSelector } from 'react-redux';
|
|
11
|
+
import type { HMSView } from '@100mslive/react-native-hms';
|
|
12
|
+
|
|
13
|
+
import { styles } from './styles';
|
|
14
|
+
|
|
15
|
+
import { isTileOnSpotlight } from '../utils/functions';
|
|
16
|
+
import type { RootState } from '../redux';
|
|
17
|
+
import { AvatarView } from './AvatarView';
|
|
18
|
+
|
|
19
|
+
export interface PeerDisplayViewProps {
|
|
20
|
+
isDegraded?: boolean;
|
|
21
|
+
isLocal?: boolean;
|
|
22
|
+
peer: HMSPeer;
|
|
23
|
+
videoTrack?: HMSVideoTrack;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
const PeerDisplayViewUnmemoized = React.forwardRef<
|
|
27
|
+
ElementRef<typeof HMSView>,
|
|
28
|
+
PeerDisplayViewProps
|
|
29
|
+
>(({ isDegraded, isLocal, peer, videoTrack }, hmsViewRef) => {
|
|
30
|
+
const HmsView = useSelector(
|
|
31
|
+
(state: RootState) => state.user.hmsInstance?.HmsView || null
|
|
32
|
+
);
|
|
33
|
+
const mirrorCamera = useSelector(
|
|
34
|
+
(state: RootState) => state.app.joinConfig.mirrorCamera
|
|
35
|
+
);
|
|
36
|
+
const autoSimulcast = useSelector(
|
|
37
|
+
(state: RootState) => state.app.joinConfig.autoSimulcast
|
|
38
|
+
);
|
|
39
|
+
const spotlightTrackId = useSelector(
|
|
40
|
+
(state: RootState) => state.user.spotlightTrackId
|
|
41
|
+
);
|
|
42
|
+
|
|
43
|
+
if (!HmsView) {
|
|
44
|
+
return null;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
// Check if selected tile is "On Spotlight"
|
|
48
|
+
const { onSpotlight } = isTileOnSpotlight(spotlightTrackId, {
|
|
49
|
+
tileVideoTrack: videoTrack,
|
|
50
|
+
peerRegularAudioTrack: peer.audioTrack,
|
|
51
|
+
peerAuxTracks: peer.auxiliaryTracks,
|
|
52
|
+
});
|
|
53
|
+
|
|
54
|
+
return (
|
|
55
|
+
<View style={peerDisplayViewStyles.container}>
|
|
56
|
+
{videoTrack?.isMute() || videoTrack?.trackId === undefined ? (
|
|
57
|
+
<View style={styles.avatarContainer}>
|
|
58
|
+
<AvatarView userName={peer.name} />
|
|
59
|
+
</View>
|
|
60
|
+
) : (
|
|
61
|
+
<View style={styles.flex}>
|
|
62
|
+
<HmsView
|
|
63
|
+
ref={hmsViewRef}
|
|
64
|
+
// setZOrderMediaOverlay={miniView}
|
|
65
|
+
trackId={videoTrack?.trackId!}
|
|
66
|
+
key={videoTrack?.trackId!}
|
|
67
|
+
autoSimulcast={autoSimulcast}
|
|
68
|
+
mirror={
|
|
69
|
+
isLocal && mirrorCamera !== undefined ? mirrorCamera : false
|
|
70
|
+
}
|
|
71
|
+
scaleType={
|
|
72
|
+
onSpotlight ||
|
|
73
|
+
(videoTrack?.source !== undefined &&
|
|
74
|
+
videoTrack?.source !== HMSTrackSource.REGULAR)
|
|
75
|
+
? HMSVideoViewMode.ASPECT_FIT
|
|
76
|
+
: HMSVideoViewMode.ASPECT_FILL
|
|
77
|
+
}
|
|
78
|
+
style={
|
|
79
|
+
videoTrack?.source !== undefined &&
|
|
80
|
+
videoTrack?.source !== HMSTrackSource.REGULAR
|
|
81
|
+
? styles.hmsViewScreen
|
|
82
|
+
: styles.hmsView
|
|
83
|
+
}
|
|
84
|
+
/>
|
|
85
|
+
{isDegraded && (
|
|
86
|
+
<View style={styles.degradedContainer}>
|
|
87
|
+
<View style={styles.avatarContainer}>
|
|
88
|
+
<Text style={styles.degradedText}>Degraded</Text>
|
|
89
|
+
</View>
|
|
90
|
+
</View>
|
|
91
|
+
)}
|
|
92
|
+
</View>
|
|
93
|
+
)}
|
|
94
|
+
</View>
|
|
95
|
+
);
|
|
96
|
+
});
|
|
97
|
+
|
|
98
|
+
PeerDisplayViewUnmemoized.displayName = 'PeerDisplayViewUnmemoized';
|
|
99
|
+
|
|
100
|
+
const PeerDisplayView = React.memo(PeerDisplayViewUnmemoized);
|
|
101
|
+
|
|
102
|
+
PeerDisplayView.displayName = 'PeerDisplayView';
|
|
103
|
+
|
|
104
|
+
const peerDisplayViewStyles = StyleSheet.create({
|
|
105
|
+
container: {
|
|
106
|
+
height: '100%',
|
|
107
|
+
width: '100%',
|
|
108
|
+
overflow: 'hidden',
|
|
109
|
+
},
|
|
110
|
+
});
|
|
111
|
+
|
|
112
|
+
export default PeerDisplayView;
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import React, { memo } from 'react';
|
|
2
|
+
import { View, StyleSheet, ScrollView } from 'react-native';
|
|
3
|
+
import { useSelector } from 'react-redux';
|
|
4
|
+
import { HMSTrackSource } from '@100mslive/react-native-hms';
|
|
5
|
+
|
|
6
|
+
import { COLORS } from '../utils/theme';
|
|
7
|
+
import type { RootState } from '../redux';
|
|
8
|
+
import PeerRTCStatsView from './PeerRTCStatsView';
|
|
9
|
+
|
|
10
|
+
interface PeerRTCStatsContainerProps {
|
|
11
|
+
peerId: string;
|
|
12
|
+
trackId?: string;
|
|
13
|
+
trackSource?: string | number;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
const PeerRTCStatsContainerUnmemo: React.FC<PeerRTCStatsContainerProps> = ({
|
|
17
|
+
peerId,
|
|
18
|
+
trackId,
|
|
19
|
+
trackSource,
|
|
20
|
+
}) => {
|
|
21
|
+
const audioTrackStats = useSelector((state: RootState) => {
|
|
22
|
+
const audioStatsId =
|
|
23
|
+
!trackSource || trackSource === HMSTrackSource.REGULAR
|
|
24
|
+
? peerId
|
|
25
|
+
: peerId + trackSource;
|
|
26
|
+
return audioStatsId ? state.app.rtcStats[audioStatsId] : null;
|
|
27
|
+
});
|
|
28
|
+
const videoTrackStats = useSelector((state: RootState) => {
|
|
29
|
+
const videoStats = trackId ? state.app.rtcStats[trackId] : null;
|
|
30
|
+
|
|
31
|
+
if (Array.isArray(videoStats) && videoStats.length === 1) {
|
|
32
|
+
return videoStats[0];
|
|
33
|
+
}
|
|
34
|
+
return videoStats;
|
|
35
|
+
});
|
|
36
|
+
|
|
37
|
+
if (!Array.isArray(videoTrackStats)) {
|
|
38
|
+
return (
|
|
39
|
+
<View style={styles.statsContainer}>
|
|
40
|
+
<PeerRTCStatsView
|
|
41
|
+
audioTrackStats={audioTrackStats}
|
|
42
|
+
videoTrackStats={videoTrackStats}
|
|
43
|
+
/>
|
|
44
|
+
</View>
|
|
45
|
+
);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
return (
|
|
49
|
+
<ScrollView style={styles.statsContainer}>
|
|
50
|
+
{videoTrackStats.map((videoTrackStat) => (
|
|
51
|
+
<View style={styles.statsViewWrapper} key={videoTrackStat.layer}>
|
|
52
|
+
<PeerRTCStatsView
|
|
53
|
+
audioTrackStats={audioTrackStats}
|
|
54
|
+
videoTrackStats={videoTrackStat}
|
|
55
|
+
/>
|
|
56
|
+
</View>
|
|
57
|
+
))}
|
|
58
|
+
</ScrollView>
|
|
59
|
+
);
|
|
60
|
+
};
|
|
61
|
+
|
|
62
|
+
const styles = StyleSheet.create({
|
|
63
|
+
statsContainer: {
|
|
64
|
+
position: 'absolute',
|
|
65
|
+
top: 8,
|
|
66
|
+
left: 8,
|
|
67
|
+
padding: 4,
|
|
68
|
+
backgroundColor: COLORS.OVERLAY,
|
|
69
|
+
borderRadius: 8,
|
|
70
|
+
minWidth: 124,
|
|
71
|
+
maxHeight: 170,
|
|
72
|
+
},
|
|
73
|
+
statsViewWrapper: {
|
|
74
|
+
marginBottom: 12,
|
|
75
|
+
},
|
|
76
|
+
});
|
|
77
|
+
|
|
78
|
+
const PeerRTCStatsContainer = memo(PeerRTCStatsContainerUnmemo);
|
|
79
|
+
|
|
80
|
+
PeerRTCStatsContainer.displayName = 'PeerRTCStatsContainer';
|
|
81
|
+
|
|
82
|
+
export default PeerRTCStatsContainer;
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { View, Text, StyleSheet } from 'react-native';
|
|
3
|
+
import {
|
|
4
|
+
HMSLocalAudioStats,
|
|
5
|
+
HMSRemoteAudioStats,
|
|
6
|
+
HMSRemoteVideoStats,
|
|
7
|
+
HMSLocalVideoStats,
|
|
8
|
+
HMSQualityLimitationReasons,
|
|
9
|
+
} from '@100mslive/react-native-hms';
|
|
10
|
+
|
|
11
|
+
import { COLORS } from '../utils/theme';
|
|
12
|
+
|
|
13
|
+
type TrackStats =
|
|
14
|
+
| HMSLocalAudioStats
|
|
15
|
+
| HMSRemoteAudioStats
|
|
16
|
+
| HMSRemoteVideoStats
|
|
17
|
+
| HMSLocalVideoStats[]
|
|
18
|
+
| null
|
|
19
|
+
| undefined;
|
|
20
|
+
|
|
21
|
+
interface PeerRTCStatsViewProps {
|
|
22
|
+
audioTrackStats: TrackStats;
|
|
23
|
+
videoTrackStats: TrackStats;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
const PeerRTCStatsView: React.FC<PeerRTCStatsViewProps> = ({
|
|
27
|
+
audioTrackStats,
|
|
28
|
+
videoTrackStats,
|
|
29
|
+
}) => {
|
|
30
|
+
const qualityLimitationReasons =
|
|
31
|
+
videoTrackStats && 'qualityLimitationReasons' in videoTrackStats
|
|
32
|
+
? (videoTrackStats.qualityLimitationReasons as HMSQualityLimitationReasons)
|
|
33
|
+
: null;
|
|
34
|
+
|
|
35
|
+
return (
|
|
36
|
+
<View>
|
|
37
|
+
{videoTrackStats && 'layer' in videoTrackStats ? (
|
|
38
|
+
<Text style={styles.statsTitle}>{videoTrackStats.layer}</Text>
|
|
39
|
+
) : null}
|
|
40
|
+
|
|
41
|
+
<Text style={styles.statsText}>
|
|
42
|
+
Width{' '}
|
|
43
|
+
{(videoTrackStats && 'resolution' in videoTrackStats
|
|
44
|
+
? videoTrackStats.resolution?.width
|
|
45
|
+
: 0) ?? 0}
|
|
46
|
+
</Text>
|
|
47
|
+
<Text style={styles.statsText}>
|
|
48
|
+
Height{' '}
|
|
49
|
+
{(videoTrackStats && 'resolution' in videoTrackStats
|
|
50
|
+
? videoTrackStats.resolution?.height
|
|
51
|
+
: 0) ?? 0}
|
|
52
|
+
</Text>
|
|
53
|
+
<Text style={styles.statsText}>
|
|
54
|
+
FPS{' '}
|
|
55
|
+
{(videoTrackStats &&
|
|
56
|
+
'frameRate' in videoTrackStats &&
|
|
57
|
+
videoTrackStats.frameRate
|
|
58
|
+
? parseInt(videoTrackStats.frameRate.toString() ?? '0')
|
|
59
|
+
: 0) ?? 0}
|
|
60
|
+
</Text>
|
|
61
|
+
<Text style={styles.statsText}>
|
|
62
|
+
Bitrate(V){' '}
|
|
63
|
+
{(videoTrackStats && 'bitrate' in videoTrackStats
|
|
64
|
+
? videoTrackStats?.bitrate?.toFixed?.(2)
|
|
65
|
+
: 0) ?? 0}
|
|
66
|
+
</Text>
|
|
67
|
+
<Text style={styles.statsText}>
|
|
68
|
+
Bitrate(A){' '}
|
|
69
|
+
{(audioTrackStats && 'bitrate' in audioTrackStats
|
|
70
|
+
? audioTrackStats?.bitrate?.toFixed?.(2)
|
|
71
|
+
: 0) ?? 0}
|
|
72
|
+
</Text>
|
|
73
|
+
<Text style={styles.statsText}>
|
|
74
|
+
Jitter(V){' '}
|
|
75
|
+
{(videoTrackStats && 'jitter' in videoTrackStats
|
|
76
|
+
? videoTrackStats?.jitter?.toFixed?.(2)
|
|
77
|
+
: 0) ?? 0}
|
|
78
|
+
</Text>
|
|
79
|
+
<Text style={styles.statsText}>
|
|
80
|
+
Jitter(A){' '}
|
|
81
|
+
{(audioTrackStats && 'jitter' in audioTrackStats
|
|
82
|
+
? audioTrackStats?.jitter?.toFixed?.(2)
|
|
83
|
+
: 0) ?? 0}
|
|
84
|
+
</Text>
|
|
85
|
+
|
|
86
|
+
{qualityLimitationReasons ? (
|
|
87
|
+
<Text style={styles.statsText}>
|
|
88
|
+
Reason {qualityLimitationReasons.reason}
|
|
89
|
+
</Text>
|
|
90
|
+
) : null}
|
|
91
|
+
</View>
|
|
92
|
+
);
|
|
93
|
+
};
|
|
94
|
+
|
|
95
|
+
const styles = StyleSheet.create({
|
|
96
|
+
statsTitle: {
|
|
97
|
+
fontWeight: 'bold',
|
|
98
|
+
fontSize: 15,
|
|
99
|
+
lineHeight: 15 * 1.3,
|
|
100
|
+
color: COLORS.TEXT.HIGH_EMPHASIS,
|
|
101
|
+
marginBottom: 4,
|
|
102
|
+
},
|
|
103
|
+
statsText: {
|
|
104
|
+
fontSize: 14,
|
|
105
|
+
lineHeight: 14 * 1.3,
|
|
106
|
+
color: COLORS.TEXT.HIGH_EMPHASIS,
|
|
107
|
+
},
|
|
108
|
+
});
|
|
109
|
+
|
|
110
|
+
export default PeerRTCStatsView;
|
|
@@ -0,0 +1,355 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { View, TouchableOpacity, Text, StyleSheet } from 'react-native';
|
|
3
|
+
import { batch, useDispatch, useSelector } from 'react-redux';
|
|
4
|
+
import { HMSTrack, HMSTrackSource } from '@100mslive/react-native-hms';
|
|
5
|
+
import Ionicons from 'react-native-vector-icons/Ionicons';
|
|
6
|
+
import MaterialCommunityIcons from 'react-native-vector-icons/MaterialCommunityIcons';
|
|
7
|
+
|
|
8
|
+
import type { RootState } from '../redux';
|
|
9
|
+
import { COLORS } from '../utils/theme';
|
|
10
|
+
import { ModalTypes } from '../utils/types';
|
|
11
|
+
import type { PeerTrackNode } from '../utils/types';
|
|
12
|
+
import { isTileOnSpotlight } from '../utils/functions';
|
|
13
|
+
import { setPeerToUpdate } from '../redux/actions';
|
|
14
|
+
import { useModalType } from '../hooks-util';
|
|
15
|
+
|
|
16
|
+
interface PeerSettingsModalContentProps {
|
|
17
|
+
peerTrackNode: PeerTrackNode;
|
|
18
|
+
cancelModal(): void;
|
|
19
|
+
onCaptureScreenShotPress(node: PeerTrackNode): void;
|
|
20
|
+
onCaptureImageAtMaxSupportedResolutionPress(node: PeerTrackNode): void;
|
|
21
|
+
onStreamingQualityPress(track: HMSTrack): void;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export const PeerSettingsModalContent: React.FC<
|
|
25
|
+
PeerSettingsModalContentProps
|
|
26
|
+
> = ({
|
|
27
|
+
peerTrackNode,
|
|
28
|
+
cancelModal,
|
|
29
|
+
onCaptureScreenShotPress,
|
|
30
|
+
onCaptureImageAtMaxSupportedResolutionPress,
|
|
31
|
+
onStreamingQualityPress,
|
|
32
|
+
}) => {
|
|
33
|
+
const dispatch = useDispatch();
|
|
34
|
+
const hmsInstance = useSelector((state: RootState) => state.user.hmsInstance);
|
|
35
|
+
const localPeer = useSelector(
|
|
36
|
+
(state: RootState) => state.hmsStates.localPeer
|
|
37
|
+
);
|
|
38
|
+
const hmsSessionStore = useSelector(
|
|
39
|
+
(state: RootState) => state.user.hmsSessionStore
|
|
40
|
+
);
|
|
41
|
+
const spotlightTrackId = useSelector(
|
|
42
|
+
(state: RootState) => state.user.spotlightTrackId
|
|
43
|
+
);
|
|
44
|
+
const { handleModalVisibleType: setModalVisible } = useModalType();
|
|
45
|
+
|
|
46
|
+
const removePeer = () => {
|
|
47
|
+
hmsInstance
|
|
48
|
+
?.removePeer(peerTrackNode.peer, 'removed from room')
|
|
49
|
+
.then((d) => console.log('Remove Peer Success: ', d))
|
|
50
|
+
.catch((e) => console.log('Remove Peer Error: ', e));
|
|
51
|
+
|
|
52
|
+
cancelModal();
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
const toggleMuteAudio = () => {
|
|
56
|
+
cancelModal();
|
|
57
|
+
|
|
58
|
+
if (peerTrackNode.peer.isLocal) {
|
|
59
|
+
return;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
hmsInstance?.changeTrackState(
|
|
63
|
+
peerTrackNode.peer.audioTrack!!,
|
|
64
|
+
!peerTrackNode.peer.audioTrack!!.isMute()
|
|
65
|
+
);
|
|
66
|
+
};
|
|
67
|
+
|
|
68
|
+
const toggleMuteVideo = () => {
|
|
69
|
+
cancelModal();
|
|
70
|
+
|
|
71
|
+
if (peerTrackNode.peer.isLocal) {
|
|
72
|
+
return;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
hmsInstance?.changeTrackState(
|
|
76
|
+
peerTrackNode.peer.videoTrack!!,
|
|
77
|
+
!peerTrackNode.peer.videoTrack!!.isMute()
|
|
78
|
+
);
|
|
79
|
+
};
|
|
80
|
+
|
|
81
|
+
const changeName = () => {
|
|
82
|
+
batch(() => {
|
|
83
|
+
dispatch(setPeerToUpdate(peerTrackNode.peer));
|
|
84
|
+
setModalVisible(ModalTypes.CHANGE_NAME, true);
|
|
85
|
+
});
|
|
86
|
+
};
|
|
87
|
+
|
|
88
|
+
const changeRole = () => {
|
|
89
|
+
batch(() => {
|
|
90
|
+
dispatch(setPeerToUpdate(peerTrackNode.peer));
|
|
91
|
+
setModalVisible(ModalTypes.CHANGE_ROLE, true);
|
|
92
|
+
});
|
|
93
|
+
};
|
|
94
|
+
|
|
95
|
+
const changeVolumeLevelOfPeer = () => {
|
|
96
|
+
batch(() => {
|
|
97
|
+
dispatch(setPeerToUpdate(peerTrackNode.peer));
|
|
98
|
+
setModalVisible(ModalTypes.VOLUME, true);
|
|
99
|
+
});
|
|
100
|
+
};
|
|
101
|
+
|
|
102
|
+
// Check if selected tile is "On Spotlight"
|
|
103
|
+
const { onSpotlight, tileVideoTrackId, tileAudioTrackId } = isTileOnSpotlight(
|
|
104
|
+
spotlightTrackId,
|
|
105
|
+
{
|
|
106
|
+
tileVideoTrack: peerTrackNode.track,
|
|
107
|
+
peerRegularAudioTrack: peerTrackNode.peer.audioTrack,
|
|
108
|
+
peerAuxTracks: peerTrackNode.peer.auxiliaryTracks,
|
|
109
|
+
}
|
|
110
|
+
);
|
|
111
|
+
|
|
112
|
+
const handleSpotlightPress = async () => {
|
|
113
|
+
try {
|
|
114
|
+
// Close Modal
|
|
115
|
+
cancelModal();
|
|
116
|
+
|
|
117
|
+
if (!hmsSessionStore) {
|
|
118
|
+
return null;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
if (tileAudioTrackId || tileVideoTrackId) {
|
|
122
|
+
// Toggle `spotlight` key value on Session Store
|
|
123
|
+
await hmsSessionStore.set(
|
|
124
|
+
onSpotlight ? null : tileAudioTrackId || tileVideoTrackId,
|
|
125
|
+
'spotlight'
|
|
126
|
+
);
|
|
127
|
+
}
|
|
128
|
+
} catch (error) {
|
|
129
|
+
console.log('Add to spotlight error -> ', error);
|
|
130
|
+
}
|
|
131
|
+
};
|
|
132
|
+
|
|
133
|
+
const { peer } = peerTrackNode;
|
|
134
|
+
|
|
135
|
+
const localPeerPermissions = localPeer?.role?.permissions;
|
|
136
|
+
|
|
137
|
+
const isPeerAudioMute = peer.isLocal ? null : peer.audioTrack?.isMute();
|
|
138
|
+
const isPeerVideoMute = peer.isLocal ? null : peer.videoTrack?.isMute();
|
|
139
|
+
|
|
140
|
+
return (
|
|
141
|
+
<View style={styles.container}>
|
|
142
|
+
<Text style={styles.roleChangeModalHeading}>
|
|
143
|
+
{peer.name}
|
|
144
|
+
{peer.isLocal ? ' (You)' : ''}
|
|
145
|
+
</Text>
|
|
146
|
+
<Text style={styles.participantRole}>{peer.role?.name}</Text>
|
|
147
|
+
|
|
148
|
+
<View style={styles.contentContainer}>
|
|
149
|
+
<SettingItem
|
|
150
|
+
text={onSpotlight ? 'Remove from Spotlight' : 'Add to Spotlight'}
|
|
151
|
+
IconType={Ionicons}
|
|
152
|
+
iconName={onSpotlight ? 'ios-star' : 'ios-star-outline'}
|
|
153
|
+
onPress={handleSpotlightPress}
|
|
154
|
+
disabled={!peerTrackNode.track?.trackId}
|
|
155
|
+
/>
|
|
156
|
+
|
|
157
|
+
{!peer.isLocal &&
|
|
158
|
+
(localPeerPermissions?.mute || localPeerPermissions?.unmute) ? (
|
|
159
|
+
<>
|
|
160
|
+
{/* If Peer's Audio is Muted and Local Peer has unmute Permissions */}
|
|
161
|
+
{isPeerAudioMute && localPeerPermissions?.unmute ? (
|
|
162
|
+
<SettingItem
|
|
163
|
+
text={'Request Audio Unmute'}
|
|
164
|
+
IconType={Ionicons}
|
|
165
|
+
iconName={'mic-off-outline'}
|
|
166
|
+
onPress={toggleMuteAudio}
|
|
167
|
+
/>
|
|
168
|
+
) : null}
|
|
169
|
+
|
|
170
|
+
{/* If Peer's Audio is Unmuted and Local Peer has mute Permissions */}
|
|
171
|
+
{!isPeerAudioMute && localPeerPermissions?.mute ? (
|
|
172
|
+
<SettingItem
|
|
173
|
+
text={'Mute Audio'}
|
|
174
|
+
IconType={Ionicons}
|
|
175
|
+
iconName={'mic-outline'}
|
|
176
|
+
onPress={toggleMuteAudio}
|
|
177
|
+
/>
|
|
178
|
+
) : null}
|
|
179
|
+
</>
|
|
180
|
+
) : null}
|
|
181
|
+
|
|
182
|
+
{!peer.isLocal &&
|
|
183
|
+
(localPeerPermissions?.mute || localPeerPermissions?.unmute) ? (
|
|
184
|
+
<>
|
|
185
|
+
{/* If Peer's Video is Muted and Local Peer has unmute Permissions */}
|
|
186
|
+
{isPeerVideoMute && localPeerPermissions?.unmute ? (
|
|
187
|
+
<SettingItem
|
|
188
|
+
text={'Request Video Unmute'}
|
|
189
|
+
IconType={MaterialCommunityIcons}
|
|
190
|
+
iconName={'video-off-outline'}
|
|
191
|
+
onPress={toggleMuteVideo}
|
|
192
|
+
/>
|
|
193
|
+
) : null}
|
|
194
|
+
|
|
195
|
+
{/* If Peer's Video is Unmuted and Local Peer has mute Permissions */}
|
|
196
|
+
{!isPeerVideoMute && localPeerPermissions?.mute ? (
|
|
197
|
+
<SettingItem
|
|
198
|
+
text={'Mute Video'}
|
|
199
|
+
IconType={MaterialCommunityIcons}
|
|
200
|
+
iconName={'video-outline'}
|
|
201
|
+
onPress={toggleMuteVideo}
|
|
202
|
+
/>
|
|
203
|
+
) : null}
|
|
204
|
+
</>
|
|
205
|
+
) : null}
|
|
206
|
+
|
|
207
|
+
{!peer.isLocal && localPeerPermissions?.removeOthers ? (
|
|
208
|
+
<SettingItem
|
|
209
|
+
text="Remove Peer"
|
|
210
|
+
IconType={Ionicons}
|
|
211
|
+
iconName={'person-remove-outline'}
|
|
212
|
+
onPress={removePeer}
|
|
213
|
+
/>
|
|
214
|
+
) : null}
|
|
215
|
+
|
|
216
|
+
{peer.isLocal ? (
|
|
217
|
+
<SettingItem
|
|
218
|
+
text="Change Name"
|
|
219
|
+
IconType={MaterialCommunityIcons}
|
|
220
|
+
iconName={'account-edit-outline'}
|
|
221
|
+
onPress={() => changeName()}
|
|
222
|
+
/>
|
|
223
|
+
) : null}
|
|
224
|
+
|
|
225
|
+
{localPeerPermissions?.changeRole ? (
|
|
226
|
+
<SettingItem
|
|
227
|
+
text="Change Role"
|
|
228
|
+
IconType={Ionicons}
|
|
229
|
+
iconName={'people-outline'}
|
|
230
|
+
onPress={() => changeRole()}
|
|
231
|
+
/>
|
|
232
|
+
) : null}
|
|
233
|
+
|
|
234
|
+
{!peer.isLocal ? (
|
|
235
|
+
<SettingItem
|
|
236
|
+
text="Set Volume"
|
|
237
|
+
IconType={Ionicons}
|
|
238
|
+
iconName={'volume-high-outline'}
|
|
239
|
+
onPress={() => changeVolumeLevelOfPeer()}
|
|
240
|
+
/>
|
|
241
|
+
) : null}
|
|
242
|
+
|
|
243
|
+
{/* Don't show Capture Screenshot option, if track is screenshare of local peer */}
|
|
244
|
+
{peerTrackNode.peer.isLocal &&
|
|
245
|
+
peerTrackNode.track &&
|
|
246
|
+
peerTrackNode.track.source === HMSTrackSource.SCREEN ? null : (
|
|
247
|
+
<SettingItem
|
|
248
|
+
text="Capture Screenshot"
|
|
249
|
+
IconType={MaterialCommunityIcons}
|
|
250
|
+
iconName={'cellphone-screenshot'}
|
|
251
|
+
onPress={() => onCaptureScreenShotPress(peerTrackNode)}
|
|
252
|
+
disabled={!peerTrackNode.track || peerTrackNode.track.isMute()} // Capture Screenshot option should be disable, if track is muted or not available
|
|
253
|
+
/>
|
|
254
|
+
)}
|
|
255
|
+
|
|
256
|
+
{/* Local Image Capture is only available for local peer */}
|
|
257
|
+
{peerTrackNode.peer.isLocal ? (
|
|
258
|
+
<SettingItem
|
|
259
|
+
text="Local Image Capture"
|
|
260
|
+
IconType={MaterialCommunityIcons}
|
|
261
|
+
iconName={'cellphone-screenshot'}
|
|
262
|
+
onPress={() =>
|
|
263
|
+
onCaptureImageAtMaxSupportedResolutionPress(peerTrackNode)
|
|
264
|
+
}
|
|
265
|
+
disabled={!peerTrackNode.track || peerTrackNode.track.isMute()} // Local Image Capture option should be disable, if track is muted or not available
|
|
266
|
+
/>
|
|
267
|
+
) : null}
|
|
268
|
+
|
|
269
|
+
{/* Don't show Streaming Quality option for local peer */}
|
|
270
|
+
{!peer.isLocal ? (
|
|
271
|
+
<SettingItem
|
|
272
|
+
text="Streaming Quality"
|
|
273
|
+
IconType={Ionicons}
|
|
274
|
+
iconName={'layers-outline'}
|
|
275
|
+
onPress={() =>
|
|
276
|
+
peerTrackNode.track
|
|
277
|
+
? onStreamingQualityPress(peerTrackNode.track)
|
|
278
|
+
: null
|
|
279
|
+
}
|
|
280
|
+
disabled={!peerTrackNode.track || peerTrackNode.track.isMute()} // Streaming Quality option should be disable, if track is muted or not available
|
|
281
|
+
/>
|
|
282
|
+
) : null}
|
|
283
|
+
</View>
|
|
284
|
+
</View>
|
|
285
|
+
);
|
|
286
|
+
};
|
|
287
|
+
|
|
288
|
+
interface SettingItemProps {
|
|
289
|
+
onPress(): void;
|
|
290
|
+
text: string;
|
|
291
|
+
iconName: string;
|
|
292
|
+
IconType: any;
|
|
293
|
+
disabled?: boolean;
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
const SettingItem: React.FC<SettingItemProps> = ({
|
|
297
|
+
onPress,
|
|
298
|
+
text,
|
|
299
|
+
iconName,
|
|
300
|
+
IconType,
|
|
301
|
+
disabled = false,
|
|
302
|
+
}) => {
|
|
303
|
+
return (
|
|
304
|
+
<TouchableOpacity
|
|
305
|
+
disabled={disabled}
|
|
306
|
+
style={[styles.button, disabled ? { opacity: 0.6 } : null]}
|
|
307
|
+
onPress={onPress}
|
|
308
|
+
>
|
|
309
|
+
<IconType name={iconName} size={24} style={styles.icon} />
|
|
310
|
+
|
|
311
|
+
<Text style={styles.text}>{text}</Text>
|
|
312
|
+
</TouchableOpacity>
|
|
313
|
+
);
|
|
314
|
+
};
|
|
315
|
+
|
|
316
|
+
const styles = StyleSheet.create({
|
|
317
|
+
container: {
|
|
318
|
+
padding: 24,
|
|
319
|
+
},
|
|
320
|
+
contentContainer: {
|
|
321
|
+
marginTop: 16,
|
|
322
|
+
},
|
|
323
|
+
roleChangeModalHeading: {
|
|
324
|
+
color: COLORS.TEXT.HIGH_EMPHASIS,
|
|
325
|
+
fontSize: 20,
|
|
326
|
+
lineHeight: 24,
|
|
327
|
+
letterSpacing: 0.15,
|
|
328
|
+
fontFamily: 'Inter-Medium',
|
|
329
|
+
textTransform: 'capitalize',
|
|
330
|
+
},
|
|
331
|
+
participantRole: {
|
|
332
|
+
color: COLORS.TEXT.MEDIUM_EMPHASIS,
|
|
333
|
+
fontSize: 12,
|
|
334
|
+
lineHeight: 16,
|
|
335
|
+
letterSpacing: 0.4,
|
|
336
|
+
marginTop: 4,
|
|
337
|
+
fontFamily: 'Inter-Regular',
|
|
338
|
+
textTransform: 'capitalize',
|
|
339
|
+
},
|
|
340
|
+
button: {
|
|
341
|
+
flexDirection: 'row',
|
|
342
|
+
alignItems: 'center',
|
|
343
|
+
marginVertical: 12,
|
|
344
|
+
},
|
|
345
|
+
text: {
|
|
346
|
+
fontFamily: 'Inter-Medium',
|
|
347
|
+
fontSize: 14,
|
|
348
|
+
lineHeight: 24,
|
|
349
|
+
color: COLORS.TEXT.HIGH_EMPHASIS,
|
|
350
|
+
},
|
|
351
|
+
icon: {
|
|
352
|
+
color: COLORS.WHITE,
|
|
353
|
+
marginRight: 12,
|
|
354
|
+
},
|
|
355
|
+
});
|