agora-electron-sdk 4.2.0 → 4.2.2-dev.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (103) hide show
  1. package/js/AgoraSdk.js +7 -5
  2. package/js/Private/AgoraBase.js +394 -1292
  3. package/js/Private/AgoraMediaBase.js +76 -340
  4. package/js/Private/AgoraMediaPlayerTypes.js +25 -122
  5. package/js/Private/IAgoraLog.js +5 -14
  6. package/js/Private/IAgoraMediaEngine.js +5 -2
  7. package/js/Private/IAgoraMediaPlayer.js +10 -4
  8. package/js/Private/IAgoraMediaRecorder.js +5 -2
  9. package/js/Private/IAgoraMediaStreamingSource.js +5 -12
  10. package/js/Private/IAgoraMusicContentCenter.js +68 -125
  11. package/js/Private/IAgoraRhythmPlayer.js +5 -10
  12. package/js/Private/IAgoraRtcEngine.js +141 -932
  13. package/js/Private/IAgoraRtcEngineEx.js +29 -13
  14. package/js/Private/IAgoraSpatialAudio.js +40 -53
  15. package/js/Private/IAudioDeviceManager.js +5 -2
  16. package/js/Private/impl/IAgoraMediaEngineImpl.js +156 -139
  17. package/js/Private/impl/IAgoraMediaPlayerImpl.js +538 -526
  18. package/js/Private/impl/IAgoraMediaRecorderImpl.js +29 -26
  19. package/js/Private/impl/IAgoraMusicContentCenterImpl.js +264 -192
  20. package/js/Private/impl/IAgoraRtcEngineExImpl.js +419 -399
  21. package/js/Private/impl/IAgoraRtcEngineImpl.js +2352 -2207
  22. package/js/Private/impl/IAgoraSpatialAudioImpl.js +192 -169
  23. package/js/Private/impl/IAudioDeviceManagerImpl.js +235 -232
  24. package/js/Private/internal/AudioDeviceManagerInternal.js +44 -24
  25. package/js/Private/internal/IrisApiEngine.js +109 -76
  26. package/js/Private/internal/LocalSpatialAudioEngineInternal.js +49 -29
  27. package/js/Private/internal/MediaEngineInternal.js +82 -58
  28. package/js/Private/internal/MediaPlayerInternal.js +132 -111
  29. package/js/Private/internal/MediaRecorderInternal.js +64 -38
  30. package/js/Private/internal/MusicContentCenterInternal.js +130 -100
  31. package/js/Private/internal/RtcEngineExInternal.js +265 -219
  32. package/js/Private/ti/AgoraBase-ti.js +2 -2
  33. package/js/Private/ti/AgoraMediaBase-ti.js +15 -15
  34. package/js/Private/ti/AgoraMediaPlayerTypes-ti.js +1 -1
  35. package/js/Private/ti/IAgoraLog-ti.js +1 -1
  36. package/js/Private/ti/IAgoraMediaEngine-ti.js +1 -1
  37. package/js/Private/ti/IAgoraMediaPlayer-ti.js +2 -2
  38. package/js/Private/ti/IAgoraMediaPlayerSource-ti.js +2 -2
  39. package/js/Private/ti/IAgoraMediaRecorder-ti.js +1 -1
  40. package/js/Private/ti/IAgoraMediaStreamingSource-ti.js +1 -1
  41. package/js/Private/ti/IAgoraMusicContentCenter-ti.js +5 -4
  42. package/js/Private/ti/IAgoraRhythmPlayer-ti.js +1 -1
  43. package/js/Private/ti/IAgoraRtcEngine-ti.js +2 -2
  44. package/js/Private/ti/IAgoraRtcEngineEx-ti.js +1 -1
  45. package/js/Private/ti/IAgoraSpatialAudio-ti.js +1 -1
  46. package/js/Private/ti/IAudioDeviceManager-ti.js +1 -1
  47. package/js/Renderer/AgoraView.js +145 -100
  48. package/js/Renderer/IRenderer.js +18 -17
  49. package/js/Renderer/IRendererManager.js +5 -2
  50. package/js/Renderer/RendererManager.js +208 -180
  51. package/js/Renderer/WebGLRenderer/index.js +111 -107
  52. package/js/Renderer/YUVCanvasRenderer/index.js +68 -51
  53. package/js/Utils.js +85 -36
  54. package/package.json +3 -3
  55. package/ts/AgoraSdk.ts +3 -1
  56. package/ts/Private/AgoraBase.ts +227 -86
  57. package/ts/Private/AgoraMediaBase.ts +69 -54
  58. package/ts/Private/AgoraMediaPlayerTypes.ts +4 -4
  59. package/ts/Private/IAgoraLog.ts +1 -1
  60. package/ts/Private/IAgoraMediaEngine.ts +42 -39
  61. package/ts/Private/IAgoraMediaPlayer.ts +98 -67
  62. package/ts/Private/IAgoraMediaPlayerSource.ts +15 -8
  63. package/ts/Private/IAgoraMusicContentCenter.ts +25 -4
  64. package/ts/Private/IAgoraRtcEngine.ts +951 -747
  65. package/ts/Private/IAgoraRtcEngineEx.ts +183 -157
  66. package/ts/Private/IAgoraSpatialAudio.ts +55 -32
  67. package/ts/Private/IAudioDeviceManager.ts +39 -25
  68. package/ts/Private/impl/IAgoraMusicContentCenterImpl.ts +72 -21
  69. package/ts/Private/impl/IAgoraRtcEngineImpl.ts +136 -15
  70. package/ts/Private/internal/RtcEngineExInternal.ts +8 -0
  71. package/ts/Private/ti/AgoraMediaBase-ti.ts +13 -13
  72. package/ts/Private/ti/IAgoraMusicContentCenter-ti.ts +3 -2
  73. package/types/AgoraSdk.d.ts +3 -1
  74. package/types/AgoraSdk.d.ts.map +1 -1
  75. package/types/Private/AgoraBase.d.ts +221 -86
  76. package/types/Private/AgoraBase.d.ts.map +1 -1
  77. package/types/Private/AgoraMediaBase.d.ts +69 -51
  78. package/types/Private/AgoraMediaBase.d.ts.map +1 -1
  79. package/types/Private/AgoraMediaPlayerTypes.d.ts +4 -4
  80. package/types/Private/IAgoraLog.d.ts +1 -1
  81. package/types/Private/IAgoraMediaEngine.d.ts +42 -39
  82. package/types/Private/IAgoraMediaEngine.d.ts.map +1 -1
  83. package/types/Private/IAgoraMediaPlayer.d.ts +98 -67
  84. package/types/Private/IAgoraMediaPlayer.d.ts.map +1 -1
  85. package/types/Private/IAgoraMediaPlayerSource.d.ts +15 -8
  86. package/types/Private/IAgoraMediaPlayerSource.d.ts.map +1 -1
  87. package/types/Private/IAgoraMusicContentCenter.d.ts +17 -5
  88. package/types/Private/IAgoraMusicContentCenter.d.ts.map +1 -1
  89. package/types/Private/IAgoraRtcEngine.d.ts +936 -744
  90. package/types/Private/IAgoraRtcEngine.d.ts.map +1 -1
  91. package/types/Private/IAgoraRtcEngineEx.d.ts +183 -157
  92. package/types/Private/IAgoraRtcEngineEx.d.ts.map +1 -1
  93. package/types/Private/IAgoraSpatialAudio.d.ts +55 -32
  94. package/types/Private/IAgoraSpatialAudio.d.ts.map +1 -1
  95. package/types/Private/IAudioDeviceManager.d.ts +39 -25
  96. package/types/Private/IAudioDeviceManager.d.ts.map +1 -1
  97. package/types/Private/impl/IAgoraMusicContentCenterImpl.d.ts +9 -5
  98. package/types/Private/impl/IAgoraMusicContentCenterImpl.d.ts.map +1 -1
  99. package/types/Private/impl/IAgoraRtcEngineImpl.d.ts +18 -6
  100. package/types/Private/impl/IAgoraRtcEngineImpl.d.ts.map +1 -1
  101. package/types/Private/internal/RtcEngineExInternal.d.ts +1 -0
  102. package/types/Private/internal/RtcEngineExInternal.d.ts.map +1 -1
  103. package/types/Private/ti/IAgoraMusicContentCenter-ti.d.ts.map +1 -1
@@ -1,9 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ExperienceQualityType = exports.ClientRoleOptions = exports.AudienceLatencyLevelType = exports.QualityAdaptIndication = exports.ClientRoleType = exports.RtcStats = exports.WatermarkOptions = exports.WatermarkRatio = exports.Rectangle = exports.SimulcastStreamConfig = exports.SimulcastStreamMode = exports.DataStreamConfig = exports.VideoEncoderConfiguration = exports.CodecCapInfo = exports.CodecCapMask = exports.VideoMirrorModeType = exports.AdvanceOptions = exports.EncodingPreference = exports.CompressionPreference = exports.EncodedVideoFrameInfo = exports.VideoSubscriptionOptions = exports.VideoStreamType = exports.H264PacketizeMode = exports.AudioPcmDataInfo = exports.EncodedAudioFrameInfo = exports.EncodedAudioFrameAdvancedSettings = exports.WatermarkFitMode = exports.AudioEncodingType = exports.AudioCodecType = exports.SenderOptions = exports.TCcMode = exports.VideoCodecType = exports.ScreenCaptureFramerateCapability = exports.VideoDimensions = exports.DegradationPreference = exports.OrientationMode = exports.VideoFrameType = exports.FrameHeight = exports.FrameWidth = exports.FrameRate = exports.VideoOrientation = exports.FitModeType = exports.QualityType = exports.InterfaceIdType = exports.UserOfflineReasonType = exports.AudioSessionOperationRestriction = exports.LicenseErrorType = exports.ErrorCodeType = exports.WarnCodeType = exports.ChannelProfileType = void 0;
4
- exports.VideoViewSetupMode = exports.NetworkType = exports.WlAccStats = exports.WlaccSuggestAction = exports.WlaccMessageReason = exports.ClientRoleChangeFailedReason = exports.ConnectionChangedReasonType = exports.LastmileProbeResult = exports.LastmileProbeOneWayResult = exports.LastmileProbeResultState = exports.LastmileProbeConfig = exports.VideoTranscoderError = exports.LocalTranscoderConfiguration = exports.TranscodingVideoStream = exports.LiveTranscoding = exports.TranscodingUser = exports.ConnectionStateType = exports.LiveStreamAdvancedFeature = exports.RtcImage = exports.RtmpStreamingEvent = exports.RtmpStreamPublishErrorType = exports.RtmpStreamPublishState = exports.LocalAudioStats = exports.AudioCodecProfileType = exports.VideoCodecProfileType = exports.VideoCodecTypeForStream = exports.AudioSampleRateType = exports.Packet = exports.DeviceInfo = exports.AudioVolumeInfo = exports.RemoteVideoDownscaleLevel = exports.VideoTrackInfo = exports.RemoteUserState = exports.RemoteVideoStateReason = exports.RemoteVideoState = exports.RemoteAudioStateReason = exports.RemoteAudioState = exports.LocalVideoStreamError = exports.LocalVideoStreamState = exports.LocalAudioStreamError = exports.LocalAudioStreamState = exports.CaptureBrightnessLevelType = exports.VideoApplicationScenarioType = exports.ScreenScenarioType = exports.VideoContentHint = exports.VideoFormat = exports.AudioScenarioType = exports.AudioProfileType = exports.AudioAinsMode = exports.ExperiencePoorReason = void 0;
5
- exports.ScreenVideoParameters = exports.ThreadPriorityType = exports.EarMonitoringFilterType = exports.UserInfo = exports.EchoTestConfiguration = exports.StreamPublishState = exports.StreamSubscribeState = exports.MaxUserAccountLengthType = exports.PermissionType = exports.UploadErrorReason = exports.EncryptionErrorType = exports.EncryptionConfig = exports.EncryptionMode = exports.DownlinkNetworkInfo = exports.PeerDownlinkInfo = exports.UplinkNetworkInfo = exports.ChannelMediaRelayConfiguration = exports.ChannelMediaInfo = exports.ChannelMediaRelayState = exports.ChannelMediaRelayEvent = exports.ChannelMediaRelayError = exports.AreaCodeEx = exports.AreaCode = exports.AudioEncodedFrameObserverConfig = exports.AudioRecordingConfiguration = exports.AudioEncodedFrameObserverPosition = exports.AudioFileRecordingType = exports.AudioRecordingQualityType = exports.ScreenCaptureParameters = exports.HeadphoneEqualizerPreset = exports.VoiceConversionPreset = exports.AudioEffectPreset = exports.VoiceBeautifierPreset = exports.AudioTrackConfig = exports.AudioTrackType = exports.SegmentationProperty = exports.SegModelType = exports.VirtualBackgroundSource = exports.BackgroundBlurDegree = exports.BackgroundSourceType = exports.ColorEnhanceOptions = exports.VideoDenoiserOptions = exports.VideoDenoiserLevel = exports.VideoDenoiserMode = exports.LowlightEnhanceOptions = exports.LowLightEnhanceLevel = exports.LowLightEnhanceMode = exports.BeautyOptions = exports.LighteningContrastLevel = exports.VideoCanvas = void 0;
6
- exports.SpatialAudioParams = exports.RecorderStreamInfo = exports.ConfigFetchType = exports.VideoRenderingTracingInfo = exports.MediaTraceEvent = exports.ScreenCaptureParameters2 = exports.ScreenAudioParameters = void 0;
3
+ exports.AudienceLatencyLevelType = exports.QualityAdaptIndication = exports.ClientRoleType = exports.RtcStats = exports.WatermarkOptions = exports.WatermarkRatio = exports.Rectangle = exports.SimulcastStreamConfig = exports.SimulcastStreamMode = exports.DataStreamConfig = exports.VideoEncoderConfiguration = exports.CodecCapInfo = exports.CodecCapLevels = exports.CodecCapMask = exports.VideoMirrorModeType = exports.AdvanceOptions = exports.EncodingPreference = exports.CompressionPreference = exports.EncodedVideoFrameInfo = exports.VideoSubscriptionOptions = exports.VideoStreamType = exports.H264PacketizeMode = exports.AudioPcmDataInfo = exports.EncodedAudioFrameInfo = exports.EncodedAudioFrameAdvancedSettings = exports.WatermarkFitMode = exports.AudioEncodingType = exports.AudioCodecType = exports.SenderOptions = exports.TCcMode = exports.VideoCodecType = exports.VideoCodecCapabilityLevel = exports.ScreenCaptureFramerateCapability = exports.VideoDimensions = exports.DegradationPreference = exports.OrientationMode = exports.VideoFrameType = exports.FrameHeight = exports.FrameWidth = exports.FrameRate = exports.VideoOrientation = exports.FitModeType = exports.QualityType = exports.InterfaceIdType = exports.UserOfflineReasonType = exports.AudioSessionOperationRestriction = exports.LicenseErrorType = exports.ErrorCodeType = exports.WarnCodeType = exports.ChannelProfileType = void 0;
4
+ exports.WlAccStats = exports.WlaccSuggestAction = exports.WlaccMessageReason = exports.ClientRoleChangeFailedReason = exports.ConnectionChangedReasonType = exports.LastmileProbeResult = exports.LastmileProbeOneWayResult = exports.LastmileProbeResultState = exports.LastmileProbeConfig = exports.VideoTranscoderError = exports.LocalTranscoderConfiguration = exports.TranscodingVideoStream = exports.LiveTranscoding = exports.TranscodingUser = exports.ConnectionStateType = exports.LiveStreamAdvancedFeature = exports.RtcImage = exports.RtmpStreamingEvent = exports.RtmpStreamPublishErrorType = exports.RtmpStreamPublishState = exports.LocalAudioStats = exports.AudioCodecProfileType = exports.VideoCodecProfileType = exports.VideoCodecTypeForStream = exports.AudioSampleRateType = exports.Packet = exports.DeviceInfo = exports.AudioVolumeInfo = exports.RemoteVideoDownscaleLevel = exports.VideoTrackInfo = exports.RemoteUserState = exports.RemoteVideoStateReason = exports.RemoteVideoState = exports.RemoteAudioStateReason = exports.RemoteAudioState = exports.LocalVideoStreamError = exports.LocalVideoStreamState = exports.LocalAudioStreamError = exports.LocalAudioStreamState = exports.CaptureBrightnessLevelType = exports.VideoApplicationScenarioType = exports.ScreenScenarioType = exports.VideoContentHint = exports.VideoFormat = exports.AudioScenarioType = exports.AudioProfileType = exports.AudioAinsMode = exports.ExperiencePoorReason = exports.ExperienceQualityType = exports.ClientRoleOptions = void 0;
5
+ exports.EarMonitoringFilterType = exports.UserInfo = exports.EchoTestConfiguration = exports.StreamPublishState = exports.StreamSubscribeState = exports.MaxUserAccountLengthType = exports.PermissionType = exports.UploadErrorReason = exports.EncryptionErrorType = exports.EncryptionConfig = exports.EncryptionMode = exports.DownlinkNetworkInfo = exports.PeerDownlinkInfo = exports.UplinkNetworkInfo = exports.ChannelMediaRelayConfiguration = exports.ChannelMediaInfo = exports.ChannelMediaRelayState = exports.ChannelMediaRelayEvent = exports.ChannelMediaRelayError = exports.AreaCodeEx = exports.AreaCode = exports.AudioEncodedFrameObserverConfig = exports.AudioRecordingConfiguration = exports.AudioEncodedFrameObserverPosition = exports.AudioFileRecordingType = exports.AudioRecordingQualityType = exports.ScreenCaptureParameters = exports.HeadphoneEqualizerPreset = exports.VoiceConversionPreset = exports.AudioEffectPreset = exports.VoiceBeautifierPreset = exports.AudioTrackConfig = exports.AudioTrackType = exports.SegmentationProperty = exports.SegModelType = exports.VirtualBackgroundSource = exports.BackgroundBlurDegree = exports.BackgroundSourceType = exports.ColorEnhanceOptions = exports.VideoDenoiserOptions = exports.VideoDenoiserLevel = exports.VideoDenoiserMode = exports.LowlightEnhanceOptions = exports.LowLightEnhanceLevel = exports.LowLightEnhanceMode = exports.BeautyOptions = exports.LighteningContrastLevel = exports.VideoCanvas = exports.VideoViewSetupMode = exports.NetworkType = void 0;
6
+ exports.SpatialAudioParams = exports.LocalAccessPointConfiguration = exports.AdvancedConfigInfo = exports.LogUploadServerInfo = exports.LocalProxyMode = exports.RecorderStreamInfo = exports.ConfigFetchType = exports.VideoRenderingTracingInfo = exports.MediaTraceEvent = exports.ScreenCaptureParameters2 = exports.ScreenAudioParameters = exports.ScreenVideoParameters = exports.ThreadPriorityType = void 0;
7
7
  require("./extension/AgoraBaseExtension");
