@100mslive/react-native-room-kit 0.0.2 → 0.0.4
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/lib/commonjs/HMSInstanceSetup.js +1 -14
- package/lib/commonjs/HMSInstanceSetup.js.map +1 -1
- package/lib/commonjs/HMSPrebuilt.js +13 -4
- package/lib/commonjs/HMSPrebuilt.js.map +1 -1
- package/lib/commonjs/HMSRoomSetup.js +38 -14
- package/lib/commonjs/HMSRoomSetup.js.map +1 -1
- package/lib/commonjs/Icons/AnswerPhone/assets/answer-phone.png +0 -0
- package/lib/commonjs/Icons/AnswerPhone/assets/answer-phone@2x.png +0 -0
- package/lib/commonjs/Icons/AnswerPhone/assets/answer-phone@3x.png +0 -0
- package/lib/commonjs/Icons/AnswerPhone/index.js +30 -0
- package/lib/commonjs/Icons/AnswerPhone/index.js.map +1 -0
- package/lib/commonjs/Icons/Bluetooth/assets/bluetooth-on.png +0 -0
- package/lib/commonjs/Icons/Bluetooth/assets/bluetooth-on@2x.png +0 -0
- package/lib/commonjs/Icons/Bluetooth/assets/bluetooth-on@3x.png +0 -0
- package/lib/commonjs/Icons/Bluetooth/index.js +30 -0
- package/lib/commonjs/Icons/Bluetooth/index.js.map +1 -0
- 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 +30 -0
- package/lib/commonjs/Icons/Check/index.js.map +1 -0
- package/lib/commonjs/Icons/GenericLogo/assets/generic-logo.png +0 -0
- package/lib/commonjs/Icons/GenericLogo/assets/generic-logo@2x.png +0 -0
- package/lib/commonjs/Icons/GenericLogo/assets/generic-logo@3x.png +0 -0
- package/lib/commonjs/Icons/GenericLogo/index.js +30 -0
- package/lib/commonjs/Icons/GenericLogo/index.js.map +1 -0
- package/lib/commonjs/Icons/Headphones/assets/headphones.png +0 -0
- package/lib/commonjs/Icons/Headphones/assets/headphones@2x.png +0 -0
- package/lib/commonjs/Icons/Headphones/assets/headphones@3x.png +0 -0
- package/lib/commonjs/Icons/Headphones/index.js +30 -0
- package/lib/commonjs/Icons/Headphones/index.js.map +1 -0
- package/lib/commonjs/Icons/Person/assets/person.png +0 -0
- package/lib/commonjs/Icons/Person/assets/person@2x.png +0 -0
- package/lib/commonjs/Icons/Person/assets/person@3x.png +0 -0
- package/lib/commonjs/Icons/Person/index.js +30 -0
- package/lib/commonjs/Icons/Person/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/Speaker/assets/speaker-large.png +0 -0
- package/lib/commonjs/Icons/Speaker/assets/speaker-large@2x.png +0 -0
- package/lib/commonjs/Icons/Speaker/assets/speaker-large@3x.png +0 -0
- package/lib/commonjs/Icons/Speaker/index.js +7 -2
- package/lib/commonjs/Icons/Speaker/index.js.map +1 -1
- package/lib/commonjs/Icons/Wave/assets/wave.png +0 -0
- package/lib/commonjs/Icons/Wave/assets/wave@2x.png +0 -0
- package/lib/commonjs/Icons/Wave/assets/wave@3x.png +0 -0
- package/lib/commonjs/Icons/Wave/index.js +30 -0
- package/lib/commonjs/Icons/Wave/index.js.map +1 -0
- package/lib/commonjs/Icons/index.js +88 -0
- package/lib/commonjs/Icons/index.js.map +1 -1
- package/lib/commonjs/components/BackButton.js +3 -3
- package/lib/commonjs/components/BackButton.js.map +1 -1
- package/lib/commonjs/components/DisplayView.js +0 -6
- package/lib/commonjs/components/DisplayView.js.map +1 -1
- package/lib/commonjs/components/HMSHLSStreamLoading.js +56 -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/{HMSPreviewDeviceSettings.js → HMSManageAudioOutput.js} +97 -161
- package/lib/commonjs/components/HMSManageAudioOutput.js.map +1 -0
- package/lib/commonjs/components/HMSManageLeave.js +7 -60
- package/lib/commonjs/components/HMSManageLeave.js.map +1 -1
- package/lib/commonjs/components/HMSMeetingEnded.js +36 -0
- package/lib/commonjs/components/HMSMeetingEnded.js.map +1 -0
- package/lib/commonjs/components/HMSPreviewEditName.js +7 -4
- package/lib/commonjs/components/HMSPreviewEditName.js.map +1 -1
- package/lib/commonjs/components/HMSPreviewHLSLiveIndicator.js +64 -0
- package/lib/commonjs/components/HMSPreviewHLSLiveIndicator.js.map +1 -0
- package/lib/commonjs/components/HMSPreviewJoinButton.js +25 -6
- package/lib/commonjs/components/HMSPreviewJoinButton.js.map +1 -1
- package/lib/commonjs/components/HMSPreviewNetworkQuality.js +43 -0
- package/lib/commonjs/components/HMSPreviewNetworkQuality.js.map +1 -0
- package/lib/commonjs/components/HMSPreviewPeersList.js +4 -50
- package/lib/commonjs/components/HMSPreviewPeersList.js.map +1 -1
- package/lib/commonjs/components/HMSPreviewSubtitle.js +26 -3
- package/lib/commonjs/components/HMSPreviewSubtitle.js.map +1 -1
- package/lib/commonjs/components/HMSPreviewTile.js +11 -77
- package/lib/commonjs/components/HMSPreviewTile.js.map +1 -1
- package/lib/commonjs/components/HMSPreviewTitle.js +0 -1
- package/lib/commonjs/components/HMSPreviewTitle.js.map +1 -1
- package/lib/commonjs/components/HMSRoomOptions.js +2 -3
- package/lib/commonjs/components/HMSRoomOptions.js.map +1 -1
- package/lib/commonjs/components/HMSShowNetworkQuality.js +0 -2
- package/lib/commonjs/components/HMSShowNetworkQuality.js.map +1 -1
- package/lib/commonjs/components/Meeting.js +7 -0
- 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/Modals.js +39 -299
- package/lib/commonjs/components/Modals.js.map +1 -1
- package/lib/commonjs/components/Participants/ParticipantsList.js +1 -20
- package/lib/commonjs/components/Participants/ParticipantsList.js.map +1 -1
- package/lib/commonjs/components/PeerSettingsModalContent.js +2 -13
- package/lib/commonjs/components/PeerSettingsModalContent.js.map +1 -1
- package/lib/commonjs/components/Preview.js +87 -28
- package/lib/commonjs/components/Preview.js.map +1 -1
- package/lib/commonjs/components/RoomSettingsModalContent.js +2 -101
- package/lib/commonjs/components/RoomSettingsModalContent.js.map +1 -1
- 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-util-selectors.js +8 -1
- package/lib/commonjs/hooks-util-selectors.js.map +1 -1
- package/lib/commonjs/hooks-util.js +140 -82
- package/lib/commonjs/hooks-util.js.map +1 -1
- package/lib/commonjs/redux/actionTypes.js +7 -1
- package/lib/commonjs/redux/actionTypes.js.map +1 -1
- package/lib/commonjs/redux/actions/index.js +25 -1
- package/lib/commonjs/redux/actions/index.js.map +1 -1
- package/lib/commonjs/redux/reducers/appState.js +14 -1
- package/lib/commonjs/redux/reducers/appState.js.map +1 -1
- package/lib/commonjs/redux/reducers/hmsStates.js +12 -1
- package/lib/commonjs/redux/reducers/hmsStates.js.map +1 -1
- package/lib/commonjs/utils/theme.js +6 -1
- package/lib/commonjs/utils/theme.js.map +1 -1
- package/lib/commonjs/utils/types.js +0 -1
- 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 +1 -14
- package/lib/module/HMSInstanceSetup.js.map +1 -1
- package/lib/module/HMSPrebuilt.js +13 -3
- package/lib/module/HMSPrebuilt.js.map +1 -1
- package/lib/module/HMSRoomSetup.js +43 -19
- package/lib/module/HMSRoomSetup.js.map +1 -1
- package/lib/module/Icons/AnswerPhone/assets/answer-phone.png +0 -0
- package/lib/module/Icons/AnswerPhone/assets/answer-phone@2x.png +0 -0
- package/lib/module/Icons/AnswerPhone/assets/answer-phone@3x.png +0 -0
- package/lib/module/Icons/AnswerPhone/index.js +22 -0
- package/lib/module/Icons/AnswerPhone/index.js.map +1 -0
- package/lib/module/Icons/Bluetooth/assets/bluetooth-on.png +0 -0
- package/lib/module/Icons/Bluetooth/assets/bluetooth-on@2x.png +0 -0
- package/lib/module/Icons/Bluetooth/assets/bluetooth-on@3x.png +0 -0
- package/lib/module/Icons/Bluetooth/index.js +22 -0
- package/lib/module/Icons/Bluetooth/index.js.map +1 -0
- 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 +22 -0
- package/lib/module/Icons/Check/index.js.map +1 -0
- package/lib/module/Icons/GenericLogo/assets/generic-logo.png +0 -0
- package/lib/module/Icons/GenericLogo/assets/generic-logo@2x.png +0 -0
- package/lib/module/Icons/GenericLogo/assets/generic-logo@3x.png +0 -0
- package/lib/module/Icons/GenericLogo/index.js +22 -0
- package/lib/module/Icons/GenericLogo/index.js.map +1 -0
- package/lib/module/Icons/Headphones/assets/headphones.png +0 -0
- package/lib/module/Icons/Headphones/assets/headphones@2x.png +0 -0
- package/lib/module/Icons/Headphones/assets/headphones@3x.png +0 -0
- package/lib/module/Icons/Headphones/index.js +22 -0
- package/lib/module/Icons/Headphones/index.js.map +1 -0
- package/lib/module/Icons/Person/assets/person.png +0 -0
- package/lib/module/Icons/Person/assets/person@2x.png +0 -0
- package/lib/module/Icons/Person/assets/person@3x.png +0 -0
- package/lib/module/Icons/Person/index.js +22 -0
- package/lib/module/Icons/Person/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/Speaker/assets/speaker-large.png +0 -0
- package/lib/module/Icons/Speaker/assets/speaker-large@2x.png +0 -0
- package/lib/module/Icons/Speaker/assets/speaker-large@3x.png +0 -0
- package/lib/module/Icons/Speaker/index.js +7 -2
- package/lib/module/Icons/Speaker/index.js.map +1 -1
- package/lib/module/Icons/Wave/assets/wave.png +0 -0
- package/lib/module/Icons/Wave/assets/wave@2x.png +0 -0
- package/lib/module/Icons/Wave/assets/wave@3x.png +0 -0
- package/lib/module/Icons/Wave/index.js +22 -0
- package/lib/module/Icons/Wave/index.js.map +1 -0
- package/lib/module/Icons/index.js +8 -0
- package/lib/module/Icons/index.js.map +1 -1
- package/lib/module/components/BackButton.js +4 -4
- package/lib/module/components/BackButton.js.map +1 -1
- package/lib/module/components/DisplayView.js +1 -7
- package/lib/module/components/DisplayView.js.map +1 -1
- package/lib/module/components/HMSHLSStreamLoading.js +47 -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/HMSManageAudioOutput.js +232 -0
- package/lib/module/components/HMSManageAudioOutput.js.map +1 -0
- package/lib/module/components/HMSManageLeave.js +9 -62
- package/lib/module/components/HMSManageLeave.js.map +1 -1
- package/lib/module/components/HMSMeetingEnded.js +27 -0
- package/lib/module/components/HMSMeetingEnded.js.map +1 -0
- package/lib/module/components/HMSPreviewEditName.js +8 -5
- package/lib/module/components/HMSPreviewEditName.js.map +1 -1
- package/lib/module/components/HMSPreviewHLSLiveIndicator.js +55 -0
- package/lib/module/components/HMSPreviewHLSLiveIndicator.js.map +1 -0
- package/lib/module/components/HMSPreviewJoinButton.js +25 -6
- package/lib/module/components/HMSPreviewJoinButton.js.map +1 -1
- package/lib/module/components/HMSPreviewNetworkQuality.js +34 -0
- package/lib/module/components/HMSPreviewNetworkQuality.js.map +1 -0
- package/lib/module/components/HMSPreviewPeersList.js +4 -50
- package/lib/module/components/HMSPreviewPeersList.js.map +1 -1
- package/lib/module/components/HMSPreviewSubtitle.js +26 -3
- package/lib/module/components/HMSPreviewSubtitle.js.map +1 -1
- package/lib/module/components/HMSPreviewTile.js +12 -78
- package/lib/module/components/HMSPreviewTile.js.map +1 -1
- package/lib/module/components/HMSPreviewTitle.js +0 -1
- package/lib/module/components/HMSPreviewTitle.js.map +1 -1
- package/lib/module/components/HMSRoomOptions.js +2 -3
- package/lib/module/components/HMSRoomOptions.js.map +1 -1
- package/lib/module/components/HMSShowNetworkQuality.js +0 -2
- package/lib/module/components/HMSShowNetworkQuality.js.map +1 -1
- package/lib/module/components/Meeting.js +7 -0
- 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/Modals.js +40 -298
- package/lib/module/components/Modals.js.map +1 -1
- package/lib/module/components/Participants/ParticipantsList.js +1 -20
- package/lib/module/components/Participants/ParticipantsList.js.map +1 -1
- package/lib/module/components/PeerSettingsModalContent.js +2 -13
- package/lib/module/components/PeerSettingsModalContent.js.map +1 -1
- package/lib/module/components/Preview.js +88 -30
- package/lib/module/components/Preview.js.map +1 -1
- package/lib/module/components/RoomSettingsModalContent.js +3 -100
- package/lib/module/components/RoomSettingsModalContent.js.map +1 -1
- 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-util-selectors.js +6 -0
- package/lib/module/hooks-util-selectors.js.map +1 -1
- package/lib/module/hooks-util.js +142 -86
- package/lib/module/hooks-util.js.map +1 -1
- package/lib/module/redux/actionTypes.js +7 -1
- package/lib/module/redux/actionTypes.js.map +1 -1
- package/lib/module/redux/actions/index.js +20 -0
- package/lib/module/redux/actions/index.js.map +1 -1
- package/lib/module/redux/reducers/appState.js +14 -1
- package/lib/module/redux/reducers/appState.js.map +1 -1
- package/lib/module/redux/reducers/hmsStates.js +12 -1
- package/lib/module/redux/reducers/hmsStates.js.map +1 -1
- package/lib/module/utils/theme.js +6 -1
- package/lib/module/utils/theme.js.map +1 -1
- package/lib/module/utils/types.js +0 -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 +2 -3
- package/lib/typescript/HMSPrebuilt.d.ts.map +1 -1
- package/lib/typescript/HMSRoomSetup.d.ts.map +1 -1
- package/lib/typescript/Icons/AnswerPhone/index.d.ts +7 -0
- package/lib/typescript/Icons/AnswerPhone/index.d.ts.map +1 -0
- package/lib/typescript/Icons/Bluetooth/index.d.ts +7 -0
- package/lib/typescript/Icons/Bluetooth/index.d.ts.map +1 -0
- 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/GenericLogo/index.d.ts +7 -0
- package/lib/typescript/Icons/GenericLogo/index.d.ts.map +1 -0
- package/lib/typescript/Icons/Headphones/index.d.ts +7 -0
- package/lib/typescript/Icons/Headphones/index.d.ts.map +1 -0
- package/lib/typescript/Icons/Person/index.d.ts +7 -0
- package/lib/typescript/Icons/Person/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/Speaker/index.d.ts +1 -0
- package/lib/typescript/Icons/Speaker/index.d.ts.map +1 -1
- package/lib/typescript/Icons/Wave/index.d.ts +7 -0
- package/lib/typescript/Icons/Wave/index.d.ts.map +1 -0
- package/lib/typescript/Icons/index.d.ts +8 -0
- package/lib/typescript/Icons/index.d.ts.map +1 -1
- package/lib/typescript/components/CustomInput.d.ts +1 -1
- package/lib/typescript/components/DisplayView.d.ts.map +1 -1
- 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/HMSMeetingEnded.d.ts +3 -0
- package/lib/typescript/components/HMSMeetingEnded.d.ts.map +1 -0
- 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/HMSRoomOptions.d.ts.map +1 -1
- package/lib/typescript/components/HMSShowNetworkQuality.d.ts.map +1 -1
- 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/Modals.d.ts +1 -9
- package/lib/typescript/components/Modals.d.ts.map +1 -1
- package/lib/typescript/components/Participants/ParticipantsList.d.ts.map +1 -1
- package/lib/typescript/components/PeerSettingsModalContent.d.ts.map +1 -1
- package/lib/typescript/components/Preview.d.ts.map +1 -1
- package/lib/typescript/components/RoomSettingsModalContent.d.ts.map +1 -1
- package/lib/typescript/components/index.d.ts +0 -1
- package/lib/typescript/components/index.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 +9 -2
- package/lib/typescript/hooks-util.d.ts.map +1 -1
- package/lib/typescript/redux/actionTypes.d.ts +5 -1
- package/lib/typescript/redux/actionTypes.d.ts.map +1 -1
- package/lib/typescript/redux/actions/index.d.ts +24 -3
- package/lib/typescript/redux/actions/index.d.ts.map +1 -1
- package/lib/typescript/redux/index.d.ts +4 -1
- package/lib/typescript/redux/index.d.ts.map +1 -1
- package/lib/typescript/redux/reducers/appState.d.ts +3 -0
- package/lib/typescript/redux/reducers/appState.d.ts.map +1 -1
- package/lib/typescript/redux/reducers/hmsStates.d.ts +11 -2
- package/lib/typescript/redux/reducers/hmsStates.d.ts.map +1 -1
- package/lib/typescript/redux/reducers/index.d.ts +4 -1
- package/lib/typescript/redux/reducers/index.d.ts.map +1 -1
- package/lib/typescript/redux/reducers/userState.d.ts +2 -2
- package/lib/typescript/redux/reducers/userState.d.ts.map +1 -1
- package/lib/typescript/utils/theme.d.ts +5 -0
- package/lib/typescript/utils/theme.d.ts.map +1 -1
- package/lib/typescript/utils/types.d.ts +3 -4
- package/lib/typescript/utils/types.d.ts.map +1 -1
- package/package.json +11 -17
- package/src/HMSInstanceSetup.tsx +4 -31
- package/src/HMSPrebuilt.tsx +24 -6
- package/src/HMSRoomSetup.tsx +55 -17
- package/src/Icons/AnswerPhone/assets/answer-phone.png +0 -0
- package/src/Icons/AnswerPhone/assets/answer-phone@2x.png +0 -0
- package/src/Icons/AnswerPhone/assets/answer-phone@3x.png +0 -0
- package/src/Icons/AnswerPhone/index.tsx +27 -0
- package/src/Icons/Bluetooth/assets/bluetooth-on.png +0 -0
- package/src/Icons/Bluetooth/assets/bluetooth-on@2x.png +0 -0
- package/src/Icons/Bluetooth/assets/bluetooth-on@3x.png +0 -0
- package/src/Icons/Bluetooth/index.tsx +27 -0
- 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 +27 -0
- package/src/Icons/GenericLogo/assets/generic-logo.png +0 -0
- package/src/Icons/GenericLogo/assets/generic-logo@2x.png +0 -0
- package/src/Icons/GenericLogo/assets/generic-logo@3x.png +0 -0
- package/src/Icons/GenericLogo/index.tsx +27 -0
- package/src/Icons/Headphones/assets/headphones.png +0 -0
- package/src/Icons/Headphones/assets/headphones@2x.png +0 -0
- package/src/Icons/Headphones/assets/headphones@3x.png +0 -0
- package/src/Icons/Headphones/index.tsx +27 -0
- package/src/Icons/Person/assets/person.png +0 -0
- package/src/Icons/Person/assets/person@2x.png +0 -0
- package/src/Icons/Person/assets/person@3x.png +0 -0
- package/src/Icons/Person/index.tsx +27 -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/Speaker/assets/speaker-large.png +0 -0
- package/src/Icons/Speaker/assets/speaker-large@2x.png +0 -0
- package/src/Icons/Speaker/assets/speaker-large@3x.png +0 -0
- package/src/Icons/Speaker/index.tsx +10 -2
- package/src/Icons/Wave/assets/wave.png +0 -0
- package/src/Icons/Wave/assets/wave@2x.png +0 -0
- package/src/Icons/Wave/assets/wave@3x.png +0 -0
- package/src/Icons/Wave/index.tsx +24 -0
- package/src/Icons/index.ts +8 -0
- package/src/components/BackButton.tsx +4 -4
- package/src/components/DisplayView.tsx +0 -10
- package/src/components/HMSHLSStreamLoading.tsx +57 -0
- package/src/components/HMSLocalVideoView.tsx +42 -0
- package/src/components/HMSManageAudioOutput.tsx +311 -0
- package/src/components/HMSManageLeave.tsx +6 -77
- package/src/components/HMSMeetingEnded.tsx +29 -0
- package/src/components/HMSPreviewEditName.tsx +6 -5
- package/src/components/HMSPreviewHLSLiveIndicator.tsx +58 -0
- package/src/components/HMSPreviewJoinButton.tsx +44 -4
- package/src/components/HMSPreviewNetworkQuality.tsx +40 -0
- package/src/components/HMSPreviewPeersList.tsx +12 -72
- package/src/components/HMSPreviewSubtitle.tsx +27 -3
- package/src/components/HMSPreviewTile.tsx +13 -91
- package/src/components/HMSPreviewTitle.tsx +0 -1
- package/src/components/HMSRoomOptions.tsx +2 -8
- package/src/components/HMSShowNetworkQuality.tsx +0 -1
- package/src/components/Meeting.tsx +11 -0
- package/src/components/MenuModal/Menu.tsx +1 -1
- package/src/components/Modals.tsx +4 -299
- package/src/components/Participants/ParticipantsList.tsx +0 -24
- package/src/components/PeerSettingsModalContent.tsx +9 -23
- package/src/components/Preview.tsx +131 -48
- package/src/components/RoomSettingsModalContent.tsx +1 -138
- package/src/components/index.ts +0 -1
- package/src/hooks/useHmsInstance.ts +0 -1
- package/src/hooks-util-selectors.tsx +10 -0
- package/src/hooks-util.ts +168 -89
- package/src/redux/actionTypes.ts +8 -0
- package/src/redux/actions/index.ts +23 -2
- package/src/redux/reducers/appState.ts +9 -0
- package/src/redux/reducers/hmsStates.ts +28 -1
- package/src/redux/reducers/userState.ts +2 -2
- package/src/utils/theme.ts +6 -1
- package/src/utils/types.ts +3 -4
- package/src/utils.ts +2 -2
- package/lib/commonjs/components/HMSPreviewDeviceSettings.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/HMSPreviewDeviceSettings.js +0 -296
- package/lib/module/components/HMSPreviewDeviceSettings.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/HMSPreviewDeviceSettings.d.ts +0 -3
- package/lib/typescript/components/HMSPreviewDeviceSettings.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/HMSPreviewDeviceSettings.tsx +0 -387
- package/src/components/ZoomableView.tsx +0 -91
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.SaveScreenshot = exports.RtcStatsModal = exports.RecordingModal = exports.RealTime = exports.LeaveRoomModal = exports.HlsStreamingModal = exports.EndRoomModal = exports.EndHlsModal = exports.
|
|
6
|
+
exports.SaveScreenshot = exports.RtcStatsModal = exports.RecordingModal = exports.RealTime = exports.LeaveRoomModal = exports.HlsStreamingModal = exports.EndRoomModal = exports.EndHlsModal = exports.ChangeTrackStateModal = exports.ChangeTrackStateForRoleModal = exports.ChangeSortingModal = exports.ChangeRoleModal = exports.ChangeRoleAccepteModal = exports.ChangeNameModal = exports.ChangeLayoutModal = exports.ChangeBulkRoleModal = exports.ChangeAudioOutputModal = exports.ChangeAudioModeModal = exports.ChangeAudioMixingModeModal = exports.ChangeAspectRatio = void 0;
|
|
7
7
|
var _react = _interopRequireWildcard(require("react"));
|
|
8
8
|
var _reactNative = require("react-native");
|
|
9
9
|
var _reactNativeSimpleToast = _interopRequireDefault(require("react-native-simple-toast"));
|
|
@@ -13,10 +13,6 @@ var _Feather = _interopRequireDefault(require("react-native-vector-icons/Feather
|
|
|
13
13
|
var _Entypo = _interopRequireDefault(require("react-native-vector-icons/Entypo"));
|
|
14
14
|
var _MaterialCommunityIcons = _interopRequireDefault(require("react-native-vector-icons/MaterialCommunityIcons"));
|
|
15
15
|
var _MaterialIcons = _interopRequireDefault(require("react-native-vector-icons/MaterialIcons"));
|
|
16
|
-
var _reactNativeSlider = require("@miblanchard/react-native-slider");
|
|
17
|
-
var _rnFetchBlob = _interopRequireDefault(require("rn-fetch-blob"));
|
|
18
|
-
var _reactNativeFs = _interopRequireDefault(require("react-native-fs"));
|
|
19
|
-
var _reactNativeShare = _interopRequireDefault(require("react-native-share"));
|
|
20
16
|
var _styles = require("./styles");
|
|
21
17
|
var _CustomButton = require("./CustomButton");
|
|
22
18
|
var _CustomInput = require("./CustomInput");
|
|
@@ -117,88 +113,6 @@ const SaveScreenshot = _ref2 => {
|
|
|
117
113
|
cancelModal
|
|
118
114
|
} = _ref2;
|
|
119
115
|
const peer = (0, _reactRedux.useSelector)(state => state.hmsStates.localPeer || undefined);
|
|
120
|
-
|
|
121
|
-
/**
|
|
122
|
-
* Get target path on external storage to save image
|
|
123
|
-
* @param {string} imageExtension file extension to use for image
|
|
124
|
-
* @param {string} peerName name of peer to use in image name
|
|
125
|
-
* @returns string - path on external storage to save image
|
|
126
|
-
*/
|
|
127
|
-
const getTargetPath = (imageExtension, peerName) => {
|
|
128
|
-
// formatting peer name
|
|
129
|
-
const formattedPeerName = peerName ? peerName.replace(/ /g, '-').toLowerCase() : '';
|
|
130
|
-
|
|
131
|
-
// name to use for image
|
|
132
|
-
const imageName = `${formattedPeerName}-snapshot-${Date.now()}.${imageExtension}`;
|
|
133
|
-
|
|
134
|
-
// directory for saving image
|
|
135
|
-
const targetDir = _reactNative.Platform.OS === 'ios' ? _rnFetchBlob.default.fs.dirs.DocumentDir : _rnFetchBlob.default.fs.dirs.DCIMDir;
|
|
136
|
-
const targetLocation = `${targetDir}/${imageName}`;
|
|
137
|
-
return targetLocation;
|
|
138
|
-
};
|
|
139
|
-
const saveToDisk = async () => {
|
|
140
|
-
try {
|
|
141
|
-
// Requesting External Storage permission to save image to disk
|
|
142
|
-
const permission = await (0, _functions.requestExternalStoragePermission)();
|
|
143
|
-
|
|
144
|
-
// checking External Storage permission and availability of image source that we have to save to disk
|
|
145
|
-
if (permission && peer && imageSource) {
|
|
146
|
-
// Waiting for Interactions (Modal Close Animation) to finish
|
|
147
|
-
_reactNative.InteractionManager.runAfterInteractions(async () => {
|
|
148
|
-
// image extension to use
|
|
149
|
-
const imageExtension = 'png';
|
|
150
|
-
|
|
151
|
-
// Removing `file://` from URI if it exists, to keep it consistent with `base64` image case
|
|
152
|
-
const source = imageSource.uri.replace('file://', '');
|
|
153
|
-
|
|
154
|
-
// Checking if source is the local file on device
|
|
155
|
-
const isSourceLocalFile = imageSource.uri.startsWith('file://');
|
|
156
|
-
|
|
157
|
-
// if source is local file on ios device then we don't need to do any file system operation
|
|
158
|
-
// We can use that local file to show preview window to user on ios
|
|
159
|
-
const targetLocation = isSourceLocalFile && _reactNative.Platform.OS === 'ios' ? source : getTargetPath(imageExtension, peer.name);
|
|
160
|
-
|
|
161
|
-
// if source is local file on android device, then we copy source file to target path
|
|
162
|
-
if (isSourceLocalFile) {
|
|
163
|
-
if (_reactNative.Platform.OS === 'android') {
|
|
164
|
-
await _reactNativeFs.default.copyFile(source,
|
|
165
|
-
// Source Dir
|
|
166
|
-
targetLocation // Target Dir
|
|
167
|
-
);
|
|
168
|
-
}
|
|
169
|
-
}
|
|
170
|
-
// if source is not local file, then we write to target path
|
|
171
|
-
else {
|
|
172
|
-
await _rnFetchBlob.default.fs.writeFile(targetLocation,
|
|
173
|
-
// Target Dir
|
|
174
|
-
source.replace('data:image/png;base64,', ''),
|
|
175
|
-
// Data to write to "Target Dir"
|
|
176
|
-
'base64');
|
|
177
|
-
}
|
|
178
|
-
_reactNativeShare.default.open({
|
|
179
|
-
url: 'file://' + targetLocation
|
|
180
|
-
}).then(_ref3 => {
|
|
181
|
-
let {
|
|
182
|
-
message
|
|
183
|
-
} = _ref3;
|
|
184
|
-
if (message.includes('SaveToCameraRoll')) {
|
|
185
|
-
_reactNativeSimpleToast.default.showWithGravity('Snapshot has been saved successfully', _reactNativeSimpleToast.default.LONG, _reactNativeSimpleToast.default.TOP);
|
|
186
|
-
}
|
|
187
|
-
cancelModal();
|
|
188
|
-
}).catch(error => console.log('share error -> ', error)).finally(() => {
|
|
189
|
-
// On Android, We have already saved image into DCIM dir
|
|
190
|
-
// Therefore, we can notify user about "save success" and close modal
|
|
191
|
-
if (_reactNative.Platform.OS === 'android') {
|
|
192
|
-
_reactNativeSimpleToast.default.showWithGravity('Snapshot has been saved successfully', _reactNativeSimpleToast.default.LONG, _reactNativeSimpleToast.default.TOP);
|
|
193
|
-
cancelModal();
|
|
194
|
-
}
|
|
195
|
-
});
|
|
196
|
-
});
|
|
197
|
-
}
|
|
198
|
-
} catch (error) {
|
|
199
|
-
console.warn('Snapshot Save Error: ', error);
|
|
200
|
-
}
|
|
201
|
-
};
|
|
202
116
|
return /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
203
117
|
style: [{
|
|
204
118
|
flexGrow: 1
|
|
@@ -212,68 +126,19 @@ const SaveScreenshot = _ref2 => {
|
|
|
212
126
|
}) : null, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
213
127
|
style: _styles.styles.roleChangeModalPermissionContainer
|
|
214
128
|
}, /*#__PURE__*/_react.default.createElement(_CustomButton.CustomButton, {
|
|
215
|
-
title: "
|
|
129
|
+
title: "Done",
|
|
216
130
|
onPress: cancelModal,
|
|
217
131
|
viewStyle: [_styles.styles.roleChangeModalCancelButton, {
|
|
218
|
-
width: '
|
|
219
|
-
}],
|
|
220
|
-
textStyle: _styles.styles.roleChangeModalButtonText
|
|
221
|
-
}), /*#__PURE__*/_react.default.createElement(_CustomButton.CustomButton, {
|
|
222
|
-
title: "Save to Disk",
|
|
223
|
-
onPress: saveToDisk,
|
|
224
|
-
viewStyle: [_styles.styles.roleChangeModalSuccessButton, {
|
|
225
|
-
width: '56%'
|
|
132
|
+
width: '100%'
|
|
226
133
|
}],
|
|
227
134
|
textStyle: _styles.styles.roleChangeModalButtonText
|
|
228
135
|
})));
|
|
229
136
|
};
|
|
230
137
|
exports.SaveScreenshot = SaveScreenshot;
|
|
231
|
-
const
|
|
138
|
+
const ChangeNameModal = _ref3 => {
|
|
232
139
|
let {
|
|
233
140
|
cancelModal
|
|
234
|
-
} =
|
|
235
|
-
const instance = (0, _hooksUtil.useHMSInstance)();
|
|
236
|
-
const peer = (0, _reactRedux.useSelector)(state => state.app.peerToUpdate);
|
|
237
|
-
const [volume, setVolume] = (0, _react.useState)(0);
|
|
238
|
-
const changeVolume = () => {
|
|
239
|
-
if (peer !== null && peer !== void 0 && peer.audioTrack) {
|
|
240
|
-
instance === null || instance === void 0 ? void 0 : instance.setVolume(peer === null || peer === void 0 ? void 0 : peer.audioTrack, volume);
|
|
241
|
-
}
|
|
242
|
-
cancelModal();
|
|
243
|
-
};
|
|
244
|
-
return /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
245
|
-
style: _styles.styles.volumeModalContainer
|
|
246
|
-
}, /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
247
|
-
style: _styles.styles.roleChangeModalHeading
|
|
248
|
-
}, "Set Volume"), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
249
|
-
style: _styles.styles.volumeModalSlider
|
|
250
|
-
}, /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
251
|
-
style: _styles.styles.roleChangeModalDescription
|
|
252
|
-
}, "Volume: ", volume), /*#__PURE__*/_react.default.createElement(_reactNativeSlider.Slider, {
|
|
253
|
-
value: volume,
|
|
254
|
-
maximumValue: 10,
|
|
255
|
-
minimumValue: 0,
|
|
256
|
-
step: 1,
|
|
257
|
-
onValueChange: value => setVolume(value[0])
|
|
258
|
-
})), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
259
|
-
style: _styles.styles.roleChangeModalPermissionContainer
|
|
260
|
-
}, /*#__PURE__*/_react.default.createElement(_CustomButton.CustomButton, {
|
|
261
|
-
title: "Cancel",
|
|
262
|
-
onPress: cancelModal,
|
|
263
|
-
viewStyle: _styles.styles.roleChangeModalCancelButton,
|
|
264
|
-
textStyle: _styles.styles.roleChangeModalButtonText
|
|
265
|
-
}), /*#__PURE__*/_react.default.createElement(_CustomButton.CustomButton, {
|
|
266
|
-
title: "Change",
|
|
267
|
-
onPress: changeVolume,
|
|
268
|
-
viewStyle: _styles.styles.roleChangeModalSuccessButton,
|
|
269
|
-
textStyle: _styles.styles.roleChangeModalButtonText
|
|
270
|
-
})));
|
|
271
|
-
};
|
|
272
|
-
exports.ChangeVolumeModal = ChangeVolumeModal;
|
|
273
|
-
const ChangeNameModal = _ref5 => {
|
|
274
|
-
let {
|
|
275
|
-
cancelModal
|
|
276
|
-
} = _ref5;
|
|
141
|
+
} = _ref3;
|
|
277
142
|
const instance = (0, _hooksUtil.useHMSInstance)();
|
|
278
143
|
const peer = (0, _reactRedux.useSelector)(state => state.app.peerToUpdate);
|
|
279
144
|
const dispatch = (0, _reactRedux.useDispatch)();
|
|
@@ -467,11 +332,11 @@ const RtcStatsModal = () => {
|
|
|
467
332
|
}) : null));
|
|
468
333
|
};
|
|
469
334
|
exports.RtcStatsModal = RtcStatsModal;
|
|
470
|
-
const LeaveRoomModal =
|
|
335
|
+
const LeaveRoomModal = _ref4 => {
|
|
471
336
|
let {
|
|
472
337
|
onSuccess,
|
|
473
338
|
cancelModal
|
|
474
|
-
} =
|
|
339
|
+
} = _ref4;
|
|
475
340
|
const onLeave = () => {
|
|
476
341
|
cancelModal();
|
|
477
342
|
onSuccess();
|
|
@@ -505,11 +370,11 @@ const LeaveRoomModal = _ref6 => {
|
|
|
505
370
|
})));
|
|
506
371
|
};
|
|
507
372
|
exports.LeaveRoomModal = LeaveRoomModal;
|
|
508
|
-
const EndRoomModal =
|
|
373
|
+
const EndRoomModal = _ref5 => {
|
|
509
374
|
let {
|
|
510
375
|
onSuccess,
|
|
511
376
|
cancelModal
|
|
512
|
-
} =
|
|
377
|
+
} = _ref5;
|
|
513
378
|
const onEnd = () => {
|
|
514
379
|
cancelModal();
|
|
515
380
|
onSuccess();
|
|
@@ -543,10 +408,10 @@ const EndRoomModal = _ref7 => {
|
|
|
543
408
|
})));
|
|
544
409
|
};
|
|
545
410
|
exports.EndRoomModal = EndRoomModal;
|
|
546
|
-
const ChangeAudioOutputModal =
|
|
411
|
+
const ChangeAudioOutputModal = _ref6 => {
|
|
547
412
|
let {
|
|
548
413
|
cancelModal
|
|
549
|
-
} =
|
|
414
|
+
} = _ref6;
|
|
550
415
|
const instance = (0, _hooksUtil.useHMSInstance)();
|
|
551
416
|
const [currentOutputDevice, setCurrentOutputDevice] = (0, _react.useState)(_reactNativeHms.HMSAudioDevice.SPEAKER_PHONE);
|
|
552
417
|
const [audioOutputDevicesList, setAudioOutputDevicesList] = (0, _react.useState)([]);
|
|
@@ -596,10 +461,10 @@ const ChangeAudioOutputModal = _ref8 => {
|
|
|
596
461
|
})));
|
|
597
462
|
};
|
|
598
463
|
exports.ChangeAudioOutputModal = ChangeAudioOutputModal;
|
|
599
|
-
const ChangeAspectRatio =
|
|
464
|
+
const ChangeAspectRatio = _ref7 => {
|
|
600
465
|
let {
|
|
601
466
|
cancelModal
|
|
602
|
-
} =
|
|
467
|
+
} = _ref7;
|
|
603
468
|
const {
|
|
604
469
|
height
|
|
605
470
|
} = (0, _reactNative.useWindowDimensions)();
|
|
@@ -651,12 +516,12 @@ const ChangeAspectRatio = _ref9 => {
|
|
|
651
516
|
})));
|
|
652
517
|
};
|
|
653
518
|
exports.ChangeAspectRatio = ChangeAspectRatio;
|
|
654
|
-
const ChangeAudioModeModal =
|
|
519
|
+
const ChangeAudioModeModal = _ref8 => {
|
|
655
520
|
let {
|
|
656
521
|
cancelModal,
|
|
657
522
|
audioMode,
|
|
658
523
|
setAudioMode
|
|
659
|
-
} =
|
|
524
|
+
} = _ref8;
|
|
660
525
|
const instance = (0, _hooksUtil.useHMSInstance)();
|
|
661
526
|
const [currentAudioMode, setCurrentAudioMode] = (0, _react.useState)(audioMode);
|
|
662
527
|
const AudioModeList = ['MODE_NORMAL', 'MODE_RINGTONE', 'MODE_IN_CALL', 'MODE_IN_COMMUNICATION', 'MODE_CALL_SCREENING'];
|
|
@@ -700,12 +565,12 @@ const ChangeAudioModeModal = _ref10 => {
|
|
|
700
565
|
})));
|
|
701
566
|
};
|
|
702
567
|
exports.ChangeAudioModeModal = ChangeAudioModeModal;
|
|
703
|
-
const ChangeAudioMixingModeModal =
|
|
568
|
+
const ChangeAudioMixingModeModal = _ref9 => {
|
|
704
569
|
let {
|
|
705
570
|
newAudioMixingMode,
|
|
706
571
|
cancelModal,
|
|
707
572
|
setNewAudioMixingMode
|
|
708
|
-
} =
|
|
573
|
+
} = _ref9;
|
|
709
574
|
const instance = (0, _hooksUtil.useHMSInstance)();
|
|
710
575
|
const changeAudioMixingMode = async () => {
|
|
711
576
|
await (instance === null || instance === void 0 ? void 0 : instance.setAudioMixingMode(newAudioMixingMode));
|
|
@@ -748,13 +613,13 @@ const ChangeAudioMixingModeModal = _ref11 => {
|
|
|
748
613
|
})));
|
|
749
614
|
};
|
|
750
615
|
exports.ChangeAudioMixingModeModal = ChangeAudioMixingModeModal;
|
|
751
|
-
const ChangeSortingModal =
|
|
616
|
+
const ChangeSortingModal = _ref10 => {
|
|
752
617
|
let {
|
|
753
618
|
data,
|
|
754
619
|
selectedItem,
|
|
755
620
|
onItemSelected,
|
|
756
621
|
cancelModal
|
|
757
|
-
} =
|
|
622
|
+
} = _ref10;
|
|
758
623
|
const [sortingType, setSortingType] = (0, _react.useState)(selectedItem || _types.SortingType.DEFAULT);
|
|
759
624
|
const changeSorting = () => {
|
|
760
625
|
onItemSelected(sortingType);
|
|
@@ -784,13 +649,13 @@ const ChangeSortingModal = _ref12 => {
|
|
|
784
649
|
})));
|
|
785
650
|
};
|
|
786
651
|
exports.ChangeSortingModal = ChangeSortingModal;
|
|
787
|
-
const ChangeLayoutModal =
|
|
652
|
+
const ChangeLayoutModal = _ref11 => {
|
|
788
653
|
let {
|
|
789
654
|
data,
|
|
790
655
|
selectedItem,
|
|
791
656
|
onItemSelected,
|
|
792
657
|
cancelModal
|
|
793
|
-
} =
|
|
658
|
+
} = _ref11;
|
|
794
659
|
const [layout, setLayout] = (0, _react.useState)(selectedItem);
|
|
795
660
|
const changeLayout = () => {
|
|
796
661
|
onItemSelected(layout);
|
|
@@ -820,11 +685,11 @@ const ChangeLayoutModal = _ref13 => {
|
|
|
820
685
|
})));
|
|
821
686
|
};
|
|
822
687
|
exports.ChangeLayoutModal = ChangeLayoutModal;
|
|
823
|
-
const ChangeTrackStateForRoleModal =
|
|
688
|
+
const ChangeTrackStateForRoleModal = _ref12 => {
|
|
824
689
|
var _localPeerRole$permis, _localPeerRole$permis2;
|
|
825
690
|
let {
|
|
826
691
|
cancelModal
|
|
827
|
-
} =
|
|
692
|
+
} = _ref12;
|
|
828
693
|
const instance = (0, _hooksUtil.useHMSInstance)();
|
|
829
694
|
const roles = (0, _reactRedux.useSelector)(state => state.hmsStates.roles);
|
|
830
695
|
const localPeerRole = (0, _reactRedux.useSelector)(state => {
|
|
@@ -940,12 +805,12 @@ const ChangeTrackStateForRoleModal = _ref14 => {
|
|
|
940
805
|
})));
|
|
941
806
|
};
|
|
942
807
|
exports.ChangeTrackStateForRoleModal = ChangeTrackStateForRoleModal;
|
|
943
|
-
const ChangeTrackStateModal =
|
|
808
|
+
const ChangeTrackStateModal = _ref13 => {
|
|
944
809
|
var _roleChangeRequest$re, _roleChangeRequest$su2;
|
|
945
810
|
let {
|
|
946
811
|
roleChangeRequest,
|
|
947
812
|
cancelModal
|
|
948
|
-
} =
|
|
813
|
+
} = _ref13;
|
|
949
814
|
const localPeer = (0, _reactRedux.useSelector)(state => state.hmsStates.localPeer);
|
|
950
815
|
const changeLayout = () => {
|
|
951
816
|
var _roleChangeRequest$su;
|
|
@@ -979,10 +844,10 @@ const ChangeTrackStateModal = _ref15 => {
|
|
|
979
844
|
})));
|
|
980
845
|
};
|
|
981
846
|
exports.ChangeTrackStateModal = ChangeTrackStateModal;
|
|
982
|
-
const HlsStreamingModal =
|
|
847
|
+
const HlsStreamingModal = _ref14 => {
|
|
983
848
|
let {
|
|
984
849
|
cancelModal
|
|
985
|
-
} =
|
|
850
|
+
} = _ref14;
|
|
986
851
|
const instance = (0, _hooksUtil.useHMSInstance)();
|
|
987
852
|
const roomID = (0, _reactRedux.useSelector)(state => state.user.roomID);
|
|
988
853
|
const [hlsStreamingDetails, setHLSStreamingDetails] = (0, _react.useState)({
|
|
@@ -1074,15 +939,12 @@ const HlsStreamingModal = _ref16 => {
|
|
|
1074
939
|
})));
|
|
1075
940
|
};
|
|
1076
941
|
exports.HlsStreamingModal = HlsStreamingModal;
|
|
1077
|
-
const RecordingModal =
|
|
1078
|
-
var _recordingDetails$res, _recordingDetails$res2, _recordingDetails$res4, _recordingDetails$res5;
|
|
942
|
+
const RecordingModal = _ref15 => {
|
|
1079
943
|
let {
|
|
1080
|
-
recordingModal,
|
|
1081
944
|
setModalVisible
|
|
1082
|
-
} =
|
|
945
|
+
} = _ref15;
|
|
1083
946
|
const instance = (0, _hooksUtil.useHMSInstance)();
|
|
1084
947
|
const roomID = (0, _reactRedux.useSelector)(state => state.user.roomID);
|
|
1085
|
-
const [resolutionDetails, setResolutionDetails] = (0, _react.useState)(false);
|
|
1086
948
|
const [recordingDetails, setRecordingDetails] = (0, _react.useState)({
|
|
1087
949
|
record: false,
|
|
1088
950
|
meetingURL: roomID ? roomID + '?token=beam_recording' : undefined
|
|
@@ -1091,7 +953,7 @@ const RecordingModal = _ref17 => {
|
|
|
1091
953
|
instance === null || instance === void 0 ? void 0 : instance.startRTMPOrRecording(recordingDetails).then(d => console.log('Start RTMP Or Recording Success: ', d)).catch(e => console.log('Start RTMP Or Recording Error: ', e));
|
|
1092
954
|
setModalVisible(_types.ModalTypes.DEFAULT);
|
|
1093
955
|
};
|
|
1094
|
-
return
|
|
956
|
+
return /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
1095
957
|
style: _styles.styles.roleChangeModal
|
|
1096
958
|
}, /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
1097
959
|
style: _styles.styles.roleChangeModalHeading
|
|
@@ -1146,35 +1008,7 @@ const RecordingModal = _ref17 => {
|
|
|
1146
1008
|
size: 10
|
|
1147
1009
|
})), /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
1148
1010
|
style: _styles.styles.roleChangeModalPermission
|
|
1149
|
-
}, "Record")), /*#__PURE__*/_react.default.createElement(_reactNative.
|
|
1150
|
-
style: _styles.styles.checkboxButtonContainer,
|
|
1151
|
-
onPress: () => {
|
|
1152
|
-
setResolutionDetails(!resolutionDetails);
|
|
1153
|
-
if (!resolutionDetails) {
|
|
1154
|
-
setModalVisible(_types.ModalTypes.RESOLUTION, true);
|
|
1155
|
-
setRecordingDetails({
|
|
1156
|
-
...recordingDetails,
|
|
1157
|
-
resolution: {
|
|
1158
|
-
height: 720,
|
|
1159
|
-
width: 1280
|
|
1160
|
-
}
|
|
1161
|
-
});
|
|
1162
|
-
} else {
|
|
1163
|
-
setRecordingDetails({
|
|
1164
|
-
...recordingDetails,
|
|
1165
|
-
resolution: undefined
|
|
1166
|
-
});
|
|
1167
|
-
}
|
|
1168
|
-
}
|
|
1169
|
-
}, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
1170
|
-
style: _styles.styles.roleChangeModalCheckBox
|
|
1171
|
-
}, resolutionDetails && /*#__PURE__*/_react.default.createElement(_Entypo.default, {
|
|
1172
|
-
name: "check",
|
|
1173
|
-
style: _styles.styles.roleChangeModalCheck,
|
|
1174
|
-
size: 10
|
|
1175
|
-
})), /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
1176
|
-
style: _styles.styles.roleChangeModalPermission
|
|
1177
|
-
}, "Resolution")), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
1011
|
+
}, "Record")), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
1178
1012
|
style: _styles.styles.roleChangeModalPermissionContainer
|
|
1179
1013
|
}, /*#__PURE__*/_react.default.createElement(_CustomButton.CustomButton, {
|
|
1180
1014
|
title: "Cancel",
|
|
@@ -1186,71 +1020,16 @@ const RecordingModal = _ref17 => {
|
|
|
1186
1020
|
onPress: changeLayout,
|
|
1187
1021
|
viewStyle: _styles.styles.roleChangeModalSuccessButton,
|
|
1188
1022
|
textStyle: _styles.styles.roleChangeModalButtonText
|
|
1189
|
-
}))) : /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
1190
|
-
style: _styles.styles.roleChangeModal
|
|
1191
|
-
}, /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
1192
|
-
style: _styles.styles.roleChangeModalHeading
|
|
1193
|
-
}, "Resolution Details"), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
1194
|
-
style: _styles.styles.resolutionContainer
|
|
1195
|
-
}, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
1196
|
-
style: _styles.styles.resolutionDetails
|
|
1197
|
-
}, /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
1198
|
-
style: _styles.styles.interRegular
|
|
1199
|
-
}, "Height :"), /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
1200
|
-
style: _styles.styles.resolutionValue
|
|
1201
|
-
}, (_recordingDetails$res = recordingDetails.resolution) === null || _recordingDetails$res === void 0 ? void 0 : _recordingDetails$res.height)), /*#__PURE__*/_react.default.createElement(_reactNativeSlider.Slider, {
|
|
1202
|
-
value: (_recordingDetails$res2 = recordingDetails.resolution) === null || _recordingDetails$res2 === void 0 ? void 0 : _recordingDetails$res2.height,
|
|
1203
|
-
maximumValue: 1280,
|
|
1204
|
-
minimumValue: 480,
|
|
1205
|
-
step: 10,
|
|
1206
|
-
onValueChange: value => {
|
|
1207
|
-
var _recordingDetails$res3;
|
|
1208
|
-
setRecordingDetails({
|
|
1209
|
-
...recordingDetails,
|
|
1210
|
-
resolution: {
|
|
1211
|
-
height: parseInt(value),
|
|
1212
|
-
width: ((_recordingDetails$res3 = recordingDetails.resolution) === null || _recordingDetails$res3 === void 0 ? void 0 : _recordingDetails$res3.width) ?? 1280
|
|
1213
|
-
}
|
|
1214
|
-
});
|
|
1215
|
-
}
|
|
1216
|
-
}), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
1217
|
-
style: _styles.styles.resolutionDetails
|
|
1218
|
-
}, /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
1219
|
-
style: _styles.styles.interRegular
|
|
1220
|
-
}, "Width :"), /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
1221
|
-
style: _styles.styles.resolutionValue
|
|
1222
|
-
}, (_recordingDetails$res4 = recordingDetails.resolution) === null || _recordingDetails$res4 === void 0 ? void 0 : _recordingDetails$res4.width)), /*#__PURE__*/_react.default.createElement(_reactNativeSlider.Slider, {
|
|
1223
|
-
value: (_recordingDetails$res5 = recordingDetails.resolution) === null || _recordingDetails$res5 === void 0 ? void 0 : _recordingDetails$res5.width,
|
|
1224
|
-
maximumValue: 1280,
|
|
1225
|
-
minimumValue: 500,
|
|
1226
|
-
step: 10,
|
|
1227
|
-
onValueChange: value => {
|
|
1228
|
-
var _recordingDetails$res6;
|
|
1229
|
-
setRecordingDetails({
|
|
1230
|
-
...recordingDetails,
|
|
1231
|
-
resolution: {
|
|
1232
|
-
width: parseInt(value),
|
|
1233
|
-
height: ((_recordingDetails$res6 = recordingDetails.resolution) === null || _recordingDetails$res6 === void 0 ? void 0 : _recordingDetails$res6.height) ?? 720
|
|
1234
|
-
}
|
|
1235
|
-
});
|
|
1236
|
-
}
|
|
1237
|
-
})), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
1238
|
-
style: _styles.styles.sortingButtonContainer
|
|
1239
|
-
}, /*#__PURE__*/_react.default.createElement(_CustomButton.CustomButton, {
|
|
1240
|
-
title: "Back",
|
|
1241
|
-
onPress: () => setModalVisible(_types.ModalTypes.RECORDING, true),
|
|
1242
|
-
viewStyle: _styles.styles.backButton,
|
|
1243
|
-
textStyle: _styles.styles.roleChangeModalButtonText
|
|
1244
1023
|
})));
|
|
1245
1024
|
};
|
|
1246
1025
|
exports.RecordingModal = RecordingModal;
|
|
1247
|
-
const ChangeRoleAccepteModal =
|
|
1026
|
+
const ChangeRoleAccepteModal = _ref16 => {
|
|
1248
1027
|
var _roleChangeRequest$re2, _roleChangeRequest$su3;
|
|
1249
1028
|
let {
|
|
1250
1029
|
instance,
|
|
1251
1030
|
roleChangeRequest,
|
|
1252
1031
|
cancelModal
|
|
1253
|
-
} =
|
|
1032
|
+
} = _ref16;
|
|
1254
1033
|
const changeLayout = () => {
|
|
1255
1034
|
instance === null || instance === void 0 ? void 0 : instance.acceptRoleChange();
|
|
1256
1035
|
cancelModal();
|
|
@@ -1276,11 +1055,11 @@ const ChangeRoleAccepteModal = _ref18 => {
|
|
|
1276
1055
|
})));
|
|
1277
1056
|
};
|
|
1278
1057
|
exports.ChangeRoleAccepteModal = ChangeRoleAccepteModal;
|
|
1279
|
-
const EndHlsModal =
|
|
1058
|
+
const EndHlsModal = _ref17 => {
|
|
1280
1059
|
let {
|
|
1281
1060
|
onSuccess,
|
|
1282
1061
|
cancelModal
|
|
1283
|
-
} =
|
|
1062
|
+
} = _ref17;
|
|
1284
1063
|
const onEnd = () => {
|
|
1285
1064
|
cancelModal();
|
|
1286
1065
|
onSuccess();
|
|
@@ -1314,10 +1093,10 @@ const EndHlsModal = _ref19 => {
|
|
|
1314
1093
|
})));
|
|
1315
1094
|
};
|
|
1316
1095
|
exports.EndHlsModal = EndHlsModal;
|
|
1317
|
-
const RealTime =
|
|
1096
|
+
const RealTime = _ref18 => {
|
|
1318
1097
|
let {
|
|
1319
1098
|
startedAt
|
|
1320
|
-
} =
|
|
1099
|
+
} = _ref18;
|
|
1321
1100
|
const [hour, setHour] = (0, _react.useState)(0);
|
|
1322
1101
|
const [minute, setMinute] = (0, _react.useState)(0);
|
|
1323
1102
|
const [second, setSecond] = (0, _react.useState)(0);
|
|
@@ -1367,54 +1146,15 @@ const RealTime = _ref20 => {
|
|
|
1367
1146
|
}, second < 10 ? '0' + second : second));
|
|
1368
1147
|
};
|
|
1369
1148
|
exports.RealTime = RealTime;
|
|
1370
|
-
const AudioShareSetVolumeModal = _ref21 => {
|
|
1371
|
-
let {
|
|
1372
|
-
success,
|
|
1373
|
-
cancel
|
|
1374
|
-
} = _ref21;
|
|
1375
|
-
const [volume, setVolume] = (0, _react.useState)(0);
|
|
1376
|
-
const changeVolume = () => {
|
|
1377
|
-
success(volume);
|
|
1378
|
-
cancel();
|
|
1379
|
-
};
|
|
1380
|
-
return /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
1381
|
-
style: _styles.styles.volumeModalContainer
|
|
1382
|
-
}, /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
1383
|
-
style: _styles.styles.roleChangeModalHeading
|
|
1384
|
-
}, "Set Volume"), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
1385
|
-
style: _styles.styles.volumeModalSlider
|
|
1386
|
-
}, /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
1387
|
-
style: _styles.styles.roleChangeModalDescription
|
|
1388
|
-
}, "Volume: ", volume), /*#__PURE__*/_react.default.createElement(_reactNativeSlider.Slider, {
|
|
1389
|
-
value: volume,
|
|
1390
|
-
maximumValue: 1,
|
|
1391
|
-
minimumValue: 0,
|
|
1392
|
-
step: 0.1,
|
|
1393
|
-
onValueChange: value => setVolume(value[0])
|
|
1394
|
-
})), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
1395
|
-
style: _styles.styles.roleChangeModalPermissionContainer
|
|
1396
|
-
}, /*#__PURE__*/_react.default.createElement(_CustomButton.CustomButton, {
|
|
1397
|
-
title: "Cancel",
|
|
1398
|
-
onPress: cancel,
|
|
1399
|
-
viewStyle: _styles.styles.roleChangeModalCancelButton,
|
|
1400
|
-
textStyle: _styles.styles.roleChangeModalButtonText
|
|
1401
|
-
}), /*#__PURE__*/_react.default.createElement(_CustomButton.CustomButton, {
|
|
1402
|
-
title: "Change",
|
|
1403
|
-
onPress: changeVolume,
|
|
1404
|
-
viewStyle: _styles.styles.roleChangeModalSuccessButton,
|
|
1405
|
-
textStyle: _styles.styles.roleChangeModalButtonText
|
|
1406
|
-
})));
|
|
1407
|
-
};
|
|
1408
|
-
exports.AudioShareSetVolumeModal = AudioShareSetVolumeModal;
|
|
1409
1149
|
var RoleSelection = /*#__PURE__*/function (RoleSelection) {
|
|
1410
1150
|
RoleSelection["TARGET"] = "TARGET";
|
|
1411
1151
|
RoleSelection["TO_CHANGE"] = "TO_CHANGE";
|
|
1412
1152
|
return RoleSelection;
|
|
1413
1153
|
}(RoleSelection || {});
|
|
1414
|
-
const ChangeBulkRoleModal =
|
|
1154
|
+
const ChangeBulkRoleModal = _ref19 => {
|
|
1415
1155
|
let {
|
|
1416
1156
|
cancelModal
|
|
1417
|
-
} =
|
|
1157
|
+
} = _ref19;
|
|
1418
1158
|
const hmsInstance = (0, _reactRedux.useSelector)(state => state.user.hmsInstance);
|
|
1419
1159
|
const roles = (0, _reactRedux.useSelector)(state => state.hmsStates.roles);
|
|
1420
1160
|
const [showRolesSelectionView, setShowRolesSelectionView] = (0, _react.useState)(null);
|