@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
package/src/index.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './HMSPrebuilt';
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
import {
|
|
2
|
+
HMSPeer,
|
|
3
|
+
HMSTrack,
|
|
4
|
+
HMSTrackSource,
|
|
5
|
+
HMSTrackType,
|
|
6
|
+
} from '@100mslive/react-native-hms';
|
|
7
|
+
|
|
8
|
+
import type { PeerTrackNode } from './utils/types';
|
|
9
|
+
|
|
10
|
+
export const degradeOrRestorePeerTrackNodes = (
|
|
11
|
+
peerTrackNodes: PeerTrackNode[],
|
|
12
|
+
peer: HMSPeer,
|
|
13
|
+
track: HMSTrack,
|
|
14
|
+
isDegraded: boolean
|
|
15
|
+
): PeerTrackNode[] => {
|
|
16
|
+
const uniqueId =
|
|
17
|
+
peer.peerID +
|
|
18
|
+
(track.type === HMSTrackType.VIDEO
|
|
19
|
+
? track?.source || HMSTrackSource.REGULAR
|
|
20
|
+
: HMSTrackSource.REGULAR);
|
|
21
|
+
|
|
22
|
+
return peerTrackNodes.map((peerTrackNode) => {
|
|
23
|
+
if (peerTrackNode.id !== uniqueId) {
|
|
24
|
+
return peerTrackNode;
|
|
25
|
+
}
|
|
26
|
+
return {
|
|
27
|
+
...peerTrackNode,
|
|
28
|
+
isDegraded,
|
|
29
|
+
};
|
|
30
|
+
});
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
export const removePeerTrackNodes = (
|
|
34
|
+
peerTrackNodes: PeerTrackNode[],
|
|
35
|
+
peerToRemove: HMSPeer
|
|
36
|
+
): PeerTrackNode[] => {
|
|
37
|
+
return peerTrackNodes.filter(
|
|
38
|
+
(peerTrackNode) => peerTrackNode.peer.peerID !== peerToRemove.peerID
|
|
39
|
+
);
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
export const removePeerTrackNodesWithTrack = (
|
|
43
|
+
peerTrackNodes: PeerTrackNode[],
|
|
44
|
+
peer: HMSPeer,
|
|
45
|
+
track: HMSTrack
|
|
46
|
+
): PeerTrackNode[] => {
|
|
47
|
+
const uniqueId =
|
|
48
|
+
peer.peerID +
|
|
49
|
+
(track.source === undefined ? HMSTrackSource.REGULAR : track.source);
|
|
50
|
+
return peerTrackNodes.filter(
|
|
51
|
+
(peerTrackNode) => peerTrackNode.id !== uniqueId
|
|
52
|
+
);
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
export const replacePeerTrackNodes = (
|
|
56
|
+
peerTrackNodes: PeerTrackNode[],
|
|
57
|
+
peerToReplace: HMSPeer
|
|
58
|
+
): PeerTrackNode[] => {
|
|
59
|
+
return peerTrackNodes.map((peerTrackNode) => {
|
|
60
|
+
if (peerTrackNode.peer.peerID !== peerToReplace.peerID) {
|
|
61
|
+
return peerTrackNode;
|
|
62
|
+
}
|
|
63
|
+
return {
|
|
64
|
+
...peerTrackNode,
|
|
65
|
+
peer: peerToReplace,
|
|
66
|
+
};
|
|
67
|
+
});
|
|
68
|
+
};
|
|
69
|
+
|
|
70
|
+
export const replacePeerTrackNodesWithTrack = (
|
|
71
|
+
peerTrackNodes: PeerTrackNode[],
|
|
72
|
+
peer: HMSPeer,
|
|
73
|
+
track: HMSTrack
|
|
74
|
+
): PeerTrackNode[] => {
|
|
75
|
+
const uniqueId = peer.peerID + (track.source ?? HMSTrackSource.REGULAR);
|
|
76
|
+
return peerTrackNodes.map((peerTrackNode) => {
|
|
77
|
+
if (peerTrackNode.id !== uniqueId) {
|
|
78
|
+
return peerTrackNode;
|
|
79
|
+
}
|
|
80
|
+
return {
|
|
81
|
+
...peerTrackNode,
|
|
82
|
+
peer,
|
|
83
|
+
track,
|
|
84
|
+
};
|
|
85
|
+
});
|
|
86
|
+
};
|
|
87
|
+
|
|
88
|
+
export const peerTrackNodeExistForPeer = (
|
|
89
|
+
peerTrackNodes: PeerTrackNode[],
|
|
90
|
+
peer: HMSPeer
|
|
91
|
+
): boolean => {
|
|
92
|
+
return (
|
|
93
|
+
peerTrackNodes.findIndex(
|
|
94
|
+
(peerTrackNode) => peerTrackNode.peer.peerID === peer.peerID
|
|
95
|
+
) >= 0
|
|
96
|
+
);
|
|
97
|
+
};
|
|
98
|
+
|
|
99
|
+
export const peerTrackNodeExistForPeerAndTrack = (
|
|
100
|
+
peerTrackNodes: PeerTrackNode[],
|
|
101
|
+
peer: HMSPeer,
|
|
102
|
+
track: HMSTrack
|
|
103
|
+
): boolean => {
|
|
104
|
+
const uniqueId =
|
|
105
|
+
peer.peerID +
|
|
106
|
+
(track.type === HMSTrackType.VIDEO
|
|
107
|
+
? track?.source || HMSTrackSource.REGULAR
|
|
108
|
+
: HMSTrackSource.REGULAR);
|
|
109
|
+
return (
|
|
110
|
+
peerTrackNodes.findIndex(
|
|
111
|
+
(peerTrackNode) => peerTrackNode.id === uniqueId
|
|
112
|
+
) >= 0
|
|
113
|
+
);
|
|
114
|
+
};
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
const createRequests = (base: String) => {
|
|
2
|
+
const statusObject = {
|
|
3
|
+
REQUEST: `${base}_REQUEST`,
|
|
4
|
+
SUCCESS: `${base}_SUCCESS`,
|
|
5
|
+
FAILED: `${base}_FAILED`,
|
|
6
|
+
};
|
|
7
|
+
return statusObject;
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
const ADD_MESSAGE = createRequests('ADD_MESSAGE');
|
|
11
|
+
|
|
12
|
+
const ADD_PINNED_MESSAGE = createRequests('ADD_PINNED_MESSAGE');
|
|
13
|
+
|
|
14
|
+
const CLEAR_MESSAGE_DATA = createRequests('CLEAR_MESSAGE_DATA');
|
|
15
|
+
|
|
16
|
+
const SET_PEER_STATE = 'SET_PEER_STATE';
|
|
17
|
+
|
|
18
|
+
const CLEAR_PEER_DATA = createRequests('CLEAR_PEER_DATA');
|
|
19
|
+
|
|
20
|
+
const SAVE_USER_DATA = createRequests('SAVE_USER_DATA');
|
|
21
|
+
|
|
22
|
+
const SET_HMS_INSTANCE = 'SET_HMS_INSTANCE';
|
|
23
|
+
|
|
24
|
+
const CLEAR_HMS_INSTANCE = 'CLEAR_HMS_INSTANCE';
|
|
25
|
+
|
|
26
|
+
const CHANGE_PIP_MODE_STATUS = 'CHANGE_PIP_MODE_STATUS';
|
|
27
|
+
|
|
28
|
+
const RESET_JOIN_CONFIG = 'RESET_JOIN_CONFIG';
|
|
29
|
+
|
|
30
|
+
const CHANGE_MIRROR_CAMERA = 'CHANGE_MIRROR_CAMERA';
|
|
31
|
+
|
|
32
|
+
const CHANGE_SHOW_STATS = 'CHANGE_SHOW_STATS'; // RTC Stats
|
|
33
|
+
|
|
34
|
+
const CHANGE_SHOW_HLS_STATS = 'CHANGE_SHOW_HLS_STATS'; // HLS Stats
|
|
35
|
+
|
|
36
|
+
const CHANGE_ENABLE_HLS_PLAYER_CONTROLS = 'CHANGE_ENABLE_HLS_PLAYER_CONTROLS'; // HLS Stats
|
|
37
|
+
|
|
38
|
+
const CHANGE_SHOW_CUSTOM_HLS_PLAYER_CONTROLS =
|
|
39
|
+
'CHANGE_SHOW_CUSTOM_HLS_PLAYER_CONTROLS';
|
|
40
|
+
|
|
41
|
+
const CHANGE_AUTO_SIMULCAST = 'CHANGE_AUTO_SIMULCAST';
|
|
42
|
+
|
|
43
|
+
const SET_RTC_STATS = 'SET_RTC_STATS';
|
|
44
|
+
|
|
45
|
+
const CHANGE_HLS_ASPECT_RATIO = 'CHANGE_HLS_ASPECT_RATIO';
|
|
46
|
+
|
|
47
|
+
const SET_MODAL_TYPE = 'SET_MODAL_TYPE';
|
|
48
|
+
|
|
49
|
+
const SET_PEER_TO_UPDATE = 'SET_PEER_TO_UPDATE';
|
|
50
|
+
|
|
51
|
+
export default {
|
|
52
|
+
ADD_PINNED_MESSAGE,
|
|
53
|
+
ADD_MESSAGE,
|
|
54
|
+
CLEAR_MESSAGE_DATA,
|
|
55
|
+
CLEAR_PEER_DATA,
|
|
56
|
+
SET_PEER_STATE,
|
|
57
|
+
SAVE_USER_DATA,
|
|
58
|
+
SET_HMS_INSTANCE,
|
|
59
|
+
CLEAR_HMS_INSTANCE,
|
|
60
|
+
CHANGE_PIP_MODE_STATUS,
|
|
61
|
+
RESET_JOIN_CONFIG,
|
|
62
|
+
CHANGE_MIRROR_CAMERA,
|
|
63
|
+
CHANGE_SHOW_STATS,
|
|
64
|
+
CHANGE_AUTO_SIMULCAST,
|
|
65
|
+
CHANGE_SHOW_HLS_STATS,
|
|
66
|
+
CHANGE_ENABLE_HLS_PLAYER_CONTROLS,
|
|
67
|
+
CHANGE_SHOW_CUSTOM_HLS_PLAYER_CONTROLS,
|
|
68
|
+
CHANGE_HLS_ASPECT_RATIO,
|
|
69
|
+
SET_RTC_STATS,
|
|
70
|
+
SET_MODAL_TYPE,
|
|
71
|
+
SET_PEER_TO_UPDATE,
|
|
72
|
+
};
|
|
73
|
+
|
|
74
|
+
export enum HmsStateActionTypes {
|
|
75
|
+
CLEAR_STATES = 'CLEAR_STATES',
|
|
76
|
+
SET_PREBUILT_DATA = 'SET_PREBUILT_DATA',
|
|
77
|
+
SET_ROOM_STATE = 'SET_ROOM_STATE',
|
|
78
|
+
SET_LOCAL_PEER_STATE = 'SET_LOCAL_PEER_STATE',
|
|
79
|
+
SET_ROLES_STATE = 'SET_ROLES_STATE',
|
|
80
|
+
SET_IS_LOCAL_AUDIO_MUTED_STATE = 'SET_IS_LOCAL_AUDIO_MUTED_STATE',
|
|
81
|
+
SET_IS_LOCAL_VIDEO_MUTED_STATE = 'SET_IS_LOCAL_VIDEO_MUTED_STATE',
|
|
82
|
+
SET_IS_LOCAL_SCREEN_SHARED_STATE = 'SET_IS_LOCAL_SCREEN_SHARED_STATE',
|
|
83
|
+
SET_ROOM_LOCALLY_MUTED = 'SET_ROOM_LOCALLY_MUTED',
|
|
84
|
+
SET_USER_NAME = 'SET_USER_NAME',
|
|
85
|
+
}
|
|
@@ -0,0 +1,196 @@
|
|
|
1
|
+
import { HMSRoom, HMSLocalPeer } from '@100mslive/react-native-hms';
|
|
2
|
+
import type {
|
|
3
|
+
HMSLocalAudioStats,
|
|
4
|
+
HMSLocalVideoStats,
|
|
5
|
+
HMSMessage,
|
|
6
|
+
HMSPeer,
|
|
7
|
+
HMSRemoteAudioStats,
|
|
8
|
+
HMSRemoteVideoStats,
|
|
9
|
+
HMSRole,
|
|
10
|
+
HMSSDK,
|
|
11
|
+
HMSSessionStore,
|
|
12
|
+
} from '@100mslive/react-native-hms';
|
|
13
|
+
import type {
|
|
14
|
+
IOSBuildConfig,
|
|
15
|
+
ModalTypes,
|
|
16
|
+
PeerTrackNode,
|
|
17
|
+
PipModes,
|
|
18
|
+
} from '../../utils/types';
|
|
19
|
+
import actionTypes, { HmsStateActionTypes } from '../actionTypes';
|
|
20
|
+
|
|
21
|
+
export const setPrebuiltData = (data: {
|
|
22
|
+
roomCode: string;
|
|
23
|
+
options?: {
|
|
24
|
+
userName?: string;
|
|
25
|
+
userId?: string;
|
|
26
|
+
debugMode?: boolean;
|
|
27
|
+
endPoints?: {
|
|
28
|
+
init: string;
|
|
29
|
+
token: string;
|
|
30
|
+
};
|
|
31
|
+
ios?: IOSBuildConfig;
|
|
32
|
+
};
|
|
33
|
+
}) => ({
|
|
34
|
+
type: HmsStateActionTypes.SET_PREBUILT_DATA,
|
|
35
|
+
payload: data,
|
|
36
|
+
});
|
|
37
|
+
|
|
38
|
+
export const clearStore = () => ({
|
|
39
|
+
type: HmsStateActionTypes.CLEAR_STATES,
|
|
40
|
+
});
|
|
41
|
+
|
|
42
|
+
export const setRoomLocallyMuted = (roomLocallyMuted: boolean) => ({
|
|
43
|
+
type: HmsStateActionTypes.SET_ROOM_LOCALLY_MUTED,
|
|
44
|
+
roomLocallyMuted,
|
|
45
|
+
});
|
|
46
|
+
|
|
47
|
+
export const setIsLocalVideoMutedState = (
|
|
48
|
+
isLocalVideoMuted: boolean | undefined
|
|
49
|
+
) => ({
|
|
50
|
+
type: HmsStateActionTypes.SET_IS_LOCAL_VIDEO_MUTED_STATE,
|
|
51
|
+
isLocalVideoMuted,
|
|
52
|
+
});
|
|
53
|
+
|
|
54
|
+
export const setIsLocalAudioMutedState = (
|
|
55
|
+
isLocalAudioMuted: boolean | undefined
|
|
56
|
+
) => ({
|
|
57
|
+
type: HmsStateActionTypes.SET_IS_LOCAL_AUDIO_MUTED_STATE,
|
|
58
|
+
isLocalAudioMuted,
|
|
59
|
+
});
|
|
60
|
+
|
|
61
|
+
export const setIsLocalScreenSharedState = (
|
|
62
|
+
isLocalScreenShared: boolean | undefined
|
|
63
|
+
) => ({
|
|
64
|
+
type: HmsStateActionTypes.SET_IS_LOCAL_SCREEN_SHARED_STATE,
|
|
65
|
+
isLocalScreenShared,
|
|
66
|
+
});
|
|
67
|
+
|
|
68
|
+
export const setHMSRoleState = (roles: HMSRole[]) => ({
|
|
69
|
+
type: HmsStateActionTypes.SET_ROLES_STATE,
|
|
70
|
+
roles,
|
|
71
|
+
});
|
|
72
|
+
|
|
73
|
+
export const setHMSRoomState = (room: HMSRoom | null) => ({
|
|
74
|
+
type: HmsStateActionTypes.SET_ROOM_STATE,
|
|
75
|
+
room,
|
|
76
|
+
});
|
|
77
|
+
|
|
78
|
+
export const setHMSLocalPeerState = (localPeer: HMSLocalPeer | null) => ({
|
|
79
|
+
type: HmsStateActionTypes.SET_LOCAL_PEER_STATE,
|
|
80
|
+
localPeer,
|
|
81
|
+
});
|
|
82
|
+
|
|
83
|
+
export const setHMSInstance = (hmsInstance: HMSSDK) => ({
|
|
84
|
+
type: actionTypes.SET_HMS_INSTANCE,
|
|
85
|
+
payload: { hmsInstance },
|
|
86
|
+
});
|
|
87
|
+
|
|
88
|
+
export const addMessage = (data: HMSMessage) => ({
|
|
89
|
+
type: actionTypes.ADD_MESSAGE.REQUEST,
|
|
90
|
+
payload: data,
|
|
91
|
+
});
|
|
92
|
+
|
|
93
|
+
export const addPinnedMessage = (data: string | null | undefined) => ({
|
|
94
|
+
type: actionTypes.ADD_PINNED_MESSAGE.REQUEST,
|
|
95
|
+
payload: data,
|
|
96
|
+
});
|
|
97
|
+
|
|
98
|
+
export const clearMessageData = () => ({
|
|
99
|
+
type: actionTypes.CLEAR_MESSAGE_DATA.REQUEST,
|
|
100
|
+
});
|
|
101
|
+
|
|
102
|
+
export const setPeerState = (data: { peerState: PeerTrackNode[] }) => ({
|
|
103
|
+
type: actionTypes.SET_PEER_STATE,
|
|
104
|
+
payload: data,
|
|
105
|
+
});
|
|
106
|
+
|
|
107
|
+
export const changePipModeStatus = (pipModeStatus: PipModes) => ({
|
|
108
|
+
type: actionTypes.CHANGE_PIP_MODE_STATUS,
|
|
109
|
+
payload: { pipModeStatus },
|
|
110
|
+
});
|
|
111
|
+
|
|
112
|
+
export const clearPeerData = () => ({
|
|
113
|
+
type: actionTypes.CLEAR_PEER_DATA.REQUEST,
|
|
114
|
+
});
|
|
115
|
+
|
|
116
|
+
export const saveUserData = (data: {
|
|
117
|
+
userName?: String;
|
|
118
|
+
roomID?: String;
|
|
119
|
+
roomCode?: String;
|
|
120
|
+
hmsInstance?: HMSSDK;
|
|
121
|
+
hmsSessionStore?: HMSSessionStore;
|
|
122
|
+
spotlightTrackId?: string | null;
|
|
123
|
+
isHLSFlow?: boolean;
|
|
124
|
+
roles?: HMSRole[];
|
|
125
|
+
}) => ({
|
|
126
|
+
type: actionTypes.SAVE_USER_DATA.REQUEST,
|
|
127
|
+
payload: data,
|
|
128
|
+
});
|
|
129
|
+
|
|
130
|
+
export const clearHmsReference = () => ({
|
|
131
|
+
type: actionTypes.CLEAR_HMS_INSTANCE,
|
|
132
|
+
});
|
|
133
|
+
|
|
134
|
+
export const resetJoinConfig = () => ({ type: actionTypes.RESET_JOIN_CONFIG });
|
|
135
|
+
|
|
136
|
+
export const changeMirrorCamera = (value: boolean) => ({
|
|
137
|
+
type: actionTypes.CHANGE_MIRROR_CAMERA,
|
|
138
|
+
payload: { mirrorCamera: value },
|
|
139
|
+
});
|
|
140
|
+
|
|
141
|
+
export const changeShowStats = (value: boolean) => ({
|
|
142
|
+
type: actionTypes.CHANGE_SHOW_STATS,
|
|
143
|
+
payload: { showStats: value },
|
|
144
|
+
});
|
|
145
|
+
|
|
146
|
+
export const changeShowHLSStats = (value: boolean) => ({
|
|
147
|
+
type: actionTypes.CHANGE_SHOW_HLS_STATS,
|
|
148
|
+
payload: { showHLSStats: value },
|
|
149
|
+
});
|
|
150
|
+
|
|
151
|
+
export const changeShowCustomHLSPlayerControls = (value: boolean) => ({
|
|
152
|
+
type: actionTypes.CHANGE_SHOW_CUSTOM_HLS_PLAYER_CONTROLS,
|
|
153
|
+
payload: { showCustomHLSPlayerControls: value },
|
|
154
|
+
});
|
|
155
|
+
|
|
156
|
+
export const changeEnableHLSPlayerControls = (value: boolean) => ({
|
|
157
|
+
type: actionTypes.CHANGE_ENABLE_HLS_PLAYER_CONTROLS,
|
|
158
|
+
payload: { enableHLSPlayerControls: value },
|
|
159
|
+
});
|
|
160
|
+
|
|
161
|
+
export const changeAutoSimulcast = (value: boolean) => ({
|
|
162
|
+
type: actionTypes.CHANGE_AUTO_SIMULCAST,
|
|
163
|
+
payload: { autoSimulcast: value },
|
|
164
|
+
});
|
|
165
|
+
|
|
166
|
+
export const setRTCStats = (
|
|
167
|
+
trackId: string,
|
|
168
|
+
stats:
|
|
169
|
+
| HMSLocalAudioStats
|
|
170
|
+
| HMSLocalVideoStats[]
|
|
171
|
+
| HMSRemoteAudioStats
|
|
172
|
+
| HMSRemoteVideoStats
|
|
173
|
+
) => ({
|
|
174
|
+
type: actionTypes.SET_RTC_STATS,
|
|
175
|
+
payload: { trackId, stats },
|
|
176
|
+
});
|
|
177
|
+
|
|
178
|
+
export const changeHLSAspectRatio = (value: { value: number; id: string }) => ({
|
|
179
|
+
type: actionTypes.CHANGE_HLS_ASPECT_RATIO,
|
|
180
|
+
payload: { hlsAspectRatio: value },
|
|
181
|
+
});
|
|
182
|
+
|
|
183
|
+
export const changeUsername = (userName: string) => ({
|
|
184
|
+
type: HmsStateActionTypes.SET_USER_NAME,
|
|
185
|
+
payload: { userName },
|
|
186
|
+
});
|
|
187
|
+
|
|
188
|
+
export const setModalType = (modalType: ModalTypes) => ({
|
|
189
|
+
type: actionTypes.SET_MODAL_TYPE,
|
|
190
|
+
payload: { modalType },
|
|
191
|
+
});
|
|
192
|
+
|
|
193
|
+
export const setPeerToUpdate = (peerToUpdate: HMSPeer) => ({
|
|
194
|
+
type: actionTypes.SET_PEER_TO_UPDATE,
|
|
195
|
+
payload: { peerToUpdate },
|
|
196
|
+
});
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
import ActionTypes, { HmsStateActionTypes } from '../actionTypes';
|
|
2
|
+
import type { PeerTrackNode } from '../../utils/types';
|
|
3
|
+
import { SUPPORTED_ASPECT_RATIOS, ModalTypes } from '../../utils/types';
|
|
4
|
+
import { PipModes } from '../../utils/types';
|
|
5
|
+
import {
|
|
6
|
+
HMSLocalAudioStats,
|
|
7
|
+
HMSLocalVideoStats,
|
|
8
|
+
HMSPeer,
|
|
9
|
+
HMSRemoteAudioStats,
|
|
10
|
+
HMSRemoteVideoStats,
|
|
11
|
+
} from '@100mslive/react-native-hms';
|
|
12
|
+
|
|
13
|
+
type ActionType = {
|
|
14
|
+
payload: { [key: string]: any };
|
|
15
|
+
type: String;
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
type IntialStateType = {
|
|
19
|
+
peerState: PeerTrackNode[];
|
|
20
|
+
pipModeStatus: PipModes;
|
|
21
|
+
rtcStats: Record<
|
|
22
|
+
string,
|
|
23
|
+
| undefined
|
|
24
|
+
| HMSLocalAudioStats
|
|
25
|
+
| HMSLocalVideoStats[]
|
|
26
|
+
| HMSRemoteAudioStats
|
|
27
|
+
| HMSRemoteVideoStats
|
|
28
|
+
>;
|
|
29
|
+
hlsAspectRatio: { value: number; id: string };
|
|
30
|
+
joinConfig: {
|
|
31
|
+
mirrorCamera: boolean;
|
|
32
|
+
autoSimulcast: boolean;
|
|
33
|
+
showStats: boolean;
|
|
34
|
+
showHLSStats: boolean;
|
|
35
|
+
enableHLSPlayerControls: boolean;
|
|
36
|
+
showCustomHLSPlayerControls: boolean;
|
|
37
|
+
};
|
|
38
|
+
modalType: ModalTypes;
|
|
39
|
+
peerToUpdate: HMSPeer | null;
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
const INITIAL_STATE: IntialStateType = {
|
|
43
|
+
peerState: [],
|
|
44
|
+
pipModeStatus: PipModes.INACTIVE,
|
|
45
|
+
rtcStats: {},
|
|
46
|
+
hlsAspectRatio: SUPPORTED_ASPECT_RATIOS[0]!, // This is static array, and should always have 0th item
|
|
47
|
+
joinConfig: {
|
|
48
|
+
mirrorCamera: true,
|
|
49
|
+
autoSimulcast: true,
|
|
50
|
+
showStats: false,
|
|
51
|
+
showHLSStats: false,
|
|
52
|
+
enableHLSPlayerControls: true,
|
|
53
|
+
showCustomHLSPlayerControls: false,
|
|
54
|
+
},
|
|
55
|
+
modalType: ModalTypes.DEFAULT,
|
|
56
|
+
peerToUpdate: null,
|
|
57
|
+
};
|
|
58
|
+
|
|
59
|
+
const appReducer = (
|
|
60
|
+
state = INITIAL_STATE,
|
|
61
|
+
action: ActionType
|
|
62
|
+
): IntialStateType => {
|
|
63
|
+
switch (action.type) {
|
|
64
|
+
case ActionTypes.CHANGE_PIP_MODE_STATUS:
|
|
65
|
+
return { ...state, pipModeStatus: action.payload.pipModeStatus };
|
|
66
|
+
case ActionTypes.SET_PEER_STATE:
|
|
67
|
+
return { ...state, ...action.payload };
|
|
68
|
+
case ActionTypes.CLEAR_PEER_DATA.REQUEST:
|
|
69
|
+
return { ...state, peerState: [] };
|
|
70
|
+
case ActionTypes.CHANGE_HLS_ASPECT_RATIO:
|
|
71
|
+
return { ...state, hlsAspectRatio: action.payload.hlsAspectRatio };
|
|
72
|
+
case ActionTypes.SET_MODAL_TYPE:
|
|
73
|
+
return { ...state, modalType: action.payload.modalType };
|
|
74
|
+
case ActionTypes.SET_PEER_TO_UPDATE:
|
|
75
|
+
return { ...state, peerToUpdate: action.payload.peerToUpdate };
|
|
76
|
+
case ActionTypes.RESET_JOIN_CONFIG:
|
|
77
|
+
return { ...state, joinConfig: INITIAL_STATE.joinConfig };
|
|
78
|
+
case ActionTypes.CHANGE_MIRROR_CAMERA:
|
|
79
|
+
return {
|
|
80
|
+
...state,
|
|
81
|
+
joinConfig: {
|
|
82
|
+
...state.joinConfig,
|
|
83
|
+
mirrorCamera: action.payload.mirrorCamera ?? true,
|
|
84
|
+
},
|
|
85
|
+
};
|
|
86
|
+
case ActionTypes.CHANGE_SHOW_STATS:
|
|
87
|
+
return {
|
|
88
|
+
...state,
|
|
89
|
+
joinConfig: {
|
|
90
|
+
...state.joinConfig,
|
|
91
|
+
showStats: action.payload.showStats ?? false,
|
|
92
|
+
},
|
|
93
|
+
};
|
|
94
|
+
case ActionTypes.CHANGE_SHOW_HLS_STATS:
|
|
95
|
+
return {
|
|
96
|
+
...state,
|
|
97
|
+
joinConfig: {
|
|
98
|
+
...state.joinConfig,
|
|
99
|
+
showHLSStats: action.payload.showHLSStats ?? false,
|
|
100
|
+
},
|
|
101
|
+
};
|
|
102
|
+
case ActionTypes.CHANGE_ENABLE_HLS_PLAYER_CONTROLS:
|
|
103
|
+
return {
|
|
104
|
+
...state,
|
|
105
|
+
joinConfig: {
|
|
106
|
+
...state.joinConfig,
|
|
107
|
+
enableHLSPlayerControls:
|
|
108
|
+
action.payload.enableHLSPlayerControls ?? true,
|
|
109
|
+
},
|
|
110
|
+
};
|
|
111
|
+
case ActionTypes.CHANGE_SHOW_CUSTOM_HLS_PLAYER_CONTROLS:
|
|
112
|
+
return {
|
|
113
|
+
...state,
|
|
114
|
+
joinConfig: {
|
|
115
|
+
...state.joinConfig,
|
|
116
|
+
showCustomHLSPlayerControls:
|
|
117
|
+
action.payload.showCustomHLSPlayerControls ?? false,
|
|
118
|
+
},
|
|
119
|
+
};
|
|
120
|
+
case ActionTypes.CHANGE_AUTO_SIMULCAST:
|
|
121
|
+
return {
|
|
122
|
+
...state,
|
|
123
|
+
joinConfig: {
|
|
124
|
+
...state.joinConfig,
|
|
125
|
+
autoSimulcast: action.payload.autoSimulcast ?? true,
|
|
126
|
+
},
|
|
127
|
+
};
|
|
128
|
+
case ActionTypes.SET_RTC_STATS:
|
|
129
|
+
return {
|
|
130
|
+
...state,
|
|
131
|
+
rtcStats: {
|
|
132
|
+
...state.rtcStats,
|
|
133
|
+
[action.payload.trackId]: action.payload.stats,
|
|
134
|
+
},
|
|
135
|
+
};
|
|
136
|
+
case HmsStateActionTypes.CLEAR_STATES:
|
|
137
|
+
return INITIAL_STATE;
|
|
138
|
+
default:
|
|
139
|
+
return state;
|
|
140
|
+
}
|
|
141
|
+
};
|
|
142
|
+
|
|
143
|
+
export default appReducer;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { HmsStateActionTypes } from '../actionTypes';
|
|
2
|
+
|
|
3
|
+
const INITIAL_STATE = {
|
|
4
|
+
showChatView: false,
|
|
5
|
+
typedMessage: '',
|
|
6
|
+
sendTo: { name: 'everyone' },
|
|
7
|
+
sendToType: 'everyone', // 'everyone' | 'role' | 'direct'
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
const chatWindowReducer = (state = INITIAL_STATE, action: any): any => {
|
|
11
|
+
switch (action.type) {
|
|
12
|
+
case 'SET_SENDTO':
|
|
13
|
+
return {
|
|
14
|
+
...state,
|
|
15
|
+
sendTo: action.sendTo,
|
|
16
|
+
sendToType: action.sendToType,
|
|
17
|
+
};
|
|
18
|
+
case 'SET_TYPED_MESSAGE':
|
|
19
|
+
return {
|
|
20
|
+
...state,
|
|
21
|
+
typedMessage: action.typedMessage,
|
|
22
|
+
};
|
|
23
|
+
case 'SET_SHOW_CHAT_VIEW':
|
|
24
|
+
return {
|
|
25
|
+
...state,
|
|
26
|
+
showChatView: action.showChatView,
|
|
27
|
+
};
|
|
28
|
+
case HmsStateActionTypes.CLEAR_STATES:
|
|
29
|
+
return INITIAL_STATE;
|
|
30
|
+
default:
|
|
31
|
+
return state;
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
export default chatWindowReducer;
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
import type {
|
|
2
|
+
HMSLocalPeer,
|
|
3
|
+
HMSRole,
|
|
4
|
+
HMSRoom,
|
|
5
|
+
} from '@100mslive/react-native-hms';
|
|
6
|
+
import { HmsStateActionTypes } from '../actionTypes';
|
|
7
|
+
|
|
8
|
+
type ActionType =
|
|
9
|
+
| SetRoomAction
|
|
10
|
+
| SetLocalPeerAction
|
|
11
|
+
| SetRolesAction
|
|
12
|
+
| SetIsLocalAudioMutedAction
|
|
13
|
+
| SetIsLocalVideoMutedAction
|
|
14
|
+
| SetIsLocalScreenSharedAction
|
|
15
|
+
| SetRoomLocallyMutedAction
|
|
16
|
+
| ResetAction;
|
|
17
|
+
|
|
18
|
+
type SetRoomAction = {
|
|
19
|
+
type: HmsStateActionTypes.SET_ROOM_STATE;
|
|
20
|
+
room: HMSRoom | null;
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
type SetLocalPeerAction = {
|
|
24
|
+
type: HmsStateActionTypes.SET_LOCAL_PEER_STATE;
|
|
25
|
+
localPeer: HMSLocalPeer | null;
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
type SetRolesAction = {
|
|
29
|
+
type: HmsStateActionTypes.SET_ROLES_STATE;
|
|
30
|
+
roles: HMSRole[];
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
type SetIsLocalAudioMutedAction = {
|
|
34
|
+
type: HmsStateActionTypes.SET_IS_LOCAL_AUDIO_MUTED_STATE;
|
|
35
|
+
isLocalAudioMuted: boolean | undefined;
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
type SetIsLocalVideoMutedAction = {
|
|
39
|
+
type: HmsStateActionTypes.SET_IS_LOCAL_VIDEO_MUTED_STATE;
|
|
40
|
+
isLocalVideoMuted: boolean | undefined;
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
type SetIsLocalScreenSharedAction = {
|
|
44
|
+
type: HmsStateActionTypes.SET_IS_LOCAL_SCREEN_SHARED_STATE;
|
|
45
|
+
isLocalScreenShared: boolean | undefined;
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
type ResetAction = {
|
|
49
|
+
type: HmsStateActionTypes.CLEAR_STATES;
|
|
50
|
+
};
|
|
51
|
+
|
|
52
|
+
type SetRoomLocallyMutedAction = {
|
|
53
|
+
type: HmsStateActionTypes.SET_ROOM_LOCALLY_MUTED;
|
|
54
|
+
roomLocallyMuted: boolean;
|
|
55
|
+
};
|
|
56
|
+
|
|
57
|
+
type IntialStateType = {
|
|
58
|
+
isLocalAudioMuted: boolean | undefined;
|
|
59
|
+
isLocalVideoMuted: boolean | undefined;
|
|
60
|
+
isLocalScreenShared: boolean | undefined;
|
|
61
|
+
roomLocallyMuted: boolean;
|
|
62
|
+
room: HMSRoom | null;
|
|
63
|
+
localPeer: HMSLocalPeer | null;
|
|
64
|
+
roles: HMSRole[];
|
|
65
|
+
};
|
|
66
|
+
|
|
67
|
+
const INITIAL_STATE: IntialStateType = {
|
|
68
|
+
isLocalAudioMuted: undefined,
|
|
69
|
+
isLocalVideoMuted: undefined,
|
|
70
|
+
isLocalScreenShared: undefined,
|
|
71
|
+
roomLocallyMuted: false,
|
|
72
|
+
room: null,
|
|
73
|
+
localPeer: null,
|
|
74
|
+
roles: [],
|
|
75
|
+
};
|
|
76
|
+
|
|
77
|
+
const hmsStatesReducer = (
|
|
78
|
+
state = INITIAL_STATE,
|
|
79
|
+
action: ActionType
|
|
80
|
+
): IntialStateType => {
|
|
81
|
+
switch (action.type) {
|
|
82
|
+
case HmsStateActionTypes.SET_ROOM_STATE:
|
|
83
|
+
return {
|
|
84
|
+
...state,
|
|
85
|
+
room: action.room,
|
|
86
|
+
};
|
|
87
|
+
case HmsStateActionTypes.SET_LOCAL_PEER_STATE:
|
|
88
|
+
return {
|
|
89
|
+
...state,
|
|
90
|
+
localPeer: action.localPeer,
|
|
91
|
+
isLocalAudioMuted: action.localPeer?.audioTrack?.isMute(),
|
|
92
|
+
isLocalVideoMuted: action.localPeer?.videoTrack?.isMute(),
|
|
93
|
+
};
|
|
94
|
+
case HmsStateActionTypes.SET_ROLES_STATE:
|
|
95
|
+
return {
|
|
96
|
+
...state,
|
|
97
|
+
roles: action.roles,
|
|
98
|
+
};
|
|
99
|
+
case HmsStateActionTypes.SET_IS_LOCAL_AUDIO_MUTED_STATE:
|
|
100
|
+
return {
|
|
101
|
+
...state,
|
|
102
|
+
isLocalAudioMuted: action.isLocalAudioMuted,
|
|
103
|
+
};
|
|
104
|
+
case HmsStateActionTypes.SET_IS_LOCAL_VIDEO_MUTED_STATE:
|
|
105
|
+
return {
|
|
106
|
+
...state,
|
|
107
|
+
isLocalVideoMuted: action.isLocalVideoMuted,
|
|
108
|
+
};
|
|
109
|
+
case HmsStateActionTypes.SET_IS_LOCAL_SCREEN_SHARED_STATE:
|
|
110
|
+
return {
|
|
111
|
+
...state,
|
|
112
|
+
isLocalScreenShared: action.isLocalScreenShared,
|
|
113
|
+
};
|
|
114
|
+
case HmsStateActionTypes.SET_ROOM_LOCALLY_MUTED:
|
|
115
|
+
return {
|
|
116
|
+
...state,
|
|
117
|
+
roomLocallyMuted: action.roomLocallyMuted,
|
|
118
|
+
};
|
|
119
|
+
case HmsStateActionTypes.CLEAR_STATES:
|
|
120
|
+
return INITIAL_STATE;
|
|
121
|
+
default:
|
|
122
|
+
return state;
|
|
123
|
+
}
|
|
124
|
+
};
|
|
125
|
+
|
|
126
|
+
export default hmsStatesReducer;
|