8
8
  /**
9
9
  * The channel profile.
@@ -163,6 +163,7 @@ var WarnCodeType;
163
163
  })(WarnCodeType = exports.WarnCodeType || (exports.WarnCodeType = {}));
164
164
  /**
165
165
  * Error codes.
166
+ *
166
167
  * An error code indicates that the SDK encountered an unrecoverable error that requires application intervention. For example, an error is returned when the camera fails to open, and the app needs to inform the user that the camera cannot be used.
167
168
  */
168
169
  var ErrorCodeType;
@@ -264,7 +265,7 @@ var ErrorCodeType;
264
265
  */
265
266
  ErrorCodeType[ErrorCodeType["ErrNoServerResources"] = 103] = "ErrNoServerResources";
266
267
  /**
267
- * 109: The current token has expired. Apply for a new token on the server and call renewToken .Deprecated:This enumerator is deprecated. Use ConnectionChangedTokenExpired(9) in the onConnectionStateChanged callback instead.
268
+ * 109: The current token has expired. Apply for a new token on the server and call renewToken.Deprecated:This enumerator is deprecated. Use ConnectionChangedTokenExpired(9) in the onConnectionStateChanged callback instead.
268
269
  */
269
270
  ErrorCodeType[ErrorCodeType["ErrTokenExpired"] = 109] = "ErrTokenExpired";
270
271
  /**
@@ -762,7 +763,7 @@ var DegradationPreference;
762
763
  */
763
764
  DegradationPreference[DegradationPreference["MaintainFramerate"] = 1] = "MaintainFramerate";
764
765
  /**
765
- * 2: Reduces the video frame rate and video resolution simultaneously during video encoding under limited bandwidth. The MaintainBalanced has a lower reduction than MaintainQuality and MaintainFramerate, and this preference is suitable for scenarios where both smoothness and video quality are a priority.The resolution of the video sent may change, so remote users need to handle this issue. See onVideoSizeChanged .
766
+ * 2: Reduces the video frame rate and video resolution simultaneously during video encoding under limited bandwidth. The MaintainBalanced has a lower reduction than MaintainQuality and MaintainFramerate, and this preference is suitable for scenarios where both smoothness and video quality are a priority.The resolution of the video sent may change, so remote users need to handle this issue. See onVideoSizeChanged.
766
767
  */
767
768
  DegradationPreference[DegradationPreference["MaintainBalanced"] = 2] = "MaintainBalanced";
768
769
  /**
@@ -777,16 +778,11 @@ var DegradationPreference;
777
778
  /**
778
779
  * The video dimension.
779
780
  */
780
- class VideoDimensions {
781
- /**
782
- * The width (pixels) of the video.
783
- */
784
- width;
785
- /**
786
- * The height (pixels) of the video.
787
- */
788
- height;
789
- }
781
+ var VideoDimensions = /** @class */ (function () {
782
+ function VideoDimensions() {
783
+ }
784
+ return VideoDimensions;
785
+ }());
790
786
  exports.VideoDimensions = VideoDimensions;
791
787
  /**
792
788
  * @ignore
@@ -806,6 +802,32 @@ var ScreenCaptureFramerateCapability;
806
802
  */
807
803
  ScreenCaptureFramerateCapability[ScreenCaptureFramerateCapability["ScreenCaptureFramerateCapability60Fps"] = 2] = "ScreenCaptureFramerateCapability60Fps";
808
804
  })(ScreenCaptureFramerateCapability = exports.ScreenCaptureFramerateCapability || (exports.ScreenCaptureFramerateCapability = {}));
805
+ /**
806
+ * @ignore
807
+ */
808
+ var VideoCodecCapabilityLevel;
809
+ (function (VideoCodecCapabilityLevel) {
810
+ /**
811
+ * @ignore
812
+ */
813
+ VideoCodecCapabilityLevel[VideoCodecCapabilityLevel["CodecCapabilityLevelUnspecified"] = -1] = "CodecCapabilityLevelUnspecified";
814
+ /**
815
+ * @ignore
816
+ */
817
+ VideoCodecCapabilityLevel[VideoCodecCapabilityLevel["CodecCapabilityLevelBasicSupport"] = 5] = "CodecCapabilityLevelBasicSupport";
818
+ /**
819
+ * @ignore
820
+ */
821
+ VideoCodecCapabilityLevel[VideoCodecCapabilityLevel["CodecCapabilityLevel1080p30fps"] = 10] = "CodecCapabilityLevel1080p30fps";
822
+ /**
823
+ * @ignore
824
+ */
825
+ VideoCodecCapabilityLevel[VideoCodecCapabilityLevel["CodecCapabilityLevel1080p60fps"] = 20] = "CodecCapabilityLevel1080p60fps";
826
+ /**
827
+ * @ignore
828
+ */
829
+ VideoCodecCapabilityLevel[VideoCodecCapabilityLevel["CodecCapabilityLevel4k60fps"] = 30] = "CodecCapabilityLevel4k60fps";
830
+ })(VideoCodecCapabilityLevel = exports.VideoCodecCapabilityLevel || (exports.VideoCodecCapabilityLevel = {}));
809
831
  /**
810
832
  * Video codec types.
811
833
  */
@@ -865,20 +887,11 @@ var TCcMode;
865
887
  /**
866
888
  * @ignore
867
889
  */
868
- class SenderOptions {
869
- /**
870
- * @ignore
871
- */
872
- ccMode;
873
- /**
874
- * @ignore
875
- */
876
- codecType;
877
- /**
878
- * @ignore
879
- */
880
- targetBitrate;
881
- }
890
+ var SenderOptions = /** @class */ (function () {
891
+ function SenderOptions() {
892
+ }
893
+ return SenderOptions;
894
+ }());
882
895
  exports.SenderOptions = SenderOptions;
883
896
  /**
884
897
  * The codec type of audio.
@@ -978,83 +991,40 @@ var AudioEncodingType;
978
991
  var WatermarkFitMode;
979
992
  (function (WatermarkFitMode) {
980
993
  /**
981
- * Use the positionInLandscapeMode and positionInPortraitMode values you set in WatermarkOptions . The settings in WatermarkRatio are invalid.
994
+ * Use the positionInLandscapeMode and positionInPortraitMode values you set in WatermarkOptions. The settings in WatermarkRatio are invalid.
982
995
  */
983
996
  WatermarkFitMode[WatermarkFitMode["FitModeCoverPosition"] = 0] = "FitModeCoverPosition";
984
997
  /**
985
- * Use the value you set in WatermarkRatio . The settings in positionInLandscapeMode and positionInPortraitMode in WatermarkOptions are invalid.
998
+ * Use the value you set in WatermarkRatio. The settings in positionInLandscapeMode and positionInPortraitMode in WatermarkOptions are invalid.
986
999
  */
987
1000
  WatermarkFitMode[WatermarkFitMode["FitModeUseImageRatio"] = 1] = "FitModeUseImageRatio";
988
1001
  })(WatermarkFitMode = exports.WatermarkFitMode || (exports.WatermarkFitMode = {}));
989
1002
  /**
990
1003
  * @ignore
991
1004
  */
992
- class EncodedAudioFrameAdvancedSettings {
993
- /**
994
- * @ignore
995
- */
996
- speech;
997
- /**
998
- * @ignore
999
- */
1000
- sendEvenIfEmpty;
1001
- }
1005
+ var EncodedAudioFrameAdvancedSettings = /** @class */ (function () {
1006
+ function EncodedAudioFrameAdvancedSettings() {
1007
+ }
1008
+ return EncodedAudioFrameAdvancedSettings;
1009
+ }());
1002
1010
  exports.EncodedAudioFrameAdvancedSettings = EncodedAudioFrameAdvancedSettings;
1003
1011
  /**
1004
1012
  * Audio information after encoding.
1005
1013
  */
1006
- class EncodedAudioFrameInfo {
1007
- /**
1008
- * Audio Codec type: AudioCodecType .
1009
- */
1010
- codec;
1011
- /**
1012
- * Audio sample rate (Hz).
1013
- */
1014
- sampleRateHz;
1015
- /**
1016
- * The number of audio samples per channel.
1017
- */
1018
- samplesPerChannel;
1019
- /**
1020
- * The number of audio channels.
1021
- */
1022
- numberOfChannels;
1023
- /**
1024
- * This function is currently not supported.
1025
- */
1026
- advancedSettings;
1027
- /**
1028
- * The Unix timestamp (ms) for capturing the external encoded video frames.
1029
- */
1030
- captureTimeMs;
1031
- }
1014
+ var EncodedAudioFrameInfo = /** @class */ (function () {
1015
+ function EncodedAudioFrameInfo() {
1016
+ }
1017
+ return EncodedAudioFrameInfo;
1018
+ }());
1032
1019
  exports.EncodedAudioFrameInfo = EncodedAudioFrameInfo;
1033
1020
  /**
1034
1021
  * @ignore
1035
1022
  */
1036
- class AudioPcmDataInfo {
1037
- /**
1038
- * @ignore
1039
- */
1040
- samplesPerChannel;
1041
- /**
1042
- * @ignore
1043
- */
1044
- channelNum;
1045
- /**
1046
- * @ignore
1047
- */
1048
- samplesOut;
1049
- /**
1050
- * @ignore
1051
- */
1052
- elapsedTimeMs;
1053
- /**
1054
- * @ignore
1055
- */
1056
- ntpTimeMs;
1057
- }
1023
+ var AudioPcmDataInfo = /** @class */ (function () {
1024
+ function AudioPcmDataInfo() {
1025
+ }
1026
+ return AudioPcmDataInfo;
1027
+ }());
1058
1028
  exports.AudioPcmDataInfo = AudioPcmDataInfo;
1059
1029
  /**
1060
1030
  * @ignore
@@ -1087,66 +1057,20 @@ var VideoStreamType;
1087
1057
  /**
1088
1058
  * Video subscription options.
1089
1059
  */
1090
- class VideoSubscriptionOptions {
1091
- /**
1092
- * The video stream type that you want to subscribe to. The default value is VideoStreamHigh, indicating that the high-quality video streams are subscribed. See VideoStreamType .
1093
- */
1094
- type;
1095
- /**
1096
- * Whether to subscribe to encoded video frames only:true: Subscribe to the encoded video data (structured data) only; the SDK does not decode or render raw video data.false: (Default) Subscribe to both raw video data and encoded video data.
1097
- */
1098
- encodedFrameOnly;
1099
- }
1060
+ var VideoSubscriptionOptions = /** @class */ (function () {
1061
+ function VideoSubscriptionOptions() {
1062
+ }
1063
+ return VideoSubscriptionOptions;
1064
+ }());
1100
1065
  exports.VideoSubscriptionOptions = VideoSubscriptionOptions;
1101
1066
  /**
1102
1067
  * Information about externally encoded video frames.
1103
1068
  */
1104
- class EncodedVideoFrameInfo {
1105
- /**
1106
- * The codec type of the local video stream. See VideoCodecType . The default value is VideoCodecH264 (2).
1107
- */
1108
- codecType;
1109
- /**
1110
- * Width (pixel) of the video frame.
1111
- */
1112
- width;
1113
- /**
1114
- * Height (pixel) of the video frame.
1115
- */
1116
- height;
1117
- /**
1118
- * The number of video frames per second.When this parameter is not 0, you can use it to calculate the Unix timestamp of externally encoded video frames.
1119
- */
1120
- framesPerSecond;
1121
- /**
1122
- * The video frame type. See VideoFrameType .
1123
- */
1124
- frameType;
1125
- /**
1126
- * The rotation information of the video frame. See VideoOrientation .
1127
- */
1128
- rotation;
1129
- /**
1130
- * Reserved for future use.
1131
- */
1132
- trackId;
1133
- /**
1134
- * The Unix timestamp (ms) for capturing the external encoded video frames.
1135
- */
1136
- captureTimeMs;
1137
- /**
1138
- * @ignore
1139
- */
1140
- decodeTimeMs;
1141
- /**
1142
- * The user ID to push the externally encoded video frame.
1143
- */
1144
- uid;
1145
- /**
1146
- * The type of video streams. See VideoStreamType .
1147
- */
1148
- streamType;
1149
- }
1069
+ var EncodedVideoFrameInfo = /** @class */ (function () {
1070
+ function EncodedVideoFrameInfo() {
1071
+ }
1072
+ return EncodedVideoFrameInfo;
1073
+ }());
1150
1074
  exports.EncodedVideoFrameInfo = EncodedVideoFrameInfo;
