@byteplus/react-native-live-push 1.1.3-rc.3 → 1.2.0-rc.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (63) hide show
  1. package/android/build.gradle +2 -2
  2. package/android/src/main/java/com/volcengine/velive/rn/push/ClassHelper.java +9 -0
  3. package/android/src/main/java/com/volcengine/velive/rn/push/NativeVariableManager.java +5 -8
  4. package/android/src/main/java/com/volcengine/velive/rn/push/VeLivePushModule.java +1 -0
  5. package/android/src/main/java/com/volcengine/velive/rn/push/mixer/MixerManager.java +157 -144
  6. package/android/src/main/java/com/volcengine/velive/rn/push/mixer/MixerView.java +33 -22
  7. package/ios/VeLiveMixerHelper.h +7 -5
  8. package/ios/VeLiveMixerHelper.m +32 -3
  9. package/ios/VeLiveMixerView.m +120 -112
  10. package/ios/VeLiveMixerViewManager.m +2 -2
  11. package/lib/commonjs/index.js +25072 -23532
  12. package/lib/commonjs/typescript/android/index.d.ts +0 -3
  13. package/lib/commonjs/typescript/codegen/android/api.d.ts +190 -644
  14. package/lib/commonjs/typescript/codegen/android/callback.d.ts +234 -2
  15. package/lib/commonjs/typescript/codegen/android/errorcode.d.ts +66 -0
  16. package/lib/commonjs/typescript/codegen/android/keytype.d.ts +1014 -181
  17. package/lib/commonjs/typescript/codegen/ios/api.d.ts +890 -0
  18. package/lib/commonjs/typescript/codegen/ios/callback.d.ts +162 -0
  19. package/lib/commonjs/typescript/codegen/ios/errorcode.d.ts +101 -1
  20. package/lib/commonjs/typescript/codegen/ios/keytype.d.ts +694 -0
  21. package/lib/commonjs/typescript/codegen/pack/api.d.ts +303 -686
  22. package/lib/commonjs/typescript/codegen/pack/callback.d.ts +37 -38
  23. package/lib/commonjs/typescript/codegen/pack/errorcode.d.ts +75 -5
  24. package/lib/commonjs/typescript/codegen/pack/keytype.d.ts +1002 -298
  25. package/lib/commonjs/typescript/core/api.d.ts +2 -1
  26. package/lib/commonjs/typescript/core/keytype.d.ts +1 -0
  27. package/lib/commonjs/typescript/core/pusher.d.ts +0 -3
  28. package/lib/module/index.js +25074 -23533
  29. package/lib/module/typescript/android/index.d.ts +0 -3
  30. package/lib/module/typescript/codegen/android/api.d.ts +190 -644
  31. package/lib/module/typescript/codegen/android/callback.d.ts +234 -2
  32. package/lib/module/typescript/codegen/android/errorcode.d.ts +66 -0
  33. package/lib/module/typescript/codegen/android/keytype.d.ts +1014 -181
  34. package/lib/module/typescript/codegen/ios/api.d.ts +890 -0
  35. package/lib/module/typescript/codegen/ios/callback.d.ts +162 -0
  36. package/lib/module/typescript/codegen/ios/errorcode.d.ts +101 -1
  37. package/lib/module/typescript/codegen/ios/keytype.d.ts +694 -0
  38. package/lib/module/typescript/codegen/pack/api.d.ts +303 -686
  39. package/lib/module/typescript/codegen/pack/callback.d.ts +37 -38
  40. package/lib/module/typescript/codegen/pack/errorcode.d.ts +75 -5
  41. package/lib/module/typescript/codegen/pack/keytype.d.ts +1002 -298
  42. package/lib/module/typescript/core/api.d.ts +2 -1
  43. package/lib/module/typescript/core/keytype.d.ts +1 -0
  44. package/lib/module/typescript/core/pusher.d.ts +0 -3
  45. package/lib/typescript/android/index.d.ts +0 -3
  46. package/lib/typescript/codegen/android/api.d.ts +190 -644
  47. package/lib/typescript/codegen/android/callback.d.ts +234 -2
  48. package/lib/typescript/codegen/android/errorcode.d.ts +66 -0
  49. package/lib/typescript/codegen/android/keytype.d.ts +1014 -181
  50. package/lib/typescript/codegen/ios/api.d.ts +890 -0
  51. package/lib/typescript/codegen/ios/callback.d.ts +162 -0
  52. package/lib/typescript/codegen/ios/errorcode.d.ts +101 -1
  53. package/lib/typescript/codegen/ios/keytype.d.ts +694 -0
  54. package/lib/typescript/codegen/pack/api.d.ts +303 -686
  55. package/lib/typescript/codegen/pack/callback.d.ts +37 -38
  56. package/lib/typescript/codegen/pack/errorcode.d.ts +75 -5
  57. package/lib/typescript/codegen/pack/keytype.d.ts +1002 -298
  58. package/lib/typescript/core/api.d.ts +2 -1
  59. package/lib/typescript/core/keytype.d.ts +1 -0
  60. package/lib/typescript/core/pusher.d.ts +0 -3
  61. package/package.json +1 -1
  62. package/react-native-velive-push.podspec +3 -3
  63. package/android/src/main/java/com/volcengine/velive/rn/push/ScreenCaptureHelper.java +0 -73
