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

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 (64) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/js/Private/AgoraBase.js +121 -51
  3. package/js/Private/AgoraMediaBase.js +9 -7
  4. package/js/Private/IAgoraRtcEngine.js +11 -11
  5. package/js/Private/IAgoraRtcEngineEx.js +1 -1
  6. package/js/Private/IAgoraSpatialAudio.js +2 -2
  7. package/js/Private/impl/IAgoraMediaEngineImpl.js +12 -6
  8. package/js/Private/impl/IAgoraRtcEngineImpl.js +7 -7
  9. package/js/Private/internal/MusicContentCenterInternal.js +3 -0
  10. package/js/Private/internal/RtcEngineExInternal.js +24 -7
  11. package/js/Private/ti/IAgoraRtcEngine-ti.js +2 -2
  12. package/js/Renderer/WebGLRenderer/index.js +19 -19
  13. package/js/Renderer/YUVCanvasRenderer/index.js +1 -1
  14. package/package.json +3 -3
  15. package/scripts/zipBuild.js +3 -1
  16. package/ts/Private/AgoraBase.ts +278 -131
  17. package/ts/Private/AgoraMediaBase.ts +52 -34
  18. package/ts/Private/AgoraMediaPlayerTypes.ts +8 -5
  19. package/ts/Private/IAgoraLog.ts +7 -3
  20. package/ts/Private/IAgoraMediaEngine.ts +73 -31
  21. package/ts/Private/IAgoraMediaPlayer.ts +126 -64
  22. package/ts/Private/IAgoraMediaPlayerSource.ts +3 -1
  23. package/ts/Private/IAgoraRtcEngine.ts +1307 -519
  24. package/ts/Private/IAgoraRtcEngineEx.ts +227 -94
  25. package/ts/Private/IAgoraSpatialAudio.ts +70 -35
  26. package/ts/Private/IAudioDeviceManager.ts +61 -31
  27. package/ts/Private/impl/IAgoraMediaEngineImpl.ts +12 -6
  28. package/ts/Private/impl/IAgoraRtcEngineImpl.ts +9 -11
  29. package/ts/Private/internal/MusicContentCenterInternal.ts +4 -0
  30. package/ts/Private/internal/RtcEngineExInternal.ts +36 -14
  31. package/ts/Private/ti/IAgoraRtcEngine-ti.ts +2 -2
  32. package/ts/Renderer/WebGLRenderer/index.ts +26 -21
  33. package/ts/Renderer/YUVCanvasRenderer/index.ts +1 -1
  34. package/types/Private/AgoraBase.d.ts +278 -131
  35. package/types/Private/AgoraBase.d.ts.map +1 -1
  36. package/types/Private/AgoraMediaBase.d.ts +52 -34
  37. package/types/Private/AgoraMediaBase.d.ts.map +1 -1
  38. package/types/Private/AgoraMediaPlayerTypes.d.ts +8 -5
  39. package/types/Private/AgoraMediaPlayerTypes.d.ts.map +1 -1
  40. package/types/Private/IAgoraLog.d.ts +7 -3
  41. package/types/Private/IAgoraLog.d.ts.map +1 -1
  42. package/types/Private/IAgoraMediaEngine.d.ts +73 -31
  43. package/types/Private/IAgoraMediaEngine.d.ts.map +1 -1
  44. package/types/Private/IAgoraMediaPlayer.d.ts +126 -64
  45. package/types/Private/IAgoraMediaPlayer.d.ts.map +1 -1
  46. package/types/Private/IAgoraMediaPlayerSource.d.ts +3 -1
  47. package/types/Private/IAgoraMediaPlayerSource.d.ts.map +1 -1
  48. package/types/Private/IAgoraRtcEngine.d.ts +1308 -519
  49. package/types/Private/IAgoraRtcEngine.d.ts.map +1 -1
  50. package/types/Private/IAgoraRtcEngineEx.d.ts +227 -94
  51. package/types/Private/IAgoraRtcEngineEx.d.ts.map +1 -1
  52. package/types/Private/IAgoraSpatialAudio.d.ts +70 -35
  53. package/types/Private/IAgoraSpatialAudio.d.ts.map +1 -1
  54. package/types/Private/IAudioDeviceManager.d.ts +61 -31
  55. package/types/Private/IAudioDeviceManager.d.ts.map +1 -1
  56. package/types/Private/impl/IAgoraMediaEngineImpl.d.ts +2 -2
  57. package/types/Private/impl/IAgoraMediaEngineImpl.d.ts.map +1 -1
  58. package/types/Private/impl/IAgoraRtcEngineImpl.d.ts +5 -5
  59. package/types/Private/impl/IAgoraRtcEngineImpl.d.ts.map +1 -1
  60. package/types/Private/internal/MusicContentCenterInternal.d.ts +1 -0
  61. package/types/Private/internal/MusicContentCenterInternal.d.ts.map +1 -1
  62. package/types/Private/internal/RtcEngineExInternal.d.ts.map +1 -1
  63. package/types/Renderer/WebGLRenderer/index.d.ts +1 -1
  64. package/types/Renderer/WebGLRenderer/index.d.ts.map +1 -1