1151
1075
  /**
1152
1076
  * Compression preference for video encoding.
@@ -1183,16 +1107,11 @@ var EncodingPreference;
1183
1107
  /**
1184
1108
  * Advanced options for video encoding.
1185
1109
  */
1186
- class AdvanceOptions {
1187
- /**
1188
- * Video encoder preference. See EncodingPreference .
1189
- */
1190
- encodingPreference;
1191
- /**
1192
- * Compression preference for video encoding. See CompressionPreference .
1193
- */
1194
- compressionPreference;
1195
- }
1110
+ var AdvanceOptions = /** @class */ (function () {
1111
+ function AdvanceOptions() {
1112
+ }
1113
+ return AdvanceOptions;
1114
+ }());
1196
1115
  exports.AdvanceOptions = AdvanceOptions;
1197
1116
  /**
1198
1117
  * Video mirror mode.
@@ -1238,76 +1157,43 @@ var CodecCapMask;
1238
1157
  */
1239
1158
  CodecCapMask[CodecCapMask["CodecCapMaskSwEnc"] = 8] = "CodecCapMaskSwEnc";
1240
1159
  })(CodecCapMask = exports.CodecCapMask || (exports.CodecCapMask = {}));
1160
+ /**
1161
+ * @ignore
1162
+ */
1163
+ var CodecCapLevels = /** @class */ (function () {
1164
+ function CodecCapLevels() {
1165
+ }
1166
+ return CodecCapLevels;
1167
+ }());
1168
+ exports.CodecCapLevels = CodecCapLevels;
1241
1169
  /**
1242
1170
  * The codec capability of the device.
1243
1171
  */
1244
- class CodecCapInfo {
1245
- /**
1246
- * The video codec types. See VideoCodecType .
1247
- */
1248
- codecType;
1249
- /**
1250
- * The bit mask of the codec type. See CodecCapMask .
1251
- */
1252
- codecCapMask;
1253
- }
1172
+ var CodecCapInfo = /** @class */ (function () {
1173
+ function CodecCapInfo() {
1174
+ }
1175
+ return CodecCapInfo;
1176
+ }());
1254
1177
  exports.CodecCapInfo = CodecCapInfo;
1255
1178
  /**
1256
1179
  * Video encoder configurations.
1257
1180
  */
1258
- class VideoEncoderConfiguration {
1259
- /**
1260
- * The codec type of the local video stream. See VideoCodecType .
1261
- */
1262
- codecType;
1263
- /**
1264
- * The dimensions of the encoded video (px). See VideoDimensions . This parameter measures the video encoding quality in the format of length × width. The default value is 960 × 540. You can set a custom value.
1265
- */
1266
- dimensions;
1267
- /**
1268
- * The frame rate (fps) of the encoding video frame. The default value is 15. See FrameRate .
1269
- */
1270
- frameRate;
1271
- /**
1272
- * The encoding bitrate (Kbps) of the video.
1273
- */
1274
- bitrate;
1275
- /**
1276
- * The minimum encoding bitrate (Kbps) of the video.The SDK automatically adjusts the encoding bitrate to adapt to the network conditions. Using a value greater than the default value forces the video encoder to output high-quality images but may cause more packet loss and sacrifice the smoothness of the video transmission. Unless you have special requirements for image quality, Agora does not recommend changing this value.This parameter only applies to the interactive streaming profile.
1277
- */
1278
- minBitrate;
1279
- /**
1280
- * The orientation mode of the encoded video. See OrientationMode .
1281
- */
1282
- orientationMode;
1283
- /**
1284
- * Video degradation preference under limited bandwidth. See DegradationPreference .
1285
- */
1286
- degradationPreference;
1287
- /**
1288
- * Sets the mirror mode of the published local video stream. It only affects the video that the remote user sees. See VideoMirrorModeType .By default, the video is not mirrored.
1289
- */
1290
- mirrorMode;
1291
- /**
1292
- * Advanced options for video encoding. See AdvanceOptions .
1293
- */
1294
- advanceOptions;
1295
- }
1181
+ var VideoEncoderConfiguration = /** @class */ (function () {
1182
+ function VideoEncoderConfiguration() {
1183
+ }
1184
+ return VideoEncoderConfiguration;
1185
+ }());
1296
1186
  exports.VideoEncoderConfiguration = VideoEncoderConfiguration;
1297
1187
  /**
1298
1188
  * The configurations for the data stream.
1189
+ *
1299
1190
  * The following table shows the SDK behaviors under different parameter settings:
1300
1191
  */
1301
- class DataStreamConfig {
1302
- /**
1303
- * Whether to synchronize the data packet with the published audio packet.true: Synchronize the data packet with the audio packet.false: Do not synchronize the data packet with the audio packet.When you set the data packet to synchronize with the audio, then if the data packet delay is within the audio delay, the SDK triggers the onStreamMessage callback when the synchronized audio packet is played out. Do not set this parameter as true if you need the receiver to receive the data packet immediately. Agora recommends that you set this parameter to true only when you need to implement specific functions, for example, lyric synchronization.
1304
- */
1305
- syncWithAudio;
1306
- /**
1307
- * Whether the SDK guarantees that the receiver receives the data in the sent order.true: Guarantee that the receiver receives the data in the sent order.false: Do not guarantee that the receiver receives the data in the sent order.Do not set this parameter as true if you need the receiver to receive the data packet immediately.
1308
- */
1309
- ordered;
1310
- }
1192
+ var DataStreamConfig = /** @class */ (function () {
1193
+ function DataStreamConfig() {
1194
+ }
1195
+ return DataStreamConfig;
1196
+ }());
1311
1197
  exports.DataStreamConfig = DataStreamConfig;
1312
1198
  /**
1313
1199
  * The mode in which the video stream is sent.
@@ -1330,225 +1216,49 @@ var SimulcastStreamMode;
1330
1216
  /**
1331
1217
  * The configuration of the low-quality video stream.
1332
1218
  */
1333
- class SimulcastStreamConfig {
1334
- /**
1335
- * The video dimension. See VideoDimensions . The default value is 160 × 120.
1336
- */
1337
- dimensions;
1338
- /**
1339
- * Video receive bitrate (Kbps), represented by an instantaneous value. The default value is 65.
1340
- */
1341
- kBitrate;
1342
- /**
1343
- * The frame rate (fps) of the local video. The default value is 5.
1344
- */
1345
- framerate;
1346
- }
1219
+ var SimulcastStreamConfig = /** @class */ (function () {
1220
+ function SimulcastStreamConfig() {
1221
+ }
1222
+ return SimulcastStreamConfig;
1223
+ }());
1347
1224
  exports.SimulcastStreamConfig = SimulcastStreamConfig;
1348
1225
  /**
1349
1226
  * The location of the target area relative to the screen or window. If you do not set this parameter, the SDK selects the whole screen or window.
1350
1227
  */
1351
- class Rectangle {
1352
- /**
1353
- * The horizontal offset from the top-left corner.
1354
- */
1355
- x;
1356
- /**
1357
- * The vertical offset from the top-left corner.
1358
- */
1359
- y;
1360
- /**
1361
- * The width of the target area.
1362
- */
1363
- width;
1364
- /**
1365
- * The height of the target area.
1366
- */
1367
- height;
1368
- }
1228
+ var Rectangle = /** @class */ (function () {
1229
+ function Rectangle() {
1230
+ }
1231
+ return Rectangle;
1232
+ }());
1369
1233
  exports.Rectangle = Rectangle;
1370
1234
  /**
1371
1235
  * The position and size of the watermark on the screen.
1372
- * The position and size of the watermark on the screen are determined by xRatio, yRatio, and widthRatio:(xRatio, yRatio) refers to the coordinates of the upper left corner of the watermark, which determines the distance from the upper left corner of the watermark to the upper left corner of the screen.The widthRatio determines the width of the watermark.
1373
- */
1374
- class WatermarkRatio {
1375
- /**
1376
- * The x-coordinate of the upper left corner of the watermark. The horizontal position relative to the origin, where the upper left corner of the screen is the origin, and the x-coordinate is the upper left corner of the watermark. The value range is [0.0,1.0], and the default value is 0.
1377
- */
1378
- xRatio;
1379
- /**
1380
- * The y-coordinate of the upper left corner of the watermark. The vertical position relative to the origin, where the upper left corner of the screen is the origin, and the y-coordinate is the upper left corner of the screen. The value range is [0.0,1.0], and the default value is 0.
1381
- */
1382
- yRatio;
1383
- /**
1384
- * The width of the watermark. The SDK calculates the height of the watermark proportionally according to this parameter value to ensure that the enlarged or reduced watermark image is not distorted. The value range is [0,1], and the default value is 0, which means no watermark is displayed.
1385
- */
1386
- widthRatio;
1387
- }
1236
+ *
1237
+ * The position and size of the watermark on the screen are determined by xRatio , yRatio , and widthRatio : ( xRatio , yRatio ) refers to the coordinates of the upper left corner of the watermark, which determines the distance from the upper left corner of the watermark to the upper left corner of the screen. The widthRatio determines the width of the watermark.
1238
+ */
1239
+ var WatermarkRatio = /** @class */ (function () {
1240
+ function WatermarkRatio() {
1241
+ }
1242
+ return WatermarkRatio;
1243
+ }());
1388
1244
  exports.WatermarkRatio = WatermarkRatio;
1389
1245
  /**
1390
1246
  * Configurations of the watermark image.
1391
1247
  */
1392
- class WatermarkOptions {
1393
- /**
1394
- * Reserved for future use.
1395
- */
1396
- visibleInPreview;
1397
- /**
1398
- * When the adaptation mode of the watermark is FitModeCoverPosition, it is used to set the area of the watermark image in landscape mode. See Rectangle .
1399
- */
1400
- positionInLandscapeMode;
1401
- /**
1402
- * When the adaptation mode of the watermark is FitModeCoverPosition, it is used to set the area of the watermark image in portrait mode. See Rectangle .
1403
- */
1404
- positionInPortraitMode;
1405
- /**
1406
- * When the watermark adaptation mode is FitModeUseImageRatio, this parameter is used to set the watermark coordinates. See WatermarkRatio .
1407
- */
1408
- watermarkRatio;
1409
- /**
1410
- * The adaptation mode of the watermark. See WatermarkFitMode .
1411
- */
1412
- mode;
1413
- }
1248
+ var WatermarkOptions = /** @class */ (function () {
1249
+ function WatermarkOptions() {
1250
+ }
1251
+ return WatermarkOptions;
1252
+ }());
1414
1253
  exports.WatermarkOptions = WatermarkOptions;
1415
1254
  /**
1416
1255
  * Statistics of a call session.
1417
1256
  */
1418
- class RtcStats {
1419
- /**
1420
- * Call duration of the local user in seconds, represented by an aggregate value.
1421
- */
1422
- duration;
1423
- /**
1424
- * The number of bytes sent.
1425
- */
1426
- txBytes;
1427
- /**
1428
- * The number of bytes received.
1429
- */
1430
- rxBytes;
1431
- /**
1432
- * The total number of audio bytes sent, represented by an aggregate value.
1433
- */
1434
- txAudioBytes;
1435
- /**
1436
- * The total number of video bytes sent, represented by an aggregate value.
1437
- */
1438
- txVideoBytes;
1439
- /**
1440
- * The total number of audio bytes received, represented by an aggregate value.
1441
- */
1442
- rxAudioBytes;
1443
- /**
1444
- * The total number of video bytes received, represented by an aggregate value.
1445
- */
1446
- rxVideoBytes;
1447
- /**
1448
- * Video transmission bitrate (Kbps), represented by an instantaneous value.
1449
- */
1450
- txKBitRate;
1451
- /**
1452
- * The receiving bitrate (Kbps), represented by an instantaneous value.
1453
- */
1454
- rxKBitRate;
1455
- /**
1456
- * The bitrate (Kbps) of receiving the audio.
1457
- */
1458
- rxAudioKBitRate;
1459
- /**
1460
- * The bitrate (Kbps) of sending the audio packet.
1461
- */
1462
- txAudioKBitRate;
1463
- /**
1464
- * The bitrate (Kbps) of receiving the video.
1465
- */
1466
- rxVideoKBitRate;
1467
- /**
1468
- * The bitrate (Kbps) of sending the video.
1469
- */
1470
- txVideoKBitRate;
1471
- /**
1472
- * The client-to-server delay (milliseconds).
1473
- */
1474
- lastmileDelay;
1475
- /**
1476
- * The number of users in the channel.
1477
- */
1478
- userCount;
1479
- /**
1480
- * Application CPU usage (%).The value of cpuAppUsage is always reported as 0 in the onLeaveChannel callback.
1481
- */
1482
- cpuAppUsage;
1483
- /**
1484
- * The system CPU usage (%).For Windows, in the multi-kernel environment, this member represents the average CPU usage. The value = (100 - System Idle Progress in Task Manager)/100.The value of cpuTotalUsage is always reported as 0 in the onLeaveChannel callback.
1485
- */
1486
- cpuTotalUsage;
1487
- /**
1488
- * The round-trip time delay (ms) from the client to the local router.
1489
- */
1490
- gatewayRtt;
1491
- /**
1492
- * The memory ratio occupied by the app (%).This value is for reference only. Due to system limitations, you may not get this value.
1493
- */
1494
- memoryAppUsageRatio;
1495
- /**
1496
- * The memory occupied by the system (%).This value is for reference only. Due to system limitations, you may not get this value.
1497
- */
1498
- memoryTotalUsageRatio;
1499
- /**
1500
- * The memory size occupied by the app (KB).This value is for reference only. Due to system limitations, you may not get this value.
1501
- */
1502
- memoryAppUsageInKbytes;
1503
- /**
1504
- * The duration (ms) between the SDK starts connecting and the connection is established. If the value reported is 0, it means invalid.
1505
- */
1506
- connectTimeMs;
1507
- /**
1508
- * @ignore
1509
- */
1510
- firstAudioPacketDuration;
1511
- /**
1512
- * @ignore
1513
- */
1514
- firstVideoPacketDuration;
1515
- /**
1516
- * @ignore
1517
- */
1518
- firstVideoKeyFramePacketDuration;
1519
- /**
1520
- * @ignore
1521
- */
1522
- packetsBeforeFirstKeyFramePacket;
1523
- /**
1524
- * @ignore
1525
- */
1526
- firstAudioPacketDurationAfterUnmute;
1527
- /**
1528
- * @ignore
1529
- */
1530
- firstVideoPacketDurationAfterUnmute;
1531
- /**
1532
- * @ignore
1533
- */
1534
- firstVideoKeyFramePacketDurationAfterUnmute;
1535
- /**
1536
- * @ignore
1537
- */
1538
- firstVideoKeyFrameDecodedDurationAfterUnmute;
1539
- /**
1540
- * @ignore
1541
- */
1542
- firstVideoKeyFrameRenderedDurationAfterUnmute;
1543
- /**
1544
- * The packet loss rate (%) from the client to the Agora server before applying the anti-packet-loss algorithm.
1545
- */
1546
- txPacketLossRate;
1547
- /**
1548
- * The packet loss rate (%) from the Agora server to the client before using the anti-packet-loss method.
1549
- */
1550
- rxPacketLossRate;
1551
- }
1257
+ var RtcStats = /** @class */ (function () {
1258
+ function RtcStats() {
1259
+ }
1260
+ return RtcStats;
1261
+ }());
1552
1262
  exports.RtcStats = RtcStats;
1553
1263
  /**
1554
1264
  * The user role in the interactive live streaming.
@@ -1599,12 +1309,11 @@ var AudienceLatencyLevelType;
1599
1309
  /**
1600
1310
  * Setting of user role properties.
1601
1311
  */