@@ -1,11 +1,11 @@
1
- import { int, double, String, ArrayList, float, long } from './types';
1
+ import { int, long, Matrix, ByteBuffer, Runnable, double, String, ArrayList, float, Context, LiveSdkSetting } from './types';
2
+ import { VeLivePusher } from './api';
2
3
  export declare class VeLiveVideoEncoderConfiguration {
3
4
 
4
5
  /** {en}
5
6
  * @detail api
6
7
  * @brief Gets the video resolution.
7
- * @return <br>
8
- * The video resolution. See VeLiveVideoResolution {@link #VeLiveVideoResolution} for details.
8
+ * @return The video resolution. See [VeLiveVideoResolution](#VeLivePusherDef-VeLiveVideoResolution) for details.
9
9
  *
10
10
  */
11
11
  getResolution(): VeLiveVideoResolution;
@@ -13,9 +13,8 @@ export declare class VeLiveVideoEncoderConfiguration {
13
13
  /** {en}
14
14
  * @detail api
15
15
  * @brief Sets the video resolution.
16
- * @param resolution The video resolution. The default value is `VeLiveVideoResolution720P`. See VeLiveVideoResolution {@link #VeLiveVideoResolution} for details.
17
- * @return <br>
18
- * The video encoding configurations. See VeLiveVideoEncoderConfiguration {@link #VeLiveVideoEncoderConfiguration} for details.
16
+ * @param resolution The video resolution. The default value is `VeLiveVideoResolution720P`. See [VeLiveVideoResolution](#VeLivePusherDef-VeLiveVideoResolution) for details.
17
+ * @return The video encoding configurations. See [VeLiveVideoEncoderConfiguration](#VeLivePusherDef-VeLiveVideoEncoderConfiguration) for details.
19
18
  *
20
19
  */
21
20
  setResolution(resolution: VeLiveVideoResolution): this;
@@ -23,8 +22,7 @@ export declare class VeLiveVideoEncoderConfiguration {
23
22
  /** {en}
24
23
  * @detail api
25
24
  * @brief Gets the video codec.
26
- * @return <br>
27
- * The video codec. See VeLiveVideoCodec {@link #VeLiveVideoCodec} for details.
25
+ * @return The video codec. See [VeLiveVideoCodec](#VeLiveVideoCodec) for details.
28
26
  *
29
27
  */
30
28
  getCodec(): VeLiveVideoCodec;
@@ -32,8 +30,8 @@ export declare class VeLiveVideoEncoderConfiguration {
32
30
  /** {en}
33
31
  * @detail api
34
32
  * @brief Sets the video codec.
35
- * @return The video encoding configurations. See [VeLiveVideoEncoderConfiguration](broadcast-sdk-for-android-type-definition#VeLiveVideoEncoderConfiguration) for details.
36
- * @param codec <br>The video codec. See [VeLiveVideoCodec](broadcast-sdk-for-android-type-definition#VeLiveVideoCodec) for details.
33
+ * @param codec The video codec. See [VeLiveVideoCodec](#VeLiveVideoCodec) for details.
34
+ * @return The video encoding configurations. See [VeLiveVideoEncoderConfiguration](#VeLivePusherDef-VeLiveVideoEncoderConfiguration) for details.
37
35
  *
38
36
  */
39
37
  setCodec(codec: VeLiveVideoCodec): this;
@@ -41,8 +39,7 @@ export declare class VeLiveVideoEncoderConfiguration {
41
39
  /** {en}
42
40
  * @detail api
43
41
  * @brief Get the encoded video bitrate.
44
- * @return <br>
45
- * The encoded video bitrate.
42
+ * @return The encoded video bitrate.
46
43
  *
47
44
  */
48
45
  getBitrate(): int;
@@ -51,8 +48,7 @@ export declare class VeLiveVideoEncoderConfiguration {
51
48
  * @detail api
52
49
  * @brief Sets the encoded video bitrate.
53
50
  * @param bitrate The encoded video bitrate, in Kbps. The default value depends on the value of the `resolution` parameter.
54
- * @return <br>
55
- * The video encoding configurations. See VeLiveVideoEncoderConfiguration {@link #VeLiveVideoEncoderConfiguration} for details.
51
+ * @return The video encoding configurations. See [VeLiveVideoEncoderConfiguration](#VeLivePusherDef-VeLiveVideoEncoderConfiguration) for details.
56
52
  *
57
53
  */
58
54
  setBitrate(bitrate: int): this;
@@ -60,8 +56,7 @@ export declare class VeLiveVideoEncoderConfiguration {
60
56
  /** {en}
61
57
  * @detail api
62
58
  * @brief Gets the minimum encoded video bitrate.
63
- * @return <br>
64
- * The minimum encoded video bitrate.
59
+ * @return The minimum encoded video bitrate.
65
60
  *
66
61
  */
67
62
  getMinBitrate(): int;
@@ -70,8 +65,7 @@ export declare class VeLiveVideoEncoderConfiguration {
70
65
  * @detail api
71
66
  * @brief Sets the minimum encoded video bitrate.
72
67
  * @param minBitrate The minimum encoded video bitrate, in Kbps, when the adaptive bitrate (ABR) feature is enabled. The default value depends on the value of the `resolution` parameter.
73
- * @return <br>
74
- * The video encoding configurations. See VeLiveVideoEncoderConfiguration {@link #VeLiveVideoEncoderConfiguration} for details.
68
+ * @return The video encoding configurations. See [VeLiveVideoEncoderConfiguration](#VeLivePusherDef-VeLiveVideoEncoderConfiguration) for details.
75
69
  *
76
70
  */
77
71
  setMinBitrate(minBitrate: int): this;
@@ -79,8 +73,7 @@ export declare class VeLiveVideoEncoderConfiguration {
79
73
  /** {en}
80
74
  * @detail api
81
75
  * @brief Gets the maximum encoded video bitrate.
82
- * @return <br>
83
- * The maximum encoded video bitrate.
76
+ * @return The maximum encoded video bitrate.
84
77
  *
85
78
  */
86
79
  getMaxBitrate(): int;
@@ -89,8 +82,7 @@ export declare class VeLiveVideoEncoderConfiguration {
89
82
  * @detail api
90
83
  * @brief Sets the maximum encoded video bitrate.
91
84
  * @param maxBitrate The maximum video encoding bitrate, in Kbps, when the adaptive bitrate (ABR) feature is enabled. The default value depends on the value of the `resolution` parameter.
92
- * @return <br>
93
- * The video encoding configurations. See VeLiveVideoEncoderConfiguration {@link #VeLiveVideoEncoderConfiguration} for details.
85
+ * @return The video encoding configurations. See [VeLiveVideoEncoderConfiguration](#VeLivePusherDef-VeLiveVideoEncoderConfiguration) for details.
94
86
  *
95
87
  */
96
88
  setMaxBitrate(maxBitrate: int): this;
@@ -98,8 +90,7 @@ export declare class VeLiveVideoEncoderConfiguration {
98
90
  /** {en}
99
91
  * @detail api
100
92
  * @brief Gets the encoded video GOP size.
101
- * @return <br>
102
- * The encoded video GOP size.
93
+ * @return The encoded video GOP size.
103
94
  *
104
95
  */
105
96
  getGopSize(): int;
@@ -108,8 +99,7 @@ export declare class VeLiveVideoEncoderConfiguration {
108
99
  * @detail api
109
100
  * @brief Sets the encoded video GOP size.
110
101
  * @param gopSize The encoded video GOP size, in seconds. The default value is `2`.
111
- * @return <br>
112
- * The video encoding configurations. See VeLiveVideoEncoderConfiguration {@link #VeLiveVideoEncoderConfiguration} for details.
102
+ * @return The video encoding configurations. See [VeLiveVideoEncoderConfiguration](#VeLivePusherDef-VeLiveVideoEncoderConfiguration) for details.
113
103
  *
114
104
  */
115
105
  setGopSize(gopSize: int): this;
@@ -117,8 +107,7 @@ export declare class VeLiveVideoEncoderConfiguration {
117
107
  /** {en}
118
108
  * @detail api
119
109
  * @brief Gets the encoded frame rate.
120
- * @return <br>
121
- * The encoded frame rate.
110
+ * @return The encoded frame rate.
122
111
  *
123
112
  */
124
113
  getFps(): int;
@@ -127,8 +116,7 @@ export declare class VeLiveVideoEncoderConfiguration {
127
116
  * @detail api
128
117
  * @brief Sets the encoded frame rate.
129
118
  * @param fps The encoded frame rate, in fps. The default value is `15`.
130
- * @return <br>
131
- * The video encoding configurations. See VeLiveVideoEncoderConfiguration {@link #VeLiveVideoEncoderConfiguration} for details.
119
+ * @return The video encoding configurations. See [VeLiveVideoEncoderConfiguration](#VeLivePusherDef-VeLiveVideoEncoderConfiguration) for details.
132
120
  *
133
121
  */
134
122
  setFps(fps: int): this;
@@ -136,10 +124,9 @@ export declare class VeLiveVideoEncoderConfiguration {
136
124
  /** {en}
137
125
  * @detail api
138
126
  * @brief Gets whether to enable B frames.
139
- * @return <br>
140
- * Whether to enable B frames. <br>
141
- * - true: Enable;
142
- * - false: Disable.
127
+ * @return Whether to enable B frames.<br/>
128
+ * - true: Enable;
129
+ * - false: Disable.
143
130
  *
144
131
  */
145
132
  isEnableBFrame(): boolean;
@@ -150,8 +137,7 @@ export declare class VeLiveVideoEncoderConfiguration {
150
137
  * @param enableBFrame Whether to enable B frames. <br>
151
138
  * - true: Enable;
152
139
  * - false: (Default) Disable.
153
- * @return <br>
154
- * The video encoding configurations. See VeLiveVideoEncoderConfiguration {@link #VeLiveVideoEncoderConfiguration} for details.
140
+ * @return The video encoding configurations. See [VeLiveVideoEncoderConfiguration](#VeLivePusherDef-VeLiveVideoEncoderConfiguration) for details.
155
141
  *
156
142
  */
157
143
  setEnableBFrame(enableBFrame: boolean): this;
@@ -159,10 +145,9 @@ export declare class VeLiveVideoEncoderConfiguration {
159
145
  /** {en}
160
146
  * @detail api
161
147
  * @brief Gets whether to enable hardware encoding.
162
- * @return <br>
163
- * Whether to enable hardware encoding. <br>
164
- * - true: Enable;
165
- * - false: Disable.
148
+ * @return Whether to enable hardware encoding.<br/>
149
+ * - true: Enable;
150
+ * - false: Disable.
166
151
  *
167
152
  */
168
153
  isEnableAccelerate(): boolean;
@@ -173,158 +158,562 @@ export declare class VeLiveVideoEncoderConfiguration {
173
158
  * @param enableAccelerate Whether to enable hardware encoding. <br>
174
159
  * - true: (Default) Enable;
175
160
  * - false: Disable.
176
- * @return <br>
177
- * The video encoding configurations. See VeLiveVideoEncoderConfiguration {@link #VeLiveVideoEncoderConfiguration} for details.
161
+ * @return The video encoding configurations. See [VeLiveVideoEncoderConfiguration](#VeLivePusherDef-VeLiveVideoEncoderConfiguration) for details.
178
162
  *
179
163
  */
180
164
  setEnableAccelerate(enableAccelerate: boolean): this;
181
165
  }
166
+ export declare class VeLiveVideoFrame {
167
+ constructor(width: int, height: int, pts: long, data: ArrayBuffer);
168
+
169
+ /** {en}
170
+ * @detail api
171
+ * @brief Increases the reference count of the `VeLiveVideoFrame` object. Call this method to increase the reference count by 1 if you need to continue using the `VeLiveVideoFrame` object.
172
+ *
173
+ */
174
+ retain(): void;
175
+
176
+ /** {en}
177
+ * @detail api
178
+ * @brief Releases the reference to the `VeLiveVideoFrame` object. Call this method to reduce the reference count by 1 when you no longer need to use the `VeLiveVideoFrame` object. When the reference count is reduced to 0, it means there is no reference to the object, and the object can be safely released or destroyed.
179
+ *
180
+ */
181
+ release(): void;
182
+
183
+ /** {en}
184
+ * @detail api
185
+ * @brief Gets the data type of the video.
186
+ * @return The data type of the video. See [VeLiveVideoBufferType](#VeLiveVideoBufferType) for details.
187
+ *
188
+ */
189
+ getBufferType(): VeLiveVideoBufferType;
190
+
191
+ /** {en}
192
+ * @detail api
193
+ * @brief Sets the data type of the video.
194
+ * @param bufferType The data type of the video. See [VeLiveVideoBufferType](#VeLiveVideoBufferType) for details.
195
+ * @return The video frame object. See [VeLiveVideoFrame](#VeLiveVideoFrame) for details.
196
+ *
197
+ */
198
+ setBufferType(bufferType: VeLiveVideoBufferType): this;
199
+
200
+ /** {en}
201
+ * @detail api
202
+ * @brief Gets the pixel format.
203
+ * @return
204
+ * The pixel format. See [VeLivePixelFormat](#VeLivePixelFormat) for details.
205
+ *
206
+ */
207
+ getPixelFormat(): VeLivePixelFormat;
208
+
209
+ /** {en}
210
+ * @detail api
211
+ * @brief Sets the pixel format.
212
+ * @param pixelFormat The pixel format. See [VeLivePixelFormat](#VeLivePixelFormat) for details.
213
+ * @return The video frame object. See [VeLiveVideoFrame](#VeLiveVideoFrame) for details.
214
+ *
215
+ */
216
+ setPixelFormat(pixelFormat: VeLivePixelFormat): this;
217
+
218
+ /** {en}
219
+ * @detail api
220
+ * @brief Gets the rotation angle in a clockwise direction.
221
+ * @return The rotation angle in a clockwise direction. See [VeLiveVideoRotation](#VeLiveVideoRotation) for details.
222
+ *
223
+ */
224
+ getRotation(): VeLiveVideoRotation;
225
+
226
+ /** {en}
227
+ * @detail api
228
+ * @brief Sets the rotation angle in a clockwise direction.
229
+ * @param rotation The rotation angle in a clockwise direction. See [VeLiveVideoRotation](#VeLiveVideoRotation) for details.
230
+ * @return
231
+ * The video frame object. See [VeLiveVideoFrame](#VeLiveVideoFrame) for details.
232
+ *
233
+ */
234
+ setRotation(rotation: VeLiveVideoRotation): this;
235
+
236
+ /** {en}
237
+ * @detail api
238
+ * @brief Gets the width of the video frame.
239
+ * @return <br>
240
+ * The width of the video frame.
241
+ *
242
+ */
243
+ getWidth(): int;
244
+
245
+ /** {en}
246
+ * @detail api
247
+ * @brief Gets the height of the video frame.
248
+ * @return <br>
249
+ * The height of the video frame.
250
+ *
251
+ */
252
+ getHeight(): int;
253
+
254
+ /** {en}
255
+ * @detail api
256
+ * @brief Gets the width of the rotated video frame.
257
+ * @return <br>
258
+ * The width of the rotated video frame.
259
+ *
260
+ */
261
+ getRotatedWidth(): int;
262
+
263
+ /** {en}
264
+ * @detail api
265
+ * @brief Gets the height of the rotated video frame.
266
+ * @return <br>
267
+ * The height of the rotated video frame.
268
+ *
269
+ */
270
+ getRotatedHeight(): int;
271
+
272
+ /** {en}
273
+ * @detail api
274
+ * @brief Gets the timestamp of the video frame.
275
+ * @return <br>
276
+ * The timestamp of the video frame, in μs.
277
+ *
278
+ */
279
+ getPts(): long;
280
+
281
+ /** {en}
282
+ * @detail api
283
+ * @brief Gets the texture ID.
284
+ * @return <br>
285
+ * The texture ID.
286
+ *
287
+ */
288
+ getTextureId(): int;
289
+
290
+ /** {en}
291
+ * @detail api
292
+ * @brief Gets the texture matrix.
293
+ * @return The texture matrix.
294
+ *
295
+ */
296
+ getTextureMatrix(): Matrix;
297
+
298
+ /** {en}
299
+ * @detail api
300
+ * @brief Gets the video data in the format of ByteBuffer.
301
+ * @return The video data in the format of ByteBuffer.
302
+ *
303
+ */
304
+ getBuffer(): ByteBuffer;
305
+
306
+ /** {en}
307
+ * @detail api
308
+ * @brief Gets the video data in the format of byte [].
309
+ * @return The video data in the format of byte [].
310
+ *
311
+ */
312
+ getData(): ArrayBuffer;
313
+
314
+ /** {en}
315
+ * @detail api
316
+ * @brief Gets the internal release callback.
317
+ * @return The internal release callback.
318
+ *
319
+ */
320
+ getReleaseCallback(): Runnable;
321
+
322
+ /** {en}
323
+ * @detail api
324
+ * @brief Sets the internal release callback.
325
+ * @param releaseCallback The internal release callback.
326
+ * @return The video frame object. See [VeLiveVideoFrame](#VeLiveVideoFrame) for details.
327
+ *
328
+ */
329
+ setReleaseCallback(releaseCallback: Runnable): this;
330
+ }
182
331
  export declare enum VeLiveAudioCodec {
183
332
 
333
+ /** {en}
334
+ * @brief FDKAAC.
335
+ *
336
+ */
184
337
  VeLiveAudioCodecFdkAAC = 0,
185
338
 
339
+ /** {en}
340
+ * @brief Mediacodec AAC.
341
+ *
342
+ */
186
343
  VeLiveAudioCodecMediaCodecAAC = 1,
187
344
 
345
+ /** {en}
346
+ * @brief FFMPEG AAC.
347
+ *
348
+ */
188
349
  VeLiveAudioCodecFFmpegAAC = 2
189
350
  }
190
351
  export declare enum VeLiveVideoCodec {
191
352
 
353
+ /** {en}
354
+ * @brief H.264.
355
+ *
356
+ */
192
357
  VeLiveVideoCodecH264 = 0,
193
358
 
359
+ /** {en}
360
+ * @brief ByteVC1, an encoding format developed by BytePlus.
361
+ *
362
+ */
194
363
  VeLiveVideoCodecByteVC1 = 1
195
364
  }
196
365
  export declare class VeLivePusherStatistics {
197
366
 
367
+ /** {en}
368
+ * @brief The width of the encoded video, in pixels.
369
+ *
370
+ */
198
371
  encodeWidth: int;
199
372
 
373
+ /** {en}
374
+ * @brief The height of the encoded video, in pixels.
375
+ *
376
+ */
200
377
  encodeHeight: int;
201
378
 
379
+ /** {en}
380
+ * @brief The width of the captured video, in pixels.
381
+ *
382
+ */
202
383
  captureWidth: int;
203
384
 
385
+ /** {en}
386
+ * @brief The height of the captured video, in pixels.
387
+ *
388
+ */
204
389
  captureHeight: int;
205
390
 
391
+ /** {en}
392
+ * @brief The captured frame rate, in fps.
393
+ *
394
+ */
206
395
  captureFps: double;
207
396
 
397
+ /** {en}
398
+ * @brief The encoded frame rate, in fps.
399
+ *
400
+ */
208
401
  encodeFps: double;
209
402
 
403
+ /** {en}
404
+ * @brief The transmission frame rate, in fps. You can use this parameter to showcase the real-time frame rate on the user interface.
405
+ *
406
+ */
210
407
  transportFps: double;
211
408
 
409
+ /** {en}
410
+ * @brief The encoded frame rate you specify in the setVideoEncoderConfiguration {@link #VeLivePusher#setVideoEncoderConfiguration} method, in fps.
411
+ *
412
+ */
212
413
  fps: int;
213
414
 
415
+ /** {en}
416
+ * @brief The encoded bitrate you specify in the setVideoEncoderConfiguration {@link #VeLivePusher#setVideoEncoderConfiguration} method, in Kbps.
417
+ *
418
+ */
214
419
  videoBitrate: int;
215
420
 
421
+ /** {en}
422
+ * @brief The minimum encoded bitrate you specify in the setVideoEncoderConfiguration {@link #VeLivePusher#setVideoEncoderConfiguration} method, in Kbps.
423
+ *
424
+ */
216
425
  minVideoBitrate: int;
217
426
 
427
+ /** {en}
428
+ * @brief The maximum encoded bitrate you specify in the setVideoEncoderConfiguration {@link #VeLivePusher#setVideoEncoderConfiguration} method, in Kbps.
429
+ *
430
+ */
218
431
  maxVideoBitrate: int;
219
432
 
433
+ /** {en}
434
+ * @brief The encoded video bitrate, in Kbps.
435
+ *
436
+ */
220
437
  encodeVideoBitrate: double;
221
438
 
439
+ /** {en}
440
+ * @brief The transmission bitrate, in Kbps. You can use this parameter to showcase the real-time bitrate on the user interface.
441
+ *
442
+ */
222
443
  transportVideoBitrate: double;
223
444
 
445
+ /** {en}
446
+ * @brief The audio encoding bitrate, in Kbps.
447
+ *
448
+ */
224
449
  encodeAudioBitrate: double;
225
450
 
451
+ /** {en}
452
+ * @brief The push stream address.
453
+ *
454
+ */
226
455
  url: String;
227
456
 
457
+ /** {en}
458
+ * @brief The video codec.
459
+ *
460
+ */
228
461
  codec: String;
229
462
  }
230
463
  export declare enum VeLivePusherRenderMode {
231
464
 
465
+ /** {en}
466
+ * @brief Stretch the video to fill the screen. The aspect ratio of the video might change.
467
+ *
468
+ */
232
469
  VeLivePusherRenderModeFill = 0,
233
470
 
471
+ /** {en}
472
+ * @brief Display the full video. The video is uniformly scaled until one dimension of the video hits the boundary of the screen. Any remaining space on the screen will be filled with background color.
473
+ *
474
+ */
234
475
  VeLivePusherRenderModeFit = 1,
235
476
 
477
+ /** {en}
478
+ * @brief Uniformly scale the video until the screen is completely filled. Part of the video may be cropped.
479
+ *
480
+ */
236
481
  VeLivePusherRenderModeHidden = 2
237
482
  }
238
483
  export declare enum VeLiveVideoEffectLicenseType {
239
484
 
485
+ /** {en}
486
+ * @brief Authenticate offline.
487
+ *
488
+ */
240
489
  VeLiveVideoEffectLicenseTypeOffLine = 0,
241
490
 
491
+ /** {en}
492
+ * @brief Authenticate online.
493
+ *
494
+ */
242
495
  VeLiveVideoEffectLicenseTypeOnLine = 1
243
496
  }
244
497
  export declare enum VeLiveAudioBufferType {
245
498
 
499
+ /** {en}
500
+ * @brief Unknown data type.
501
+ *
502
+ */
246
503
  VeLiveAudioBufferTypeUnknown = 0,
247
504
 
505
+ /** {en}
506
+ * @brief ByteBuffer.
507
+ *
508
+ */
248
509
  VeLiveAudioBufferTypeByteBuffer = 1
249
510
  }
250
511
  export declare enum VeLiveAudioChannel {
251
512
 
513
+ /** {en}
514
+ * @brief Mono, which is suitable for voice communication and saves bandwidth.
515
+ *
516
+ */
252
517
  VeLiveAudioChannelMono = 1,
253
518
 
519
+ /** {en}
520
+ * @brief Stereo, which provides a richer audio experience and is suitable for music playback.
521
+ *
522
+ */
254
523
  VeLiveAudioChannelStereo = 2
255
524
  }
256
525
  export declare enum VeLiveFirstFrameType {
257
526
 
527
+ /** {en}
528
+ * @brief The first audio or video frame captured by the microphone or the camera.
529
+ *
530
+ */
258
531
  VeLiveFirstCaptureFrame = 0,
259
532
 
533
+ /** {en}
534
+ * @brief The first video frame rendered, which is the first frame displayed on the screen.
535
+ *
536
+ */
260
537
  VeLiveFirstRenderFrame = 1,
261
538
 
539
+ /** {en}
540
+ * @brief The first audio or video frame encoded in a certain format.
541
+ *
542
+ */
262
543
  VeLiveFirstEncodedFrame = 2,
263
544
 
545
+ /** {en}
546
+ * @brief The first audio or video frame transmitted through the network.
547
+ *
548
+ */
264
549
  VeLiveFirstSendFrame = 3
265
550
  }
266
551
  export declare enum VeLiveVideoCaptureType {
267
552
 
553
+ /** {en}
554
+ * @brief Capture the video with the front-facing camera.
555
+ *
556
+ */
268
557
  VeLiveVideoCaptureFrontCamera = 0,
269
558
 
559
+ /** {en}
560
+ * @brief Capture the video with the rear camera.
561
+ *
562
+ */
270
563
  VeLiveVideoCaptureBackCamera = 1,
271
564
 
565
+ /** {en}
566
+ * @brief Capture the video with dual cameras.
567
+ *
568
+ */
272
569
  VeLiveVideoCaptureDualCamera = 2,
273
570
 
571
+ /** {en}
572
+ * @brief Capture the screen.
573
+ *
574
+ */
274
575
  VeLiveVideoCaptureScreen = 3,
275
576
 
577
+ /** {en}
578
+ * @brief Capture the video with an external device or source.
579
+ *
580
+ */
276
581
  VeLiveVideoCaptureExternal = 4,
277
582
 
583
+ /** {en}
584
+ * @brief Use a static image as the video source.
585
+ *
586
+ */
278
587
  VeLiveVideoCaptureCustomImage = 5,
279
588
 
589
+ /** {en}
590
+ * @brief Use the last frame as the video source.
591
+ *
592
+ */
280
593
  VeLiveVideoCaptureLastFrame = 6,
281
594
 
595
+ /** {en}
596
+ * @brief Use a black frame as the video source. This is usually used for debugging purposes or in special circumstances.
597
+ *
598
+ */
282
599
  VeLiveVideoCaptureDummyFrame = 7
283
600
  }
284
601
  export declare enum VeLiveVideoProfile {
285
602
 
603
+ /** {en}
604
+ * @brief Unknown codec.
605
+ *
606
+ */
286
607
  VeLiveVideoProfileUnknown = 0,
287
608
 
609
+ /** {en}
610
+ * @brief H.264, using Baseline level.
611
+ *
612
+ */
288
613
  VeLiveVideoProfileH264Baseline = 1,
289
614
 
615
+ /** {en}
616
+ * @brief H.264, using Main level.
617
+ *
618
+ */
290
619
  VeLiveVideoProfileH264Main = 2,
291
620
 
621
+ /** {en}
622
+ * @brief H.264, using High level.
623
+ *
624
+ */
292
625
  VeLiveVideoProfileH264High = 3,
293
626
 
627
+ /** {en}
628
+ * @brief ByteVC1, using Main level.
629
+ *
630
+ */
294
631
  VeLiveVideoProfileByteVC1Main = 4
295
632
  }
296
633
  export declare enum VeLiveVideoRotation {
297
634
 
635
+ /** {en}
636
+ * @brief Do not rotate.
637
+ *
638
+ */
298
639
  VeLiveVideoRotation0 = 0,
299
640
 
641
+ /** {en}
642
+ * @brief Rotate by 90 degrees clockwise.
643
+ *
644
+ */
300
645
  VeLiveVideoRotation90 = 90,
301
646
 
647
+ /** {en}
648
+ * @brief Rotate by 180 degrees clockwise.
649
+ *
650
+ */
302
651
  VeLiveVideoRotation180 = 180,
303
652
 
653
+ /** {en}
654
+ * @brief Rotate by 270 degrees clockwise.
655
+ *
656
+ */
304
657
  VeLiveVideoRotation270 = 270
305
658
  }
306
659
  export declare enum VeLiveVideoFrameSource {
307
660
 
661
+ /** {en}
662
+ * @brief The original video frame captured by the camera or other video sources.
663
+ *
664
+ */
308
665
  VeLiveVideoFrameSourceCapture = 1,
309
666
 
667
+ /** {en}
668
+ * @brief The video frame to be encoded after undergoing various processes, such as filtering and rotation.
669
+ *
670
+ */
310
671
  VeLiveVideoFrameSourcePreEncode = "1 << 1"
311
672
  }
312
673
  export declare enum VeLiveAudioProfile {
313
674
 
675
+ /** {en}
676
+ * @brief LC-AAC.
677
+ *
678
+ */
314
679
  VeLiveAudioAACProfileLC = 0,
315
680
 
681
+ /** {en}
682
+ * @brief HEv1-AAC.
683
+ *
684
+ */
316
685
  VeLiveAudioAACProfileHEv1 = 1,
317
686
 
687
+ /** {en}
688
+ * @brief HEv2-AAC.
689
+ *
690
+ */
318
691
  VeLiveAudioAACProfileHEv2 = 2
319
692
  }
320
693
  export declare enum VeLiveVideoBufferType {
321
694
 
695
+ /** {en}
696
+ * @brief Unknown data type, which is the default type if you do not specify any type.
697
+ *
698
+ */
322
699
  VeLiveVideoBufferTypeUnknown = 0,
323
700
 
701
+ /** {en}
702
+ * @brief OpenGL texture.
703
+ *
704
+ */
324
705
  VeLiveVideoBufferTypeTexture = 1,
325
706
 
707
+ /** {en}
708
+ * @brief ByteBuffer.
709
+ *
710
+ */
326
711
  VeLiveVideoBufferTypeByteBuffer = 2,
327
712
 
713
+ /** {en}
714
+ * @brief ByteArray.
715
+ *
716
+ */
328
717
  VeLiveVideoBufferTypeByteArray = 3
329
718
  }
330
719
  export declare class VeLiveAudioCaptureConfiguration {
@@ -332,8 +721,7 @@ export declare class VeLiveAudioCaptureConfiguration {
332
721
  /** {en}
333
722
  * @detail api
334
723
  * @brief Gets the sample rate.
335
- * @return <br>
336
- * The sample rate. See VeLiveAudioSampleRate {@link #VeLiveAudioSampleRate} for details.
724
+ * @return The sample rate. See [VeLiveAudioSampleRate](#VeLiveAudioSampleRate) for details.
337
725
  *
338
726
  */
339
727
  getSampleRate(): VeLiveAudioSampleRate;
@@ -341,8 +729,8 @@ export declare class VeLiveAudioCaptureConfiguration {
341
729
  /** {en}
342
730
  * @detail api
343
731
  * @brief Sets the sample rate.
344
- * @return <br>The audio capture configurations. See VeLiveAudioCaptureConfiguration for details.
345
- * @param sampleRate The sample rate. The default value is `VeLiveAudioSampleRate44100`. See VeLiveAudioSampleRate {@link #VeLiveAudioSampleRate} for details.
732
+ * @param sampleRate The sample rate. The default value is `VeLiveAudioSampleRate44100`. See [VeLiveAudioSampleRate](#VeLiveAudioSampleRate) for details.
733
+ * @return The audio capture configurations. See [VeLiveAudioCaptureConfiguration](#VeLivePusherDef-VeLiveAudioCaptureConfiguration) for details.
346
734
  *
347
735
  */
348
736
  setSampleRate(sampleRate: VeLiveAudioSampleRate): this;
@@ -350,8 +738,7 @@ export declare class VeLiveAudioCaptureConfiguration {
350
738
  /** {en}
351
739
  * @detail api
352
740
  * @brief Gets the number of audio channels.
353
- * @return <br>
354
- * The number of audio channels. See VeLiveAudioChannel {@link #VeLiveAudioChannel} for details.
741
+ * @return The number of audio channels. See [VeLiveAudioChannel](#VeLiveAudioChannel) for details.
355
742
  *
356
743
  */
357
744
  getChannel(): VeLiveAudioChannel;
@@ -359,44 +746,100 @@ export declare class VeLiveAudioCaptureConfiguration {
359
746
  /** {en}
360
747
  * @detail api
361
748
  * @brief Sets the number of audio channels.
362
- * @return <br>The audio capture configurations. See VeLiveAudioCaptureConfiguration for details.
363
- * @param channel The number of audio channels. The default value is `VeLiveAudioChannelStereo`. See VeLiveAudioChannel {@link #VeLiveAudioChannel} for details.
749
+ * @param channel The number of audio channels. The default value is `VeLiveAudioChannelStereo`. See [VeLiveAudioChannel](#VeLiveAudioChannel) for details.
750
+ * @return The audio capture configurations. See [VeLiveAudioCaptureConfiguration](#VeLivePusherDef-VeLiveAudioCaptureConfiguration) for details.
364
751
  *
365
752
  */
366
753
  setChannel(channel: VeLiveAudioChannel): this;
367
754
  }
368
755
  export declare class VeLiveStreamMixDescription {
369
756
 
757
+ /** {en}
758
+ * @brief An array of video mixing configurations, where each array element represents the mixing configurations of a video stream. See [VeLiveMixVideoLayout](#VeLivePusherDef-VeLiveMixVideoLayout) for details.
759
+ *
760
+ */
370
761
  mixVideoStreams: ArrayList<VeLiveMixVideoLayout>;
371
762
 
763
+ /** {en}
764
+ * @brief An array of audio mixing configurations, where each array element represents the mixing configurations of an audio stream. See [VeLiveMixAudioLayout](#VeLivePusherDef-VeLiveMixAudioLayout) for details.
765
+ *
766
+ */
372
767
  mixAudioStreams: ArrayList<VeLiveMixAudioLayout>;
373
768
 
769
+ /** {en}
770
+ * @brief The background color of the mixed video, in #RRGGBB format.
771
+ *
772
+ */
374
773
  backgroundColor: String;
375
774
  }
376
775
  export declare enum VeLiveAudioSampleRate {
377
776
 
777
+ /** {en}
778
+ * @brief 8K.
779
+ *
780
+ */
378
781
  VeLiveAudioSampleRate8000 = 8000,
379
782
 
783
+ /** {en}
784
+ * @brief 16K.
785
+ *
786
+ */
380
787
  VeLiveAudioSampleRate16000 = 16000,
381
788
 
789
+ /** {en}
790
+ * @brief 32K.
791
+ *
792
+ */
382
793
  VeLiveAudioSampleRate32000 = 32000,
383
794
 
795
+ /** {en}
796
+ * @brief 44.1K.
797
+ *
798
+ */
384
799
  VeLiveAudioSampleRate44100 = 44100,
385
800
 
801
+ /** {en}
802
+ * @brief 48K.
803
+ *
804
+ */
386
805
  VeLiveAudioSampleRate48000 = 48000
387
806
  }
388
807
  export declare enum VeLiveAudioPowerLevel {
389
808
 
809
+ /** {en}
810
+ * @brief Muted. The volume is 1 dB or less.
811
+ *
812
+ */
390
813
  VeLiveAudioPowerLevelSilent = 0,
391
814
 
815
+ /** {en}
816
+ * @brief Quiet. The volume is below 15 dB.
817
+ *
818
+ */
392
819
  VeLiveAudioPowerLevelQuiet = 1,
393
820
 
821
+ /** {en}
822
+ * @brief Soft, close to whisper. The volume is between 16 dB and 30 dB.
823
+ *
824
+ */
394
825
  VeLiveAudioPowerLevelLight = 2,
395
826
 
827
+ /** {en}
828
+ * @brief Normal, similar to the volume in a daily conversation. The volume is between 30 dB and 60 dB.
829
+ *
830
+ */
396
831
  VeLiveAudioPowerLevelNormal = 3,
397
832
 
833
+ /** {en}
834
+ * @brief Loud, similar to the volume of the noise at cafes. The volume is between 61 dB and 85 dB.
835
+ *
836
+ */
398
837
  VeLiveAudioPowerLevelLoud = 4,
399
838
 
839
+ /** {en}
840
+ * @brief Noisy, similar to the volume of the noise on a busy street or at a concert. The volume is higher than 85 dB.
841
+ *
842
+ */
400
843
  VeLiveAudioPowerLevelNoise = 5
401
844
  }
402
845
  export declare class VeLiveVideoCaptureConfiguration {
@@ -404,8 +847,7 @@ export declare class VeLiveVideoCaptureConfiguration {
404
847
  /** {en}
405
848
  * @detail api
406
849
  * @brief Gets the width of the captured video.
407
- * @return <br>
408
- * The width of the captured video.
850
+ * @return The width of the captured video.
409
851
  *
410
852
  */
411
853
  getWidth(): int;
@@ -413,181 +855,507 @@ export declare class VeLiveVideoCaptureConfiguration {
413
855
  /** {en}
414
856
  * @detail api
415
857
  * @brief Sets the width of the captured video.
416
- * @return <br>The video capture configurations. See VeLiveVideoCaptureConfiguration for details.
417
858
  * @param width The width of the captured video. The default value is `720`.
859
+ * @return The video capture configurations. See [VeLiveVideoCaptureConfiguration](#VeLivePusherDef-VeLiveVideoCaptureConfiguration) for details.
860
+ *
861
+ */
862
+ setWidth(width: int): this;
863
+
864
+ /** {en}
865
+ * @detail api
866
+ * @brief Gets the height of the captured video.
867
+ * @return <br>
868
+ * The height of the captured video.
869
+ *
870
+ */
871
+ getHeight(): int;
872
+
873
+ /** {en}
874
+ * @detail api
875
+ * @brief Sets the height of the captured video.
876
+ * @param height The height of the captured video. The default value is `1280`.
877
+ * @return The video capture configurations. See [VeLiveVideoCaptureConfiguration](#VeLivePusherDef-VeLiveVideoCaptureConfiguration) for details.
878
+ *
879
+ */
880
+ setHeight(height: int): this;
881
+
882
+ /** {en}
883
+ * @detail api
884
+ * @brief Gets the captured frame rate.
885
+ * @return The captured frame rate.
886
+ *
887
+ */
888
+ getFps(): int;
889
+
890
+ /** {en}
891
+ * @detail api
892
+ * @brief Sets the captured frame rate.
893
+ * @param fps The captured frame rate. The default value is `15`.
894
+ * @return The video capture configurations. See [VeLiveVideoCaptureConfiguration](#VeLivePusherDef-VeLiveVideoCaptureConfiguration) for details.
895
+ *
896
+ */
897
+ setFps(fps: int): this;
898
+ }
899
+ export declare enum VeLivePixelFormat {
900
+
901
+ /** {en}
902
+ * @brief Unknown format.
903
+ *
904
+ */
905
+ VeLivePixelFormatUnknown = 0,
906
+
907
+ /** {en}
908
+ * @brief I420.
909
+ *
910
+ */
911
+ VeLivePixelFormatI420 = 1,
912
+
913
+ /** {en}
914
+ * @brief NV12.
915
+ *
916
+ */
917
+ VeLivePixelFormatNV12 = 2,
918
+
919
+ /** {en}
920
+ * @brief NV21.
921
+ *
922
+ */
923
+ VeLivePixelFormatNV21 = 3,
924
+
925
+ /** {en}
926
+ * @brief 2D texture.
927
+ *
928
+ */
929
+ VeLivePixelFormat2DTexture = 4,
930
+
931
+ /** {en}
932
+ * @brief OES texture.
933
+ *
934
+ */
935
+ VeLivePixelFormatOesTexture = 5
936
+ }
937
+ export declare enum VeLivePusherStatus {
938
+
939
+ /** {en}
940
+ * @brief The initial state.
941
+ *
942
+ */
943
+ VeLivePushStatusNone = 0,
944
+
945
+ /** {en}
946
+ * @brief Connecting to the server.
947
+ *
948
+ */
949
+ VeLivePushStatusConnecting = 1,
950
+
951
+ /** {en}
952
+ * @brief The connection with the server is established.
953
+ *
954
+ */
955
+ VeLivePushStatusConnectSuccess = 2,
956
+
957
+ /** {en}
958
+ * @brief Reconnecting to the server.
959
+ *
960
+ */
961
+ VeLivePushStatusReconnecting = 3,
962
+
963
+ /** {en}
964
+ * @brief Stops connecting to the server.
965
+ *
966
+ */
967
+ VeLivePushStatusConnectStop = 4,
968
+
969
+ /** {en}
970
+ * @brief Fails to connect to the server.
971
+ *
972
+ */
973
+ VeLivePushStatusConnectError = 5,
974
+
975
+ /** {en}
976
+ * @brief The connection with the server is lost.
977
+ *
978
+ */
979
+ VeLivePushStatusDisconnected = 6
980
+ }
981
+ export declare enum VeLiveVideoResolution {
982
+
983
+ /** {en}
984
+ * @brief 360P.
985
+ * - Resolution in landscape mode: 640x360
986
+ * - Resolution in portrait mode: 360x640
987
+ * - Frame rate: 15 fps
988
+ * - Target bitrate: 500 Kbps
989
+ * - Minimum bitrate: 250 Kbps
990
+ * - Maximum bitrate: 800 Kbps
991
+ *
992
+ */
993
+ VeLiveVideoResolution360P = "VeLiveVideoResolution360P",
994
+
995
+ /** {en}
996
+ * @brief 480P.
997
+ * - Resolution in landscape mode: 864x480
998
+ * - Resolution in portrait mode: 480x864
999
+ * - Frame rate: 15 fps
1000
+ * - Target bitrate: 800 Kbps
1001
+ * - Minimum bitrate: 320 Kbps
1002
+ * - Maximum bitrate: 1266 Kbps
1003
+ *
1004
+ */
1005
+ VeLiveVideoResolution480P = "VeLiveVideoResolution480P",
1006
+
1007
+ /** {en}
1008
+ * @brief 540P.
1009
+ * - Resolution in landscape mode: 960x540
1010
+ * - Resolution in portrait mode: 540x960
1011
+ * - Frame rate: 15 fps
1012
+ * - Target bitrate: 1000 Kbps
1013
+ * - Minimum bitrate: 500 Kbps
1014
+ * - Maximum bitrate: 1520 Kbps
1015
+ *
1016
+ */
1017
+ VeLiveVideoResolution540P = "VeLiveVideoResolution540P",
1018
+
1019
+ /** {en}
1020
+ * @brief 720P.
1021
+ * - Resolution in landscape mode: 1280x720
1022
+ * - Resolution in portrait mode: 720x1280
1023
+ * - Frame rate: 15 fps
1024
+ * - Target bitrate: 1200 Kbps
1025
+ * - Minimum bitrate: 800 Kbps
1026
+ * - Maximum bitrate: 1900 Kbps
1027
+ *
1028
+ */
1029
+ VeLiveVideoResolution720P = "VeLiveVideoResolution720P",
1030
+
1031
+ /** {en}
1032
+ * @brief 1080P.
1033
+ * - Resolution in landscape mode: 1920x1080
1034
+ * - Resolution in portrait mode: 1080x1920
1035
+ * - Frame rate: 20 fps
1036
+ * - Target bitrate: 2500 Kbps
1037
+ * - Minimum bitrate: 1000 Kbps
1038
+ * - Maximum bitrate: 3800 Kbps
1039
+ *
1040
+ */
1041
+ VeLiveVideoResolution1080P = "VeLiveVideoResolution1080P"
1042
+ }
1043
+ export declare class VeLiveAudioFrame {
1044
+ constructor();
1045
+
1046
+ /** {en}
1047
+ * @detail api
1048
+ * @brief Gets the audio data type.
1049
+ * @return The audio data type. See [VeLiveAudioBufferType](#VeLiveAudioBufferType) for details.
1050
+ *
1051
+ */
1052
+ getBufferType(): VeLiveAudioBufferType;
1053
+
1054
+ /** {en}
1055
+ * @detail api
1056
+ * @brief Gets the audio sample rate.
1057
+ * @return The audio sample rate. See [VeLiveAudioSampleRate](#VeLiveAudioSampleRate) for details.
418
1058
  *
419
1059
  */
420
- setWidth(width: int): this;
1060
+ getSampleRate(): VeLiveAudioSampleRate;
421
1061
 
422
1062
  /** {en}
423
1063
  * @detail api
424
- * @brief Gets the height of the captured video.
425
- * @return <br>
426
- * The height of the captured video.
1064
+ * @brief Gets the number of audio channels.
1065
+ * @return The number of audio channels. See [VeLiveAudioChannel](#VeLiveAudioChannel) for details.
427
1066
  *
428
1067
  */
429
- getHeight(): int;
1068
+ getChannels(): VeLiveAudioChannel;
430
1069
 
431
1070
  /** {en}
432
1071
  * @detail api
433
- * @brief Sets the height of the captured video.
434
- * @return <br>The video capture configurations. See VeLiveVideoCaptureConfiguration for details.
435
- * @param height The height of the captured video. The default value is `1280`.
1072
+ * @brief Get the number of sampling points of each channel.
1073
+ * @return Number of sampling points.
436
1074
  *
437
1075
  */
438
- setHeight(height: int): this;
1076
+ getSamplesPerChannel(): int;
439
1077
 
440
1078
  /** {en}
441
1079
  * @detail api
442
- * @brief Gets the captured frame rate.
1080
+ * @brief Gets the audio timestamp, in μs.
443
1081
  * @return <br>
444
- * The captured frame rate.
1082
+ * The timestamp of the audio frame, in μs.
445
1083
  *
446
1084
  */
447
- getFps(): int;
1085
+ getPts(): long;
448
1086
 
449
1087
  /** {en}
450
1088
  * @detail api
451
- * @brief Sets the captured frame rate.
452
- * @return <br>The video capture configurations. See VeLiveVideoCaptureConfiguration for details.
453
- * @param fps The captured frame rate. The default value is `15`.
1089
+ * @brief Gets the audio data. The audio data is stored in little-endian byte order.
1090
+ * @return <br>
1091
+ * The audio data in the format of ByteBuffer.
454
1092
  *
455
1093
  */
456
- setFps(fps: int): this;
457
- }
458
- export declare enum VeLivePixelFormat {
459
-
460
- VeLivePixelFormatUnknown = 0,
461
-
462
- VeLivePixelFormatI420 = 1,
463
-
464
- VeLivePixelFormatNV12 = 2,
465
-
466
- VeLivePixelFormatNV21 = 3,
467
-
468
- VeLivePixelFormat2DTexture = 4,
469
-
470
- VeLivePixelFormatOesTexture = 5
471
- }
472
- export declare enum VeLivePusherStatus {
473
-
474
- VeLivePushStatusNone = 0,
475
-
476
- VeLivePushStatusConnecting = 1,
477
-
478
- VeLivePushStatusConnectSuccess = 2,
479
-
480
- VeLivePushStatusReconnecting = 3,
481
-
482
- VeLivePushStatusConnectStop = 4,
483
-
484
- VeLivePushStatusConnectError = 5,
485
-
486
- VeLivePushStatusDisconnected = 6
487
- }
488
- export declare enum VeLiveVideoResolution {
489
-
490
- VeLiveVideoResolution360P = "VeLiveVideoResolution360P",
491
-
492
- VeLiveVideoResolution480P = "VeLiveVideoResolution480P",
493
-
494
- VeLiveVideoResolution540P = "VeLiveVideoResolution540P",
495
-
496
- VeLiveVideoResolution720P = "VeLiveVideoResolution720P",
497
-
498
- VeLiveVideoResolution1080P = "VeLiveVideoResolution1080P"
1094
+ getBuffer(): ByteBuffer;
499
1095
  }
500
1096
  export declare enum VeLiveNetworkQuality {
501
1097
 
1098
+ /** {en}
1099
+ * @brief Network status not found.
1100
+ *
1101
+ */
502
1102
  VeLiveNetworkQualityUnknown = 0,
503
1103
 
1104
+ /** {en}
1105
+ * @brief Bad network condition.
1106
+ *
1107
+ */
504
1108
  VeLiveNetworkQualityBad = 1,
505
1109
 
1110
+ /** {en}
1111
+ * @brief Poor network condition.
1112
+ *
1113
+ */
506
1114
  VeLiveNetworkQualityPoor = 2,
507
1115
 
1116
+ /** {en}
1117
+ * @brief Good network condition.
1118
+ *
1119
+ */
508
1120
  VeLiveNetworkQualityGood = 3
509
1121
  }
510
1122
  export declare enum VeLivePusherLogLevel {
511
1123
 
1124
+ /** {en}
1125
+ * @brief Output VERBOSE, DEBUG, INFO, WARNING and ERROR.
1126
+ *
1127
+ */
512
1128
  VeLiveLogLevelVerbose = 0,
513
1129
 
1130
+ /** {en}
1131
+ * @brief Output DEBUG, INFO, WARNING and ERROR.
1132
+ *
1133
+ */
514
1134
  VeLiveLogLevelDebug = 1,
515
1135
 
1136
+ /** {en}
1137
+ * @brief Output INFO, WARNING and ERROR.
1138
+ *
1139
+ */
516
1140
  VeLiveLogLevelInfo = 2,
517
1141
 
1142
+ /** {en}
1143
+ * @brief Output WARNING and ERROR.
1144
+ *
1145
+ */
518
1146
  VeLiveLogLevelWarn = 3,
519
1147
 
1148
+ /** {en}
1149
+ * @brief Output ERROR.
1150
+ *
1151
+ */
520
1152
  VeLiveLogLevelError = 4,
521
1153
 
1154
+ /** {en}
1155
+ * @brief Disable logging.
1156
+ *
1157
+ */
522
1158
  VeLiveLogLevelNone = 5
523
1159
  }
524
1160
  export declare enum VeLiveAudioBitDepth {
525
1161
 
1162
+ /** {en}
1163
+ * @brief 16bit.
1164
+ *
1165
+ */
526
1166
  VeLiveAudioBitDepth16 = 16
527
1167
  }
528
1168
  export declare class VeLiveMixAudioLayout {
529
1169
 
1170
+ /** {en}
1171
+ * @brief The unique identifier for an audio stream.
1172
+ *
1173
+ */
530
1174
  streamId: int;
531
1175
 
1176
+ /** {en}
1177
+ * @detail api
1178
+ * @brief The volume of the mixed audio stream. The value range is [0.0,4.0]. If you set [VeLiveAudioMixType](#VeLiveAudioMixType) to `VeLiveAudioMixPlayAndPush`, this variable takes effect on both the host and the audience sides.
1179
+ *
1180
+ */
532
1181
  volume: float;
533
1182
 
534
1183
  /** {en}
535
1184
  * @detail api
536
1185
  * @brief Updates audio mixing configurations.
537
- * @param other New audio mixing configurations. See VeLiveMixAudioLayout for details.
1186
+ * @param other New audio mixing configurations. See [VeLiveMixAudioLayout](#VeLivePusherDef-VeLiveMixAudioLayout) for details.
538
1187
  *
539
1188
  */
540
1189
  update(other: VeLiveMixAudioLayout): void;
541
1190
  }
542
- export declare enum VeLiveOrientation {
1191
+ export declare class VeLivePusherConfiguration {
543
1192
 
544
- VeLiveOrientationLandscape = 0,
1193
+ /** {en}
1194
+ * @detail api
1195
+ * @brief Sets the time interval between each attempt to reconnect.
1196
+ * @param interval The time interval between each attempt to reconnect, in seconds. The default value is `5`.
1197
+ * @order 2
1198
+ *
1199
+ */
1200
+ setReconnectIntervalSeconds(interval: int): this;
545
1201
 
546
- VeLiveOrientationPortrait = 1
547
- }
548
- export declare enum VeLiveVideoMirrorType {
1202
+ /** {en}
1203
+ * @detail api
1204
+ * @brief Gets the time interval between each attempt to reconnect.
1205
+ * @order 3
1206
+ * @return <br>
1207
+ * The time interval between each attempt to reconnect, in seconds.
1208
+ *
1209
+ */
1210
+ getReconnectIntervalSeconds(): int;
549
1211
 
550
- VeLiveVideoMirrorCapture = 0,
1212
+ /** {en}
1213
+ * @detail api
1214
+ * @brief Sets the number of attempts to reconnect after the initial attempt fails.
1215
+ * @param maxCount The number of attempts to reconnect after the initial attempt fails. The default value is `3`.
1216
+ * @order 4
1217
+ *
1218
+ */
1219
+ setReconnectCount(maxCount: int): this;
551
1220
 
552
- VeLiveVideoMirrorPreview = 1,
1221
+ /** {en}
1222
+ * @detail api
1223
+ * @brief Gets the number of attempts to reconnect after the initial attempt fails.
1224
+ * @order 5
1225
+ * @return <br>
1226
+ * The number of attempts to reconnect after the initial attempt fails.
1227
+ *
1228
+ */
1229
+ getReconnectCount(): int;
553
1230
 
554
- VeLiveVideoMirrorPushStream = 2
555
- }
556
- export declare class VeLivePusherLogConfig {
1231
+ /** {en}
1232
+ * @detail api
1233
+ * @brief Sets the video capture configurations.
1234
+ * @order 6
1235
+ * @param config The video capture configurations. See [VeLiveVideoCaptureConfiguration](#VeLivePusherDef-VeLiveVideoCaptureConfiguration) for details.
1236
+ * @return
1237
+ * The pusher configurations. See [VeLivePusherConfiguration](#VeLivePusherConfiguration) for details.
1238
+ *
1239
+ */
1240
+ setVideoCaptureConfig(config: VeLiveVideoCaptureConfiguration): this;
557
1241
 
558
- logPath: String;
1242
+ /** {en}
1243
+ * @detail api
1244
+ * @brief Gets the video capture configurations.
1245
+ * @order 7
1246
+ * @return The video capture configurations. See [VeLiveVideoCaptureConfiguration](#VeLivePusherDef-VeLiveVideoCaptureConfiguration) for details.
1247
+ *
1248
+ */
1249
+ getVideoCaptureConfig(): VeLiveVideoCaptureConfiguration;
559
1250
 
560
- maxLogSizeM: int;
1251
+ /** {en}
1252
+ * @detail api
1253
+ * @brief Sets the audio capture configurations.
1254
+ * @order 7
1255
+ * @param config The audio capture configurations. See [VeLiveAudioCaptureConfiguration](#VeLivePusherDef-VeLiveAudioCaptureConfiguration) for details.
1256
+ * @return The pusher configurations. See [VeLiveAudioCaptureConfiguration](#VeLivePusherDef-VeLiveAudioCaptureConfiguration) for details.
1257
+ *
1258
+ */
1259
+ setAudioCaptureConfig(config: VeLiveAudioCaptureConfiguration): this;
561
1260
 
562
- singleLogSizeM: int;
1261
+ /** {en}
1262
+ * @detail api
1263
+ * @brief Gets the audio capture configurations.
1264
+ * @order 8
1265
+ * @return The audio capture configurations. See [VeLiveAudioCaptureConfiguration](#VeLivePusherDef-VeLiveAudioCaptureConfiguration) for details.
1266
+ *
1267
+ */
1268
+ getAudioCaptureConfig(): VeLiveAudioCaptureConfiguration;
563
1269
 
564
- logExpireTimeS: long;
1270
+ /** {en}
1271
+ * @detail api
1272
+ * @brief Sets the context of the application.
1273
+ * @param context The context of the application.
1274
+ * @order 9
1275
+ * @return The pusher configurations. See [VeLivePusherConfiguration](#VeLivePusherConfiguration) for details.
1276
+ *
1277
+ */
1278
+ setContext(context: Context): this;
565
1279
 
566
- enableThreadLoop: int;
1280
+ /** {en}
1281
+ * @detail api
1282
+ * @brief Gets the context of the application.
1283
+ * @order 10
1284
+ * @return <br>
1285
+ * The context of the application.
1286
+ *
1287
+ */
1288
+ getContext(): Context;
567
1289
 
568
- enableStdout: int;
1290
+ /** {en}
1291
+ * @detail api
1292
+ * @brief Sets advanced parameters. You can leave this parameter empty. If you need to use it, please [create a ticket](https://console.byteplus.com/workorder/create?step=2&SubProductID=P00000980) to contact BytePlus technical support.
1293
+ * @param params Extension parameters.
1294
+ * @order 11
1295
+ * @return The pusher configurations. See [VeLivePusherConfiguration](#VeLivePusherConfiguration) for details.
1296
+ *
1297
+ */
1298
+ setExtraParameters(params: String): this;
569
1299
 
570
- enableLogFile: int;
1300
+ /** {en}
1301
+ * @detail api
1302
+ * @brief Gets advanced parameters.
1303
+ * @order 12
1304
+ * @return <br>
1305
+ * Advanced parameters.
1306
+ *
1307
+ */
1308
+ getExtraParams(): LiveSdkSetting;
571
1309
 
572
- logLevel: int;
1310
+ /** {en}
1311
+ * @detail api
1312
+ * @brief Creates the live pusher.
1313
+ * @order 1
1314
+ * @return The live pusher. See [VeLivePusher](docs-broadcast-sdk-for-android-api#VeLivePusher) for details.
1315
+ *
1316
+ */
1317
+ build(): VeLivePusher;
1318
+ }
1319
+ export declare enum VeLiveOrientation {
573
1320
 
574
- intervalMs: long;
1321
+ /** {en}
1322
+ * @brief The landscape mode.
1323
+ *
1324
+ */
1325
+ VeLiveOrientationLandscape = 0,
575
1326
 
576
- queryUrl: String;
1327
+ /** {en}
1328
+ * @brief The portrait mode.
1329
+ *
1330
+ */
1331
+ VeLiveOrientationPortrait = 1
1332
+ }
1333
+ export declare enum VeLiveVideoMirrorType {
577
1334
 
578
- device_id: String;
1335
+ /** {en}
1336
+ * @brief Mirror the captured video. When turned on, both the preview and the pushed video are mirrored.
1337
+ *
1338
+ */
1339
+ VeLiveVideoMirrorCapture = 0,
579
1340
 
580
- httpTimeoutMS: int;
1341
+ /** {en}
1342
+ * @brief Mirror the preview. When turned on, only the preview is mirrored.
1343
+ *
1344
+ */
1345
+ VeLiveVideoMirrorPreview = 1,
581
1346
 
582
- httpUploadFileTimeoutMS: int;
1347
+ /** {en}
1348
+ * @brief Mirror the video before encoding. When turned on, only the pushed video is mirrored.
1349
+ *
1350
+ */
1351
+ VeLiveVideoMirrorPushStream = 2
583
1352
  }
584
1353
  export declare class VeLiveFileRecorderConfiguration {
585
1354
 
586
1355
  /** {en}
587
1356
  * @detail api
588
1357
  * @brief Gets the width of the recorded video.
589
- * @return <br>
590
- * The width of the recorded video.
1358
+ * @return The width of the recorded video.
591
1359
  *
592
1360
  */
593
1361
  getWidth(): int;
@@ -595,8 +1363,8 @@ export declare class VeLiveFileRecorderConfiguration {
595
1363
  /** {en}
596
1364
  * @detail api
597
1365
  * @brief Sets the width of the recorded video.
598
- * @return <br>The local recording configurations. See VeLiveFileRecorderConfiguration for details.
599
1366
  * @param width The width of the recorded video. The default value is `360`.
1367
+ * @return The local recording configurations. See [VeLiveFileRecorderConfiguration](#VeLivePusherDef-VeLiveFileRecorderConfiguration) for details.
600
1368
  *
601
1369
  */
602
1370
  setWidth(width: int): this;
@@ -604,8 +1372,7 @@ export declare class VeLiveFileRecorderConfiguration {
604
1372
  /** {en}
605
1373
  * @detail api
606
1374
  * @brief Gets the height of the recorded video.
607
- * @return <br>
608
- * The height of the recorded video.
1375
+ * @return The height of the recorded video.
609
1376
  *
610
1377
  */
611
1378
  getHeight(): int;
@@ -613,8 +1380,8 @@ export declare class VeLiveFileRecorderConfiguration {
613
1380
  /** {en}
614
1381
  * @detail api
615
1382
  * @brief Sets the height of the recorded video.
616
- * @return <br>The local recording configurations. See VeLiveFileRecorderConfiguration for details.
617
1383
  * @param height The height of the recorded video, the default value is `640`.
1384
+ * @return The local recording configurations. See [VeLiveFileRecorderConfiguration](#VeLivePusherDef-VeLiveFileRecorderConfiguration) for details.
618
1385
  *
619
1386
  */
620
1387
  setHeight(height: int): this;
@@ -622,8 +1389,7 @@ export declare class VeLiveFileRecorderConfiguration {
622
1389
  /** {en}
623
1390
  * @detail api
624
1391
  * @brief Gets the frame rate of the recorded video.
625
- * @return <br>
626
- * The frame rate of the recorded video.
1392
+ * @return The frame rate of the recorded video.
627
1393
  *
628
1394
  */
629
1395
  getFps(): int;
@@ -631,8 +1397,8 @@ export declare class VeLiveFileRecorderConfiguration {
631
1397
  /** {en}
632
1398
  * @detail api
633
1399
  * @brief Sets the frame rate of the recorded video.
634
- * @return <br>The local recording configurations. See VeLiveFileRecorderConfiguration for details.
635
1400
  * @param fps The frame rate of the recorded video. The default value is `15`.
1401
+ * @return The local recording configurations. See [VeLiveFileRecorderConfiguration](#VeLivePusherDef-VeLiveFileRecorderConfiguration) for details.
636
1402
  *
637
1403
  */
638
1404
  setFps(fps: int): this;
@@ -640,8 +1406,7 @@ export declare class VeLiveFileRecorderConfiguration {
640
1406
  /** {en}
641
1407
  * @detail api
642
1408
  * @brief Gets the bitrate of the recorded video.
643
- * @return <br>
644
- * The bitrate of the recorded video.
1409
+ * @return The bitrate of the recorded video.
645
1410
  *
646
1411
  */
647
1412
  getBitrate(): int;
@@ -649,34 +1414,75 @@ export declare class VeLiveFileRecorderConfiguration {
649
1414
  /** {en}
650
1415
  * @detail api
651
1416
  * @brief Sets the bitrate of the recorded video.
652
- * @return <br>The local recording configurations. See VeLiveFileRecorderConfiguration for details.
653
1417
  * @param bitrate The bitrate of the recorded video, in Kbps. The default value is `2000`.
1418
+ * @return The local recording configurations. See [VeLiveFileRecorderConfiguration](#VeLivePusherDef-VeLiveFileRecorderConfiguration) for details.
654
1419
  *
655
1420
  */
656
1421
  setBitrate(bitrate: int): this;
657
1422
  }
658
1423
  export declare class VeLiveMixVideoLayout {
659
1424
 
1425
+ /** {en}
1426
+ * @brief The unique identifier for a video stream.
1427
+ *
1428
+ */
660
1429
  streamId: int;
661
1430
 
1431
+ /** {en}
1432
+ * @brief The horizontal offset, which represents the ratio of the distance between the left edge of the video and the left edge of the screen to the width of the screen. The value range is [0.0,1.0], where `0.0` indicates the left edge and `1.0` indicates the right edge.
1433
+ *
1434
+ */
662
1435
  x: float;
663
1436
 
1437
+ /** {en}
1438
+ * @brief The vertical offset, which represents the ratio of the distance between the top edge of the video and the top edge of the screen to the height of the screen. The value range is [0.0,1.0], where `0.0` indicates the top edge and `1.0` indicates the bottom edge.
1439
+ *
1440
+ */
664
1441
  y: float;
665
1442
 
1443
+ /** {en}
1444
+ * @brief The ratio of the video width to the screen width. The value range is [0.0,1.0], where `1.0` indicates that the video occupies the entire screen width.
1445
+ *
1446
+ */
666
1447
  width: float;
667
1448
 
1449
+ /** {en}
1450
+ * @brief The ratio of the video height to the screen height. The value range is [0.0,1.0], where `1.0` indicates that the video occupies the entire screen height.
1451
+ *
1452
+ */
668
1453
  height: float;
669
1454
 
1455
+ /** {en}
1456
+ * @brief The video transparency. The value range is [0.0, 1.0], where `0.0` indicates full transparency and `1.0` indicates full opacity.
1457
+ *
1458
+ */
670
1459
  alpha: float;
671
1460
 
1461
+ /** {en}
1462
+ * @brief The level of video within the final mixed video. The value range is [0,100], where `0` represents the bottom layer. The higher the value, the higher the level of the video in the final output.
1463
+ *
1464
+ */
672
1465
  zOrder: int;
673
1466
 
1467
+ /** {en}
1468
+ * @brief The render mode of the video. See [VeLivePusherRenderMode](#VeLivePusherRenderMode) for details.
1469
+ *
1470
+ */
674
1471
  renderMode: VeLivePusherRenderMode;
675
1472
 
1473
+ /** {en}
1474
+ * @brief Whether to retain the original Alpha channel value of the video stream. The default is retain. When the value of [alpha](#VeLiveMixVideoLayout-alpha) is within the range of [0.0, 1.0], this configuration is ignored.<br/>
1475
+ *
1476
+ * - YES: Retain;
1477
+ * - NO: Do not retain.
1478
+ *
1479
+ */
1480
+ enableAlpha: boolean;
1481
+
676
1482
  /** {en}
677
1483
  * @detail api
678
1484
  * @brief Updates video mixing configurations.
679
- * @param other New video mixing configurations. See VeLiveMixVideoLayout {@link #VeLiveMixVideoLayout} for details.
1485
+ * @param other New video mixing configurations. See [VeLiveMixVideoLayout](#VeLivePusherDef-VeLiveMixVideoLayout) for details.
680
1486
  *
681
1487
  */
682
1488
  update(other: VeLiveMixVideoLayout): void;
@@ -686,8 +1492,8 @@ export declare class VeLiveVideoEffectLicenseConfiguration {
686
1492
  /** {en}
687
1493
  * @detail api
688
1494
  * @brief Initializes the license configurations in local authentication mode.
689
- * @return <br>A VeLiveVideoEffectLicenseConfiguration object that uses the specified local path for license authentication.
690
- * @param path The local cache path for the video effects license. You can get the path through the getPath {@link #getPath} property.
1495
+ * @param path The local cache path for the video effects license. You can get the path through the [getPath](#VeLiveVideoEffectLicenseConfiguration-getpath) property.
1496
+ * @return A VeLiveVideoEffectLicenseConfiguration object that uses the specified local path for license authentication.
691
1497
  *
692
1498
  */
693
1499
  static create(path: String): VeLiveVideoEffectLicenseConfiguration;
@@ -695,8 +1501,8 @@ export declare class VeLiveVideoEffectLicenseConfiguration {
695
1501
  /** {en}
696
1502
  * @detail api
697
1503
  * @brief Initializes the license configurations in local authentication mode.
698
- * @return <br>A VeLiveVideoEffectLicenseConfiguration object that uses the specified local path for license authentication.
699
- * @param path The local cache path for the video effects license. You can get the path through the getPath {@link #getPath} property.
1504
+ * @param path The local cache path for the video effects license. You can get the path through the [getPath](#VeLiveVideoEffectLicenseConfiguration-getpath) property.
1505
+ * @return A VeLiveVideoEffectLicenseConfiguration object that uses the specified local path for license authentication.
700
1506
  *
701
1507
  */
702
1508
  static create_key$secret$url(key: String, secret: String, url: String): VeLiveVideoEffectLicenseConfiguration;
@@ -704,52 +1510,55 @@ export declare class VeLiveVideoEffectLicenseConfiguration {
704
1510
  /** {en}
705
1511
  * @detail api
706
1512
  * @brief Gets the special effects license type.
707
- * @return <br>
708
- * The special effects license type. See VeLiveVideoEffectLicenseType {@link #VeLiveVideoEffectLicenseType} for details..
1513
+ * @return The special effects license type. See [VeLiveVideoEffectLicenseType](#VeLiveVideoEffectLicenseType) for details..
709
1514
  *
710
1515
  */
711
1516
  getType(): VeLiveVideoEffectLicenseType;
712
1517
 
713
1518
  /** {en}
714
1519
  * @detail api
715
- * @brief Gets the local path to the video effects license.
716
- * @return <br>
717
- * The local path to the video effects license, when VeLiveVideoEffectLicenseType {@link #VeLiveVideoEffectLicenseType} is `VeLiveVideoEffectLicenseTypeOffLine`.
1520
+ * @brief Gets the local path to the video effects license. When [VeLiveVideoEffectLicenseType](#VeLiveVideoEffectLicenseType) is `VeLiveVideoEffectLicenseTypeOffLine`, return the local path of the license file.
1521
+ * @return The local path to the video effects license.
718
1522
  *
719
1523
  */
720
1524
  getPath(): String;
721
1525
 
722
1526
  /** {en}
723
1527
  * @detail api
724
- * @brief Gets the online authentication key for the video effects licenses.
725
- * @return <br>
726
- * The online authentication key for the video effects license, when VeLiveVideoEffectLicenseType {@link #VeLiveVideoEffectLicenseType} is `VeLiveVideoEffectLicenseTypeOnLine`.
1528
+ * @brief Gets the online authentication key for the video effects licenses, when [VeLiveVideoEffectLicenseType](#VeLiveVideoEffectLicenseType) is `VeLiveVideoEffectLicenseTypeOnLine`.
1529
+ * @return The online authentication key for the video effects license.
727
1530
  *
728
1531
  */
729
1532
  getKey(): String;
730
1533
 
731
1534
  /** {en}
732
1535
  * @detail api
733
- * @brief Gets the online authentication secret for the video effects license.
734
- * @return <br>
735
- * The online authentication secret for the video effects license, when VeLiveVideoEffectLicenseType {@link #VeLiveVideoEffectLicenseType} is `VeLiveVideoEffectLicenseTypeOnLine`.
1536
+ * @brief Gets the online authentication secret for the video effects license, when [VeLiveVideoEffectLicenseType](#VeLiveVideoEffectLicenseType) is `VeLiveVideoEffectLicenseTypeOnLine`.
1537
+ * @return The online authentication secret for the video effects license.
736
1538
  *
737
1539
  */
738
1540
  getSecret(): String;
739
1541
 
740
1542
  /** {en}
741
1543
  * @detail api
742
- * @brief Gets the online authentication address for the video effects license.
743
- * @return <br>
744
- * The online authentication address for the video effects license, when VeLiveVideoEffectLicenseType {@link #VeLiveVideoEffectLicenseType} is `VeLiveVideoEffectLicenseTypeOnLine`.
1544
+ * @brief Gets the online authentication address for the video effects license, when [VeLiveVideoEffectLicenseType](#VeLiveVideoEffectLicenseType) is `VeLiveVideoEffectLicenseTypeOnLine`.
1545
+ * @return The online authentication address for the video effects license.
745
1546
  *
746
1547
  */
747
1548
  getUrl(): String;
748
1549
  }
749
1550
  export declare enum VeLiveAudioFrameSource {
750
1551
 
1552
+ /** {en}
1553
+ * @brief The original audio frame captured by the microphone or other audio sources.
1554
+ *
1555
+ */
751
1556
  VeLiveAudioFrameSourceCapture = 1,
752
1557
 
1558
+ /** {en}
1559
+ * @brief The audio frame to be encoded after undergoing various processes, such as noise cancellation and echo cancellation.
1560
+ *
1561
+ */
753
1562
  VeLiveAudioFrameSourcePreEncode = "1 << 1"
754
1563
  }
755
1564
  export declare class VeLiveAudioEncoderConfiguration {
@@ -757,8 +1566,7 @@ export declare class VeLiveAudioEncoderConfiguration {
757
1566
  /** {en}
758
1567
  * @detail api
759
1568
  * @brief Gets the audio encoding bitrate.
760
- * @return <br>
761
- * The audio encoding bitrate.
1569
+ * @return The audio encoding bitrate.
762
1570
  *
763
1571
  */
764
1572
  getBitrate(): int;
@@ -766,8 +1574,8 @@ export declare class VeLiveAudioEncoderConfiguration {
766
1574
  /** {en}
767
1575
  * @detail api
768
1576
  * @brief Sets the audio encoding bitrate.
769
- * @return <br>The audio encoding configurations. See VeLiveAudioEncoderConfiguration for details.
770
1577
  * @param bitrate The audio encoding bitrate, in Kbps. The default value is `64`.
1578
+ * @return The audio encoding configurations. See [VeLiveAudioEncoderConfiguration](#VeLivePusherDef-VeLiveAudioEncoderConfiguration) for details.
771
1579
  *
772
1580
  */
773
1581
  setBitrate(bitrate: int): this;
@@ -775,8 +1583,7 @@ export declare class VeLiveAudioEncoderConfiguration {
775
1583
  /** {en}
776
1584
  * @detail api
777
1585
  * @brief Gets the encoding sample rate.
778
- * @return <br>
779
- * The encoding sample rate. See VeLiveAudioSampleRate {@link #VeLiveAudioSampleRate} for details.
1586
+ * @return The encoding sample rate. See [VeLiveAudioSampleRate](#VeLiveAudioSampleRate) for details.
780
1587
  *
781
1588
  */
782
1589
  getSampleRate(): VeLiveAudioSampleRate;
@@ -784,8 +1591,8 @@ export declare class VeLiveAudioEncoderConfiguration {
784
1591
  /** {en}
785
1592
  * @detail api
786
1593
  * @brief Sets the encoding sample rate.
787
- * @return <br>The audio encoding configurations. See VeLiveAudioEncoderConfiguration for details.
788
- * @param sampleRate The encoding sample rate. The default value is `VeLiveAudioSampleRate44100`. See VeLiveAudioSampleRate {@link #VeLiveAudioSampleRate} for details.
1594
+ * @param sampleRate The encoding sample rate. The default value is `VeLiveAudioSampleRate44100`. See [VeLiveAudioSampleRate](#VeLiveAudioSampleRate) for details.
1595
+ * @return The audio encoding configurations. See [VeLiveAudioEncoderConfiguration](#VeLivePusherDef-VeLiveAudioEncoderConfiguration) for details.
789
1596
  *
790
1597
  */
791
1598
  setSampleRate(sampleRate: VeLiveAudioSampleRate): this;
@@ -793,8 +1600,7 @@ export declare class VeLiveAudioEncoderConfiguration {
793
1600
  /** {en}
794
1601
  * @detail api
795
1602
  * @brief Gets the number of audio channels for streaming.
796
- * @return <br>
797
- * The number of audio channels for streaming. See VeLiveAudioChannel {@link #VeLiveAudioChannel} for details.
1603
+ * @return The number of audio channels for streaming. See [VeLiveAudioChannel](#VeLiveAudioChannel) for details.
798
1604
  *
799
1605
  */
800
1606
  getChannel(): VeLiveAudioChannel;
@@ -802,8 +1608,8 @@ export declare class VeLiveAudioEncoderConfiguration {
802
1608
  /** {en}
803
1609
  * @detail api
804
1610
  * @brief Sets the number of audio channels for streaming.
805
- * @return <br>The audio encoding configurations. See VeLiveAudioEncoderConfiguration for details.
806
- * @param channel The number of audio channels for streaming. The default value is `VeLiveAudioChannelStereo`. See VeLiveAudioChannel {@link #VeLiveAudioChannel} for details.
1611
+ * @param channel The number of audio channels for streaming. The default value is `VeLiveAudioChannelStereo`. See [VeLiveAudioChannel](#VeLiveAudioChannel) for details.
1612
+ * @return The audio encoding configurations. See [VeLiveAudioEncoderConfiguration](#VeLivePusherDef-VeLiveAudioEncoderConfiguration) for details.
807
1613
  *
808
1614
  */
809
1615
  setChannel(channel: VeLiveAudioChannel): this;
@@ -811,8 +1617,7 @@ export declare class VeLiveAudioEncoderConfiguration {
811
1617
  /** {en}
812
1618
  * @detail api
813
1619
  * @brief Gets the audio encoding format.
814
- * @return <br>
815
- * The audio encoding format. See VeLiveAudioProfile {@link #VeLiveAudioProfile} for details.
1620
+ * @return The audio encoding format. See [VeLiveAudioProfile](#VeLiveAudioProfile) for details.
816
1621
  *
817
1622
  */
818
1623
  getProfile(): VeLiveAudioProfile;
@@ -820,27 +1625,55 @@ export declare class VeLiveAudioEncoderConfiguration {
820
1625
  /** {en}
821
1626
  * @detail api
822
1627
  * @brief Sets the audio encoding format.
823
- * @return <br>The audio encoding configurations. See VeLiveAudioEncoderConfiguration for details.
824
- * @param profile The audio encoding format. The default value is `VeLiveAudioAACProfileLC`. See VeLiveAudioProfile {@link #VeLiveAudioProfile} for details.
1628
+ * @param profile The audio encoding format. The default value is `VeLiveAudioAACProfileLC`. See [VeLiveAudioProfile](#VeLiveAudioProfile) for details.
1629
+ * @return The audio encoding configurations. See [VeLiveAudioEncoderConfiguration](#VeLivePusherDef-VeLiveAudioEncoderConfiguration) for details.
825
1630
  *
826
1631
  */
827
1632
  setProfile(profile: VeLiveAudioProfile): this;
828
1633
  }
829
1634
  export declare enum VeLiveAudioMixType {
830
1635
 
1636
+ /** {en}
1637
+ * @brief The audience can hear the mixed audio, but the host cannot.
1638
+ *
1639
+ */
831
1640
  VeLiveAudioMixPush = 0,
832
1641
 
1642
+ /** {en}
1643
+ * @brief Both the host and audience can hear the mixed audio.
1644
+ *
1645
+ */
833
1646
  VeLiveAudioMixPlayAndPush = 1
834
1647
  }
835
1648
  export declare enum VeLiveAudioCaptureType {
836
1649
 
1650
+ /** {en}
1651
+ * @brief Capture the audio with the default microphone.
1652
+ *
1653
+ */
837
1654
  VeLiveAudioCaptureMicrophone = 0,
838
1655
 
1656
+ /** {en}
1657
+ * @brief Capture the audio in voice call mode, which will activate the 3A features of the hardware, including automatic gain control, automatic frequency control, and automatic noise suppression.
1658
+ *
1659
+ */
839
1660
  VeLiveAudioCaptureVoiceCommunication = 1,
840
1661
 
1662
+ /** {en}
1663
+ * @brief Capture the audio in screen recording.
1664
+ *
1665
+ */
841
1666
  VeLiveAudioCaptureVoiceRecognition = 2,
842
1667
 
1668
+ /** {en}
1669
+ * @brief Capture the audio with an external device or source.
1670
+ *
1671
+ */
843
1672
  VeLiveAudioCaptureExternal = 3,
844
1673
 
1674
+ /** {en}
1675
+ * @brief Use muted frames as the audio source.
1676
+ *
1677
+ */
845
1678
  VeLiveAudioCaptureMuteFrame = 4
846
1679
  }