@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 +1 @@
|
|
|
1
|
-
{"version":3,"names":["HMSMessage","constructor","params","message","type","time","sender","recipient"],"sources":["HMSMessage.ts"],"sourcesContent":["import type { HMSMessageRecipient } from './HMSMessageRecipient';\nimport type { HMSPeer } from './HMSPeer';\n\nexport class HMSMessage {\n // endpoint: string;\n public message: string;\n public type:
|
|
1
|
+
{"version":3,"names":["HMSMessage","constructor","params","message","type","time","sender","recipient"],"sources":["HMSMessage.ts"],"sourcesContent":["import type { HMSMessageRecipient } from './HMSMessageRecipient';\nimport type { HMSMessageType } from './HMSMessageType';\nimport type { HMSPeer } from './HMSPeer';\n\nexport class HMSMessage {\n // endpoint: string;\n public message: string;\n public type: HMSMessageType;\n public time: Date;\n public sender?: HMSPeer;\n public recipient: HMSMessageRecipient;\n\n constructor(params: {\n message: string;\n type: HMSMessageType;\n time: Date;\n sender?: HMSPeer;\n recipient: HMSMessageRecipient;\n }) {\n this.message = params.message;\n this.type = params.type;\n this.time = params.time;\n this.sender = params.sender;\n this.recipient = params.recipient;\n }\n}\n"],"mappings":";;;AAIA,OAAO,MAAMA,UAAU,CAAC;EACtB;;EAOAC,WAAW,CAACC,MAMX,EAAE;IAAA;IAAA;IAAA;IAAA;IAAA;IACD,IAAI,CAACC,OAAO,GAAGD,MAAM,CAACC,OAAO;IAC7B,IAAI,CAACC,IAAI,GAAGF,MAAM,CAACE,IAAI;IACvB,IAAI,CAACC,IAAI,GAAGH,MAAM,CAACG,IAAI;IACvB,IAAI,CAACC,MAAM,GAAGJ,MAAM,CAACI,MAAM;IAC3B,IAAI,CAACC,SAAS,GAAGL,MAAM,CAACK,SAAS;EACnC;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 HMSMessageRecipient {
|
|
4
5
|
constructor(params) {
|
|
5
6
|
_defineProperty(this, "recipientType", void 0);
|
|
6
|
-
|
|
7
7
|
_defineProperty(this, "recipientPeer", void 0);
|
|
8
|
-
|
|
9
8
|
_defineProperty(this, "recipientRoles", void 0);
|
|
10
|
-
|
|
11
9
|
this.recipientType = params.recipientType;
|
|
12
10
|
this.recipientPeer = params.recipientPeer;
|
|
13
11
|
this.recipientRoles = params.recipientRoles;
|
|
14
12
|
}
|
|
15
|
-
|
|
16
13
|
}
|
|
17
14
|
//# sourceMappingURL=HMSMessageRecipient.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["HMSMessageRecipient","constructor","params","recipientType","recipientPeer","recipientRoles"],"sources":["HMSMessageRecipient.ts"],"sourcesContent":["import type { HMSMessageRecipientType } from './HMSMessageRecipientType';\nimport type { HMSPeer } from './HMSPeer';\nimport type { HMSRole } from './HMSRole';\n\nexport class HMSMessageRecipient {\n public recipientType?: HMSMessageRecipientType;\n public recipientPeer?: HMSPeer;\n public recipientRoles?: HMSRole[];\n\n constructor(params: {\n recipientType: HMSMessageRecipientType;\n recipientPeer?: HMSPeer;\n recipientRoles?: HMSRole[];\n }) {\n this.recipientType = params.recipientType;\n this.recipientPeer = params.recipientPeer;\n this.recipientRoles = params.recipientRoles;\n }\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"names":["HMSMessageRecipient","constructor","params","recipientType","recipientPeer","recipientRoles"],"sources":["HMSMessageRecipient.ts"],"sourcesContent":["import type { HMSMessageRecipientType } from './HMSMessageRecipientType';\nimport type { HMSPeer } from './HMSPeer';\nimport type { HMSRole } from './HMSRole';\n\nexport class HMSMessageRecipient {\n public recipientType?: HMSMessageRecipientType;\n public recipientPeer?: HMSPeer;\n public recipientRoles?: HMSRole[];\n\n constructor(params: {\n recipientType: HMSMessageRecipientType;\n recipientPeer?: HMSPeer;\n recipientRoles?: HMSRole[];\n }) {\n this.recipientType = params.recipientType;\n this.recipientPeer = params.recipientPeer;\n this.recipientRoles = params.recipientRoles;\n }\n}\n"],"mappings":";;;AAIA,OAAO,MAAMA,mBAAmB,CAAC;EAK/BC,WAAW,CAACC,MAIX,EAAE;IAAA;IAAA;IAAA;IACD,IAAI,CAACC,aAAa,GAAGD,MAAM,CAACC,aAAa;IACzC,IAAI,CAACC,aAAa,GAAGF,MAAM,CAACE,aAAa;IACzC,IAAI,CAACC,cAAc,GAAGH,MAAM,CAACG,cAAc;EAC7C;AACF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["HMSMessageRecipientType"],"sources":["HMSMessageRecipientType.ts"],"sourcesContent":["export enum HMSMessageRecipientType {\n BROADCAST = 'BROADCAST',\n PEER = 'PEER',\n ROLES = 'ROLES',\n}\n"],"mappings":"AAAA,WAAYA,
|
|
1
|
+
{"version":3,"names":["HMSMessageRecipientType"],"sources":["HMSMessageRecipientType.ts"],"sourcesContent":["export enum HMSMessageRecipientType {\n BROADCAST = 'BROADCAST',\n PEER = 'PEER',\n ROLES = 'ROLES',\n}\n"],"mappings":"AAAA,WAAYA,uBAAuB;AAIlC,WAJWA,uBAAuB;EAAvBA,uBAAuB;EAAvBA,uBAAuB;EAAvBA,uBAAuB;AAAA,GAAvBA,uBAAuB,KAAvBA,uBAAuB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["HMSMessageType"],"sources":["HMSMessageType.ts"],"sourcesContent":["export enum HMSMessageType {\n CHAT = 'chat',\n METADATA = 'metadata',\n}\n"],"mappings":"AAAA,WAAYA,cAAc;AAGzB,WAHWA,cAAc;EAAdA,cAAc;EAAdA,cAAc;AAAA,GAAdA,cAAc,KAAdA,cAAc"}
|
|
@@ -10,7 +10,6 @@ export class HMSMicNode extends HMSAudioNode {
|
|
|
10
10
|
constructor() {
|
|
11
11
|
super('mic_node');
|
|
12
12
|
}
|
|
13
|
-
|
|
14
13
|
setVolume(volume) {
|
|
15
14
|
return HMSManager.setAudioShareVolume({
|
|
16
15
|
id: this.sdkId,
|
|
@@ -18,6 +17,5 @@ export class HMSMicNode extends HMSAudioNode {
|
|
|
18
17
|
volume
|
|
19
18
|
});
|
|
20
19
|
}
|
|
21
|
-
|
|
22
20
|
}
|
|
23
21
|
//# sourceMappingURL=HMSMicNode.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["NativeModules","HMSAudioNode","HMSManager","HMSMicNode","constructor","setVolume","volume","setAudioShareVolume","id","sdkId","audioNode","name"],"sources":["HMSMicNode.ts"],"sourcesContent":["import { NativeModules } from 'react-native';\nimport { HMSAudioNode } from './HMSAudioNode';\n\nconst {\n /**\n * @ignore\n */\n HMSManager,\n} = NativeModules;\n\nexport class HMSMicNode extends HMSAudioNode {\n constructor() {\n super('mic_node');\n }\n\n setVolume(volume: number) {\n return HMSManager.setAudioShareVolume({\n id: this.sdkId,\n audioNode: this.name,\n volume,\n });\n }\n}\n"],"mappings":"AAAA,SAASA,
|
|
1
|
+
{"version":3,"names":["NativeModules","HMSAudioNode","HMSManager","HMSMicNode","constructor","setVolume","volume","setAudioShareVolume","id","sdkId","audioNode","name"],"sources":["HMSMicNode.ts"],"sourcesContent":["import { NativeModules } from 'react-native';\nimport { HMSAudioNode } from './HMSAudioNode';\n\nconst {\n /**\n * @ignore\n */\n HMSManager,\n} = NativeModules;\n\nexport class HMSMicNode extends HMSAudioNode {\n constructor() {\n super('mic_node');\n }\n\n setVolume(volume: number) {\n return HMSManager.setAudioShareVolume({\n id: this.sdkId,\n audioNode: this.name,\n volume,\n });\n }\n}\n"],"mappings":"AAAA,SAASA,aAAa,QAAQ,cAAc;AAC5C,SAASC,YAAY,QAAQ,gBAAgB;AAE7C,MAAM;EACJ;AACF;AACA;EACEC;AACF,CAAC,GAAGF,aAAa;AAEjB,OAAO,MAAMG,UAAU,SAASF,YAAY,CAAC;EAC3CG,WAAW,GAAG;IACZ,KAAK,CAAC,UAAU,CAAC;EACnB;EAEAC,SAAS,CAACC,MAAc,EAAE;IACxB,OAAOJ,UAAU,CAACK,mBAAmB,CAAC;MACpCC,EAAE,EAAE,IAAI,CAACC,KAAK;MACdC,SAAS,EAAE,IAAI,CAACC,IAAI;MACpBL;IACF,CAAC,CAAC;EACJ;AACF"}
|
|
@@ -1,11 +1,10 @@
|
|
|
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 HMSNetworkQuality {
|
|
4
5
|
constructor(params) {
|
|
5
6
|
_defineProperty(this, "downlinkQuality", void 0);
|
|
6
|
-
|
|
7
7
|
this.downlinkQuality = params.downlinkQuality;
|
|
8
8
|
}
|
|
9
|
-
|
|
10
9
|
}
|
|
11
10
|
//# sourceMappingURL=HMSNetworkQuality.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["HMSNetworkQuality","constructor","params","downlinkQuality"],"sources":["HMSNetworkQuality.ts"],"sourcesContent":["export class HMSNetworkQuality {\n downlinkQuality: number;\n\n constructor(params: { downlinkQuality: number }) {\n this.downlinkQuality = params.downlinkQuality;\n }\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"names":["HMSNetworkQuality","constructor","params","downlinkQuality"],"sources":["HMSNetworkQuality.ts"],"sourcesContent":["export class HMSNetworkQuality {\n downlinkQuality: number;\n\n constructor(params: { downlinkQuality: number }) {\n this.downlinkQuality = params.downlinkQuality;\n }\n}\n"],"mappings":";;;AAAA,OAAO,MAAMA,iBAAiB,CAAC;EAG7BC,WAAW,CAACC,MAAmC,EAAE;IAAA;IAC/C,IAAI,CAACC,eAAe,GAAGD,MAAM,CAACC,eAAe;EAC/C;AACF"}
|
|
@@ -1,29 +1,19 @@
|
|
|
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 HMSPeer {
|
|
4
5
|
constructor(params) {
|
|
5
6
|
_defineProperty(this, "peerID", void 0);
|
|
6
|
-
|
|
7
7
|
_defineProperty(this, "name", void 0);
|
|
8
|
-
|
|
9
8
|
_defineProperty(this, "isLocal", void 0);
|
|
10
|
-
|
|
11
9
|
_defineProperty(this, "customerUserID", void 0);
|
|
12
|
-
|
|
13
10
|
_defineProperty(this, "customerDescription", void 0);
|
|
14
|
-
|
|
15
11
|
_defineProperty(this, "metadata", void 0);
|
|
16
|
-
|
|
17
12
|
_defineProperty(this, "role", void 0);
|
|
18
|
-
|
|
19
13
|
_defineProperty(this, "networkQuality", void 0);
|
|
20
|
-
|
|
21
14
|
_defineProperty(this, "audioTrack", void 0);
|
|
22
|
-
|
|
23
15
|
_defineProperty(this, "videoTrack", void 0);
|
|
24
|
-
|
|
25
16
|
_defineProperty(this, "auxiliaryTracks", void 0);
|
|
26
|
-
|
|
27
17
|
this.peerID = params.peerID;
|
|
28
18
|
this.name = params.name;
|
|
29
19
|
this.isLocal = params.isLocal;
|
|
@@ -36,6 +26,5 @@ export class HMSPeer {
|
|
|
36
26
|
this.networkQuality = params.networkQuality;
|
|
37
27
|
this.metadata = params.metadata;
|
|
38
28
|
}
|
|
39
|
-
|
|
40
29
|
}
|
|
41
30
|
//# sourceMappingURL=HMSPeer.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["HMSPeer","constructor","params","peerID","name","isLocal","customerUserID","customerDescription","audioTrack","videoTrack","auxiliaryTracks","role","networkQuality","metadata"],"sources":["HMSPeer.ts"],"sourcesContent":["import type { HMSAudioTrack } from './HMSAudioTrack';\nimport type { HMSNetworkQuality } from './HMSNetworkQuality';\nimport type { HMSRole } from './HMSRole';\nimport type { HMSTrack } from './HMSTrack';\nimport type { HMSVideoTrack } from './HMSVideoTrack';\n\nexport class HMSPeer {\n peerID: string;\n name: string;\n isLocal?: boolean;\n customerUserID?: string;\n customerDescription?: string;\n metadata?: string;\n role?: HMSRole;\n networkQuality?: HMSNetworkQuality;\n audioTrack?: HMSAudioTrack;\n videoTrack?: HMSVideoTrack;\n auxiliaryTracks?: HMSTrack[];\n\n constructor(params: {\n peerID: string;\n name: string;\n isLocal?: boolean;\n customerUserID?: string;\n customerDescription?: string;\n metadata?: string;\n role?: HMSRole;\n networkQuality?: HMSNetworkQuality;\n audioTrack?: HMSAudioTrack;\n videoTrack?: HMSVideoTrack;\n auxiliaryTracks?: HMSTrack[];\n }) {\n this.peerID = params.peerID;\n this.name = params.name;\n this.isLocal = params.isLocal;\n this.customerUserID = params.customerUserID;\n this.customerDescription = params.customerDescription;\n this.audioTrack = params.audioTrack;\n this.videoTrack = params.videoTrack;\n this.auxiliaryTracks = params.auxiliaryTracks;\n this.role = params.role;\n this.networkQuality = params.networkQuality;\n this.metadata = params.metadata;\n }\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"names":["HMSPeer","constructor","params","peerID","name","isLocal","customerUserID","customerDescription","audioTrack","videoTrack","auxiliaryTracks","role","networkQuality","metadata"],"sources":["HMSPeer.ts"],"sourcesContent":["import type { HMSAudioTrack } from './HMSAudioTrack';\nimport type { HMSNetworkQuality } from './HMSNetworkQuality';\nimport type { HMSRole } from './HMSRole';\nimport type { HMSTrack } from './HMSTrack';\nimport type { HMSVideoTrack } from './HMSVideoTrack';\n\nexport class HMSPeer {\n peerID: string;\n name: string;\n isLocal?: boolean;\n customerUserID?: string;\n customerDescription?: string;\n metadata?: string;\n role?: HMSRole;\n networkQuality?: HMSNetworkQuality;\n audioTrack?: HMSAudioTrack;\n videoTrack?: HMSVideoTrack;\n auxiliaryTracks?: HMSTrack[];\n\n constructor(params: {\n peerID: string;\n name: string;\n isLocal?: boolean;\n customerUserID?: string;\n customerDescription?: string;\n metadata?: string;\n role?: HMSRole;\n networkQuality?: HMSNetworkQuality;\n audioTrack?: HMSAudioTrack;\n videoTrack?: HMSVideoTrack;\n auxiliaryTracks?: HMSTrack[];\n }) {\n this.peerID = params.peerID;\n this.name = params.name;\n this.isLocal = params.isLocal;\n this.customerUserID = params.customerUserID;\n this.customerDescription = params.customerDescription;\n this.audioTrack = params.audioTrack;\n this.videoTrack = params.videoTrack;\n this.auxiliaryTracks = params.auxiliaryTracks;\n this.role = params.role;\n this.networkQuality = params.networkQuality;\n this.metadata = params.metadata;\n }\n}\n"],"mappings":";;;AAMA,OAAO,MAAMA,OAAO,CAAC;EAanBC,WAAW,CAACC,MAYX,EAAE;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IACD,IAAI,CAACC,MAAM,GAAGD,MAAM,CAACC,MAAM;IAC3B,IAAI,CAACC,IAAI,GAAGF,MAAM,CAACE,IAAI;IACvB,IAAI,CAACC,OAAO,GAAGH,MAAM,CAACG,OAAO;IAC7B,IAAI,CAACC,cAAc,GAAGJ,MAAM,CAACI,cAAc;IAC3C,IAAI,CAACC,mBAAmB,GAAGL,MAAM,CAACK,mBAAmB;IACrD,IAAI,CAACC,UAAU,GAAGN,MAAM,CAACM,UAAU;IACnC,IAAI,CAACC,UAAU,GAAGP,MAAM,CAACO,UAAU;IACnC,IAAI,CAACC,eAAe,GAAGR,MAAM,CAACQ,eAAe;IAC7C,IAAI,CAACC,IAAI,GAAGT,MAAM,CAACS,IAAI;IACvB,IAAI,CAACC,cAAc,GAAGV,MAAM,CAACU,cAAc;IAC3C,IAAI,CAACC,QAAQ,GAAGX,MAAM,CAACW,QAAQ;EACjC;AACF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["HMSPeerUpdate"],"sources":["HMSPeerUpdate.ts"],"sourcesContent":["export enum HMSPeerUpdate {\n PEER_JOINED = 'PEER_JOINED',\n PEER_LEFT = 'PEER_LEFT',\n METADATA_CHANGED = 'METADATA_CHANGED',\n ROLE_CHANGED = 'ROLE_CHANGED',\n NAME_CHANGED = 'NAME_CHANGED',\n NETWORK_QUALITY_UPDATED = 'NETWORK_QUALITY_UPDATED',\n}\n"],"mappings":"AAAA,WAAYA,
|
|
1
|
+
{"version":3,"names":["HMSPeerUpdate"],"sources":["HMSPeerUpdate.ts"],"sourcesContent":["export enum HMSPeerUpdate {\n PEER_JOINED = 'PEER_JOINED',\n PEER_LEFT = 'PEER_LEFT',\n METADATA_CHANGED = 'METADATA_CHANGED',\n ROLE_CHANGED = 'ROLE_CHANGED',\n NAME_CHANGED = 'NAME_CHANGED',\n NETWORK_QUALITY_UPDATED = 'NETWORK_QUALITY_UPDATED',\n}\n"],"mappings":"AAAA,WAAYA,aAAa;AAOxB,WAPWA,aAAa;EAAbA,aAAa;EAAbA,aAAa;EAAbA,aAAa;EAAbA,aAAa;EAAbA,aAAa;EAAbA,aAAa;AAAA,GAAbA,aAAa,KAAbA,aAAa"}
|
|
@@ -1,23 +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 HMSPermissions {
|
|
4
5
|
constructor(params) {
|
|
5
6
|
_defineProperty(this, "endRoom", void 0);
|
|
6
|
-
|
|
7
7
|
_defineProperty(this, "removeOthers", void 0);
|
|
8
|
-
|
|
9
8
|
_defineProperty(this, "unmute", void 0);
|
|
10
|
-
|
|
11
9
|
_defineProperty(this, "mute", void 0);
|
|
12
|
-
|
|
13
10
|
_defineProperty(this, "changeRole", void 0);
|
|
14
|
-
|
|
15
11
|
_defineProperty(this, "browserRecording", void 0);
|
|
16
|
-
|
|
17
12
|
_defineProperty(this, "hlsStreaming", void 0);
|
|
18
|
-
|
|
19
13
|
_defineProperty(this, "rtmpStreaming", void 0);
|
|
20
|
-
|
|
21
14
|
if (params) {
|
|
22
15
|
this.endRoom = params.endRoom;
|
|
23
16
|
this.removeOthers = params.removeOthers;
|
|
@@ -29,6 +22,5 @@ export class HMSPermissions {
|
|
|
29
22
|
this.rtmpStreaming = params.rtmpStreaming;
|
|
30
23
|
}
|
|
31
24
|
}
|
|
32
|
-
|
|
33
25
|
}
|
|
34
26
|
//# sourceMappingURL=HMSPermissions.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["HMSPermissions","constructor","params","endRoom","removeOthers","unmute","mute","changeRole","browserRecording","hlsStreaming","rtmpStreaming"],"sources":["HMSPermissions.ts"],"sourcesContent":["export class HMSPermissions {\n endRoom?: boolean;\n removeOthers?: boolean;\n unmute?: boolean;\n mute?: boolean;\n changeRole?: boolean;\n browserRecording?: boolean;\n hlsStreaming?: boolean;\n rtmpStreaming?: boolean;\n\n constructor(params?: {\n endRoom?: boolean;\n removeOthers?: boolean;\n unmute?: boolean;\n mute?: boolean;\n changeRole?: boolean;\n browserRecording?: boolean;\n hlsStreaming?: boolean;\n rtmpStreaming?: boolean;\n }) {\n if (params) {\n this.endRoom = params.endRoom;\n this.removeOthers = params.removeOthers;\n this.unmute = params.unmute;\n this.mute = params.mute;\n this.changeRole = params.changeRole;\n this.browserRecording = params.browserRecording;\n this.hlsStreaming = params.hlsStreaming;\n this.rtmpStreaming = params.rtmpStreaming;\n }\n }\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"names":["HMSPermissions","constructor","params","endRoom","removeOthers","unmute","mute","changeRole","browserRecording","hlsStreaming","rtmpStreaming"],"sources":["HMSPermissions.ts"],"sourcesContent":["export class HMSPermissions {\n endRoom?: boolean;\n removeOthers?: boolean;\n unmute?: boolean;\n mute?: boolean;\n changeRole?: boolean;\n browserRecording?: boolean;\n hlsStreaming?: boolean;\n rtmpStreaming?: boolean;\n\n constructor(params?: {\n endRoom?: boolean;\n removeOthers?: boolean;\n unmute?: boolean;\n mute?: boolean;\n changeRole?: boolean;\n browserRecording?: boolean;\n hlsStreaming?: boolean;\n rtmpStreaming?: boolean;\n }) {\n if (params) {\n this.endRoom = params.endRoom;\n this.removeOthers = params.removeOthers;\n this.unmute = params.unmute;\n this.mute = params.mute;\n this.changeRole = params.changeRole;\n this.browserRecording = params.browserRecording;\n this.hlsStreaming = params.hlsStreaming;\n this.rtmpStreaming = params.rtmpStreaming;\n }\n }\n}\n"],"mappings":";;;AAAA,OAAO,MAAMA,cAAc,CAAC;EAU1BC,WAAW,CAACC,MASX,EAAE;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IACD,IAAIA,MAAM,EAAE;MACV,IAAI,CAACC,OAAO,GAAGD,MAAM,CAACC,OAAO;MAC7B,IAAI,CAACC,YAAY,GAAGF,MAAM,CAACE,YAAY;MACvC,IAAI,CAACC,MAAM,GAAGH,MAAM,CAACG,MAAM;MAC3B,IAAI,CAACC,IAAI,GAAGJ,MAAM,CAACI,IAAI;MACvB,IAAI,CAACC,UAAU,GAAGL,MAAM,CAACK,UAAU;MACnC,IAAI,CAACC,gBAAgB,GAAGN,MAAM,CAACM,gBAAgB;MAC/C,IAAI,CAACC,YAAY,GAAGP,MAAM,CAACO,YAAY;MACvC,IAAI,CAACC,aAAa,GAAGR,MAAM,CAACQ,aAAa;IAC3C;EACF;AACF"}
|
|
@@ -1,21 +1,15 @@
|
|
|
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 HMSPublishSettings {
|
|
4
5
|
constructor(params) {
|
|
5
6
|
_defineProperty(this, "audio", void 0);
|
|
6
|
-
|
|
7
7
|
_defineProperty(this, "video", void 0);
|
|
8
|
-
|
|
9
8
|
_defineProperty(this, "screen", void 0);
|
|
10
|
-
|
|
11
9
|
_defineProperty(this, "audioSimulcast", void 0);
|
|
12
|
-
|
|
13
10
|
_defineProperty(this, "videoSimulcast", void 0);
|
|
14
|
-
|
|
15
11
|
_defineProperty(this, "screenSimulcast", void 0);
|
|
16
|
-
|
|
17
12
|
_defineProperty(this, "allowed", void 0);
|
|
18
|
-
|
|
19
13
|
this.audio = params.audio;
|
|
20
14
|
this.video = params.video;
|
|
21
15
|
this.screen = params.screen;
|
|
@@ -24,6 +18,5 @@ export class HMSPublishSettings {
|
|
|
24
18
|
this.screenSimulcast = params.screenSimulcast;
|
|
25
19
|
this.allowed = params.allowed;
|
|
26
20
|
}
|
|
27
|
-
|
|
28
21
|
}
|
|
29
22
|
//# sourceMappingURL=HMSPublishSettings.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["HMSPublishSettings","constructor","params","audio","video","screen","audioSimulcast","videoSimulcast","screenSimulcast","allowed"],"sources":["HMSPublishSettings.ts"],"sourcesContent":["import type { HMSAudioSettings } from './HMSAudioSettings';\nimport type { HMSSimulcastSettings } from './HMSSimulcastSettings';\nimport type { HMSVideoSettings } from './HMSVideoSettings';\n\nexport class HMSPublishSettings {\n audio: HMSAudioSettings;\n video: HMSVideoSettings;\n screen: HMSVideoSettings;\n audioSimulcast?: HMSSimulcastSettings;\n videoSimulcast?: HMSSimulcastSettings;\n screenSimulcast?: HMSSimulcastSettings;\n allowed?: [string];\n\n constructor(params: {\n audio: HMSAudioSettings;\n video: HMSVideoSettings;\n screen: HMSVideoSettings;\n audioSimulcast?: HMSSimulcastSettings;\n videoSimulcast?: HMSSimulcastSettings;\n screenSimulcast?: HMSSimulcastSettings;\n allowed?: [string];\n }) {\n this.audio = params.audio;\n this.video = params.video;\n this.screen = params.screen;\n this.audioSimulcast = params.audioSimulcast;\n this.videoSimulcast = params.videoSimulcast;\n this.screenSimulcast = params.screenSimulcast;\n this.allowed = params.allowed;\n }\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"names":["HMSPublishSettings","constructor","params","audio","video","screen","audioSimulcast","videoSimulcast","screenSimulcast","allowed"],"sources":["HMSPublishSettings.ts"],"sourcesContent":["import type { HMSAudioSettings } from './HMSAudioSettings';\nimport type { HMSSimulcastSettings } from './HMSSimulcastSettings';\nimport type { HMSVideoSettings } from './HMSVideoSettings';\n\nexport class HMSPublishSettings {\n audio: HMSAudioSettings;\n video: HMSVideoSettings;\n screen: HMSVideoSettings;\n audioSimulcast?: HMSSimulcastSettings;\n videoSimulcast?: HMSSimulcastSettings;\n screenSimulcast?: HMSSimulcastSettings;\n allowed?: [string];\n\n constructor(params: {\n audio: HMSAudioSettings;\n video: HMSVideoSettings;\n screen: HMSVideoSettings;\n audioSimulcast?: HMSSimulcastSettings;\n videoSimulcast?: HMSSimulcastSettings;\n screenSimulcast?: HMSSimulcastSettings;\n allowed?: [string];\n }) {\n this.audio = params.audio;\n this.video = params.video;\n this.screen = params.screen;\n this.audioSimulcast = params.audioSimulcast;\n this.videoSimulcast = params.videoSimulcast;\n this.screenSimulcast = params.screenSimulcast;\n this.allowed = params.allowed;\n }\n}\n"],"mappings":";;;AAIA,OAAO,MAAMA,kBAAkB,CAAC;EAS9BC,WAAW,CAACC,MAQX,EAAE;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IACD,IAAI,CAACC,KAAK,GAAGD,MAAM,CAACC,KAAK;IACzB,IAAI,CAACC,KAAK,GAAGF,MAAM,CAACE,KAAK;IACzB,IAAI,CAACC,MAAM,GAAGH,MAAM,CAACG,MAAM;IAC3B,IAAI,CAACC,cAAc,GAAGJ,MAAM,CAACI,cAAc;IAC3C,IAAI,CAACC,cAAc,GAAGL,MAAM,CAACK,cAAc;IAC3C,IAAI,CAACC,eAAe,GAAGN,MAAM,CAACM,eAAe;IAC7C,IAAI,CAACC,OAAO,GAAGP,MAAM,CAACO,OAAO;EAC/B;AACF"}
|
|
@@ -1,21 +1,15 @@
|
|
|
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 HMSRTCStats {
|
|
4
5
|
constructor(params) {
|
|
5
6
|
_defineProperty(this, "bitrateReceived", void 0);
|
|
6
|
-
|
|
7
7
|
_defineProperty(this, "bitrateSent", void 0);
|
|
8
|
-
|
|
9
8
|
_defineProperty(this, "bytesReceived", void 0);
|
|
10
|
-
|
|
11
9
|
_defineProperty(this, "bytesSent", void 0);
|
|
12
|
-
|
|
13
10
|
_defineProperty(this, "packetsLost", void 0);
|
|
14
|
-
|
|
15
11
|
_defineProperty(this, "packetsReceived", void 0);
|
|
16
|
-
|
|
17
12
|
_defineProperty(this, "roundTripTime", void 0);
|
|
18
|
-
|
|
19
13
|
this.bitrateReceived = params.bitrateReceived;
|
|
20
14
|
this.bitrateSent = params.bitrateSent;
|
|
21
15
|
this.bytesReceived = params.bytesReceived;
|
|
@@ -24,6 +18,5 @@ export class HMSRTCStats {
|
|
|
24
18
|
this.packetsReceived = params.packetsReceived;
|
|
25
19
|
this.roundTripTime = params.roundTripTime;
|
|
26
20
|
}
|
|
27
|
-
|
|
28
21
|
}
|
|
29
22
|
//# sourceMappingURL=HMSRTCStats.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["HMSRTCStats","constructor","params","bitrateReceived","bitrateSent","bytesReceived","bytesSent","packetsLost","packetsReceived","roundTripTime"],"sources":["HMSRTCStats.ts"],"sourcesContent":["export class HMSRTCStats {\n bitrateReceived?: number;\n bitrateSent?: number;\n bytesReceived?: number;\n bytesSent?: number;\n packetsLost?: number;\n packetsReceived?: number;\n roundTripTime?: number;\n\n constructor(params: {\n bitrateReceived?: number;\n bitrateSent?: number;\n bytesReceived?: number;\n bytesSent?: number;\n packetsLost?: number;\n packetsReceived?: number;\n roundTripTime?: number;\n }) {\n this.bitrateReceived = params.bitrateReceived;\n this.bitrateSent = params.bitrateSent;\n this.bytesReceived = params.bytesReceived;\n this.bytesSent = params.bytesSent;\n this.packetsLost = params.packetsLost;\n this.packetsReceived = params.packetsReceived;\n this.roundTripTime = params.roundTripTime;\n }\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"names":["HMSRTCStats","constructor","params","bitrateReceived","bitrateSent","bytesReceived","bytesSent","packetsLost","packetsReceived","roundTripTime"],"sources":["HMSRTCStats.ts"],"sourcesContent":["export class HMSRTCStats {\n bitrateReceived?: number;\n bitrateSent?: number;\n bytesReceived?: number;\n bytesSent?: number;\n packetsLost?: number;\n packetsReceived?: number;\n roundTripTime?: number;\n\n constructor(params: {\n bitrateReceived?: number;\n bitrateSent?: number;\n bytesReceived?: number;\n bytesSent?: number;\n packetsLost?: number;\n packetsReceived?: number;\n roundTripTime?: number;\n }) {\n this.bitrateReceived = params.bitrateReceived;\n this.bitrateSent = params.bitrateSent;\n this.bytesReceived = params.bytesReceived;\n this.bytesSent = params.bytesSent;\n this.packetsLost = params.packetsLost;\n this.packetsReceived = params.packetsReceived;\n this.roundTripTime = params.roundTripTime;\n }\n}\n"],"mappings":";;;AAAA,OAAO,MAAMA,WAAW,CAAC;EASvBC,WAAW,CAACC,MAQX,EAAE;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IACD,IAAI,CAACC,eAAe,GAAGD,MAAM,CAACC,eAAe;IAC7C,IAAI,CAACC,WAAW,GAAGF,MAAM,CAACE,WAAW;IACrC,IAAI,CAACC,aAAa,GAAGH,MAAM,CAACG,aAAa;IACzC,IAAI,CAACC,SAAS,GAAGJ,MAAM,CAACI,SAAS;IACjC,IAAI,CAACC,WAAW,GAAGL,MAAM,CAACK,WAAW;IACrC,IAAI,CAACC,eAAe,GAAGN,MAAM,CAACM,eAAe;IAC7C,IAAI,CAACC,aAAa,GAAGP,MAAM,CAACO,aAAa;EAC3C;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 HMSRTCStatsReport {
|
|
4
5
|
constructor(params) {
|
|
5
6
|
_defineProperty(this, "video", void 0);
|
|
6
|
-
|
|
7
7
|
_defineProperty(this, "audio", void 0);
|
|
8
|
-
|
|
9
8
|
_defineProperty(this, "combined", void 0);
|
|
10
|
-
|
|
11
9
|
this.audio = params.audio;
|
|
12
10
|
this.video = params.video;
|
|
13
11
|
this.combined = params.combined;
|
|
14
12
|
}
|
|
15
|
-
|
|
16
13
|
}
|
|
17
14
|
//# sourceMappingURL=HMSRTCStatsReport.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["HMSRTCStatsReport","constructor","params","audio","video","combined"],"sources":["HMSRTCStatsReport.ts"],"sourcesContent":["import type { HMSRTCStats } from './HMSRTCStats';\n\nexport class HMSRTCStatsReport {\n video?: HMSRTCStats;\n audio?: HMSRTCStats;\n combined?: HMSRTCStats;\n\n constructor(params: {\n video?: HMSRTCStats;\n audio?: HMSRTCStats;\n combined?: HMSRTCStats;\n }) {\n this.audio = params.audio;\n this.video = params.video;\n this.combined = params.combined;\n }\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"names":["HMSRTCStatsReport","constructor","params","audio","video","combined"],"sources":["HMSRTCStatsReport.ts"],"sourcesContent":["import type { HMSRTCStats } from './HMSRTCStats';\n\nexport class HMSRTCStatsReport {\n video?: HMSRTCStats;\n audio?: HMSRTCStats;\n combined?: HMSRTCStats;\n\n constructor(params: {\n video?: HMSRTCStats;\n audio?: HMSRTCStats;\n combined?: HMSRTCStats;\n }) {\n this.audio = params.audio;\n this.video = params.video;\n this.combined = params.combined;\n }\n}\n"],"mappings":";;;AAEA,OAAO,MAAMA,iBAAiB,CAAC;EAK7BC,WAAW,CAACC,MAIX,EAAE;IAAA;IAAA;IAAA;IACD,IAAI,CAACC,KAAK,GAAGD,MAAM,CAACC,KAAK;IACzB,IAAI,CAACC,KAAK,GAAGF,MAAM,CAACE,KAAK;IACzB,IAAI,CAACC,QAAQ,GAAGH,MAAM,CAACG,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 HMSRTMPConfig {
|
|
4
5
|
constructor(params) {
|
|
5
6
|
_defineProperty(this, "meetingURL", void 0);
|
|
6
|
-
|
|
7
7
|
_defineProperty(this, "rtmpURLs", void 0);
|
|
8
|
-
|
|
9
8
|
_defineProperty(this, "record", void 0);
|
|
10
|
-
|
|
11
9
|
_defineProperty(this, "resolution", void 0);
|
|
12
|
-
|
|
13
10
|
this.meetingURL = params.meetingURL;
|
|
14
11
|
this.rtmpURLs = params.rtmpURLs;
|
|
15
12
|
this.record = params.record;
|
|
16
13
|
this.resolution = params.resolution;
|
|
17
14
|
}
|
|
18
|
-
|
|
19
15
|
}
|
|
20
16
|
//# sourceMappingURL=HMSRTMPConfig.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["HMSRTMPConfig","constructor","params","meetingURL","rtmpURLs","record","resolution"],"sources":["HMSRTMPConfig.ts"],"sourcesContent":["import type { HMSRtmpVideoResolution } from './HMSRtmpVideoResolution';\n\nexport class HMSRTMPConfig {\n meetingURL: string;\n rtmpURLs?: Array<string>;\n record: boolean;\n resolution?: HMSRtmpVideoResolution;\n\n constructor(params: {\n meetingURL: string;\n rtmpURLs?: Array<string>;\n record: boolean;\n resolution?: HMSRtmpVideoResolution;\n }) {\n this.meetingURL = params.meetingURL;\n this.rtmpURLs = params.rtmpURLs;\n this.record = params.record;\n this.resolution = params.resolution;\n }\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"names":["HMSRTMPConfig","constructor","params","meetingURL","rtmpURLs","record","resolution"],"sources":["HMSRTMPConfig.ts"],"sourcesContent":["import type { HMSRtmpVideoResolution } from './HMSRtmpVideoResolution';\n\nexport class HMSRTMPConfig {\n meetingURL: string;\n rtmpURLs?: Array<string>;\n record: boolean;\n resolution?: HMSRtmpVideoResolution;\n\n constructor(params: {\n meetingURL: string;\n rtmpURLs?: Array<string>;\n record: boolean;\n resolution?: HMSRtmpVideoResolution;\n }) {\n this.meetingURL = params.meetingURL;\n this.rtmpURLs = params.rtmpURLs;\n this.record = params.record;\n this.resolution = params.resolution;\n }\n}\n"],"mappings":";;;AAEA,OAAO,MAAMA,aAAa,CAAC;EAMzBC,WAAW,CAACC,MAKX,EAAE;IAAA;IAAA;IAAA;IAAA;IACD,IAAI,CAACC,UAAU,GAAGD,MAAM,CAACC,UAAU;IACnC,IAAI,CAACC,QAAQ,GAAGF,MAAM,CAACE,QAAQ;IAC/B,IAAI,CAACC,MAAM,GAAGH,MAAM,CAACG,MAAM;IAC3B,IAAI,CAACC,UAAU,GAAGJ,MAAM,CAACI,UAAU;EACrC;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 HMSRemoteAudioStats {
|
|
4
5
|
constructor(params) {
|
|
5
6
|
_defineProperty(this, "bitrate", void 0);
|
|
6
|
-
|
|
7
7
|
_defineProperty(this, "packetsReceived", void 0);
|
|
8
|
-
|
|
9
8
|
_defineProperty(this, "packetsLost", void 0);
|
|
10
|
-
|
|
11
9
|
_defineProperty(this, "bytesReceived", void 0);
|
|
12
|
-
|
|
13
10
|
_defineProperty(this, "jitter", void 0);
|
|
14
|
-
|
|
15
11
|
this.bitrate = params.bitrate;
|
|
16
12
|
this.packetsReceived = params.packetsReceived;
|
|
17
13
|
this.jitter = params.jitter;
|
|
18
14
|
this.packetsLost = params.packetsLost;
|
|
19
15
|
this.bytesReceived = params.bytesReceived;
|
|
20
16
|
}
|
|
21
|
-
|
|
22
17
|
}
|
|
23
18
|
//# sourceMappingURL=HMSRemoteAudioStats.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["HMSRemoteAudioStats","constructor","params","bitrate","packetsReceived","jitter","packetsLost","bytesReceived"],"sources":["HMSRemoteAudioStats.ts"],"sourcesContent":["export class HMSRemoteAudioStats {\n bitrate?: number;\n packetsReceived?: number;\n packetsLost?: number;\n bytesReceived?: number;\n jitter?: number;\n\n constructor(params: {\n bitrate?: number;\n packetsReceived?: number;\n packetsLost?: number;\n bytesReceived?: number;\n jitter?: number;\n }) {\n this.bitrate = params.bitrate;\n this.packetsReceived = params.packetsReceived;\n this.jitter = params.jitter;\n this.packetsLost = params.packetsLost;\n this.bytesReceived = params.bytesReceived;\n }\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"names":["HMSRemoteAudioStats","constructor","params","bitrate","packetsReceived","jitter","packetsLost","bytesReceived"],"sources":["HMSRemoteAudioStats.ts"],"sourcesContent":["export class HMSRemoteAudioStats {\n bitrate?: number;\n packetsReceived?: number;\n packetsLost?: number;\n bytesReceived?: number;\n jitter?: number;\n\n constructor(params: {\n bitrate?: number;\n packetsReceived?: number;\n packetsLost?: number;\n bytesReceived?: number;\n jitter?: number;\n }) {\n this.bitrate = params.bitrate;\n this.packetsReceived = params.packetsReceived;\n this.jitter = params.jitter;\n this.packetsLost = params.packetsLost;\n this.bytesReceived = params.bytesReceived;\n }\n}\n"],"mappings":";;;AAAA,OAAO,MAAMA,mBAAmB,CAAC;EAO/BC,WAAW,CAACC,MAMX,EAAE;IAAA;IAAA;IAAA;IAAA;IAAA;IACD,IAAI,CAACC,OAAO,GAAGD,MAAM,CAACC,OAAO;IAC7B,IAAI,CAACC,eAAe,GAAGF,MAAM,CAACE,eAAe;IAC7C,IAAI,CAACC,MAAM,GAAGH,MAAM,CAACG,MAAM;IAC3B,IAAI,CAACC,WAAW,GAAGJ,MAAM,CAACI,WAAW;IACrC,IAAI,CAACC,aAAa,GAAGL,MAAM,CAACK,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 } from 'react-native';
|
|
4
5
|
import { getLogger } from './HMSLogger';
|
|
5
6
|
import { HMSAudioTrack } from './HMSAudioTrack';
|
|
@@ -31,10 +32,8 @@ export class HMSRemoteAudioTrack extends HMSAudioTrack {
|
|
|
31
32
|
playbackAllowed
|
|
32
33
|
});
|
|
33
34
|
}
|
|
34
|
-
|
|
35
35
|
constructor(params) {
|
|
36
36
|
super(params);
|
|
37
|
-
|
|
38
37
|
_defineProperty(this, "isPlaybackAllowed", async () => {
|
|
39
38
|
try {
|
|
40
39
|
const logger = getLogger();
|
|
@@ -54,6 +53,5 @@ export class HMSRemoteAudioTrack extends HMSAudioTrack {
|
|
|
54
53
|
}
|
|
55
54
|
});
|
|
56
55
|
}
|
|
57
|
-
|
|
58
56
|
}
|
|
59
57
|
//# sourceMappingURL=HMSRemoteAudioTrack.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["NativeModules","getLogger","HMSAudioTrack","HMSManager","HMSRemoteAudioTrack","setPlaybackAllowed","playbackAllowed","logger","verbose","trackId","id","source","type","constructor","params","val","isPlaybackAllowed","e"],"sources":["HMSRemoteAudioTrack.ts"],"sourcesContent":["import { NativeModules } from 'react-native';\nimport { getLogger } from './HMSLogger';\nimport type { HMSTrackType } from './HMSTrackType';\nimport { HMSAudioTrack } from './HMSAudioTrack';\n\nconst {\n /**\n * @ignore\n */\n HMSManager,\n} = NativeModules;\n\nexport class HMSRemoteAudioTrack extends HMSAudioTrack {\n /**\n * Switches Audio of remote user on/off depending upon the value of playbackAllowed\n *\n * @param {boolean} playbackAllowed\n * @memberof HMSRemoteAudioTrack\n */\n setPlaybackAllowed(playbackAllowed: boolean) {\n const logger = getLogger();\n logger?.verbose('#Function setPlaybackAllowed', {\n trackId: this.trackId,\n id: this.id,\n source: this.source,\n type: this.type,\n playbackAllowed,\n });\n HMSManager.setPlaybackAllowed({\n id: this.id,\n trackId: this.trackId,\n playbackAllowed,\n });\n }\n\n isPlaybackAllowed = async () => {\n try {\n const logger = getLogger();\n logger?.verbose('#Function isPlaybackAllowed', {\n trackId: this.trackId,\n id: this.id,\n source: this.source,\n type: this.type,\n });\n const val = await HMSManager.isPlaybackAllowed({\n id: this.id,\n trackId: this.trackId,\n });\n return val;\n } catch (e) {\n return true;\n }\n };\n\n constructor(params: {\n trackId: string;\n source?: number | string;\n isMute?: boolean;\n trackDescription?: string;\n playbackAllowed?: boolean;\n id: string;\n type?: HMSTrackType;\n }) {\n super(params);\n }\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"names":["NativeModules","getLogger","HMSAudioTrack","HMSManager","HMSRemoteAudioTrack","setPlaybackAllowed","playbackAllowed","logger","verbose","trackId","id","source","type","constructor","params","val","isPlaybackAllowed","e"],"sources":["HMSRemoteAudioTrack.ts"],"sourcesContent":["import { NativeModules } from 'react-native';\nimport { getLogger } from './HMSLogger';\nimport type { HMSTrackType } from './HMSTrackType';\nimport { HMSAudioTrack } from './HMSAudioTrack';\n\nconst {\n /**\n * @ignore\n */\n HMSManager,\n} = NativeModules;\n\nexport class HMSRemoteAudioTrack extends HMSAudioTrack {\n /**\n * Switches Audio of remote user on/off depending upon the value of playbackAllowed\n *\n * @param {boolean} playbackAllowed\n * @memberof HMSRemoteAudioTrack\n */\n setPlaybackAllowed(playbackAllowed: boolean) {\n const logger = getLogger();\n logger?.verbose('#Function setPlaybackAllowed', {\n trackId: this.trackId,\n id: this.id,\n source: this.source,\n type: this.type,\n playbackAllowed,\n });\n HMSManager.setPlaybackAllowed({\n id: this.id,\n trackId: this.trackId,\n playbackAllowed,\n });\n }\n\n isPlaybackAllowed = async () => {\n try {\n const logger = getLogger();\n logger?.verbose('#Function isPlaybackAllowed', {\n trackId: this.trackId,\n id: this.id,\n source: this.source,\n type: this.type,\n });\n const val = await HMSManager.isPlaybackAllowed({\n id: this.id,\n trackId: this.trackId,\n });\n return val;\n } catch (e) {\n return true;\n }\n };\n\n constructor(params: {\n trackId: string;\n source?: number | string;\n isMute?: boolean;\n trackDescription?: string;\n playbackAllowed?: boolean;\n id: string;\n type?: HMSTrackType;\n }) {\n super(params);\n }\n}\n"],"mappings":";;;AAAA,SAASA,aAAa,QAAQ,cAAc;AAC5C,SAASC,SAAS,QAAQ,aAAa;AAEvC,SAASC,aAAa,QAAQ,iBAAiB;AAE/C,MAAM;EACJ;AACF;AACA;EACEC;AACF,CAAC,GAAGH,aAAa;AAEjB,OAAO,MAAMI,mBAAmB,SAASF,aAAa,CAAC;EACrD;AACF;AACA;AACA;AACA;AACA;EACEG,kBAAkB,CAACC,eAAwB,EAAE;IAC3C,MAAMC,MAAM,GAAGN,SAAS,EAAE;IAC1BM,MAAM,aAANA,MAAM,uBAANA,MAAM,CAAEC,OAAO,CAAC,8BAA8B,EAAE;MAC9CC,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,CAACE,kBAAkB,CAAC;MAC5BK,EAAE,EAAE,IAAI,CAACA,EAAE;MACXD,OAAO,EAAE,IAAI,CAACA,OAAO;MACrBH;IACF,CAAC,CAAC;EACJ;EAqBAO,WAAW,CAACC,MAQX,EAAE;IACD,KAAK,CAACA,MAAM,CAAC;IAAC,2CA5BI,YAAY;MAC9B,IAAI;QACF,MAAMP,MAAM,GAAGN,SAAS,EAAE;QAC1BM,MAAM,aAANA,MAAM,uBAANA,MAAM,CAAEC,OAAO,CAAC,6BAA6B,EAAE;UAC7CC,OAAO,EAAE,IAAI,CAACA,OAAO;UACrBC,EAAE,EAAE,IAAI,CAACA,EAAE;UACXC,MAAM,EAAE,IAAI,CAACA,MAAM;UACnBC,IAAI,EAAE,IAAI,CAACA;QACb,CAAC,CAAC;QACF,MAAMG,GAAG,GAAG,MAAMZ,UAAU,CAACa,iBAAiB,CAAC;UAC7CN,EAAE,EAAE,IAAI,CAACA,EAAE;UACXD,OAAO,EAAE,IAAI,CAACA;QAChB,CAAC,CAAC;QACF,OAAOM,GAAG;MACZ,CAAC,CAAC,OAAOE,CAAC,EAAE;QACV,OAAO,IAAI;MACb;IACF,CAAC;EAYD;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 { HMSRemoteAudioTrack } from './HMSRemoteAudioTrack';
|
|
5
6
|
import { HMSRemoteVideoTrack } from './HMSRemoteVideoTrack';
|
|
6
7
|
export class HMSRemotePeer extends HMSPeer {
|
|
7
8
|
constructor(params) {
|
|
8
9
|
super(params);
|
|
9
|
-
|
|
10
10
|
_defineProperty(this, "remoteAudio", void 0);
|
|
11
|
-
|
|
12
11
|
_defineProperty(this, "remoteVideo", void 0);
|
|
13
|
-
|
|
14
12
|
_defineProperty(this, "remoteAudioTrack", () => {
|
|
15
13
|
return this.remoteAudio;
|
|
16
14
|
});
|
|
17
|
-
|
|
18
15
|
_defineProperty(this, "remoteVideoTrack", () => {
|
|
19
16
|
return this.remoteVideo;
|
|
20
17
|
});
|
|
21
|
-
|
|
22
18
|
this.isLocal = false;
|
|
23
|
-
|
|
24
19
|
if (params.remoteAudioTrackData) {
|
|
25
20
|
this.remoteAudio = new HMSRemoteAudioTrack(params.remoteAudioTrackData);
|
|
26
21
|
}
|
|
27
|
-
|
|
28
22
|
if (params.remoteVideoTrackData) {
|
|
29
23
|
this.remoteVideo = new HMSRemoteVideoTrack(params.remoteVideoTrackData);
|
|
30
24
|
}
|
|
31
25
|
}
|
|
32
|
-
|
|
33
26
|
}
|
|
34
27
|
//# sourceMappingURL=HMSRemotePeer.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["HMSPeer","HMSRemoteAudioTrack","HMSRemoteVideoTrack","HMSRemotePeer","constructor","params","remoteAudio","remoteVideo","isLocal","remoteAudioTrackData","remoteVideoTrackData"],"sources":["HMSRemotePeer.ts"],"sourcesContent":["import type { HMSAudioTrack } from './HMSAudioTrack';\nimport type { HMSNetworkQuality } from './HMSNetworkQuality';\nimport { HMSPeer } from './HMSPeer';\nimport { HMSRemoteAudioTrack } from './HMSRemoteAudioTrack';\nimport { HMSRemoteVideoTrack } from './HMSRemoteVideoTrack';\nimport type { HMSRole } from './HMSRole';\nimport type { HMSTrack } from './HMSTrack';\nimport type { HMSVideoTrack } from './HMSVideoTrack';\n\nexport class HMSRemotePeer extends HMSPeer {\n private remoteAudio?: HMSRemoteAudioTrack;\n private remoteVideo?: HMSRemoteVideoTrack;\n\n remoteAudioTrack = () => {\n return this.remoteAudio;\n };\n\n remoteVideoTrack = () => {\n return this.remoteVideo;\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 role?: HMSRole;\n networkQuality?: HMSNetworkQuality;\n auxiliaryTracks?: HMSTrack[];\n remoteAudioTrackData?: {\n trackId: string;\n source?: number | string;\n isMute?: boolean;\n trackDescription?: string;\n playbackAllowed?: boolean;\n id: string;\n };\n remoteVideoTrackData?: {\n trackId: string;\n source?: number | string;\n trackDescription?: string;\n isMute?: boolean;\n layer?: any;\n playbackAllowed?: boolean;\n id: string;\n };\n }) {\n super(params);\n this.isLocal = false;\n\n if (params.remoteAudioTrackData) {\n this.remoteAudio = new HMSRemoteAudioTrack(params.remoteAudioTrackData);\n }\n\n if (params.remoteVideoTrackData) {\n this.remoteVideo = new HMSRemoteVideoTrack(params.remoteVideoTrackData);\n }\n }\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"names":["HMSPeer","HMSRemoteAudioTrack","HMSRemoteVideoTrack","HMSRemotePeer","constructor","params","remoteAudio","remoteVideo","isLocal","remoteAudioTrackData","remoteVideoTrackData"],"sources":["HMSRemotePeer.ts"],"sourcesContent":["import type { HMSAudioTrack } from './HMSAudioTrack';\nimport type { HMSNetworkQuality } from './HMSNetworkQuality';\nimport { HMSPeer } from './HMSPeer';\nimport { HMSRemoteAudioTrack } from './HMSRemoteAudioTrack';\nimport { HMSRemoteVideoTrack } from './HMSRemoteVideoTrack';\nimport type { HMSRole } from './HMSRole';\nimport type { HMSTrack } from './HMSTrack';\nimport type { HMSVideoTrack } from './HMSVideoTrack';\n\nexport class HMSRemotePeer extends HMSPeer {\n private remoteAudio?: HMSRemoteAudioTrack;\n private remoteVideo?: HMSRemoteVideoTrack;\n\n remoteAudioTrack = () => {\n return this.remoteAudio;\n };\n\n remoteVideoTrack = () => {\n return this.remoteVideo;\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 role?: HMSRole;\n networkQuality?: HMSNetworkQuality;\n auxiliaryTracks?: HMSTrack[];\n remoteAudioTrackData?: {\n trackId: string;\n source?: number | string;\n isMute?: boolean;\n trackDescription?: string;\n playbackAllowed?: boolean;\n id: string;\n };\n remoteVideoTrackData?: {\n trackId: string;\n source?: number | string;\n trackDescription?: string;\n isMute?: boolean;\n layer?: any;\n playbackAllowed?: boolean;\n id: string;\n };\n }) {\n super(params);\n this.isLocal = false;\n\n if (params.remoteAudioTrackData) {\n this.remoteAudio = new HMSRemoteAudioTrack(params.remoteAudioTrackData);\n }\n\n if (params.remoteVideoTrackData) {\n this.remoteVideo = new HMSRemoteVideoTrack(params.remoteVideoTrackData);\n }\n }\n}\n"],"mappings":";;;AAEA,SAASA,OAAO,QAAQ,WAAW;AACnC,SAASC,mBAAmB,QAAQ,uBAAuB;AAC3D,SAASC,mBAAmB,QAAQ,uBAAuB;AAK3D,OAAO,MAAMC,aAAa,SAASH,OAAO,CAAC;EAYzCI,WAAW,CAACC,MA6BX,EAAE;IACD,KAAK,CAACA,MAAM,CAAC;IAAC;IAAA;IAAA,0CAtCG,MAAM;MACvB,OAAO,IAAI,CAACC,WAAW;IACzB,CAAC;IAAA,0CAEkB,MAAM;MACvB,OAAO,IAAI,CAACC,WAAW;IACzB,CAAC;IAiCC,IAAI,CAACC,OAAO,GAAG,KAAK;IAEpB,IAAIH,MAAM,CAACI,oBAAoB,EAAE;MAC/B,IAAI,CAACH,WAAW,GAAG,IAAIL,mBAAmB,CAACI,MAAM,CAACI,oBAAoB,CAAC;IACzE;IAEA,IAAIJ,MAAM,CAACK,oBAAoB,EAAE;MAC/B,IAAI,CAACH,WAAW,GAAG,IAAIL,mBAAmB,CAACG,MAAM,CAACK,oBAAoB,CAAC;IACzE;EACF;AACF"}
|
|
@@ -1,21 +1,15 @@
|
|
|
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 HMSRemoteVideoStats {
|
|
4
5
|
constructor(params) {
|
|
5
6
|
_defineProperty(this, "bitrate", void 0);
|
|
6
|
-
|
|
7
7
|
_defineProperty(this, "packetsReceived", void 0);
|
|
8
|
-
|
|
9
8
|
_defineProperty(this, "packetsLost", void 0);
|
|
10
|
-
|
|
11
9
|
_defineProperty(this, "bytesReceived", void 0);
|
|
12
|
-
|
|
13
10
|
_defineProperty(this, "jitter", void 0);
|
|
14
|
-
|
|
15
11
|
_defineProperty(this, "resolution", void 0);
|
|
16
|
-
|
|
17
12
|
_defineProperty(this, "frameRate", void 0);
|
|
18
|
-
|
|
19
13
|
this.bitrate = params.bitrate;
|
|
20
14
|
this.packetsReceived = params.packetsReceived;
|
|
21
15
|
this.packetsLost = params.packetsLost;
|
|
@@ -24,6 +18,5 @@ export class HMSRemoteVideoStats {
|
|
|
24
18
|
this.resolution = params.resolution;
|
|
25
19
|
this.frameRate = params.frameRate;
|
|
26
20
|
}
|
|
27
|
-
|
|
28
21
|
}
|
|
29
22
|
//# sourceMappingURL=HMSRemoteVideoStats.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["HMSRemoteVideoStats","constructor","params","bitrate","packetsReceived","packetsLost","bytesReceived","jitter","resolution","frameRate"],"sources":["HMSRemoteVideoStats.ts"],"sourcesContent":["import type { HMSVideoResolution } from './HMSVideoResolution';\n\nexport class HMSRemoteVideoStats {\n bitrate?: number;\n packetsReceived?: number;\n packetsLost?: number;\n bytesReceived?: number;\n jitter?: number;\n resolution?: HMSVideoResolution;\n frameRate?: number;\n\n constructor(params: {\n bitrate?: number;\n packetsReceived?: number;\n packetsLost?: number;\n bytesReceived?: number;\n jitter?: number;\n resolution?: HMSVideoResolution;\n frameRate?: number;\n }) {\n this.bitrate = params.bitrate;\n this.packetsReceived = params.packetsReceived;\n this.packetsLost = params.packetsLost;\n this.bytesReceived = params.bytesReceived;\n this.jitter = params.jitter;\n this.resolution = params.resolution;\n this.frameRate = params.frameRate;\n }\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"names":["HMSRemoteVideoStats","constructor","params","bitrate","packetsReceived","packetsLost","bytesReceived","jitter","resolution","frameRate"],"sources":["HMSRemoteVideoStats.ts"],"sourcesContent":["import type { HMSVideoResolution } from './HMSVideoResolution';\n\nexport class HMSRemoteVideoStats {\n bitrate?: number;\n packetsReceived?: number;\n packetsLost?: number;\n bytesReceived?: number;\n jitter?: number;\n resolution?: HMSVideoResolution;\n frameRate?: number;\n\n constructor(params: {\n bitrate?: number;\n packetsReceived?: number;\n packetsLost?: number;\n bytesReceived?: number;\n jitter?: number;\n resolution?: HMSVideoResolution;\n frameRate?: number;\n }) {\n this.bitrate = params.bitrate;\n this.packetsReceived = params.packetsReceived;\n this.packetsLost = params.packetsLost;\n this.bytesReceived = params.bytesReceived;\n this.jitter = params.jitter;\n this.resolution = params.resolution;\n this.frameRate = params.frameRate;\n }\n}\n"],"mappings":";;;AAEA,OAAO,MAAMA,mBAAmB,CAAC;EAS/BC,WAAW,CAACC,MAQX,EAAE;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IACD,IAAI,CAACC,OAAO,GAAGD,MAAM,CAACC,OAAO;IAC7B,IAAI,CAACC,eAAe,GAAGF,MAAM,CAACE,eAAe;IAC7C,IAAI,CAACC,WAAW,GAAGH,MAAM,CAACG,WAAW;IACrC,IAAI,CAACC,aAAa,GAAGJ,MAAM,CAACI,aAAa;IACzC,IAAI,CAACC,MAAM,GAAGL,MAAM,CAACK,MAAM;IAC3B,IAAI,CAACC,UAAU,GAAGN,MAAM,CAACM,UAAU;IACnC,IAAI,CAACC,SAAS,GAAGP,MAAM,CAACO,SAAS;EACnC;AACF"}
|