1602
- class ClientRoleOptions {
1603
- /**
1604
- * The latency level of an audience member in interactive live streaming. See AudienceLatencyLevelType .
1605
- */
1606
- audienceLatencyLevel;
1607
- }
1312
+ var ClientRoleOptions = /** @class */ (function () {
1313
+ function ClientRoleOptions() {
1314
+ }
1315
+ return ClientRoleOptions;
1316
+ }());
1608
1317
  exports.ClientRoleOptions = ClientRoleOptions;
1609
1318
  /**
1610
1319
  * The Quality of Experience (QoE) of the local user when receiving a remote audio stream.
@@ -1647,20 +1356,20 @@ var ExperiencePoorReason;
1647
1356
  ExperiencePoorReason[ExperiencePoorReason["WifiBluetoothCoexist"] = 8] = "WifiBluetoothCoexist";
1648
1357
  })(ExperiencePoorReason = exports.ExperiencePoorReason || (exports.ExperiencePoorReason = {}));
1649
1358
  /**
1650
- * AI noise reduction modes.
1359
+ * AI noise suppression modes.
1651
1360
  */
1652
1361
  var AudioAinsMode;
1653
1362
  (function (AudioAinsMode) {
1654
1363
  /**
1655
- * 0: (Default) Balance mode. This mode allows for a balanced performance on noice reduction and time delay.
1364
+ * 0: (Default) Balance mode. This mode allows for a balanced performance on noice suppression and time delay.
1656
1365
  */
1657
1366
  AudioAinsMode[AudioAinsMode["AinsModeBalanced"] = 0] = "AinsModeBalanced";
1658
1367
  /**
1659
- * 1: Aggressive mode. In scenarios where high performance on noise reduction is required, such as live streaming outdoor events, This mode reduces nosies more dramatically, but may sometimes affect the original character of the audio.
1368
+ * 1: Aggressive mode. In scenarios where high performance on noise suppression is required, such as live streaming outdoor events, this mode reduces nosie more dramatically, but may sometimes affect the original character of the audio.
1660
1369
  */
1661
1370
  AudioAinsMode[AudioAinsMode["AinsModeAggressive"] = 1] = "AinsModeAggressive";
1662
1371
  /**
1663
- * 2: Aggressive mode with low latency. The noise reduction delay of this mode is about only half of that of the balance and aggressive modes. It is suitable for scenarios that have high requirements on noise reduction with low latency, such as sing together online in real time.
1372
+ * 2: Aggressive mode with low latency. The noise suppression delay of this mode is about only half of that of the balance and aggressive modes. It is suitable for scenarios that have high requirements on noise suppression with low latency, such as sing together online in real time.
1664
1373
  */
1665
1374
  AudioAinsMode[AudioAinsMode["AinsModeUltralowlatency"] = 2] = "AinsModeUltralowlatency";
1666
1375
  })(AudioAinsMode = exports.AudioAinsMode || (exports.AudioAinsMode = {}));
@@ -1735,20 +1444,11 @@ var AudioScenarioType;
1735
1444
  /**
1736
1445
  * The format of the video frame.
1737
1446
  */
1738
- class VideoFormat {
1739
- /**
1740
- * The width (px) of the video frame.
1741
- */
1742
- width;
1743
- /**
1744
- * The height (px) of the video frame.
1745
- */
1746
- height;
1747
- /**
1748
- * The video frame rate (fps).
1749
- */
1750
- fps;
1751
- }
1447
+ var VideoFormat = /** @class */ (function () {
1448
+ function VideoFormat() {
1449
+ }
1450
+ return VideoFormat;
1451
+ }());
1752
1452
  exports.VideoFormat = VideoFormat;
1753
1453
  /**
1754
1454
  * The content hint for screen sharing.
@@ -1800,7 +1500,7 @@ var VideoApplicationScenarioType;
1800
1500
  */
1801
1501
  VideoApplicationScenarioType[VideoApplicationScenarioType["ApplicationScenarioGeneral"] = 0] = "ApplicationScenarioGeneral";
1802
1502
  /**
1803
- * If set to ApplicationScenarioMeeting (1), the SDK automatically enables the following strategies:In meeting scenarios where low-quality video streams are required to have a high bitrate, the SDK automatically enables multiple technologies used to deal with network congestions, to enhance the performance of the low-quality streams and to ensure the smooth reception by subscribers.The SDK monitors the number of subscribers to the high-quality video stream in real time and dynamically adjusts its configuration based on the number of subscribers.If nobody subscribers to the high-quality stream, the SDK automatically reduces its bitrate and frame rate to save upstream bandwidth.If someone subscribes to the high-quality stream, the SDK resets the high-quality stream to the VideoEncoderConfiguration configuration used in the most recent calling of setVideoEncoderConfiguration . If no configuration has been set by the user previously, the following values are used:Resolution: 1280 × 720Frame rate: 15 fpsBitrate: 1600 KbpsThe SDK monitors the number of subscribers to the low-quality video stream in real time and dynamically enables or disables it based on the number of subscribers.If the user has called setDualStreamMode to set that never send low-quality video stream (DisableSimulcastStream), the dynamic adjustment of the low-quality stream in meeting scenarios will not take effect.If nobody subscribes to the low-quality stream, the SDK automatically disables it to save upstream bandwidth.If someone subscribes to the low-quality stream, the SDK enables the low-quality stream and resets it to the SimulcastStreamConfig configuration used in the most recent calling of setDualStreamMode. If no configuration has been set by the user previously, the following values are used:Resolution: 480 × 272Frame rate: 15 fpsBitrate: 500 Kbps1: The meeting scenario.
1503
+ * If set to ApplicationScenarioMeeting (1), the SDK automatically enables the following strategies:In meeting scenarios where low-quality video streams are required to have a high bitrate, the SDK automatically enables multiple technologies used to deal with network congestions, to enhance the performance of the low-quality streams and to ensure the smooth reception by subscribers.The SDK monitors the number of subscribers to the high-quality video stream in real time and dynamically adjusts its configuration based on the number of subscribers.If nobody subscribers to the high-quality stream, the SDK automatically reduces its bitrate and frame rate to save upstream bandwidth.If someone subscribes to the high-quality stream, the SDK resets the high-quality stream to the VideoEncoderConfiguration configuration used in the most recent calling of setVideoEncoderConfiguration. If no configuration has been set by the user previously, the following values are used:Resolution: 1280 × 720Frame rate: 15 fpsBitrate: 1600 KbpsThe SDK monitors the number of subscribers to the low-quality video stream in real time and dynamically enables or disables it based on the number of subscribers.If the user has called setDualStreamMode to set that never send low-quality video stream (DisableSimulcastStream), the dynamic adjustment of the low-quality stream in meeting scenarios will not take effect.If nobody subscribes to the low-quality stream, the SDK automatically disables it to save upstream bandwidth.If someone subscribes to the low-quality stream, the SDK enables the low-quality stream and resets it to the SimulcastStreamConfig configuration used in the most recent calling of setDualStreamMode. If no configuration has been set by the user previously, the following values are used:Resolution: 480 × 272Frame rate: 15 fpsBitrate: 500 Kbps1: The meeting scenario.
1804
1504
  */
1805
1505
  VideoApplicationScenarioType[VideoApplicationScenarioType["ApplicationScenarioMeeting"] = 1] = "ApplicationScenarioMeeting";
1806
1506
  })(VideoApplicationScenarioType = exports.VideoApplicationScenarioType || (exports.VideoApplicationScenarioType = {}));
@@ -2175,44 +1875,11 @@ var RemoteUserState;
2175
1875
  /**
2176
1876
  * @ignore
2177
1877
  */
2178
- class VideoTrackInfo {
2179
- /**
2180
- * @ignore
2181
- */
2182
- isLocal;
2183
- /**
2184
- * @ignore
2185
- */
2186
- ownerUid;
2187
- /**
2188
- * @ignore
2189
- */
2190
- trackId;
2191
- /**
2192
- * @ignore
2193
- */
2194
- channelId;
2195
- /**
2196
- * @ignore
2197
- */
2198
- streamType;
2199
- /**
2200
- * @ignore
2201
- */
2202
- codecType;
2203
- /**
2204
- * @ignore
2205
- */
2206
- encodedFrameOnly;
2207
- /**
2208
- * @ignore
2209
- */
2210
- sourceType;
2211
- /**
2212
- * @ignore
2213
- */
2214
- observationPosition;
2215
- }
1878
+ var VideoTrackInfo = /** @class */ (function () {
1879
+ function VideoTrackInfo() {
1880
+ }
1881
+ return VideoTrackInfo;
1882
+ }());
2216
1883
  exports.VideoTrackInfo = VideoTrackInfo;
2217
1884
  /**
2218
1885
  * @ignore
@@ -2243,48 +1910,29 @@ var RemoteVideoDownscaleLevel;
2243
1910
  /**
2244
1911
  * The volume information of users.
2245
1912
  */
2246
- class AudioVolumeInfo {
2247
- /**
2248
- * The user ID.In the local user's callback, uid is 0.In the remote users' callback, uid is the user ID of a remote user whose instantaneous volume is the highest.
2249
- */
2250
- uid;
2251
- /**
2252
- * The volume of the user. The value ranges between 0 (the lowest volume) and 255 (the highest volume). If the local user enables audio capturing and calls muteLocalAudioStream and set it as true to mute, the value of volume indicates the volume of locally captured audio signal.
2253
- */
2254
- volume;
2255
- /**
2256
- * Voice activity status of the local user.0: The local user is not speaking.1: The local user is speaking.The vad parameter does not report the voice activity status of remote users. In a remote user's callback, the value of vad is always 1.To use this parameter, you must set reportVad to true when calling enableAudioVolumeIndication .
2257
- */
2258
- vad;
2259
- /**
2260
- * The voice pitch of the local user. The value ranges between 0.0 and 4000.0.The voicePitch parameter does not report the voice pitch of remote users. In the remote users' callback, the value of voicePitch is always 0.0.
2261
- */
2262
- voicePitch;
2263
- }
1913
+ var AudioVolumeInfo = /** @class */ (function () {
1914
+ function AudioVolumeInfo() {
1915
+ }
1916
+ return AudioVolumeInfo;
1917
+ }());
2264
1918
  exports.AudioVolumeInfo = AudioVolumeInfo;
2265
1919
  /**
2266
1920
  * The audio device information.
2267
1921
  */
2268
- class DeviceInfo {
2269
- /**
2270
- * @ignore
2271
- */
2272
- isLowLatencyAudioSupported;
2273
- }
1922
+ var DeviceInfo = /** @class */ (function () {
1923
+ function DeviceInfo() {
1924
+ }
1925
+ return DeviceInfo;
1926
+ }());
2274
1927
  exports.DeviceInfo = DeviceInfo;
2275
1928
  /**
2276
1929
  * @ignore
2277
1930
  */
2278
- class Packet {
2279
- /**
2280
- * @ignore
2281
- */
2282
- buffer;
2283
- /**
2284
- * @ignore
2285
- */
2286
- size;
2287
- }
1931
+ var Packet = /** @class */ (function () {
1932
+ function Packet() {
1933
+ }
1934
+ return Packet;
1935
+ }());
2288
1936
  exports.Packet = Packet;
2289
1937
  /**
2290
1938
  * The audio sampling rate of the stream to be pushed to the CDN.
@@ -2357,32 +2005,11 @@ var AudioCodecProfileType;
2357
2005
  /**
2358
2006
  * Local audio statistics.
2359
2007
  */
2360
- class LocalAudioStats {
2361
- /**
2362
- * The number of audio channels.
2363
- */
2364
- numChannels;
2365
- /**
2366
- * The sampling rate (Hz) of sending the local user's audio stream.
2367
- */
2368
- sentSampleRate;
2369
- /**
2370
- * The average bitrate (Kbps) of sending the local user's audio stream.
2371
- */
2372
- sentBitrate;
2373
- /**
2374
- * The internal payload codec.
2375
- */
2376
- internalCodec;
2377
- /**
2378
- * The packet loss rate (%) from the local client to the Agora server before applying the anti-packet loss strategies.
2379
- */
2380
- txPacketLossRate;
2381
- /**
2382
- * The delay of the audio device module when playing or recording audio.
2383
- */
2384
- audioDeviceDelay;
2385
- }
2008
+ var LocalAudioStats = /** @class */ (function () {
2009
+ function LocalAudioStats() {
2010
+ }
2011
+ return LocalAudioStats;
2012
+ }());
2386
2013
  exports.LocalAudioStats = LocalAudioStats;
2387
2014
  /**
2388
2015
  * States of the Media Push.
@@ -2512,53 +2139,25 @@ var RtmpStreamingEvent;
2512
2139
  })(RtmpStreamingEvent = exports.RtmpStreamingEvent || (exports.RtmpStreamingEvent = {}));
2513
2140
  /**
2514
2141
  * Image properties.
2142
+ *
2515
2143
  * This class sets the properties of the watermark and background images in the live video.
2516
2144
  */
2517
- class RtcImage {
2518
- /**
2519
- * The HTTP/HTTPS URL address of the image in the live video. The maximum length of this parameter is 1024 bytes.
2520
- */
2521
- url;
2522
- /**
2523
- * The x coordinate (pixel) of the image on the video frame (taking the upper left corner of the video frame as the origin).
2524
- */
2525
- x;
2526
- /**
2527
- * The y coordinate (pixel) of the image on the video frame (taking the upper left corner of the video frame as the origin).
2528
- */
2529
- y;
2530
- /**
2531
- * The width (pixel) of the image on the video frame.
2532
- */
2533
- width;
2534
- /**
2535
- * The height (pixel) of the image on the video frame.
2536
- */
2537
- height;
2538
- /**
2539
- * The layer index of the watermark or background image. When you use the watermark array to add a watermark or multiple watermarks, you must pass a value to zOrder in the range [1,255]; otherwise, the SDK reports an error. In other cases, zOrder can optionally be passed in the range [0,255], with 0 being the default value. 0 means the bottom layer and 255 means the top layer.
2540
- */
2541
- zOrder;
2542
- /**
2543
- * The transparency of the watermark or background image. The range of the value is [0.0,1.0]:0.0: Completely transparent.1.0: (Default) Opaque.
2544
- */
2545
- alpha;
2546
- }
2145
+ var RtcImage = /** @class */ (function () {
2146
+ function RtcImage() {
2147
+ }
2148
+ return RtcImage;
2149
+ }());
2547
2150
  exports.RtcImage = RtcImage;
2548
2151
  /**
2549
2152
  * The configuration for advanced features of the RTMP or RTMPS streaming with transcoding.
2153
+ *
2550
2154
  * If you want to enable the advanced features of streaming with transcoding, contact .
2551
2155
  */
2552
- class LiveStreamAdvancedFeature {
2553
- /**
2554
- * The feature names, including LBHQ (high-quality video with a lower bitrate) and VEO (optimized video encoder).
2555
- */
2556
- featureName;
2557
- /**
2558
- * Whether to enable the advanced features of streaming with transcoding:true: Enable the advanced features.false: (Default) Do not enable the advanced features.
2559
- */
2560
- opened;
2561
- }
2156
+ var LiveStreamAdvancedFeature = /** @class */ (function () {
2157
+ function LiveStreamAdvancedFeature() {
2158
+ }
2159
+ return LiveStreamAdvancedFeature;
2160
+ }());
2562
2161
  exports.LiveStreamAdvancedFeature = LiveStreamAdvancedFeature;
2563
2162
  /**
2564
2163
  * Connection states.
@@ -2578,7 +2177,7 @@ var ConnectionStateType;
2578
2177
  */
2579
2178
  ConnectionStateType[ConnectionStateType["ConnectionStateConnected"] = 3] = "ConnectionStateConnected";
