@100mslive/react-native-hms 0.9.93 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +54 -13
- package/android/.gradle/6.9/fileHashes/fileHashes.bin +0 -0
- package/android/.gradle/6.9/fileHashes/fileHashes.lock +0 -0
- package/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
- package/android/.gradle/buildOutputCleanup/outputFiles.bin +0 -0
- package/android/.gradle/checksums/checksums.lock +0 -0
- package/android/.gradle/checksums/md5-checksums.bin +0 -0
- package/android/.gradle/checksums/sha1-checksums.bin +0 -0
- package/android/.idea/jarRepositories.xml +10 -0
- package/android/.idea/libraries/Gradle__androidx_tracing_tracing_1_1_0_aar.xml +13 -0
- package/android/.idea/libraries/Gradle__com_facebook_fbjni_fbjni_0_3_0_aar.xml +14 -0
- package/android/.idea/libraries/Gradle__com_facebook_react_react_native_0_71_0_rc_0_debug_aar.xml +14 -0
- package/android/.idea/libraries/Gradle__com_facebook_soloader_annotation_0_10_4.xml +13 -0
- package/android/.idea/libraries/Gradle__com_facebook_soloader_nativeloader_0_10_4.xml +13 -0
- package/android/.idea/libraries/Gradle__com_facebook_soloader_soloader_0_10_4_aar.xml +14 -0
- package/android/.idea/libraries/Gradle__com_github_100mslive_android_sdk_lib_2_5_1_aar.xml +10 -0
- package/android/.idea/libraries/Gradle__com_github_100mslive_webrtc_m104_hms_1_3_aar.xml +10 -0
- package/android/.idea/modules/android.androidTest.iml +35 -33
- package/android/.idea/modules/android.main.iml +36 -33
- package/android/.idea/modules/android.unitTest.iml +35 -33
- package/android/.idea/sonarlint/issuestore/3/c/3c46088b6add3088181589d8ed726652742b6221 +5 -0
- package/android/.idea/sonarlint/issuestore/a/8/a8c9f5ddd88723818e51ae3cf8693d02355a8691 +0 -0
- package/android/.idea/sonarlint/issuestore/index.pb +5 -1
- package/android/build.gradle +12 -10
- package/android/src/main/java/com/reactnativehmssdk/HMSDecoder.kt +8 -25
- package/android/src/main/java/com/reactnativehmssdk/HMSHelper.kt +119 -89
- package/android/src/main/java/com/reactnativehmssdk/HMSManager.kt +196 -0
- package/android/src/main/java/com/reactnativehmssdk/HMSRNSDK.kt +99 -40
- package/android/src/main/java/com/reactnativehmssdk/HMSView.kt +1 -1
- package/ios/HMSDecoder.swift +17 -15
- package/ios/HMSHelper.swift +52 -22
- package/ios/HMSManager.m +7 -0
- package/ios/HMSManager.swift +62 -14
- package/ios/HMSRNSDK.swift +71 -30
- package/ios/Hmssdk.xcodeproj/project.xcworkspace/contents.xcworkspacedata +7 -0
- package/ios/Hmssdk.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +8 -0
- package/ios/Hmssdk.xcodeproj/project.xcworkspace/xcuserdata/yogesh.xcuserdatad/UserInterfaceState.xcuserstate +0 -0
- package/ios/Hmssdk.xcodeproj/xcuserdata/yogesh.xcuserdatad/xcschemes/xcschememanagement.plist +14 -0
- package/lib/commonjs/classes/HMSAudioCodec.js +0 -1
- package/lib/commonjs/classes/HMSAudioCodec.js.map +1 -1
- package/lib/commonjs/classes/HMSAudioDevice.js +0 -1
- package/lib/commonjs/classes/HMSAudioDevice.js.map +1 -1
- package/lib/commonjs/classes/HMSAudioFilePlayerNode.js +0 -14
- package/lib/commonjs/classes/HMSAudioFilePlayerNode.js.map +1 -1
- package/lib/commonjs/classes/HMSAudioMixerSource.js +3 -7
- package/lib/commonjs/classes/HMSAudioMixerSource.js.map +1 -1
- package/lib/commonjs/classes/HMSAudioMixingMode.js +0 -1
- package/lib/commonjs/classes/HMSAudioMixingMode.js.map +1 -1
- package/lib/commonjs/classes/HMSAudioMode.js +0 -1
- package/lib/commonjs/classes/HMSAudioMode.js.map +1 -1
- package/lib/commonjs/classes/HMSAudioNode.js +3 -8
- package/lib/commonjs/classes/HMSAudioNode.js.map +1 -1
- package/lib/commonjs/classes/HMSAudioSettings.js +3 -7
- package/lib/commonjs/classes/HMSAudioSettings.js.map +1 -1
- package/lib/commonjs/classes/HMSAudioTrack.js +0 -4
- package/lib/commonjs/classes/HMSAudioTrack.js.map +1 -1
- package/lib/commonjs/classes/HMSAudioTrackSettings.js +9 -17
- package/lib/commonjs/classes/HMSAudioTrackSettings.js.map +1 -1
- package/lib/commonjs/classes/HMSBrowserRecordingState.js +3 -9
- package/lib/commonjs/classes/HMSBrowserRecordingState.js.map +1 -1
- package/lib/commonjs/classes/HMSCameraFacing.js +0 -1
- package/lib/commonjs/classes/HMSCameraFacing.js.map +1 -1
- package/lib/commonjs/classes/HMSChangeTrackStateRequest.js +3 -8
- package/lib/commonjs/classes/HMSChangeTrackStateRequest.js.map +1 -1
- package/lib/commonjs/classes/HMSConfig.js +3 -10
- package/lib/commonjs/classes/HMSConfig.js.map +1 -1
- package/lib/commonjs/classes/HMSEncoder.js +12 -86
- package/lib/commonjs/classes/HMSEncoder.js.map +1 -1
- package/lib/commonjs/classes/HMSException.js +5 -12
- package/lib/commonjs/classes/HMSException.js.map +1 -1
- package/lib/commonjs/classes/HMSHLSConfig.js +3 -7
- package/lib/commonjs/classes/HMSHLSConfig.js.map +1 -1
- package/lib/commonjs/classes/HMSHLSMeetingURLVariant.js +3 -7
- package/lib/commonjs/classes/HMSHLSMeetingURLVariant.js.map +1 -1
- package/lib/commonjs/classes/HMSHLSRecordingConfig.js +3 -7
- package/lib/commonjs/classes/HMSHLSRecordingConfig.js.map +1 -1
- package/lib/commonjs/classes/HMSHLSRecordingState.js +3 -9
- package/lib/commonjs/classes/HMSHLSRecordingState.js.map +1 -1
- package/lib/commonjs/classes/HMSHLSStreamingState.js +3 -7
- package/lib/commonjs/classes/HMSHLSStreamingState.js.map +1 -1
- package/lib/commonjs/classes/HMSHLSVariant.js +3 -9
- package/lib/commonjs/classes/HMSHLSVariant.js.map +1 -1
- package/lib/commonjs/classes/HMSHelper.js +0 -3
- package/lib/commonjs/classes/HMSHelper.js.map +1 -1
- package/lib/commonjs/classes/HMSLocalAudioStats.js +3 -8
- package/lib/commonjs/classes/HMSLocalAudioStats.js.map +1 -1
- package/lib/commonjs/classes/HMSLocalAudioTrack.js +3 -16
- package/lib/commonjs/classes/HMSLocalAudioTrack.js.map +1 -1
- package/lib/commonjs/classes/HMSLocalPeer.js +3 -15
- package/lib/commonjs/classes/HMSLocalPeer.js.map +1 -1
- package/lib/commonjs/classes/HMSLocalVideoStats.js +3 -10
- package/lib/commonjs/classes/HMSLocalVideoStats.js.map +1 -1
- package/lib/commonjs/classes/HMSLocalVideoTrack.js +3 -16
- package/lib/commonjs/classes/HMSLocalVideoTrack.js.map +1 -1
- package/lib/commonjs/classes/HMSLogAlarmManager.js +14 -0
- package/lib/commonjs/classes/HMSLogAlarmManager.js.map +1 -0
- package/lib/commonjs/classes/HMSLogLevel.js +0 -1
- package/lib/commonjs/classes/HMSLogLevel.js.map +1 -1
- package/lib/commonjs/classes/HMSLogSettings.js +21 -0
- package/lib/commonjs/classes/HMSLogSettings.js.map +1 -0
- package/lib/commonjs/classes/HMSLogger.js +3 -31
- package/lib/commonjs/classes/HMSLogger.js.map +1 -1
- package/lib/commonjs/classes/HMSMessage.js +4 -10
- package/lib/commonjs/classes/HMSMessage.js.map +1 -1
- package/lib/commonjs/classes/HMSMessageRecipient.js +3 -8
- package/lib/commonjs/classes/HMSMessageRecipient.js.map +1 -1
- package/lib/commonjs/classes/HMSMessageRecipientType.js +0 -1
- package/lib/commonjs/classes/HMSMessageRecipientType.js.map +1 -1
- package/lib/commonjs/classes/HMSMessageType.js +13 -0
- package/lib/commonjs/classes/HMSMessageType.js.map +1 -0
- package/lib/commonjs/classes/HMSMicNode.js +0 -7
- package/lib/commonjs/classes/HMSMicNode.js.map +1 -1
- package/lib/commonjs/classes/HMSNetworkQuality.js +3 -6
- package/lib/commonjs/classes/HMSNetworkQuality.js.map +1 -1
- package/lib/commonjs/classes/HMSPeer.js +3 -16
- package/lib/commonjs/classes/HMSPeer.js.map +1 -1
- package/lib/commonjs/classes/HMSPeerUpdate.js +0 -1
- package/lib/commonjs/classes/HMSPeerUpdate.js.map +1 -1
- package/lib/commonjs/classes/HMSPermissions.js +3 -13
- package/lib/commonjs/classes/HMSPermissions.js.map +1 -1
- package/lib/commonjs/classes/HMSPublishSettings.js +3 -12
- package/lib/commonjs/classes/HMSPublishSettings.js.map +1 -1
- package/lib/commonjs/classes/HMSRTCStats.js +3 -12
- package/lib/commonjs/classes/HMSRTCStats.js.map +1 -1
- package/lib/commonjs/classes/HMSRTCStatsReport.js +3 -8
- package/lib/commonjs/classes/HMSRTCStatsReport.js.map +1 -1
- package/lib/commonjs/classes/HMSRTMPConfig.js +3 -9
- package/lib/commonjs/classes/HMSRTMPConfig.js.map +1 -1
- package/lib/commonjs/classes/HMSRemoteAudioStats.js +3 -10
- package/lib/commonjs/classes/HMSRemoteAudioStats.js.map +1 -1
- package/lib/commonjs/classes/HMSRemoteAudioTrack.js +3 -11
- package/lib/commonjs/classes/HMSRemoteAudioTrack.js.map +1 -1
- package/lib/commonjs/classes/HMSRemotePeer.js +3 -15
- package/lib/commonjs/classes/HMSRemotePeer.js.map +1 -1
- package/lib/commonjs/classes/HMSRemoteVideoStats.js +3 -12
- package/lib/commonjs/classes/HMSRemoteVideoStats.js.map +1 -1
- package/lib/commonjs/classes/HMSRemoteVideoTrack.js +3 -13
- package/lib/commonjs/classes/HMSRemoteVideoTrack.js.map +1 -1
- package/lib/commonjs/classes/HMSRole.js +3 -13
- package/lib/commonjs/classes/HMSRole.js.map +1 -1
- package/lib/commonjs/classes/HMSRoleChangeRequest.js +3 -7
- package/lib/commonjs/classes/HMSRoleChangeRequest.js.map +1 -1
- package/lib/commonjs/classes/HMSRoom.js +5 -16
- package/lib/commonjs/classes/HMSRoom.js.map +1 -1
- package/lib/commonjs/classes/HMSRoomUpdate.js +0 -1
- package/lib/commonjs/classes/HMSRoomUpdate.js.map +1 -1
- package/lib/commonjs/classes/HMSRtmpStreamingState.js +3 -9
- package/lib/commonjs/classes/HMSRtmpStreamingState.js.map +1 -1
- package/lib/commonjs/classes/HMSRtmpVideoResolution.js +3 -7
- package/lib/commonjs/classes/HMSRtmpVideoResolution.js.map +1 -1
- package/lib/commonjs/classes/HMSSDK.js +172 -382
- package/lib/commonjs/classes/HMSSDK.js.map +1 -1
- package/lib/commonjs/classes/HMSScreenBroadcastAudioReceiverNode.js +0 -4
- package/lib/commonjs/classes/HMSScreenBroadcastAudioReceiverNode.js.map +1 -1
- package/lib/commonjs/classes/HMSServerRecordingState.js +3 -8
- package/lib/commonjs/classes/HMSServerRecordingState.js.map +1 -1
- package/lib/commonjs/classes/HMSSimulcastLayerSettings.js +3 -9
- package/lib/commonjs/classes/HMSSimulcastLayerSettings.js.map +1 -1
- package/lib/commonjs/classes/HMSSimulcastSettings.js +3 -7
- package/lib/commonjs/classes/HMSSimulcastSettings.js.map +1 -1
- package/lib/commonjs/classes/HMSSpeaker.js +3 -8
- package/lib/commonjs/classes/HMSSpeaker.js.map +1 -1
- package/lib/commonjs/classes/HMSSubscribeSettings.js +5 -10
- package/lib/commonjs/classes/HMSSubscribeSettings.js.map +1 -1
- package/lib/commonjs/classes/HMSTrack.js +3 -12
- package/lib/commonjs/classes/HMSTrack.js.map +1 -1
- package/lib/commonjs/classes/HMSTrackSettings.js +3 -10
- package/lib/commonjs/classes/HMSTrackSettings.js.map +1 -1
- package/lib/commonjs/classes/HMSTrackSettingsInitState.js +13 -0
- package/lib/commonjs/classes/HMSTrackSettingsInitState.js.map +1 -0
- package/lib/commonjs/classes/HMSTrackSource.js +0 -1
- package/lib/commonjs/classes/HMSTrackSource.js.map +1 -1
- package/lib/commonjs/classes/HMSTrackType.js +0 -1
- package/lib/commonjs/classes/HMSTrackType.js.map +1 -1
- package/lib/commonjs/classes/HMSTrackUpdate.js +0 -1
- package/lib/commonjs/classes/HMSTrackUpdate.js.map +1 -1
- package/lib/commonjs/classes/HMSUpdateListenerActions.js +0 -1
- package/lib/commonjs/classes/HMSUpdateListenerActions.js.map +1 -1
- package/lib/commonjs/classes/HMSVideoCodec.js +0 -1
- package/lib/commonjs/classes/HMSVideoCodec.js.map +1 -1
- package/lib/commonjs/classes/HMSVideoResolution.js +3 -7
- package/lib/commonjs/classes/HMSVideoResolution.js.map +1 -1
- package/lib/commonjs/classes/HMSVideoSettings.js +3 -10
- package/lib/commonjs/classes/HMSVideoSettings.js.map +1 -1
- package/lib/commonjs/classes/HMSVideoTrack.js +3 -12
- package/lib/commonjs/classes/HMSVideoTrack.js.map +1 -1
- package/lib/commonjs/classes/HMSVideoTrackSettings.js +14 -24
- package/lib/commonjs/classes/HMSVideoTrackSettings.js.map +1 -1
- package/lib/commonjs/classes/HMSVideoViewMode.js +0 -1
- package/lib/commonjs/classes/HMSVideoViewMode.js.map +1 -1
- package/lib/commonjs/classes/HmsView.js +20 -26
- package/lib/commonjs/classes/HmsView.js.map +1 -1
- package/lib/commonjs/index.js +48 -144
- package/lib/commonjs/index.js.map +1 -1
- package/lib/module/classes/HMSAudioCodec.js +0 -1
- package/lib/module/classes/HMSAudioCodec.js.map +1 -1
- package/lib/module/classes/HMSAudioDevice.js +0 -1
- package/lib/module/classes/HMSAudioDevice.js.map +1 -1
- package/lib/module/classes/HMSAudioFilePlayerNode.js +0 -9
- package/lib/module/classes/HMSAudioFilePlayerNode.js.map +1 -1
- package/lib/module/classes/HMSAudioMixerSource.js +3 -5
- package/lib/module/classes/HMSAudioMixerSource.js.map +1 -1
- package/lib/module/classes/HMSAudioMixingMode.js +0 -1
- package/lib/module/classes/HMSAudioMixingMode.js.map +1 -1
- package/lib/module/classes/HMSAudioMode.js +0 -1
- package/lib/module/classes/HMSAudioMode.js.map +1 -1
- package/lib/module/classes/HMSAudioNode.js +3 -6
- package/lib/module/classes/HMSAudioNode.js.map +1 -1
- package/lib/module/classes/HMSAudioSettings.js +3 -5
- package/lib/module/classes/HMSAudioSettings.js.map +1 -1
- package/lib/module/classes/HMSAudioTrack.js +0 -1
- package/lib/module/classes/HMSAudioTrack.js.map +1 -1
- package/lib/module/classes/HMSAudioTrackSettings.js +9 -15
- package/lib/module/classes/HMSAudioTrackSettings.js.map +1 -1
- package/lib/module/classes/HMSBrowserRecordingState.js +3 -7
- package/lib/module/classes/HMSBrowserRecordingState.js.map +1 -1
- package/lib/module/classes/HMSCameraFacing.js +0 -1
- package/lib/module/classes/HMSCameraFacing.js.map +1 -1
- package/lib/module/classes/HMSChangeTrackStateRequest.js +3 -6
- package/lib/module/classes/HMSChangeTrackStateRequest.js.map +1 -1
- package/lib/module/classes/HMSConfig.js +3 -8
- package/lib/module/classes/HMSConfig.js.map +1 -1
- package/lib/module/classes/HMSEncoder.js +12 -54
- package/lib/module/classes/HMSEncoder.js.map +1 -1
- package/lib/module/classes/HMSException.js +5 -10
- package/lib/module/classes/HMSException.js.map +1 -1
- package/lib/module/classes/HMSHLSConfig.js +3 -5
- package/lib/module/classes/HMSHLSConfig.js.map +1 -1
- package/lib/module/classes/HMSHLSMeetingURLVariant.js +3 -5
- package/lib/module/classes/HMSHLSMeetingURLVariant.js.map +1 -1
- package/lib/module/classes/HMSHLSRecordingConfig.js +3 -5
- package/lib/module/classes/HMSHLSRecordingConfig.js.map +1 -1
- package/lib/module/classes/HMSHLSRecordingState.js +3 -7
- package/lib/module/classes/HMSHLSRecordingState.js.map +1 -1
- package/lib/module/classes/HMSHLSStreamingState.js +3 -5
- package/lib/module/classes/HMSHLSStreamingState.js.map +1 -1
- package/lib/module/classes/HMSHLSVariant.js +3 -7
- package/lib/module/classes/HMSHLSVariant.js.map +1 -1
- package/lib/module/classes/HMSHelper.js +0 -1
- package/lib/module/classes/HMSHelper.js.map +1 -1
- package/lib/module/classes/HMSLocalAudioStats.js +3 -6
- package/lib/module/classes/HMSLocalAudioStats.js.map +1 -1
- package/lib/module/classes/HMSLocalAudioTrack.js +3 -10
- package/lib/module/classes/HMSLocalAudioTrack.js.map +1 -1
- package/lib/module/classes/HMSLocalPeer.js +3 -10
- package/lib/module/classes/HMSLocalPeer.js.map +1 -1
- package/lib/module/classes/HMSLocalVideoStats.js +3 -8
- package/lib/module/classes/HMSLocalVideoStats.js.map +1 -1
- package/lib/module/classes/HMSLocalVideoTrack.js +3 -10
- package/lib/module/classes/HMSLocalVideoTrack.js.map +1 -1
- package/lib/module/classes/HMSLogAlarmManager.js +7 -0
- package/lib/module/classes/HMSLogAlarmManager.js.map +1 -0
- package/lib/module/classes/HMSLogLevel.js +0 -1
- package/lib/module/classes/HMSLogLevel.js.map +1 -1
- package/lib/module/classes/HMSLogSettings.js +14 -0
- package/lib/module/classes/HMSLogSettings.js.map +1 -0
- package/lib/module/classes/HMSLogger.js +3 -23
- package/lib/module/classes/HMSLogger.js.map +1 -1
- package/lib/module/classes/HMSMessage.js +4 -8
- package/lib/module/classes/HMSMessage.js.map +1 -1
- package/lib/module/classes/HMSMessageRecipient.js +3 -6
- package/lib/module/classes/HMSMessageRecipient.js.map +1 -1
- package/lib/module/classes/HMSMessageRecipientType.js +0 -1
- package/lib/module/classes/HMSMessageRecipientType.js.map +1 -1
- package/lib/module/classes/HMSMessageType.js +6 -0
- package/lib/module/classes/HMSMessageType.js.map +1 -0
- package/lib/module/classes/HMSMicNode.js +0 -2
- package/lib/module/classes/HMSMicNode.js.map +1 -1
- package/lib/module/classes/HMSNetworkQuality.js +3 -4
- package/lib/module/classes/HMSNetworkQuality.js.map +1 -1
- package/lib/module/classes/HMSPeer.js +3 -14
- package/lib/module/classes/HMSPeer.js.map +1 -1
- package/lib/module/classes/HMSPeerUpdate.js +0 -1
- package/lib/module/classes/HMSPeerUpdate.js.map +1 -1
- package/lib/module/classes/HMSPermissions.js +3 -11
- package/lib/module/classes/HMSPermissions.js.map +1 -1
- package/lib/module/classes/HMSPublishSettings.js +3 -10
- package/lib/module/classes/HMSPublishSettings.js.map +1 -1
- package/lib/module/classes/HMSRTCStats.js +3 -10
- package/lib/module/classes/HMSRTCStats.js.map +1 -1
- package/lib/module/classes/HMSRTCStatsReport.js +3 -6
- package/lib/module/classes/HMSRTCStatsReport.js.map +1 -1
- package/lib/module/classes/HMSRTMPConfig.js +3 -7
- package/lib/module/classes/HMSRTMPConfig.js.map +1 -1
- package/lib/module/classes/HMSRemoteAudioStats.js +3 -8
- package/lib/module/classes/HMSRemoteAudioStats.js.map +1 -1
- package/lib/module/classes/HMSRemoteAudioTrack.js +3 -5
- package/lib/module/classes/HMSRemoteAudioTrack.js.map +1 -1
- package/lib/module/classes/HMSRemotePeer.js +3 -10
- package/lib/module/classes/HMSRemotePeer.js.map +1 -1
- package/lib/module/classes/HMSRemoteVideoStats.js +3 -10
- package/lib/module/classes/HMSRemoteVideoStats.js.map +1 -1
- package/lib/module/classes/HMSRemoteVideoTrack.js +3 -7
- package/lib/module/classes/HMSRemoteVideoTrack.js.map +1 -1
- package/lib/module/classes/HMSRole.js +3 -11
- package/lib/module/classes/HMSRole.js.map +1 -1
- package/lib/module/classes/HMSRoleChangeRequest.js +3 -5
- package/lib/module/classes/HMSRoleChangeRequest.js.map +1 -1
- package/lib/module/classes/HMSRoom.js +5 -14
- package/lib/module/classes/HMSRoom.js.map +1 -1
- package/lib/module/classes/HMSRoomUpdate.js +0 -1
- package/lib/module/classes/HMSRoomUpdate.js.map +1 -1
- package/lib/module/classes/HMSRtmpStreamingState.js +3 -7
- package/lib/module/classes/HMSRtmpStreamingState.js.map +1 -1
- package/lib/module/classes/HMSRtmpVideoResolution.js +3 -5
- package/lib/module/classes/HMSRtmpVideoResolution.js.map +1 -1
- package/lib/module/classes/HMSSDK.js +172 -336
- package/lib/module/classes/HMSSDK.js.map +1 -1
- package/lib/module/classes/HMSScreenBroadcastAudioReceiverNode.js +0 -1
- package/lib/module/classes/HMSScreenBroadcastAudioReceiverNode.js.map +1 -1
- package/lib/module/classes/HMSServerRecordingState.js +3 -6
- package/lib/module/classes/HMSServerRecordingState.js.map +1 -1
- package/lib/module/classes/HMSSimulcastLayerSettings.js +3 -7
- package/lib/module/classes/HMSSimulcastLayerSettings.js.map +1 -1
- package/lib/module/classes/HMSSimulcastSettings.js +3 -5
- package/lib/module/classes/HMSSimulcastSettings.js.map +1 -1
- package/lib/module/classes/HMSSpeaker.js +3 -6
- package/lib/module/classes/HMSSpeaker.js.map +1 -1
- package/lib/module/classes/HMSSubscribeSettings.js +5 -8
- package/lib/module/classes/HMSSubscribeSettings.js.map +1 -1
- package/lib/module/classes/HMSTrack.js +3 -10
- package/lib/module/classes/HMSTrack.js.map +1 -1
- package/lib/module/classes/HMSTrackSettings.js +3 -8
- package/lib/module/classes/HMSTrackSettings.js.map +1 -1
- package/lib/module/classes/HMSTrackSettingsInitState.js +6 -0
- package/lib/module/classes/HMSTrackSettingsInitState.js.map +1 -0
- package/lib/module/classes/HMSTrackSource.js +0 -1
- package/lib/module/classes/HMSTrackSource.js.map +1 -1
- package/lib/module/classes/HMSTrackType.js +0 -1
- package/lib/module/classes/HMSTrackType.js.map +1 -1
- package/lib/module/classes/HMSTrackUpdate.js +0 -1
- package/lib/module/classes/HMSTrackUpdate.js.map +1 -1
- package/lib/module/classes/HMSUpdateListenerActions.js +0 -1
- package/lib/module/classes/HMSUpdateListenerActions.js.map +1 -1
- package/lib/module/classes/HMSVideoCodec.js +0 -1
- package/lib/module/classes/HMSVideoCodec.js.map +1 -1
- package/lib/module/classes/HMSVideoResolution.js +3 -5
- package/lib/module/classes/HMSVideoResolution.js.map +1 -1
- package/lib/module/classes/HMSVideoSettings.js +3 -8
- package/lib/module/classes/HMSVideoSettings.js.map +1 -1
- package/lib/module/classes/HMSVideoTrack.js +3 -9
- package/lib/module/classes/HMSVideoTrack.js.map +1 -1
- package/lib/module/classes/HMSVideoTrackSettings.js +14 -22
- package/lib/module/classes/HMSVideoTrackSettings.js.map +1 -1
- package/lib/module/classes/HMSVideoViewMode.js +0 -1
- package/lib/module/classes/HMSVideoViewMode.js.map +1 -1
- package/lib/module/classes/HmsView.js +20 -15
- package/lib/module/classes/HmsView.js.map +1 -1
- package/lib/module/index.js +4 -0
- package/lib/module/index.js.map +1 -1
- package/lib/typescript/classes/HMSAudioTrackSettings.d.ts +5 -7
- package/lib/typescript/classes/HMSBrowserRecordingState.d.ts +2 -2
- package/lib/typescript/classes/HMSEncoder.d.ts +2 -5
- package/lib/typescript/classes/HMSLogAlarmManager.d.ts +5 -0
- package/lib/typescript/classes/HMSLogSettings.d.ts +12 -0
- package/lib/typescript/classes/HMSMessage.d.ts +3 -2
- package/lib/typescript/classes/HMSMessageType.d.ts +4 -0
- package/lib/typescript/classes/HMSRoom.d.ts +3 -0
- package/lib/typescript/classes/HMSRtmpStreamingState.d.ts +2 -2
- package/lib/typescript/classes/HMSSDK.d.ts +52 -17
- package/lib/typescript/classes/HMSServerRecordingState.d.ts +2 -2
- package/lib/typescript/classes/HMSSubscribeSettings.d.ts +2 -2
- package/lib/typescript/classes/HMSTrackSettings.d.ts +0 -2
- package/lib/typescript/classes/HMSTrackSettingsInitState.d.ts +4 -0
- package/lib/typescript/classes/HMSVideoTrack.d.ts +0 -2
- package/lib/typescript/classes/HMSVideoTrackSettings.d.ts +10 -15
- package/lib/typescript/index.d.ts +4 -0
- package/package.json +1 -1
- package/react-native-hms.podspec +2 -2
- package/src/classes/HMSAudioTrackSettings.ts +8 -10
- package/src/classes/HMSBrowserRecordingState.ts +2 -2
- package/src/classes/HMSEncoder.ts +12 -20
- package/src/classes/HMSLogAlarmManager.ts +5 -0
- package/src/classes/HMSLogSettings.ts +18 -0
- package/src/classes/HMSMessage.ts +3 -2
- package/src/classes/HMSMessageType.ts +4 -0
- package/src/classes/HMSRoom.ts +4 -0
- package/src/classes/HMSRtmpStreamingState.ts +2 -2
- package/src/classes/HMSSDK.tsx +165 -149
- package/src/classes/HMSServerRecordingState.ts +2 -2
- package/src/classes/HMSSubscribeSettings.ts +3 -3
- package/src/classes/HMSTrackSettings.ts +0 -3
- package/src/classes/HMSTrackSettingsInitState.ts +4 -0
- package/src/classes/HMSVideoTrack.ts +0 -2
- package/src/classes/HMSVideoTrackSettings.ts +14 -21
- package/src/classes/HmsView.tsx +15 -1
- package/src/index.ts +4 -0
- package/android/.idea/libraries/Gradle__com_facebook_fbjni_fbjni_java_only_0_2_2.xml +0 -13
- package/android/.idea/libraries/Gradle__com_facebook_react_react_native_0_69_1_debug_aar.xml +0 -14
- package/android/.idea/libraries/Gradle__com_facebook_soloader_annotation_0_10_3.xml +0 -13
- package/android/.idea/libraries/Gradle__com_facebook_soloader_nativeloader_0_10_3.xml +0 -13
- package/android/.idea/libraries/Gradle__com_facebook_soloader_soloader_0_10_3_aar.xml +0 -15
- package/android/.idea/libraries/Gradle__com_github_100mslive_android_sdk_lib_2_4_7_aar.xml +0 -11
- package/android/.idea/libraries/Gradle__com_github_100mslive_webrtc_m97_hms_1_1_aar.xml +0 -11
|
@@ -1,20 +1,16 @@
|
|
|
1
|
-
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
2
|
-
|
|
1
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
2
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
|
|
3
|
+
function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
3
4
|
export class HMSHLSRecordingState {
|
|
4
5
|
constructor(params) {
|
|
5
6
|
_defineProperty(this, "singleFilePerLayer", void 0);
|
|
6
|
-
|
|
7
7
|
_defineProperty(this, "videoOnDemand", void 0);
|
|
8
|
-
|
|
9
8
|
_defineProperty(this, "running", void 0);
|
|
10
|
-
|
|
11
9
|
_defineProperty(this, "startedAt", void 0);
|
|
12
|
-
|
|
13
10
|
this.singleFilePerLayer = params.singleFilePerLayer;
|
|
14
11
|
this.videoOnDemand = params.videoOnDemand;
|
|
15
12
|
this.running = params.running;
|
|
16
13
|
this.startedAt = params.startedAt;
|
|
17
14
|
}
|
|
18
|
-
|
|
19
15
|
}
|
|
20
16
|
//# sourceMappingURL=HMSHLSRecordingState.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["HMSHLSRecordingState","constructor","params","singleFilePerLayer","videoOnDemand","running","startedAt"],"sources":["HMSHLSRecordingState.ts"],"sourcesContent":["export class HMSHLSRecordingState {\n singleFilePerLayer: boolean;\n videoOnDemand: boolean;\n running: boolean;\n startedAt?: Date;\n\n constructor(params: {\n singleFilePerLayer: boolean;\n videoOnDemand: boolean;\n running: boolean;\n startedAt?: Date;\n }) {\n this.singleFilePerLayer = params.singleFilePerLayer;\n this.videoOnDemand = params.videoOnDemand;\n this.running = params.running;\n this.startedAt = params.startedAt;\n }\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"names":["HMSHLSRecordingState","constructor","params","singleFilePerLayer","videoOnDemand","running","startedAt"],"sources":["HMSHLSRecordingState.ts"],"sourcesContent":["export class HMSHLSRecordingState {\n singleFilePerLayer: boolean;\n videoOnDemand: boolean;\n running: boolean;\n startedAt?: Date;\n\n constructor(params: {\n singleFilePerLayer: boolean;\n videoOnDemand: boolean;\n running: boolean;\n startedAt?: Date;\n }) {\n this.singleFilePerLayer = params.singleFilePerLayer;\n this.videoOnDemand = params.videoOnDemand;\n this.running = params.running;\n this.startedAt = params.startedAt;\n }\n}\n"],"mappings":";;;AAAA,OAAO,MAAMA,oBAAoB,CAAC;EAMhCC,WAAW,CAACC,MAKX,EAAE;IAAA;IAAA;IAAA;IAAA;IACD,IAAI,CAACC,kBAAkB,GAAGD,MAAM,CAACC,kBAAkB;IACnD,IAAI,CAACC,aAAa,GAAGF,MAAM,CAACE,aAAa;IACzC,IAAI,CAACC,OAAO,GAAGH,MAAM,CAACG,OAAO;IAC7B,IAAI,CAACC,SAAS,GAAGJ,MAAM,CAACI,SAAS;EACnC;AACF"}
|
|
@@ -1,14 +1,12 @@
|
|
|
1
|
-
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
2
|
-
|
|
1
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
2
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
|
|
3
|
+
function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
3
4
|
export class HMSHLSStreamingState {
|
|
4
5
|
constructor(params) {
|
|
5
6
|
_defineProperty(this, "running", void 0);
|
|
6
|
-
|
|
7
7
|
_defineProperty(this, "variants", void 0);
|
|
8
|
-
|
|
9
8
|
this.running = params.running;
|
|
10
9
|
this.variants = params.variants;
|
|
11
10
|
}
|
|
12
|
-
|
|
13
11
|
}
|
|
14
12
|
//# sourceMappingURL=HMSHLSStreamingState.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["HMSHLSStreamingState","constructor","params","running","variants"],"sources":["HMSHLSStreamingState.ts"],"sourcesContent":["import type { HMSHLSVariant } from './HMSHLSVariant';\n\nexport class HMSHLSStreamingState {\n running: boolean;\n variants: Array<HMSHLSVariant>;\n\n constructor(params: { running: boolean; variants: Array<HMSHLSVariant> }) {\n this.running = params.running;\n this.variants = params.variants;\n }\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"names":["HMSHLSStreamingState","constructor","params","running","variants"],"sources":["HMSHLSStreamingState.ts"],"sourcesContent":["import type { HMSHLSVariant } from './HMSHLSVariant';\n\nexport class HMSHLSStreamingState {\n running: boolean;\n variants: Array<HMSHLSVariant>;\n\n constructor(params: { running: boolean; variants: Array<HMSHLSVariant> }) {\n this.running = params.running;\n this.variants = params.variants;\n }\n}\n"],"mappings":";;;AAEA,OAAO,MAAMA,oBAAoB,CAAC;EAIhCC,WAAW,CAACC,MAA4D,EAAE;IAAA;IAAA;IACxE,IAAI,CAACC,OAAO,GAAGD,MAAM,CAACC,OAAO;IAC7B,IAAI,CAACC,QAAQ,GAAGF,MAAM,CAACE,QAAQ;EACjC;AACF"}
|
|
@@ -1,20 +1,16 @@
|
|
|
1
|
-
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
2
|
-
|
|
1
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
2
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
|
|
3
|
+
function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
3
4
|
export class HMSHLSVariant {
|
|
4
5
|
constructor(params) {
|
|
5
6
|
_defineProperty(this, "hlsStreamUrl", void 0);
|
|
6
|
-
|
|
7
7
|
_defineProperty(this, "meetingUrl", void 0);
|
|
8
|
-
|
|
9
8
|
_defineProperty(this, "metadata", void 0);
|
|
10
|
-
|
|
11
9
|
_defineProperty(this, "startedAt", void 0);
|
|
12
|
-
|
|
13
10
|
this.hlsStreamUrl = params.hlsStreamUrl;
|
|
14
11
|
this.meetingUrl = params.meetingUrl;
|
|
15
12
|
this.metadata = params.metadata;
|
|
16
13
|
this.startedAt = params.startedAt;
|
|
17
14
|
}
|
|
18
|
-
|
|
19
15
|
}
|
|
20
16
|
//# sourceMappingURL=HMSHLSVariant.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["HMSHLSVariant","constructor","params","hlsStreamUrl","meetingUrl","metadata","startedAt"],"sources":["HMSHLSVariant.ts"],"sourcesContent":["export class HMSHLSVariant {\n hlsStreamUrl?: string;\n meetingUrl?: string;\n metadata?: string;\n startedAt?: Date;\n\n constructor(params: {\n hlsStreamUrl?: string;\n meetingUrl?: string;\n metadata?: string;\n startedAt?: Date;\n }) {\n this.hlsStreamUrl = params.hlsStreamUrl;\n this.meetingUrl = params.meetingUrl;\n this.metadata = params.metadata;\n this.startedAt = params.startedAt;\n }\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"names":["HMSHLSVariant","constructor","params","hlsStreamUrl","meetingUrl","metadata","startedAt"],"sources":["HMSHLSVariant.ts"],"sourcesContent":["export class HMSHLSVariant {\n hlsStreamUrl?: string;\n meetingUrl?: string;\n metadata?: string;\n startedAt?: Date;\n\n constructor(params: {\n hlsStreamUrl?: string;\n meetingUrl?: string;\n metadata?: string;\n startedAt?: Date;\n }) {\n this.hlsStreamUrl = params.hlsStreamUrl;\n this.meetingUrl = params.meetingUrl;\n this.metadata = params.metadata;\n this.startedAt = params.startedAt;\n }\n}\n"],"mappings":";;;AAAA,OAAO,MAAMA,aAAa,CAAC;EAMzBC,WAAW,CAACC,MAKX,EAAE;IAAA;IAAA;IAAA;IAAA;IACD,IAAI,CAACC,YAAY,GAAGD,MAAM,CAACC,YAAY;IACvC,IAAI,CAACC,UAAU,GAAGF,MAAM,CAACE,UAAU;IACnC,IAAI,CAACC,QAAQ,GAAGH,MAAM,CAACG,QAAQ;IAC/B,IAAI,CAACC,SAAS,GAAGJ,MAAM,CAACI,SAAS;EACnC;AACF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["HMSHelper","getRoleNames","roles","names","map","item","name","push"],"sources":["HMSHelper.ts"],"sourcesContent":["import type { HMSRole } from './HMSRole';\n\nexport class HMSHelper {\n static getRoleNames(roles: HMSRole[]) {\n let names: string[] = [];\n\n roles?.map((item: HMSRole) => {\n if (item?.name) {\n names.push(item?.name);\n }\n });\n\n return names;\n }\n}\n"],"mappings":"AAEA,OAAO,MAAMA,
|
|
1
|
+
{"version":3,"names":["HMSHelper","getRoleNames","roles","names","map","item","name","push"],"sources":["HMSHelper.ts"],"sourcesContent":["import type { HMSRole } from './HMSRole';\n\nexport class HMSHelper {\n static getRoleNames(roles: HMSRole[]) {\n let names: string[] = [];\n\n roles?.map((item: HMSRole) => {\n if (item?.name) {\n names.push(item?.name);\n }\n });\n\n return names;\n }\n}\n"],"mappings":"AAEA,OAAO,MAAMA,SAAS,CAAC;EACrB,OAAOC,YAAY,CAACC,KAAgB,EAAE;IACpC,IAAIC,KAAe,GAAG,EAAE;IAExBD,KAAK,aAALA,KAAK,uBAALA,KAAK,CAAEE,GAAG,CAAEC,IAAa,IAAK;MAC5B,IAAIA,IAAI,aAAJA,IAAI,eAAJA,IAAI,CAAEC,IAAI,EAAE;QACdH,KAAK,CAACI,IAAI,CAACF,IAAI,aAAJA,IAAI,uBAAJA,IAAI,CAAEC,IAAI,CAAC;MACxB;IACF,CAAC,CAAC;IAEF,OAAOH,KAAK;EACd;AACF"}
|
|
@@ -1,17 +1,14 @@
|
|
|
1
|
-
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
2
|
-
|
|
1
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
2
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
|
|
3
|
+
function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
3
4
|
export class HMSLocalAudioStats {
|
|
4
5
|
constructor(params) {
|
|
5
6
|
_defineProperty(this, "bitrate", void 0);
|
|
6
|
-
|
|
7
7
|
_defineProperty(this, "bytesSent", void 0);
|
|
8
|
-
|
|
9
8
|
_defineProperty(this, "roundTripTime", void 0);
|
|
10
|
-
|
|
11
9
|
this.bitrate = params.bitrate;
|
|
12
10
|
this.bytesSent = params.bytesSent;
|
|
13
11
|
this.roundTripTime = params.roundTripTime;
|
|
14
12
|
}
|
|
15
|
-
|
|
16
13
|
}
|
|
17
14
|
//# sourceMappingURL=HMSLocalAudioStats.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["HMSLocalAudioStats","constructor","params","bitrate","bytesSent","roundTripTime"],"sources":["HMSLocalAudioStats.ts"],"sourcesContent":["export class HMSLocalAudioStats {\n bitrate?: number;\n bytesSent?: number;\n roundTripTime?: number;\n\n constructor(params: {\n bitrate?: number;\n bytesSent?: number;\n roundTripTime?: number;\n }) {\n this.bitrate = params.bitrate;\n this.bytesSent = params.bytesSent;\n this.roundTripTime = params.roundTripTime;\n }\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"names":["HMSLocalAudioStats","constructor","params","bitrate","bytesSent","roundTripTime"],"sources":["HMSLocalAudioStats.ts"],"sourcesContent":["export class HMSLocalAudioStats {\n bitrate?: number;\n bytesSent?: number;\n roundTripTime?: number;\n\n constructor(params: {\n bitrate?: number;\n bytesSent?: number;\n roundTripTime?: number;\n }) {\n this.bitrate = params.bitrate;\n this.bytesSent = params.bytesSent;\n this.roundTripTime = params.roundTripTime;\n }\n}\n"],"mappings":";;;AAAA,OAAO,MAAMA,kBAAkB,CAAC;EAK9BC,WAAW,CAACC,MAIX,EAAE;IAAA;IAAA;IAAA;IACD,IAAI,CAACC,OAAO,GAAGD,MAAM,CAACC,OAAO;IAC7B,IAAI,CAACC,SAAS,GAAGF,MAAM,CAACE,SAAS;IACjC,IAAI,CAACC,aAAa,GAAGH,MAAM,CAACG,aAAa;EAC3C;AACF"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
2
|
-
|
|
1
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
2
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
|
|
3
|
+
function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
3
4
|
import { NativeModules, Platform } from 'react-native';
|
|
4
5
|
import { HMSAudioTrack } from './HMSAudioTrack';
|
|
5
6
|
import { getLogger } from './HMSLogger';
|
|
@@ -30,14 +31,10 @@ export class HMSLocalAudioTrack extends HMSAudioTrack {
|
|
|
30
31
|
id: this.id
|
|
31
32
|
});
|
|
32
33
|
}
|
|
33
|
-
|
|
34
34
|
constructor(params) {
|
|
35
35
|
super(params);
|
|
36
|
-
|
|
37
36
|
_defineProperty(this, "settings", void 0);
|
|
38
|
-
|
|
39
37
|
_defineProperty(this, "id", void 0);
|
|
40
|
-
|
|
41
38
|
_defineProperty(this, "getVolume", async () => {
|
|
42
39
|
const logger = getLogger();
|
|
43
40
|
logger === null || logger === void 0 ? void 0 : logger.verbose('#Function getVolume', {
|
|
@@ -46,21 +43,17 @@ export class HMSLocalAudioTrack extends HMSAudioTrack {
|
|
|
46
43
|
source: this.source,
|
|
47
44
|
type: this.type
|
|
48
45
|
});
|
|
49
|
-
|
|
50
46
|
if (Platform.OS === 'ios') {
|
|
51
47
|
return 'This API not available for IOS';
|
|
52
48
|
}
|
|
53
|
-
|
|
54
49
|
const volume = await HMSManager.getVolume({
|
|
55
50
|
trackId: this.trackId,
|
|
56
51
|
id: this.id
|
|
57
52
|
});
|
|
58
53
|
return volume;
|
|
59
54
|
});
|
|
60
|
-
|
|
61
55
|
this.id = params.id;
|
|
62
56
|
this.settings = params.settings;
|
|
63
57
|
}
|
|
64
|
-
|
|
65
58
|
}
|
|
66
59
|
//# sourceMappingURL=HMSLocalAudioTrack.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["NativeModules","Platform","HMSAudioTrack","getLogger","HMSManager","HMSLocalAudioTrack","setMute","isMute","logger","verbose","trackId","id","source","type","setLocalMute","constructor","params","OS","volume","getVolume","settings"],"sources":["HMSLocalAudioTrack.ts"],"sourcesContent":["import { NativeModules, Platform } from 'react-native';\nimport { HMSAudioTrack } from './HMSAudioTrack';\nimport { getLogger } from './HMSLogger';\nimport type { HMSAudioTrackSettings } from './HMSAudioTrackSettings';\nimport type { HMSTrackType } from './HMSTrackType';\n\nconst {\n /**\n * @ignore\n */\n HMSManager,\n} = NativeModules;\n\nexport class HMSLocalAudioTrack extends HMSAudioTrack {\n settings?: HMSAudioTrackSettings;\n id: string;\n\n /**\n * Switches Audio of current user on/off depending upon the value of isMute\n *\n * @param {boolean} isMute\n * @memberof HMSLocalAudioTrack\n */\n setMute(isMute: boolean) {\n const logger = getLogger();\n logger?.verbose('#Function setMute', {\n trackId: this.trackId,\n id: this.id,\n source: this.source,\n type: this.type,\n isMute,\n });\n HMSManager.setLocalMute({ isMute, id: this.id });\n }\n\n getVolume = async () => {\n const logger = getLogger();\n logger?.verbose('#Function getVolume', {\n trackId: this.trackId,\n id: this.id,\n source: this.source,\n type: this.type,\n });\n if (Platform.OS === 'ios') {\n return 'This API not available for IOS';\n }\n const volume = await HMSManager.getVolume({\n trackId: this.trackId,\n id: this.id,\n });\n\n return volume;\n };\n\n constructor(params: {\n id: string;\n trackId: string;\n source?: number | string;\n trackDescription?: string;\n isMute?: boolean;\n settings?: HMSAudioTrackSettings;\n type?: HMSTrackType;\n }) {\n super(params);\n this.id = params.id;\n this.settings = params.settings;\n }\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"names":["NativeModules","Platform","HMSAudioTrack","getLogger","HMSManager","HMSLocalAudioTrack","setMute","isMute","logger","verbose","trackId","id","source","type","setLocalMute","constructor","params","OS","volume","getVolume","settings"],"sources":["HMSLocalAudioTrack.ts"],"sourcesContent":["import { NativeModules, Platform } from 'react-native';\nimport { HMSAudioTrack } from './HMSAudioTrack';\nimport { getLogger } from './HMSLogger';\nimport type { HMSAudioTrackSettings } from './HMSAudioTrackSettings';\nimport type { HMSTrackType } from './HMSTrackType';\n\nconst {\n /**\n * @ignore\n */\n HMSManager,\n} = NativeModules;\n\nexport class HMSLocalAudioTrack extends HMSAudioTrack {\n settings?: HMSAudioTrackSettings;\n id: string;\n\n /**\n * Switches Audio of current user on/off depending upon the value of isMute\n *\n * @param {boolean} isMute\n * @memberof HMSLocalAudioTrack\n */\n setMute(isMute: boolean) {\n const logger = getLogger();\n logger?.verbose('#Function setMute', {\n trackId: this.trackId,\n id: this.id,\n source: this.source,\n type: this.type,\n isMute,\n });\n HMSManager.setLocalMute({ isMute, id: this.id });\n }\n\n getVolume = async () => {\n const logger = getLogger();\n logger?.verbose('#Function getVolume', {\n trackId: this.trackId,\n id: this.id,\n source: this.source,\n type: this.type,\n });\n if (Platform.OS === 'ios') {\n return 'This API not available for IOS';\n }\n const volume = await HMSManager.getVolume({\n trackId: this.trackId,\n id: this.id,\n });\n\n return volume;\n };\n\n constructor(params: {\n id: string;\n trackId: string;\n source?: number | string;\n trackDescription?: string;\n isMute?: boolean;\n settings?: HMSAudioTrackSettings;\n type?: HMSTrackType;\n }) {\n super(params);\n this.id = params.id;\n this.settings = params.settings;\n }\n}\n"],"mappings":";;;AAAA,SAASA,aAAa,EAAEC,QAAQ,QAAQ,cAAc;AACtD,SAASC,aAAa,QAAQ,iBAAiB;AAC/C,SAASC,SAAS,QAAQ,aAAa;AAIvC,MAAM;EACJ;AACF;AACA;EACEC;AACF,CAAC,GAAGJ,aAAa;AAEjB,OAAO,MAAMK,kBAAkB,SAASH,aAAa,CAAC;EAIpD;AACF;AACA;AACA;AACA;AACA;EACEI,OAAO,CAACC,MAAe,EAAE;IACvB,MAAMC,MAAM,GAAGL,SAAS,EAAE;IAC1BK,MAAM,aAANA,MAAM,uBAANA,MAAM,CAAEC,OAAO,CAAC,mBAAmB,EAAE;MACnCC,OAAO,EAAE,IAAI,CAACA,OAAO;MACrBC,EAAE,EAAE,IAAI,CAACA,EAAE;MACXC,MAAM,EAAE,IAAI,CAACA,MAAM;MACnBC,IAAI,EAAE,IAAI,CAACA,IAAI;MACfN;IACF,CAAC,CAAC;IACFH,UAAU,CAACU,YAAY,CAAC;MAAEP,MAAM;MAAEI,EAAE,EAAE,IAAI,CAACA;IAAG,CAAC,CAAC;EAClD;EAqBAI,WAAW,CAACC,MAQX,EAAE;IACD,KAAK,CAACA,MAAM,CAAC;IAAC;IAAA;IAAA,mCA5BJ,YAAY;MACtB,MAAMR,MAAM,GAAGL,SAAS,EAAE;MAC1BK,MAAM,aAANA,MAAM,uBAANA,MAAM,CAAEC,OAAO,CAAC,qBAAqB,EAAE;QACrCC,OAAO,EAAE,IAAI,CAACA,OAAO;QACrBC,EAAE,EAAE,IAAI,CAACA,EAAE;QACXC,MAAM,EAAE,IAAI,CAACA,MAAM;QACnBC,IAAI,EAAE,IAAI,CAACA;MACb,CAAC,CAAC;MACF,IAAIZ,QAAQ,CAACgB,EAAE,KAAK,KAAK,EAAE;QACzB,OAAO,gCAAgC;MACzC;MACA,MAAMC,MAAM,GAAG,MAAMd,UAAU,CAACe,SAAS,CAAC;QACxCT,OAAO,EAAE,IAAI,CAACA,OAAO;QACrBC,EAAE,EAAE,IAAI,CAACA;MACX,CAAC,CAAC;MAEF,OAAOO,MAAM;IACf,CAAC;IAYC,IAAI,CAACP,EAAE,GAAGK,MAAM,CAACL,EAAE;IACnB,IAAI,CAACS,QAAQ,GAAGJ,MAAM,CAACI,QAAQ;EACjC;AACF"}
|
|
@@ -1,34 +1,27 @@
|
|
|
1
|
-
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
2
|
-
|
|
1
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
2
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
|
|
3
|
+
function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
3
4
|
import { HMSPeer } from './HMSPeer';
|
|
4
5
|
import { HMSLocalAudioTrack } from './HMSLocalAudioTrack';
|
|
5
6
|
import { HMSLocalVideoTrack } from './HMSLocalVideoTrack';
|
|
6
7
|
export class HMSLocalPeer extends HMSPeer {
|
|
7
8
|
constructor(params) {
|
|
8
9
|
super(params);
|
|
9
|
-
|
|
10
10
|
_defineProperty(this, "localAudio", void 0);
|
|
11
|
-
|
|
12
11
|
_defineProperty(this, "localVideo", void 0);
|
|
13
|
-
|
|
14
12
|
_defineProperty(this, "localAudioTrack", () => {
|
|
15
13
|
return this.localAudio;
|
|
16
14
|
});
|
|
17
|
-
|
|
18
15
|
_defineProperty(this, "localVideoTrack", () => {
|
|
19
16
|
return this.localVideo;
|
|
20
17
|
});
|
|
21
|
-
|
|
22
18
|
this.isLocal = true;
|
|
23
|
-
|
|
24
19
|
if (params.localAudioTrackData) {
|
|
25
20
|
this.localAudio = new HMSLocalAudioTrack(params.localAudioTrackData);
|
|
26
21
|
}
|
|
27
|
-
|
|
28
22
|
if (params.localVideoTrackData) {
|
|
29
23
|
this.localVideo = new HMSLocalVideoTrack(params.localVideoTrackData);
|
|
30
24
|
}
|
|
31
25
|
}
|
|
32
|
-
|
|
33
26
|
}
|
|
34
27
|
//# sourceMappingURL=HMSLocalPeer.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["HMSPeer","HMSLocalAudioTrack","HMSLocalVideoTrack","HMSLocalPeer","constructor","params","localAudio","localVideo","isLocal","localAudioTrackData","localVideoTrackData"],"sources":["HMSLocalPeer.ts"],"sourcesContent":["import type { HMSAudioTrack } from './HMSAudioTrack';\nimport { HMSPeer } from './HMSPeer';\nimport type { HMSTrack } from './HMSTrack';\nimport type { HMSVideoTrack } from './HMSVideoTrack';\nimport type { HMSVideoTrackSettings } from './HMSVideoTrackSettings';\nimport type { HMSAudioTrackSettings } from './HMSAudioTrackSettings';\nimport { HMSLocalAudioTrack } from './HMSLocalAudioTrack';\nimport { HMSLocalVideoTrack } from './HMSLocalVideoTrack';\nimport type { HMSRole } from './HMSRole';\nimport type { HMSTrackType } from './HMSTrackType';\nimport type { HMSNetworkQuality } from './HMSNetworkQuality';\n\nexport class HMSLocalPeer extends HMSPeer {\n private localAudio?: HMSLocalAudioTrack;\n private localVideo?: HMSLocalVideoTrack;\n\n localAudioTrack = () => {\n return this.localAudio;\n };\n localVideoTrack = () => {\n return this.localVideo;\n };\n\n constructor(params: {\n peerID: string;\n name: string;\n isLocal?: boolean;\n customerUserID?: string;\n customerDescription?: string;\n metadata?: string;\n audioTrack?: HMSAudioTrack;\n videoTrack?: HMSVideoTrack;\n networkQuality?: HMSNetworkQuality;\n role?: HMSRole;\n auxiliaryTracks?: HMSTrack[];\n localAudioTrackData?: {\n id: string;\n trackId: string;\n source?: number | string;\n trackDescription?: string;\n isMute?: boolean;\n settings?: HMSAudioTrackSettings;\n type: HMSTrackType;\n };\n localVideoTrackData?: {\n id: string;\n trackId: string;\n source?: number | string;\n trackDescription?: string;\n isMute?: boolean;\n settings?: HMSVideoTrackSettings;\n type: HMSTrackType;\n };\n }) {\n super(params);\n this.isLocal = true;\n if (params.localAudioTrackData) {\n this.localAudio = new HMSLocalAudioTrack(params.localAudioTrackData);\n }\n if (params.localVideoTrackData) {\n this.localVideo = new HMSLocalVideoTrack(params.localVideoTrackData);\n }\n }\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"names":["HMSPeer","HMSLocalAudioTrack","HMSLocalVideoTrack","HMSLocalPeer","constructor","params","localAudio","localVideo","isLocal","localAudioTrackData","localVideoTrackData"],"sources":["HMSLocalPeer.ts"],"sourcesContent":["import type { HMSAudioTrack } from './HMSAudioTrack';\nimport { HMSPeer } from './HMSPeer';\nimport type { HMSTrack } from './HMSTrack';\nimport type { HMSVideoTrack } from './HMSVideoTrack';\nimport type { HMSVideoTrackSettings } from './HMSVideoTrackSettings';\nimport type { HMSAudioTrackSettings } from './HMSAudioTrackSettings';\nimport { HMSLocalAudioTrack } from './HMSLocalAudioTrack';\nimport { HMSLocalVideoTrack } from './HMSLocalVideoTrack';\nimport type { HMSRole } from './HMSRole';\nimport type { HMSTrackType } from './HMSTrackType';\nimport type { HMSNetworkQuality } from './HMSNetworkQuality';\n\nexport class HMSLocalPeer extends HMSPeer {\n private localAudio?: HMSLocalAudioTrack;\n private localVideo?: HMSLocalVideoTrack;\n\n localAudioTrack = () => {\n return this.localAudio;\n };\n localVideoTrack = () => {\n return this.localVideo;\n };\n\n constructor(params: {\n peerID: string;\n name: string;\n isLocal?: boolean;\n customerUserID?: string;\n customerDescription?: string;\n metadata?: string;\n audioTrack?: HMSAudioTrack;\n videoTrack?: HMSVideoTrack;\n networkQuality?: HMSNetworkQuality;\n role?: HMSRole;\n auxiliaryTracks?: HMSTrack[];\n localAudioTrackData?: {\n id: string;\n trackId: string;\n source?: number | string;\n trackDescription?: string;\n isMute?: boolean;\n settings?: HMSAudioTrackSettings;\n type: HMSTrackType;\n };\n localVideoTrackData?: {\n id: string;\n trackId: string;\n source?: number | string;\n trackDescription?: string;\n isMute?: boolean;\n settings?: HMSVideoTrackSettings;\n type: HMSTrackType;\n };\n }) {\n super(params);\n this.isLocal = true;\n if (params.localAudioTrackData) {\n this.localAudio = new HMSLocalAudioTrack(params.localAudioTrackData);\n }\n if (params.localVideoTrackData) {\n this.localVideo = new HMSLocalVideoTrack(params.localVideoTrackData);\n }\n }\n}\n"],"mappings":";;;AACA,SAASA,OAAO,QAAQ,WAAW;AAKnC,SAASC,kBAAkB,QAAQ,sBAAsB;AACzD,SAASC,kBAAkB,QAAQ,sBAAsB;AAKzD,OAAO,MAAMC,YAAY,SAASH,OAAO,CAAC;EAWxCI,WAAW,CAACC,MA8BX,EAAE;IACD,KAAK,CAACA,MAAM,CAAC;IAAC;IAAA;IAAA,yCAtCE,MAAM;MACtB,OAAO,IAAI,CAACC,UAAU;IACxB,CAAC;IAAA,yCACiB,MAAM;MACtB,OAAO,IAAI,CAACC,UAAU;IACxB,CAAC;IAkCC,IAAI,CAACC,OAAO,GAAG,IAAI;IACnB,IAAIH,MAAM,CAACI,mBAAmB,EAAE;MAC9B,IAAI,CAACH,UAAU,GAAG,IAAIL,kBAAkB,CAACI,MAAM,CAACI,mBAAmB,CAAC;IACtE;IACA,IAAIJ,MAAM,CAACK,mBAAmB,EAAE;MAC9B,IAAI,CAACH,UAAU,GAAG,IAAIL,kBAAkB,CAACG,MAAM,CAACK,mBAAmB,CAAC;IACtE;EACF;AACF"}
|
|
@@ -1,23 +1,18 @@
|
|
|
1
|
-
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
2
|
-
|
|
1
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
2
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
|
|
3
|
+
function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
3
4
|
export class HMSLocalVideoStats {
|
|
4
5
|
constructor(params) {
|
|
5
6
|
_defineProperty(this, "bitrate", void 0);
|
|
6
|
-
|
|
7
7
|
_defineProperty(this, "bytesSent", void 0);
|
|
8
|
-
|
|
9
8
|
_defineProperty(this, "roundTripTime", void 0);
|
|
10
|
-
|
|
11
9
|
_defineProperty(this, "frameRate", void 0);
|
|
12
|
-
|
|
13
10
|
_defineProperty(this, "resolution", void 0);
|
|
14
|
-
|
|
15
11
|
this.bitrate = params.bitrate;
|
|
16
12
|
this.bytesSent = params.bytesSent;
|
|
17
13
|
this.roundTripTime = params.roundTripTime;
|
|
18
14
|
this.frameRate = params.frameRate;
|
|
19
15
|
this.resolution = params.resolution;
|
|
20
16
|
}
|
|
21
|
-
|
|
22
17
|
}
|
|
23
18
|
//# sourceMappingURL=HMSLocalVideoStats.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["HMSLocalVideoStats","constructor","params","bitrate","bytesSent","roundTripTime","frameRate","resolution"],"sources":["HMSLocalVideoStats.ts"],"sourcesContent":["import type { HMSVideoResolution } from './HMSVideoResolution';\n\nexport class HMSLocalVideoStats {\n bitrate?: number;\n bytesSent?: number;\n roundTripTime?: number;\n frameRate?: number;\n resolution?: HMSVideoResolution;\n\n constructor(params: {\n bitrate?: number;\n bytesSent?: number;\n roundTripTime?: number;\n frameRate?: number;\n resolution?: HMSVideoResolution;\n }) {\n this.bitrate = params.bitrate;\n this.bytesSent = params.bytesSent;\n this.roundTripTime = params.roundTripTime;\n this.frameRate = params.frameRate;\n this.resolution = params.resolution;\n }\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"names":["HMSLocalVideoStats","constructor","params","bitrate","bytesSent","roundTripTime","frameRate","resolution"],"sources":["HMSLocalVideoStats.ts"],"sourcesContent":["import type { HMSVideoResolution } from './HMSVideoResolution';\n\nexport class HMSLocalVideoStats {\n bitrate?: number;\n bytesSent?: number;\n roundTripTime?: number;\n frameRate?: number;\n resolution?: HMSVideoResolution;\n\n constructor(params: {\n bitrate?: number;\n bytesSent?: number;\n roundTripTime?: number;\n frameRate?: number;\n resolution?: HMSVideoResolution;\n }) {\n this.bitrate = params.bitrate;\n this.bytesSent = params.bytesSent;\n this.roundTripTime = params.roundTripTime;\n this.frameRate = params.frameRate;\n this.resolution = params.resolution;\n }\n}\n"],"mappings":";;;AAEA,OAAO,MAAMA,kBAAkB,CAAC;EAO9BC,WAAW,CAACC,MAMX,EAAE;IAAA;IAAA;IAAA;IAAA;IAAA;IACD,IAAI,CAACC,OAAO,GAAGD,MAAM,CAACC,OAAO;IAC7B,IAAI,CAACC,SAAS,GAAGF,MAAM,CAACE,SAAS;IACjC,IAAI,CAACC,aAAa,GAAGH,MAAM,CAACG,aAAa;IACzC,IAAI,CAACC,SAAS,GAAGJ,MAAM,CAACI,SAAS;IACjC,IAAI,CAACC,UAAU,GAAGL,MAAM,CAACK,UAAU;EACrC;AACF"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
2
|
-
|
|
1
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
2
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
|
|
3
|
+
function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
3
4
|
import { NativeModules } from 'react-native';
|
|
4
5
|
import { HMSVideoTrack } from './HMSVideoTrack';
|
|
5
6
|
import { getLogger } from './HMSLogger';
|
|
@@ -35,18 +36,12 @@ export class HMSLocalVideoTrack extends HMSVideoTrack {
|
|
|
35
36
|
id: this.id
|
|
36
37
|
});
|
|
37
38
|
}
|
|
38
|
-
|
|
39
39
|
constructor(params) {
|
|
40
40
|
super(params);
|
|
41
|
-
|
|
42
41
|
_defineProperty(this, "settings", void 0);
|
|
43
|
-
|
|
44
42
|
_defineProperty(this, "startCapturing", void 0);
|
|
45
|
-
|
|
46
43
|
_defineProperty(this, "stopCapturing", void 0);
|
|
47
|
-
|
|
48
44
|
_defineProperty(this, "id", void 0);
|
|
49
|
-
|
|
50
45
|
_defineProperty(this, "switchCamera", () => {
|
|
51
46
|
const logger = getLogger();
|
|
52
47
|
logger === null || logger === void 0 ? void 0 : logger.verbose('#Function switchCamera', {
|
|
@@ -59,10 +54,8 @@ export class HMSLocalVideoTrack extends HMSVideoTrack {
|
|
|
59
54
|
id: this.id
|
|
60
55
|
});
|
|
61
56
|
});
|
|
62
|
-
|
|
63
57
|
this.settings = params.settings;
|
|
64
58
|
this.id = params.id;
|
|
65
59
|
}
|
|
66
|
-
|
|
67
60
|
}
|
|
68
61
|
//# sourceMappingURL=HMSLocalVideoTrack.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["NativeModules","HMSVideoTrack","getLogger","HMSManager","HMSLocalVideoTrack","setMute","isMute","logger","verbose","trackId","source","type","id","setLocalVideoMute","constructor","params","switchCamera","settings"],"sources":["HMSLocalVideoTrack.ts"],"sourcesContent":["import { NativeModules } from 'react-native';\nimport { HMSVideoTrack } from './HMSVideoTrack';\nimport { getLogger } from './HMSLogger';\nimport type { HMSVideoTrackSettings } from './HMSVideoTrackSettings';\nimport type { HMSTrackType } from './HMSTrackType';\n\nconst {\n /**\n * @ignore\n */\n HMSManager,\n} = NativeModules;\n\nexport class HMSLocalVideoTrack extends HMSVideoTrack {\n settings?: HMSVideoTrackSettings;\n startCapturing?: Function;\n stopCapturing?: Function;\n id: string;\n\n /**\n * switches camera between front/back\n *\n * @memberof HMSSDK\n */\n switchCamera = () => {\n const logger = getLogger();\n logger?.verbose('#Function switchCamera', {\n trackId: this.trackId,\n source: this.source,\n type: this.type,\n id: this.id,\n });\n HMSManager.switchCamera({ id: this.id });\n };\n\n /**\n * Switches local video feed on/off depending upon the value of isMute\n *\n * @param {boolean} isMute\n * @memberof HMSLocalVideoTrack\n */\n setMute(isMute: boolean) {\n const logger = getLogger();\n logger?.verbose('#Function setMute', {\n trackId: this.trackId,\n source: this.source,\n type: this.type,\n id: this.id,\n });\n HMSManager.setLocalVideoMute({ isMute, id: this.id });\n }\n\n constructor(params: {\n id: string;\n trackId: string;\n source?: number | string;\n trackDescription?: string;\n isMute?: boolean;\n settings?: HMSVideoTrackSettings;\n type?: HMSTrackType;\n }) {\n super(params);\n this.settings = params.settings;\n this.id = params.id;\n }\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"names":["NativeModules","HMSVideoTrack","getLogger","HMSManager","HMSLocalVideoTrack","setMute","isMute","logger","verbose","trackId","source","type","id","setLocalVideoMute","constructor","params","switchCamera","settings"],"sources":["HMSLocalVideoTrack.ts"],"sourcesContent":["import { NativeModules } from 'react-native';\nimport { HMSVideoTrack } from './HMSVideoTrack';\nimport { getLogger } from './HMSLogger';\nimport type { HMSVideoTrackSettings } from './HMSVideoTrackSettings';\nimport type { HMSTrackType } from './HMSTrackType';\n\nconst {\n /**\n * @ignore\n */\n HMSManager,\n} = NativeModules;\n\nexport class HMSLocalVideoTrack extends HMSVideoTrack {\n settings?: HMSVideoTrackSettings;\n startCapturing?: Function;\n stopCapturing?: Function;\n id: string;\n\n /**\n * switches camera between front/back\n *\n * @memberof HMSSDK\n */\n switchCamera = () => {\n const logger = getLogger();\n logger?.verbose('#Function switchCamera', {\n trackId: this.trackId,\n source: this.source,\n type: this.type,\n id: this.id,\n });\n HMSManager.switchCamera({ id: this.id });\n };\n\n /**\n * Switches local video feed on/off depending upon the value of isMute\n *\n * @param {boolean} isMute\n * @memberof HMSLocalVideoTrack\n */\n setMute(isMute: boolean) {\n const logger = getLogger();\n logger?.verbose('#Function setMute', {\n trackId: this.trackId,\n source: this.source,\n type: this.type,\n id: this.id,\n });\n HMSManager.setLocalVideoMute({ isMute, id: this.id });\n }\n\n constructor(params: {\n id: string;\n trackId: string;\n source?: number | string;\n trackDescription?: string;\n isMute?: boolean;\n settings?: HMSVideoTrackSettings;\n type?: HMSTrackType;\n }) {\n super(params);\n this.settings = params.settings;\n this.id = params.id;\n }\n}\n"],"mappings":";;;AAAA,SAASA,aAAa,QAAQ,cAAc;AAC5C,SAASC,aAAa,QAAQ,iBAAiB;AAC/C,SAASC,SAAS,QAAQ,aAAa;AAIvC,MAAM;EACJ;AACF;AACA;EACEC;AACF,CAAC,GAAGH,aAAa;AAEjB,OAAO,MAAMI,kBAAkB,SAASH,aAAa,CAAC;EAMpD;AACF;AACA;AACA;AACA;;EAYE;AACF;AACA;AACA;AACA;AACA;EACEI,OAAO,CAACC,MAAe,EAAE;IACvB,MAAMC,MAAM,GAAGL,SAAS,EAAE;IAC1BK,MAAM,aAANA,MAAM,uBAANA,MAAM,CAAEC,OAAO,CAAC,mBAAmB,EAAE;MACnCC,OAAO,EAAE,IAAI,CAACA,OAAO;MACrBC,MAAM,EAAE,IAAI,CAACA,MAAM;MACnBC,IAAI,EAAE,IAAI,CAACA,IAAI;MACfC,EAAE,EAAE,IAAI,CAACA;IACX,CAAC,CAAC;IACFT,UAAU,CAACU,iBAAiB,CAAC;MAAEP,MAAM;MAAEM,EAAE,EAAE,IAAI,CAACA;IAAG,CAAC,CAAC;EACvD;EAEAE,WAAW,CAACC,MAQX,EAAE;IACD,KAAK,CAACA,MAAM,CAAC;IAAC;IAAA;IAAA;IAAA;IAAA,sCArCD,MAAM;MACnB,MAAMR,MAAM,GAAGL,SAAS,EAAE;MAC1BK,MAAM,aAANA,MAAM,uBAANA,MAAM,CAAEC,OAAO,CAAC,wBAAwB,EAAE;QACxCC,OAAO,EAAE,IAAI,CAACA,OAAO;QACrBC,MAAM,EAAE,IAAI,CAACA,MAAM;QACnBC,IAAI,EAAE,IAAI,CAACA,IAAI;QACfC,EAAE,EAAE,IAAI,CAACA;MACX,CAAC,CAAC;MACFT,UAAU,CAACa,YAAY,CAAC;QAAEJ,EAAE,EAAE,IAAI,CAACA;MAAG,CAAC,CAAC;IAC1C,CAAC;IA6BC,IAAI,CAACK,QAAQ,GAAGF,MAAM,CAACE,QAAQ;IAC/B,IAAI,CAACL,EAAE,GAAGG,MAAM,CAACH,EAAE;EACrB;AACF"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export let HMSLogAlarmManager;
|
|
2
|
+
(function (HMSLogAlarmManager) {
|
|
3
|
+
HMSLogAlarmManager["DEFAULT_DIR_SIZE"] = "DEFAULT_DIR_SIZE";
|
|
4
|
+
HMSLogAlarmManager["DEFAULT_LOGS_FILE_NAME"] = "DEFAULT_LOGS_FILE_NAME";
|
|
5
|
+
HMSLogAlarmManager["MAX_DIR_SIZE"] = "MAX_DIR_SIZE";
|
|
6
|
+
})(HMSLogAlarmManager || (HMSLogAlarmManager = {}));
|
|
7
|
+
//# sourceMappingURL=HMSLogAlarmManager.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["HMSLogAlarmManager"],"sources":["HMSLogAlarmManager.ts"],"sourcesContent":["export enum HMSLogAlarmManager {\n DEFAULT_DIR_SIZE = 'DEFAULT_DIR_SIZE',\n DEFAULT_LOGS_FILE_NAME = 'DEFAULT_LOGS_FILE_NAME',\n MAX_DIR_SIZE = 'MAX_DIR_SIZE',\n}\n"],"mappings":"AAAA,WAAYA,kBAAkB;AAI7B,WAJWA,kBAAkB;EAAlBA,kBAAkB;EAAlBA,kBAAkB;EAAlBA,kBAAkB;AAAA,GAAlBA,kBAAkB,KAAlBA,kBAAkB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["HMSLogLevel"],"sources":["HMSLogLevel.ts"],"sourcesContent":["export enum HMSLogLevel {\n VERBOSE = 'VERBOSE',\n WARNING = 'WARNING',\n ERROR = 'ERROR',\n}\n"],"mappings":"AAAA,WAAYA,
|
|
1
|
+
{"version":3,"names":["HMSLogLevel"],"sources":["HMSLogLevel.ts"],"sourcesContent":["export enum HMSLogLevel {\n VERBOSE = 'VERBOSE',\n WARNING = 'WARNING',\n ERROR = 'ERROR',\n}\n"],"mappings":"AAAA,WAAYA,WAAW;AAItB,WAJWA,WAAW;EAAXA,WAAW;EAAXA,WAAW;EAAXA,WAAW;AAAA,GAAXA,WAAW,KAAXA,WAAW"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
2
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
|
|
3
|
+
function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
4
|
+
export class HMSLogSettings {
|
|
5
|
+
constructor(params) {
|
|
6
|
+
_defineProperty(this, "level", void 0);
|
|
7
|
+
_defineProperty(this, "isLogStorageEnabled", void 0);
|
|
8
|
+
_defineProperty(this, "maxDirSizeInBytes", void 0);
|
|
9
|
+
this.level = params.level;
|
|
10
|
+
this.isLogStorageEnabled = params.isLogStorageEnabled;
|
|
11
|
+
this.maxDirSizeInBytes = params.maxDirSizeInBytes;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=HMSLogSettings.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["HMSLogSettings","constructor","params","level","isLogStorageEnabled","maxDirSizeInBytes"],"sources":["HMSLogSettings.ts"],"sourcesContent":["import type { HMSLogAlarmManager } from './HMSLogAlarmManager';\nimport type { HMSLogLevel } from './HMSLogLevel';\n\nexport class HMSLogSettings {\n level: HMSLogLevel;\n isLogStorageEnabled: boolean;\n maxDirSizeInBytes: HMSLogAlarmManager;\n\n constructor(params: {\n level: HMSLogLevel;\n isLogStorageEnabled: boolean;\n maxDirSizeInBytes: HMSLogAlarmManager;\n }) {\n this.level = params.level;\n this.isLogStorageEnabled = params.isLogStorageEnabled;\n this.maxDirSizeInBytes = params.maxDirSizeInBytes;\n }\n}\n"],"mappings":";;;AAGA,OAAO,MAAMA,cAAc,CAAC;EAK1BC,WAAW,CAACC,MAIX,EAAE;IAAA;IAAA;IAAA;IACD,IAAI,CAACC,KAAK,GAAGD,MAAM,CAACC,KAAK;IACzB,IAAI,CAACC,mBAAmB,GAAGF,MAAM,CAACE,mBAAmB;IACrD,IAAI,CAACC,iBAAiB,GAAGH,MAAM,CAACG,iBAAiB;EACnD;AACF"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
2
|
-
|
|
1
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
2
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
|
|
3
|
+
function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
3
4
|
import { HMSLogLevel } from './HMSLogLevel';
|
|
4
5
|
export let logger;
|
|
5
6
|
export const getLogger = () => {
|
|
@@ -14,33 +15,25 @@ export const setLogger = (id, hmsLogger) => {
|
|
|
14
15
|
export class HMSLogger {
|
|
15
16
|
constructor(params) {
|
|
16
17
|
_defineProperty(this, "_verbose", false);
|
|
17
|
-
|
|
18
18
|
_defineProperty(this, "_warning", false);
|
|
19
|
-
|
|
20
19
|
_defineProperty(this, "_error", false);
|
|
21
|
-
|
|
22
20
|
_defineProperty(this, "logs", []);
|
|
23
|
-
|
|
24
21
|
_defineProperty(this, "onLog", void 0);
|
|
25
|
-
|
|
26
22
|
if (params) {
|
|
27
23
|
this._verbose = params.verbose;
|
|
28
24
|
this._warning = params.warning;
|
|
29
25
|
this._error = params.error;
|
|
30
26
|
}
|
|
31
27
|
}
|
|
32
|
-
|
|
33
28
|
verbose(message, data) {
|
|
34
29
|
if (this._verbose) {
|
|
35
30
|
console.log(message, data);
|
|
36
|
-
|
|
37
31
|
if (this.onLog) {
|
|
38
32
|
this === null || this === void 0 ? void 0 : this.onLog({
|
|
39
33
|
message,
|
|
40
34
|
data
|
|
41
35
|
});
|
|
42
36
|
}
|
|
43
|
-
|
|
44
37
|
this.logs.push({
|
|
45
38
|
type: 'verbose',
|
|
46
39
|
message,
|
|
@@ -49,18 +42,15 @@ export class HMSLogger {
|
|
|
49
42
|
});
|
|
50
43
|
}
|
|
51
44
|
}
|
|
52
|
-
|
|
53
45
|
warn(message, data) {
|
|
54
46
|
if (this._warning) {
|
|
55
47
|
console.warn(message, data);
|
|
56
|
-
|
|
57
48
|
if (this.onLog) {
|
|
58
49
|
this === null || this === void 0 ? void 0 : this.onLog({
|
|
59
50
|
message,
|
|
60
51
|
data
|
|
61
52
|
});
|
|
62
53
|
}
|
|
63
|
-
|
|
64
54
|
this.logs.push({
|
|
65
55
|
type: 'warn',
|
|
66
56
|
message,
|
|
@@ -69,18 +59,15 @@ export class HMSLogger {
|
|
|
69
59
|
});
|
|
70
60
|
}
|
|
71
61
|
}
|
|
72
|
-
|
|
73
62
|
error(message, data) {
|
|
74
63
|
if (this._error) {
|
|
75
64
|
console.error(message, data);
|
|
76
|
-
|
|
77
65
|
if (this.onLog) {
|
|
78
66
|
this === null || this === void 0 ? void 0 : this.onLog({
|
|
79
67
|
message,
|
|
80
68
|
data
|
|
81
69
|
});
|
|
82
70
|
}
|
|
83
|
-
|
|
84
71
|
this.logs.push({
|
|
85
72
|
type: 'error',
|
|
86
73
|
message,
|
|
@@ -89,15 +76,12 @@ export class HMSLogger {
|
|
|
89
76
|
});
|
|
90
77
|
}
|
|
91
78
|
}
|
|
92
|
-
|
|
93
79
|
getLogs() {
|
|
94
80
|
return this.logs;
|
|
95
81
|
}
|
|
96
|
-
|
|
97
82
|
setLogListener(callback) {
|
|
98
83
|
this.onLog = callback;
|
|
99
84
|
}
|
|
100
|
-
|
|
101
85
|
updateLogLevel(level, value) {
|
|
102
86
|
switch (level) {
|
|
103
87
|
case HMSLogLevel.VERBOSE:
|
|
@@ -105,25 +89,21 @@ export class HMSLogger {
|
|
|
105
89
|
this._verbose = value;
|
|
106
90
|
return;
|
|
107
91
|
}
|
|
108
|
-
|
|
109
92
|
case HMSLogLevel.WARNING:
|
|
110
93
|
{
|
|
111
94
|
this._warning = value;
|
|
112
95
|
return;
|
|
113
96
|
}
|
|
114
|
-
|
|
115
97
|
case HMSLogLevel.ERROR:
|
|
116
98
|
{
|
|
117
99
|
this._error = value;
|
|
118
100
|
return;
|
|
119
101
|
}
|
|
120
|
-
|
|
121
102
|
default:
|
|
122
103
|
{
|
|
123
104
|
return;
|
|
124
105
|
}
|
|
125
106
|
}
|
|
126
107
|
}
|
|
127
|
-
|
|
128
108
|
}
|
|
129
109
|
//# sourceMappingURL=HMSLogger.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["HMSLogLevel","logger","getLogger","setLogger","id","hmsLogger","verbose","HMSLogger","constructor","params","_verbose","_warning","warning","_error","error","message","data","console","log","onLog","logs","push","type","warn","getLogs","setLogListener","callback","updateLogLevel","level","value","VERBOSE","WARNING","ERROR"],"sources":["HMSLogger.ts"],"sourcesContent":["import { HMSLogLevel } from './HMSLogLevel';\n\nexport let logger: HMSLogger | undefined;\n\nexport const getLogger = () => {\n return logger;\n};\n\nexport const setLogger = (id: string, hmsLogger?: HMSLogger) => {\n logger = hmsLogger;\n hmsLogger?.verbose('#Function setLogger', { id });\n};\n\nexport class HMSLogger {\n private _verbose: boolean = false;\n private _warning: boolean = false;\n private _error: boolean = false;\n private logs: {\n type: 'verbose' | 'warn' | 'error';\n message: string;\n data: any;\n id: string;\n }[] = [];\n private onLog?: Function;\n\n constructor(params?: { verbose: boolean; warning: boolean; error: boolean }) {\n if (params) {\n this._verbose = params.verbose;\n this._warning = params.warning;\n this._error = params.error;\n }\n }\n\n verbose(message: string, data: any) {\n if (this._verbose) {\n console.log(message, data);\n if (this.onLog) {\n this?.onLog({ message, data });\n }\n this.logs.push({ type: 'verbose', message, data, id: data?.id });\n }\n }\n\n warn(message: string, data: any) {\n if (this._warning) {\n console.warn(message, data);\n if (this.onLog) {\n this?.onLog({ message, data });\n }\n this.logs.push({ type: 'warn', message, data, id: data?.id });\n }\n }\n\n error(message: string, data: any) {\n if (this._error) {\n console.error(message, data);\n if (this.onLog) {\n this?.onLog({ message, data });\n }\n this.logs.push({ type: 'error', message, data, id: data?.id });\n }\n }\n\n getLogs() {\n return this.logs;\n }\n\n setLogListener(callback: Function) {\n this.onLog = callback;\n }\n\n updateLogLevel(level: HMSLogLevel, value: boolean) {\n switch (level) {\n case HMSLogLevel.VERBOSE: {\n this._verbose = value;\n return;\n }\n case HMSLogLevel.WARNING: {\n this._warning = value;\n return;\n }\n case HMSLogLevel.ERROR: {\n this._error = value;\n return;\n }\n default: {\n return;\n }\n }\n }\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"names":["HMSLogLevel","logger","getLogger","setLogger","id","hmsLogger","verbose","HMSLogger","constructor","params","_verbose","_warning","warning","_error","error","message","data","console","log","onLog","logs","push","type","warn","getLogs","setLogListener","callback","updateLogLevel","level","value","VERBOSE","WARNING","ERROR"],"sources":["HMSLogger.ts"],"sourcesContent":["import { HMSLogLevel } from './HMSLogLevel';\n\nexport let logger: HMSLogger | undefined;\n\nexport const getLogger = () => {\n return logger;\n};\n\nexport const setLogger = (id: string, hmsLogger?: HMSLogger) => {\n logger = hmsLogger;\n hmsLogger?.verbose('#Function setLogger', { id });\n};\n\nexport class HMSLogger {\n private _verbose: boolean = false;\n private _warning: boolean = false;\n private _error: boolean = false;\n private logs: {\n type: 'verbose' | 'warn' | 'error';\n message: string;\n data: any;\n id: string;\n }[] = [];\n private onLog?: Function;\n\n constructor(params?: { verbose: boolean; warning: boolean; error: boolean }) {\n if (params) {\n this._verbose = params.verbose;\n this._warning = params.warning;\n this._error = params.error;\n }\n }\n\n verbose(message: string, data: any) {\n if (this._verbose) {\n console.log(message, data);\n if (this.onLog) {\n this?.onLog({ message, data });\n }\n this.logs.push({ type: 'verbose', message, data, id: data?.id });\n }\n }\n\n warn(message: string, data: any) {\n if (this._warning) {\n console.warn(message, data);\n if (this.onLog) {\n this?.onLog({ message, data });\n }\n this.logs.push({ type: 'warn', message, data, id: data?.id });\n }\n }\n\n error(message: string, data: any) {\n if (this._error) {\n console.error(message, data);\n if (this.onLog) {\n this?.onLog({ message, data });\n }\n this.logs.push({ type: 'error', message, data, id: data?.id });\n }\n }\n\n getLogs() {\n return this.logs;\n }\n\n setLogListener(callback: Function) {\n this.onLog = callback;\n }\n\n updateLogLevel(level: HMSLogLevel, value: boolean) {\n switch (level) {\n case HMSLogLevel.VERBOSE: {\n this._verbose = value;\n return;\n }\n case HMSLogLevel.WARNING: {\n this._warning = value;\n return;\n }\n case HMSLogLevel.ERROR: {\n this._error = value;\n return;\n }\n default: {\n return;\n }\n }\n }\n}\n"],"mappings":";;;AAAA,SAASA,WAAW,QAAQ,eAAe;AAE3C,OAAO,IAAIC,MAA6B;AAExC,OAAO,MAAMC,SAAS,GAAG,MAAM;EAC7B,OAAOD,MAAM;AACf,CAAC;AAED,OAAO,MAAME,SAAS,GAAG,CAACC,EAAU,EAAEC,SAAqB,KAAK;EAC9DJ,MAAM,GAAGI,SAAS;EAClBA,SAAS,aAATA,SAAS,uBAATA,SAAS,CAAEC,OAAO,CAAC,qBAAqB,EAAE;IAAEF;EAAG,CAAC,CAAC;AACnD,CAAC;AAED,OAAO,MAAMG,SAAS,CAAC;EAYrBC,WAAW,CAACC,MAA+D,EAAE;IAAA,kCAXjD,KAAK;IAAA,kCACL,KAAK;IAAA,gCACP,KAAK;IAAA,8BAMzB,EAAE;IAAA;IAIN,IAAIA,MAAM,EAAE;MACV,IAAI,CAACC,QAAQ,GAAGD,MAAM,CAACH,OAAO;MAC9B,IAAI,CAACK,QAAQ,GAAGF,MAAM,CAACG,OAAO;MAC9B,IAAI,CAACC,MAAM,GAAGJ,MAAM,CAACK,KAAK;IAC5B;EACF;EAEAR,OAAO,CAACS,OAAe,EAAEC,IAAS,EAAE;IAClC,IAAI,IAAI,CAACN,QAAQ,EAAE;MACjBO,OAAO,CAACC,GAAG,CAACH,OAAO,EAAEC,IAAI,CAAC;MAC1B,IAAI,IAAI,CAACG,KAAK,EAAE;QACd,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAEA,KAAK,CAAC;UAAEJ,OAAO;UAAEC;QAAK,CAAC,CAAC;MAChC;MACA,IAAI,CAACI,IAAI,CAACC,IAAI,CAAC;QAAEC,IAAI,EAAE,SAAS;QAAEP,OAAO;QAAEC,IAAI;QAAEZ,EAAE,EAAEY,IAAI,aAAJA,IAAI,uBAAJA,IAAI,CAAEZ;MAAG,CAAC,CAAC;IAClE;EACF;EAEAmB,IAAI,CAACR,OAAe,EAAEC,IAAS,EAAE;IAC/B,IAAI,IAAI,CAACL,QAAQ,EAAE;MACjBM,OAAO,CAACM,IAAI,CAACR,OAAO,EAAEC,IAAI,CAAC;MAC3B,IAAI,IAAI,CAACG,KAAK,EAAE;QACd,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAEA,KAAK,CAAC;UAAEJ,OAAO;UAAEC;QAAK,CAAC,CAAC;MAChC;MACA,IAAI,CAACI,IAAI,CAACC,IAAI,CAAC;QAAEC,IAAI,EAAE,MAAM;QAAEP,OAAO;QAAEC,IAAI;QAAEZ,EAAE,EAAEY,IAAI,aAAJA,IAAI,uBAAJA,IAAI,CAAEZ;MAAG,CAAC,CAAC;IAC/D;EACF;EAEAU,KAAK,CAACC,OAAe,EAAEC,IAAS,EAAE;IAChC,IAAI,IAAI,CAACH,MAAM,EAAE;MACfI,OAAO,CAACH,KAAK,CAACC,OAAO,EAAEC,IAAI,CAAC;MAC5B,IAAI,IAAI,CAACG,KAAK,EAAE;QACd,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAEA,KAAK,CAAC;UAAEJ,OAAO;UAAEC;QAAK,CAAC,CAAC;MAChC;MACA,IAAI,CAACI,IAAI,CAACC,IAAI,CAAC;QAAEC,IAAI,EAAE,OAAO;QAAEP,OAAO;QAAEC,IAAI;QAAEZ,EAAE,EAAEY,IAAI,aAAJA,IAAI,uBAAJA,IAAI,CAAEZ;MAAG,CAAC,CAAC;IAChE;EACF;EAEAoB,OAAO,GAAG;IACR,OAAO,IAAI,CAACJ,IAAI;EAClB;EAEAK,cAAc,CAACC,QAAkB,EAAE;IACjC,IAAI,CAACP,KAAK,GAAGO,QAAQ;EACvB;EAEAC,cAAc,CAACC,KAAkB,EAAEC,KAAc,EAAE;IACjD,QAAQD,KAAK;MACX,KAAK5B,WAAW,CAAC8B,OAAO;QAAE;UACxB,IAAI,CAACpB,QAAQ,GAAGmB,KAAK;UACrB;QACF;MACA,KAAK7B,WAAW,CAAC+B,OAAO;QAAE;UACxB,IAAI,CAACpB,QAAQ,GAAGkB,KAAK;UACrB;QACF;MACA,KAAK7B,WAAW,CAACgC,KAAK;QAAE;UACtB,IAAI,CAACnB,MAAM,GAAGgB,KAAK;UACnB;QACF;MACA;QAAS;UACP;QACF;IAAC;EAEL;AACF"}
|
|
@@ -1,24 +1,20 @@
|
|
|
1
|
-
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
2
|
-
|
|
1
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
2
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
|
|
3
|
+
function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
3
4
|
export class HMSMessage {
|
|
4
5
|
// endpoint: string;
|
|
6
|
+
|
|
5
7
|
constructor(params) {
|
|
6
8
|
_defineProperty(this, "message", void 0);
|
|
7
|
-
|
|
8
9
|
_defineProperty(this, "type", void 0);
|
|
9
|
-
|
|
10
10
|
_defineProperty(this, "time", void 0);
|
|
11
|
-
|
|
12
11
|
_defineProperty(this, "sender", void 0);
|
|
13
|
-
|
|
14
12
|
_defineProperty(this, "recipient", void 0);
|
|
15
|
-
|
|
16
13
|
this.message = params.message;
|
|
17
14
|
this.type = params.type;
|
|
18
15
|
this.time = params.time;
|
|
19
16
|
this.sender = params.sender;
|
|
20
17
|
this.recipient = params.recipient;
|
|
21
18
|
}
|
|
22
|
-
|
|
23
19
|
}
|
|
24
20
|
//# sourceMappingURL=HMSMessage.js.map
|