@@ -173,15 +173,24 @@ export declare enum ErrorCodeType {
173
173
  */
174
174
  ErrInvalidArgument = 2,
175
175
  /**
176
- * 3: The SDK is not ready. Possible reasons include the following:The initialization of IRtcEngine fails. Reinitialize the IRtcEngine.No user has joined the channel when the method is called. Check the code logic.The user has not left the channel when the rate or complain method is called. Check the code logic.The audio module is disabled.The program is not complete.
176
+ * 3: The SDK is not ready. Possible reasons include the following:
177
+ * The initialization of IRtcEngine fails. Reinitialize the IRtcEngine.
178
+ * No user has joined the channel when the method is called. Check the code logic.
179
+ * The user has not left the channel when the rate or complain method is called. Check the code logic.
180
+ * The audio module is disabled.
181
+ * The program is not complete.
177
182
  */
178
183
  ErrNotReady = 3,
179
184
  /**
180
- * 4: The IRtcEngine does not support the request. Possible reasons include the following:The built-in encryption mode is incorrect, or the SDK fails to load the external encryption library. Check the encryption mode setting, or reload the external encryption library.
185
+ * 4: The IRtcEngine does not support the request. Possible reasons include the following:
186
+ * The built-in encryption mode is incorrect, or the SDK fails to load the external encryption library. Check the encryption mode setting, or reload the external encryption library.
181
187
  */
182
188
  ErrNotSupported = 4,
183
189
  /**
184
- * 5: The request is rejected. Possible reasons include the following:The IRtcEngine initialization fails. Reinitialize the IRtcEngine.The channel name is set as the empty string "" when joining the channel. Reset the channel name.When the joinChannelEx method is called to join multiple channels, the specified channel name is already in use. Reset the channel name.
190
+ * 5: The request is rejected. Possible reasons include the following:
191
+ * The IRtcEngine initialization fails. Reinitialize the IRtcEngine.
192
+ * The channel name is set as the empty string "" when joining the channel. Reset the channel name.
193
+ * When the joinChannelEx method is called to join multiple channels, the specified channel name is already in use. Reset the channel name.
185
194
  */
186
195
  ErrRefused = 5,
187
196
  /**
@@ -221,11 +230,15 @@ export declare enum ErrorCodeType {
221
230
  */
222
231
  ErrNetDown = 14,
223
232
  /**
224
- * 17: The request to join the channel is rejected. Possible reasons include the following:The user is already in the channel. Agora recommends that you use the onConnectionStateChanged callback to determine whether the user exists in the channel. Do not call this method to join the channel unless you receive the ConnectionStateDisconnected(1) state.After calling startEchoTest for the call test, the user tries to join the channel without calling stopEchoTest to end the current test. To join a channel, the call test must be ended by calling stopEchoTest.
233
+ * 17: The request to join the channel is rejected. Possible reasons include the following:
234
+ * The user is already in the channel. Agora recommends that you use the onConnectionStateChanged callback to determine whether the user exists in the channel. Do not call this method to join the channel unless you receive the ConnectionStateDisconnected (1) state.
235
+ * After calling startEchoTest for the call test, the user tries to join the channel without calling stopEchoTest to end the current test. To join a channel, the call test must be ended by calling stopEchoTest.
225
236
  */
226
237
  ErrJoinChannelRejected = 17,
227
238
  /**
228
- * 18: Fails to leave the channel. Possible reasons include the following:The user has left the channel before calling the leaveChannel method. Stop calling this method to clear this error.The user calls the leaveChannel method to leave the channel before joining the channel. In this case, no extra operation is needed.
239
+ * 18: Fails to leave the channel. Possible reasons include the following:
240
+ * The user has left the channel before calling the leaveChannel method. Stop calling this method to clear this error.
241
+ * The user calls the leaveChannel method to leave the channel before joining the channel. In this case, no extra operation is needed.
229
242
  */
230
243
  ErrLeaveChannelRejected = 18,
231
244
  /**
@@ -257,11 +270,13 @@ export declare enum ErrorCodeType {
257
270
  */
258
271
  ErrNoServerResources = 103,
259
272
  /**
260
- * 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.
273
+ * 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.
261
274
  */
262
275
  ErrTokenExpired = 109,
263
276
  /**
264
- * 110: Invalid token. Typical reasons include the following:App Certificate is enabled in Agora Console, but the code still uses App ID for authentication. Once App Certificate is enabled for a project, you must use token-based authentication.The uid used to generate the token is not the same as the uid used to join the channel.Deprecated:This enumerator is deprecated. Use ConnectionChangedInvalidToken(8) in the onConnectionStateChanged callback instead.
277
+ * 110: Invalid token. Typical reasons include the following:
278
+ * App Certificate is enabled in Agora Console, but the code still uses App ID for authentication. Once App Certificate is enabled for a project, you must use token-based authentication.
279
+ * The uid used to generate the token is not the same as the uid used to join the channel. Deprecated: This enumerator is deprecated. Use ConnectionChangedInvalidToken (8) in the onConnectionStateChanged callback instead.
265
280
  */
266
281
  ErrInvalidToken = 110,
267
282
  /**
@@ -484,7 +499,7 @@ export declare enum UserOfflineReasonType {
484
499
  */
485
500
  UserOfflineQuit = 0,
486
501
  /**
487
- * 1: The SDK times out and the user drops offline because no data packet is received within a certain period of time.If the user quits the call and the message is not passed to the SDK (due to an unreliable channel), the SDK assumes the user dropped offline.
502
+ * 1: The SDK times out and the user drops offline because no data packet is received within a certain period of time. If the user quits the call and the message is not passed to the SDK (due to an unreliable channel), the SDK assumes the user dropped offline.
488
503
  */
489
504
  UserOfflineDropped = 1,
490
505
  /**
@@ -525,7 +540,7 @@ export declare enum InterfaceIdType {
525
540
  */
526
541
  AgoraIidRtcConnection = 7,
527
542
  /**
528
- * This interface class is deprecated.
543
+ * @ignore
529
544
  */
530
545
  AgoraIidSignalingEngine = 8,
531
546
  /**
@@ -717,7 +732,9 @@ export declare enum VideoFrameType {
717
732
  */
718
733
  export declare enum OrientationMode {
719
734
  /**
720
- * 0: (Default) The output video always follows the orientation of the captured video. The receiver takes the rotational information passed on from the video encoder. This mode applies to scenarios where video orientation can be adjusted on the receiver.If the captured video is in landscape mode, the output video is in landscape mode.If the captured video is in portrait mode, the output video is in portrait mode.
735
+ * 0: (Default) The output video always follows the orientation of the captured video. The receiver takes the rotational information passed on from the video encoder. This mode applies to scenarios where video orientation can be adjusted on the receiver.
736
+ * If the captured video is in landscape mode, the output video is in landscape mode.
737
+ * If the captured video is in portrait mode, the output video is in portrait mode.
721
738
  */
722
739
  OrientationModeAdaptive = 0,
723
740
  /**
@@ -742,7 +759,7 @@ export declare enum DegradationPreference {
742
759
  */
743
760
  MaintainFramerate = 1,
744
761
  /**
745
- * 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.
762
+ * 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.
746
763
  */
747
764
  MaintainBalanced = 2,
748
765
  /**
@@ -830,7 +847,7 @@ export declare enum VideoCodecType {
830
847
  */
831
848
  VideoCodecH265 = 3,
832
849
  /**
833
- * 6: Generic.This type is used for transmitting raw video data, such as encrypted video frames. The SDK returns this type of video frames in callbacks, and you need to decode and render the frames yourself.
850
+ * 6: Generic. This type is used for transmitting raw video data, such as encrypted video frames. The SDK returns this type of video frames in callbacks, and you need to decode and render the frames yourself.
834
851
  */
835
852
  VideoCodecGeneric = 6,
836
853
  /**
@@ -846,7 +863,7 @@ export declare enum VideoCodecType {
846
863
  */
847
864
  VideoCodecVp9 = 13,
848
865
  /**
849
- * 20: Generic JPEG.This type consumes minimum computing resources and applies to IoT devices.
866
+ * 20: Generic JPEG. This type consumes minimum computing resources and applies to IoT devices.
850
867
  */
851
868
  VideoCodecGenericJpeg = 20
852
869
  }
@@ -1085,7 +1102,7 @@ export declare class VideoSubscriptionOptions {
1085
1102
  */
1086
1103
  type?: VideoStreamType;
1087
1104
  /**
1088
- * 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.
1105
+ * 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.
1089
1106
  */
1090
1107
  encodedFrameOnly?: boolean;
1091
1108
  }
@@ -1106,7 +1123,7 @@ export declare class EncodedVideoFrameInfo {
1106
1123
  */
1107
1124
  height?: number;
1108
1125
  /**
1109
- * 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.
1126
+ * 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.
1110
1127
  */
1111
1128
  framesPerSecond?: number;
1112
1129
  /**
@@ -1186,7 +1203,9 @@ export declare class AdvanceOptions {
1186
1203
  */
1187
1204
  export declare enum VideoMirrorModeType {
1188
1205
  /**
1189
- * 0: The SDK determines the mirror mode.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.
1206
+ * 0: The SDK determines the mirror mode.
1207
+ * 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.
1208
+ * For the remote user: The mirror mode is disabled by default.
1190
1209
  */
1191
1210
  VideoMirrorModeAuto = 0,
1192
1211
  /**
@@ -1224,15 +1243,15 @@ export declare enum CodecCapMask {
1224
1243
  CodecCapMaskSwEnc = 8
1225
1244
  }
1226
1245
  /**
1227
- * @ignore
1246
+ * The level of the codec capability.
1228
1247
  */
1229
1248
  export declare class CodecCapLevels {
1230
1249
  /**
1231
- * @ignore
1250
+ * Hardware decoding capability level, which represents the device's ability to perform hardware decoding on videos of different quality. See VIDEO_CODEC_CAPABILITY_LEVEL.
1232
1251
  */
1233
1252
  hwDecodingLevel?: VideoCodecCapabilityLevel;
1234
1253
  /**
1235
- * @ignore
1254
+ * Software decoding capability level, which represents the device's ability to perform software decoding on videos of different quality. See VIDEO_CODEC_CAPABILITY_LEVEL.
1236
1255
  */
1237
1256
  swDecodingLevel?: VideoCodecCapabilityLevel;
1238
1257
  }
@@ -1249,7 +1268,7 @@ export declare class CodecCapInfo {
1249
1268
  */
1250
1269
  codecCapMask?: number;
1251
1270
  /**
1252
- * @ignore
1271
+ * The level of the codec capability. See CodecCapLevels.
1253
1272
  */
1254
1273
  codecLevels?: CodecCapLevels;
1255
1274
  }
@@ -1274,7 +1293,7 @@ export declare class VideoEncoderConfiguration {
1274
1293
  */
1275
1294
  bitrate?: number;
1276
1295
  /**
1277
- * 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.
1296
+ * 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.
1278
1297
  */
1279
1298
  minBitrate?: number;
1280
1299
  /**
@@ -1286,7 +1305,7 @@ export declare class VideoEncoderConfiguration {
1286
1305
  */
1287
1306
  degradationPreference?: DegradationPreference;
1288
1307
  /**
1289
- * 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.
1308
+ * 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.
1290
1309
  */
1291
1310
  mirrorMode?: VideoMirrorModeType;
1292
1311
  /**
@@ -1301,11 +1320,11 @@ export declare class VideoEncoderConfiguration {
1301
1320
  */
1302
1321
  export declare class DataStreamConfig {
1303
1322
  /**
1304
- * 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.
1323
+ * 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.
1305
1324
  */
1306
1325
  syncWithAudio?: boolean;
1307
1326
  /**
1308
- * 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.
1327
+ * 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.
1309
1328
  */
1310
1329
  ordered?: boolean;
1311
1330
  }
@@ -1367,7 +1386,9 @@ export declare class Rectangle {
1367
1386
  /**
1368
1387
  * The position and size of the watermark on the screen.
1369
1388
  *
1370
- * 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.
1389
+ * The position and size of the watermark on the screen are determined by xRatio, yRatio, and widthRatio :
1390
+ * (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.
1391
+ * The widthRatio determines the width of the watermark.
1371
1392
  */
1372
1393
  export declare class WatermarkRatio {
1373
1394
  /**
@@ -1473,11 +1494,13 @@ export declare class RtcStats {
1473
1494
  */
1474
1495
  userCount?: number;
1475
1496
  /**
1476
- * Application CPU usage (%).The value of cpuAppUsage is always reported as 0 in the onLeaveChannel callback.
1497
+ * Application CPU usage (%).
1498
+ * The value of cpuAppUsage is always reported as 0 in the onLeaveChannel callback.
1477
1499
  */
1478
1500
  cpuAppUsage?: number;
1479
1501
  /**
1480
- * 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.
1502
+ * 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.
1503
+ * The value of cpuTotalUsage is always reported as 0 in the onLeaveChannel callback.
1481
1504
  */
1482
1505
  cpuTotalUsage?: number;
1483
1506
  /**
@@ -1485,15 +1508,15 @@ export declare class RtcStats {
1485
1508
  */
1486
1509
  gatewayRtt?: number;
1487
1510
  /**
1488
- * The memory ratio occupied by the app (%).This value is for reference only. Due to system limitations, you may not get this value.
1511
+ * The memory ratio occupied by the app (%). This value is for reference only. Due to system limitations, you may not get this value.
1489
1512
  */
1490
1513
  memoryAppUsageRatio?: number;
1491
1514
  /**
1492
- * The memory occupied by the system (%).This value is for reference only. Due to system limitations, you may not get this value.
1515
+ * The memory occupied by the system (%). This value is for reference only. Due to system limitations, you may not get this value.
1493
1516
  */
1494
1517
  memoryTotalUsageRatio?: number;
1495
1518
  /**
1496
- * The memory size occupied by the app (KB).This value is for reference only. Due to system limitations, you may not get this value.
1519
+ * The memory size occupied by the app (KB). This value is for reference only. Due to system limitations, you may not get this value.
1497
1520
  */
1498
1521
  memoryAppUsageInKbytes?: number;
1499
1522
  /**
@@ -1657,7 +1680,10 @@ export declare enum AudioAinsMode {
1657
1680
  */
1658
1681
  export declare enum AudioProfileType {
1659
1682
  /**
1660
- * 0: The default audio profile.For the interactive streaming profile: A sample rate of 48 kHz, music encoding, mono, and a bitrate of up to 64 Kbps.For the communication profile: Windows: A sample rate of 16 kHz, audio encoding, mono, and a bitrate of up to 16 Kbps.macOS: A sample rate of 32 kHz, audio encoding, mono, and a bitrate of up to 18 Kbps.
1683
+ * 0: The default audio profile.
1684
+ * For the interactive streaming profile: A sample rate of 48 kHz, music encoding, mono, and a bitrate of up to 64 Kbps.
1685
+ * For the communication profile:
1686
+ * Windows: A sample rate of 16 kHz, audio encoding, mono, and a bitrate of up to 16 Kbps. macOS: A sample rate of 32 kHz, audio encoding, mono, and a bitrate of up to 18 Kbps.
1661
1687
  */
1662
1688
  AudioProfileDefault = 0,
1663
1689
  /**
@@ -1669,7 +1695,7 @@ export declare enum AudioProfileType {
1669
1695
  */
1670
1696
  AudioProfileMusicStandard = 2,
1671
1697
  /**
1672
- * 3: A sample rate of 48 kHz, music encoding, stereo, and a bitrate of up to 80 Kbps.To implement stereo audio, you also need to call setAdvancedAudioOptions and set audioProcessingChannels to AudioProcessingStereo in AdvancedAudioOptions.
1698
+ * 3: A sample rate of 48 kHz, music encoding, stereo, and a bitrate of up to 80 Kbps. To implement stereo audio, you also need to call setAdvancedAudioOptions and set audioProcessingChannels to AudioProcessingStereo in AdvancedAudioOptions.
1673
1699
  */
1674
1700
  AudioProfileMusicStandardStereo = 3,
1675
1701
  /**
@@ -1677,7 +1703,7 @@ export declare enum AudioProfileType {
1677
1703
  */
1678
1704
  AudioProfileMusicHighQuality = 4,
1679
1705
  /**
1680
- * 5: A sample rate of 48 kHz, music encoding, stereo, and a bitrate of up to 128 Kbps.To implement stereo audio, you also need to call setAdvancedAudioOptions and set audioProcessingChannels to AudioProcessingStereo in AdvancedAudioOptions.
1706
+ * 5: A sample rate of 48 kHz, music encoding, stereo, and a bitrate of up to 128 Kbps. To implement stereo audio, you also need to call setAdvancedAudioOptions and set audioProcessingChannels to AudioProcessingStereo in AdvancedAudioOptions.
1681
1707
  */
1682
1708
  AudioProfileMusicHighQualityStereo = 5,
1683
1709
  /**
@@ -1782,7 +1808,20 @@ export declare enum VideoApplicationScenarioType {
1782
1808
  */
1783
1809
  ApplicationScenarioGeneral = 0,
1784
1810
  /**
1785
- * 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.
1811
+ * If set to ApplicationScenarioMeeting (1), the SDK automatically enables the following strategies:
1812
+ * 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.
1813
+ * 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.
1814
+ * If nobody subscribers to the high-quality stream, the SDK automatically reduces its bitrate and frame rate to save upstream bandwidth.
1815
+ * 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:
1816
+ * Resolution: 1280 × 720
1817
+ * Frame rate: 15 fps
1818
+ * Bitrate: 1600 Kbps
1819
+ * The 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.
1820
+ * If nobody subscribes to the low-quality stream, the SDK automatically disables it to save upstream bandwidth.
1821
+ * 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:
1822
+ * Resolution: 480 × 272
1823
+ * Frame rate: 15 fps
1824
+ * Bitrate: 500 Kbps 1: The meeting scenario.
1786
1825
  */
1787
1826
  ApplicationScenarioMeeting = 1
1788
1827
  }
@@ -1841,7 +1880,7 @@ export declare enum LocalAudioStreamError {
1841
1880
  */
1842
1881
  LocalAudioStreamErrorFailure = 1,
1843
1882
  /**
1844
- * 2: No permission to use the local audio capturing device. Remind your users to grant permission.Deprecated:This enumerator is deprecated. Please use RecordAudio in the onPermissionError callback instead.
1883
+ * 2: No permission to use the local audio capturing device. Remind your users to grant permission. Deprecated: This enumerator is deprecated. Please use RecordAudio in the onPermissionError callback instead.
1845
1884
  */
1846
1885
  LocalAudioStreamErrorDeviceNoPermission = 2,
1847
1886
  /**
@@ -1911,7 +1950,7 @@ export declare enum LocalVideoStreamError {
1911
1950
  */
1912
1951
  LocalVideoStreamErrorFailure = 1,
1913
1952
  /**
1914
- * 2: No permission to use the local video capturing device. Remind the user to grant permissions and rejoin the channel.Deprecated:This enumerator is deprecated. Please use CAMERA in the onPermissionError callback instead.
1953
+ * 2: No permission to use the local video capturing device. Remind the user to grant permissions and rejoin the channel. Deprecated: This enumerator is deprecated. Please use CAMERA in the onPermissionError callback instead.
1915
1954
  */
1916
1955
  LocalVideoStreamErrorDeviceNoPermission = 2,
1917
1956
  /**
@@ -1939,7 +1978,7 @@ export declare enum LocalVideoStreamError {
1939
1978
  */
1940
1979
  LocalVideoStreamErrorDeviceNotFound = 8,
1941
1980
  /**
1942
- * 9:(For macOS only) The video capture device currently in use is disconnected (such as being unplugged).
1981
+ * 9: (For macOS only) The video capture device currently in use is disconnected (such as being unplugged).
1943
1982
  */
1944
1983
  LocalVideoStreamErrorDeviceDisconnected = 9,
1945
1984
  /**
@@ -1955,7 +1994,10 @@ export declare enum LocalVideoStreamError {
1955
1994
  */
1956
1995
  LocalVideoStreamErrorScreenCaptureWindowMinimized = 11,
1957
1996
  /**
1958
- * 12: (For macOS and Windows only) The error code indicates that a window shared by the window ID has been closed or a full-screen window shared by the window ID has exited full-screen mode. After exiting full-screen mode, remote users cannot see the shared window. To prevent remote users from seeing a black screen, Agora recommends that you immediately stop screen sharing.Common scenarios for reporting this error code:When the local user closes the shared window, the SDK reports this error code.The local user shows some slides in full-screen mode first, and then shares the windows of the slides. After the user exits full-screen mode, the SDK reports this error code.The local user watches a web video or reads a web document in full-screen mode first, and then shares the window of the web video or document. After the user exits full-screen mode, the SDK reports this error code.
1997
+ * 12: (For macOS and Windows only) The error code indicates that a window shared by the window ID has been closed or a full-screen window shared by the window ID has exited full-screen mode. After exiting full-screen mode, remote users cannot see the shared window. To prevent remote users from seeing a black screen, Agora recommends that you immediately stop screen sharing. Common scenarios for reporting this error code:
1998
+ * When the local user closes the shared window, the SDK reports this error code.
1999
+ * The local user shows some slides in full-screen mode first, and then shares the windows of the slides. After the user exits full-screen mode, the SDK reports this error code.
2000
+ * The local user watches a web video or reads a web document in full-screen mode first, and then shares the window of the web video or document. After the user exits full-screen mode, the SDK reports this error code.
1959
2001
  */
1960
2002
  LocalVideoStreamErrorScreenCaptureWindowClosed = 12,
1961
2003
  /**
@@ -2119,7 +2161,7 @@ export declare enum RemoteVideoStateReason {
2119
2161
  */
2120
2162
  RemoteVideoStateReasonSdkInBackground = 12,
2121
2163
  /**
2122
- * @ignore
2164
+ * 13: The local video decoder does not support decoding the remote video stream.
2123
2165
  */
2124
2166
  RemoteVideoStateReasonCodecNotSupport = 13
2125
2167
  }
@@ -2215,7 +2257,9 @@ export declare enum RemoteVideoDownscaleLevel {
2215
2257
  */
2216
2258
  export declare class AudioVolumeInfo {
2217
2259
  /**
2218
- * 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.
2260
+ * The user ID.
2261
+ * In the local user's callback, uid is 0.
2262
+ * In the remote users' callback, uid is the user ID of a remote user whose instantaneous volume is the highest.
2219
2263
  */
2220
2264
  uid?: number;
2221
2265
  /**
@@ -2223,11 +2267,15 @@ export declare class AudioVolumeInfo {
2223
2267
  */
2224
2268
  volume?: number;
2225
2269
  /**
2226
- * 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.
2270
+ * Voice activity status of the local user.
2271
+ * 0: The local user is not speaking.
2272
+ * 1: The local user is speaking.
2273
+ * 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.
2274
+ * To use this parameter, you must set reportVad to true when calling enableAudioVolumeIndication.
2227
2275
  */
2228
2276
  vad?: number;
2229
2277
  /**
2230
- * 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.
2278
+ * 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.
2231
2279
  */
2232
2280
  voicePitch?: number;
2233
2281
  }
@@ -2363,7 +2411,9 @@ export declare enum RtmpStreamPublishState {
2363
2411
  */
2364
2412
  RtmpStreamPublishStateRunning = 2,
2365
2413
  /**
2366
- * 3: The RTMP or RTMPS streaming is recovering. When exceptions occur to the CDN, or the streaming is interrupted, the SDK tries to resume RTMP or RTMPS streaming and returns this state.If the SDK successfully resumes the streaming, RtmpStreamPublishStateRunning(2) returns.If the streaming does not resume within 60 seconds or server errors occur, RtmpStreamPublishStateFailure(4) returns. If you feel that 60 seconds is too long, you can also actively try to reconnect.
2414
+ * 3: The RTMP or RTMPS streaming is recovering. When exceptions occur to the CDN, or the streaming is interrupted, the SDK tries to resume RTMP or RTMPS streaming and returns this state.
2415
+ * If the SDK successfully resumes the streaming, RtmpStreamPublishStateRunning (2) returns.
2416
+ * If the streaming does not resume within 60 seconds or server errors occur, RtmpStreamPublishStateFailure (4) returns. If you feel that 60 seconds is too long, you can also actively try to reconnect.
2367
2417
  */
2368
2418
  RtmpStreamPublishStateRecovering = 3,
2369
2419
  /**
@@ -2500,14 +2550,16 @@ export declare class RtcImage {
2500
2550
  */
2501
2551
  zOrder?: number;
2502
2552
  /**
2503
- * 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.
2553
+ * The transparency of the watermark or background image. The range of the value is [0.0,1.0]:
2554
+ * 0.0: Completely transparent.
2555
+ * 1.0: (Default) Opaque.
2504
2556
  */
2505
2557
  alpha?: number;
2506
2558
  }
2507
2559
  /**
2508
2560
  * The configuration for advanced features of the RTMP or RTMPS streaming with transcoding.
2509
2561
  *
2510
- * If you want to enable the advanced features of streaming with transcoding, contact .
2562
+ * If you want to enable the advanced features of streaming with transcoding, contact.
2511
2563
  */
2512
2564
  export declare class LiveStreamAdvancedFeature {
2513
2565
  /**
@@ -2515,7 +2567,7 @@ export declare class LiveStreamAdvancedFeature {
2515
2567
  */
2516
2568
  featureName?: string;
2517
2569
  /**
2518
- * Whether to enable the advanced features of streaming with transcoding:true: Enable the advanced features.false: (Default) Do not enable the advanced features.
2570
+ * Whether to enable the advanced features of streaming with transcoding: true : Enable the advanced features. false : (Default) Do not enable the advanced features.
2519
2571
  */
2520
2572
  opened?: boolean;
2521
2573
  }
@@ -2524,11 +2576,15 @@ export declare class LiveStreamAdvancedFeature {
2524
2576
  */
2525
2577
  export declare enum ConnectionStateType {
2526
2578
  /**
2527
- * 1: The SDK is disconnected from the Agora edge server. The state indicates the SDK is in one of the following phases:Theinitial state before calling the joinChannel method.The app calls the leaveChannel method.
2579
+ * 1: The SDK is disconnected from the Agora edge server. The state indicates the SDK is in one of the following phases:
2580
+ * Theinitial state before calling the joinChannel method.
2581
+ * The app calls the leaveChannel method.
2528
2582
  */
2529
2583
  ConnectionStateDisconnected = 1,
2530
2584
  /**
2531
- * 2: The SDK is connecting to the Agora edge server. This state indicates that the SDK is establishing a connection with the specified channel after the app calls joinChannel.If the SDK successfully joins the channel, it triggers the onConnectionStateChanged callback and the connection state switches to ConnectionStateConnected.After the connection is established, the SDK also initializes the media and triggers onJoinChannelSuccess when everything is ready.
2585
+ * 2: The SDK is connecting to the Agora edge server. This state indicates that the SDK is establishing a connection with the specified channel after the app calls joinChannel.
2586
+ * If the SDK successfully joins the channel, it triggers the onConnectionStateChanged callback and the connection state switches to ConnectionStateConnected.
2587
+ * After the connection is established, the SDK also initializes the media and triggers onJoinChannelSuccess when everything is ready.
2532
2588
  */
2533
2589
  ConnectionStateConnecting = 2,
2534
2590
  /**
@@ -2536,11 +2592,15 @@ export declare enum ConnectionStateType {
2536
2592
  */
2537
2593
  ConnectionStateConnected = 3,
2538
2594
  /**
2539
- * 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.
2595
+ * 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.
2596
+ * If the SDK cannot rejoin the channel within 10 seconds, it triggers onConnectionLost, stays in the ConnectionStateReconnecting state, and keeps rejoining the channel.
2597
+ * 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.
2540
2598
  */
2541
2599
  ConnectionStateReconnecting = 4,
2542
2600
  /**
2543
- * 5: The SDK fails to connect to the Agora edge server or join the channel. This state indicates that the SDK stops trying to rejoin the channel. You must call leaveChannel to leave the channel.You can call joinChannel to rejoin the channel.If the SDK is banned from joining the channel by the Agora edge server through the RESTful API, the SDK triggers the onConnectionStateChanged callback.
2601
+ * 5: The SDK fails to connect to the Agora edge server or join the channel. This state indicates that the SDK stops trying to rejoin the channel. You must call leaveChannel to leave the channel.
2602
+ * You can call joinChannel to rejoin the channel.
2603
+ * If the SDK is banned from joining the channel by the Agora edge server through the RESTful API, the SDK triggers the onConnectionStateChanged callback.
2544
2604
  */
2545
2605
  ConnectionStateFailed = 5
2546
2606
  }
@@ -2569,15 +2629,21 @@ export declare class TranscodingUser {
2569
2629
  */
2570
2630
  height?: number;
2571
2631
  /**
2572
- * 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.
2632
+ * The layer index number of the host's video. The value range is [0, 100].
2633
+ * 0: (Default) The host's video is the bottom layer.
2634
+ * 100: The host's video is the top layer.
2635
+ * If the value is less than 0 or greater than 100, ErrInvalidArgument error is returned.
2636
+ * Setting zOrder to 0 is supported.
2573
2637
  */
2574
2638
  zOrder?: number;
2575
2639
  /**
2576
- * The transparency of the host's video. The value range is [0.0,1.0].0.0: Completely transparent.1.0: (Default) Opaque.
2640
+ * The transparency of the host's video. The value range is [0.0,1.0].
2641
+ * 0.0: Completely transparent.
2642
+ * 1.0: (Default) Opaque.
2577
2643
  */
2578
2644
  alpha?: number;
2579
2645
  /**
2580
- * 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.
2646
+ * 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.
2581
2647
  */
2582
2648
  audioChannel?: number;
2583
2649
  }
@@ -2586,11 +2652,15 @@ export declare class TranscodingUser {
2586
2652
  */
2587
2653
  export declare class LiveTranscoding {
2588
2654
  /**
2589
- * 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.
2655
+ * The width of the video in pixels. The default value is 360.
2656
+ * 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.
2657
+ * When pushing audio streams to the CDN, set width and height as 0.
2590
2658
  */
2591
2659
  width?: number;
2592
2660
  /**
2593
- * 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.
2661
+ * The height of the video in pixels. The default value is 640.
2662
+ * 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.
2663
+ * When pushing audio streams to the CDN, set width and height as 0.
2594
2664
  */
2595
2665
  height?: number;
2596
2666
  /**
@@ -2598,11 +2668,11 @@ export declare class LiveTranscoding {
2598
2668
  */
2599
2669
  videoBitrate?: number;
2600
2670
  /**
2601
- * 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.
2671
+ * 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.
2602
2672
  */
2603
2673
  videoFramerate?: number;
2604
2674
  /**
2605
- * DeprecatedThis member is deprecated.Latency mode:true: Low latency with unassured quality.false: (Default) High latency with assured quality.
2675
+ * Deprecated This member is deprecated. Latency mode: true : Low latency with unassured quality. false : (Default) High latency with assured quality.
2606
2676
  */
2607
2677
  lowLatency?: boolean;
2608
2678
  /**
@@ -2610,7 +2680,7 @@ export declare class LiveTranscoding {
2610
2680
  */
2611
2681
  videoGop?: number;
2612
2682
  /**
2613
- * 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.
2683
+ * 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.
2614
2684
  */
2615
2685
  videoCodecProfile?: VideoCodecProfileType;
2616
2686
  /**
@@ -2634,11 +2704,11 @@ export declare class LiveTranscoding {
2634
2704
  */
2635
2705
  transcodingExtraInfo?: string;
2636
2706
  /**
2637
- * DeprecatedObsolete and not recommended for use.The metadata sent to the CDN client.
2707
+ * Deprecated Obsolete and not recommended for use. The metadata sent to the CDN client.
2638
2708
  */
2639
2709
  metadata?: string;
2640
2710
  /**
2641
- * 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.
2711
+ * 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.
2642
2712
  */
2643
2713
  watermark?: RtcImage[];
2644
2714
  /**
@@ -2646,7 +2716,7 @@ export declare class LiveTranscoding {
2646
2716
  */
2647
2717
  watermarkCount?: number;
2648
2718
  /**
2649
- * 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.
2719
+ * 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.
2650
2720
  */
2651
2721
  backgroundImage?: RtcImage[];
2652
2722
  /**
@@ -2662,7 +2732,12 @@ export declare class LiveTranscoding {
2662
2732
  */
2663
2733
  audioBitrate?: number;
2664
2734
  /**
2665
- * 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.
2735
+ * 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.
2736
+ * 1: (Default) Mono
2737
+ * 2: Stereo.
2738
+ * 3: Three audio channels.
2739
+ * 4: Four audio channels.
2740
+ * 5: Five audio channels.
2666
2741
  */
2667
2742
  audioChannels?: number;
2668
2743
  /**
@@ -2687,11 +2762,11 @@ export declare class TranscodingVideoStream {
2687
2762
  */
2688
2763
  sourceType?: VideoSourceType;
2689
2764
  /**
2690
- * The user ID of the remote user.Use this parameter only when the source type is VideoSourceRemote for local video mixing.
2765
+ * The user ID of the remote user. Use this parameter only when the source type is VideoSourceRemote for local video mixing.
2691
2766
  */
2692
2767
  remoteUserUid?: number;
2693
2768
  /**
2694
- * The URL of the image.Use this parameter only when the source type is the image for local video mixing.
2769
+ * The URL of the image. Use this parameter only when the source type is the image for local video mixing.
2695
2770
  */
2696
2771
  imageUrl?: string;
2697
2772
  /**
@@ -2715,7 +2790,9 @@ export declare class TranscodingVideoStream {
2715
2790
  */
2716
2791
  height?: number;
2717
2792
  /**
2718
- * 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.
2793
+ * The number of the layer to which the video for the local video mixing belongs. The value range is [0, 100].
2794
+ * 0: (Default) The layer is at the bottom.
2795
+ * 100: The layer is at the top.
2719
2796
  */
2720
2797
  zOrder?: number;
2721
2798
  /**
@@ -2723,7 +2800,7 @@ export declare class TranscodingVideoStream {
2723
2800
  */
2724
2801
  alpha?: number;
2725
2802
  /**
2726
- * 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.
2803
+ * 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.
2727
2804
  */
2728
2805
  mirror?: boolean;
2729
2806
  }
@@ -2786,11 +2863,11 @@ export declare enum VideoTranscoderError {
2786
2863
  */
2787
2864
  export declare class LastmileProbeConfig {
2788
2865
  /**
2789
- * 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.
2866
+ * 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.
2790
2867
  */
2791
2868
  probeUplink?: boolean;
2792
2869
  /**
2793
- * Sets whether to test the downlink network:true: Test the downlink network.false: Do not test the downlink network.
2870
+ * Sets whether to test the downlink network: true : Test the downlink network. false : Do not test the downlink network.
2794
2871
  */
2795
2872
  probeDownlink?: boolean;
2796
2873
  /**
@@ -2894,7 +2971,9 @@ export declare enum ConnectionChangedReasonType {
2894
2971
  */
2895
2972
  ConnectionChangedInvalidChannelName = 7,
2896
2973
  /**
2897
- * 8: The connection failed because the token is not valid. Possible reasons are as follows:The App Certificate for the project is enabled in Agora Console, but you do not use a token when joining the channel. If you enable the App Certificate, you must use a token to join the channel.The uid specified when calling joinChannel to join the channel is inconsistent with the uid passed in when generating the token.
2974
+ * 8: The connection failed because the token is not valid. Possible reasons are as follows:
2975
+ * The App Certificate for the project is enabled in Agora Console, but you do not use a token when joining the channel. If you enable the App Certificate, you must use a token to join the channel.
2976
+ * The uid specified when calling joinChannel to join the channel is inconsistent with the uid passed in when generating the token.
2898
2977
  */
2899
2978
  ConnectionChangedInvalidToken = 8,
2900
2979
  /**
@@ -2902,7 +2981,9 @@ export declare enum ConnectionChangedReasonType {
2902
2981
  */
2903
2982
  ConnectionChangedTokenExpired = 9,
2904
2983
  /**
2905
- * 10: The connection is rejected by server. Possible reasons are as follows:The user is already in the channel and still calls a method, for example, joinChannel, to join the channel. Stop calling this method to clear this error.The user tries to join a channel while a test call is in progress. The user needs to join the channel after the call test ends.
2984
+ * 10: The connection is rejected by server. Possible reasons are as follows:
2985
+ * The user is already in the channel and still calls a method, for example, joinChannel, to join the channel. Stop calling this method to clear this error.
2986
+ * The user tries to join a channel while a test call is in progress. The user needs to join the channel after the call test ends.
2906
2987
  */
2907
2988
  ConnectionChangedRejectedByServer = 10,
2908
2989
  /**
@@ -2955,7 +3036,7 @@ export declare enum ConnectionChangedReasonType {
2955
3036
  */
2956
3037
  export declare enum ClientRoleChangeFailedReason {
2957
3038
  /**
2958
- * 1: The number of hosts in the channel is already at the upper limit.This enumerator is reported only when the support for 128 users is enabled. The maximum number of hosts is based on the actual number of hosts configured when you enable the 128-user feature.
3039
+ * 1: The number of hosts in the channel is already at the upper limit. This enumerator is reported only when the support for 128 users is enabled. The maximum number of hosts is based on the actual number of hosts configured when you enable the 128-user feature.
2959
3040
  */
2960
3041
  ClientRoleChangeFailedTooManyBroadcasters = 1,
2961
3042
  /**
@@ -3077,7 +3158,7 @@ export declare enum VideoViewSetupMode {
3077
3158
  */
3078
3159
  export declare class VideoCanvas {
3079
3160
  /**
3080
- * Video display window.
3161
+ * The video display window.
3081
3162
  */
3082
3163
  view?: any;
3083
3164
  /**
@@ -3085,7 +3166,7 @@ export declare class VideoCanvas {
3085
3166
  */
3086
3167
  uid?: number;
3087
3168
  /**
3088
- * @ignore
3169
+ * The background color of the video canvas in RGBA format. The default value is 0x00000000, which represents completely transparent black.
3089
3170
  */
3090
3171
  backgroundColor?: number;
3091
3172
  /**
@@ -3093,7 +3174,9 @@ export declare class VideoCanvas {
3093
3174
  */
3094
3175
  renderMode?: RenderModeType;
3095
3176
  /**
3096
- * 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.
3177
+ * The mirror mode of the view. See VideoMirrorModeType.
3178
+ * 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.
3179
+ * For the remote user: The mirror mode is disabled by default.
3097
3180
  */
3098
3181
  mirrorMode?: VideoMirrorModeType;
3099
3182
  /**
@@ -3113,7 +3196,10 @@ export declare class VideoCanvas {
3113
3196
  */
3114
3197
  cropArea?: Rectangle;
3115
3198
  /**
3116
- * (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, .
3199
+ * (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.
3200
+ * This property applies to macOS only.
3201
+ * The receiver can render alpha channel information only when the sender enables alpha transmission.
3202
+ * To enable alpha transmission,.
3117
3203
  */
3118
3204
  enableAlphaMask?: boolean;
3119
3205
  }
@@ -3250,7 +3336,9 @@ export declare class ColorEnhanceOptions {
3250
3336
  */
3251
3337
  strengthLevel?: number;
3252
3338
  /**
3253
- * 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.
3339
+ * 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.
3340
+ * 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.
3341
+ * 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.
3254
3342
  */
3255
3343
  skinProtectLevel?: number;
3256
3344
  }
@@ -3305,15 +3393,15 @@ export declare class VirtualBackgroundSource {
3305
3393
  */
3306
3394
  background_source_type?: BackgroundSourceType;
3307
3395
  /**
3308
- * 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.
3396
+ * 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.
3309
3397
  */
3310
3398
  color?: number;
3311
3399
  /**
3312
- * 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.
3400
+ * 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.
3313
3401
  */
3314
3402
  source?: string;
3315
3403
  /**
3316
- * 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.
3404
+ * 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.
3317
3405
  */
3318
3406
  blur_degree?: BackgroundBlurDegree;
3319
3407
  }
@@ -3339,7 +3427,7 @@ export declare class SegmentationProperty {
3339
3427
  */
3340
3428
  modelType?: SegModelType;
3341
3429
  /**
3342
- * 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.
3430
+ * 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.
3343
3431
  */
3344
3432
  greenCapacity?: number;
3345
3433
  }
@@ -3365,7 +3453,7 @@ export declare enum AudioTrackType {
3365
3453
  */
3366
3454
  export declare class AudioTrackConfig {
3367
3455
  /**
3368
- * 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.
3456
+ * 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.
3369
3457
  */
3370
3458
  enableLocalPlayback?: boolean;
3371
3459
  }
@@ -3378,19 +3466,21 @@ export declare enum VoiceBeautifierPreset {
3378
3466
  */
3379
3467
  VoiceBeautifierOff = 0,
3380
3468
  /**
3381
- * A more magnetic voice.Agora recommends using this enumerator to process a male-sounding voice; otherwise, you may experience vocal distortion.
3469
+ * A more magnetic voice. Agora recommends using this enumerator to process a male-sounding voice; otherwise, you may experience vocal distortion.
3382
3470
  */
3383
3471
  ChatBeautifierMagnetic = 16843008,
3384
3472
  /**
3385
- * A fresher voice.Agora recommends using this enumerator to process a female-sounding voice; otherwise, you may experience vocal distortion.
3473
+ * A fresher voice. Agora recommends using this enumerator to process a female-sounding voice; otherwise, you may experience vocal distortion.
3386
3474
  */
3387
3475
  ChatBeautifierFresh = 16843264,
3388
3476
  /**
3389
- * A more vital voice.Agora recommends using this enumerator to process a female-sounding voice; otherwise, you may experience vocal distortion.
3477
+ * A more vital voice. Agora recommends using this enumerator to process a female-sounding voice; otherwise, you may experience vocal distortion.
3390
3478
  */
3391
3479
  ChatBeautifierVitality = 16843520,
3392
3480
  /**
3393
- * 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.
3481
+ * Singing beautifier effect.
3482
+ * 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.
3483
+ * If you call setVoiceBeautifierParameters (SingingBeautifier, param1, param2), you can beautify a male or female-sounding voice and add a reverberation effect.
3394
3484
  */
3395
3485
  SingingBeautifier = 16908544,
3396
3486
  /**
@@ -3426,7 +3516,9 @@ export declare enum VoiceBeautifierPreset {
3426
3516
  */
3427
3517
  TimbreTransformationRinging = 16975872,
3428
3518
  /**
3429
- * 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.
3519
+ * A ultra-high quality voice, which makes the audio clearer and restores more details.
3520
+ * 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.
3521
+ * 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.
3430
3522
  */
3431
3523
  UltraHighQualityVoice = 17039616
3432
3524
  }
@@ -3469,31 +3561,31 @@ export declare enum AudioEffectPreset {
3469
3561
  */
3470
3562
  RoomAcousticsEthereal = 33621760,
3471
3563
  /**
3472
- * A 3D voice effect that makes the voice appear to be moving around the user. The default cycle period is 10 seconds. After setting this effect, you can call setAudioEffectParameters to modify the movement period.If the 3D voice effect is enabled, users need to use stereo audio playback devices to hear the anticipated voice effect.
3564
+ * A 3D voice effect that makes the voice appear to be moving around the user. The default cycle period is 10 seconds. After setting this effect, you can call setAudioEffectParameters to modify the movement period. If the 3D voice effect is enabled, users need to use stereo audio playback devices to hear the anticipated voice effect.
3473
3565
  */
3474
3566
  RoomAcoustics3dVoice = 33622016,
3475
3567
  /**
3476
- * Virtual surround sound, that is, the SDK generates a simulated surround sound field on the basis of stereo channels, thereby creating a surround sound effect.If the virtual surround sound is enabled, users need to use stereo audio playback devices to hear the anticipated audio effect.
3568
+ * Virtual surround sound, that is, the SDK generates a simulated surround sound field on the basis of stereo channels, thereby creating a surround sound effect. If the virtual surround sound is enabled, users need to use stereo audio playback devices to hear the anticipated audio effect.
3477
3569
  */
3478
3570
  RoomAcousticsVirtualSurroundSound = 33622272,
3479
3571
  /**
3480
- * A middle-aged man's voice.Agora recommends using this preset to process a male-sounding voice; otherwise, you may not hear the anticipated voice effect.
3572
+ * A middle-aged man's voice. Agora recommends using this preset to process a male-sounding voice; otherwise, you may not hear the anticipated voice effect.
3481
3573
  */
3482
3574
  VoiceChangerEffectUncle = 33685760,
3483
3575
  /**
3484
- * An older man's voice.Agora recommends using this preset to process a male-sounding voice; otherwise, you may not hear the anticipated voice effect.
3576
+ * An older man's voice. Agora recommends using this preset to process a male-sounding voice; otherwise, you may not hear the anticipated voice effect.
3485
3577
  */
3486
3578
  VoiceChangerEffectOldman = 33686016,
3487
3579
  /**
3488
- * A boy's voice.Agora recommends using this preset to process a male-sounding voice; otherwise, you may not hear the anticipated voice effect.
3580
+ * A boy's voice. Agora recommends using this preset to process a male-sounding voice; otherwise, you may not hear the anticipated voice effect.
3489
3581
  */
3490
3582
  VoiceChangerEffectBoy = 33686272,
3491
3583
  /**
3492
- * A young woman's voice.Agora recommends using this preset to process a female-sounding voice; otherwise, you may not hear the anticipated voice effect.
3584
+ * A young woman's voice. Agora recommends using this preset to process a female-sounding voice; otherwise, you may not hear the anticipated voice effect.
3493
3585
  */
3494
3586
  VoiceChangerEffectSister = 33686528,
3495
3587
  /**
3496
- * A girl's voice.Agora recommends using this preset to process a female-sounding voice; otherwise, you may not hear the anticipated voice effect.
3588
+ * A girl's voice. Agora recommends using this preset to process a female-sounding voice; otherwise, you may not hear the anticipated voice effect.
3497
3589
  */
3498
3590
  VoiceChangerEffectGirl = 33686784,
3499
3591
  /**
@@ -3608,7 +3700,9 @@ export declare enum HeadphoneEqualizerPreset {
3608
3700
  */
3609
3701
  export declare class ScreenCaptureParameters {
3610
3702
  /**
3611
- * 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
3703
+ * 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
3704
+ * 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.
3705
+ * If the value of the screen dimensions is higher than that of dimensions, for example, 2000 × 1500, the SDK uses the maximum value under
3612
3706
  */
3613
3707
  dimensions?: VideoDimensions;
3614
3708
  /**
@@ -3620,11 +3714,11 @@ export declare class ScreenCaptureParameters {
3620
3714
  */
3621
3715
  bitrate?: number;
3622
3716
  /**
3623
- * Whether to capture the mouse in screen sharing:true: (Default) Capture the mouse.false: Do not capture the mouse.
3717
+ * Whether to capture the mouse in screen sharing: true : (Default) Capture the mouse. false : Do not capture the mouse.
3624
3718
  */
3625
3719
  captureMouseCursor?: boolean;
3626
3720
  /**
3627
- * 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.
3721
+ * 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.
3628
3722
  */
3629
3723
  windowFocus?: boolean;
3630
3724
  /**
@@ -3632,19 +3726,20 @@ export declare class ScreenCaptureParameters {
3632
3726
  */
3633
3727
  excludeWindowList?: any[];
3634
3728
  /**
3635
- * 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.
3729
+ * 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.
3636
3730
  */
3637
3731
  excludeWindowCount?: number;
3638
3732
  /**
3639
- * 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.
3733
+ * 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.
3640
3734
  */
3641
3735
  highLightWidth?: number;
3642
3736
  /**
3643
- * On Windows platforms, the color of the border in ARGB format. The default value is 0xFF8CBF26.On macOS, COLOR_CLASS refers to NSColor.
3737
+ * On Windows platforms, the color of the border in ARGB format. The default value is 0xFF8CBF26.
3738
+ * On macOS, COLOR_CLASS refers to NSColor.
3644
3739
  */
3645
3740
  highLightColor?: number;
3646
3741
  /**
3647
- * 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.
3742
+ * 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.
3648
3743
  */
3649
3744
  enableHighLight?: boolean;
3650
3745
  }
@@ -3708,15 +3803,19 @@ export declare enum AudioEncodedFrameObserverPosition {
3708
3803
  */
3709
3804
  export declare class AudioRecordingConfiguration {
3710
3805
  /**
3711
- * 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.
3806
+ * 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.
3712
3807
  */
3713
3808
  filePath?: string;
3714
3809
  /**
3715
- * 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.
3810
+ * 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.
3716
3811
  */
3717
3812
  encode?: boolean;
3718
3813
  /**
3719
- * 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.
3814
+ * Recording sample rate (Hz).
3815
+ * 16000
3816
+ * (Default) 32000
3817
+ * 44100
3818
+ * 48000 If 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.
3720
3819
  */
3721
3820
  sampleRate?: number;
3722
3821
  /**
@@ -3724,11 +3823,15 @@ export declare class AudioRecordingConfiguration {
3724
3823
  */
3725
3824
  fileRecordingType?: AudioFileRecordingType;
3726
3825
  /**
3727
- * Recording quality. See AudioRecordingQualityType.Note: This parameter applies to AAC files only.
3826
+ * Recording quality. See AudioRecordingQualityType. Note: This parameter applies to AAC files only.
3728
3827
  */
3729
3828
  quality?: AudioRecordingQualityType;
3730
3829
  /**
3731
- * 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 .
3830
+ * The audio channel of recording: The parameter supports the following values:
3831
+ * 1: (Default) Mono.
3832
+ * 2: Stereo. The actual recorded audio channel is related to the audio channel that you capture.
3833
+ * 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.
3834
+ * 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.
3732
3835
  */
3733
3836
  recordingChannel?: number;
3734
3837
  }
@@ -3752,7 +3855,7 @@ export interface IAudioEncodedFrameObserver {
3752
3855
  /**
3753
3856
  * Gets the encoded audio data of the local user.
3754
3857
  *
3755
- * After calling registerAudioEncodedFrameObserver and setting the encoded audio as AudioEncodedFrameObserverPositionRecord , you can get the encoded audio data of the local user from this callback.
3858
+ * After calling registerAudioEncodedFrameObserver and setting the encoded audio as AudioEncodedFrameObserverPositionRecord, you can get the encoded audio data of the local user from this callback.
3756
3859
  *
3757
3860
  * @param channels The number of channels.
3758
3861
  * 1: Mono.
@@ -3765,7 +3868,7 @@ export interface IAudioEncodedFrameObserver {
3765
3868
  /**
3766
3869
  * Gets the encoded audio data of all remote users.
3767
3870
  *
3768
- * After calling registerAudioEncodedFrameObserver and setting the encoded audio as AudioEncodedFrameObserverPositionPlayback , you can get encoded audio data of all remote users through this callback.
3871
+ * After calling registerAudioEncodedFrameObserver and setting the encoded audio as AudioEncodedFrameObserverPositionPlayback, you can get encoded audio data of all remote users through this callback.
3769
3872
  *
3770
3873
  * @param samplesPerSec Recording sample rate (Hz).
3771
3874
  * @param channels The number of channels.
@@ -3780,7 +3883,7 @@ export interface IAudioEncodedFrameObserver {
3780
3883
  /**
3781
3884
  * Gets the mixed and encoded audio data of the local and all remote users.
3782
3885
  *
3783
- * After calling registerAudioEncodedFrameObserver and setting the audio profile as AudioEncodedFrameObserverPositionMixed , you can get the mixed and encoded audio data of the local and all remote users through this callback.
3886
+ * After calling registerAudioEncodedFrameObserver and setting the audio profile as AudioEncodedFrameObserverPositionMixed, you can get the mixed and encoded audio data of the local and all remote users through this callback.
3784
3887
  *
3785
3888
  * @param samplesPerSec Recording sample rate (Hz).
3786
3889
  * @param channels The number of channels.
@@ -3872,7 +3975,7 @@ export declare enum ChannelMediaRelayError {
3872
3975
  */
3873
3976
  RelayErrorServerErrorResponse = 1,
3874
3977
  /**
3875
- * 2: No server response.You can call leaveChannel to leave the channel.This error can also occur if your project has not enabled co-host token authentication. You can to enable the service for cohosting across channels before starting a channel media relay.
3978
+ * 2: No server response. You can call leaveChannel to leave the channel. This error can also occur if your project has not enabled co-host token authentication. You can to enable the service for cohosting across channels before starting a channel media relay.
3876
3979
  */
3877
3980
  RelayErrorServerNoResponse = 2,
3878
3981
  /**
@@ -4024,15 +4127,19 @@ export declare class ChannelMediaInfo {
4024
4127
  */
4025
4128
  export declare class ChannelMediaRelayConfiguration {
4026
4129
  /**
4027
- * 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.
4130
+ * 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.
4131
+ * If you have not enabled the App Certificate, set this parameter as the default value NULL, which means the SDK applies the App ID.
4132
+ * 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.
4028
4133
  */
4029
4134
  srcInfo?: ChannelMediaInfo;
4030
4135
  /**
4031
- * 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.
4136
+ * 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.
4137
+ * If you have not enabled the App Certificate, set this parameter as the default value NULL, which means the SDK applies the App ID.
4138
+ * 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.
4032
4139
  */
4033
4140
  destInfos?: ChannelMediaInfo[];
4034
4141
  /**
4035
- * 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.
4142
+ * The number of target channels. The default value is 0, and the value range is from 0 to 6. Ensure that the value of this parameter corresponds to the number of ChannelMediaInfo structs you define in destInfo.
4036
4143
  */
4037
4144
  destCount?: number;
4038
4145
  }
@@ -4143,7 +4250,7 @@ export declare class EncryptionConfig {
4143
4250
  */
4144
4251
  encryptionMode?: EncryptionMode;
4145
4252
  /**
4146
- * 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.
4253
+ * 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.
4147
4254
  */
4148
4255
  encryptionKey?: string;
4149
4256
  /**
@@ -4220,7 +4327,15 @@ export declare enum StreamSubscribeState {
4220
4327
  */
4221
4328
  SubStateIdle = 0,
4222
4329
  /**
4223
- * 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.
4330
+ * 1: Fails to subscribe to the remote stream. Possible reasons:
4331
+ * The remote user:
4332
+ * Calls muteLocalAudioStream (true) or muteLocalVideoStream (true) to stop sending local media stream.
4333
+ * Calls disableAudio or disableVideo to disable the local audio or video module.
4334
+ * Calls enableLocalAudio (false) or enableLocalVideo (false) to disable local audio or video capture.
4335
+ * The role of the remote user is audience.
4336
+ * The local user calls the following methods to stop receiving remote streams:
4337
+ * Call muteRemoteAudioStream (true) or muteAllRemoteAudioStreams (true) to stop receiving the remote audio stream.
4338
+ * Call muteRemoteVideoStream (true) or muteAllRemoteVideoStreams (true) to stop receiving the remote video stream.
4224
4339
  */
4225
4340
  SubStateNoSubscribed = 1,
4226
4341
  /**
@@ -4241,7 +4356,11 @@ export declare enum StreamPublishState {
4241
4356
  */
4242
4357
  PubStateIdle = 0,
4243
4358
  /**
4244
- * 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.
4359
+ * 1: Fails to publish the local stream. Possible reasons:
4360
+ * The local user calls muteLocalAudioStream (true) or muteLocalVideoStream (true) to stop sending local media streams.
4361
+ * The local user calls disableAudio or disableVideo to disable the local audio or video module.
4362
+ * The local user calls enableLocalAudio (false) or enableLocalVideo (false) to disable the local audio or video capture.
4363
+ * The role of the local user is audience.
4245
4364
  */
4246
4365
  PubStateNoPublished = 1,
4247
4366
  /**
@@ -4262,15 +4381,15 @@ export declare class EchoTestConfiguration {
4262
4381
  */
4263
4382
  view?: any;
4264
4383
  /**
4265
- * 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.
4384
+ * 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.
4266
4385
  */
4267
4386
  enableAudio?: boolean;
4268
4387
  /**
4269
- * 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.
4388
+ * 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.
4270
4389
  */
4271
4390
  enableVideo?: boolean;
4272
4391
  /**
4273
- * 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 .
4392
+ * 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.
4274
4393
  */
4275
4394
  token?: string;
4276
4395
  /**
@@ -4365,7 +4484,7 @@ export declare class ScreenVideoParameters {
4365
4484
  /**
4366
4485
  * The audio configuration for the shared screen stream.
4367
4486
  *
4368
- * Only available where captureAudio is true .
4487
+ * Only available where captureAudio is true.
4369
4488
  */
4370
4489
  export declare class ScreenAudioParameters {
4371
4490
  /**
@@ -4403,7 +4522,7 @@ export declare class ScreenCaptureParameters2 {
4403
4522
  videoParams?: ScreenVideoParameters;
4404
4523
  }
4405
4524
  /**
4406
- * The rendering state of the media frame.`
4525
+ * The rendering state of the media frame.
4407
4526
  */
4408
4527
  export declare enum MediaTraceEvent {
4409
4528
  /**
@@ -4432,19 +4551,31 @@ export declare class VideoRenderingTracingInfo {
4432
4551
  */
4433
4552
  join2JoinSuccess?: number;
4434
4553
  /**
4435
- * 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.
4554
+ * 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.
4555
+ * 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.
4556
+ * If the local user calls startMediaRenderingTracing after the remote user joins the channel, the value is 0 and meaningless.
4557
+ * 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.
4436
4558
  */
4437
4559
  joinSuccess2RemoteJoined?: number;
4438
4560
  /**
4439
- * 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.
4561
+ * 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.
4562
+ * 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.
4563
+ * If the local user calls startMediaRenderingTracing after setting the remote view, the value is 0 and has no effect.
4564
+ * 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.
4440
4565
  */
4441
4566
  remoteJoined2SetView?: number;
4442
4567
  /**
4443
- * 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.
4568
+ * 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.
4569
+ * 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.
4570
+ * If the local user calls startMediaRenderingTracing after subscribing to the remote video stream, the value is 0 and has no effect.
4571
+ * 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.
4444
4572
  */
4445
4573
  remoteJoined2UnmuteVideo?: number;
4446
4574
  /**
4447
- * 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.
4575
+ * 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.
4576
+ * 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.
4577
+ * If the local user calls startMediaRenderingTracing after receiving the remote video stream, the value is 0 and has no effect.
4578
+ * 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.
4448
4579
  */
4449
4580
  remoteJoined2PacketReceived?: number;
4450
4581
  }
@@ -4555,11 +4686,19 @@ export declare class LocalAccessPointConfiguration {
4555
4686
  */
4556
4687
  export declare class SpatialAudioParams {
4557
4688
  /**
4558
- * 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.
4689
+ * 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:
4690
+ * 0: (Default) 0 degrees, which means directly in front on the horizontal plane.
4691
+ * 90: 90 degrees, which means directly to the left on the horizontal plane.
4692
+ * 180: 180 degrees, which means directly behind on the horizontal plane.
4693
+ * 270: 270 degrees, which means directly to the right on the horizontal plane.
4694
+ * 360: 360 degrees, which means directly in front on the horizontal plane.
4559
4695
  */
4560
4696
  speaker_azimuth?: number;
4561
4697
  /**
4562
- * 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.
4698
+ * 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:
4699
+ * 0: (Default) 0 degrees, which means that the horizontal plane is not rotated.
4700
+ * -90: -90 degrees, which means that the horizontal plane is rotated 90 degrees downwards.
4701
+ * 90: 90 degrees, which means that the horizontal plane is rotated 90 degrees upwards.
4563
4702
  */
4564
4703
  speaker_elevation?: number;
4565
4704
  /**
@@ -4567,23 +4706,31 @@ export declare class SpatialAudioParams {
4567
4706
  */
4568
4707
  speaker_distance?: number;
4569
4708
  /**
4570
- * 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.
4709
+ * 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:
4710
+ * 0: (Default) 0 degrees, which means that the sound source and listener face the same direction.
4711
+ * 180: 180 degrees, which means that the sound source and listener face each other.
4571
4712
  */
4572
4713
  speaker_orientation?: number;
4573
4714
  /**
4574
- * Whether to enable audio blurring:true: Enable audio blurring.false: (Default) Disable audio blurring.
4715
+ * Whether to enable audio blurring: true : Enable audio blurring. false : (Default) Disable audio blurring.
4575
4716
  */
4576
4717
  enable_blur?: boolean;
4577
4718
  /**
4578
- * 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.
4719
+ * 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.
4579
4720
  */
4580
4721
  enable_air_absorb?: boolean;
4581
4722
  /**
4582
- * 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.
4723
+ * The sound attenuation coefficient of the remote user or media player. The value range is [0,1]. The values are as follows:
4724
+ * 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.
4725
+ * (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.
4726
+ * 0.5: (Default) Simulates the attenuation of the volume in the real environment; the effect is equivalent to not setting the speaker_attenuation parameter.
4727
+ * (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.
4583
4728
  */
4584
4729
  speaker_attenuation?: number;
4585
4730
  /**
4586
- * 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.
4731
+ * 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.
4732
+ * 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).
4733
+ * 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.
4587
4734
  */
4588
4735
  enable_doppler?: boolean;
4589
4736
  }