2580
2179
  /**
2581
- * 4: The SDK keeps reconnecting to the Agora edge server. The SDK keeps rejoining the channel after being disconnected from a joined channel because of network issues.If the SDK cannot rejoin the channel within 10 seconds, it triggers onConnectionLost , stays in the ConnectionStateReconnecting state, and keeps rejoining the channel.If the SDK fails to rejoin the channel 20 minutes after being disconnected from the Agora edge server, the SDK triggers the onConnectionStateChanged callback, switches to the ConnectionStateFailed state, and stops rejoining the channel.
2180
+ * 4: The SDK keeps reconnecting to the Agora edge server. The SDK keeps rejoining the channel after being disconnected from a joined channel because of network issues.If the SDK cannot rejoin the channel within 10 seconds, it triggers onConnectionLost, stays in the ConnectionStateReconnecting state, and keeps rejoining the channel.If the SDK fails to rejoin the channel 20 minutes after being disconnected from the Agora edge server, the SDK triggers the onConnectionStateChanged callback, switches to the ConnectionStateFailed state, and stops rejoining the channel.
2582
2181
  */
2583
2182
  ConnectionStateType[ConnectionStateType["ConnectionStateReconnecting"] = 4] = "ConnectionStateReconnecting";
2584
2183
  /**
@@ -2589,210 +2188,38 @@ var ConnectionStateType;
2589
2188
  /**
2590
2189
  * Transcoding configurations of each host.
2591
2190
  */
2592
- class TranscodingUser {
2593
- /**
2594
- * The user ID of the host.
2595
- */
2596
- uid;
2597
- /**
2598
- * The x coordinate (pixel) of the host's video on the output video frame (taking the upper left corner of the video frame as the origin). The value range is [0, width], where width is the width set in LiveTranscoding .
2599
- */
2600
- x;
2601
- /**
2602
- * The y coordinate (pixel) of the host's video on the output video frame (taking the upper left corner of the video frame as the origin). The value range is [0, height], where height is the height set in LiveTranscoding .
2603
- */
2604
- y;
2605
- /**
2606
- * The width (pixel) of the host's video.
2607
- */
2608
- width;
2609
- /**
2610
- * The height (pixel) of the host's video.
2611
- */
2612
- height;
2613
- /**
2614
- * The layer index number of the host's video. The value range is [0, 100].0: (Default) The host's video is the bottom layer.100: The host's video is the top layer.If the value is less than 0 or greater than 100, ErrInvalidArgument error is returned.Setting zOrder to 0 is supported.
2615
- */
2616
- zOrder;
2617
- /**
2618
- * The transparency of the host's video. The value range is [0.0,1.0].0.0: Completely transparent.1.0: (Default) Opaque.
2619
- */
2620
- alpha;
2621
- /**
2622
- * The audio channel used by the host's audio in the output audio. The default value is 0, and the value range is [0, 5].0: (Recommended) The defaut setting, which supports dual channels at most and depends on the upstream of the host.1: The host's audio uses the FL audio channel. If the host's upstream uses multiple audio channels, the Agora server mixes them into mono first.2: The host's audio uses the FC audio channel. If the host's upstream uses multiple audio channels, the Agora server mixes them into mono first.3: The host's audio uses the FR audio channel. If the host's upstream uses multiple audio channels, the Agora server mixes them into mono first.4: The host's audio uses the BL audio channel. If the host's upstream uses multiple audio channels, the Agora server mixes them into mono first.5: The host's audio uses the BR audio channel. If the host's upstream uses multiple audio channels, the Agora server mixes them into mono first.0xFF or a value greater than 5: The host's audio is muted, and the Agora server removes the host's audio.If the value is not 0, a special player is required.
2623
- */
2624
- audioChannel;
2625
- }
2191
+ var TranscodingUser = /** @class */ (function () {
2192
+ function TranscodingUser() {
2193
+ }
2194
+ return TranscodingUser;
2195
+ }());
2626
2196
  exports.TranscodingUser = TranscodingUser;
2627
2197
  /**
2628
2198
  * Transcoding configurations for Media Push.
2629
2199
  */
2630
- class LiveTranscoding {
2631
- /**
2632
- * The width of the video in pixels. The default value is 360.When pushing video streams to the CDN, the value range of width is [64,1920]. If the value is less than 64, Agora server automatically adjusts it to 64; if the value is greater than 1920, Agora server automatically adjusts it to 1920.When pushing audio streams to the CDN, set width and height as 0.
2633
- */
2634
- width;
2635
- /**
2636
- * The height of the video in pixels. The default value is 640.When pushing video streams to the CDN, the value range of height is [64,1080]. If the value is less than 64, Agora server automatically adjusts it to 64; if the value is greater than 1080, Agora server automatically adjusts it to 1080.When pushing audio streams to the CDN, set width and height as 0.
2637
- */
2638
- height;
2639
- /**
2640
- * Bitrate of the output video stream for Media Push in Kbps. The default value is 400 Kbps.
2641
- */
2642
- videoBitrate;
2643
- /**
2644
- * Frame rate (fps) of the output video stream set for Media Push. The default value is 15. The value range is (0,30].The Agora server adjusts any value over 30 to 30.
2645
- */
2646
- videoFramerate;
2647
- /**
2648
- * DeprecatedThis member is deprecated.Latency mode:true: Low latency with unassured quality.false: (Default) High latency with assured quality.
2649
- */
2650
- lowLatency;
2651
- /**
2652
- * GOP (Group of Pictures) in fps of the video frames for Media Push. The default value is 30.
2653
- */
2654
- videoGop;
2655
- /**
2656
- * Video codec profile type for Media Push. Set it as 66, 77, or 100 (default). See VideoCodecProfileType for details.If you set this parameter to any other value, Agora adjusts it to the default value.
2657
- */
2658
- videoCodecProfile;
2659
- /**
2660
- * The background color in RGB hex value. Value only. Do not include a preceeding #. For example, 0xFFB6C1 (light pink). The default value is 0x000000 (black).
2661
- */
2662
- backgroundColor;
2663
- /**
2664
- * Video codec profile types for Media Push. See VideoCodecTypeForStream .
2665
- */
2666
- videoCodecType;
2667
- /**
2668
- * The number of users in the Media Push. The value range is [0,17].
2669
- */
2670
- userCount;
2671
- /**
2672
- * Manages the user layout configuration in the Media Push. Agora supports a maximum of 17 transcoding users in a Media Push channel. See TranscodingUser .
2673
- */
2674
- transcodingUsers;
2675
- /**
2676
- * Reserved property. Extra user-defined information to send SEI for the H.264/H.265 video stream to the CDN live client. Maximum length: 4096 bytes. For more information on SEI, see SEI-related questions.
2677
- */
2678
- transcodingExtraInfo;
2679
- /**
2680
- * DeprecatedObsolete and not recommended for use.The metadata sent to the CDN client.
2681
- */
2682
- metadata;
2683
- /**
2684
- * The watermark on the live video. The image format needs to be PNG. See RtcImage .You can add one watermark, or add multiple watermarks using an array. This parameter is used with watermarkCount.
2685
- */
2686
- watermark;
2687
- /**
2688
- * The number of watermarks on the live video. The total number of watermarks and background images can range from 0 to 10. This parameter is used with watermark.
2689
- */
2690
- watermarkCount;
2691
- /**
2692
- * The number of background images on the live video. The image format needs to be PNG. See RtcImage .You can add a background image or use an array to add multiple background images. This parameter is used with backgroundImageCount.
2693
- */
2694
- backgroundImage;
2695
- /**
2696
- * The number of background images on the live video. The total number of watermarks and background images can range from 0 to 10. This parameter is used with backgroundImage.
2697
- */
2698
- backgroundImageCount;
2699
- /**
2700
- * The audio sampling rate (Hz) of the output media stream. See AudioSampleRateType .
2701
- */
2702
- audioSampleRate;
2703
- /**
2704
- * Bitrate (Kbps) of the audio output stream for Media Push. The default value is 48, and the highest value is 128.
2705
- */
2706
- audioBitrate;
2707
- /**
2708
- * The number of audio channels for Media Push. Agora recommends choosing 1 (mono), or 2 (stereo) audio channels. Special players are required if you choose 3, 4, or 5.1: (Default) Mono2: Stereo.3: Three audio channels.4: Four audio channels.5: Five audio channels.
2709
- */
2710
- audioChannels;
2711
- /**
2712
- * Audio codec profile type for Media Push. See AudioCodecProfileType .
2713
- */
2714
- audioCodecProfile;
2715
- /**
2716
- * Advanced features of the Media Push with transcoding. See LiveStreamAdvancedFeature .
2717
- */
2718
- advancedFeatures;
2719
- /**
2720
- * The number of enabled advanced features. The default value is 0.
2721
- */
2722
- advancedFeatureCount;
2723
- }
2200
+ var LiveTranscoding = /** @class */ (function () {
2201
+ function LiveTranscoding() {
2202
+ }
2203
+ return LiveTranscoding;
2204
+ }());
2724
2205
  exports.LiveTranscoding = LiveTranscoding;
2725
2206
  /**
2726
2207
  * The video streams for local video mixing.
2727
2208
  */
2728
- class TranscodingVideoStream {
2729
- /**
2730
- * The video source type for local video mixing. See VideoSourceType .
2731
- */
2732
- sourceType;
2733
- /**
2734
- * The user ID of the remote user.Use this parameter only when the source type is VideoSourceRemote for local video mixing.
2735
- */
2736
- remoteUserUid;
2737
- /**
2738
- * The URL of the image.Use this parameter only when the source type is the image for local video mixing.
2739
- */
2740
- imageUrl;
2741
- /**
2742
- * (Optional) Media player ID. Use the parameter only when you set sourceType to VideoSourceMediaPlayer.
2743
- */
2744
- mediaPlayerId;
2745
- /**
2746
- * The relative lateral displacement of the top left corner of the video for local video mixing to the origin (the top left corner of the canvas).
2747
- */
2748
- x;
2749
- /**
2750
- * The relative longitudinal displacement of the top left corner of the captured video to the origin (the top left corner of the canvas).
2751
- */
2752
- y;
2753
- /**
2754
- * The width (px) of the video for local video mixing on the canvas.
2755
- */
2756
- width;
2757
- /**
2758
- * The height (px) of the video for local video mixing on the canvas.
2759
- */
2760
- height;
2761
- /**
2762
- * The number of the layer to which the video for the local video mixing belongs. The value range is [0, 100].0: (Default) The layer is at the bottom.100: The layer is at the top.
2763
- */
2764
- zOrder;
2765
- /**
2766
- * The transparency of the video for local video mixing. The value range is [0.0, 1.0]. 0.0 indicates that the video is completely transparent, and 1.0 indicates that it is opaque.
2767
- */
2768
- alpha;
2769
- /**
2770
- * Whether to mirror the video for the local video mixing.true: Mirror the video for the local video mixing.false: (Default) Do not mirror the video for the local video mixing.This parameter only takes effect on video source types that are cameras.
2771
- */
2772
- mirror;
2773
- }
2209
+ var TranscodingVideoStream = /** @class */ (function () {
2210
+ function TranscodingVideoStream() {
2211
+ }
2212
+ return TranscodingVideoStream;
2213
+ }());
2774
2214
  exports.TranscodingVideoStream = TranscodingVideoStream;
2775
2215
  /**
2776
2216
  * The configuration of the video mixing on the local client.
2777
- */
2778
- class LocalTranscoderConfiguration {
2779
- /**
2780
- * The number of the video streams for the video mixing on the local client.
2781
- */
2782
- streamCount;
2783
- /**
2784
- * The video streams for local video mixing. See TranscodingVideoStream .
2785
- */
2786
- videoInputStreams;
2787
- /**
2788
- * The encoding configuration of the mixed video stream after the local video mixing. See VideoEncoderConfiguration .
2789
- */
2790
- videoOutputConfiguration;
2791
- /**
2792
- * @ignore
2793
- */
2794
- syncWithPrimaryCamera;
2795
- }
2217
+ */
2218
+ var LocalTranscoderConfiguration = /** @class */ (function () {
2219
+ function LocalTranscoderConfiguration() {
2220
+ }
2221
+ return LocalTranscoderConfiguration;
2222
+ }());
2796
2223
  exports.LocalTranscoderConfiguration = LocalTranscoderConfiguration;
2797
2224
  /**
2798
2225
  * The error code of the local video mixing failure.
@@ -2831,24 +2258,11 @@ var VideoTranscoderError;
2831
2258
  /**
2832
2259
  * Configurations of the last-mile network test.
2833
2260
  */
2834
- class LastmileProbeConfig {
2835
- /**
2836
- * Sets whether to test the uplink network. Some users, for example, the audience members in a LIVE_BROADCASTING channel, do not need such a test.true: Test the uplink network.false: Do not test the uplink network.
2837
- */
2838
- probeUplink;
2839
- /**
2840
- * Sets whether to test the downlink network:true: Test the downlink network.false: Do not test the downlink network.
2841
- */
2842
- probeDownlink;
2843
- /**
2844
- * The expected maximum uplink bitrate (bps) of the local user. The value range is [100000, 5000000]. Agora recommends referring to setVideoEncoderConfiguration to set the value.
2845
- */
2846
- expectedUplinkBitrate;
2847
- /**
2848
- * The expected maximum downlink bitrate (bps) of the local user. The value range is [100000,5000000].
2849
- */
2850
- expectedDownlinkBitrate;
2851
- }
2261
+ var LastmileProbeConfig = /** @class */ (function () {
2262
+ function LastmileProbeConfig() {
2263
+ }
2264
+ return LastmileProbeConfig;
2265
+ }());
2852
2266
  exports.LastmileProbeConfig = LastmileProbeConfig;
2853
2267
  /**
2854
2268
  * The status of the last-mile probe test.
@@ -2871,42 +2285,20 @@ var LastmileProbeResultState;
2871
2285
  /**
2872
2286
  * Results of the uplink or downlink last-mile network test.
2873
2287
  */
2874
- class LastmileProbeOneWayResult {
2875
- /**
2876
- * The packet loss rate (%).
2877
- */
2878
- packetLossRate;
2879
- /**
2880
- * The network jitter (ms).
2881
- */
2882
- jitter;
2883
- /**
2884
- * The estimated available bandwidth (bps).
2885
- */
2886
- availableBandwidth;
2887
- }
2288
+ var LastmileProbeOneWayResult = /** @class */ (function () {
2289
+ function LastmileProbeOneWayResult() {
2290
+ }
2291
+ return LastmileProbeOneWayResult;
2292
+ }());
2888
2293
  exports.LastmileProbeOneWayResult = LastmileProbeOneWayResult;
2889
2294
  /**
2890
2295
  * Results of the uplink and downlink last-mile network tests.
2891
2296
  */
2892
- class LastmileProbeResult {
2893
- /**
2894
- * The status of the last-mile network tests. See LastmileProbeResultState .
2895
- */
2896
- state;
2897
- /**
2898
- * Results of the uplink last-mile network test. See LastmileProbeOneWayResult .
2899
- */
2900
- uplinkReport;
2901
- /**
2902
- * Results of the downlink last-mile network test. See LastmileProbeOneWayResult .
2903
- */
2904
- downlinkReport;
2905
- /**
2906
- * The round-trip time (ms).
2907
- */
2908
- rtt;
2909
- }
2297
+ var LastmileProbeResult = /** @class */ (function () {
2298
+ function LastmileProbeResult() {
2299
+ }
2300
+ return LastmileProbeResult;
2301
+ }());
2910
2302
  exports.LastmileProbeResult = LastmileProbeResult;
2911
2303
  /**
2912
2304
  * Reasons causing the change of the connection state.
@@ -3063,20 +2455,11 @@ var WlaccSuggestAction;
3063
2455
  /**
3064
2456
  * @ignore
3065
2457
  */
