agora-electron-sdk 4.2.2-dev.4 → 4.2.2-dev.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +22 -0
- package/js/Private/AgoraBase.js +139 -53
- package/js/Private/AgoraMediaBase.js +13 -7
- package/js/Private/IAgoraRtcEngine.js +11 -11
- package/js/Private/IAgoraRtcEngineEx.js +1 -1
- package/js/Private/IAgoraSpatialAudio.js +2 -2
- package/js/Private/impl/IAgoraMediaEngineImpl.js +12 -6
- package/js/Private/impl/IAgoraRtcEngineImpl.js +7 -7
- package/js/Private/internal/IrisApiEngine.js +13 -0
- package/js/Private/internal/MusicContentCenterInternal.js +3 -0
- package/js/Private/internal/RtcEngineExInternal.js +24 -7
- package/js/Private/ti/IAgoraRtcEngine-ti.js +2 -2
- package/js/Renderer/WebGLRenderer/index.js +19 -19
- package/js/Renderer/YUVCanvasRenderer/index.js +1 -1
- package/package.json +3 -3
- package/scripts/zipBuild.js +3 -1
- package/ts/Private/AgoraBase.ts +296 -133
- package/ts/Private/AgoraMediaBase.ts +68 -34
- package/ts/Private/AgoraMediaPlayerTypes.ts +8 -5
- package/ts/Private/IAgoraLog.ts +7 -3
- package/ts/Private/IAgoraMediaEngine.ts +76 -35
- package/ts/Private/IAgoraMediaPlayer.ts +126 -64
- package/ts/Private/IAgoraMediaPlayerSource.ts +3 -1
- package/ts/Private/IAgoraRtcEngine.ts +1325 -530
- package/ts/Private/IAgoraRtcEngineEx.ts +227 -94
- package/ts/Private/IAgoraSpatialAudio.ts +71 -36
- package/ts/Private/IAudioDeviceManager.ts +61 -31
- package/ts/Private/impl/IAgoraMediaEngineImpl.ts +12 -6
- package/ts/Private/impl/IAgoraRtcEngineImpl.ts +9 -11
- package/ts/Private/internal/IrisApiEngine.ts +14 -0
- package/ts/Private/internal/MusicContentCenterInternal.ts +4 -0
- package/ts/Private/internal/RtcEngineExInternal.ts +36 -14
- package/ts/Private/ti/IAgoraRtcEngine-ti.ts +2 -2
- package/ts/Renderer/WebGLRenderer/index.ts +26 -21
- package/ts/Renderer/YUVCanvasRenderer/index.ts +1 -1
- package/types/Private/AgoraBase.d.ts +298 -135
- package/types/Private/AgoraBase.d.ts.map +1 -1
- package/types/Private/AgoraMediaBase.d.ts +69 -35
- package/types/Private/AgoraMediaBase.d.ts.map +1 -1
- package/types/Private/AgoraMediaPlayerTypes.d.ts +8 -5
- package/types/Private/AgoraMediaPlayerTypes.d.ts.map +1 -1
- package/types/Private/IAgoraLog.d.ts +7 -3
- package/types/Private/IAgoraLog.d.ts.map +1 -1
- package/types/Private/IAgoraMediaEngine.d.ts +76 -35
- package/types/Private/IAgoraMediaEngine.d.ts.map +1 -1
- package/types/Private/IAgoraMediaPlayer.d.ts +126 -64
- package/types/Private/IAgoraMediaPlayer.d.ts.map +1 -1
- package/types/Private/IAgoraMediaPlayerSource.d.ts +3 -1
- package/types/Private/IAgoraMediaPlayerSource.d.ts.map +1 -1
- package/types/Private/IAgoraRtcEngine.d.ts +1326 -530
- package/types/Private/IAgoraRtcEngine.d.ts.map +1 -1
- package/types/Private/IAgoraRtcEngineEx.d.ts +227 -94
- package/types/Private/IAgoraRtcEngineEx.d.ts.map +1 -1
- package/types/Private/IAgoraSpatialAudio.d.ts +71 -36
- package/types/Private/IAgoraSpatialAudio.d.ts.map +1 -1
- package/types/Private/IAudioDeviceManager.d.ts +61 -31
- package/types/Private/IAudioDeviceManager.d.ts.map +1 -1
- package/types/Private/impl/IAgoraMediaEngineImpl.d.ts +2 -2
- package/types/Private/impl/IAgoraMediaEngineImpl.d.ts.map +1 -1
- package/types/Private/impl/IAgoraRtcEngineImpl.d.ts +5 -5
- package/types/Private/impl/IAgoraRtcEngineImpl.d.ts.map +1 -1
- package/types/Private/internal/IrisApiEngine.d.ts.map +1 -1
- package/types/Private/internal/MusicContentCenterInternal.d.ts +1 -0
- package/types/Private/internal/MusicContentCenterInternal.d.ts.map +1 -1
- package/types/Private/internal/RtcEngineExInternal.d.ts.map +1 -1
- package/types/Renderer/WebGLRenderer/index.d.ts +1 -1
- 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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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
|
-
*
|
|
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.
|
|
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.
|
|
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
|
-
*
|
|
1246
|
+
* The level of the codec capability.
|
|
1228
1247
|
*/
|
|
1229
1248
|
export declare class CodecCapLevels {
|
|
1230
1249
|
/**
|
|
1231
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
|
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 (%).
|
|
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.
|
|
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.
|
|
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:
|
|
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:
|
|
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
|
/**
|
|
@@ -1973,7 +2015,19 @@ export declare enum LocalVideoStreamError {
|
|
|
1973
2015
|
/**
|
|
1974
2016
|
* @ignore
|
|
1975
2017
|
*/
|
|
1976
|
-
LocalVideoStreamErrorScreenCaptureNoPermission = 22
|
|
2018
|
+
LocalVideoStreamErrorScreenCaptureNoPermission = 22,
|
|
2019
|
+
/**
|
|
2020
|
+
* @ignore
|
|
2021
|
+
*/
|
|
2022
|
+
LocalVideoStreamErrorScreenCapturePaused = 23,
|
|
2023
|
+
/**
|
|
2024
|
+
* @ignore
|
|
2025
|
+
*/
|
|
2026
|
+
LocalVideoStreamErrorScreenCaptureResumed = 24,
|
|
2027
|
+
/**
|
|
2028
|
+
* @ignore
|
|
2029
|
+
*/
|
|
2030
|
+
LocalVideoStreamErrorScreenCaptureWindowRecoverFromMinimized = 25
|
|
1977
2031
|
}
|
|
1978
2032
|
/**
|
|
1979
2033
|
* Remote audio states.
|
|
@@ -2119,7 +2173,7 @@ export declare enum RemoteVideoStateReason {
|
|
|
2119
2173
|
*/
|
|
2120
2174
|
RemoteVideoStateReasonSdkInBackground = 12,
|
|
2121
2175
|
/**
|
|
2122
|
-
*
|
|
2176
|
+
* 13: The local video decoder does not support decoding the remote video stream.
|
|
2123
2177
|
*/
|
|
2124
2178
|
RemoteVideoStateReasonCodecNotSupport = 13
|
|
2125
2179
|
}
|
|
@@ -2215,7 +2269,9 @@ export declare enum RemoteVideoDownscaleLevel {
|
|
|
2215
2269
|
*/
|
|
2216
2270
|
export declare class AudioVolumeInfo {
|
|
2217
2271
|
/**
|
|
2218
|
-
* The user ID.
|
|
2272
|
+
* The user ID.
|
|
2273
|
+
* In the local user's callback, uid is 0.
|
|
2274
|
+
* In the remote users' callback, uid is the user ID of a remote user whose instantaneous volume is the highest.
|
|
2219
2275
|
*/
|
|
2220
2276
|
uid?: number;
|
|
2221
2277
|
/**
|
|
@@ -2223,11 +2279,15 @@ export declare class AudioVolumeInfo {
|
|
|
2223
2279
|
*/
|
|
2224
2280
|
volume?: number;
|
|
2225
2281
|
/**
|
|
2226
|
-
* Voice activity status of the local user.
|
|
2282
|
+
* Voice activity status of the local user.
|
|
2283
|
+
* 0: The local user is not speaking.
|
|
2284
|
+
* 1: The local user is speaking.
|
|
2285
|
+
* 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.
|
|
2286
|
+
* To use this parameter, you must set reportVad to true when calling enableAudioVolumeIndication.
|
|
2227
2287
|
*/
|
|
2228
2288
|
vad?: number;
|
|
2229
2289
|
/**
|
|
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.
|
|
2290
|
+
* 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
2291
|
*/
|
|
2232
2292
|
voicePitch?: number;
|
|
2233
2293
|
}
|
|
@@ -2363,7 +2423,9 @@ export declare enum RtmpStreamPublishState {
|
|
|
2363
2423
|
*/
|
|
2364
2424
|
RtmpStreamPublishStateRunning = 2,
|
|
2365
2425
|
/**
|
|
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.
|
|
2426
|
+
* 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.
|
|
2427
|
+
* If the SDK successfully resumes the streaming, RtmpStreamPublishStateRunning (2) returns.
|
|
2428
|
+
* 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
2429
|
*/
|
|
2368
2430
|
RtmpStreamPublishStateRecovering = 3,
|
|
2369
2431
|
/**
|
|
@@ -2500,14 +2562,16 @@ export declare class RtcImage {
|
|
|
2500
2562
|
*/
|
|
2501
2563
|
zOrder?: number;
|
|
2502
2564
|
/**
|
|
2503
|
-
* The transparency of the watermark or background image. The range of the value is [0.0,1.0]:
|
|
2565
|
+
* The transparency of the watermark or background image. The range of the value is [0.0,1.0]:
|
|
2566
|
+
* 0.0: Completely transparent.
|
|
2567
|
+
* 1.0: (Default) Opaque.
|
|
2504
2568
|
*/
|
|
2505
2569
|
alpha?: number;
|
|
2506
2570
|
}
|
|
2507
2571
|
/**
|
|
2508
2572
|
* The configuration for advanced features of the RTMP or RTMPS streaming with transcoding.
|
|
2509
2573
|
*
|
|
2510
|
-
* If you want to enable the advanced features of streaming with transcoding, contact
|
|
2574
|
+
* If you want to enable the advanced features of streaming with transcoding, contact.
|
|
2511
2575
|
*/
|
|
2512
2576
|
export declare class LiveStreamAdvancedFeature {
|
|
2513
2577
|
/**
|
|
@@ -2515,7 +2579,7 @@ export declare class LiveStreamAdvancedFeature {
|
|
|
2515
2579
|
*/
|
|
2516
2580
|
featureName?: string;
|
|
2517
2581
|
/**
|
|
2518
|
-
* Whether to enable the advanced features of streaming with transcoding:true: Enable the advanced features.false: (Default) Do not enable the advanced features.
|
|
2582
|
+
* Whether to enable the advanced features of streaming with transcoding: true : Enable the advanced features. false : (Default) Do not enable the advanced features.
|
|
2519
2583
|
*/
|
|
2520
2584
|
opened?: boolean;
|
|
2521
2585
|
}
|
|
@@ -2524,11 +2588,15 @@ export declare class LiveStreamAdvancedFeature {
|
|
|
2524
2588
|
*/
|
|
2525
2589
|
export declare enum ConnectionStateType {
|
|
2526
2590
|
/**
|
|
2527
|
-
* 1: The SDK is disconnected from the Agora edge server. The state indicates the SDK is in one of the following phases:
|
|
2591
|
+
* 1: The SDK is disconnected from the Agora edge server. The state indicates the SDK is in one of the following phases:
|
|
2592
|
+
* Theinitial state before calling the joinChannel method.
|
|
2593
|
+
* The app calls the leaveChannel method.
|
|
2528
2594
|
*/
|
|
2529
2595
|
ConnectionStateDisconnected = 1,
|
|
2530
2596
|
/**
|
|
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.
|
|
2597
|
+
* 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.
|
|
2598
|
+
* If the SDK successfully joins the channel, it triggers the onConnectionStateChanged callback and the connection state switches to ConnectionStateConnected.
|
|
2599
|
+
* After the connection is established, the SDK also initializes the media and triggers onJoinChannelSuccess when everything is ready.
|
|
2532
2600
|
*/
|
|
2533
2601
|
ConnectionStateConnecting = 2,
|
|
2534
2602
|
/**
|
|
@@ -2536,11 +2604,15 @@ export declare enum ConnectionStateType {
|
|
|
2536
2604
|
*/
|
|
2537
2605
|
ConnectionStateConnected = 3,
|
|
2538
2606
|
/**
|
|
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.
|
|
2607
|
+
* 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.
|
|
2608
|
+
* If the SDK cannot rejoin the channel within 10 seconds, it triggers onConnectionLost, stays in the ConnectionStateReconnecting state, and keeps rejoining the channel.
|
|
2609
|
+
* 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
2610
|
*/
|
|
2541
2611
|
ConnectionStateReconnecting = 4,
|
|
2542
2612
|
/**
|
|
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.
|
|
2613
|
+
* 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.
|
|
2614
|
+
* You can call joinChannel to rejoin the channel.
|
|
2615
|
+
* 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
2616
|
*/
|
|
2545
2617
|
ConnectionStateFailed = 5
|
|
2546
2618
|
}
|
|
@@ -2569,15 +2641,21 @@ export declare class TranscodingUser {
|
|
|
2569
2641
|
*/
|
|
2570
2642
|
height?: number;
|
|
2571
2643
|
/**
|
|
2572
|
-
* The layer index number of the host's video. The value range is [0, 100].
|
|
2644
|
+
* The layer index number of the host's video. The value range is [0, 100].
|
|
2645
|
+
* 0: (Default) The host's video is the bottom layer.
|
|
2646
|
+
* 100: The host's video is the top layer.
|
|
2647
|
+
* If the value is less than 0 or greater than 100, ErrInvalidArgument error is returned.
|
|
2648
|
+
* Setting zOrder to 0 is supported.
|
|
2573
2649
|
*/
|
|
2574
2650
|
zOrder?: number;
|
|
2575
2651
|
/**
|
|
2576
|
-
* The transparency of the host's video. The value range is [0.0,1.0].
|
|
2652
|
+
* The transparency of the host's video. The value range is [0.0,1.0].
|
|
2653
|
+
* 0.0: Completely transparent.
|
|
2654
|
+
* 1.0: (Default) Opaque.
|
|
2577
2655
|
*/
|
|
2578
2656
|
alpha?: number;
|
|
2579
2657
|
/**
|
|
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.
|
|
2658
|
+
* 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
2659
|
*/
|
|
2582
2660
|
audioChannel?: number;
|
|
2583
2661
|
}
|
|
@@ -2586,11 +2664,15 @@ export declare class TranscodingUser {
|
|
|
2586
2664
|
*/
|
|
2587
2665
|
export declare class LiveTranscoding {
|
|
2588
2666
|
/**
|
|
2589
|
-
* The width of the video in pixels. The default value is 360.
|
|
2667
|
+
* The width of the video in pixels. The default value is 360.
|
|
2668
|
+
* 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.
|
|
2669
|
+
* When pushing audio streams to the CDN, set width and height as 0.
|
|
2590
2670
|
*/
|
|
2591
2671
|
width?: number;
|
|
2592
2672
|
/**
|
|
2593
|
-
* The height of the video in pixels. The default value is 640.
|
|
2673
|
+
* The height of the video in pixels. The default value is 640.
|
|
2674
|
+
* 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.
|
|
2675
|
+
* When pushing audio streams to the CDN, set width and height as 0.
|
|
2594
2676
|
*/
|
|
2595
2677
|
height?: number;
|
|
2596
2678
|
/**
|
|
@@ -2598,11 +2680,11 @@ export declare class LiveTranscoding {
|
|
|
2598
2680
|
*/
|
|
2599
2681
|
videoBitrate?: number;
|
|
2600
2682
|
/**
|
|
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.
|
|
2683
|
+
* 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
2684
|
*/
|
|
2603
2685
|
videoFramerate?: number;
|
|
2604
2686
|
/**
|
|
2605
|
-
*
|
|
2687
|
+
* Deprecated This member is deprecated. Latency mode: true : Low latency with unassured quality. false : (Default) High latency with assured quality.
|
|
2606
2688
|
*/
|
|
2607
2689
|
lowLatency?: boolean;
|
|
2608
2690
|
/**
|
|
@@ -2610,7 +2692,7 @@ export declare class LiveTranscoding {
|
|
|
2610
2692
|
*/
|
|
2611
2693
|
videoGop?: number;
|
|
2612
2694
|
/**
|
|
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.
|
|
2695
|
+
* 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
2696
|
*/
|
|
2615
2697
|
videoCodecProfile?: VideoCodecProfileType;
|
|
2616
2698
|
/**
|
|
@@ -2634,11 +2716,11 @@ export declare class LiveTranscoding {
|
|
|
2634
2716
|
*/
|
|
2635
2717
|
transcodingExtraInfo?: string;
|
|
2636
2718
|
/**
|
|
2637
|
-
*
|
|
2719
|
+
* Deprecated Obsolete and not recommended for use. The metadata sent to the CDN client.
|
|
2638
2720
|
*/
|
|
2639
2721
|
metadata?: string;
|
|
2640
2722
|
/**
|
|
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.
|
|
2723
|
+
* 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
2724
|
*/
|
|
2643
2725
|
watermark?: RtcImage[];
|
|
2644
2726
|
/**
|
|
@@ -2646,7 +2728,7 @@ export declare class LiveTranscoding {
|
|
|
2646
2728
|
*/
|
|
2647
2729
|
watermarkCount?: number;
|
|
2648
2730
|
/**
|
|
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.
|
|
2731
|
+
* 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
2732
|
*/
|
|
2651
2733
|
backgroundImage?: RtcImage[];
|
|
2652
2734
|
/**
|
|
@@ -2662,7 +2744,12 @@ export declare class LiveTranscoding {
|
|
|
2662
2744
|
*/
|
|
2663
2745
|
audioBitrate?: number;
|
|
2664
2746
|
/**
|
|
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.
|
|
2747
|
+
* 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.
|
|
2748
|
+
* 1: (Default) Mono
|
|
2749
|
+
* 2: Stereo.
|
|
2750
|
+
* 3: Three audio channels.
|
|
2751
|
+
* 4: Four audio channels.
|
|
2752
|
+
* 5: Five audio channels.
|
|
2666
2753
|
*/
|
|
2667
2754
|
audioChannels?: number;
|
|
2668
2755
|
/**
|
|
@@ -2687,11 +2774,11 @@ export declare class TranscodingVideoStream {
|
|
|
2687
2774
|
*/
|
|
2688
2775
|
sourceType?: VideoSourceType;
|
|
2689
2776
|
/**
|
|
2690
|
-
* The user ID of the remote user.Use this parameter only when the source type is VideoSourceRemote for local video mixing.
|
|
2777
|
+
* The user ID of the remote user. Use this parameter only when the source type is VideoSourceRemote for local video mixing.
|
|
2691
2778
|
*/
|
|
2692
2779
|
remoteUserUid?: number;
|
|
2693
2780
|
/**
|
|
2694
|
-
* The URL of the image.Use this parameter only when the source type is the image for local video mixing.
|
|
2781
|
+
* The URL of the image. Use this parameter only when the source type is the image for local video mixing.
|
|
2695
2782
|
*/
|
|
2696
2783
|
imageUrl?: string;
|
|
2697
2784
|
/**
|
|
@@ -2715,7 +2802,9 @@ export declare class TranscodingVideoStream {
|
|
|
2715
2802
|
*/
|
|
2716
2803
|
height?: number;
|
|
2717
2804
|
/**
|
|
2718
|
-
* The number of the layer to which the video for the local video mixing belongs. The value range is [0, 100].
|
|
2805
|
+
* The number of the layer to which the video for the local video mixing belongs. The value range is [0, 100].
|
|
2806
|
+
* 0: (Default) The layer is at the bottom.
|
|
2807
|
+
* 100: The layer is at the top.
|
|
2719
2808
|
*/
|
|
2720
2809
|
zOrder?: number;
|
|
2721
2810
|
/**
|
|
@@ -2723,7 +2812,7 @@ export declare class TranscodingVideoStream {
|
|
|
2723
2812
|
*/
|
|
2724
2813
|
alpha?: number;
|
|
2725
2814
|
/**
|
|
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.
|
|
2815
|
+
* 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
2816
|
*/
|
|
2728
2817
|
mirror?: boolean;
|
|
2729
2818
|
}
|
|
@@ -2786,11 +2875,11 @@ export declare enum VideoTranscoderError {
|
|
|
2786
2875
|
*/
|
|
2787
2876
|
export declare class LastmileProbeConfig {
|
|
2788
2877
|
/**
|
|
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.
|
|
2878
|
+
* 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
2879
|
*/
|
|
2791
2880
|
probeUplink?: boolean;
|
|
2792
2881
|
/**
|
|
2793
|
-
* Sets whether to test the downlink network:true: Test the downlink network.false: Do not test the downlink network.
|
|
2882
|
+
* Sets whether to test the downlink network: true : Test the downlink network. false : Do not test the downlink network.
|
|
2794
2883
|
*/
|
|
2795
2884
|
probeDownlink?: boolean;
|
|
2796
2885
|
/**
|
|
@@ -2894,7 +2983,9 @@ export declare enum ConnectionChangedReasonType {
|
|
|
2894
2983
|
*/
|
|
2895
2984
|
ConnectionChangedInvalidChannelName = 7,
|
|
2896
2985
|
/**
|
|
2897
|
-
* 8: The connection failed because the token is not valid. Possible reasons are as follows:
|
|
2986
|
+
* 8: The connection failed because the token is not valid. Possible reasons are as follows:
|
|
2987
|
+
* 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.
|
|
2988
|
+
* The uid specified when calling joinChannel to join the channel is inconsistent with the uid passed in when generating the token.
|
|
2898
2989
|
*/
|
|
2899
2990
|
ConnectionChangedInvalidToken = 8,
|
|
2900
2991
|
/**
|
|
@@ -2902,7 +2993,9 @@ export declare enum ConnectionChangedReasonType {
|
|
|
2902
2993
|
*/
|
|
2903
2994
|
ConnectionChangedTokenExpired = 9,
|
|
2904
2995
|
/**
|
|
2905
|
-
* 10: The connection is rejected by server. Possible reasons are as follows:
|
|
2996
|
+
* 10: The connection is rejected by server. Possible reasons are as follows:
|
|
2997
|
+
* 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.
|
|
2998
|
+
* 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
2999
|
*/
|
|
2907
3000
|
ConnectionChangedRejectedByServer = 10,
|
|
2908
3001
|
/**
|
|
@@ -2948,14 +3041,18 @@ export declare enum ConnectionChangedReasonType {
|
|
|
2948
3041
|
/**
|
|
2949
3042
|
* @ignore
|
|
2950
3043
|
*/
|
|
2951
|
-
ConnectionChangedLicenseValidationFailure = 21
|
|
3044
|
+
ConnectionChangedLicenseValidationFailure = 21,
|
|
3045
|
+
/**
|
|
3046
|
+
* @ignore
|
|
3047
|
+
*/
|
|
3048
|
+
ConnectionChangedCertificationVeryfyFailure = 22
|
|
2952
3049
|
}
|
|
2953
3050
|
/**
|
|
2954
3051
|
* The reason for a user role switch failure.
|
|
2955
3052
|
*/
|
|
2956
3053
|
export declare enum ClientRoleChangeFailedReason {
|
|
2957
3054
|
/**
|
|
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.
|
|
3055
|
+
* 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
3056
|
*/
|
|
2960
3057
|
ClientRoleChangeFailedTooManyBroadcasters = 1,
|
|
2961
3058
|
/**
|
|
@@ -3077,7 +3174,7 @@ export declare enum VideoViewSetupMode {
|
|
|
3077
3174
|
*/
|
|
3078
3175
|
export declare class VideoCanvas {
|
|
3079
3176
|
/**
|
|
3080
|
-
*
|
|
3177
|
+
* The video display window.
|
|
3081
3178
|
*/
|
|
3082
3179
|
view?: any;
|
|
3083
3180
|
/**
|
|
@@ -3085,7 +3182,7 @@ export declare class VideoCanvas {
|
|
|
3085
3182
|
*/
|
|
3086
3183
|
uid?: number;
|
|
3087
3184
|
/**
|
|
3088
|
-
*
|
|
3185
|
+
* The background color of the video canvas in RGBA format. The default value is 0x00000000, which represents completely transparent black.
|
|
3089
3186
|
*/
|
|
3090
3187
|
backgroundColor?: number;
|
|
3091
3188
|
/**
|
|
@@ -3093,7 +3190,9 @@ export declare class VideoCanvas {
|
|
|
3093
3190
|
*/
|
|
3094
3191
|
renderMode?: RenderModeType;
|
|
3095
3192
|
/**
|
|
3096
|
-
* The mirror mode of the view. See VideoMirrorModeType.
|
|
3193
|
+
* The mirror mode of the view. See VideoMirrorModeType.
|
|
3194
|
+
* 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.
|
|
3195
|
+
* For the remote user: The mirror mode is disabled by default.
|
|
3097
3196
|
*/
|
|
3098
3197
|
mirrorMode?: VideoMirrorModeType;
|
|
3099
3198
|
/**
|
|
@@ -3113,7 +3212,10 @@ export declare class VideoCanvas {
|
|
|
3113
3212
|
*/
|
|
3114
3213
|
cropArea?: Rectangle;
|
|
3115
3214
|
/**
|
|
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.
|
|
3215
|
+
* (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.
|
|
3216
|
+
* This property applies to macOS only.
|
|
3217
|
+
* The receiver can render alpha channel information only when the sender enables alpha transmission.
|
|
3218
|
+
* To enable alpha transmission,.
|
|
3117
3219
|
*/
|
|
3118
3220
|
enableAlphaMask?: boolean;
|
|
3119
3221
|
}
|
|
@@ -3250,7 +3352,9 @@ export declare class ColorEnhanceOptions {
|
|
|
3250
3352
|
*/
|
|
3251
3353
|
strengthLevel?: number;
|
|
3252
3354
|
/**
|
|
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.
|
|
3355
|
+
* 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.
|
|
3356
|
+
* 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.
|
|
3357
|
+
* 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
3358
|
*/
|
|
3255
3359
|
skinProtectLevel?: number;
|
|
3256
3360
|
}
|
|
@@ -3305,15 +3409,15 @@ export declare class VirtualBackgroundSource {
|
|
|
3305
3409
|
*/
|
|
3306
3410
|
background_source_type?: BackgroundSourceType;
|
|
3307
3411
|
/**
|
|
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.
|
|
3412
|
+
* 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
3413
|
*/
|
|
3310
3414
|
color?: number;
|
|
3311
3415
|
/**
|
|
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.
|
|
3416
|
+
* 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
3417
|
*/
|
|
3314
3418
|
source?: string;
|
|
3315
3419
|
/**
|
|
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.
|
|
3420
|
+
* 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
3421
|
*/
|
|
3318
3422
|
blur_degree?: BackgroundBlurDegree;
|
|
3319
3423
|
}
|
|
@@ -3339,7 +3443,7 @@ export declare class SegmentationProperty {
|
|
|
3339
3443
|
*/
|
|
3340
3444
|
modelType?: SegModelType;
|
|
3341
3445
|
/**
|
|
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.
|
|
3446
|
+
* 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
3447
|
*/
|
|
3344
3448
|
greenCapacity?: number;
|
|
3345
3449
|
}
|
|
@@ -3352,11 +3456,11 @@ export declare enum AudioTrackType {
|
|
|
3352
3456
|
*/
|
|
3353
3457
|
AudioTrackInvalid = -1,
|
|
3354
3458
|
/**
|
|
3355
|
-
* 0: Mixable audio tracks.
|
|
3459
|
+
* 0: Mixable audio tracks. This type of audio track supports mixing with other audio streams (such as audio streams captured by microphone) and playing locally or publishing to channels after mixing. The latency of mixable audio tracks is higher than that of direct audio tracks.
|
|
3356
3460
|
*/
|
|
3357
3461
|
AudioTrackMixable = 0,
|
|
3358
3462
|
/**
|
|
3359
|
-
* 1: Direct audio tracks.
|
|
3463
|
+
* 1: Direct audio tracks. This type of audio track will replace the audio streams captured by the microphone and does not support mixing with other audio streams. The latency of direct audio tracks is lower than that of mixable audio tracks. If AudioTrackDirect is specified for this parameter, you must set publishMicrophoneTrack to false in ChannelMediaOptions when calling joinChannel to join the channel; otherwise, joining the channel fails and returns the error code -2.
|
|
3360
3464
|
*/
|
|
3361
3465
|
AudioTrackDirect = 1
|
|
3362
3466
|
}
|
|
@@ -3365,7 +3469,7 @@ export declare enum AudioTrackType {
|
|
|
3365
3469
|
*/
|
|
3366
3470
|
export declare class AudioTrackConfig {
|
|
3367
3471
|
/**
|
|
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.
|
|
3472
|
+
* 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
3473
|
*/
|
|
3370
3474
|
enableLocalPlayback?: boolean;
|
|
3371
3475
|
}
|
|
@@ -3378,19 +3482,21 @@ export declare enum VoiceBeautifierPreset {
|
|
|
3378
3482
|
*/
|
|
3379
3483
|
VoiceBeautifierOff = 0,
|
|
3380
3484
|
/**
|
|
3381
|
-
* A more magnetic voice.Agora recommends using this enumerator to process a male-sounding voice; otherwise, you may experience vocal distortion.
|
|
3485
|
+
* A more magnetic voice. Agora recommends using this enumerator to process a male-sounding voice; otherwise, you may experience vocal distortion.
|
|
3382
3486
|
*/
|
|
3383
3487
|
ChatBeautifierMagnetic = 16843008,
|
|
3384
3488
|
/**
|
|
3385
|
-
* A fresher voice.Agora recommends using this enumerator to process a female-sounding voice; otherwise, you may experience vocal distortion.
|
|
3489
|
+
* A fresher voice. Agora recommends using this enumerator to process a female-sounding voice; otherwise, you may experience vocal distortion.
|
|
3386
3490
|
*/
|
|
3387
3491
|
ChatBeautifierFresh = 16843264,
|
|
3388
3492
|
/**
|
|
3389
|
-
* A more vital voice.Agora recommends using this enumerator to process a female-sounding voice; otherwise, you may experience vocal distortion.
|
|
3493
|
+
* A more vital voice. Agora recommends using this enumerator to process a female-sounding voice; otherwise, you may experience vocal distortion.
|
|
3390
3494
|
*/
|
|
3391
3495
|
ChatBeautifierVitality = 16843520,
|
|
3392
3496
|
/**
|
|
3393
|
-
* Singing beautifier effect.
|
|
3497
|
+
* Singing beautifier effect.
|
|
3498
|
+
* 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.
|
|
3499
|
+
* If you call setVoiceBeautifierParameters (SingingBeautifier, param1, param2), you can beautify a male or female-sounding voice and add a reverberation effect.
|
|
3394
3500
|
*/
|
|
3395
3501
|
SingingBeautifier = 16908544,
|
|
3396
3502
|
/**
|
|
@@ -3426,7 +3532,9 @@ export declare enum VoiceBeautifierPreset {
|
|
|
3426
3532
|
*/
|
|
3427
3533
|
TimbreTransformationRinging = 16975872,
|
|
3428
3534
|
/**
|
|
3429
|
-
* A ultra-high quality voice, which makes the audio clearer and restores more details.
|
|
3535
|
+
* A ultra-high quality voice, which makes the audio clearer and restores more details.
|
|
3536
|
+
* 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.
|
|
3537
|
+
* 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
3538
|
*/
|
|
3431
3539
|
UltraHighQualityVoice = 17039616
|
|
3432
3540
|
}
|
|
@@ -3469,31 +3577,31 @@ export declare enum AudioEffectPreset {
|
|
|
3469
3577
|
*/
|
|
3470
3578
|
RoomAcousticsEthereal = 33621760,
|
|
3471
3579
|
/**
|
|
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.
|
|
3580
|
+
* 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
3581
|
*/
|
|
3474
3582
|
RoomAcoustics3dVoice = 33622016,
|
|
3475
3583
|
/**
|
|
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.
|
|
3584
|
+
* 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
3585
|
*/
|
|
3478
3586
|
RoomAcousticsVirtualSurroundSound = 33622272,
|
|
3479
3587
|
/**
|
|
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.
|
|
3588
|
+
* 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
3589
|
*/
|
|
3482
3590
|
VoiceChangerEffectUncle = 33685760,
|
|
3483
3591
|
/**
|
|
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.
|
|
3592
|
+
* 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
3593
|
*/
|
|
3486
3594
|
VoiceChangerEffectOldman = 33686016,
|
|
3487
3595
|
/**
|
|
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.
|
|
3596
|
+
* 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
3597
|
*/
|
|
3490
3598
|
VoiceChangerEffectBoy = 33686272,
|
|
3491
3599
|
/**
|
|
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.
|
|
3600
|
+
* 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
3601
|
*/
|
|
3494
3602
|
VoiceChangerEffectSister = 33686528,
|
|
3495
3603
|
/**
|
|
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.
|
|
3604
|
+
* 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
3605
|
*/
|
|
3498
3606
|
VoiceChangerEffectGirl = 33686784,
|
|
3499
3607
|
/**
|
|
@@ -3608,7 +3716,9 @@ export declare enum HeadphoneEqualizerPreset {
|
|
|
3608
3716
|
*/
|
|
3609
3717
|
export declare class ScreenCaptureParameters {
|
|
3610
3718
|
/**
|
|
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
|
|
3719
|
+
* 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 is set to 1920 × 1080:
|
|
3720
|
+
* 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.
|
|
3721
|
+
* If the value of the screen dimensions is higher than that of dimensions, for example, 2000 × 1500, the SDK uses the maximum value under with the aspect ratio of the screen dimension (4:3) for encoding, that is, 1440 × 1080.
|
|
3612
3722
|
*/
|
|
3613
3723
|
dimensions?: VideoDimensions;
|
|
3614
3724
|
/**
|
|
@@ -3620,11 +3730,11 @@ export declare class ScreenCaptureParameters {
|
|
|
3620
3730
|
*/
|
|
3621
3731
|
bitrate?: number;
|
|
3622
3732
|
/**
|
|
3623
|
-
* Whether to capture the mouse in screen sharing:true: (Default) Capture the mouse.false: Do not capture the mouse.
|
|
3733
|
+
* Whether to capture the mouse in screen sharing: true : (Default) Capture the mouse. false : Do not capture the mouse.
|
|
3624
3734
|
*/
|
|
3625
3735
|
captureMouseCursor?: boolean;
|
|
3626
3736
|
/**
|
|
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.
|
|
3737
|
+
* 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
3738
|
*/
|
|
3629
3739
|
windowFocus?: boolean;
|
|
3630
3740
|
/**
|
|
@@ -3632,19 +3742,20 @@ export declare class ScreenCaptureParameters {
|
|
|
3632
3742
|
*/
|
|
3633
3743
|
excludeWindowList?: any[];
|
|
3634
3744
|
/**
|
|
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.
|
|
3745
|
+
* 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
3746
|
*/
|
|
3637
3747
|
excludeWindowCount?: number;
|
|
3638
3748
|
/**
|
|
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.
|
|
3749
|
+
* 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
3750
|
*/
|
|
3641
3751
|
highLightWidth?: number;
|
|
3642
3752
|
/**
|
|
3643
|
-
* On Windows platforms, the color of the border in ARGB format. The default value is 0xFF8CBF26.
|
|
3753
|
+
* On Windows platforms, the color of the border in ARGB format. The default value is 0xFF8CBF26.
|
|
3754
|
+
* On macOS, COLOR_CLASS refers to NSColor.
|
|
3644
3755
|
*/
|
|
3645
3756
|
highLightColor?: number;
|
|
3646
3757
|
/**
|
|
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.
|
|
3758
|
+
* 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
3759
|
*/
|
|
3649
3760
|
enableHighLight?: boolean;
|
|
3650
3761
|
}
|
|
@@ -3708,15 +3819,19 @@ export declare enum AudioEncodedFrameObserverPosition {
|
|
|
3708
3819
|
*/
|
|
3709
3820
|
export declare class AudioRecordingConfiguration {
|
|
3710
3821
|
/**
|
|
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.
|
|
3822
|
+
* 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
3823
|
*/
|
|
3713
3824
|
filePath?: string;
|
|
3714
3825
|
/**
|
|
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.
|
|
3826
|
+
* 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
3827
|
*/
|
|
3717
3828
|
encode?: boolean;
|
|
3718
3829
|
/**
|
|
3719
|
-
* Recording sample rate (Hz).
|
|
3830
|
+
* Recording sample rate (Hz).
|
|
3831
|
+
* 16000
|
|
3832
|
+
* (Default) 32000
|
|
3833
|
+
* 44100
|
|
3834
|
+
* 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
3835
|
*/
|
|
3721
3836
|
sampleRate?: number;
|
|
3722
3837
|
/**
|
|
@@ -3724,11 +3839,15 @@ export declare class AudioRecordingConfiguration {
|
|
|
3724
3839
|
*/
|
|
3725
3840
|
fileRecordingType?: AudioFileRecordingType;
|
|
3726
3841
|
/**
|
|
3727
|
-
* Recording quality. See AudioRecordingQualityType.Note: This parameter applies to AAC files only.
|
|
3842
|
+
* Recording quality. See AudioRecordingQualityType. Note: This parameter applies to AAC files only.
|
|
3728
3843
|
*/
|
|
3729
3844
|
quality?: AudioRecordingQualityType;
|
|
3730
3845
|
/**
|
|
3731
|
-
* The audio channel of recording: The parameter supports the following values:
|
|
3846
|
+
* The audio channel of recording: The parameter supports the following values:
|
|
3847
|
+
* 1: (Default) Mono.
|
|
3848
|
+
* 2: Stereo. The actual recorded audio channel is related to the audio channel that you capture.
|
|
3849
|
+
* 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.
|
|
3850
|
+
* 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
3851
|
*/
|
|
3733
3852
|
recordingChannel?: number;
|
|
3734
3853
|
}
|
|
@@ -3752,7 +3871,7 @@ export interface IAudioEncodedFrameObserver {
|
|
|
3752
3871
|
/**
|
|
3753
3872
|
* Gets the encoded audio data of the local user.
|
|
3754
3873
|
*
|
|
3755
|
-
* After calling registerAudioEncodedFrameObserver and setting the encoded audio as AudioEncodedFrameObserverPositionRecord
|
|
3874
|
+
* 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
3875
|
*
|
|
3757
3876
|
* @param channels The number of channels.
|
|
3758
3877
|
* 1: Mono.
|
|
@@ -3765,7 +3884,7 @@ export interface IAudioEncodedFrameObserver {
|
|
|
3765
3884
|
/**
|
|
3766
3885
|
* Gets the encoded audio data of all remote users.
|
|
3767
3886
|
*
|
|
3768
|
-
* After calling registerAudioEncodedFrameObserver and setting the encoded audio as AudioEncodedFrameObserverPositionPlayback
|
|
3887
|
+
* After calling registerAudioEncodedFrameObserver and setting the encoded audio as AudioEncodedFrameObserverPositionPlayback, you can get encoded audio data of all remote users through this callback.
|
|
3769
3888
|
*
|
|
3770
3889
|
* @param samplesPerSec Recording sample rate (Hz).
|
|
3771
3890
|
* @param channels The number of channels.
|
|
@@ -3780,7 +3899,7 @@ export interface IAudioEncodedFrameObserver {
|
|
|
3780
3899
|
/**
|
|
3781
3900
|
* Gets the mixed and encoded audio data of the local and all remote users.
|
|
3782
3901
|
*
|
|
3783
|
-
* After calling registerAudioEncodedFrameObserver and setting the audio profile as AudioEncodedFrameObserverPositionMixed
|
|
3902
|
+
* 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
3903
|
*
|
|
3785
3904
|
* @param samplesPerSec Recording sample rate (Hz).
|
|
3786
3905
|
* @param channels The number of channels.
|
|
@@ -3872,7 +3991,7 @@ export declare enum ChannelMediaRelayError {
|
|
|
3872
3991
|
*/
|
|
3873
3992
|
RelayErrorServerErrorResponse = 1,
|
|
3874
3993
|
/**
|
|
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.
|
|
3994
|
+
* 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
3995
|
*/
|
|
3877
3996
|
RelayErrorServerNoResponse = 2,
|
|
3878
3997
|
/**
|
|
@@ -4024,15 +4143,19 @@ export declare class ChannelMediaInfo {
|
|
|
4024
4143
|
*/
|
|
4025
4144
|
export declare class ChannelMediaRelayConfiguration {
|
|
4026
4145
|
/**
|
|
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.
|
|
4146
|
+
* 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.
|
|
4147
|
+
* If you have not enabled the App Certificate, set this parameter as the default value NULL, which means the SDK applies the App ID.
|
|
4148
|
+
* 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
4149
|
*/
|
|
4029
4150
|
srcInfo?: ChannelMediaInfo;
|
|
4030
4151
|
/**
|
|
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.
|
|
4152
|
+
* 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.
|
|
4153
|
+
* If you have not enabled the App Certificate, set this parameter as the default value NULL, which means the SDK applies the App ID.
|
|
4154
|
+
* 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
4155
|
*/
|
|
4033
4156
|
destInfos?: ChannelMediaInfo[];
|
|
4034
4157
|
/**
|
|
4035
|
-
* The number of target channels. The default value is 0, and the value range is from 0 to
|
|
4158
|
+
* 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
4159
|
*/
|
|
4037
4160
|
destCount?: number;
|
|
4038
4161
|
}
|
|
@@ -4143,7 +4266,7 @@ export declare class EncryptionConfig {
|
|
|
4143
4266
|
*/
|
|
4144
4267
|
encryptionMode?: EncryptionMode;
|
|
4145
4268
|
/**
|
|
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.
|
|
4269
|
+
* 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
4270
|
*/
|
|
4148
4271
|
encryptionKey?: string;
|
|
4149
4272
|
/**
|
|
@@ -4220,7 +4343,15 @@ export declare enum StreamSubscribeState {
|
|
|
4220
4343
|
*/
|
|
4221
4344
|
SubStateIdle = 0,
|
|
4222
4345
|
/**
|
|
4223
|
-
* 1: Fails to subscribe to the remote stream. Possible reasons:
|
|
4346
|
+
* 1: Fails to subscribe to the remote stream. Possible reasons:
|
|
4347
|
+
* The remote user:
|
|
4348
|
+
* Calls muteLocalAudioStream (true) or muteLocalVideoStream (true) to stop sending local media stream.
|
|
4349
|
+
* Calls disableAudio or disableVideo to disable the local audio or video module.
|
|
4350
|
+
* Calls enableLocalAudio (false) or enableLocalVideo (false) to disable local audio or video capture.
|
|
4351
|
+
* The role of the remote user is audience.
|
|
4352
|
+
* The local user calls the following methods to stop receiving remote streams:
|
|
4353
|
+
* Call muteRemoteAudioStream (true) or muteAllRemoteAudioStreams (true) to stop receiving the remote audio stream.
|
|
4354
|
+
* Call muteRemoteVideoStream (true) or muteAllRemoteVideoStreams (true) to stop receiving the remote video stream.
|
|
4224
4355
|
*/
|
|
4225
4356
|
SubStateNoSubscribed = 1,
|
|
4226
4357
|
/**
|
|
@@ -4241,7 +4372,11 @@ export declare enum StreamPublishState {
|
|
|
4241
4372
|
*/
|
|
4242
4373
|
PubStateIdle = 0,
|
|
4243
4374
|
/**
|
|
4244
|
-
* 1: Fails to publish the local stream. Possible reasons:
|
|
4375
|
+
* 1: Fails to publish the local stream. Possible reasons:
|
|
4376
|
+
* The local user calls muteLocalAudioStream (true) or muteLocalVideoStream (true) to stop sending local media streams.
|
|
4377
|
+
* The local user calls disableAudio or disableVideo to disable the local audio or video module.
|
|
4378
|
+
* The local user calls enableLocalAudio (false) or enableLocalVideo (false) to disable the local audio or video capture.
|
|
4379
|
+
* The role of the local user is audience.
|
|
4245
4380
|
*/
|
|
4246
4381
|
PubStateNoPublished = 1,
|
|
4247
4382
|
/**
|
|
@@ -4262,15 +4397,15 @@ export declare class EchoTestConfiguration {
|
|
|
4262
4397
|
*/
|
|
4263
4398
|
view?: any;
|
|
4264
4399
|
/**
|
|
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.
|
|
4400
|
+
* 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
4401
|
*/
|
|
4267
4402
|
enableAudio?: boolean;
|
|
4268
4403
|
/**
|
|
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.
|
|
4404
|
+
* 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
4405
|
*/
|
|
4271
4406
|
enableVideo?: boolean;
|
|
4272
4407
|
/**
|
|
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
|
|
4408
|
+
* 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
4409
|
*/
|
|
4275
4410
|
token?: string;
|
|
4276
4411
|
/**
|
|
@@ -4365,7 +4500,7 @@ export declare class ScreenVideoParameters {
|
|
|
4365
4500
|
/**
|
|
4366
4501
|
* The audio configuration for the shared screen stream.
|
|
4367
4502
|
*
|
|
4368
|
-
* Only available where captureAudio is true
|
|
4503
|
+
* Only available where captureAudio is true.
|
|
4369
4504
|
*/
|
|
4370
4505
|
export declare class ScreenAudioParameters {
|
|
4371
4506
|
/**
|
|
@@ -4403,7 +4538,7 @@ export declare class ScreenCaptureParameters2 {
|
|
|
4403
4538
|
videoParams?: ScreenVideoParameters;
|
|
4404
4539
|
}
|
|
4405
4540
|
/**
|
|
4406
|
-
* The rendering state of the media frame
|
|
4541
|
+
* The rendering state of the media frame.
|
|
4407
4542
|
*/
|
|
4408
4543
|
export declare enum MediaTraceEvent {
|
|
4409
4544
|
/**
|
|
@@ -4432,19 +4567,31 @@ export declare class VideoRenderingTracingInfo {
|
|
|
4432
4567
|
*/
|
|
4433
4568
|
join2JoinSuccess?: number;
|
|
4434
4569
|
/**
|
|
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.
|
|
4570
|
+
* 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.
|
|
4571
|
+
* 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.
|
|
4572
|
+
* If the local user calls startMediaRenderingTracing after the remote user joins the channel, the value is 0 and meaningless.
|
|
4573
|
+
* 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
4574
|
*/
|
|
4437
4575
|
joinSuccess2RemoteJoined?: number;
|
|
4438
4576
|
/**
|
|
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.
|
|
4577
|
+
* 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.
|
|
4578
|
+
* 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.
|
|
4579
|
+
* If the local user calls startMediaRenderingTracing after setting the remote view, the value is 0 and has no effect.
|
|
4580
|
+
* 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
4581
|
*/
|
|
4441
4582
|
remoteJoined2SetView?: number;
|
|
4442
4583
|
/**
|
|
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.
|
|
4584
|
+
* 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.
|
|
4585
|
+
* 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.
|
|
4586
|
+
* If the local user calls startMediaRenderingTracing after subscribing to the remote video stream, the value is 0 and has no effect.
|
|
4587
|
+
* 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
4588
|
*/
|
|
4445
4589
|
remoteJoined2UnmuteVideo?: number;
|
|
4446
4590
|
/**
|
|
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.
|
|
4591
|
+
* 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.
|
|
4592
|
+
* 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.
|
|
4593
|
+
* If the local user calls startMediaRenderingTracing after receiving the remote video stream, the value is 0 and has no effect.
|
|
4594
|
+
* 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
4595
|
*/
|
|
4449
4596
|
remoteJoined2PacketReceived?: number;
|
|
4450
4597
|
}
|
|
@@ -4555,11 +4702,19 @@ export declare class LocalAccessPointConfiguration {
|
|
|
4555
4702
|
*/
|
|
4556
4703
|
export declare class SpatialAudioParams {
|
|
4557
4704
|
/**
|
|
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:
|
|
4705
|
+
* 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:
|
|
4706
|
+
* 0: (Default) 0 degrees, which means directly in front on the horizontal plane.
|
|
4707
|
+
* 90: 90 degrees, which means directly to the left on the horizontal plane.
|
|
4708
|
+
* 180: 180 degrees, which means directly behind on the horizontal plane.
|
|
4709
|
+
* 270: 270 degrees, which means directly to the right on the horizontal plane.
|
|
4710
|
+
* 360: 360 degrees, which means directly in front on the horizontal plane.
|
|
4559
4711
|
*/
|
|
4560
4712
|
speaker_azimuth?: number;
|
|
4561
4713
|
/**
|
|
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:
|
|
4714
|
+
* 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:
|
|
4715
|
+
* 0: (Default) 0 degrees, which means that the horizontal plane is not rotated.
|
|
4716
|
+
* -90: -90 degrees, which means that the horizontal plane is rotated 90 degrees downwards.
|
|
4717
|
+
* 90: 90 degrees, which means that the horizontal plane is rotated 90 degrees upwards.
|
|
4563
4718
|
*/
|
|
4564
4719
|
speaker_elevation?: number;
|
|
4565
4720
|
/**
|
|
@@ -4567,23 +4722,31 @@ export declare class SpatialAudioParams {
|
|
|
4567
4722
|
*/
|
|
4568
4723
|
speaker_distance?: number;
|
|
4569
4724
|
/**
|
|
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:
|
|
4725
|
+
* 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:
|
|
4726
|
+
* 0: (Default) 0 degrees, which means that the sound source and listener face the same direction.
|
|
4727
|
+
* 180: 180 degrees, which means that the sound source and listener face each other.
|
|
4571
4728
|
*/
|
|
4572
4729
|
speaker_orientation?: number;
|
|
4573
4730
|
/**
|
|
4574
|
-
* Whether to enable audio blurring:true: Enable audio blurring.false: (Default) Disable audio blurring.
|
|
4731
|
+
* Whether to enable audio blurring: true : Enable audio blurring. false : (Default) Disable audio blurring.
|
|
4575
4732
|
*/
|
|
4576
4733
|
enable_blur?: boolean;
|
|
4577
4734
|
/**
|
|
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.
|
|
4735
|
+
* 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
4736
|
*/
|
|
4580
4737
|
enable_air_absorb?: boolean;
|
|
4581
4738
|
/**
|
|
4582
|
-
* The sound attenuation coefficient of the remote user or media player. The value range is [0,1]. The values are as follows:
|
|
4739
|
+
* The sound attenuation coefficient of the remote user or media player. The value range is [0,1]. The values are as follows:
|
|
4740
|
+
* 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.
|
|
4741
|
+
* (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.
|
|
4742
|
+
* 0.5: (Default) Simulates the attenuation of the volume in the real environment; the effect is equivalent to not setting the speaker_attenuation parameter.
|
|
4743
|
+
* (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
4744
|
*/
|
|
4584
4745
|
speaker_attenuation?: number;
|
|
4585
4746
|
/**
|
|
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.
|
|
4747
|
+
* 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.
|
|
4748
|
+
* 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).
|
|
4749
|
+
* 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
4750
|
*/
|
|
4588
4751
|
enable_doppler?: boolean;
|
|
4589
4752
|
}
|