@100mslive/react-native-room-kit 0.0.3 → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +413 -11
- package/lib/commonjs/HMSInstanceSetup.js +3 -15
- package/lib/commonjs/HMSInstanceSetup.js.map +1 -1
- package/lib/commonjs/HMSPrebuilt.js +17 -6
- package/lib/commonjs/HMSPrebuilt.js.map +1 -1
- package/lib/commonjs/HMSRoomSetup.js +76 -21
- package/lib/commonjs/HMSRoomSetup.js.map +1 -1
- package/lib/commonjs/Icons/AlertTriangle/assets/alert-triangle.png +0 -0
- package/lib/commonjs/Icons/AlertTriangle/assets/alert-triangle@2x.png +0 -0
- package/lib/commonjs/Icons/AlertTriangle/assets/alert-triangle@3x.png +0 -0
- package/lib/commonjs/Icons/AlertTriangle/index.js +34 -0
- package/lib/commonjs/Icons/AlertTriangle/index.js.map +1 -0
- package/lib/commonjs/Icons/AnswerPhone/index.js +5 -1
- package/lib/commonjs/Icons/AnswerPhone/index.js.map +1 -1
- package/lib/commonjs/Icons/BRB/assets/BRB.png +0 -0
- package/lib/commonjs/Icons/BRB/assets/BRB@2x.png +0 -0
- package/lib/commonjs/Icons/BRB/assets/BRB@3x.png +0 -0
- package/lib/commonjs/Icons/BRB/index.js +35 -0
- package/lib/commonjs/Icons/BRB/index.js.map +1 -0
- package/lib/commonjs/Icons/Bluetooth/index.js +5 -1
- package/lib/commonjs/Icons/Bluetooth/index.js.map +1 -1
- package/lib/commonjs/Icons/Camera/index.js +5 -1
- package/lib/commonjs/Icons/Camera/index.js.map +1 -1
- package/lib/commonjs/Icons/Chat/index.js +5 -1
- package/lib/commonjs/Icons/Chat/index.js.map +1 -1
- package/lib/commonjs/Icons/Check/assets/check.png +0 -0
- package/lib/commonjs/Icons/Check/assets/check@2x.png +0 -0
- package/lib/commonjs/Icons/Check/assets/check@3x.png +0 -0
- package/lib/commonjs/Icons/Check/index.js +34 -0
- package/lib/commonjs/Icons/Check/index.js.map +1 -0
- package/lib/commonjs/Icons/Chevron/index.js +5 -1
- package/lib/commonjs/Icons/Chevron/index.js.map +1 -1
- package/lib/commonjs/Icons/Close/index.js +5 -1
- package/lib/commonjs/Icons/Close/index.js.map +1 -1
- package/lib/commonjs/Icons/Hamburger/assets/hamburger.png +0 -0
- package/lib/commonjs/Icons/Hamburger/assets/hamburger@2x.png +0 -0
- package/lib/commonjs/Icons/Hamburger/assets/hamburger@3x.png +0 -0
- package/lib/commonjs/Icons/Hamburger/index.js +34 -0
- package/lib/commonjs/Icons/Hamburger/index.js.map +1 -0
- package/lib/commonjs/Icons/Hand/index.js +6 -4
- package/lib/commonjs/Icons/Hand/index.js.map +1 -1
- package/lib/commonjs/Icons/Headphones/index.js +5 -1
- package/lib/commonjs/Icons/Headphones/index.js.map +1 -1
- package/lib/commonjs/Icons/Maximize/assets/maximize.png +0 -0
- package/lib/commonjs/Icons/Maximize/assets/maximize@2x.png +0 -0
- package/lib/commonjs/Icons/Maximize/assets/maximize@3x.png +0 -0
- package/lib/commonjs/Icons/Maximize/index.js +34 -0
- package/lib/commonjs/Icons/Maximize/index.js.map +1 -0
- package/lib/commonjs/Icons/Mic/index.js +5 -1
- package/lib/commonjs/Icons/Mic/index.js.map +1 -1
- package/lib/commonjs/Icons/Minimize/assets/minimize.png +0 -0
- package/lib/commonjs/Icons/Minimize/assets/minimize@2x.png +0 -0
- package/lib/commonjs/Icons/Minimize/assets/minimize@3x.png +0 -0
- package/lib/commonjs/Icons/Minimize/index.js +34 -0
- package/lib/commonjs/Icons/Minimize/index.js.map +1 -0
- package/lib/commonjs/Icons/Participants/index.js +5 -1
- package/lib/commonjs/Icons/Participants/index.js.map +1 -1
- package/lib/commonjs/Icons/Pencil/assets/pencil.png +0 -0
- package/lib/commonjs/Icons/Pencil/assets/pencil@2x.png +0 -0
- package/lib/commonjs/Icons/Pencil/assets/pencil@3x.png +0 -0
- package/lib/commonjs/Icons/Pencil/index.js +34 -0
- package/lib/commonjs/Icons/Pencil/index.js.map +1 -0
- package/lib/commonjs/Icons/Pin/assets/pin.png +0 -0
- package/lib/commonjs/Icons/Pin/assets/pin@2x.png +0 -0
- package/lib/commonjs/Icons/Pin/assets/pin@3x.png +0 -0
- package/lib/commonjs/Icons/Pin/index.js +34 -0
- package/lib/commonjs/Icons/Pin/index.js.map +1 -0
- package/lib/commonjs/Icons/Radio/assets/radio.png +0 -0
- package/lib/commonjs/Icons/Radio/assets/radio@2x.png +0 -0
- package/lib/commonjs/Icons/Radio/assets/radio@3x.png +0 -0
- package/lib/commonjs/Icons/Radio/index.js +30 -0
- package/lib/commonjs/Icons/Radio/index.js.map +1 -0
- package/lib/commonjs/Icons/Recording/assets/recording.png +0 -0
- package/lib/commonjs/Icons/Recording/assets/recording@2x.png +0 -0
- package/lib/commonjs/Icons/Recording/assets/recording@3x.png +0 -0
- package/lib/commonjs/Icons/Recording/index.js +34 -0
- package/lib/commonjs/Icons/Recording/index.js.map +1 -0
- package/lib/commonjs/Icons/RotateCamera/index.js +5 -1
- package/lib/commonjs/Icons/RotateCamera/index.js.map +1 -1
- package/lib/commonjs/Icons/ScreenShare/index.js +5 -1
- package/lib/commonjs/Icons/ScreenShare/index.js.map +1 -1
- package/lib/commonjs/Icons/Speaker/index.js +5 -1
- package/lib/commonjs/Icons/Speaker/index.js.map +1 -1
- package/lib/commonjs/Icons/Star/assets/star.png +0 -0
- package/lib/commonjs/Icons/Star/assets/star@2x.png +0 -0
- package/lib/commonjs/Icons/Star/assets/star@3x.png +0 -0
- package/lib/commonjs/Icons/Star/index.js +34 -0
- package/lib/commonjs/Icons/Star/index.js.map +1 -0
- package/lib/commonjs/Icons/Stop/assets/stop.png +0 -0
- package/lib/commonjs/Icons/Stop/assets/stop@2x.png +0 -0
- package/lib/commonjs/Icons/Stop/assets/stop@3x.png +0 -0
- package/lib/commonjs/Icons/Stop/index.js +34 -0
- package/lib/commonjs/Icons/Stop/index.js.map +1 -0
- package/lib/commonjs/Icons/ThreeDots/index.js +5 -1
- package/lib/commonjs/Icons/ThreeDots/index.js.map +1 -1
- package/lib/commonjs/Icons/Wave/index.js +5 -1
- package/lib/commonjs/Icons/Wave/index.js.map +1 -1
- package/lib/commonjs/Icons/index.js +132 -0
- package/lib/commonjs/Icons/index.js.map +1 -1
- package/lib/commonjs/components/AvatarView.js +1 -2
- package/lib/commonjs/components/AvatarView.js.map +1 -1
- package/lib/commonjs/components/BackButton.js +8 -6
- package/lib/commonjs/components/BackButton.js.map +1 -1
- package/lib/commonjs/components/BottomSheet.js +157 -0
- package/lib/commonjs/components/BottomSheet.js.map +1 -0
- package/lib/commonjs/components/ChangeNameModalContent.js +131 -0
- package/lib/commonjs/components/ChangeNameModalContent.js.map +1 -0
- package/lib/commonjs/components/CompanyLogo.js +38 -0
- package/lib/commonjs/components/CompanyLogo.js.map +1 -0
- package/lib/commonjs/components/CustomInput.js +2 -3
- package/lib/commonjs/components/CustomInput.js.map +1 -1
- package/lib/commonjs/components/DisplayView.js +12 -58
- package/lib/commonjs/components/DisplayView.js.map +1 -1
- package/lib/commonjs/components/EndRoomModalContent.js +85 -0
- package/lib/commonjs/components/EndRoomModalContent.js.map +1 -0
- package/lib/commonjs/components/Footer.js +8 -9
- package/lib/commonjs/components/Footer.js.map +1 -1
- package/lib/commonjs/components/GridView.js +53 -7
- package/lib/commonjs/components/GridView.js.map +1 -1
- package/lib/commonjs/components/HMSBaseButton.js +66 -0
- package/lib/commonjs/components/HMSBaseButton.js.map +1 -0
- package/lib/commonjs/components/HMSDangerButton.js +53 -0
- package/lib/commonjs/components/HMSDangerButton.js.map +1 -0
- package/lib/commonjs/components/HMSHLSStreamLoading.js +65 -0
- package/lib/commonjs/components/HMSHLSStreamLoading.js.map +1 -0
- package/lib/commonjs/components/HMSLocalVideoView.js +41 -0
- package/lib/commonjs/components/HMSLocalVideoView.js.map +1 -0
- package/lib/commonjs/components/{HMSSpeakerSettings.js → HMSManageAudioOutput.js} +70 -76
- package/lib/commonjs/components/HMSManageAudioOutput.js.map +1 -0
- package/lib/commonjs/components/HMSManageCameraRotation.js +5 -4
- package/lib/commonjs/components/HMSManageCameraRotation.js.map +1 -1
- package/lib/commonjs/components/HMSManageLeave.js +91 -159
- package/lib/commonjs/components/HMSManageLeave.js.map +1 -1
- package/lib/commonjs/components/HMSManageLocalAudio.js +1 -9
- package/lib/commonjs/components/HMSManageLocalAudio.js.map +1 -1
- package/lib/commonjs/components/HMSManageLocalVideo.js +1 -9
- package/lib/commonjs/components/HMSManageLocalVideo.js.map +1 -1
- package/lib/commonjs/components/HMSMeetingEnded.js +35 -0
- package/lib/commonjs/components/HMSMeetingEnded.js.map +1 -0
- package/lib/commonjs/components/HMSPreviewEditName.js +7 -38
- package/lib/commonjs/components/HMSPreviewEditName.js.map +1 -1
- package/lib/commonjs/components/HMSPreviewHLSLiveIndicator.js +71 -0
- package/lib/commonjs/components/HMSPreviewHLSLiveIndicator.js.map +1 -0
- package/lib/commonjs/components/HMSPreviewJoinButton.js +26 -37
- package/lib/commonjs/components/HMSPreviewJoinButton.js.map +1 -1
- package/lib/commonjs/components/HMSPreviewNetworkQuality.js +45 -0
- package/lib/commonjs/components/HMSPreviewNetworkQuality.js.map +1 -0
- package/lib/commonjs/components/HMSPreviewPeersList.js +21 -33
- package/lib/commonjs/components/HMSPreviewPeersList.js.map +1 -1
- package/lib/commonjs/components/HMSPreviewSubtitle.js +43 -7
- package/lib/commonjs/components/HMSPreviewSubtitle.js.map +1 -1
- package/lib/commonjs/components/HMSPreviewTile.js +18 -26
- package/lib/commonjs/components/HMSPreviewTile.js.map +1 -1
- package/lib/commonjs/components/HMSPreviewTitle.js +14 -6
- package/lib/commonjs/components/HMSPreviewTitle.js.map +1 -1
- package/lib/commonjs/components/HMSPrimaryButton.js +53 -0
- package/lib/commonjs/components/HMSPrimaryButton.js.map +1 -0
- package/lib/commonjs/components/HMSRecordingIndicator.js +46 -0
- package/lib/commonjs/components/HMSRecordingIndicator.js.map +1 -0
- package/lib/commonjs/components/HMSRoomOptions.js +22 -10
- package/lib/commonjs/components/HMSRoomOptions.js.map +1 -1
- package/lib/commonjs/components/HMSShowNetworkQuality.js +5 -6
- package/lib/commonjs/components/HMSShowNetworkQuality.js.map +1 -1
- package/lib/commonjs/components/HMSTextInput.js +66 -0
- package/lib/commonjs/components/HMSTextInput.js.map +1 -0
- package/lib/commonjs/components/Header.js +30 -30
- package/lib/commonjs/components/Header.js.map +1 -1
- package/lib/commonjs/components/LocalPeerRegularVideoView.js +26 -0
- package/lib/commonjs/components/LocalPeerRegularVideoView.js.map +1 -0
- package/lib/commonjs/components/LocalPeerScreenshareView.js +76 -0
- package/lib/commonjs/components/LocalPeerScreenshareView.js.map +1 -0
- package/lib/commonjs/components/Meeting.js +14 -3
- package/lib/commonjs/components/Meeting.js.map +1 -1
- package/lib/commonjs/components/MenuModal/Menu.js +1 -2
- package/lib/commonjs/components/MenuModal/Menu.js.map +1 -1
- package/lib/commonjs/components/MiniView.js +163 -0
- package/lib/commonjs/components/MiniView.js.map +1 -0
- package/lib/commonjs/components/Modals.js +35 -380
- package/lib/commonjs/components/Modals.js.map +1 -1
- package/lib/commonjs/components/PaginationDots.js +56 -0
- package/lib/commonjs/components/PaginationDots.js.map +1 -0
- package/lib/commonjs/components/Participants/ParticipantsList.js +1 -20
- package/lib/commonjs/components/Participants/ParticipantsList.js.map +1 -1
- package/lib/commonjs/components/ParticipantsCount.js +55 -0
- package/lib/commonjs/components/ParticipantsCount.js.map +1 -0
- package/lib/commonjs/components/PeerMinimizedView.js +114 -0
- package/lib/commonjs/components/PeerMinimizedView.js.map +1 -0
- package/lib/commonjs/components/PeerSettingsModalContent.js +69 -63
- package/lib/commonjs/components/PeerSettingsModalContent.js.map +1 -1
- package/lib/commonjs/components/PeerVideoTile/AvatarView.js +76 -0
- package/lib/commonjs/components/PeerVideoTile/AvatarView.js.map +1 -0
- package/lib/commonjs/components/PeerVideoTile/PeerAudioMutedIndicator.js +44 -0
- package/lib/commonjs/components/PeerVideoTile/PeerAudioMutedIndicator.js.map +1 -0
- package/lib/commonjs/components/PeerVideoTile/PeerMetadata.js +44 -0
- package/lib/commonjs/components/PeerVideoTile/PeerMetadata.js.map +1 -0
- package/lib/commonjs/components/PeerVideoTile/PeerNameAndNetwork.js +74 -0
- package/lib/commonjs/components/PeerVideoTile/PeerNameAndNetwork.js.map +1 -0
- package/lib/commonjs/components/PeerVideoTile/PeerVideoTileView.js +146 -0
- package/lib/commonjs/components/PeerVideoTile/PeerVideoTileView.js.map +1 -0
- package/lib/commonjs/components/PeerVideoTile/VideoView.js +84 -0
- package/lib/commonjs/components/PeerVideoTile/VideoView.js.map +1 -0
- package/lib/commonjs/components/PeerVideoTile/index.js +2 -0
- package/lib/commonjs/components/PeerVideoTile/index.js.map +1 -0
- package/lib/commonjs/components/PressableIcon.js +15 -8
- package/lib/commonjs/components/PressableIcon.js.map +1 -1
- package/lib/commonjs/components/Preview.js +93 -72
- package/lib/commonjs/components/Preview.js.map +1 -1
- package/lib/commonjs/components/RoomSettingsModalContent.js +228 -457
- package/lib/commonjs/components/RoomSettingsModalContent.js.map +1 -1
- package/lib/commonjs/components/RoomSettingsModalDebugModeContent.js +295 -0
- package/lib/commonjs/components/RoomSettingsModalDebugModeContent.js.map +1 -0
- package/lib/commonjs/components/StopRecordingModalContent.js +97 -0
- package/lib/commonjs/components/StopRecordingModalContent.js.map +1 -0
- package/lib/commonjs/components/Tile.js +29 -90
- package/lib/commonjs/components/Tile.js.map +1 -1
- package/lib/commonjs/components/TilesContainer.js +99 -10
- package/lib/commonjs/components/TilesContainer.js.map +1 -1
- package/lib/commonjs/components/UnmountAfterDelay.js +48 -0
- package/lib/commonjs/components/UnmountAfterDelay.js.map +1 -0
- package/lib/commonjs/components/WebrtcView.js +51 -0
- package/lib/commonjs/components/WebrtcView.js.map +1 -0
- package/lib/commonjs/components/WelcomeInMeeting.js +54 -0
- package/lib/commonjs/components/WelcomeInMeeting.js.map +1 -0
- package/lib/commonjs/components/index.js +0 -11
- package/lib/commonjs/components/index.js.map +1 -1
- package/lib/commonjs/hooks/useHmsInstance.js +0 -1
- package/lib/commonjs/hooks/useHmsInstance.js.map +1 -1
- package/lib/commonjs/hooks-sdk-selectors.js +6 -1
- package/lib/commonjs/hooks-sdk-selectors.js.map +1 -1
- package/lib/commonjs/hooks-sdk.js +16 -1
- package/lib/commonjs/hooks-sdk.js.map +1 -1
- package/lib/commonjs/hooks-util-selectors.js +14 -1
- package/lib/commonjs/hooks-util-selectors.js.map +1 -1
- package/lib/commonjs/hooks-util.js +421 -98
- package/lib/commonjs/hooks-util.js.map +1 -1
- package/lib/commonjs/modules/HMSManager.js +23 -0
- package/lib/commonjs/modules/HMSManager.js.map +1 -0
- package/lib/commonjs/modules/parser.js +22 -0
- package/lib/commonjs/modules/parser.js.map +1 -0
- package/lib/commonjs/peerTrackNodeUtils.js +8 -3
- package/lib/commonjs/peerTrackNodeUtils.js.map +1 -1
- package/lib/commonjs/redux/actionTypes.js +20 -1
- package/lib/commonjs/redux/actionTypes.js.map +1 -1
- package/lib/commonjs/redux/actions/index.js +65 -1
- package/lib/commonjs/redux/actions/index.js.map +1 -1
- package/lib/commonjs/redux/reducers/appState.js +70 -1
- package/lib/commonjs/redux/reducers/appState.js.map +1 -1
- package/lib/commonjs/redux/reducers/hmsStates.js +7 -1
- package/lib/commonjs/redux/reducers/hmsStates.js.map +1 -1
- package/lib/commonjs/redux/reducers/userState.js +3 -1
- package/lib/commonjs/redux/reducers/userState.js.map +1 -1
- package/lib/commonjs/utils/functions.js +51 -1
- package/lib/commonjs/utils/functions.js.map +1 -1
- package/lib/commonjs/utils/theme.js +63 -8
- package/lib/commonjs/utils/theme.js.map +1 -1
- package/lib/commonjs/utils/types.js +8 -2
- package/lib/commonjs/utils/types.js.map +1 -1
- package/lib/commonjs/utils.js +2 -2
- package/lib/commonjs/utils.js.map +1 -1
- package/lib/module/HMSInstanceSetup.js +3 -15
- package/lib/module/HMSInstanceSetup.js.map +1 -1
- package/lib/module/HMSPrebuilt.js +17 -5
- package/lib/module/HMSPrebuilt.js.map +1 -1
- package/lib/module/HMSRoomSetup.js +81 -26
- package/lib/module/HMSRoomSetup.js.map +1 -1
- package/lib/module/Icons/AlertTriangle/assets/alert-triangle.png +0 -0
- package/lib/module/Icons/AlertTriangle/assets/alert-triangle@2x.png +0 -0
- package/lib/module/Icons/AlertTriangle/assets/alert-triangle@3x.png +0 -0
- package/lib/module/Icons/AlertTriangle/index.js +26 -0
- package/lib/module/Icons/AlertTriangle/index.js.map +1 -0
- package/lib/module/Icons/AnswerPhone/index.js +5 -1
- package/lib/module/Icons/AnswerPhone/index.js.map +1 -1
- package/lib/module/Icons/BRB/assets/BRB.png +0 -0
- package/lib/module/Icons/BRB/assets/BRB@2x.png +0 -0
- package/lib/module/Icons/BRB/assets/BRB@3x.png +0 -0
- package/lib/module/Icons/BRB/index.js +27 -0
- package/lib/module/Icons/BRB/index.js.map +1 -0
- package/lib/module/Icons/Bluetooth/index.js +5 -1
- package/lib/module/Icons/Bluetooth/index.js.map +1 -1
- package/lib/module/Icons/Camera/index.js +5 -1
- package/lib/module/Icons/Camera/index.js.map +1 -1
- package/lib/module/Icons/Chat/index.js +5 -1
- package/lib/module/Icons/Chat/index.js.map +1 -1
- package/lib/module/Icons/Check/assets/check.png +0 -0
- package/lib/module/Icons/Check/assets/check@2x.png +0 -0
- package/lib/module/Icons/Check/assets/check@3x.png +0 -0
- package/lib/module/Icons/Check/index.js +26 -0
- package/lib/module/Icons/Check/index.js.map +1 -0
- package/lib/module/Icons/Chevron/index.js +5 -1
- package/lib/module/Icons/Chevron/index.js.map +1 -1
- package/lib/module/Icons/Close/index.js +5 -1
- package/lib/module/Icons/Close/index.js.map +1 -1
- package/lib/module/Icons/Hamburger/assets/hamburger.png +0 -0
- package/lib/module/Icons/Hamburger/assets/hamburger@2x.png +0 -0
- package/lib/module/Icons/Hamburger/assets/hamburger@3x.png +0 -0
- package/lib/module/Icons/Hamburger/index.js +26 -0
- package/lib/module/Icons/Hamburger/index.js.map +1 -0
- package/lib/module/Icons/Hand/index.js +6 -4
- package/lib/module/Icons/Hand/index.js.map +1 -1
- package/lib/module/Icons/Headphones/index.js +5 -1
- package/lib/module/Icons/Headphones/index.js.map +1 -1
- package/lib/module/Icons/Maximize/assets/maximize.png +0 -0
- package/lib/module/Icons/Maximize/assets/maximize@2x.png +0 -0
- package/lib/module/Icons/Maximize/assets/maximize@3x.png +0 -0
- package/lib/module/Icons/Maximize/index.js +26 -0
- package/lib/module/Icons/Maximize/index.js.map +1 -0
- package/lib/module/Icons/Mic/index.js +5 -1
- package/lib/module/Icons/Mic/index.js.map +1 -1
- package/lib/module/Icons/Minimize/assets/minimize.png +0 -0
- package/lib/module/Icons/Minimize/assets/minimize@2x.png +0 -0
- package/lib/module/Icons/Minimize/assets/minimize@3x.png +0 -0
- package/lib/module/Icons/Minimize/index.js +26 -0
- package/lib/module/Icons/Minimize/index.js.map +1 -0
- package/lib/module/Icons/Participants/index.js +5 -1
- package/lib/module/Icons/Participants/index.js.map +1 -1
- package/lib/module/Icons/Pencil/assets/pencil.png +0 -0
- package/lib/module/Icons/Pencil/assets/pencil@2x.png +0 -0
- package/lib/module/Icons/Pencil/assets/pencil@3x.png +0 -0
- package/lib/module/Icons/Pencil/index.js +26 -0
- package/lib/module/Icons/Pencil/index.js.map +1 -0
- package/lib/module/Icons/Pin/assets/pin.png +0 -0
- package/lib/module/Icons/Pin/assets/pin@2x.png +0 -0
- package/lib/module/Icons/Pin/assets/pin@3x.png +0 -0
- package/lib/module/Icons/Pin/index.js +26 -0
- package/lib/module/Icons/Pin/index.js.map +1 -0
- package/lib/module/Icons/Radio/assets/radio.png +0 -0
- package/lib/module/Icons/Radio/assets/radio@2x.png +0 -0
- package/lib/module/Icons/Radio/assets/radio@3x.png +0 -0
- package/lib/module/Icons/Radio/index.js +22 -0
- package/lib/module/Icons/Radio/index.js.map +1 -0
- package/lib/module/Icons/Recording/assets/recording.png +0 -0
- package/lib/module/Icons/Recording/assets/recording@2x.png +0 -0
- package/lib/module/Icons/Recording/assets/recording@3x.png +0 -0
- package/lib/module/Icons/Recording/index.js +26 -0
- package/lib/module/Icons/Recording/index.js.map +1 -0
- package/lib/module/Icons/RotateCamera/index.js +5 -1
- package/lib/module/Icons/RotateCamera/index.js.map +1 -1
- package/lib/module/Icons/ScreenShare/index.js +5 -1
- package/lib/module/Icons/ScreenShare/index.js.map +1 -1
- package/lib/module/Icons/Speaker/index.js +5 -1
- package/lib/module/Icons/Speaker/index.js.map +1 -1
- package/lib/module/Icons/Star/assets/star.png +0 -0
- package/lib/module/Icons/Star/assets/star@2x.png +0 -0
- package/lib/module/Icons/Star/assets/star@3x.png +0 -0
- package/lib/module/Icons/Star/index.js +26 -0
- package/lib/module/Icons/Star/index.js.map +1 -0
- package/lib/module/Icons/Stop/assets/stop.png +0 -0
- package/lib/module/Icons/Stop/assets/stop@2x.png +0 -0
- package/lib/module/Icons/Stop/assets/stop@3x.png +0 -0
- package/lib/module/Icons/Stop/index.js +26 -0
- package/lib/module/Icons/Stop/index.js.map +1 -0
- package/lib/module/Icons/ThreeDots/index.js +5 -1
- package/lib/module/Icons/ThreeDots/index.js.map +1 -1
- package/lib/module/Icons/Wave/index.js +5 -1
- package/lib/module/Icons/Wave/index.js.map +1 -1
- package/lib/module/Icons/index.js +12 -0
- package/lib/module/Icons/index.js.map +1 -1
- package/lib/module/components/AvatarView.js +1 -2
- package/lib/module/components/AvatarView.js.map +1 -1
- package/lib/module/components/BackButton.js +9 -7
- package/lib/module/components/BackButton.js.map +1 -1
- package/lib/module/components/BottomSheet.js +146 -0
- package/lib/module/components/BottomSheet.js.map +1 -0
- package/lib/module/components/ChangeNameModalContent.js +122 -0
- package/lib/module/components/ChangeNameModalContent.js.map +1 -0
- package/lib/module/components/CompanyLogo.js +30 -0
- package/lib/module/components/CompanyLogo.js.map +1 -0
- package/lib/module/components/CustomInput.js +2 -3
- package/lib/module/components/CustomInput.js.map +1 -1
- package/lib/module/components/DisplayView.js +16 -61
- package/lib/module/components/DisplayView.js.map +1 -1
- package/lib/module/components/EndRoomModalContent.js +76 -0
- package/lib/module/components/EndRoomModalContent.js.map +1 -0
- package/lib/module/components/Footer.js +9 -10
- package/lib/module/components/Footer.js.map +1 -1
- package/lib/module/components/GridView.js +55 -10
- package/lib/module/components/GridView.js.map +1 -1
- package/lib/module/components/HMSBaseButton.js +57 -0
- package/lib/module/components/HMSBaseButton.js.map +1 -0
- package/lib/module/components/HMSDangerButton.js +44 -0
- package/lib/module/components/HMSDangerButton.js.map +1 -0
- package/lib/module/components/HMSHLSStreamLoading.js +56 -0
- package/lib/module/components/HMSHLSStreamLoading.js.map +1 -0
- package/lib/module/components/HMSLocalVideoView.js +32 -0
- package/lib/module/components/HMSLocalVideoView.js.map +1 -0
- package/lib/module/components/{HMSSpeakerSettings.js → HMSManageAudioOutput.js} +70 -77
- package/lib/module/components/HMSManageAudioOutput.js.map +1 -0
- package/lib/module/components/HMSManageCameraRotation.js +5 -4
- package/lib/module/components/HMSManageCameraRotation.js.map +1 -1
- package/lib/module/components/HMSManageLeave.js +95 -161
- package/lib/module/components/HMSManageLeave.js.map +1 -1
- package/lib/module/components/HMSManageLocalAudio.js +1 -9
- package/lib/module/components/HMSManageLocalAudio.js.map +1 -1
- package/lib/module/components/HMSManageLocalVideo.js +1 -9
- package/lib/module/components/HMSManageLocalVideo.js.map +1 -1
- package/lib/module/components/HMSMeetingEnded.js +26 -0
- package/lib/module/components/HMSMeetingEnded.js.map +1 -0
- package/lib/module/components/HMSPreviewEditName.js +7 -38
- package/lib/module/components/HMSPreviewEditName.js.map +1 -1
- package/lib/module/components/HMSPreviewHLSLiveIndicator.js +62 -0
- package/lib/module/components/HMSPreviewHLSLiveIndicator.js.map +1 -0
- package/lib/module/components/HMSPreviewJoinButton.js +28 -39
- package/lib/module/components/HMSPreviewJoinButton.js.map +1 -1
- package/lib/module/components/HMSPreviewNetworkQuality.js +36 -0
- package/lib/module/components/HMSPreviewNetworkQuality.js.map +1 -0
- package/lib/module/components/HMSPreviewPeersList.js +21 -33
- package/lib/module/components/HMSPreviewPeersList.js.map +1 -1
- package/lib/module/components/HMSPreviewSubtitle.js +43 -7
- package/lib/module/components/HMSPreviewSubtitle.js.map +1 -1
- package/lib/module/components/HMSPreviewTile.js +18 -26
- package/lib/module/components/HMSPreviewTile.js.map +1 -1
- package/lib/module/components/HMSPreviewTitle.js +14 -6
- package/lib/module/components/HMSPreviewTitle.js.map +1 -1
- package/lib/module/components/HMSPrimaryButton.js +44 -0
- package/lib/module/components/HMSPrimaryButton.js.map +1 -0
- package/lib/module/components/HMSRecordingIndicator.js +37 -0
- package/lib/module/components/HMSRecordingIndicator.js.map +1 -0
- package/lib/module/components/HMSRoomOptions.js +23 -11
- package/lib/module/components/HMSRoomOptions.js.map +1 -1
- package/lib/module/components/HMSShowNetworkQuality.js +6 -7
- package/lib/module/components/HMSShowNetworkQuality.js.map +1 -1
- package/lib/module/components/HMSTextInput.js +57 -0
- package/lib/module/components/HMSTextInput.js.map +1 -0
- package/lib/module/components/Header.js +32 -32
- package/lib/module/components/Header.js.map +1 -1
- package/lib/module/components/LocalPeerRegularVideoView.js +17 -0
- package/lib/module/components/LocalPeerRegularVideoView.js.map +1 -0
- package/lib/module/components/LocalPeerScreenshareView.js +66 -0
- package/lib/module/components/LocalPeerScreenshareView.js.map +1 -0
- package/lib/module/components/Meeting.js +15 -4
- package/lib/module/components/Meeting.js.map +1 -1
- package/lib/module/components/MenuModal/Menu.js +1 -2
- package/lib/module/components/MenuModal/Menu.js.map +1 -1
- package/lib/module/components/MiniView.js +154 -0
- package/lib/module/components/MiniView.js.map +1 -0
- package/lib/module/components/Modals.js +37 -378
- package/lib/module/components/Modals.js.map +1 -1
- package/lib/module/components/PaginationDots.js +47 -0
- package/lib/module/components/PaginationDots.js.map +1 -0
- package/lib/module/components/Participants/ParticipantsList.js +1 -20
- package/lib/module/components/Participants/ParticipantsList.js.map +1 -1
- package/lib/module/components/ParticipantsCount.js +46 -0
- package/lib/module/components/ParticipantsCount.js.map +1 -0
- package/lib/module/components/PeerMinimizedView.js +104 -0
- package/lib/module/components/PeerMinimizedView.js.map +1 -0
- package/lib/module/components/PeerSettingsModalContent.js +72 -66
- package/lib/module/components/PeerSettingsModalContent.js.map +1 -1
- package/lib/module/components/PeerVideoTile/AvatarView.js +66 -0
- package/lib/module/components/PeerVideoTile/AvatarView.js.map +1 -0
- package/lib/module/components/PeerVideoTile/PeerAudioMutedIndicator.js +35 -0
- package/lib/module/components/PeerVideoTile/PeerAudioMutedIndicator.js.map +1 -0
- package/lib/module/components/PeerVideoTile/PeerMetadata.js +35 -0
- package/lib/module/components/PeerVideoTile/PeerMetadata.js.map +1 -0
- package/lib/module/components/PeerVideoTile/PeerNameAndNetwork.js +65 -0
- package/lib/module/components/PeerVideoTile/PeerNameAndNetwork.js.map +1 -0
- package/lib/module/components/PeerVideoTile/PeerVideoTileView.js +136 -0
- package/lib/module/components/PeerVideoTile/PeerVideoTileView.js.map +1 -0
- package/lib/module/components/PeerVideoTile/VideoView.js +75 -0
- package/lib/module/components/PeerVideoTile/VideoView.js.map +1 -0
- package/lib/module/components/PeerVideoTile/index.js +2 -0
- package/lib/module/components/PeerVideoTile/index.js.map +1 -0
- package/lib/module/components/PressableIcon.js +15 -8
- package/lib/module/components/PressableIcon.js.map +1 -1
- package/lib/module/components/Preview.js +93 -72
- package/lib/module/components/Preview.js.map +1 -1
- package/lib/module/components/RoomSettingsModalContent.js +231 -459
- package/lib/module/components/RoomSettingsModalContent.js.map +1 -1
- package/lib/module/components/RoomSettingsModalDebugModeContent.js +287 -0
- package/lib/module/components/RoomSettingsModalDebugModeContent.js.map +1 -0
- package/lib/module/components/StopRecordingModalContent.js +88 -0
- package/lib/module/components/StopRecordingModalContent.js.map +1 -0
- package/lib/module/components/Tile.js +30 -91
- package/lib/module/components/Tile.js.map +1 -1
- package/lib/module/components/TilesContainer.js +100 -10
- package/lib/module/components/TilesContainer.js.map +1 -1
- package/lib/module/components/UnmountAfterDelay.js +39 -0
- package/lib/module/components/UnmountAfterDelay.js.map +1 -0
- package/lib/module/components/WebrtcView.js +41 -0
- package/lib/module/components/WebrtcView.js.map +1 -0
- package/lib/module/components/WelcomeInMeeting.js +45 -0
- package/lib/module/components/WelcomeInMeeting.js.map +1 -0
- package/lib/module/components/index.js +0 -1
- package/lib/module/components/index.js.map +1 -1
- package/lib/module/hooks/useHmsInstance.js +0 -1
- package/lib/module/hooks/useHmsInstance.js.map +1 -1
- package/lib/module/hooks-sdk-selectors.js +4 -0
- package/lib/module/hooks-sdk-selectors.js.map +1 -1
- package/lib/module/hooks-sdk.js +16 -1
- package/lib/module/hooks-sdk.js.map +1 -1
- package/lib/module/hooks-util-selectors.js +12 -0
- package/lib/module/hooks-util-selectors.js.map +1 -1
- package/lib/module/hooks-util.js +417 -104
- package/lib/module/hooks-util.js.map +1 -1
- package/lib/module/modules/HMSManager.js +17 -0
- package/lib/module/modules/HMSManager.js.map +1 -0
- package/lib/module/modules/parser.js +16 -0
- package/lib/module/modules/parser.js.map +1 -0
- package/lib/module/peerTrackNodeUtils.js +6 -2
- package/lib/module/peerTrackNodeUtils.js.map +1 -1
- package/lib/module/redux/actionTypes.js +20 -1
- package/lib/module/redux/actionTypes.js.map +1 -1
- package/lib/module/redux/actions/index.js +54 -0
- package/lib/module/redux/actions/index.js.map +1 -1
- package/lib/module/redux/reducers/appState.js +70 -1
- package/lib/module/redux/reducers/appState.js.map +1 -1
- package/lib/module/redux/reducers/hmsStates.js +7 -1
- package/lib/module/redux/reducers/hmsStates.js.map +1 -1
- package/lib/module/redux/reducers/userState.js +3 -1
- package/lib/module/redux/reducers/userState.js.map +1 -1
- package/lib/module/utils/functions.js +47 -0
- package/lib/module/utils/functions.js.map +1 -1
- package/lib/module/utils/theme.js +58 -5
- package/lib/module/utils/theme.js.map +1 -1
- package/lib/module/utils/types.js +6 -1
- package/lib/module/utils/types.js.map +1 -1
- package/lib/module/utils.js +2 -2
- package/lib/module/utils.js.map +1 -1
- package/lib/typescript/HMSInstanceSetup.d.ts.map +1 -1
- package/lib/typescript/HMSPrebuilt.d.ts +3 -3
- package/lib/typescript/HMSPrebuilt.d.ts.map +1 -1
- package/lib/typescript/HMSRoomSetup.d.ts.map +1 -1
- package/lib/typescript/Icons/AlertTriangle/index.d.ts +7 -0
- package/lib/typescript/Icons/AlertTriangle/index.d.ts.map +1 -0
- package/lib/typescript/Icons/AnswerPhone/index.d.ts.map +1 -1
- package/lib/typescript/Icons/BRB/index.d.ts +7 -0
- package/lib/typescript/Icons/BRB/index.d.ts.map +1 -0
- package/lib/typescript/Icons/Bluetooth/index.d.ts.map +1 -1
- package/lib/typescript/Icons/Camera/index.d.ts.map +1 -1
- package/lib/typescript/Icons/Chat/index.d.ts.map +1 -1
- package/lib/typescript/Icons/Check/index.d.ts +7 -0
- package/lib/typescript/Icons/Check/index.d.ts.map +1 -0
- package/lib/typescript/Icons/Chevron/index.d.ts.map +1 -1
- package/lib/typescript/Icons/Close/index.d.ts.map +1 -1
- package/lib/typescript/Icons/Hamburger/index.d.ts +7 -0
- package/lib/typescript/Icons/Hamburger/index.d.ts.map +1 -0
- package/lib/typescript/Icons/Hand/index.d.ts.map +1 -1
- package/lib/typescript/Icons/Headphones/index.d.ts.map +1 -1
- package/lib/typescript/Icons/Maximize/index.d.ts +7 -0
- package/lib/typescript/Icons/Maximize/index.d.ts.map +1 -0
- package/lib/typescript/Icons/Mic/index.d.ts.map +1 -1
- package/lib/typescript/Icons/Minimize/index.d.ts +7 -0
- package/lib/typescript/Icons/Minimize/index.d.ts.map +1 -0
- package/lib/typescript/Icons/Participants/index.d.ts.map +1 -1
- package/lib/typescript/Icons/Pencil/index.d.ts +7 -0
- package/lib/typescript/Icons/Pencil/index.d.ts.map +1 -0
- package/lib/typescript/Icons/Pin/index.d.ts +7 -0
- package/lib/typescript/Icons/Pin/index.d.ts.map +1 -0
- package/lib/typescript/Icons/Radio/index.d.ts +7 -0
- package/lib/typescript/Icons/Radio/index.d.ts.map +1 -0
- package/lib/typescript/Icons/Recording/index.d.ts +7 -0
- package/lib/typescript/Icons/Recording/index.d.ts.map +1 -0
- package/lib/typescript/Icons/RotateCamera/index.d.ts.map +1 -1
- package/lib/typescript/Icons/ScreenShare/index.d.ts.map +1 -1
- package/lib/typescript/Icons/Speaker/index.d.ts.map +1 -1
- package/lib/typescript/Icons/Star/index.d.ts +7 -0
- package/lib/typescript/Icons/Star/index.d.ts.map +1 -0
- package/lib/typescript/Icons/Stop/index.d.ts +7 -0
- package/lib/typescript/Icons/Stop/index.d.ts.map +1 -0
- package/lib/typescript/Icons/ThreeDots/index.d.ts.map +1 -1
- package/lib/typescript/Icons/Wave/index.d.ts.map +1 -1
- package/lib/typescript/Icons/index.d.ts +12 -0
- package/lib/typescript/Icons/index.d.ts.map +1 -1
- package/lib/typescript/components/BackButton.d.ts.map +1 -1
- package/lib/typescript/components/BottomSheet.d.ts +25 -0
- package/lib/typescript/components/BottomSheet.d.ts.map +1 -0
- package/lib/typescript/components/ChangeNameModalContent.d.ts +6 -0
- package/lib/typescript/components/ChangeNameModalContent.d.ts.map +1 -0
- package/lib/typescript/components/CompanyLogo.d.ts +7 -0
- package/lib/typescript/components/CompanyLogo.d.ts.map +1 -0
- package/lib/typescript/components/CustomInput.d.ts +1 -1
- package/lib/typescript/components/CustomInput.d.ts.map +1 -1
- package/lib/typescript/components/DisplayView.d.ts.map +1 -1
- package/lib/typescript/components/EndRoomModalContent.d.ts +6 -0
- package/lib/typescript/components/EndRoomModalContent.d.ts.map +1 -0
- package/lib/typescript/components/Footer.d.ts.map +1 -1
- package/lib/typescript/components/GridView.d.ts +3 -4
- package/lib/typescript/components/GridView.d.ts.map +1 -1
- package/lib/typescript/components/HMSBaseButton.d.ts +15 -0
- package/lib/typescript/components/HMSBaseButton.d.ts.map +1 -0
- package/lib/typescript/components/HMSDangerButton.d.ts +12 -0
- package/lib/typescript/components/HMSDangerButton.d.ts.map +1 -0
- package/lib/typescript/components/HMSHLSStreamLoading.d.ts +3 -0
- package/lib/typescript/components/HMSHLSStreamLoading.d.ts.map +1 -0
- package/lib/typescript/components/HMSLocalVideoView.d.ts +3 -0
- package/lib/typescript/components/HMSLocalVideoView.d.ts.map +1 -0
- package/lib/typescript/components/HMSManageAudioOutput.d.ts +3 -0
- package/lib/typescript/components/HMSManageAudioOutput.d.ts.map +1 -0
- package/lib/typescript/components/HMSManageLeave.d.ts.map +1 -1
- package/lib/typescript/components/HMSManageLocalAudio.d.ts.map +1 -1
- package/lib/typescript/components/HMSManageLocalVideo.d.ts.map +1 -1
- package/lib/typescript/components/HMSMeetingEnded.d.ts +3 -0
- package/lib/typescript/components/HMSMeetingEnded.d.ts.map +1 -0
- package/lib/typescript/components/HMSPreviewEditName.d.ts.map +1 -1
- package/lib/typescript/components/HMSPreviewHLSLiveIndicator.d.ts +3 -0
- package/lib/typescript/components/HMSPreviewHLSLiveIndicator.d.ts.map +1 -0
- package/lib/typescript/components/HMSPreviewJoinButton.d.ts.map +1 -1
- package/lib/typescript/components/HMSPreviewNetworkQuality.d.ts +3 -0
- package/lib/typescript/components/HMSPreviewNetworkQuality.d.ts.map +1 -0
- package/lib/typescript/components/HMSPreviewPeersList.d.ts.map +1 -1
- package/lib/typescript/components/HMSPreviewSubtitle.d.ts.map +1 -1
- package/lib/typescript/components/HMSPreviewTile.d.ts.map +1 -1
- package/lib/typescript/components/HMSPreviewTitle.d.ts.map +1 -1
- package/lib/typescript/components/HMSPrimaryButton.d.ts +12 -0
- package/lib/typescript/components/HMSPrimaryButton.d.ts.map +1 -0
- package/lib/typescript/components/HMSRecordingIndicator.d.ts +3 -0
- package/lib/typescript/components/HMSRecordingIndicator.d.ts.map +1 -0
- package/lib/typescript/components/HMSRoomOptions.d.ts.map +1 -1
- package/lib/typescript/components/HMSShowNetworkQuality.d.ts.map +1 -1
- package/lib/typescript/components/HMSTextInput.d.ts +10 -0
- package/lib/typescript/components/HMSTextInput.d.ts.map +1 -0
- package/lib/typescript/components/Header.d.ts.map +1 -1
- package/lib/typescript/components/LocalPeerRegularVideoView.d.ts +6 -0
- package/lib/typescript/components/LocalPeerRegularVideoView.d.ts.map +1 -0
- package/lib/typescript/components/LocalPeerScreenshareView.d.ts +3 -0
- package/lib/typescript/components/LocalPeerScreenshareView.d.ts.map +1 -0
- package/lib/typescript/components/Meeting.d.ts.map +1 -1
- package/lib/typescript/components/MenuModal/Menu.d.ts.map +1 -1
- package/lib/typescript/components/MiniView.d.ts +9 -0
- package/lib/typescript/components/MiniView.d.ts.map +1 -0
- package/lib/typescript/components/Modals.d.ts +1 -16
- package/lib/typescript/components/Modals.d.ts.map +1 -1
- package/lib/typescript/components/PaginationDots.d.ts +6 -0
- package/lib/typescript/components/PaginationDots.d.ts.map +1 -0
- package/lib/typescript/components/Participants/ParticipantsList.d.ts.map +1 -1
- package/lib/typescript/components/ParticipantsCount.d.ts +3 -0
- package/lib/typescript/components/ParticipantsCount.d.ts.map +1 -0
- package/lib/typescript/components/PeerMinimizedView.d.ts +12 -0
- package/lib/typescript/components/PeerMinimizedView.d.ts.map +1 -0
- package/lib/typescript/components/PeerSettingsModalContent.d.ts +1 -0
- package/lib/typescript/components/PeerSettingsModalContent.d.ts.map +1 -1
- package/lib/typescript/components/PeerVideoTile/AvatarView.d.ts +9 -0
- package/lib/typescript/components/PeerVideoTile/AvatarView.d.ts.map +1 -0
- package/lib/typescript/components/PeerVideoTile/PeerAudioMutedIndicator.d.ts +6 -0
- package/lib/typescript/components/PeerVideoTile/PeerAudioMutedIndicator.d.ts.map +1 -0
- package/lib/typescript/components/PeerVideoTile/PeerMetadata.d.ts +6 -0
- package/lib/typescript/components/PeerVideoTile/PeerMetadata.d.ts.map +1 -0
- package/lib/typescript/components/PeerVideoTile/PeerNameAndNetwork.d.ts +10 -0
- package/lib/typescript/components/PeerVideoTile/PeerNameAndNetwork.d.ts.map +1 -0
- package/lib/typescript/components/PeerVideoTile/PeerVideoTileView.d.ts +10 -0
- package/lib/typescript/components/PeerVideoTile/PeerVideoTileView.d.ts.map +1 -0
- package/lib/typescript/components/PeerVideoTile/VideoView.d.ts +13 -0
- package/lib/typescript/components/PeerVideoTile/VideoView.d.ts.map +1 -0
- package/lib/typescript/components/PeerVideoTile/index.d.ts +1 -0
- package/lib/typescript/components/PeerVideoTile/index.d.ts.map +1 -0
- package/lib/typescript/components/PressableIcon.d.ts.map +1 -1
- package/lib/typescript/components/Preview.d.ts.map +1 -1
- package/lib/typescript/components/RoomSettingsModalContent.d.ts +2 -2
- package/lib/typescript/components/RoomSettingsModalContent.d.ts.map +1 -1
- package/lib/typescript/components/RoomSettingsModalDebugModeContent.d.ts +17 -0
- package/lib/typescript/components/RoomSettingsModalDebugModeContent.d.ts.map +1 -0
- package/lib/typescript/components/StopRecordingModalContent.d.ts +6 -0
- package/lib/typescript/components/StopRecordingModalContent.d.ts.map +1 -0
- package/lib/typescript/components/Tile.d.ts +12 -3
- package/lib/typescript/components/Tile.d.ts.map +1 -1
- package/lib/typescript/components/TilesContainer.d.ts.map +1 -1
- package/lib/typescript/components/UnmountAfterDelay.d.ts +12 -0
- package/lib/typescript/components/UnmountAfterDelay.d.ts.map +1 -0
- package/lib/typescript/components/WebrtcView.d.ts +10 -0
- package/lib/typescript/components/WebrtcView.d.ts.map +1 -0
- package/lib/typescript/components/WelcomeInMeeting.d.ts +5 -0
- package/lib/typescript/components/WelcomeInMeeting.d.ts.map +1 -0
- package/lib/typescript/components/index.d.ts +0 -1
- package/lib/typescript/components/index.d.ts.map +1 -1
- package/lib/typescript/hooks-sdk-selectors.d.ts +2 -0
- package/lib/typescript/hooks-sdk-selectors.d.ts.map +1 -1
- package/lib/typescript/hooks-sdk.d.ts +1 -0
- package/lib/typescript/hooks-sdk.d.ts.map +1 -1
- package/lib/typescript/hooks-util-selectors.d.ts +2 -0
- package/lib/typescript/hooks-util-selectors.d.ts.map +1 -1
- package/lib/typescript/hooks-util.d.ts +24 -4
- package/lib/typescript/hooks-util.d.ts.map +1 -1
- package/lib/typescript/modules/HMSManager.d.ts +4 -0
- package/lib/typescript/modules/HMSManager.d.ts.map +1 -0
- package/lib/typescript/modules/parser.d.ts +3 -0
- package/lib/typescript/modules/parser.d.ts.map +1 -0
- package/lib/typescript/peerTrackNodeUtils.d.ts +1 -0
- package/lib/typescript/peerTrackNodeUtils.d.ts.map +1 -1
- package/lib/typescript/redux/actionTypes.d.ts +11 -1
- package/lib/typescript/redux/actionTypes.d.ts.map +1 -1
- package/lib/typescript/redux/actions/index.d.ts +61 -3
- package/lib/typescript/redux/actions/index.d.ts.map +1 -1
- package/lib/typescript/redux/index.d.ts +10 -1
- package/lib/typescript/redux/index.d.ts.map +1 -1
- package/lib/typescript/redux/reducers/appState.d.ts +8 -0
- package/lib/typescript/redux/reducers/appState.d.ts.map +1 -1
- package/lib/typescript/redux/reducers/hmsStates.d.ts +7 -1
- package/lib/typescript/redux/reducers/hmsStates.d.ts.map +1 -1
- package/lib/typescript/redux/reducers/index.d.ts +10 -1
- package/lib/typescript/redux/reducers/index.d.ts.map +1 -1
- package/lib/typescript/redux/reducers/userState.d.ts +3 -2
- package/lib/typescript/redux/reducers/userState.d.ts.map +1 -1
- package/lib/typescript/utils/functions.d.ts +14 -0
- package/lib/typescript/utils/functions.d.ts.map +1 -1
- package/lib/typescript/utils/theme.d.ts +7 -3
- package/lib/typescript/utils/theme.d.ts.map +1 -1
- package/lib/typescript/utils/types.d.ts +8 -4
- package/lib/typescript/utils/types.d.ts.map +1 -1
- package/package.json +11 -16
- package/src/HMSInstanceSetup.tsx +5 -31
- package/src/HMSPrebuilt.tsx +27 -8
- package/src/HMSRoomSetup.tsx +98 -23
- package/src/Icons/AlertTriangle/assets/alert-triangle.png +0 -0
- package/src/Icons/AlertTriangle/assets/alert-triangle@2x.png +0 -0
- package/src/Icons/AlertTriangle/assets/alert-triangle@3x.png +0 -0
- package/src/Icons/AlertTriangle/index.tsx +33 -0
- package/src/Icons/AnswerPhone/index.tsx +7 -1
- package/src/Icons/BRB/assets/BRB.png +0 -0
- package/src/Icons/BRB/assets/BRB@2x.png +0 -0
- package/src/Icons/BRB/assets/BRB@3x.png +0 -0
- package/src/Icons/BRB/index.tsx +31 -0
- package/src/Icons/Bluetooth/index.tsx +7 -1
- package/src/Icons/Camera/index.tsx +7 -1
- package/src/Icons/Chat/index.tsx +7 -1
- package/src/Icons/Check/assets/check.png +0 -0
- package/src/Icons/Check/assets/check@2x.png +0 -0
- package/src/Icons/Check/assets/check@3x.png +0 -0
- package/src/Icons/Check/index.tsx +33 -0
- package/src/Icons/Chevron/index.tsx +7 -1
- package/src/Icons/Close/index.tsx +7 -1
- package/src/Icons/Hamburger/assets/hamburger.png +0 -0
- package/src/Icons/Hamburger/assets/hamburger@2x.png +0 -0
- package/src/Icons/Hamburger/assets/hamburger@3x.png +0 -0
- package/src/Icons/Hamburger/index.tsx +33 -0
- package/src/Icons/Hand/index.tsx +6 -3
- package/src/Icons/Headphones/index.tsx +7 -1
- package/src/Icons/Maximize/assets/maximize.png +0 -0
- package/src/Icons/Maximize/assets/maximize@2x.png +0 -0
- package/src/Icons/Maximize/assets/maximize@3x.png +0 -0
- package/src/Icons/Maximize/index.tsx +33 -0
- package/src/Icons/Mic/index.tsx +7 -1
- package/src/Icons/Minimize/assets/minimize.png +0 -0
- package/src/Icons/Minimize/assets/minimize@2x.png +0 -0
- package/src/Icons/Minimize/assets/minimize@3x.png +0 -0
- package/src/Icons/Minimize/index.tsx +33 -0
- package/src/Icons/Participants/index.tsx +7 -1
- package/src/Icons/Pencil/assets/pencil.png +0 -0
- package/src/Icons/Pencil/assets/pencil@2x.png +0 -0
- package/src/Icons/Pencil/assets/pencil@3x.png +0 -0
- package/src/Icons/Pencil/index.tsx +33 -0
- package/src/Icons/Pin/assets/pin.png +0 -0
- package/src/Icons/Pin/assets/pin@2x.png +0 -0
- package/src/Icons/Pin/assets/pin@3x.png +0 -0
- package/src/Icons/Pin/index.tsx +30 -0
- package/src/Icons/Radio/assets/radio.png +0 -0
- package/src/Icons/Radio/assets/radio@2x.png +0 -0
- package/src/Icons/Radio/assets/radio@3x.png +0 -0
- package/src/Icons/Radio/index.tsx +27 -0
- package/src/Icons/Recording/assets/recording.png +0 -0
- package/src/Icons/Recording/assets/recording@2x.png +0 -0
- package/src/Icons/Recording/assets/recording@3x.png +0 -0
- package/src/Icons/Recording/index.tsx +33 -0
- package/src/Icons/RotateCamera/index.tsx +7 -1
- package/src/Icons/ScreenShare/index.tsx +7 -1
- package/src/Icons/Speaker/index.tsx +12 -1
- package/src/Icons/Star/assets/star.png +0 -0
- package/src/Icons/Star/assets/star@2x.png +0 -0
- package/src/Icons/Star/assets/star@3x.png +0 -0
- package/src/Icons/Star/index.tsx +30 -0
- package/src/Icons/Stop/assets/stop.png +0 -0
- package/src/Icons/Stop/assets/stop@2x.png +0 -0
- package/src/Icons/Stop/assets/stop@3x.png +0 -0
- package/src/Icons/Stop/index.tsx +33 -0
- package/src/Icons/ThreeDots/index.tsx +7 -1
- package/src/Icons/Wave/index.tsx +7 -1
- package/src/Icons/index.ts +12 -0
- package/src/components/AvatarView.tsx +1 -2
- package/src/components/BackButton.tsx +9 -6
- package/src/components/BottomSheet.tsx +191 -0
- package/src/components/ChangeNameModalContent.tsx +157 -0
- package/src/components/CompanyLogo.tsx +35 -0
- package/src/components/CustomInput.tsx +2 -3
- package/src/components/DisplayView.tsx +16 -75
- package/src/components/EndRoomModalContent.tsx +90 -0
- package/src/components/Footer.tsx +7 -7
- package/src/components/GridView.tsx +91 -20
- package/src/components/HLSView.tsx +1 -1
- package/src/components/HMSBaseButton.tsx +91 -0
- package/src/components/HMSDangerButton.tsx +65 -0
- package/src/components/HMSHLSStreamLoading.tsx +68 -0
- package/src/components/HMSLocalVideoView.tsx +42 -0
- package/src/components/{HMSSpeakerSettings.tsx → HMSManageAudioOutput.tsx} +99 -78
- package/src/components/HMSManageCameraRotation.tsx +11 -8
- package/src/components/HMSManageLeave.tsx +107 -183
- package/src/components/HMSManageLocalAudio.tsx +1 -10
- package/src/components/HMSManageLocalVideo.tsx +1 -10
- package/src/components/HMSMeetingEnded.tsx +28 -0
- package/src/components/HMSPreviewEditName.tsx +4 -45
- package/src/components/HMSPreviewHLSLiveIndicator.tsx +66 -0
- package/src/components/HMSPreviewJoinButton.tsx +36 -51
- package/src/components/HMSPreviewNetworkQuality.tsx +43 -0
- package/src/components/HMSPreviewPeersList.tsx +25 -54
- package/src/components/HMSPreviewSubtitle.tsx +46 -6
- package/src/components/HMSPreviewTile.tsx +20 -31
- package/src/components/HMSPreviewTitle.tsx +18 -5
- package/src/components/HMSPrimaryButton.tsx +63 -0
- package/src/components/HMSRecordingIndicator.tsx +37 -0
- package/src/components/HMSRoomOptions.tsx +30 -16
- package/src/components/HMSShowNetworkQuality.tsx +7 -6
- package/src/components/HMSTextInput.tsx +78 -0
- package/src/components/Header.tsx +37 -36
- package/src/components/LocalPeerRegularVideoView.tsx +28 -0
- package/src/components/LocalPeerScreenshareView.tsx +72 -0
- package/src/components/Meeting.tsx +21 -3
- package/src/components/MenuModal/Menu.tsx +1 -1
- package/src/components/MiniView.tsx +213 -0
- package/src/components/Modals.tsx +5 -409
- package/src/components/PaginationDots.tsx +65 -0
- package/src/components/Participants/ParticipantsList.tsx +0 -24
- package/src/components/ParticipantsCount.tsx +52 -0
- package/src/components/PeerMinimizedView.tsx +131 -0
- package/src/components/PeerSettingsModalContent.tsx +108 -66
- package/src/components/PeerVideoTile/AvatarView.tsx +79 -0
- package/src/components/PeerVideoTile/PeerAudioMutedIndicator.tsx +41 -0
- package/src/components/PeerVideoTile/PeerMetadata.tsx +46 -0
- package/src/components/PeerVideoTile/PeerNameAndNetwork.tsx +81 -0
- package/src/components/PeerVideoTile/PeerVideoTileView.tsx +180 -0
- package/src/components/PeerVideoTile/VideoView.tsx +104 -0
- package/src/components/PeerVideoTile/index.ts +0 -0
- package/src/components/PressableIcon.tsx +15 -8
- package/src/components/Preview.tsx +150 -104
- package/src/components/RoomSettingsModalContent.tsx +234 -659
- package/src/components/RoomSettingsModalDebugModeContent.tsx +446 -0
- package/src/components/StopRecordingModalContent.tsx +109 -0
- package/src/components/Tile.tsx +49 -90
- package/src/components/TilesContainer.tsx +116 -14
- package/src/components/UnmountAfterDelay.tsx +61 -0
- package/src/components/WebrtcView.tsx +72 -0
- package/src/components/WelcomeInMeeting.tsx +52 -0
- package/src/components/index.ts +0 -1
- package/src/hooks/useHmsInstance.ts +0 -1
- package/src/hooks-sdk-selectors.tsx +7 -0
- package/src/hooks-sdk.ts +18 -0
- package/src/hooks-util-selectors.tsx +21 -0
- package/src/hooks-util.ts +548 -130
- package/src/modules/HMSManager.ts +25 -0
- package/src/modules/parser.ts +22 -0
- package/src/peerTrackNodeUtils.tsx +13 -10
- package/src/redux/actionTypes.ts +28 -0
- package/src/redux/actions/index.ts +64 -2
- package/src/redux/reducers/appState.ts +65 -0
- package/src/redux/reducers/hmsStates.ts +15 -1
- package/src/redux/reducers/userState.ts +5 -2
- package/src/utils/functions.ts +48 -0
- package/src/utils/theme.ts +75 -5
- package/src/utils/types.ts +9 -4
- package/src/utils.ts +2 -2
- package/lib/commonjs/components/HMSSpeakerSettings.js.map +0 -1
- package/lib/commonjs/components/ZoomableView.js +0 -84
- package/lib/commonjs/components/ZoomableView.js.map +0 -1
- package/lib/module/components/HMSSpeakerSettings.js.map +0 -1
- package/lib/module/components/ZoomableView.js +0 -76
- package/lib/module/components/ZoomableView.js.map +0 -1
- package/lib/typescript/components/HMSSpeakerSettings.d.ts +0 -3
- package/lib/typescript/components/HMSSpeakerSettings.d.ts.map +0 -1
- package/lib/typescript/components/ZoomableView.d.ts +0 -6
- package/lib/typescript/components/ZoomableView.d.ts.map +0 -1
- package/src/components/ZoomableView.tsx +0 -91
|
@@ -1,42 +1,25 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
StyleSheet,
|
|
5
|
-
Text,
|
|
6
|
-
Platform,
|
|
7
|
-
ScrollView,
|
|
8
|
-
Image,
|
|
9
|
-
TouchableOpacity,
|
|
10
|
-
Alert,
|
|
11
|
-
InteractionManager,
|
|
12
|
-
} from 'react-native';
|
|
13
|
-
import {
|
|
14
|
-
HMSAudioFilePlayerNode,
|
|
15
|
-
HMSAudioMixingMode,
|
|
16
|
-
HMSUpdateListenerActions,
|
|
17
|
-
} from '@100mslive/react-native-hms';
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { View, StyleSheet, Text, TouchableOpacity } from 'react-native';
|
|
3
|
+
import type { HMSAudioMixingMode } from '@100mslive/react-native-hms';
|
|
18
4
|
import { useDispatch, useSelector } from 'react-redux';
|
|
19
|
-
|
|
20
|
-
import MaterialCommunityIcons from 'react-native-vector-icons/MaterialCommunityIcons';
|
|
21
|
-
import Ionicons from 'react-native-vector-icons/Ionicons';
|
|
22
|
-
import MaterialIcons from 'react-native-vector-icons/MaterialIcons';
|
|
23
|
-
import EntypoIcons from 'react-native-vector-icons/Entypo';
|
|
24
|
-
import DocumentPicker from 'react-native-document-picker';
|
|
25
|
-
import { openSettings, requestNotifications } from 'react-native-permissions';
|
|
26
|
-
|
|
27
|
-
import { COLORS } from '../utils/theme';
|
|
5
|
+
|
|
28
6
|
import type { RootState } from '../redux';
|
|
7
|
+
import { ModalTypes } from '../utils/types';
|
|
8
|
+
import { groupIntoTriplets, parseMetadata } from '../utils/functions';
|
|
29
9
|
import {
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
import {
|
|
38
|
-
import {
|
|
39
|
-
import {
|
|
10
|
+
BRBIcon,
|
|
11
|
+
HandIcon,
|
|
12
|
+
ParticipantsIcon,
|
|
13
|
+
PencilIcon,
|
|
14
|
+
RecordingIcon,
|
|
15
|
+
ScreenShareIcon,
|
|
16
|
+
} from '../Icons';
|
|
17
|
+
import { BottomSheet, useBottomSheetActions } from './BottomSheet';
|
|
18
|
+
import { useHMSInstance, useHMSRoomStyleSheet } from '../hooks-util';
|
|
19
|
+
import { useCanPublishScreen, useHMSActions } from '../hooks-sdk';
|
|
20
|
+
import { RoomSettingsModalDebugModeContent } from './RoomSettingsModalDebugModeContent';
|
|
21
|
+
import { setStartingOrStoppingRecording } from '../redux/actions';
|
|
22
|
+
import { ParticipantsCount } from './ParticipantsCount';
|
|
40
23
|
|
|
41
24
|
interface RoomSettingsModalContentProps {
|
|
42
25
|
newAudioMixingMode: HMSAudioMixingMode;
|
|
@@ -52,693 +35,285 @@ interface RoomSettingsModalContentProps {
|
|
|
52
35
|
|
|
53
36
|
export const RoomSettingsModalContent: React.FC<
|
|
54
37
|
RoomSettingsModalContentProps
|
|
55
|
-
> = ({
|
|
56
|
-
|
|
57
|
-
isAudioShared, //
|
|
58
|
-
audioDeviceListenerAdded,
|
|
59
|
-
muteAllTracksAudio,
|
|
60
|
-
closeRoomSettingsModal,
|
|
61
|
-
setModalVisible,
|
|
62
|
-
setIsAudioShared,
|
|
63
|
-
setAudioDeviceListenerAdded,
|
|
64
|
-
setMuteAllTracksAudio,
|
|
65
|
-
}) => {
|
|
66
|
-
// REFS
|
|
67
|
-
const audioFilePlayerNodeRef = useRef(
|
|
68
|
-
new HMSAudioFilePlayerNode('audio_file_player_node')
|
|
69
|
-
);
|
|
38
|
+
> = (props) => {
|
|
39
|
+
const { closeRoomSettingsModal, setModalVisible } = props;
|
|
70
40
|
|
|
71
|
-
// REDUX STATES & DISPATCH
|
|
72
41
|
const dispatch = useDispatch();
|
|
73
|
-
const hmsInstance =
|
|
42
|
+
const hmsInstance = useHMSInstance();
|
|
74
43
|
const debugMode = useSelector((state: RootState) => state.user.debugMode);
|
|
75
|
-
const localPeerRole = useSelector(
|
|
76
|
-
(state: RootState) => state.hmsStates.localPeer?.role
|
|
77
|
-
);
|
|
78
|
-
const localPeerMetadata = useSelector(
|
|
79
|
-
(state: RootState) => state.hmsStates.localPeer?.metadata
|
|
80
|
-
);
|
|
81
|
-
const isHLSStreaming = useSelector(
|
|
82
|
-
(state: RootState) =>
|
|
83
|
-
state.hmsStates.room?.hlsStreamingState?.running ?? false
|
|
84
|
-
);
|
|
85
|
-
const rtmpAndRecording = useSelector(
|
|
86
|
-
(state: RootState) =>
|
|
87
|
-
state.hmsStates.room?.browserRecordingState?.running ?? false
|
|
88
|
-
);
|
|
89
44
|
|
|
90
|
-
const
|
|
91
|
-
(state: RootState) => state.app.pipModeStatus
|
|
92
|
-
);
|
|
93
|
-
const showHLSStats = useSelector(
|
|
94
|
-
(state: RootState) => state.app.joinConfig.showHLSStats
|
|
95
|
-
);
|
|
96
|
-
const enableHLSPlayerControls = useSelector(
|
|
97
|
-
(state: RootState) => state.app.joinConfig.enableHLSPlayerControls
|
|
98
|
-
);
|
|
99
|
-
const showCustomHLSPlayerControls = useSelector(
|
|
100
|
-
(state: RootState) => state.app.joinConfig.showCustomHLSPlayerControls
|
|
101
|
-
);
|
|
102
|
-
|
|
103
|
-
// CONSTANTS
|
|
104
|
-
const parsedMetadata = parseMetadata(localPeerMetadata);
|
|
105
|
-
const isPipModeUnavailable = pipModeStatus === PipModes.NOT_AVAILABLE;
|
|
106
|
-
|
|
107
|
-
//#region FUNCTIONS
|
|
108
|
-
const handleBRB = async () => {
|
|
109
|
-
closeRoomSettingsModal();
|
|
110
|
-
|
|
111
|
-
await hmsInstance
|
|
112
|
-
?.changeMetadata(
|
|
113
|
-
JSON.stringify({
|
|
114
|
-
...parsedMetadata,
|
|
115
|
-
isBRBOn: !parsedMetadata?.isBRBOn,
|
|
116
|
-
isHandRaised: false,
|
|
117
|
-
})
|
|
118
|
-
)
|
|
119
|
-
.then((d) => console.log('Change Metadata Success: ', d))
|
|
120
|
-
.catch((e) => console.log('Change Metadata Error: ', e));
|
|
121
|
-
};
|
|
45
|
+
const hmsActions = useHMSActions();
|
|
122
46
|
|
|
123
|
-
const
|
|
124
|
-
closeRoomSettingsModal();
|
|
125
|
-
|
|
126
|
-
await hmsInstance
|
|
127
|
-
?.changeMetadata(
|
|
128
|
-
JSON.stringify({
|
|
129
|
-
...parsedMetadata,
|
|
130
|
-
isHandRaised: !parsedMetadata?.isHandRaised,
|
|
131
|
-
isBRBOn: false,
|
|
132
|
-
})
|
|
133
|
-
)
|
|
134
|
-
.then((d) => console.log('Change Metadata Success: ', d))
|
|
135
|
-
.catch((e) => console.log('Change Metadata Error: ', e));
|
|
136
|
-
};
|
|
47
|
+
const { registerOnModalHideAction } = useBottomSheetActions();
|
|
137
48
|
|
|
49
|
+
// #region Participants realted states and functions
|
|
138
50
|
const onParticipantsPress = () => {
|
|
139
|
-
|
|
140
|
-
|
|
51
|
+
// Register callback to be called when bottom sheet is hiddden
|
|
52
|
+
registerOnModalHideAction(() => {
|
|
53
|
+
setModalVisible(ModalTypes.PARTICIPANTS);
|
|
141
54
|
});
|
|
142
|
-
};
|
|
143
|
-
|
|
144
|
-
const enterPipMode = async () => {
|
|
145
|
-
if (isPipModeUnavailable) {
|
|
146
|
-
return console.log('PIP mode unavailable on Deice!');
|
|
147
|
-
}
|
|
148
55
|
|
|
56
|
+
// Close the current bottom sheet
|
|
149
57
|
closeRoomSettingsModal();
|
|
150
|
-
|
|
151
|
-
try {
|
|
152
|
-
const isEnabled = await hmsInstance?.enablePipMode({
|
|
153
|
-
aspectRatio: [16, 9], // for 16:9 aspect ratio
|
|
154
|
-
endButton: true,
|
|
155
|
-
videoButton: true,
|
|
156
|
-
audioButton: true,
|
|
157
|
-
});
|
|
158
|
-
if (isEnabled === true) {
|
|
159
|
-
dispatch(changePipModeStatus(PipModes.ACTIVE));
|
|
160
|
-
}
|
|
161
|
-
} catch (error) {
|
|
162
|
-
console.log(error);
|
|
163
|
-
}
|
|
164
|
-
};
|
|
165
|
-
|
|
166
|
-
const handleLocalRemoteAudiosMute = () => {
|
|
167
|
-
closeRoomSettingsModal();
|
|
168
|
-
hmsInstance?.setPlaybackForAllAudio(!muteAllTracksAudio);
|
|
169
|
-
setMuteAllTracksAudio(!muteAllTracksAudio);
|
|
170
58
|
};
|
|
59
|
+
// #endregion
|
|
171
60
|
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
await hmsInstance
|
|
175
|
-
?.remoteMuteAllAudio()
|
|
176
|
-
.then((d) => console.log('Remote Mute All Audio Success: ', d))
|
|
177
|
-
.catch((e) => console.log('Remote Mute All Audio Error: ', e));
|
|
178
|
-
};
|
|
61
|
+
// #region Screen Share related states and functions
|
|
62
|
+
const canPublishScreen = useCanPublishScreen();
|
|
179
63
|
|
|
180
|
-
const
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
hmsInstance
|
|
184
|
-
?.stopHLSStreaming()
|
|
185
|
-
.then((d) => console.log('Stop HLS Streaming Success: ', d))
|
|
186
|
-
.catch((e) => console.log('Stop HLS Streaming Error: ', e));
|
|
187
|
-
} else {
|
|
188
|
-
setModalVisible(ModalTypes.HLS_STREAMING, true);
|
|
189
|
-
}
|
|
190
|
-
};
|
|
191
|
-
|
|
192
|
-
const handleRTMPAndRecording = () => {
|
|
193
|
-
if (rtmpAndRecording) {
|
|
194
|
-
closeRoomSettingsModal();
|
|
195
|
-
hmsInstance
|
|
196
|
-
?.stopRtmpAndRecording()
|
|
197
|
-
.then((d) => console.log('Stop RTMP And Recording Success: ', d))
|
|
198
|
-
.catch((e) => console.log('Stop RTMP And Recording Error: ', e));
|
|
199
|
-
} else {
|
|
200
|
-
setModalVisible(ModalTypes.RECORDING, true);
|
|
201
|
-
}
|
|
202
|
-
};
|
|
64
|
+
const isLocalScreenShared = useSelector(
|
|
65
|
+
(state: RootState) => state.hmsStates.isLocalScreenShared
|
|
66
|
+
);
|
|
203
67
|
|
|
204
|
-
const
|
|
68
|
+
const handleScreenShareTogglePress = async () => {
|
|
205
69
|
closeRoomSettingsModal();
|
|
206
|
-
|
|
207
|
-
if (audioDeviceListenerAdded) {
|
|
208
|
-
setAudioDeviceListenerAdded(false);
|
|
209
|
-
|
|
210
|
-
hmsInstance.removeEventListener(
|
|
211
|
-
HMSUpdateListenerActions.ON_AUDIO_DEVICE_CHANGED
|
|
212
|
-
);
|
|
213
|
-
} else {
|
|
214
|
-
setAudioDeviceListenerAdded(true);
|
|
215
|
-
|
|
216
|
-
hmsInstance.setAudioDeviceChangeListener((data: any) => {
|
|
217
|
-
Toast.showWithGravity(
|
|
218
|
-
`Audio Device Output changed to ${data?.device}`,
|
|
219
|
-
Toast.LONG,
|
|
220
|
-
Toast.TOP
|
|
221
|
-
);
|
|
222
|
-
});
|
|
223
|
-
}
|
|
224
|
-
}
|
|
70
|
+
await hmsActions.setScreenShareEnabled(!isLocalScreenShared);
|
|
225
71
|
};
|
|
72
|
+
// #endregion
|
|
226
73
|
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
const switchAudioOutput = () => {
|
|
234
|
-
if (Platform.OS === 'android') {
|
|
235
|
-
setModalVisible(ModalTypes.SWITCH_AUDIO_OUTPUT, true);
|
|
236
|
-
} else {
|
|
237
|
-
closeRoomSettingsModal();
|
|
238
|
-
hmsInstance?.switchAudioOutputUsingIOSUI();
|
|
239
|
-
}
|
|
240
|
-
};
|
|
241
|
-
|
|
242
|
-
const changeAudioMode = () =>
|
|
243
|
-
setModalVisible(ModalTypes.CHANGE_AUDIO_MODE, true);
|
|
74
|
+
// #region "BRB" and "Hand Raise" related states and functions
|
|
75
|
+
const localPeerMetadata = useSelector(
|
|
76
|
+
(state: RootState) => state.hmsStates.localPeer?.metadata
|
|
77
|
+
);
|
|
78
|
+
const parsedMetadata = parseMetadata(localPeerMetadata);
|
|
244
79
|
|
|
245
|
-
const
|
|
246
|
-
|
|
80
|
+
const isBRBOn = !!parsedMetadata.isBRBOn;
|
|
81
|
+
const isHandRaised = !!parsedMetadata.isHandRaised;
|
|
247
82
|
|
|
248
|
-
const
|
|
249
|
-
|
|
83
|
+
const toggleRaiseHand = async () => {
|
|
84
|
+
const newMetadata = {
|
|
85
|
+
...parsedMetadata,
|
|
86
|
+
isBRBOn: false,
|
|
87
|
+
isHandRaised: !isHandRaised,
|
|
88
|
+
};
|
|
89
|
+
closeRoomSettingsModal();
|
|
90
|
+
await hmsActions.changeMetadata(newMetadata);
|
|
250
91
|
};
|
|
251
92
|
|
|
252
|
-
const
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
93
|
+
const toggleBRB = async () => {
|
|
94
|
+
const newMetadata = {
|
|
95
|
+
...parsedMetadata,
|
|
96
|
+
isHandRaised: false,
|
|
97
|
+
isBRBOn: !isBRBOn,
|
|
98
|
+
};
|
|
99
|
+
closeRoomSettingsModal();
|
|
100
|
+
await hmsActions.changeMetadata(newMetadata);
|
|
257
101
|
};
|
|
102
|
+
// #endregion
|
|
258
103
|
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
104
|
+
// #region Recording related states and functions
|
|
105
|
+
const canStartRecording = useSelector(
|
|
106
|
+
(state: RootState) =>
|
|
107
|
+
!!state.hmsStates.localPeer?.role?.permissions?.browserRecording
|
|
108
|
+
);
|
|
263
109
|
|
|
264
|
-
const
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
};
|
|
110
|
+
const isRecordingOn = useSelector(
|
|
111
|
+
(state: RootState) => !!state.hmsStates.room?.browserRecordingState?.running
|
|
112
|
+
);
|
|
268
113
|
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
.then((d) => {
|
|
276
|
-
setIsAudioShared(false);
|
|
277
|
-
console.log('Stop Audioshare Success: ', d);
|
|
278
|
-
})
|
|
279
|
-
.catch((e) => console.log('Stop Audioshare Error: ', e));
|
|
114
|
+
const handleRecordingTogglePress = () => {
|
|
115
|
+
if (isRecordingOn) {
|
|
116
|
+
registerOnModalHideAction(() => {
|
|
117
|
+
setModalVisible(ModalTypes.STOP_RECORDING);
|
|
118
|
+
});
|
|
119
|
+
closeRoomSettingsModal();
|
|
280
120
|
} else {
|
|
281
|
-
|
|
282
|
-
// Audio share feature needs foreground service running. for Foreground service to keep running, we need active notification.
|
|
283
|
-
if (Platform.OS === 'android') {
|
|
284
|
-
const result = await requestNotifications(['alert', 'sound']);
|
|
285
|
-
|
|
286
|
-
console.log('Notification Permission Result: ', result);
|
|
287
|
-
|
|
288
|
-
if (result.status === 'blocked') {
|
|
289
|
-
Alert.alert(
|
|
290
|
-
'Notification Permission is Blocked!',
|
|
291
|
-
'100ms SDK needs notification permission to start audio share. Please allow notification from settings and try again!',
|
|
292
|
-
[
|
|
293
|
-
{ text: 'cancel' },
|
|
294
|
-
{ text: 'Go to Settings', onPress: () => openSettings() },
|
|
295
|
-
],
|
|
296
|
-
{ cancelable: true }
|
|
297
|
-
);
|
|
298
|
-
return;
|
|
299
|
-
}
|
|
300
|
-
}
|
|
301
|
-
|
|
121
|
+
dispatch(setStartingOrStoppingRecording(true));
|
|
302
122
|
hmsInstance
|
|
303
|
-
|
|
304
|
-
.
|
|
305
|
-
|
|
306
|
-
console.log('Start Audioshare Success: ', d);
|
|
307
|
-
})
|
|
308
|
-
.catch((e) => console.log('Start Audioshare Error: ', e));
|
|
123
|
+
.startRTMPOrRecording({ record: true })
|
|
124
|
+
.catch(() => dispatch(setStartingOrStoppingRecording(false)));
|
|
125
|
+
closeRoomSettingsModal();
|
|
309
126
|
}
|
|
310
127
|
};
|
|
128
|
+
// #endregion
|
|
311
129
|
|
|
312
|
-
//
|
|
313
|
-
const
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
closeRoomSettingsModal();
|
|
319
|
-
setTimeout(() => {
|
|
320
|
-
DocumentPicker.pickSingle()
|
|
321
|
-
.then((result) => {
|
|
322
|
-
console.log('Document Picker Success: ', result);
|
|
323
|
-
audioFilePlayerNodeRef.current
|
|
324
|
-
.play(result?.uri, false, false)
|
|
325
|
-
.then((d) => {
|
|
326
|
-
console.log('Start Audioshare Success: ', d);
|
|
327
|
-
})
|
|
328
|
-
.catch((e) => console.log('Start Audioshare Error: ', e));
|
|
329
|
-
})
|
|
330
|
-
.catch((e) => console.log('Document Picker Error: ', e));
|
|
331
|
-
}, 500);
|
|
332
|
-
};
|
|
333
|
-
|
|
334
|
-
// iOS Audioshare
|
|
335
|
-
const stopAudioShare = () => {
|
|
336
|
-
closeRoomSettingsModal();
|
|
337
|
-
audioFilePlayerNodeRef.current.stop();
|
|
338
|
-
};
|
|
339
|
-
|
|
340
|
-
// iOS Audioshare
|
|
341
|
-
const pauseAudioShare = () => {
|
|
342
|
-
closeRoomSettingsModal();
|
|
343
|
-
audioFilePlayerNodeRef.current.pause();
|
|
344
|
-
};
|
|
345
|
-
|
|
346
|
-
// iOS Audioshare
|
|
347
|
-
const resumeAudioShare = () => {
|
|
348
|
-
closeRoomSettingsModal();
|
|
349
|
-
audioFilePlayerNodeRef.current.resume();
|
|
350
|
-
};
|
|
351
|
-
|
|
352
|
-
// iOS Audioshare
|
|
353
|
-
const isAudioSharePlaying = () => {
|
|
354
|
-
closeRoomSettingsModal();
|
|
355
|
-
audioFilePlayerNodeRef.current
|
|
356
|
-
.isPlaying()
|
|
357
|
-
.then((d) => console.log('Audioshare isPlaying: ', d))
|
|
358
|
-
.catch((e) => console.log('Audioshare isPlaying: ', e));
|
|
359
|
-
};
|
|
360
|
-
|
|
361
|
-
// iOS Audioshare
|
|
362
|
-
const getAudioShareDuration = () => {
|
|
363
|
-
closeRoomSettingsModal();
|
|
364
|
-
audioFilePlayerNodeRef.current
|
|
365
|
-
.duration()
|
|
366
|
-
.then((d) => console.log('Audioshare duration: ', d))
|
|
367
|
-
.catch((e) => console.log('Audioshare duration: ', e));
|
|
368
|
-
};
|
|
130
|
+
// #region Change Name functions
|
|
131
|
+
const changeName = () => {
|
|
132
|
+
// Register callback to be called when bottom sheet is hiddden
|
|
133
|
+
registerOnModalHideAction(() => {
|
|
134
|
+
setModalVisible(ModalTypes.CHANGE_NAME);
|
|
135
|
+
});
|
|
369
136
|
|
|
370
|
-
|
|
371
|
-
const getAudioShareCurrentDuration = () => {
|
|
137
|
+
// Close the current bottom sheet
|
|
372
138
|
closeRoomSettingsModal();
|
|
373
|
-
audioFilePlayerNodeRef.current
|
|
374
|
-
.currentDuration()
|
|
375
|
-
.then((d) => console.log('Audioshare currentDuration: ', d))
|
|
376
|
-
.catch((e) => console.log('Audioshare currentDuration: ', e));
|
|
377
139
|
};
|
|
378
|
-
|
|
140
|
+
// #endregion
|
|
379
141
|
|
|
380
142
|
return (
|
|
381
|
-
<View
|
|
382
|
-
<
|
|
383
|
-
|
|
143
|
+
<View>
|
|
144
|
+
<BottomSheet.Header
|
|
145
|
+
dismissModal={closeRoomSettingsModal}
|
|
146
|
+
heading="Options"
|
|
147
|
+
/>
|
|
148
|
+
|
|
149
|
+
<BottomSheet.Divider />
|
|
150
|
+
|
|
151
|
+
<View style={styles.contentContainer}>
|
|
152
|
+
{groupIntoTriplets(
|
|
153
|
+
[
|
|
154
|
+
{
|
|
155
|
+
id: 'participants',
|
|
156
|
+
icon: <ParticipantsIcon style={{ width: 20, height: 20 }} />,
|
|
157
|
+
label: 'Participants',
|
|
158
|
+
pressHandler: onParticipantsPress,
|
|
159
|
+
isActive: false,
|
|
160
|
+
hide: false,
|
|
161
|
+
sibling: <ParticipantsCount />,
|
|
162
|
+
// parent
|
|
163
|
+
// children
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
id: 'share-screen',
|
|
167
|
+
icon: <ScreenShareIcon style={{ width: 20, height: 20 }} />,
|
|
168
|
+
label: isLocalScreenShared ? 'Sharing Screen' : 'Share Screen',
|
|
169
|
+
pressHandler: handleScreenShareTogglePress,
|
|
170
|
+
isActive: !!isLocalScreenShared, // Show active if screen is shared
|
|
171
|
+
hide: !canPublishScreen, // Hide if can't publish screen
|
|
172
|
+
},
|
|
173
|
+
{
|
|
174
|
+
id: 'brb',
|
|
175
|
+
icon: <BRBIcon style={{ width: 20, height: 20 }} />,
|
|
176
|
+
label: isBRBOn ? "I'm Back" : 'Be Right Back',
|
|
177
|
+
pressHandler: toggleBRB,
|
|
178
|
+
isActive: isBRBOn, // Show active if `isBRBOn` is set on metadata
|
|
179
|
+
hide: false, // Hide if can't publish screen
|
|
180
|
+
},
|
|
181
|
+
{
|
|
182
|
+
id: 'raise-hand',
|
|
183
|
+
icon: <HandIcon style={{ width: 20, height: 20 }} />,
|
|
184
|
+
label: parsedMetadata.isHandRaised ? 'Hand Raised' : 'Raise Hand',
|
|
185
|
+
pressHandler: toggleRaiseHand,
|
|
186
|
+
isActive: isHandRaised, // Show active if `isHandRaised` is set on metadata
|
|
187
|
+
hide: false, // Hide if can't publish screen
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
id: 'start-recording',
|
|
191
|
+
icon: <RecordingIcon style={{ width: 20, height: 20 }} />,
|
|
192
|
+
label: isRecordingOn ? 'Stop Recording' : 'Start Recording',
|
|
193
|
+
pressHandler: handleRecordingTogglePress,
|
|
194
|
+
isActive: !!isRecordingOn,
|
|
195
|
+
hide: !canStartRecording, // Hide if can't publish screen
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
id: 'change-name',
|
|
199
|
+
icon: <PencilIcon style={{ width: 20, height: 20 }} />,
|
|
200
|
+
label: 'Change Name',
|
|
201
|
+
pressHandler: changeName,
|
|
202
|
+
isActive: false,
|
|
203
|
+
hide: false,
|
|
204
|
+
},
|
|
205
|
+
].filter((itm) => !itm.hide),
|
|
206
|
+
true
|
|
207
|
+
).map((itm, idx) => {
|
|
208
|
+
const isFirst = idx === 0;
|
|
209
|
+
|
|
210
|
+
return (
|
|
211
|
+
<React.Fragment key={idx.toString()}>
|
|
212
|
+
{isFirst ? null : <View style={styles.rowSpacer} />}
|
|
213
|
+
|
|
214
|
+
<View style={styles.row}>
|
|
215
|
+
{itm.map((item, index) => {
|
|
216
|
+
const isFirst = index === 0;
|
|
217
|
+
|
|
218
|
+
return (
|
|
219
|
+
<React.Fragment key={item ? item.id : index.toString()}>
|
|
220
|
+
{isFirst ? null : <View style={styles.colSpacer} />}
|
|
221
|
+
|
|
222
|
+
<View style={styles.col}>
|
|
223
|
+
{item ? (
|
|
224
|
+
<>
|
|
225
|
+
<SettingItem
|
|
226
|
+
icon={item.icon}
|
|
227
|
+
onPress={item.pressHandler}
|
|
228
|
+
text={item.label}
|
|
229
|
+
isActive={item.isActive}
|
|
230
|
+
/>
|
|
231
|
+
|
|
232
|
+
{item.sibling}
|
|
233
|
+
</>
|
|
234
|
+
) : null}
|
|
235
|
+
</View>
|
|
236
|
+
</React.Fragment>
|
|
237
|
+
);
|
|
238
|
+
})}
|
|
239
|
+
</View>
|
|
240
|
+
</React.Fragment>
|
|
241
|
+
);
|
|
242
|
+
})}
|
|
384
243
|
</View>
|
|
385
244
|
|
|
386
|
-
<
|
|
387
|
-
style={styles.contentContainer}
|
|
388
|
-
contentContainerStyle={styles.scrollContentContainer}
|
|
389
|
-
>
|
|
390
|
-
<HMSShareScreen
|
|
391
|
-
screenShareDelegate={
|
|
392
|
-
<ScreenShareDelegate
|
|
393
|
-
closeRoomSettingsModal={closeRoomSettingsModal}
|
|
394
|
-
/>
|
|
395
|
-
}
|
|
396
|
-
/>
|
|
397
|
-
|
|
398
|
-
<TouchableOpacity onPress={handleBRB} style={styles.button}>
|
|
399
|
-
<Image source={require('../assets/brb.png')} style={styles.brbIcon} />
|
|
400
|
-
|
|
401
|
-
<Text style={styles.text}>
|
|
402
|
-
{parsedMetadata?.isBRBOn ? 'Remove BRB' : 'Set BRB'}
|
|
403
|
-
</Text>
|
|
404
|
-
</TouchableOpacity>
|
|
405
|
-
|
|
406
|
-
<SettingItem
|
|
407
|
-
onPress={onRaiseHandPress}
|
|
408
|
-
text={parsedMetadata?.isHandRaised ? 'Low Your Hand' : 'Raise Hand'}
|
|
409
|
-
IconType={Ionicons}
|
|
410
|
-
iconName={'hand-left-outline'}
|
|
411
|
-
/>
|
|
412
|
-
|
|
413
|
-
<SettingItem
|
|
414
|
-
onPress={onParticipantsPress}
|
|
415
|
-
text={'Participants'}
|
|
416
|
-
IconType={Ionicons}
|
|
417
|
-
iconName={'people'}
|
|
418
|
-
/>
|
|
419
|
-
|
|
420
|
-
{localPeerRole?.name?.includes('hls-') ? (
|
|
421
|
-
<SettingItem
|
|
422
|
-
onPress={handleHLSPlayerAspectRatio}
|
|
423
|
-
text={'Change Aspect Ratio'}
|
|
424
|
-
IconType={MaterialCommunityIcons}
|
|
425
|
-
iconName={'aspect-ratio'}
|
|
426
|
-
/>
|
|
427
|
-
) : null}
|
|
428
|
-
|
|
429
|
-
{!localPeerRole?.name?.includes('hls-') ? (
|
|
430
|
-
<SettingItem
|
|
431
|
-
onPress={handleLocalRemoteAudiosMute}
|
|
432
|
-
text={`${muteAllTracksAudio ? 'Unmute' : 'Mute'} Room`}
|
|
433
|
-
IconType={Ionicons}
|
|
434
|
-
iconName={muteAllTracksAudio ? 'mic-off-outline' : 'mic-outline'}
|
|
435
|
-
/>
|
|
436
|
-
) : null}
|
|
437
|
-
|
|
438
|
-
{debugMode && localPeerRole?.permissions?.hlsStreaming ? (
|
|
439
|
-
<SettingItem
|
|
440
|
-
onPress={handleHLSStreaming}
|
|
441
|
-
text={`${isHLSStreaming === true ? 'Stop' : 'Start'} HLS Streaming`}
|
|
442
|
-
IconType={Ionicons}
|
|
443
|
-
iconName="radio-outline"
|
|
444
|
-
/>
|
|
445
|
-
) : null}
|
|
446
|
-
|
|
447
|
-
{debugMode && localPeerRole?.permissions?.rtmpStreaming ? (
|
|
448
|
-
<SettingItem
|
|
449
|
-
onPress={handleRTMPAndRecording}
|
|
450
|
-
text={
|
|
451
|
-
rtmpAndRecording === true
|
|
452
|
-
? 'Stop RTMP And Recording'
|
|
453
|
-
: 'Start RTMP or Recording'
|
|
454
|
-
}
|
|
455
|
-
IconType={Ionicons}
|
|
456
|
-
iconName="recording-outline"
|
|
457
|
-
/>
|
|
458
|
-
) : null}
|
|
459
|
-
|
|
460
|
-
{debugMode && localPeerRole?.permissions?.changeRole ? (
|
|
461
|
-
<SettingItem
|
|
462
|
-
onPress={changeBulkRole}
|
|
463
|
-
text="Bulk Role Change"
|
|
464
|
-
IconType={Ionicons}
|
|
465
|
-
iconName="people-outline"
|
|
466
|
-
/>
|
|
467
|
-
) : null}
|
|
468
|
-
|
|
469
|
-
{debugMode && localPeerRole?.permissions?.mute ? (
|
|
470
|
-
<SettingItem
|
|
471
|
-
onPress={handleRemoteAudiosMute}
|
|
472
|
-
text="Remote Mute All Audio Tracks"
|
|
473
|
-
IconType={Ionicons}
|
|
474
|
-
iconName="mic-off-outline"
|
|
475
|
-
/>
|
|
476
|
-
) : null}
|
|
477
|
-
|
|
478
|
-
{debugMode &&
|
|
479
|
-
(localPeerRole?.permissions?.mute ||
|
|
480
|
-
localPeerRole?.permissions?.unmute) ? (
|
|
481
|
-
<SettingItem
|
|
482
|
-
onPress={changeTrackState}
|
|
483
|
-
text="Change Track State For Role"
|
|
484
|
-
IconType={MaterialIcons}
|
|
485
|
-
iconName="track-changes"
|
|
486
|
-
/>
|
|
487
|
-
) : null}
|
|
488
|
-
|
|
489
|
-
{localPeerRole?.publishSettings?.allowed?.includes('audio') ? (
|
|
490
|
-
<SettingItem
|
|
491
|
-
onPress={switchAudioOutput}
|
|
492
|
-
text="Switch Audio Output"
|
|
493
|
-
IconType={MaterialCommunityIcons}
|
|
494
|
-
iconName="cast-audio"
|
|
495
|
-
/>
|
|
496
|
-
) : null}
|
|
497
|
-
|
|
498
|
-
{!isPipModeUnavailable ? (
|
|
499
|
-
<SettingItem
|
|
500
|
-
onPress={enterPipMode}
|
|
501
|
-
text="Picture in Picture (PIP) Mode"
|
|
502
|
-
IconType={MaterialCommunityIcons}
|
|
503
|
-
iconName="picture-in-picture-bottom-right"
|
|
504
|
-
/>
|
|
505
|
-
) : null}
|
|
506
|
-
|
|
507
|
-
{debugMode ? (
|
|
508
|
-
<>
|
|
509
|
-
{localPeerRole?.name?.includes('hls-') ? (
|
|
510
|
-
<>
|
|
511
|
-
<SettingItem
|
|
512
|
-
onPress={toggleShowHLSStats}
|
|
513
|
-
text={showHLSStats ? 'Hide HLS Stats' : 'Show HLS Stats'}
|
|
514
|
-
IconType={MaterialCommunityIcons}
|
|
515
|
-
iconName={'clipboard-pulse-outline'}
|
|
516
|
-
/>
|
|
517
|
-
|
|
518
|
-
<SettingItem
|
|
519
|
-
onPress={toggleEnableHLSPlayerControls}
|
|
520
|
-
text={
|
|
521
|
-
enableHLSPlayerControls
|
|
522
|
-
? 'Disable HLS Player Controls'
|
|
523
|
-
: 'Enable HLS Player Controls'
|
|
524
|
-
}
|
|
525
|
-
IconType={Ionicons}
|
|
526
|
-
iconName={'ios-settings-outline'}
|
|
527
|
-
/>
|
|
528
|
-
|
|
529
|
-
<SettingItem
|
|
530
|
-
onPress={toggleShowCustomHLSPlayerControls}
|
|
531
|
-
text={
|
|
532
|
-
showCustomHLSPlayerControls
|
|
533
|
-
? 'Hide Custom HLS Player Controls'
|
|
534
|
-
: 'Show Custom HLS Player Controls'
|
|
535
|
-
}
|
|
536
|
-
IconType={Ionicons}
|
|
537
|
-
iconName={'ios-settings-outline'}
|
|
538
|
-
/>
|
|
539
|
-
</>
|
|
540
|
-
) : (
|
|
541
|
-
<>
|
|
542
|
-
<SettingItem
|
|
543
|
-
onPress={showRTCStats}
|
|
544
|
-
text="Show RTC Stats"
|
|
545
|
-
IconType={MaterialCommunityIcons}
|
|
546
|
-
iconName={'clipboard-pulse-outline'}
|
|
547
|
-
/>
|
|
548
|
-
</>
|
|
549
|
-
)}
|
|
550
|
-
|
|
551
|
-
{Platform.OS === 'android' &&
|
|
552
|
-
localPeerRole?.publishSettings?.allowed?.includes('audio') ? (
|
|
553
|
-
<>
|
|
554
|
-
<SettingItem
|
|
555
|
-
onPress={addRemoveAudioDeviceChangeListener}
|
|
556
|
-
text={`${
|
|
557
|
-
audioDeviceListenerAdded ? 'Remove' : 'Set'
|
|
558
|
-
} Audio Output Change Listener`}
|
|
559
|
-
IconType={MaterialCommunityIcons}
|
|
560
|
-
iconName="video-input-component"
|
|
561
|
-
/>
|
|
562
|
-
|
|
563
|
-
<SettingItem
|
|
564
|
-
onPress={handleAudioShare}
|
|
565
|
-
text={`${isAudioShared ? 'Stop' : 'Start'} Audioshare`}
|
|
566
|
-
IconType={Ionicons}
|
|
567
|
-
iconName="share-social-outline"
|
|
568
|
-
/>
|
|
569
|
-
|
|
570
|
-
<SettingItem
|
|
571
|
-
onPress={changeAudioMode}
|
|
572
|
-
text="Set Audio Mode"
|
|
573
|
-
IconType={MaterialCommunityIcons}
|
|
574
|
-
iconName="call-split"
|
|
575
|
-
/>
|
|
576
|
-
|
|
577
|
-
<SettingItem
|
|
578
|
-
onPress={setAudioMixingMode}
|
|
579
|
-
text="Set Audio Mixing Mode"
|
|
580
|
-
IconType={EntypoIcons}
|
|
581
|
-
iconName="sound-mix"
|
|
582
|
-
/>
|
|
583
|
-
</>
|
|
584
|
-
) : null}
|
|
585
|
-
|
|
586
|
-
{Platform.OS === 'ios' &&
|
|
587
|
-
getJoinConfig().audioMixer &&
|
|
588
|
-
localPeerRole?.publishSettings?.allowed?.includes('audio') ? (
|
|
589
|
-
<>
|
|
590
|
-
<SettingItem
|
|
591
|
-
onPress={playAudioShare}
|
|
592
|
-
text="Play Audio Share"
|
|
593
|
-
IconType={Ionicons}
|
|
594
|
-
iconName="play-outline"
|
|
595
|
-
/>
|
|
596
|
-
|
|
597
|
-
<SettingItem
|
|
598
|
-
onPress={stopAudioShare}
|
|
599
|
-
text="Stop Audio Share"
|
|
600
|
-
IconType={Ionicons}
|
|
601
|
-
iconName="stop-outline"
|
|
602
|
-
/>
|
|
603
|
-
|
|
604
|
-
<SettingItem
|
|
605
|
-
onPress={setAudioShareVolume}
|
|
606
|
-
text="Set Audio Share Volume"
|
|
607
|
-
IconType={Ionicons}
|
|
608
|
-
iconName="volume-high-outline"
|
|
609
|
-
/>
|
|
610
|
-
|
|
611
|
-
<SettingItem
|
|
612
|
-
onPress={pauseAudioShare}
|
|
613
|
-
text="Pause Audio Share"
|
|
614
|
-
IconType={Ionicons}
|
|
615
|
-
iconName="pause-outline"
|
|
616
|
-
/>
|
|
617
|
-
|
|
618
|
-
<SettingItem
|
|
619
|
-
onPress={resumeAudioShare}
|
|
620
|
-
text="Resume Audio Share"
|
|
621
|
-
IconType={Ionicons}
|
|
622
|
-
iconName="play-skip-forward-outline"
|
|
623
|
-
/>
|
|
624
|
-
|
|
625
|
-
<SettingItem
|
|
626
|
-
onPress={isAudioSharePlaying}
|
|
627
|
-
text="Is Audio Share Playing"
|
|
628
|
-
IconType={MaterialCommunityIcons}
|
|
629
|
-
iconName="file-question-outline"
|
|
630
|
-
/>
|
|
631
|
-
|
|
632
|
-
<SettingItem
|
|
633
|
-
onPress={getAudioShareDuration}
|
|
634
|
-
text="Audio Share Duration"
|
|
635
|
-
IconType={Ionicons}
|
|
636
|
-
iconName="timer-outline"
|
|
637
|
-
/>
|
|
638
|
-
|
|
639
|
-
<SettingItem
|
|
640
|
-
onPress={getAudioShareCurrentDuration}
|
|
641
|
-
text="Audio Share Current Duration"
|
|
642
|
-
IconType={Ionicons}
|
|
643
|
-
iconName="timer-outline"
|
|
644
|
-
/>
|
|
645
|
-
</>
|
|
646
|
-
) : null}
|
|
647
|
-
</>
|
|
648
|
-
) : null}
|
|
649
|
-
</ScrollView>
|
|
245
|
+
{debugMode ? <RoomSettingsModalDebugModeContent {...props} /> : null}
|
|
650
246
|
</View>
|
|
651
247
|
);
|
|
652
248
|
};
|
|
653
249
|
|
|
654
|
-
|
|
655
|
-
onPress(): void;
|
|
250
|
+
type SettingItemProps = {
|
|
656
251
|
text: string;
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
252
|
+
icon: React.ReactElement;
|
|
253
|
+
onPress(): void;
|
|
254
|
+
isActive?: boolean;
|
|
255
|
+
};
|
|
660
256
|
|
|
661
257
|
const SettingItem: React.FC<SettingItemProps> = ({
|
|
662
|
-
onPress,
|
|
663
258
|
text,
|
|
664
|
-
|
|
665
|
-
IconType,
|
|
666
|
-
}) => {
|
|
667
|
-
return (
|
|
668
|
-
<TouchableOpacity style={styles.button} onPress={onPress}>
|
|
669
|
-
<IconType name={iconName} size={24} style={styles.icon} />
|
|
670
|
-
|
|
671
|
-
<Text style={styles.text}>{text}</Text>
|
|
672
|
-
</TouchableOpacity>
|
|
673
|
-
);
|
|
674
|
-
};
|
|
675
|
-
|
|
676
|
-
const ScreenShareDelegate = ({
|
|
677
|
-
isLocalScreenShared,
|
|
259
|
+
icon,
|
|
678
260
|
onPress,
|
|
679
|
-
|
|
680
|
-
}
|
|
681
|
-
const
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
261
|
+
isActive = false,
|
|
262
|
+
}) => {
|
|
263
|
+
const hmsRoomStyles = useHMSRoomStyleSheet((theme, typography) => ({
|
|
264
|
+
button: {
|
|
265
|
+
backgroundColor: theme.palette.surface_bright,
|
|
266
|
+
},
|
|
267
|
+
text: {
|
|
268
|
+
color: theme.palette.on_surface_high,
|
|
269
|
+
fontFamily: `${typography.font_family}-SemiBold`,
|
|
270
|
+
},
|
|
271
|
+
}));
|
|
685
272
|
|
|
686
273
|
return (
|
|
687
|
-
<TouchableOpacity
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
274
|
+
<TouchableOpacity
|
|
275
|
+
style={[styles.button, isActive ? hmsRoomStyles.button : null]}
|
|
276
|
+
onPress={onPress}
|
|
277
|
+
>
|
|
278
|
+
{icon}
|
|
279
|
+
|
|
280
|
+
<Text style={[styles.text, hmsRoomStyles.text]} numberOfLines={2}>
|
|
281
|
+
{text}
|
|
691
282
|
</Text>
|
|
692
283
|
</TouchableOpacity>
|
|
693
284
|
);
|
|
694
285
|
};
|
|
695
286
|
|
|
696
287
|
const styles = StyleSheet.create({
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
width: '100%',
|
|
700
|
-
backgroundColor: COLORS.SURFACE.DEFAULT,
|
|
288
|
+
contentContainer: {
|
|
289
|
+
marginHorizontal: 20,
|
|
701
290
|
},
|
|
702
|
-
|
|
703
|
-
height: 48,
|
|
704
|
-
width: '80%',
|
|
291
|
+
row: {
|
|
705
292
|
flexDirection: 'row',
|
|
706
|
-
alignItems: 'center',
|
|
707
293
|
},
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
lineHeight: 24,
|
|
712
|
-
letterSpacing: 0.15,
|
|
713
|
-
color: COLORS.TEXT.HIGH_EMPHASIS,
|
|
714
|
-
paddingRight: 12,
|
|
294
|
+
rowSpacer: {
|
|
295
|
+
height: 16,
|
|
296
|
+
width: '100%',
|
|
715
297
|
},
|
|
716
|
-
|
|
298
|
+
col: {
|
|
717
299
|
flex: 1,
|
|
718
|
-
|
|
719
|
-
},
|
|
720
|
-
scrollContentContainer: {
|
|
721
|
-
paddingBottom: 52,
|
|
300
|
+
position: 'relative',
|
|
722
301
|
},
|
|
723
|
-
|
|
724
|
-
width:
|
|
725
|
-
height:
|
|
726
|
-
tintColor: COLORS.WHITE,
|
|
727
|
-
marginRight: 12,
|
|
302
|
+
colSpacer: {
|
|
303
|
+
width: 12,
|
|
304
|
+
height: '100%',
|
|
728
305
|
},
|
|
729
306
|
button: {
|
|
730
|
-
flexDirection: 'row',
|
|
731
307
|
alignItems: 'center',
|
|
732
|
-
|
|
308
|
+
borderRadius: 4,
|
|
309
|
+
paddingVertical: 8,
|
|
310
|
+
paddingHorizontal: 4,
|
|
733
311
|
},
|
|
734
312
|
text: {
|
|
735
|
-
|
|
736
|
-
fontSize:
|
|
737
|
-
lineHeight:
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
icon: {
|
|
741
|
-
color: COLORS.WHITE,
|
|
742
|
-
marginRight: 12,
|
|
313
|
+
textAlign: 'center',
|
|
314
|
+
fontSize: 12,
|
|
315
|
+
lineHeight: 16,
|
|
316
|
+
letterSpacing: 0.4,
|
|
317
|
+
marginTop: 8,
|
|
743
318
|
},
|
|
744
319
|
});
|