3066
- class WlAccStats {
3067
- /**
3068
- * @ignore
3069
- */
3070
- e2eDelayPercent;
3071
- /**
3072
- * @ignore
3073
- */
3074
- frozenRatioPercent;
3075
- /**
3076
- * @ignore
3077
- */
3078
- lossRatePercent;
3079
- }
2458
+ var WlAccStats = /** @class */ (function () {
2459
+ function WlAccStats() {
2460
+ }
2461
+ return WlAccStats;
2462
+ }());
3080
2463
  exports.WlAccStats = WlAccStats;
3081
2464
  /**
3082
2465
  * Network type.
@@ -3133,44 +2516,11 @@ var VideoViewSetupMode;
3133
2516
  /**
3134
2517
  * Attributes of the video canvas object.
3135
2518
  */
3136
- class VideoCanvas {
3137
- /**
3138
- * Video display window.
3139
- */
3140
- view;
3141
- /**
3142
- * The user ID.
3143
- */
3144
- uid;
3145
- /**
3146
- * The rendering mode of the video. See RenderModeType .
3147
- */
3148
- renderMode;
3149
- /**
3150
- * The mirror mode of the view. See VideoMirrorModeType .For the mirror mode of the local video view: If you use a front camera, the SDK enables the mirror mode by default; if you use a rear camera, the SDK disables the mirror mode by default.For the remote user: The mirror mode is disabled by default.
3151
- */
3152
- mirrorMode;
3153
- /**
3154
- * Setting mode of the view. See VideoViewSetupMode .
3155
- */
3156
- setupMode;
3157
- /**
3158
- * The type of the video source. See VideoSourceType .
3159
- */
3160
- sourceType;
3161
- /**
3162
- * The ID of the media player. You can get the Device ID by calling getMediaPlayerId .
3163
- */
3164
- mediaPlayerId;
3165
- /**
3166
- * (Optional) Display area of the video frame, see Rectangle . width and height represent the video pixel width and height of the area. The default value is null (width or height is 0), which means that the actual resolution of the video frame is displayed.
3167
- */
3168
- cropArea;
3169
- /**
3170
- * (Optional) Whether the receiver enables alpha mask rendering:true: The receiver enables alpha mask rendering.false: (default) The receiver disables alpha mask rendering.Alpha mask rendering can create images with transparent effects and extract portraits from videos. When used in combination with other methods, you can implement effects such as picture-in-picture and watermarking.This property applies to macOS only.The receiver can render alpha channel information only when the sender enables alpha transmission.To enable alpha transmission, .
3171
- */
3172
- enableAlphaMask;
3173
- }
2519
+ var VideoCanvas = /** @class */ (function () {
2520
+ function VideoCanvas() {
2521
+ }
2522
+ return VideoCanvas;
2523
+ }());
3174
2524
  exports.VideoCanvas = VideoCanvas;
3175
2525
  /**
3176
2526
  * The contrast level.
@@ -3193,28 +2543,11 @@ var LighteningContrastLevel;
3193
2543
  /**
3194
2544
  * Image enhancement options.
3195
2545
  */
3196
- class BeautyOptions {
3197
- /**
3198
- * The contrast level, used with the lighteningLevel parameter. The larger the value, the greater the contrast between light and dark. See LighteningContrastLevel .
3199
- */
3200
- lighteningContrastLevel;
3201
- /**
3202
- * The brightening level, in the range [0.0,1.0], where 0.0 means the original brightening. The default value is 0.0. The higher the value, the greater the degree of brightening.
3203
- */
3204
- lighteningLevel;
3205
- /**
3206
- * The smoothness level, in the range [0.0,1.0], where 0.0 means the original smoothness. The default value is 0.0. The greater the value, the greater the smoothness level.
3207
- */
3208
- smoothnessLevel;
3209
- /**
3210
- * The redness level, in the range [0.0,1.0], where 0.0 means the original redness. The default value is 0.0. The larger the value, the greater the redness level.
3211
- */
3212
- rednessLevel;
3213
- /**
3214
- * The sharpness level, in the range [0.0,1.0], where 0.0 means the original sharpness. The default value is 0.0. The larger the value, the greater the sharpness level.
3215
- */
3216
- sharpnessLevel;
3217
- }
2546
+ var BeautyOptions = /** @class */ (function () {
2547
+ function BeautyOptions() {
2548
+ }
2549
+ return BeautyOptions;
2550
+ }());
3218
2551
  exports.BeautyOptions = BeautyOptions;
3219
2552
  /**
3220
2553
  * The low-light enhancement mode.
@@ -3247,16 +2580,11 @@ var LowLightEnhanceLevel;
3247
2580
  /**
3248
2581
  * The low-light enhancement options.
3249
2582
  */
3250
- class LowlightEnhanceOptions {
3251
- /**
3252
- * The low-light enhancement mode. See LowLightEnhanceMode .
3253
- */
3254
- mode;
3255
- /**
3256
- * The low-light enhancement level. See LowLightEnhanceLevel .
3257
- */
3258
- level;
3259
- }
2583
+ var LowlightEnhanceOptions = /** @class */ (function () {
2584
+ function LowlightEnhanceOptions() {
2585
+ }
2586
+ return LowlightEnhanceOptions;
2587
+ }());
3260
2588
  exports.LowlightEnhanceOptions = LowlightEnhanceOptions;
3261
2589
  /**
3262
2590
  * Video noise reduction mode.
@@ -3293,30 +2621,20 @@ var VideoDenoiserLevel;
3293
2621
  /**
3294
2622
  * Video noise reduction options.
3295
2623
  */
3296
- class VideoDenoiserOptions {
3297
- /**
3298
- * Video noise reduction mode.
3299
- */
3300
- mode;
3301
- /**
3302
- * Video noise reduction level.
3303
- */
3304
- level;
3305
- }
2624
+ var VideoDenoiserOptions = /** @class */ (function () {
2625
+ function VideoDenoiserOptions() {
2626
+ }
2627
+ return VideoDenoiserOptions;
2628
+ }());
3306
2629
  exports.VideoDenoiserOptions = VideoDenoiserOptions;
3307
2630
  /**
3308
2631
  * The color enhancement options.
3309
2632
  */
3310
- class ColorEnhanceOptions {
3311
- /**
3312
- * The level of color enhancement. The value range is [0.0, 1.0]. 0.0 is the default value, which means no color enhancement is applied to the video. The higher the value, the higher the level of color enhancement. The default value is 0.5.
3313
- */
3314
- strengthLevel;
3315
- /**
3316
- * The level of skin tone protection. The value range is [0.0, 1.0]. 0.0 means no skin tone protection. The higher the value, the higher the level of skin tone protection. The default value is 1.0.When the level of color enhancement is higher, the portrait skin tone can be significantly distorted, so you need to set the level of skin tone protection.When the level of skin tone protection is higher, the color enhancement effect can be slightly reduced.Therefore, to get the best color enhancement effect, Agora recommends that you adjust strengthLevel and skinProtectLevel to get the most appropriate values.
3317
- */
3318
- skinProtectLevel;
3319
- }
2633
+ var ColorEnhanceOptions = /** @class */ (function () {
2634
+ function ColorEnhanceOptions() {
2635
+ }
2636
+ return ColorEnhanceOptions;
2637
+ }());
3320
2638
  exports.ColorEnhanceOptions = ColorEnhanceOptions;
3321
2639
  /**
3322
2640
  * The custom background.
@@ -3365,24 +2683,11 @@ var BackgroundBlurDegree;
3365
2683
  /**
3366
2684
  * The custom background.
3367
2685
  */
3368
- class VirtualBackgroundSource {
3369
- /**
3370
- * The custom background. See BackgroundSourceType .
3371
- */
3372
- background_source_type;
3373
- /**
3374
- * The type of the custom background image. The color of the custom background image. The format is a hexadecimal integer defined by RGB, without the # sign, such as 0xFFB6C1 for light pink. The default value is 0xFFFFFF, which signifies white. The value range is [0x000000, 0xffffff]. If the value is invalid, the SDK replaces the original background image with a white background image.This parameter takes effect only when the type of the custom background image is BackgroundColor.
3375
- */
3376
- color;
3377
- /**
3378
- * The local absolute path of the custom background image. PNG and JPG formats are supported. If the path is invalid, the SDK replaces the original background image with a white background image.This parameter takes effect only when the type of the custom background image is BackgroundImg.
3379
- */
3380
- source;
3381
- /**
3382
- * The degree of blurring applied to the custom background image. See BackgroundBlurDegree .This parameter takes effect only when the type of the custom background image is BackgroundBlur.
3383
- */
3384
- blur_degree;
3385
- }
2686
+ var VirtualBackgroundSource = /** @class */ (function () {
2687
+ function VirtualBackgroundSource() {
2688
+ }
2689
+ return VirtualBackgroundSource;
2690
+ }());
3386
2691
  exports.VirtualBackgroundSource = VirtualBackgroundSource;
3387
2692
  /**
3388
2693
  * The type of algorithms to user for background processing.
@@ -3401,16 +2706,11 @@ var SegModelType;
3401
2706
  /**
3402
2707
  * Processing properties for background images.
3403
2708
  */
3404
- class SegmentationProperty {
3405
- /**
3406
- * The type of algorithms to user for background processing. See SegModelType .
3407
- */
3408
- modelType;
3409
- /**
3410
- * The range of accuracy for identifying green colors (different shades of green) in the view. The value range is [0,1], and the default value is 0.5. The larger the value, the wider the range of identifiable shades of green. When the value of this parameter is too large, the edge of the portrait and the green color in the portrait range are also detected. Agora recommends that you dynamically adjust the value of this parameter according to the actual effect.This parameter only takes effect when modelType is set to SegModelGreen.
3411
- */
3412
- greenCapacity;
3413
- }
2709
+ var SegmentationProperty = /** @class */ (function () {
2710
+ function SegmentationProperty() {
2711
+ }
2712
+ return SegmentationProperty;
2713
+ }());
3414
2714
  exports.SegmentationProperty = SegmentationProperty;
3415
2715
  /**
3416
2716
  * The type of the audio track.
@@ -3433,12 +2733,11 @@ var AudioTrackType;
3433
2733
  /**
3434
2734
  * The configuration of custom audio tracks.
3435
2735
  */
3436
- class AudioTrackConfig {
3437
- /**
3438
- * Whether to enable the local audio-playback device:true: (Default) Enable the local audio-playback device.false: Do not enable the local audio-playback device.
3439
- */
3440
- enableLocalPlayback;
3441
- }
2736
+ var AudioTrackConfig = /** @class */ (function () {
2737
+ function AudioTrackConfig() {
2738
+ }
2739
+ return AudioTrackConfig;
2740
+ }());
3442
2741
  exports.AudioTrackConfig = AudioTrackConfig;
3443
2742
  /**
3444
2743
  * The options for SDK preset voice beautifier effects.
@@ -3462,7 +2761,7 @@ var VoiceBeautifierPreset;
3462
2761
  */
3463
2762
  VoiceBeautifierPreset[VoiceBeautifierPreset["ChatBeautifierVitality"] = 16843520] = "ChatBeautifierVitality";
3464
2763
  /**
3465
- * Singing beautifier effect.If you call setVoiceBeautifierPreset (SingingBeautifier), you can beautify a male-sounding voice and add a reverberation effect that sounds like singing in a small room. Agora recommends using this enumerator to process a male-sounding voice; otherwise, you might experience vocal distortion.If you call setVoiceBeautifierParameters (SingingBeautifier, param1, param2), you can beautify a male or female-sounding voice and add a reverberation effect.
2764
+ * Singing beautifier effect.If you call setVoiceBeautifierPreset(SingingBeautifier), you can beautify a male-sounding voice and add a reverberation effect that sounds like singing in a small room. Agora recommends using this enumerator to process a male-sounding voice; otherwise, you might experience vocal distortion.If you call setVoiceBeautifierParameters(SingingBeautifier, param1, param2), you can beautify a male or female-sounding voice and add a reverberation effect.
3466
2765
  */
3467
2766
  VoiceBeautifierPreset[VoiceBeautifierPreset["SingingBeautifier"] = 16908544] = "SingingBeautifier";
3468
2767
  /**
@@ -3498,12 +2797,13 @@ var VoiceBeautifierPreset;
3498
2797
  */
3499
2798
  VoiceBeautifierPreset[VoiceBeautifierPreset["TimbreTransformationRinging"] = 16975872] = "TimbreTransformationRinging";
3500
2799
  /**
3501
- * A ultra-high quality voice, which makes the audio clearer and restores more details.To achieve better audio effect quality, Agora recommends that you set the profile of to AudioProfileMusicHighQuality(4) or AudioProfileMusicHighQualityStereo(5) and scenario to AudioScenarioGameStreaming(3) before calling setVoiceBeautifierPreset .If you have an audio capturing device that can already restore audio details to a high degree, Agora recommends that you do not enable ultra-high quality; otherwise, the SDK may over-restore audio details, and you may not hear the anticipated voice effect.
2800
+ * A ultra-high quality voice, which makes the audio clearer and restores more details.To achieve better audio effect quality, Agora recommends that you set the profile of to AudioProfileMusicHighQuality(4) or AudioProfileMusicHighQualityStereo(5) and scenario to AudioScenarioGameStreaming(3) before calling setVoiceBeautifierPreset.If you have an audio capturing device that can already restore audio details to a high degree, Agora recommends that you do not enable ultra-high quality; otherwise, the SDK may over-restore audio details, and you may not hear the anticipated voice effect.
3502
2801
  */
3503
2802
  VoiceBeautifierPreset[VoiceBeautifierPreset["UltraHighQualityVoice"] = 17039616] = "UltraHighQualityVoice";
3504
2803
  })(VoiceBeautifierPreset = exports.VoiceBeautifierPreset || (exports.VoiceBeautifierPreset = {}));
3505
2804
  /**
3506
2805
  * Preset audio effects.
2806
+ *
3507
2807
  * To get better audio effects, Agora recommends calling setAudioProfile and setting the profile parameter as recommended below before using the preset audio effects.
3508
2808
  */
3509
2809
  var AudioEffectPreset;
@@ -3680,48 +2980,11 @@ var HeadphoneEqualizerPreset;
3680
2980
  /**
3681
2981
  * Screen sharing configurations.
3682
2982
  */
