@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
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { useEffect, useState } from 'react';
|
|
2
|
-
import { View, TouchableOpacity, Text, ScrollView, TextInput, StyleSheet, Image,
|
|
2
|
+
import { View, TouchableOpacity, Text, ScrollView, TextInput, StyleSheet, Image, useWindowDimensions } from 'react-native';
|
|
3
3
|
import Toast from 'react-native-simple-toast';
|
|
4
4
|
import { useDispatch, useSelector } from 'react-redux';
|
|
5
5
|
import { HMSTrackType, HMSTrackSource, HMSAudioDevice, HMSAudioMixingMode, HMSHLSConfig } from '@100mslive/react-native-hms';
|
|
@@ -7,17 +7,13 @@ import Feather from 'react-native-vector-icons/Feather';
|
|
|
7
7
|
import Entypo from 'react-native-vector-icons/Entypo';
|
|
8
8
|
import MaterialCommunityIcons from 'react-native-vector-icons/MaterialCommunityIcons';
|
|
9
9
|
import MaterialIcons from 'react-native-vector-icons/MaterialIcons';
|
|
10
|
-
import { Slider } from '@miblanchard/react-native-slider';
|
|
11
|
-
import RNFetchBlob from 'rn-fetch-blob';
|
|
12
|
-
import RNFS from 'react-native-fs';
|
|
13
|
-
import Share from 'react-native-share';
|
|
14
10
|
import { styles } from './styles';
|
|
15
11
|
import { CustomButton } from './CustomButton';
|
|
16
12
|
import { CustomInput } from './CustomInput';
|
|
17
13
|
import { Menu, MenuItem } from './MenuModal';
|
|
18
14
|
import { CustomPicker } from './Picker';
|
|
19
15
|
import { changeHLSAspectRatio, changeShowStats, saveUserData } from '../redux/actions';
|
|
20
|
-
import {
|
|
16
|
+
import { getTime } from '../utils/functions';
|
|
21
17
|
import { ModalTypes, SUPPORTED_ASPECT_RATIOS, SortingType } from '../utils/types';
|
|
22
18
|
import { COLORS } from '../utils/theme';
|
|
23
19
|
import { SwitchRow } from './SwitchRow';
|
|
@@ -107,88 +103,6 @@ export const SaveScreenshot = _ref2 => {
|
|
|
107
103
|
cancelModal
|
|
108
104
|
} = _ref2;
|
|
109
105
|
const peer = useSelector(state => state.hmsStates.localPeer || undefined);
|
|
110
|
-
|
|
111
|
-
/**
|
|
112
|
-
* Get target path on external storage to save image
|
|
113
|
-
* @param {string} imageExtension file extension to use for image
|
|
114
|
-
* @param {string} peerName name of peer to use in image name
|
|
115
|
-
* @returns string - path on external storage to save image
|
|
116
|
-
*/
|
|
117
|
-
const getTargetPath = (imageExtension, peerName) => {
|
|
118
|
-
// formatting peer name
|
|
119
|
-
const formattedPeerName = peerName ? peerName.replace(/ /g, '-').toLowerCase() : '';
|
|
120
|
-
|
|
121
|
-
// name to use for image
|
|
122
|
-
const imageName = `${formattedPeerName}-snapshot-${Date.now()}.${imageExtension}`;
|
|
123
|
-
|
|
124
|
-
// directory for saving image
|
|
125
|
-
const targetDir = Platform.OS === 'ios' ? RNFetchBlob.fs.dirs.DocumentDir : RNFetchBlob.fs.dirs.DCIMDir;
|
|
126
|
-
const targetLocation = `${targetDir}/${imageName}`;
|
|
127
|
-
return targetLocation;
|
|
128
|
-
};
|
|
129
|
-
const saveToDisk = async () => {
|
|
130
|
-
try {
|
|
131
|
-
// Requesting External Storage permission to save image to disk
|
|
132
|
-
const permission = await requestExternalStoragePermission();
|
|
133
|
-
|
|
134
|
-
// checking External Storage permission and availability of image source that we have to save to disk
|
|
135
|
-
if (permission && peer && imageSource) {
|
|
136
|
-
// Waiting for Interactions (Modal Close Animation) to finish
|
|
137
|
-
InteractionManager.runAfterInteractions(async () => {
|
|
138
|
-
// image extension to use
|
|
139
|
-
const imageExtension = 'png';
|
|
140
|
-
|
|
141
|
-
// Removing `file://` from URI if it exists, to keep it consistent with `base64` image case
|
|
142
|
-
const source = imageSource.uri.replace('file://', '');
|
|
143
|
-
|
|
144
|
-
// Checking if source is the local file on device
|
|
145
|
-
const isSourceLocalFile = imageSource.uri.startsWith('file://');
|
|
146
|
-
|
|
147
|
-
// if source is local file on ios device then we don't need to do any file system operation
|
|
148
|
-
// We can use that local file to show preview window to user on ios
|
|
149
|
-
const targetLocation = isSourceLocalFile && Platform.OS === 'ios' ? source : getTargetPath(imageExtension, peer.name);
|
|
150
|
-
|
|
151
|
-
// if source is local file on android device, then we copy source file to target path
|
|
152
|
-
if (isSourceLocalFile) {
|
|
153
|
-
if (Platform.OS === 'android') {
|
|
154
|
-
await RNFS.copyFile(source,
|
|
155
|
-
// Source Dir
|
|
156
|
-
targetLocation // Target Dir
|
|
157
|
-
);
|
|
158
|
-
}
|
|
159
|
-
}
|
|
160
|
-
// if source is not local file, then we write to target path
|
|
161
|
-
else {
|
|
162
|
-
await RNFetchBlob.fs.writeFile(targetLocation,
|
|
163
|
-
// Target Dir
|
|
164
|
-
source.replace('data:image/png;base64,', ''),
|
|
165
|
-
// Data to write to "Target Dir"
|
|
166
|
-
'base64');
|
|
167
|
-
}
|
|
168
|
-
Share.open({
|
|
169
|
-
url: 'file://' + targetLocation
|
|
170
|
-
}).then(_ref3 => {
|
|
171
|
-
let {
|
|
172
|
-
message
|
|
173
|
-
} = _ref3;
|
|
174
|
-
if (message.includes('SaveToCameraRoll')) {
|
|
175
|
-
Toast.showWithGravity('Snapshot has been saved successfully', Toast.LONG, Toast.TOP);
|
|
176
|
-
}
|
|
177
|
-
cancelModal();
|
|
178
|
-
}).catch(error => console.log('share error -> ', error)).finally(() => {
|
|
179
|
-
// On Android, We have already saved image into DCIM dir
|
|
180
|
-
// Therefore, we can notify user about "save success" and close modal
|
|
181
|
-
if (Platform.OS === 'android') {
|
|
182
|
-
Toast.showWithGravity('Snapshot has been saved successfully', Toast.LONG, Toast.TOP);
|
|
183
|
-
cancelModal();
|
|
184
|
-
}
|
|
185
|
-
});
|
|
186
|
-
});
|
|
187
|
-
}
|
|
188
|
-
} catch (error) {
|
|
189
|
-
console.warn('Snapshot Save Error: ', error);
|
|
190
|
-
}
|
|
191
|
-
};
|
|
192
106
|
return /*#__PURE__*/React.createElement(View, {
|
|
193
107
|
style: [{
|
|
194
108
|
flexGrow: 1
|
|
@@ -202,66 +116,18 @@ export const SaveScreenshot = _ref2 => {
|
|
|
202
116
|
}) : null, /*#__PURE__*/React.createElement(View, {
|
|
203
117
|
style: styles.roleChangeModalPermissionContainer
|
|
204
118
|
}, /*#__PURE__*/React.createElement(CustomButton, {
|
|
205
|
-
title: "
|
|
119
|
+
title: "Done",
|
|
206
120
|
onPress: cancelModal,
|
|
207
121
|
viewStyle: [styles.roleChangeModalCancelButton, {
|
|
208
|
-
width: '
|
|
209
|
-
}],
|
|
210
|
-
textStyle: styles.roleChangeModalButtonText
|
|
211
|
-
}), /*#__PURE__*/React.createElement(CustomButton, {
|
|
212
|
-
title: "Save to Disk",
|
|
213
|
-
onPress: saveToDisk,
|
|
214
|
-
viewStyle: [styles.roleChangeModalSuccessButton, {
|
|
215
|
-
width: '56%'
|
|
122
|
+
width: '100%'
|
|
216
123
|
}],
|
|
217
124
|
textStyle: styles.roleChangeModalButtonText
|
|
218
125
|
})));
|
|
219
126
|
};
|
|
220
|
-
export const
|
|
127
|
+
export const ChangeNameModal = _ref3 => {
|
|
221
128
|
let {
|
|
222
129
|
cancelModal
|
|
223
|
-
} =
|
|
224
|
-
const instance = useHMSInstance();
|
|
225
|
-
const peer = useSelector(state => state.app.peerToUpdate);
|
|
226
|
-
const [volume, setVolume] = useState(0);
|
|
227
|
-
const changeVolume = () => {
|
|
228
|
-
if (peer !== null && peer !== void 0 && peer.audioTrack) {
|
|
229
|
-
instance === null || instance === void 0 ? void 0 : instance.setVolume(peer === null || peer === void 0 ? void 0 : peer.audioTrack, volume);
|
|
230
|
-
}
|
|
231
|
-
cancelModal();
|
|
232
|
-
};
|
|
233
|
-
return /*#__PURE__*/React.createElement(View, {
|
|
234
|
-
style: styles.volumeModalContainer
|
|
235
|
-
}, /*#__PURE__*/React.createElement(Text, {
|
|
236
|
-
style: styles.roleChangeModalHeading
|
|
237
|
-
}, "Set Volume"), /*#__PURE__*/React.createElement(View, {
|
|
238
|
-
style: styles.volumeModalSlider
|
|
239
|
-
}, /*#__PURE__*/React.createElement(Text, {
|
|
240
|
-
style: styles.roleChangeModalDescription
|
|
241
|
-
}, "Volume: ", volume), /*#__PURE__*/React.createElement(Slider, {
|
|
242
|
-
value: volume,
|
|
243
|
-
maximumValue: 10,
|
|
244
|
-
minimumValue: 0,
|
|
245
|
-
step: 1,
|
|
246
|
-
onValueChange: value => setVolume(value[0])
|
|
247
|
-
})), /*#__PURE__*/React.createElement(View, {
|
|
248
|
-
style: styles.roleChangeModalPermissionContainer
|
|
249
|
-
}, /*#__PURE__*/React.createElement(CustomButton, {
|
|
250
|
-
title: "Cancel",
|
|
251
|
-
onPress: cancelModal,
|
|
252
|
-
viewStyle: styles.roleChangeModalCancelButton,
|
|
253
|
-
textStyle: styles.roleChangeModalButtonText
|
|
254
|
-
}), /*#__PURE__*/React.createElement(CustomButton, {
|
|
255
|
-
title: "Change",
|
|
256
|
-
onPress: changeVolume,
|
|
257
|
-
viewStyle: styles.roleChangeModalSuccessButton,
|
|
258
|
-
textStyle: styles.roleChangeModalButtonText
|
|
259
|
-
})));
|
|
260
|
-
};
|
|
261
|
-
export const ChangeNameModal = _ref5 => {
|
|
262
|
-
let {
|
|
263
|
-
cancelModal
|
|
264
|
-
} = _ref5;
|
|
130
|
+
} = _ref3;
|
|
265
131
|
const instance = useHMSInstance();
|
|
266
132
|
const peer = useSelector(state => state.app.peerToUpdate);
|
|
267
133
|
const dispatch = useDispatch();
|
|
@@ -453,11 +319,11 @@ export const RtcStatsModal = () => {
|
|
|
453
319
|
}, key === 'resolution' ? `Height: ${(value === null || value === void 0 ? void 0 : value.height) ?? 0}, Width: ${(value === null || value === void 0 ? void 0 : value.width) ?? 0}` : value));
|
|
454
320
|
}) : null));
|
|
455
321
|
};
|
|
456
|
-
export const LeaveRoomModal =
|
|
322
|
+
export const LeaveRoomModal = _ref4 => {
|
|
457
323
|
let {
|
|
458
324
|
onSuccess,
|
|
459
325
|
cancelModal
|
|
460
|
-
} =
|
|
326
|
+
} = _ref4;
|
|
461
327
|
const onLeave = () => {
|
|
462
328
|
cancelModal();
|
|
463
329
|
onSuccess();
|
|
@@ -490,11 +356,11 @@ export const LeaveRoomModal = _ref6 => {
|
|
|
490
356
|
textStyle: styles.roleChangeModalButtonText
|
|
491
357
|
})));
|
|
492
358
|
};
|
|
493
|
-
export const EndRoomModal =
|
|
359
|
+
export const EndRoomModal = _ref5 => {
|
|
494
360
|
let {
|
|
495
361
|
onSuccess,
|
|
496
362
|
cancelModal
|
|
497
|
-
} =
|
|
363
|
+
} = _ref5;
|
|
498
364
|
const onEnd = () => {
|
|
499
365
|
cancelModal();
|
|
500
366
|
onSuccess();
|
|
@@ -527,10 +393,10 @@ export const EndRoomModal = _ref7 => {
|
|
|
527
393
|
textStyle: styles.roleChangeModalButtonText
|
|
528
394
|
})));
|
|
529
395
|
};
|
|
530
|
-
export const ChangeAudioOutputModal =
|
|
396
|
+
export const ChangeAudioOutputModal = _ref6 => {
|
|
531
397
|
let {
|
|
532
398
|
cancelModal
|
|
533
|
-
} =
|
|
399
|
+
} = _ref6;
|
|
534
400
|
const instance = useHMSInstance();
|
|
535
401
|
const [currentOutputDevice, setCurrentOutputDevice] = useState(HMSAudioDevice.SPEAKER_PHONE);
|
|
536
402
|
const [audioOutputDevicesList, setAudioOutputDevicesList] = useState([]);
|
|
@@ -579,10 +445,10 @@ export const ChangeAudioOutputModal = _ref8 => {
|
|
|
579
445
|
textStyle: styles.roleChangeModalButtonText
|
|
580
446
|
})));
|
|
581
447
|
};
|
|
582
|
-
export const ChangeAspectRatio =
|
|
448
|
+
export const ChangeAspectRatio = _ref7 => {
|
|
583
449
|
let {
|
|
584
450
|
cancelModal
|
|
585
|
-
} =
|
|
451
|
+
} = _ref7;
|
|
586
452
|
const {
|
|
587
453
|
height
|
|
588
454
|
} = useWindowDimensions();
|
|
@@ -633,12 +499,12 @@ export const ChangeAspectRatio = _ref9 => {
|
|
|
633
499
|
textStyle: styles.roleChangeModalButtonText
|
|
634
500
|
})));
|
|
635
501
|
};
|
|
636
|
-
export const ChangeAudioModeModal =
|
|
502
|
+
export const ChangeAudioModeModal = _ref8 => {
|
|
637
503
|
let {
|
|
638
504
|
cancelModal,
|
|
639
505
|
audioMode,
|
|
640
506
|
setAudioMode
|
|
641
|
-
} =
|
|
507
|
+
} = _ref8;
|
|
642
508
|
const instance = useHMSInstance();
|
|
643
509
|
const [currentAudioMode, setCurrentAudioMode] = useState(audioMode);
|
|
644
510
|
const AudioModeList = ['MODE_NORMAL', 'MODE_RINGTONE', 'MODE_IN_CALL', 'MODE_IN_COMMUNICATION', 'MODE_CALL_SCREENING'];
|
|
@@ -681,12 +547,12 @@ export const ChangeAudioModeModal = _ref10 => {
|
|
|
681
547
|
textStyle: styles.roleChangeModalButtonText
|
|
682
548
|
})));
|
|
683
549
|
};
|
|
684
|
-
export const ChangeAudioMixingModeModal =
|
|
550
|
+
export const ChangeAudioMixingModeModal = _ref9 => {
|
|
685
551
|
let {
|
|
686
552
|
newAudioMixingMode,
|
|
687
553
|
cancelModal,
|
|
688
554
|
setNewAudioMixingMode
|
|
689
|
-
} =
|
|
555
|
+
} = _ref9;
|
|
690
556
|
const instance = useHMSInstance();
|
|
691
557
|
const changeAudioMixingMode = async () => {
|
|
692
558
|
await (instance === null || instance === void 0 ? void 0 : instance.setAudioMixingMode(newAudioMixingMode));
|
|
@@ -728,13 +594,13 @@ export const ChangeAudioMixingModeModal = _ref11 => {
|
|
|
728
594
|
textStyle: styles.roleChangeModalButtonText
|
|
729
595
|
})));
|
|
730
596
|
};
|
|
731
|
-
export const ChangeSortingModal =
|
|
597
|
+
export const ChangeSortingModal = _ref10 => {
|
|
732
598
|
let {
|
|
733
599
|
data,
|
|
734
600
|
selectedItem,
|
|
735
601
|
onItemSelected,
|
|
736
602
|
cancelModal
|
|
737
|
-
} =
|
|
603
|
+
} = _ref10;
|
|
738
604
|
const [sortingType, setSortingType] = useState(selectedItem || SortingType.DEFAULT);
|
|
739
605
|
const changeSorting = () => {
|
|
740
606
|
onItemSelected(sortingType);
|
|
@@ -763,13 +629,13 @@ export const ChangeSortingModal = _ref12 => {
|
|
|
763
629
|
textStyle: styles.roleChangeModalButtonText
|
|
764
630
|
})));
|
|
765
631
|
};
|
|
766
|
-
export const ChangeLayoutModal =
|
|
632
|
+
export const ChangeLayoutModal = _ref11 => {
|
|
767
633
|
let {
|
|
768
634
|
data,
|
|
769
635
|
selectedItem,
|
|
770
636
|
onItemSelected,
|
|
771
637
|
cancelModal
|
|
772
|
-
} =
|
|
638
|
+
} = _ref11;
|
|
773
639
|
const [layout, setLayout] = useState(selectedItem);
|
|
774
640
|
const changeLayout = () => {
|
|
775
641
|
onItemSelected(layout);
|
|
@@ -798,11 +664,11 @@ export const ChangeLayoutModal = _ref13 => {
|
|
|
798
664
|
textStyle: styles.roleChangeModalButtonText
|
|
799
665
|
})));
|
|
800
666
|
};
|
|
801
|
-
export const ChangeTrackStateForRoleModal =
|
|
667
|
+
export const ChangeTrackStateForRoleModal = _ref12 => {
|
|
802
668
|
var _localPeerRole$permis, _localPeerRole$permis2;
|
|
803
669
|
let {
|
|
804
670
|
cancelModal
|
|
805
|
-
} =
|
|
671
|
+
} = _ref12;
|
|
806
672
|
const instance = useHMSInstance();
|
|
807
673
|
const roles = useSelector(state => state.hmsStates.roles);
|
|
808
674
|
const localPeerRole = useSelector(state => {
|
|
@@ -917,12 +783,12 @@ export const ChangeTrackStateForRoleModal = _ref14 => {
|
|
|
917
783
|
textStyle: styles.roleChangeModalButtonText
|
|
918
784
|
})));
|
|
919
785
|
};
|
|
920
|
-
export const ChangeTrackStateModal =
|
|
786
|
+
export const ChangeTrackStateModal = _ref13 => {
|
|
921
787
|
var _roleChangeRequest$re, _roleChangeRequest$su2;
|
|
922
788
|
let {
|
|
923
789
|
roleChangeRequest,
|
|
924
790
|
cancelModal
|
|
925
|
-
} =
|
|
791
|
+
} = _ref13;
|
|
926
792
|
const localPeer = useSelector(state => state.hmsStates.localPeer);
|
|
927
793
|
const changeLayout = () => {
|
|
928
794
|
var _roleChangeRequest$su;
|
|
@@ -955,10 +821,10 @@ export const ChangeTrackStateModal = _ref15 => {
|
|
|
955
821
|
textStyle: styles.roleChangeModalButtonText
|
|
956
822
|
})));
|
|
957
823
|
};
|
|
958
|
-
export const HlsStreamingModal =
|
|
824
|
+
export const HlsStreamingModal = _ref14 => {
|
|
959
825
|
let {
|
|
960
826
|
cancelModal
|
|
961
|
-
} =
|
|
827
|
+
} = _ref14;
|
|
962
828
|
const instance = useHMSInstance();
|
|
963
829
|
const roomID = useSelector(state => state.user.roomID);
|
|
964
830
|
const [hlsStreamingDetails, setHLSStreamingDetails] = useState({
|
|
@@ -1049,15 +915,12 @@ export const HlsStreamingModal = _ref16 => {
|
|
|
1049
915
|
textStyle: styles.roleChangeModalButtonText
|
|
1050
916
|
})));
|
|
1051
917
|
};
|
|
1052
|
-
export const RecordingModal =
|
|
1053
|
-
var _recordingDetails$res, _recordingDetails$res2, _recordingDetails$res4, _recordingDetails$res5;
|
|
918
|
+
export const RecordingModal = _ref15 => {
|
|
1054
919
|
let {
|
|
1055
|
-
recordingModal,
|
|
1056
920
|
setModalVisible
|
|
1057
|
-
} =
|
|
921
|
+
} = _ref15;
|
|
1058
922
|
const instance = useHMSInstance();
|
|
1059
923
|
const roomID = useSelector(state => state.user.roomID);
|
|
1060
|
-
const [resolutionDetails, setResolutionDetails] = useState(false);
|
|
1061
924
|
const [recordingDetails, setRecordingDetails] = useState({
|
|
1062
925
|
record: false,
|
|
1063
926
|
meetingURL: roomID ? roomID + '?token=beam_recording' : undefined
|
|
@@ -1066,7 +929,7 @@ export const RecordingModal = _ref17 => {
|
|
|
1066
929
|
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));
|
|
1067
930
|
setModalVisible(ModalTypes.DEFAULT);
|
|
1068
931
|
};
|
|
1069
|
-
return
|
|
932
|
+
return /*#__PURE__*/React.createElement(View, {
|
|
1070
933
|
style: styles.roleChangeModal
|
|
1071
934
|
}, /*#__PURE__*/React.createElement(Text, {
|
|
1072
935
|
style: styles.roleChangeModalHeading
|
|
@@ -1121,35 +984,7 @@ export const RecordingModal = _ref17 => {
|
|
|
1121
984
|
size: 10
|
|
1122
985
|
})), /*#__PURE__*/React.createElement(Text, {
|
|
1123
986
|
style: styles.roleChangeModalPermission
|
|
1124
|
-
}, "Record")), /*#__PURE__*/React.createElement(
|
|
1125
|
-
style: styles.checkboxButtonContainer,
|
|
1126
|
-
onPress: () => {
|
|
1127
|
-
setResolutionDetails(!resolutionDetails);
|
|
1128
|
-
if (!resolutionDetails) {
|
|
1129
|
-
setModalVisible(ModalTypes.RESOLUTION, true);
|
|
1130
|
-
setRecordingDetails({
|
|
1131
|
-
...recordingDetails,
|
|
1132
|
-
resolution: {
|
|
1133
|
-
height: 720,
|
|
1134
|
-
width: 1280
|
|
1135
|
-
}
|
|
1136
|
-
});
|
|
1137
|
-
} else {
|
|
1138
|
-
setRecordingDetails({
|
|
1139
|
-
...recordingDetails,
|
|
1140
|
-
resolution: undefined
|
|
1141
|
-
});
|
|
1142
|
-
}
|
|
1143
|
-
}
|
|
1144
|
-
}, /*#__PURE__*/React.createElement(View, {
|
|
1145
|
-
style: styles.roleChangeModalCheckBox
|
|
1146
|
-
}, resolutionDetails && /*#__PURE__*/React.createElement(Entypo, {
|
|
1147
|
-
name: "check",
|
|
1148
|
-
style: styles.roleChangeModalCheck,
|
|
1149
|
-
size: 10
|
|
1150
|
-
})), /*#__PURE__*/React.createElement(Text, {
|
|
1151
|
-
style: styles.roleChangeModalPermission
|
|
1152
|
-
}, "Resolution")), /*#__PURE__*/React.createElement(View, {
|
|
987
|
+
}, "Record")), /*#__PURE__*/React.createElement(View, {
|
|
1153
988
|
style: styles.roleChangeModalPermissionContainer
|
|
1154
989
|
}, /*#__PURE__*/React.createElement(CustomButton, {
|
|
1155
990
|
title: "Cancel",
|
|
@@ -1161,70 +996,15 @@ export const RecordingModal = _ref17 => {
|
|
|
1161
996
|
onPress: changeLayout,
|
|
1162
997
|
viewStyle: styles.roleChangeModalSuccessButton,
|
|
1163
998
|
textStyle: styles.roleChangeModalButtonText
|
|
1164
|
-
}))) : /*#__PURE__*/React.createElement(View, {
|
|
1165
|
-
style: styles.roleChangeModal
|
|
1166
|
-
}, /*#__PURE__*/React.createElement(Text, {
|
|
1167
|
-
style: styles.roleChangeModalHeading
|
|
1168
|
-
}, "Resolution Details"), /*#__PURE__*/React.createElement(View, {
|
|
1169
|
-
style: styles.resolutionContainer
|
|
1170
|
-
}, /*#__PURE__*/React.createElement(View, {
|
|
1171
|
-
style: styles.resolutionDetails
|
|
1172
|
-
}, /*#__PURE__*/React.createElement(Text, {
|
|
1173
|
-
style: styles.interRegular
|
|
1174
|
-
}, "Height :"), /*#__PURE__*/React.createElement(Text, {
|
|
1175
|
-
style: styles.resolutionValue
|
|
1176
|
-
}, (_recordingDetails$res = recordingDetails.resolution) === null || _recordingDetails$res === void 0 ? void 0 : _recordingDetails$res.height)), /*#__PURE__*/React.createElement(Slider, {
|
|
1177
|
-
value: (_recordingDetails$res2 = recordingDetails.resolution) === null || _recordingDetails$res2 === void 0 ? void 0 : _recordingDetails$res2.height,
|
|
1178
|
-
maximumValue: 1280,
|
|
1179
|
-
minimumValue: 480,
|
|
1180
|
-
step: 10,
|
|
1181
|
-
onValueChange: value => {
|
|
1182
|
-
var _recordingDetails$res3;
|
|
1183
|
-
setRecordingDetails({
|
|
1184
|
-
...recordingDetails,
|
|
1185
|
-
resolution: {
|
|
1186
|
-
height: parseInt(value),
|
|
1187
|
-
width: ((_recordingDetails$res3 = recordingDetails.resolution) === null || _recordingDetails$res3 === void 0 ? void 0 : _recordingDetails$res3.width) ?? 1280
|
|
1188
|
-
}
|
|
1189
|
-
});
|
|
1190
|
-
}
|
|
1191
|
-
}), /*#__PURE__*/React.createElement(View, {
|
|
1192
|
-
style: styles.resolutionDetails
|
|
1193
|
-
}, /*#__PURE__*/React.createElement(Text, {
|
|
1194
|
-
style: styles.interRegular
|
|
1195
|
-
}, "Width :"), /*#__PURE__*/React.createElement(Text, {
|
|
1196
|
-
style: styles.resolutionValue
|
|
1197
|
-
}, (_recordingDetails$res4 = recordingDetails.resolution) === null || _recordingDetails$res4 === void 0 ? void 0 : _recordingDetails$res4.width)), /*#__PURE__*/React.createElement(Slider, {
|
|
1198
|
-
value: (_recordingDetails$res5 = recordingDetails.resolution) === null || _recordingDetails$res5 === void 0 ? void 0 : _recordingDetails$res5.width,
|
|
1199
|
-
maximumValue: 1280,
|
|
1200
|
-
minimumValue: 500,
|
|
1201
|
-
step: 10,
|
|
1202
|
-
onValueChange: value => {
|
|
1203
|
-
var _recordingDetails$res6;
|
|
1204
|
-
setRecordingDetails({
|
|
1205
|
-
...recordingDetails,
|
|
1206
|
-
resolution: {
|
|
1207
|
-
width: parseInt(value),
|
|
1208
|
-
height: ((_recordingDetails$res6 = recordingDetails.resolution) === null || _recordingDetails$res6 === void 0 ? void 0 : _recordingDetails$res6.height) ?? 720
|
|
1209
|
-
}
|
|
1210
|
-
});
|
|
1211
|
-
}
|
|
1212
|
-
})), /*#__PURE__*/React.createElement(View, {
|
|
1213
|
-
style: styles.sortingButtonContainer
|
|
1214
|
-
}, /*#__PURE__*/React.createElement(CustomButton, {
|
|
1215
|
-
title: "Back",
|
|
1216
|
-
onPress: () => setModalVisible(ModalTypes.RECORDING, true),
|
|
1217
|
-
viewStyle: styles.backButton,
|
|
1218
|
-
textStyle: styles.roleChangeModalButtonText
|
|
1219
999
|
})));
|
|
1220
1000
|
};
|
|
1221
|
-
export const ChangeRoleAccepteModal =
|
|
1001
|
+
export const ChangeRoleAccepteModal = _ref16 => {
|
|
1222
1002
|
var _roleChangeRequest$re2, _roleChangeRequest$su3;
|
|
1223
1003
|
let {
|
|
1224
1004
|
instance,
|
|
1225
1005
|
roleChangeRequest,
|
|
1226
1006
|
cancelModal
|
|
1227
|
-
} =
|
|
1007
|
+
} = _ref16;
|
|
1228
1008
|
const changeLayout = () => {
|
|
1229
1009
|
instance === null || instance === void 0 ? void 0 : instance.acceptRoleChange();
|
|
1230
1010
|
cancelModal();
|
|
@@ -1249,11 +1029,11 @@ export const ChangeRoleAccepteModal = _ref18 => {
|
|
|
1249
1029
|
textStyle: styles.roleChangeModalButtonText
|
|
1250
1030
|
})));
|
|
1251
1031
|
};
|
|
1252
|
-
export const EndHlsModal =
|
|
1032
|
+
export const EndHlsModal = _ref17 => {
|
|
1253
1033
|
let {
|
|
1254
1034
|
onSuccess,
|
|
1255
1035
|
cancelModal
|
|
1256
|
-
} =
|
|
1036
|
+
} = _ref17;
|
|
1257
1037
|
const onEnd = () => {
|
|
1258
1038
|
cancelModal();
|
|
1259
1039
|
onSuccess();
|
|
@@ -1286,10 +1066,10 @@ export const EndHlsModal = _ref19 => {
|
|
|
1286
1066
|
textStyle: styles.roleChangeModalButtonText
|
|
1287
1067
|
})));
|
|
1288
1068
|
};
|
|
1289
|
-
export const RealTime =
|
|
1069
|
+
export const RealTime = _ref18 => {
|
|
1290
1070
|
let {
|
|
1291
1071
|
startedAt
|
|
1292
|
-
} =
|
|
1072
|
+
} = _ref18;
|
|
1293
1073
|
const [hour, setHour] = useState(0);
|
|
1294
1074
|
const [minute, setMinute] = useState(0);
|
|
1295
1075
|
const [second, setSecond] = useState(0);
|
|
@@ -1338,53 +1118,15 @@ export const RealTime = _ref20 => {
|
|
|
1338
1118
|
style: styles.liveTimeText
|
|
1339
1119
|
}, second < 10 ? '0' + second : second));
|
|
1340
1120
|
};
|
|
1341
|
-
export const AudioShareSetVolumeModal = _ref21 => {
|
|
1342
|
-
let {
|
|
1343
|
-
success,
|
|
1344
|
-
cancel
|
|
1345
|
-
} = _ref21;
|
|
1346
|
-
const [volume, setVolume] = useState(0);
|
|
1347
|
-
const changeVolume = () => {
|
|
1348
|
-
success(volume);
|
|
1349
|
-
cancel();
|
|
1350
|
-
};
|
|
1351
|
-
return /*#__PURE__*/React.createElement(View, {
|
|
1352
|
-
style: styles.volumeModalContainer
|
|
1353
|
-
}, /*#__PURE__*/React.createElement(Text, {
|
|
1354
|
-
style: styles.roleChangeModalHeading
|
|
1355
|
-
}, "Set Volume"), /*#__PURE__*/React.createElement(View, {
|
|
1356
|
-
style: styles.volumeModalSlider
|
|
1357
|
-
}, /*#__PURE__*/React.createElement(Text, {
|
|
1358
|
-
style: styles.roleChangeModalDescription
|
|
1359
|
-
}, "Volume: ", volume), /*#__PURE__*/React.createElement(Slider, {
|
|
1360
|
-
value: volume,
|
|
1361
|
-
maximumValue: 1,
|
|
1362
|
-
minimumValue: 0,
|
|
1363
|
-
step: 0.1,
|
|
1364
|
-
onValueChange: value => setVolume(value[0])
|
|
1365
|
-
})), /*#__PURE__*/React.createElement(View, {
|
|
1366
|
-
style: styles.roleChangeModalPermissionContainer
|
|
1367
|
-
}, /*#__PURE__*/React.createElement(CustomButton, {
|
|
1368
|
-
title: "Cancel",
|
|
1369
|
-
onPress: cancel,
|
|
1370
|
-
viewStyle: styles.roleChangeModalCancelButton,
|
|
1371
|
-
textStyle: styles.roleChangeModalButtonText
|
|
1372
|
-
}), /*#__PURE__*/React.createElement(CustomButton, {
|
|
1373
|
-
title: "Change",
|
|
1374
|
-
onPress: changeVolume,
|
|
1375
|
-
viewStyle: styles.roleChangeModalSuccessButton,
|
|
1376
|
-
textStyle: styles.roleChangeModalButtonText
|
|
1377
|
-
})));
|
|
1378
|
-
};
|
|
1379
1121
|
var RoleSelection = /*#__PURE__*/function (RoleSelection) {
|
|
1380
1122
|
RoleSelection["TARGET"] = "TARGET";
|
|
1381
1123
|
RoleSelection["TO_CHANGE"] = "TO_CHANGE";
|
|
1382
1124
|
return RoleSelection;
|
|
1383
1125
|
}(RoleSelection || {});
|
|
1384
|
-
export const ChangeBulkRoleModal =
|
|
1126
|
+
export const ChangeBulkRoleModal = _ref19 => {
|
|
1385
1127
|
let {
|
|
1386
1128
|
cancelModal
|
|
1387
|
-
} =
|
|
1129
|
+
} = _ref19;
|
|
1388
1130
|
const hmsInstance = useSelector(state => state.user.hmsInstance);
|
|
1389
1131
|
const roles = useSelector(state => state.hmsStates.roles);
|
|
1390
1132
|
const [showRolesSelectionView, setShowRolesSelectionView] = useState(null);
|