3683
- class ScreenCaptureParameters {
3684
- /**
3685
- * The video encoding resolution of the shared screen stream. See VideoDimensions . The default value is 1920 × 1080, that is, 2,073,600 pixels. Agora uses the value of this parameter to calculate the charges.If the screen dimensions are different from the value of this parameter, Agora applies the following strategies for encoding. Suppose If the value of the screen dimensions is lower than that of dimensions, for example, 1000 × 1000 pixels, the SDK uses the screen dimensions, that is, 1000 × 1000 pixels, for encoding.If the value of the screen dimensions is higher than that of dimensions, for example, 2000 × 1500, the SDK uses the maximum value under
3686
- */
3687
- dimensions;
3688
- /**
3689
- * On Windows and macOS, this represents the video encoding frame rate (fps) of the shared screen stream. The frame rate (fps) of the shared region. The default value is 5. Agora does not recommend setting this to a value greater than 15.
3690
- */
3691
- frameRate;
3692
- /**
3693
- * On Windows and macOS, this represents the video encoding bitrate of the shared screen stream. The bitrate (Kbps) of the shared region. The default value is 0 (the SDK works out a bitrate according to the dimensions of the current screen).
3694
- */
3695
- bitrate;
3696
- /**
3697
- * Whether to capture the mouse in screen sharing:true: (Default) Capture the mouse.false: Do not capture the mouse.
3698
- */
3699
- captureMouseCursor;
3700
- /**
3701
- * Whether to bring the window to the front when calling the startScreenCaptureByWindowId method to share it:true: Bring the window to the front.false: (Default) Do not bring the window to the front.
3702
- */
3703
- windowFocus;
3704
- /**
3705
- * The ID list of the windows to be blocked. When calling startScreenCaptureByDisplayId to start screen sharing, you can use this parameter to block a specified window. When calling updateScreenCaptureParameters to update screen sharing configurations, you can use this parameter to dynamically block a specified window.
3706
- */
3707
- excludeWindowList;
3708
- /**
3709
- * The number of windows to be excluded.On the Windows platform, the maximum value of this parameter is 24; if this value is exceeded, excluding the window fails.
3710
- */
3711
- excludeWindowCount;
3712
- /**
3713
- * The width (px) of the border. The default value is 5, and the value range is (0, 50].This parameter only takes effect when highLighted is set to true.
3714
- */
3715
- highLightWidth;
3716
- /**
3717
- * On Windows platforms, the color of the border in ARGB format. The default value is 0xFF8CBF26.On macOS, COLOR_CLASS refers to NSColor.
3718
- */
3719
- highLightColor;
3720
- /**
3721
- * Whether to place a border around the shared window or screen:true: Place a border.false: (Default) Do not place a border.When you share a part of a window or screen, the SDK places a border around the entire window or screen if you set this parameter to true.
3722
- */
3723
- enableHighLight;
3724
- }
2983
+ var ScreenCaptureParameters = /** @class */ (function () {
2984
+ function ScreenCaptureParameters() {
2985
+ }
2986
+ return ScreenCaptureParameters;
2987
+ }());
3725
2988
  exports.ScreenCaptureParameters = ScreenCaptureParameters;
3726
2989
  /**
3727
2990
  * Recording quality.
@@ -3746,7 +3009,7 @@ var AudioRecordingQualityType;
3746
3009
  AudioRecordingQualityType[AudioRecordingQualityType["AudioRecordingQualityUltraHigh"] = 3] = "AudioRecordingQualityUltraHigh";
3747
3010
  })(AudioRecordingQualityType = exports.AudioRecordingQualityType || (exports.AudioRecordingQualityType = {}));
3748
3011
  /**
3749
- * Recording content. Set in startAudioRecording .
3012
+ * Recording content. Set in startAudioRecording.
3750
3013
  */
3751
3014
  var AudioFileRecordingType;
3752
3015
  (function (AudioFileRecordingType) {
@@ -3784,46 +3047,20 @@ var AudioEncodedFrameObserverPosition;
3784
3047
  /**
3785
3048
  * Recording configurations.
3786
3049
  */
3787
- class AudioRecordingConfiguration {
3788
- /**
3789
- * The absolute path (including the filename extensions) of the recording file. For example: C:\music\audio.mp4.Ensure that the directory for the log files exists and is writable.
3790
- */
3791
- filePath;
3792
- /**
3793
- * Whether to encode the audio data:true: Encode audio data in AAC.false: (Default) Do not encode audio data, but save the recorded audio data directly.
3794
- */
3795
- encode;
3796
- /**
3797
- * Recording sample rate (Hz).16000(Default) 320004410048000If you set this parameter to 44100 or 48000, Agora recommends recording WAV files, or AAC files with quality set as AudioRecordingQualityMedium or AudioRecordingQualityHigh for better recording quality.
3798
- */
3799
- sampleRate;
3800
- /**
3801
- * The recording content. See AudioFileRecordingType .
3802
- */
3803
- fileRecordingType;
3804
- /**
3805
- * Recording quality. See AudioRecordingQualityType .Note: This parameter applies to AAC files only.
3806
- */
3807
- quality;
3808
- /**
3809
- * The audio channel of recording: The parameter supports the following values:1: (Default) Mono.2: Stereo.The actual recorded audio channel is related to the audio channel that you capture.If the captured audio is mono and recordingChannel is 2, the recorded audio is the dual-channel data that is copied from mono data, not stereo.If the captured audio is dual channel and recordingChannel is 1, the recorded audio is the mono data that is mixed by dual-channel data.The integration scheme also affects the final recorded audio channel. If you need to record in stereo, contact .
3810
- */
3811
- recordingChannel;
3812
- }
3050
+ var AudioRecordingConfiguration = /** @class */ (function () {
3051
+ function AudioRecordingConfiguration() {
3052
+ }
3053
+ return AudioRecordingConfiguration;
3054
+ }());
3813
3055
  exports.AudioRecordingConfiguration = AudioRecordingConfiguration;
3814
3056
  /**
3815
3057
  * Observer settings for the encoded audio.
3816
3058
  */
3817
- class AudioEncodedFrameObserverConfig {
3818
- /**
3819
- * Audio profile. See AudioEncodedFrameObserverPosition .
3820
- */
3821
- postionType;
3822
- /**
3823
- * Audio encoding type. See AudioEncodingType .
3824
- */
3825
- encodingType;
3826
- }
3059
+ var AudioEncodedFrameObserverConfig = /** @class */ (function () {
3060
+ function AudioEncodedFrameObserverConfig() {
3061
+ }
3062
+ return AudioEncodedFrameObserverConfig;
3063
+ }());
3827
3064
  exports.AudioEncodedFrameObserverConfig = AudioEncodedFrameObserverConfig;
3828
3065
  /**
3829
3066
  * The region for connection, which is the region where the server the SDK connects to is located.
@@ -4023,7 +3260,7 @@ var ChannelMediaRelayEvent;
4023
3260
  var ChannelMediaRelayState;
4024
3261
  (function (ChannelMediaRelayState) {
4025
3262
  /**
4026
- * 0: The initial state. After you successfully stop the channel media relay by calling stopChannelMediaRelay , the onChannelMediaRelayStateChanged callback returns this state.
3263
+ * 0: The initial state. After you successfully stop the channel media relay by calling stopChannelMediaRelay, the onChannelMediaRelayStateChanged callback returns this state.
4027
3264
  */
4028
3265
  ChannelMediaRelayState[ChannelMediaRelayState["RelayStateIdle"] = 0] = "RelayStateIdle";
4029
3266
  /**
@@ -4042,99 +3279,51 @@ var ChannelMediaRelayState;
4042
3279
  /**
4043
3280
  * Channel media information.
4044
3281
  */
4045
- class ChannelMediaInfo {
4046
- /**
4047
- * The channel name.
4048
- */
4049
- channelName;
4050
- /**
4051
- * The token that enables the user to join the channel.
4052
- */
4053
- token;
4054
- /**
4055
- * The user ID.
4056
- */
4057
- uid;
4058
- }
3282
+ var ChannelMediaInfo = /** @class */ (function () {
3283
+ function ChannelMediaInfo() {
3284
+ }
3285
+ return ChannelMediaInfo;
3286
+ }());
4059
3287
  exports.ChannelMediaInfo = ChannelMediaInfo;
4060
3288
  /**
4061
3289
  * Configuration of cross channel media relay.
4062
3290
  */
4063
- class ChannelMediaRelayConfiguration {
4064
- /**
4065
- * The information of the source channel. See ChannelMediaInfo . It contains the following members:channelName: The name of the source channel. The default value is NULL, which means the SDK applies the name of the current channel.token: The token for joining the source channel. This token is generated with the channelName and uid you set in srcInfo.If you have not enabled the App Certificate, set this parameter as the default value NULL, which means the SDK applies the App ID.If you have enabled the App Certificate, you must use the token generated with the channelName and uid, and the uid must be set as 0.uid: The unique user ID to identify the relay stream in the source channel. Agora recommends leaving the default value of 0 unchanged.
4066
- */
4067
- srcInfo;
4068
- /**
4069
- * The information of the target channel ChannelMediaInfo. It contains the following members:channelName: The name of the target channel.token: The token for joining the target channel. It is generated with the channelName and uid you set in destInfos.If you have not enabled the App Certificate, set this parameter as the default value NULL, which means the SDK applies the App ID.If you have enabled the App Certificate, you must use the token generated with the channelName and uid.If the token of any target channel expires, the whole media relay stops; hence Agora recommends that you specify the same expiration time for the tokens of all the target channels.uid: The unique user ID to identify the relay stream in the target channel. The value ranges from 0 to (2 32-1). To avoid user ID conflicts, this user ID must be different from any other user ID in the target channel. The default value is 0, which means the SDK generates a random user ID.
4070
- */
4071
- destInfos;
4072
- /**
4073
- * The number of target channels. The default value is 0, and the value range is from 0 to 4. Ensure that the value of this parameter corresponds to the number of ChannelMediaInfo structs you define in destInfo.
4074
- */
4075
- destCount;
4076
- }
3291
+ var ChannelMediaRelayConfiguration = /** @class */ (function () {
3292
+ function ChannelMediaRelayConfiguration() {
3293
+ }
3294
+ return ChannelMediaRelayConfiguration;
3295
+ }());
4077
3296
  exports.ChannelMediaRelayConfiguration = ChannelMediaRelayConfiguration;
4078
3297
  /**
4079
3298
  * The uplink network information.
4080
3299
  */
4081
- class UplinkNetworkInfo {
4082
- /**
4083
- * The target video encoder bitrate (bps).
4084
- */
4085
- video_encoder_target_bitrate_bps;
4086
- }
3300
+ var UplinkNetworkInfo = /** @class */ (function () {
3301
+ function UplinkNetworkInfo() {
3302
+ }
3303
+ return UplinkNetworkInfo;
3304
+ }());
4087
3305
  exports.UplinkNetworkInfo = UplinkNetworkInfo;
4088
3306
  /**
4089
3307
  * @ignore
4090
3308
  */
4091
- class PeerDownlinkInfo {
4092
- /**
4093
- * @ignore
4094
- */
4095
- uid;
4096
- /**
4097
- * @ignore
4098
- */
4099
- stream_type;
4100
- /**
4101
- * @ignore
4102
- */
4103
- current_downscale_level;
4104
- /**
4105
- * @ignore
4106
- */
4107
- expected_bitrate_bps;
4108
- }
3309
+ var PeerDownlinkInfo = /** @class */ (function () {
3310
+ function PeerDownlinkInfo() {
3311
+ }
3312
+ return PeerDownlinkInfo;
3313
+ }());
4109
3314
  exports.PeerDownlinkInfo = PeerDownlinkInfo;
4110
3315
  /**
4111
3316
  * @ignore
4112
3317
  */
4113
- class DownlinkNetworkInfo {
4114
- /**
4115
- * @ignore
4116
- */
4117
- lastmile_buffer_delay_time_ms;
4118
- /**
4119
- * @ignore
4120
- */
4121
- bandwidth_estimation_bps;
4122
- /**
4123
- * @ignore
4124
- */
4125
- total_downscale_level_count;
4126
- /**
4127
- * @ignore
4128
- */
4129
- peer_downlink_info;
4130
- /**
4131
- * @ignore
4132
- */
4133
- total_received_video_count;
4134
- }
3318
+ var DownlinkNetworkInfo = /** @class */ (function () {
3319
+ function DownlinkNetworkInfo() {
3320
+ }
3321
+ return DownlinkNetworkInfo;
3322
+ }());
4135
3323
  exports.DownlinkNetworkInfo = DownlinkNetworkInfo;
4136
3324
  /**
4137
3325
  * The built-in encryption mode.
3326
+ *
4138
3327
  * Agora recommends using Aes128Gcm2 or Aes256Gcm2 encrypted mode. These two modes support the use of salt for higher security.
4139
3328
  */
4140
3329
  var EncryptionMode;
@@ -4179,20 +3368,11 @@ var EncryptionMode;
4179
3368
  /**
4180
3369
  * Built-in encryption configurations.
4181
3370
  */
4182
- class EncryptionConfig {
4183
- /**
4184
- * The built-in encryption mode. See EncryptionMode . Agora recommends using Aes128Gcm2 or Aes256Gcm2 encrypted mode. These two modes support the use of salt for higher security.
4185
- */
4186
- encryptionMode;
4187
- /**
4188
- * Encryption key in string type with unlimited length. Agora recommends using a 32-byte key.If you do not set an encryption key or set it as NULL, you cannot use the built-in encryption, and the SDK returns -2.
4189
- */
4190
- encryptionKey;
4191
- /**
4192
- * Salt, 32 bytes in length. Agora recommends that you use OpenSSL to generate salt on the server side. See Media Stream Encryption for details. This parameter takes effect only in Aes128Gcm2 or Aes256Gcm2 encrypted mode. In this case, ensure that this parameter is not 0.
4193
- */
4194
- encryptionKdfSalt;
4195
- }
3371
+ var EncryptionConfig = /** @class */ (function () {
3372
+ function EncryptionConfig() {
3373
+ }
3374
+ return EncryptionConfig;
3375
+ }());
4196
3376
  exports.EncryptionConfig = EncryptionConfig;
4197
3377
  /**
4198
3378
  * Encryption error type.
@@ -4268,7 +3448,7 @@ var StreamSubscribeState;
4268
3448
  */
4269
3449
  StreamSubscribeState[StreamSubscribeState["SubStateIdle"] = 0] = "SubStateIdle";
4270
3450
  /**
4271
- * 1: Fails to subscribe to the remote stream. Possible reasons:The remote user:Calls muteLocalAudioStream (true) or muteLocalVideoStream (true) to stop sending local media stream.Calls disableAudio or disableVideo to disable the local audio or video module.Calls enableLocalAudio (false) or enableLocalVideo (false) to disable local audio or video capture.The role of the remote user is audience.The local user calls the following methods to stop receiving remote streams:Call muteRemoteAudioStream (true) or muteAllRemoteAudioStreams (true) to stop receiving the remote audio stream.Call muteRemoteVideoStream (true) or muteAllRemoteVideoStreams (true) to stop receiving the remote video stream.
3451
+ * 1: Fails to subscribe to the remote stream. Possible reasons:The remote user:Calls muteLocalAudioStream(true) or muteLocalVideoStream(true) to stop sending local media stream.Calls disableAudio or disableVideo to disable the local audio or video module.Calls enableLocalAudio(false) or enableLocalVideo(false) to disable local audio or video capture.The role of the remote user is audience.The local user calls the following methods to stop receiving remote streams:Call muteRemoteAudioStream(true) or muteAllRemoteAudioStreams(true) to stop receiving the remote audio stream.Call muteRemoteVideoStream(true) or muteAllRemoteVideoStreams(true) to stop receiving the remote video stream.
4272
3452
  */
4273
3453
  StreamSubscribeState[StreamSubscribeState["SubStateNoSubscribed"] = 1] = "SubStateNoSubscribed";
4274
3454
  /**
@@ -4290,7 +3470,7 @@ var StreamPublishState;
4290
3470
  */
4291
3471
  StreamPublishState[StreamPublishState["PubStateIdle"] = 0] = "PubStateIdle";
4292
3472
  /**
4293
- * 1: Fails to publish the local stream. Possible reasons:The local user calls muteLocalAudioStream (true) or muteLocalVideoStream (true) to stop sending local media streams.The local user calls disableAudio or disableVideo to disable the local audio or video module.The local user calls enableLocalAudio (false) or enableLocalVideo (false) to disable the local audio or video capture.The role of the local user is audience.
3473
+ * 1: Fails to publish the local stream. Possible reasons:The local user calls muteLocalAudioStream(true) or muteLocalVideoStream(true) to stop sending local media streams.The local user calls disableAudio or disableVideo to disable the local audio or video module.The local user calls enableLocalAudio(false) or enableLocalVideo(false) to disable the local audio or video capture.The role of the local user is audience.
4294
3474
  */
4295
3475
  StreamPublishState[StreamPublishState["PubStateNoPublished"] = 1] = "PubStateNoPublished";
4296
3476
  /**
@@ -4305,46 +3485,20 @@ var StreamPublishState;
4305
3485
  /**
4306
3486
  * The configuration of the audio and video call loop test.
4307
3487
  */
4308
- class EchoTestConfiguration {
4309
- /**
4310
- * The view used to render the local user's video. This parameter is only applicable to scenarios testing video devices, that is, when enableVideo is true.
4311
- */
4312
- view;
4313
- /**
4314
- * Whether to enable the audio device for the loop test:true: (Default) Enable the audio device. To test the audio device, set this parameter as true.false: Disable the audio device.
4315
- */
4316
- enableAudio;
4317
- /**
4318
- * Whether to enable the video device for the loop test:true: (Default) Enable the video device. To test the video device, set this parameter as true.false: Disable the video device.
4319
- */
4320
- enableVideo;
4321
- /**
4322
- * The token used to secure the audio and video call loop test. If you do not enable App Certificate in Agora Console, you do not need to pass a value in this parameter; if you have enabled App Certificate in Agora Console, you must pass a token in this parameter; the uid used when you generate the token must be 0xFFFFFFFF, and the channel name used must be the channel name that identifies each audio and video call loop tested. For server-side token generation, see .
4323
- */
4324
- token;
4325
- /**
4326
- * The channel name that identifies each audio and video call loop. To ensure proper loop test functionality, the channel name passed in to identify each loop test cannot be the same when users of the same project (App ID) perform audio and video call loop tests on different devices.
4327
- */
4328
- channelId;
4329
- /**
4330
- * The time interval (s) between when you start the call and when the recording plays back. The value range is [2, 10], and the default value is 2.
4331
- */
4332
- intervalInSeconds;
4333
- }
3488
+ var EchoTestConfiguration = /** @class */ (function () {
3489
+ function EchoTestConfiguration() {
3490
+ }
3491
+ return EchoTestConfiguration;
3492
+ }());
4334
3493
  exports.EchoTestConfiguration = EchoTestConfiguration;
4335
3494
  /**
4336
3495
  * The information of the user.
4337
3496
  */
4338
- class UserInfo {
4339
- /**
4340
- * The user ID.
4341
- */
4342
- uid;
4343
- /**
4344
- * User account. The maximum data length is MaxUserAccountLengthType .
4345
- */
4346
- userAccount;
4347
- }
3497
+ var UserInfo = /** @class */ (function () {
3498
+ function UserInfo() {
3499
+ }
3500
+ return UserInfo;
3501
+ }());
4348
3502
  exports.UserInfo = UserInfo;
4349
3503
  /**
4350
3504
  * The audio filter of in-ear monitoring.
@@ -4397,65 +3551,31 @@ var ThreadPriorityType;
4397
3551
  /**
4398
3552
  * The video configuration for the shared screen stream.
4399
3553
  */
4400
- class ScreenVideoParameters {
4401
- /**
4402
- * The video encoding dimension. The default value is 1280 × 720.
4403
- */
4404
- dimensions;
4405
- /**
4406
- * The video encoding frame rate (fps). The default value is 15.
4407
- */
4408
- frameRate;
4409
- /**
4410
- * The video encoding bitrate (Kbps).
4411
- */
4412
- bitrate;
4413
- /**
4414
- * The content hint for screen sharing.
4415
- */
4416
- contentHint;
4417
- }
3554
+ var ScreenVideoParameters = /** @class */ (function () {
3555
+ function ScreenVideoParameters() {
3556
+ }
3557
+ return ScreenVideoParameters;
3558
+ }());
4418
3559
  exports.ScreenVideoParameters = ScreenVideoParameters;
4419
3560
  /**
4420
3561
  * The audio configuration for the shared screen stream.
4421
- * Only available where captureAudio is true.
4422
- */
4423
- class ScreenAudioParameters {
4424
- /**
4425
- * Audio sample rate (Hz). The default value is 16000.
4426
- */
4427
- sampleRate;
4428
- /**
4429
- * The number of audio channels. The default value is 2, which means stereo.
4430
- */
4431
- channels;
4432
- /**
4433
- * The volume of the captured system audio. The value range is [0, 100]. The default value is 100.
4434
- */
4435
- captureSignalVolume;
4436
- }
3562
+ *
3563
+ * Only available where captureAudio is true .
3564
+ */
3565
+ var ScreenAudioParameters = /** @class */ (function () {
3566
+ function ScreenAudioParameters() {
3567
+ }
3568
+ return ScreenAudioParameters;
3569
+ }());
4437
3570
  exports.ScreenAudioParameters = ScreenAudioParameters;
4438
3571
  /**
4439
3572
  * @ignore
4440
3573
  */
4441
- class ScreenCaptureParameters2 {
4442
- /**
4443
- * @ignore
4444
- */
4445
- captureAudio;
4446
- /**
4447
- * @ignore
4448
- */
4449
- audioParams;
4450
- /**
4451
- * @ignore
4452
- */
4453
- captureVideo;
4454
- /**
4455
- * @ignore
4456
- */
4457
- videoParams;
4458
- }
3574
+ var ScreenCaptureParameters2 = /** @class */ (function () {
3575
+ function ScreenCaptureParameters2() {
3576
+ }
3577
+ return ScreenCaptureParameters2;
3578
+ }());
4459
3579
  exports.ScreenCaptureParameters2 = ScreenCaptureParameters2;
4460
3580
  /**
4461
3581
  * The rendering state of the media frame.`
@@ -4474,36 +3594,11 @@ var MediaTraceEvent;
4474
3594
  /**
4475
3595
  * Indicators during video frame rendering progress.
4476
3596
  */
4477
- class VideoRenderingTracingInfo {
4478
- /**
4479
- * The time interval from calling the startMediaRenderingTracing method to SDK triggering the onVideoRenderingTracingResult callback. The unit is milliseconds. Agora recommends you call startMediaRenderingTracing before joining a channel.
4480
- */
4481
- elapsedTime;
4482
- /**
4483
- * The time interval from calling startMediaRenderingTracing to calling joinChannel . The unit is milliseconds. A negative number means to call joinChannel after calling startMediaRenderingTracing.
4484
- */
4485
- start2JoinChannel;
4486
- /**
4487
- * Time interval from calling joinChannel to successfully joining the channel. The unit is milliseconds.
4488
- */
4489
- join2JoinSuccess;
4490
- /**
4491
- * If the local user calls startMediaRenderingTracing before successfully joining the channel, this value is the time interval from the local user successfully joining the channel to the remote user joining the channel. The unit is milliseconds.If the local user calls startMediaRenderingTracing after successfully joining the channel, the value is the time interval from calling startMediaRenderingTracing to when the remote user joins the channel. The unit is milliseconds.If the local user calls startMediaRenderingTracing after the remote user joins the channel, the value is 0 and meaningless.In order to reduce the time of rendering the first frame for remote users, Agora recommends that the local user joins the channel when the remote user is in the channel to reduce this value.
4492
- */
4493
- joinSuccess2RemoteJoined;
4494
- /**
4495
- * If the local user calls startMediaRenderingTracing before the remote user joins the channel, this value is the time interval from when the remote user joins the channel to when the local user sets the remote view. The unit is milliseconds.If the local user calls startMediaRenderingTracing after the remote user joins the channel, this value is the time interval from calling startMediaRenderingTracing to setting the remote view. The unit is milliseconds.If the local user calls startMediaRenderingTracing after setting the remote view, the value is 0 and has no effect.In order to reduce the time of rendering the first frame for remote users, Agora recommends that the local user sets the remote view before the remote user joins the channel, or sets the remote view immediately after the remote user joins the channel to reduce this value.
4496
- */
4497
- remoteJoined2SetView;
4498
- /**
4499
- * If the local user calls startMediaRenderingTracing before the remote user joins the channel, this value is the time interval from the remote user joining the channel to subscribing to the remote video stream. The unit is milliseconds.If the local user calls startMediaRenderingTracing after the remote user joins the channel, this value is the time interval from calling startMediaRenderingTracing to subscribing to the remote video stream. The unit is milliseconds.If the local user calls startMediaRenderingTracing after subscribing to the remote video stream, the value is 0 and has no effect.In order to reduce the time of rendering the first frame for remote users, Agora recommends that after the remote user joins the channel, the local user immediately subscribes to the remote video stream to reduce this value.
4500
- */
4501
- remoteJoined2UnmuteVideo;
4502
- /**
4503
- * If the local user calls startMediaRenderingTracing before the remote user joins the channel, this value is the time interval from when the remote user joins the channel to when the local user receives the remote video stream. The unit is milliseconds.If the local user calls startMediaRenderingTracing after the remote user joins the channel, this value is the time interval from calling startMediaRenderingTracing to receiving the remote video stream. The unit is milliseconds.If the local user calls startMediaRenderingTracing after receiving the remote video stream, the value is 0 and has no effect.In order to reduce the time of rendering the first frame for remote users, Agora recommends that the remote user publishes video streams immediately after joining the channel, and the local user immediately subscribes to remote video streams to reduce this value.
4504
- */
4505
- remoteJoined2PacketReceived;
4506
- }
3597
+ var VideoRenderingTracingInfo = /** @class */ (function () {
3598
+ function VideoRenderingTracingInfo() {
3599
+ }
3600
+ return VideoRenderingTracingInfo;
3601
+ }());
4507
3602
  exports.VideoRenderingTracingInfo = VideoRenderingTracingInfo;
4508
3603
  /**
4509
3604
  * @ignore
@@ -4522,52 +3617,59 @@ var ConfigFetchType;
4522
3617
  /**
4523
3618
  * @ignore
4524
3619
  */
4525
- class RecorderStreamInfo {
3620
+ var RecorderStreamInfo = /** @class */ (function () {
3621
+ function RecorderStreamInfo() {
3622
+ }
3623
+ return RecorderStreamInfo;
3624
+ }());
3625
+ exports.RecorderStreamInfo = RecorderStreamInfo;
3626
+ /**
3627
+ * @ignore
3628
+ */
3629
+ var LocalProxyMode;
3630
+ (function (LocalProxyMode) {
4526
3631
  /**
4527
3632
  * @ignore
4528
3633
  */
4529
- channelId;
3634
+ LocalProxyMode[LocalProxyMode["ConnectivityFirst"] = 0] = "ConnectivityFirst";
4530
3635
  /**
4531
3636
  * @ignore
4532
3637
  */
4533
- uid;
4534
- }
4535
- exports.RecorderStreamInfo = RecorderStreamInfo;
3638
+ LocalProxyMode[LocalProxyMode["LocalOnly"] = 1] = "LocalOnly";
3639
+ })(LocalProxyMode = exports.LocalProxyMode || (exports.LocalProxyMode = {}));
3640
+ /**
3641
+ * @ignore
3642
+ */
3643
+ var LogUploadServerInfo = /** @class */ (function () {
3644
+ function LogUploadServerInfo() {
3645
+ }
3646
+ return LogUploadServerInfo;
3647
+ }());
3648
+ exports.LogUploadServerInfo = LogUploadServerInfo;
3649
+ /**
3650
+ * @ignore
3651
+ */
3652
+ var AdvancedConfigInfo = /** @class */ (function () {
3653
+ function AdvancedConfigInfo() {
3654
+ }
3655
+ return AdvancedConfigInfo;
3656
+ }());
3657
+ exports.AdvancedConfigInfo = AdvancedConfigInfo;
3658
+ /**
3659
+ * @ignore
3660
+ */
3661
+ var LocalAccessPointConfiguration = /** @class */ (function () {
3662
+ function LocalAccessPointConfiguration() {
3663
+ }
3664
+ return LocalAccessPointConfiguration;
3665
+ }());
3666
+ exports.LocalAccessPointConfiguration = LocalAccessPointConfiguration;
4536
3667
  /**
4537
3668
  * The spatial audio parameters.
4538
3669
  */
4539
- class SpatialAudioParams {
4540
- /**
4541
- * The azimuth angle of the remote user or media player relative to the local user. The value range is [0,360], and the unit is degrees, The values are as follows:0: (Default) 0 degrees, which means directly in front on the horizontal plane.90: 90 degrees, which means directly to the left on the horizontal plane.180: 180 degrees, which means directly behind on the horizontal plane.270: 270 degrees, which means directly to the right on the horizontal plane.360: 360 degrees, which means directly in front on the horizontal plane.
4542
- */
4543
- speaker_azimuth;
4544
- /**
4545
- * The elevation angle of the remote user or media player relative to the local user. The value range is [-90,90], and the unit is degrees, The values are as follows:0: (Default) 0 degrees, which means that the horizontal plane is not rotated.-90: -90 degrees, which means that the horizontal plane is rotated 90 degrees downwards.90: 90 degrees, which means that the horizontal plane is rotated 90 degrees upwards.
4546
- */
4547
- speaker_elevation;
4548
- /**
4549
- * The distance of the remote user or media player relative to the local user. The value range is [1,50], and the unit is meters. The default value is 1 meter.
4550
- */
4551
- speaker_distance;
4552
- /**
4553
- * The orientation of the remote user or media player relative to the local user. The value range is [0,180], and the unit is degrees, The values are as follows:0: (Default) 0 degrees, which means that the sound source and listener face the same direction.180: 180 degrees, which means that the sound source and listener face each other.
4554
- */
4555
- speaker_orientation;
4556
- /**
4557
- * Whether to enable audio blurring:true: Enable audio blurring.false: (Default) Disable audio blurring.
4558
- */
4559
- enable_blur;
4560
- /**
4561
- * Whether to enable air absorption, that is, to simulate the sound attenuation effect of sound transmitting in the air; under a certain transmission distance, the attenuation speed of high-frequency sound is fast, and the attenuation speed of low-frequency sound is slow.true: (Default) Enable air absorption. Make sure that the value of speaker_attenuation is not 0; otherwise, this setting does not take effect.false: Disable air absorption.
4562
- */
4563
- enable_air_absorb;
4564
- /**
4565
- * The sound attenuation coefficient of the remote user or media player. The value range is [0,1]. The values are as follows:0: Broadcast mode, where the volume and timbre are not attenuated with distance, and the volume and timbre heard by local users do not change regardless of distance.(0,0.5): Weak attenuation mode, where the volume and timbre only have a weak attenuation during the propagation, and the sound can travel farther than that in a real environment. enable_air_absorb needs to be enabled at the same time. 0.5: (Default) Simulates the attenuation of the volume in the real environment; the effect is equivalent to not setting the speaker_attenuation parameter.(0.5,1]: Strong attenuation mode, where volume and timbre attenuate rapidly during the propagation. enable_air_absorb needs to be enabled at the same time.
4566
- */
4567
- speaker_attenuation;
4568
- /**
4569
- * Whether to enable the Doppler effect: When there is a relative displacement between the sound source and the receiver of the sound source, the tone heard by the receiver changes.true: Enable the Doppler effect.false: (Default) Disable the Doppler effect.This parameter is suitable for scenarios where the sound source is moving at high speed (for example, racing games). It is not recommended for common audio and video interactive scenarios (for example, voice chat, cohosting, or online KTV).When this parameter is enabled, Agora recommends that you set a regular period (such as 30 ms), and then call the updatePlayerPositionInfo , updateSelfPosition , and updateRemotePosition methods to continuously update the relative distance between the sound source and the receiver. The following factors can cause the Doppler effect to be unpredictable or the sound to be jittery: the period of updating the distance is too long, the updating period is irregular, or the distance information is lost due to network packet loss or delay.
4570
- */
4571
- enable_doppler;
4572
- }
3670
+ var SpatialAudioParams = /** @class */ (function () {
3671
+ function SpatialAudioParams() {
3672
+ }
3673
+ return SpatialAudioParams;
3674
+ }());
4573
3675
  exports.SpatialAudioParams = SpatialAudioParams;