@byteplus/react-native-live-push 1.5.1-rc.1 → 1.5.1-rc.3

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 (54) hide show
  1. package/ios/RCTVeLivePush/RCTVeLivePush.mm +1 -1
  2. package/ios/VeLiveMixerView.m +5 -15
  3. package/lib/commonjs/typescript/codegen/android/api.d.ts +869 -93
  4. package/lib/commonjs/typescript/codegen/android/callback.d.ts +243 -31
  5. package/lib/commonjs/typescript/codegen/android/errorcode.d.ts +60 -15
  6. package/lib/commonjs/typescript/codegen/android/keytype.d.ts +1173 -219
  7. package/lib/commonjs/typescript/codegen/ios/api.d.ts +899 -102
  8. package/lib/commonjs/typescript/codegen/ios/callback.d.ts +162 -28
  9. package/lib/commonjs/typescript/codegen/ios/errorcode.d.ts +100 -25
  10. package/lib/commonjs/typescript/codegen/ios/keytype.d.ts +692 -180
  11. package/lib/commonjs/typescript/codegen/pack/api.d.ts +1180 -133
  12. package/lib/commonjs/typescript/codegen/pack/callback.d.ts +243 -35
  13. package/lib/commonjs/typescript/codegen/pack/errorcode.d.ts +69 -16
  14. package/lib/commonjs/typescript/codegen/pack/keytype.d.ts +1459 -270
  15. package/lib/commonjs/typescript/core/api.d.ts +8 -1
  16. package/lib/commonjs/typescript/core/effect.d.ts +5 -1
  17. package/lib/commonjs/typescript/core/logger.d.ts +1 -0
  18. package/lib/commonjs/typescript/platforms/android/AppLogWrapper.d.ts +8 -0
  19. package/lib/commonjs/typescript/platforms/ios/RangersAppLog.d.ts +4 -0
  20. package/lib/module/typescript/codegen/android/api.d.ts +869 -93
  21. package/lib/module/typescript/codegen/android/callback.d.ts +243 -31
  22. package/lib/module/typescript/codegen/android/errorcode.d.ts +60 -15
  23. package/lib/module/typescript/codegen/android/keytype.d.ts +1173 -219
  24. package/lib/module/typescript/codegen/ios/api.d.ts +899 -102
  25. package/lib/module/typescript/codegen/ios/callback.d.ts +162 -28
  26. package/lib/module/typescript/codegen/ios/errorcode.d.ts +100 -25
  27. package/lib/module/typescript/codegen/ios/keytype.d.ts +692 -180
  28. package/lib/module/typescript/codegen/pack/api.d.ts +1180 -133
  29. package/lib/module/typescript/codegen/pack/callback.d.ts +243 -35
  30. package/lib/module/typescript/codegen/pack/errorcode.d.ts +69 -16
  31. package/lib/module/typescript/codegen/pack/keytype.d.ts +1459 -270
  32. package/lib/module/typescript/core/api.d.ts +8 -1
  33. package/lib/module/typescript/core/effect.d.ts +5 -1
  34. package/lib/module/typescript/core/logger.d.ts +1 -0
  35. package/lib/module/typescript/platforms/android/AppLogWrapper.d.ts +8 -0
  36. package/lib/module/typescript/platforms/ios/RangersAppLog.d.ts +4 -0
  37. package/lib/typescript/codegen/android/api.d.ts +869 -93
  38. package/lib/typescript/codegen/android/callback.d.ts +243 -31
  39. package/lib/typescript/codegen/android/errorcode.d.ts +60 -15
  40. package/lib/typescript/codegen/android/keytype.d.ts +1173 -219
  41. package/lib/typescript/codegen/ios/api.d.ts +899 -102
  42. package/lib/typescript/codegen/ios/callback.d.ts +162 -28
  43. package/lib/typescript/codegen/ios/errorcode.d.ts +100 -25
  44. package/lib/typescript/codegen/ios/keytype.d.ts +692 -180
  45. package/lib/typescript/codegen/pack/api.d.ts +1180 -133
  46. package/lib/typescript/codegen/pack/callback.d.ts +243 -35
  47. package/lib/typescript/codegen/pack/errorcode.d.ts +69 -16
  48. package/lib/typescript/codegen/pack/keytype.d.ts +1459 -270
  49. package/lib/typescript/core/api.d.ts +8 -1
  50. package/lib/typescript/core/effect.d.ts +5 -1
  51. package/lib/typescript/core/logger.d.ts +1 -0
  52. package/lib/typescript/platforms/android/AppLogWrapper.d.ts +8 -0
  53. package/lib/typescript/platforms/ios/RangersAppLog.d.ts +4 -0
  54. package/package.json +1 -1
@@ -1,12 +1,18 @@
1
1
  import { int, BOOL, NSDictionary, float, CMTime, GLuint, CVPixelBufferRef, CMSampleBufferRef, NSData, NSArray, NSString } from './types';
2
2
  export declare enum VeLiveVideoEffectLicenseType {
3
-
3
+ /** {zh}
4
+ * @brief 离线认证视频特效许可证。
5
+ *
6
+ */
4
7
  /** {en}
5
8
  * @brief Authenticate offline.
6
9
  *
7
10
  */
8
11
  VeLiveVideoEffectLicenseTypeOffLine = 0,
9
-
12
+ /** {zh}
13
+ * @brief 在线认证视频特效许可证。
14
+ *
15
+ */
10
16
  /** {en}
11
17
  * @brief Authenticate online.
12
18
  *
@@ -14,25 +20,37 @@ export declare enum VeLiveVideoEffectLicenseType {
14
20
  VeLiveVideoEffectLicenseTypeOnLine = 1
15
21
  }
16
22
  export declare enum VeLiveNetworkQuality {
17
-
23
+ /** {zh}
24
+ * @brief 未查询到网络状态。
25
+ *
26
+ */
18
27
  /** {en}
19
28
  * @brief Network status not found.
20
29
  *
21
30
  */
22
31
  VeLiveNetworkQualityUnknown = -1,
23
-
32
+ /** {zh}
33
+ * @brief 网络差。
34
+ *
35
+ */
24
36
  /** {en}
25
37
  * @brief Bad network condition.
26
38
  *
27
39
  */
28
40
  VeLiveNetworkQualityBad = 0,
29
-
41
+ /** {zh}
42
+ * @brief 网络一般。
43
+ *
44
+ */
30
45
  /** {en}
31
46
  * @brief Poor network condition.
32
47
  *
33
48
  */
34
49
  VeLiveNetworkQualityPoor = 1,
35
-
50
+ /** {zh}
51
+ * @brief 网络状态佳。
52
+ *
53
+ */
36
54
  /** {en}
37
55
  * @brief Good network condition.
38
56
  *
@@ -40,13 +58,19 @@ export declare enum VeLiveNetworkQuality {
40
58
  VeLiveNetworkQualityGood = 2
41
59
  }
42
60
  export declare enum VeLiveAudioChannel {
43
-
61
+ /** {zh}
62
+ * @brief 单声道,适用于语音通信,节省带宽。
63
+ *
64
+ */
44
65
  /** {en}
45
66
  * @brief Mono, which is suitable for voice communication and saves bandwidth.
46
67
  *
47
68
  */
48
69
  VeLiveAudioChannelMono = 1,
49
-
70
+ /** {zh}
71
+ * @brief 立体声,适用于音乐播放,提供更丰富的音频体验。
72
+ *
73
+ */
50
74
  /** {en}
51
75
  * @brief Stereo, which provides a richer audio experience and is suitable for music playback.
52
76
  *
@@ -54,25 +78,37 @@ export declare enum VeLiveAudioChannel {
54
78
  VeLiveAudioChannelStereo = 2
55
79
  }
56
80
  export declare enum VeLiveVideoEncodeFrameType {
57
-
81
+ /** {zh}
82
+ * @brief IDR 帧类型,关键帧,帧序列中的第一帧或者在视频切换点的帧。
83
+ *
84
+ */
58
85
  /** {en}
59
86
  * @brief IDR frame.
60
87
  *
61
88
  */
62
89
  VeLiveVideoEncodeFrameTypeIDR = 1,
63
-
90
+ /** {zh}
91
+ * @brief SPS/PPS 帧类型,序列参数集 SPS 和图像参数集 PPS 帧,通常与 IDR 帧一起发送。
92
+ *
93
+ */
64
94
  /** {en}
65
95
  * @brief SPS/PPS frame.
66
96
  *
67
97
  */
68
98
  VeLiveVideoEncodeFrameTypeSPSPPS = 2,
69
-
99
+ /** {zh}
100
+ * @brief B 帧类型,双向预测内插帧,根据前后帧来预测当前帧的内容。
101
+ *
102
+ */
70
103
  /** {en}
71
104
  * @brief B frame.
72
105
  *
73
106
  */
74
107
  VeLiveVideoEncodeFrameTypeB = 3,
75
-
108
+ /** {zh}
109
+ * @brief P 帧类型,向前预测帧,只根据前一帧来预测当前帧的内容。
110
+ *
111
+ */
76
112
  /** {en}
77
113
  * @brief P frame.
78
114
  *
@@ -80,56 +116,83 @@ export declare enum VeLiveVideoEncodeFrameType {
80
116
  VeLiveVideoEncodeFrameTypeP = 4
81
117
  }
82
118
  export declare class VeLiveVideoEncoderConfiguration {
83
-
119
+ /** {zh}
120
+ * @brief 推流视频分辨率,默认值为 VeLiveVideoResolution720P,详情请参见 [VeLiveVideoResolution](#VeLiveVideoResolution)。
121
+ */
84
122
  /** {en}
85
123
  * @brief The video resolution. See [VeLiveVideoResolution](#VeLiveVideoResolution) for details. The default value is `VeLiveVideoResolution720P`.
86
124
  */
87
125
  resolution: VeLiveVideoResolution;
88
-
126
+ /** {zh}
127
+ * @brief 推流视频编码格式,默认值为 VeLiveVideoCodecH264,详情请参见 [VeLiveVideoCodec](#VeLiveVideoCodec)。
128
+ */
89
129
  /** {en}
90
130
  * @brief The video codec. The default value is `VeLiveVideoCodecH264`. See [VeLiveVideoCodec](#VeLiveVideoCodec) for details.
91
131
  */
92
132
  codec: VeLiveVideoCodec;
93
-
133
+ /** {zh}
134
+ * @brief 视频目标编码码率,单位为 kbps,默认值由 `resolution` 参数值决定。
135
+ */
94
136
  /** {en}
95
137
  * @brief The target video encoding bitrate, in Kbps. The default value depends on the value of the `resolution` parameter.
96
138
  */
97
139
  bitrate: int;
98
-
140
+ /** {zh}
141
+ * @brief 视频最小编码码率,单位为 kbps,默认值由 `resolution` 参数值决定;如果开启自适应码率,推流 SDK 根据网络情况进行编码码率自适应调整的最小码率。
142
+ */
99
143
  /** {en}
100
144
  * @brief The minimum video encoding bitrate, in Kbps, when the adaptive bitrate (ABR) feature is enabled. The default value depends on the value of the `resolution` parameter.
101
145
  */
102
146
  minBitrate: int;
103
-
147
+ /** {zh}
148
+ * @brief 视频最大编码码率,单位为 kbps,默认值由 `resolution` 参数值决定;如果开启自适应码率,推流 SDK 根据网络情况进行编码码率自适应调整的最大码率。
149
+ */
104
150
  /** {en}
105
151
  * @brief 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.
106
152
  */
107
153
  maxBitrate: int;
108
-
154
+ /** {zh}
155
+ * @brief 视频 GOP 大小,单位为 s,默认值为 2。
156
+ */
109
157
  /** {en}
110
158
  * @brief The video GOP size, in seconds. The default value is `2`.
111
159
  */
112
160
  gopSize: int;
113
-
161
+ /** {zh}
162
+ * @brief 视频编码帧率,单位为 fps,默认值为 15。
163
+ */
114
164
  /** {en}
115
165
  * @brief The encoded frame rate, in fps. The default value is `15`.
116
166
  */
117
167
  fps: int;
118
-
168
+ /** {zh}
169
+ * @brief 是否启用 B 帧,默认值为 NO,支持的取值包括:<br>
170
+ * - YES:开启;
171
+ * - NO:关闭。
172
+ */
119
173
  /** {en}
120
174
  * @brief Whether to enable B frames. <br>
121
175
  * - YES: Enable.
122
176
  * - NO: (Default) Disable.
123
177
  */
124
178
  enableBFrame: BOOL;
125
-
179
+ /** {zh}
180
+ * @brief 是否开启硬件编码。
181
+ * - YES:(Default) 开启;
182
+ * - NO:不开启。
183
+ */
126
184
  /** {en}
127
185
  * @brief Whether to enable hardware encoding.<br>
128
186
  * - YES: (Default) Enable;
129
187
  * - NO: Disable.
130
188
  */
131
189
  enableAccelerate: BOOL;
132
-
190
+ /** {zh}
191
+ * @brief 初始化方法,用于创建一个 VeLiveVideoEncoderConfiguration{@link #VeLiveVideoEncoderConfiguration} 对象,并指定视频的分辨率。
192
+ * @param resolution 视频的分辨率,详情请参见 VeLiveVideoResolution{@link #VeLiveVideoResolution}。
193
+ * @return <br>
194
+ * 创建的 VeLiveVideoEncoderConfiguration{@link #VeLiveVideoEncoderConfiguration} 对象。
195
+ */
133
196
  /** {en}
134
197
  * @brief Creates a VeLiveVideoEncoderConfiguration {@link #VeLiveVideoEncoderConfiguration} object and specifies the video resolution.
135
198
  * @param resolution The video resolution. See VeLiveVideoResolution {@link #VeLiveVideoResolution} for details.
@@ -139,13 +202,19 @@ export declare class VeLiveVideoEncoderConfiguration {
139
202
  initWithResolution(resolution: VeLiveVideoResolution): this;
140
203
  }
141
204
  export declare enum VeLiveVideoFrameSource {
142
-
205
+ /** {zh}
206
+ * @brief 采集到的原始视频帧。这是从设备的摄像头或其他视频输入源获取的视频帧。
207
+ *
208
+ */
143
209
  /** {en}
144
210
  * @brief The original video frame captured by the camera or other video sources.
145
211
  *
146
212
  */
147
213
  VeLiveVideoFrameSourceCapture = 1,
148
-
214
+ /** {zh}
215
+ * @brief 编码前的视频帧。这是通过各种处理(例如滤镜、旋转等)后,准备进行编码的视频帧。
216
+ *
217
+ */
149
218
  /** {en}
150
219
  * @brief The video frame prior to encoding after undergoing various processes, such as filtering and rotation.
151
220
  *
@@ -153,19 +222,28 @@ export declare enum VeLiveVideoFrameSource {
153
222
  VeLiveVideoFrameSourcePreEncode = 2
154
223
  }
155
224
  export declare enum VeLiveAudioBufferType {
156
-
225
+ /** {zh}
226
+ * @brief 未知的音频数据类型。
227
+ *
228
+ */
157
229
  /** {en}
158
230
  * @brief Unknown data type.
159
231
  *
160
232
  */
161
233
  VeLiveAudioBufferTypeUnknown = -1,
162
-
234
+ /** {zh}
235
+ * @brief 音频数据类型为 CMSampleBufferRef。
236
+ *
237
+ */
163
238
  /** {en}
164
239
  * @brief CMSampleBufferRef.
165
240
  *
166
241
  */
167
242
  VeLiveAudioBufferTypeSampleBuffer = 0,
168
-
243
+ /** {zh}
244
+ * @brief 音频数据类型为 NSData。
245
+ *
246
+ */
169
247
  /** {en}
170
248
  * @brief NSData.
171
249
  *
@@ -173,27 +251,37 @@ export declare enum VeLiveAudioBufferType {
173
251
  VeLiveAudioBufferTypeNSData = 1
174
252
  }
175
253
  export declare class VeLivePusherConfiguration {
176
-
254
+ /** {zh}
255
+ * @brief 视频采集参数设置,用于调整和设置视频采集相关的参数。详情请参见 [VeLiveVideoCaptureConfiguration](#VeLiveVideoCaptureConfiguration)。
256
+ */
177
257
  /** {en}
178
258
  * @brief The video capture configurations. See [VeLiveVideoCaptureConfiguration](#VeLiveVideoCaptureConfiguration) for details.
179
259
  */
180
260
  videoCaptureConfig: VeLiveVideoCaptureConfiguration;
181
-
261
+ /** {zh}
262
+ * @brief 音频采集参数设置,用于调整和设置音频采集相关的参数。详情请参见 [VeLiveAudioCaptureConfiguration](#VeLiveAudioCaptureConfiguration)。
263
+ */
182
264
  /** {en}
183
265
  * @brief The audio capture configurations. See [VeLiveAudioCaptureConfiguration](#VeLiveAudioCaptureConfiguration) for details.
184
266
  */
185
267
  audioCaptureConfig: VeLiveAudioCaptureConfiguration;
186
-
268
+ /** {zh}
269
+ * @brief 推流失败后,尝试重连的时间间隔。单位为 s,默认值为 5。
270
+ */
187
271
  /** {en}
188
272
  * @brief The time interval between each attempt to reconnect, in seconds. The default value is `5`.
189
273
  */
190
274
  reconnectIntervalSeconds: int;
191
-
275
+ /** {zh}
276
+ * @brief 推流失败后,尝试重连的次数。默认值为 3。
277
+ */
192
278
  /** {en}
193
279
  * @brief The number of attempts to reconnect after the initial attempt fails. The default value is `3`.
194
280
  */
195
281
  reconnectCount: int;
196
-
282
+ /** {zh}
283
+ * @brief 设置扩展参数,用于实现某些特殊功能或配置,默认不需要设置。
284
+ */
197
285
  /** {en}
198
286
  * @brief Advanced parameters. You can leave this parameter empty.
199
287
  */
@@ -201,43 +289,64 @@ export declare class VeLivePusherConfiguration {
201
289
  init(): this;
202
290
  }
203
291
  export declare enum VeLiveVideoCaptureType {
204
-
292
+ /** {zh}
293
+ * @brief 使用前置摄像头进行视频采集。
294
+ *
295
+ */
205
296
  /** {en}
206
297
  * @brief Capture the video with the front-facing camera.
207
298
  *
208
299
  */
209
300
  VeLiveVideoCaptureFrontCamera = 0,
210
-
301
+ /** {zh}
302
+ * @brief 使用后置摄像头进行视频采集。
303
+ *
304
+ */
211
305
  /** {en}
212
306
  * @brief Capture the video with the rear camera.
213
307
  *
214
308
  */
215
309
  VeLiveVideoCaptureBackCamera = 1,
216
-
310
+ /** {zh}
311
+ * @brief 使用设备的双摄进行视频采集。
312
+ *
313
+ */
217
314
  /** {en}
218
315
  * @brief Capture the video with dual cameras.
219
316
  *
220
317
  */
221
318
  VeLiveVideoCaptureDualCamera = 2,
222
-
319
+ /** {zh}
320
+ * @brief 使用外部设备或源进行视频采集。
321
+ *
322
+ */
223
323
  /** {en}
224
324
  * @brief Capture the video with an external device or source.
225
325
  *
226
326
  */
227
327
  VeLiveVideoCaptureExternal = 4,
228
-
328
+ /** {zh}
329
+ * @brief 使用指定的静态图片作为视频源。
330
+ *
331
+ */
229
332
  /** {en}
230
333
  * @brief Use a static image as the video source.
231
334
  *
232
335
  */
233
336
  VeLiveVideoCaptureCustomImage = 5,
234
-
337
+ /** {zh}
338
+ * @brief 使用最近采集的一帧图像重复作为视频源。
339
+ *
340
+ */
235
341
  /** {en}
236
342
  * @brief Use the last frame as the video source.
237
343
  *
238
344
  */
239
345
  VeLiveVideoCaptureLastFrame = 6,
240
-
346
+ /** {zh}
347
+ * @brief 使用黑色帧作为视频源,一般用于调试或特殊需求。
348
+ *
349
+ */
241
350
  /** {en}
242
351
  * @brief Use a black frame as the video source. This is usually used for debugging purposes or in special circumstances.
243
352
  *
@@ -245,23 +354,32 @@ export declare enum VeLiveVideoCaptureType {
245
354
  VeLiveVideoCaptureDummyFrame = 7
246
355
  }
247
356
  export declare class VeLiveFileRecorderConfiguration {
248
-
357
+ /** {zh}
358
+ * @brief 录制的视频宽度,单位为 px,默认值为 360。
359
+ */
249
360
  /** {en}
250
361
  * @brief The width of the recorded video, in pixels. The default value is `360`.
251
362
  */
252
363
  width: int;
253
-
364
+ /** {zh}
365
+ * @brief 录制的视频高度,单位为 px,默认值为 640。
366
+ */
254
367
  /** {en}
255
368
  * @brief The height of the recorded video, in pixels. The default value is `640`.
256
369
  */
257
370
  height: int;
258
-
371
+ /** {zh}
372
+ * @deprecated
373
+ * @brief 录制的视频帧率,默认值为 15,取值范围为 [1,15]。
374
+ */
259
375
  /** {en}
260
376
  * @deprecated
261
377
  * @brief The frame rate of the recorded video. The default value is `15`. The value range is [1,15].
262
378
  */
263
379
  fps: int;
264
-
380
+ /** {zh}
381
+ * @brief 录制的视频编码码率,单位为 kbps,默认值为 2000。
382
+ */
265
383
  /** {en}
266
384
  * @brief The encoding bitrate of the recorded video, in Kbps. The default value is `2000`.
267
385
  */
@@ -269,31 +387,46 @@ export declare class VeLiveFileRecorderConfiguration {
269
387
  init(): this;
270
388
  }
271
389
  export declare enum VeLiveVideoBufferType {
272
-
390
+ /** {zh}
391
+ * @brief 未知视频数据类型,当未指定输入视频数据的格式时,会默认为此类型。
392
+ *
393
+ */
273
394
  /** {en}
274
395
  * @brief Unknown data type, which is the default type if you do not specify any type.
275
396
  *
276
397
  */
277
398
  VeLiveVideoBufferTypeUnKnown = -1,
278
-
399
+ /** {zh}
400
+ * @brief 视频数据类型为 CVPixelBuffer。
401
+ *
402
+ */
279
403
  /** {en}
280
404
  * @brief CVPixelBuffer.
281
405
  *
282
406
  */
283
407
  VeLiveVideoBufferTypePixelBuffer = 0,
284
-
408
+ /** {zh}
409
+ * @brief 视频数据类型为 CMSampleBufferRef。
410
+ *
411
+ */
285
412
  /** {en}
286
413
  * @brief CMSampleBufferRef.
287
414
  *
288
415
  */
289
416
  VeLiveVideoBufferTypeSampleBuffer = 1,
290
-
417
+ /** {zh}
418
+ * @brief 视频数据类型为 NSData。
419
+ *
420
+ */
291
421
  /** {en}
292
422
  * @brief NSData.
293
423
  *
294
424
  */
295
425
  VeLiveVideoBufferTypeNSData = 2,
296
-
426
+ /** {zh}
427
+ * @brief 视频数据类型为 OpenGL 纹理。
428
+ *
429
+ */
297
430
  /** {en}
298
431
  * @brief OpenGL texture.
299
432
  *
@@ -301,47 +434,68 @@ export declare enum VeLiveVideoBufferType {
301
434
  VeLiveVideoBufferTypeTexture = 3
302
435
  }
303
436
  export declare class VeLiveMixVideoLayout {
304
-
437
+ /** {zh}
438
+ * @brief 视频流 ID,唯一标识,用于区分不同的视频流。
439
+ */
305
440
  /** {en}
306
441
  * @brief The unique identifier for a video stream.
307
442
  */
308
443
  streamId: int;
309
-
444
+ /** {zh}
445
+ * @brief 视频流对应区域左上角的横坐标,该坐标是相对整体画面的归一化比例,取值的范围为 [0.0,1.0]。
446
+ */
310
447
  /** {en}
311
448
  * @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.
312
449
  */
313
450
  x: float;
314
-
451
+ /** {zh}
452
+ * @brief 视频流对应区域左上角的纵坐标,该坐标是相对整体画面的归一化比例,取值的范围为 [0.0,1.0]。
453
+ */
315
454
  /** {en}
316
455
  * @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.
317
456
  */
318
457
  y: float;
319
-
458
+ /** {zh}
459
+ * @brief 视频流对应区域宽度,该宽度是相对整体画面的归一化比例,取值的范围为 [0.0,1.0]。
460
+ */
320
461
  /** {en}
321
462
  * @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.
322
463
  */
323
464
  width: float;
324
-
465
+ /** {zh}
466
+ * @brief 视频流对应区域高度,该高度是相对整体画面的归一化比例,取值的范围为 [0.0,1.0]。
467
+ */
325
468
  /** {en}
326
469
  * @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.
327
470
  */
328
471
  height: float;
329
-
472
+ /** {zh}
473
+ * @brief 视频流在混流中的透明度,取值范围为 [0.0,1.0],取值 0.0 表示全透明,取值 1.0 表示不透明。
474
+ */
330
475
  /** {en}
331
476
  * @brief The video transparency. The value range is [0.0, 1.0], where `0.0` indicates full transparency and `1.0` indicates full opacity.
332
477
  */
333
478
  alpha: float;
334
-
479
+ /** {zh}
480
+ * @brief 视频流在混流中的层级。取值范围为 [0,100],取值 0 表示最底层,取值越大,层级越高。
481
+ */
335
482
  /** {en}
336
483
  * @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.
337
484
  */
338
485
  zOrder: int;
339
-
486
+ /** {zh}
487
+ * @brief 视频流的渲染模式。详情请参见 [VeLivePusherRenderMode](#VeLivePusherRenderMode)。
488
+ */
340
489
  /** {en}
341
490
  * @brief The render mode of the video. See [VeLivePusherRenderMode](#VeLivePusherRenderMode) for details.
342
491
  */
343
492
  renderMode: VeLivePusherRenderMode;
344
-
493
+ /** {zh}
494
+ * @brief 是否保留视频流原 Alpha 通道值,默认为保留,当 [alpha](#VeLiveMixVideoLayout-alpha) 取值在 [0.0, 1.0] 之间时,则忽略该配置。<br/>
495
+ *
496
+ * - YES:保留;
497
+ * - NO:不保留。
498
+ */
345
499
  /** {en}
346
500
  * @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/>
347
501
  *
@@ -352,12 +506,17 @@ export declare class VeLiveMixVideoLayout {
352
506
  init(): this;
353
507
  }
354
508
  export declare class VeLiveMixAudioLayout {
355
-
509
+ /** {zh}
510
+ * @brief 音频流 ID,唯一标识,用于区分不同的音频流。
511
+ */
356
512
  /** {en}
357
513
  * @brief The unique identifier for an audio stream.
358
514
  */
359
515
  streamId: int;
360
-
516
+ /** {zh}
517
+ * @detail api
518
+ * @brief 混流音频的音量,范围为 [0.0,4.0]。当你将 [VeLiveAudioMixType](#VeLiveAudioMixType) 设置为 `VeLiveAudioMixPlayAndPush` 时,该属性同时控制混流音频在拉流端和本地的播放音量。
519
+ */
361
520
  /** {en}
362
521
  * @detail api
363
522
  * @brief The volume of the mixed audio stream. The value range is [0.0,4.0]. If you set [VeLiveAudioMixType](#VeLiveAudioMixType) to `VeLiveAudioMixPlayAndPush`, this property takes effect on both the host and the audience sides.
@@ -366,19 +525,28 @@ export declare class VeLiveMixAudioLayout {
366
525
  init(): this;
367
526
  }
368
527
  export declare enum VeLiveAudioProfile {
369
-
528
+ /** {zh}
529
+ * @brief LC-AAC 编码方式。
530
+ *
531
+ */
370
532
  /** {en}
371
533
  * @brief LC-AAC.
372
534
  *
373
535
  */
374
536
  VeLiveAudioAACProfileLC = 0,
375
-
537
+ /** {zh}
538
+ * @brief HEv1-AAC 编码方式。
539
+ *
540
+ */
376
541
  /** {en}
377
542
  * @brief HEv1-AAC.
378
543
  *
379
544
  */
380
545
  VeLiveAudioAACProfileHEv1 = 1,
381
-
546
+ /** {zh}
547
+ * @brief HEv2-AAC 编码方式。
548
+ *
549
+ */
382
550
  /** {en}
383
551
  * @brief HEv2-AAC.
384
552
  *
@@ -386,57 +554,79 @@ export declare enum VeLiveAudioProfile {
386
554
  VeLiveAudioAACProfileHEv2 = 2
387
555
  }
388
556
  export declare class VeLiveVideoFrame {
389
-
557
+ /** {zh}
558
+ * @brief 视频数据包装格式。默认值为 VeLiveVideoBufferTypeUnknown,详情请参见 [VeLiveVideoBufferType](#VeLiveVideoBufferType)。
559
+ */
390
560
  /** {en}
391
561
  * @brief The video buffer type. The default value is `VeLiveVideoBufferTypeUnknown`. See [VeLiveVideoBufferType](#VeLiveVideoBufferType) for details.
392
562
  */
393
563
  bufferType: VeLiveVideoBufferType;
394
-
564
+ /** {zh}
565
+ * @brief 视频帧像素格式。bufferType 为 VeLiveVideoBufferTypeNSData 时,需要指定数据格式。详情请参见 [VeLivePixelFormat](#VeLivePixelFormat)。
566
+ */
395
567
  /** {en}
396
568
  * @brief The pixel format. When `bufferType` is `VeLiveVideoBufferTypeNSData`, you must specify `pixelFormat`. See [VeLivePixelFormat](#VeLivePixelFormat) for details.
397
569
  */
398
570
  pixelFormat: VeLivePixelFormat;
399
-
571
+ /** {zh}
572
+ * @brief 视频帧顺时针旋转角度。详情请参见 [VeLiveVideoRotation](#VeLiveVideoRotation)。
573
+ */
400
574
  /** {en}
401
575
  * @brief The rotation angle in a clockwise direction. See [VeLiveVideoRotation](#VeLiveVideoRotation) for details.
402
576
  */
403
577
  rotation: VeLiveVideoRotation;
404
-
578
+ /** {zh}
579
+ * @brief 视频宽度,单位为 px。
580
+ */
405
581
  /** {en}
406
582
  * @brief The width of the video, in pixels.
407
583
  */
408
584
  width: int;
409
-
585
+ /** {zh}
586
+ * @brief 视频高度,单位为 px。
587
+ */
410
588
  /** {en}
411
589
  * @brief The height of the video, in pixels.
412
590
  */
413
591
  height: int;
414
-
592
+ /** {zh}
593
+ * @brief 视频帧时间戳,单位为 μs。
594
+ */
415
595
  /** {en}
416
596
  * @brief The timestamp of the video frame, in μs.
417
597
  */
418
598
  pts: CMTime;
419
-
599
+ /** {zh}
600
+ * @brief `bufferType` 为 `VeLiveVideoBufferTypeTexture` 时的视频数据。
601
+ */
420
602
  /** {en}
421
603
  * @brief The video data, when `bufferType` is `VeLiveVideoBufferTypeTexture`.
422
604
  */
423
605
  textureId: GLuint;
424
-
606
+ /** {zh}
607
+ * @brief `bufferType` 为 `VeLiveVideoBufferTypePixelBuffer` 时的视频数据。
608
+ */
425
609
  /** {en}
426
610
  * @brief The video data, when `bufferType` is `VeLiveVideoBufferTypePixelBuffer`.
427
611
  */
428
612
  pixelBuffer: CVPixelBufferRef;
429
-
613
+ /** {zh}
614
+ * @brief `bufferType` 为 `VeLiveVideoBufferTypeSampleBuffer` 时的视频数据。
615
+ */
430
616
  /** {en}
431
617
  * @brief The video data, when `bufferType` is `VeLiveVideoBufferTypeSampleBuffer`.
432
618
  */
433
619
  sampleBuffer: CMSampleBufferRef;
434
-
620
+ /** {zh}
621
+ * @brief `bufferType` 为 `VeLiveVideoBufferTypeNSData` 时的视频数据。
622
+ */
435
623
  /** {en}
436
624
  * @brief The video data, when `bufferType` is `VeLiveVideoBufferTypeNSData`.
437
625
  */
438
626
  data: NSData;
439
-
627
+ /** {zh}
628
+ * @brief 释放回调函数,用于在 SDK 内部处理完 VideoFrame 后通知外部释放相关资源。此回调主要用于 SDK 外部为 VideoFrame 申请内存,以便 SDK 内部使用。但无法预知内部何时使用完毕。
629
+ */
440
630
  /** {en}
441
631
  * @brief Triggered when the SDK has completed processing the video frame and no longer needs the memory. You can release the memory for the video frame after receiving this callback.
442
632
  */
@@ -444,25 +634,37 @@ export declare class VeLiveVideoFrame {
444
634
  init(): this;
445
635
  }
446
636
  export declare enum VeLiveVideoFluencyLevel {
447
-
637
+ /** {zh}
638
+ * @brief 流畅,帧率能达到预设的目标帧率。
639
+ *
640
+ */
448
641
  /** {en}
449
642
  * @brief Smooth. The frame rate reaches the expected rate.
450
643
  *
451
644
  */
452
645
  VeLiveVideoFluencyLevelSmooth = 0,
453
-
646
+ /** {zh}
647
+ * @brief 一般卡顿,帧率比预设的目标帧率低 1fps~3fps。
648
+ *
649
+ */
454
650
  /** {en}
455
651
  * @brief Minor freeze. The frame rate is 1 to 3 fps lower than the expected rate.
456
652
  *
457
653
  */
458
654
  VeLiveVideoFluencyLevelSluggish = 1,
459
-
655
+ /** {zh}
656
+ * @brief 严重卡顿,帧率比预设的目标帧率低 4fps 以上。
657
+ *
658
+ */
460
659
  /** {en}
461
660
  * @brief Severe freeze. The frame rate is 4 fps lower than the expected rate.
462
661
  *
463
662
  */
464
663
  VeLiveVideoFluencyLevelBlocked = 2,
465
-
664
+ /** {zh}
665
+ * @brief 完全卡住,帧率低于 2fps。
666
+ *
667
+ */
466
668
  /** {en}
467
669
  * @brief Completely frozen. The frame rate is below 2 fps.
468
670
  *
@@ -470,19 +672,28 @@ export declare enum VeLiveVideoFluencyLevel {
470
672
  VeLiveVideoFluencyLevelStuck = 3
471
673
  }
472
674
  export declare enum VeLiveVideoMirrorType {
473
-
675
+ /** {zh}
676
+ * @brief 对采集画面的镜像控制。开启时,预览和推流画面都会呈现为镜像状态。
677
+ *
678
+ */
474
679
  /** {en}
475
680
  * @brief Mirror the captured video. When turned on, both the preview and the pushed video are mirrored.
476
681
  *
477
682
  */
478
683
  VeLiveVideoMirrorCapture = 0,
479
-
684
+ /** {zh}
685
+ * @brief 对预览画面的镜像控制。开启时,只有主播预览画面呈现镜像状态。
686
+ *
687
+ */
480
688
  /** {en}
481
689
  * @brief Mirror the preview. When turned on, only the preview is mirrored.
482
690
  *
483
691
  */
484
692
  VeLiveVideoMirrorPreview = 1,
485
-
693
+ /** {zh}
694
+ * @brief 对编码前画面的镜像控制。开启时,主播推流画面呈现镜像状态。
695
+ *
696
+ */
486
697
  /** {en}
487
698
  * @brief Mirror the video before encoding. When turned on, only the pushed video is mirrored.
488
699
  *
@@ -490,12 +701,16 @@ export declare enum VeLiveVideoMirrorType {
490
701
  VeLiveVideoMirrorPushStream = 2
491
702
  }
492
703
  export declare class VeLiveAudioCaptureConfiguration {
493
-
704
+ /** {zh}
705
+ * @brief 音频采样率,默认值为 `VeLiveAudioSampleRate44100`,详情请参见 [VeLiveAudioSampleRate](#VeLiveAudioSampleRate)。
706
+ */
494
707
  /** {en}
495
708
  * @brief The sample rate. See [VeLiveAudioSampleRate](#VeLiveAudioSampleRate) for details. The default value is `VeLiveAudioSampleRate44100`.
496
709
  */
497
710
  sampleRate: VeLiveAudioSampleRate;
498
-
711
+ /** {zh}
712
+ * @brief 音频采集声道数,默认值为 `VeLiveAudioChannelStereo`,详情请参见 [VeLiveAudioChannel](#VeLiveAudioChannel)。
713
+ */
499
714
  /** {en}
500
715
  * @brief The number of audio channels. See [VeLiveAudioChannel](#VeLiveAudioChannel) for details. The default value is `VeLiveAudioChannelStereo`.
501
716
  */
@@ -503,7 +718,16 @@ export declare class VeLiveAudioCaptureConfiguration {
503
718
  init(): this;
504
719
  }
505
720
  export declare enum VeLiveVideoResolution {
506
-
721
+ /** {zh}
722
+ * @brief 360P 分辨率。档位详细配置如下所示。
723
+ * - 横屏分辨率:640x360
724
+ * - 竖屏分辨率:360x640
725
+ * - 帧率:15fps
726
+ * - 目标码率:500kbps
727
+ * - 最小码率:250kbps
728
+ * - 最大码率:800kbps
729
+ *
730
+ */
507
731
  /** {en}
508
732
  * @brief 360P. The predefined configurations are as follows:
509
733
  * - Resolution in landscape mode: 640x360
@@ -515,7 +739,16 @@ export declare enum VeLiveVideoResolution {
515
739
  *
516
740
  */
517
741
  VeLiveVideoResolution360P = 0,
518
-
742
+ /** {zh}
743
+ * @brief 480P 分辨率。档位详细配置如下所示。
744
+ * - 横屏分辨率:864x480
745
+ * - 竖屏分辨率:480x864
746
+ * - 帧率:15fps
747
+ * - 目标码率:800kbps
748
+ * - 最小码率:320kbps
749
+ * - 最大码率:1266kbps
750
+ *
751
+ */
519
752
  /** {en}
520
753
  * @brief 480P. The predefined configurations are as follows:
521
754
  * - Resolution in landscape mode: 864x480
@@ -527,7 +760,16 @@ export declare enum VeLiveVideoResolution {
527
760
  *
528
761
  */
529
762
  VeLiveVideoResolution480P = 1,
530
-
763
+ /** {zh}
764
+ * @brief 540P 分辨率。档位详细配置如下所示。
765
+ * - 横屏 960x540
766
+ * - 竖屏 540x960
767
+ * - 帧率:15fps
768
+ * - 目标码率:1000kbps
769
+ * - 最小码率:500kbps
770
+ * - 最大码率:1520kbps
771
+ *
772
+ */
531
773
  /** {en}
532
774
  * @brief 540P. The predefined configurations are as follows:
533
775
  * - Resolution in landscape mode: 960x540
@@ -539,7 +781,16 @@ export declare enum VeLiveVideoResolution {
539
781
  *
540
782
  */
541
783
  VeLiveVideoResolution540P = 2,
542
-
784
+ /** {zh}
785
+ * @brief 720P 分辨率。档位详细配置如下所示。
786
+ * - 横屏 1280x720
787
+ * - 竖屏 720x1280
788
+ * - 帧率:15fps
789
+ * - 目标码率:1200kbps
790
+ * - 最小码率:800kbps
791
+ * - 最大码率:1900kbps
792
+ *
793
+ */
543
794
  /** {en}
544
795
  * @brief 720P. The predefined configurations are as follows:
545
796
  * - Resolution in landscape mode: 1280x720
@@ -551,7 +802,16 @@ export declare enum VeLiveVideoResolution {
551
802
  *
552
803
  */
553
804
  VeLiveVideoResolution720P = 3,
554
-
805
+ /** {zh}
806
+ * @brief 1080P 分辨率。档位详细配置如下所示。
807
+ * - 横屏 1920x1080
808
+ * - 竖屏 1080x1920
809
+ * - 帧率:20 fps
810
+ * - 目标码率:2500kbps
811
+ * - 最小码率:1000kbps
812
+ * - 最大码率:3800kbps
813
+ *
814
+ */
555
815
  /** {en}
556
816
  * @brief 1080P. The predefined configurations are as follows:
557
817
  * - Resolution in landscape mode: 1920x1080
@@ -563,7 +823,14 @@ export declare enum VeLiveVideoResolution {
563
823
  *
564
824
  */
565
825
  VeLiveVideoResolution1080P = 4,
566
-
826
+ /** {zh}
827
+ * @brief 屏幕推流分辨率。档位详细配置如下所示。
828
+ * - 帧率:15fps
829
+ * - 目标码率:2500kbps
830
+ * - 最小码率:1000kbps
831
+ * - 最大码率:3800kbps
832
+ *
833
+ */
567
834
  /** {en}
568
835
  * @brief The resolution of the streamed screen. The predefined configurations are as follows:
569
836
  * - Frame rate: 15 fps
@@ -575,25 +842,37 @@ export declare enum VeLiveVideoResolution {
575
842
  VeLiveVideoResolutionScreen = 10
576
843
  }
577
844
  export declare enum VeLiveVideoRotation {
578
-
845
+ /** {zh}
846
+ * @brief 不旋转。
847
+ *
848
+ */
579
849
  /** {en}
580
850
  * @brief Do not rotate.
581
851
  *
582
852
  */
583
853
  VeLiveVideoRotation0 = 0,
584
-
854
+ /** {zh}
855
+ * @brief 顺时针旋转 90 度。
856
+ *
857
+ */
585
858
  /** {en}
586
859
  * @brief Rotate by 90 degrees clockwise.
587
860
  *
588
861
  */
589
862
  VeLiveVideoRotation90 = 1,
590
-
863
+ /** {zh}
864
+ * @brief 顺时针旋转 180 度。
865
+ *
866
+ */
591
867
  /** {en}
592
868
  * @brief Rotate by 180 degrees clockwise.
593
869
  *
594
870
  */
595
871
  VeLiveVideoRotation180 = 2,
596
-
872
+ /** {zh}
873
+ * @brief 顺时针旋转 270 度。
874
+ *
875
+ */
597
876
  /** {en}
598
877
  * @brief Rotate by 270 degrees clockwise.
599
878
  *
@@ -601,17 +880,23 @@ export declare enum VeLiveVideoRotation {
601
880
  VeLiveVideoRotation270 = 3
602
881
  }
603
882
  export declare class VeLiveStreamMixDescription {
604
-
883
+ /** {zh}
884
+ * @brief 视频混流布局设置的数组,其中每个元素代表一路视频流的布局。详情请参见 [VeLiveMixVideoLayout](#VeLiveMixVideoLayout)。
885
+ */
605
886
  /** {en}
606
887
  * @brief An array of video mixing configurations, where each array element represents the mixing configurations of a video stream. See [VeLiveMixVideoLayout](#VeLiveMixVideoLayout) for details.
607
888
  */
608
889
  mixVideoStreams: NSArray<VeLiveMixVideoLayout>;
609
-
890
+ /** {zh}
891
+ * @brief 音频混流设置的数组,其中每个元素代表一路音频流的。详情请参见 [VeLiveMixAudioLayout](#VeLiveMixAudioLayout)。
892
+ */
610
893
  /** {en}
611
894
  * @brief An array of audio mixing configurations, where each array element represents the mixing configurations of an audio stream. See [VeLiveMixAudioLayout](#VeLiveMixAudioLayout) for details.
612
895
  */
613
896
  mixAudioStreams: NSArray<VeLiveMixAudioLayout>;
614
-
897
+ /** {zh}
898
+ * @brief 视频混流画布的背景色设置,采用 #RRGGBB 格式。
899
+ */
615
900
  /** {en}
616
901
  * @brief The background color of the mixed video, in #RRGGBB format.
617
902
  */
@@ -619,25 +904,37 @@ export declare class VeLiveStreamMixDescription {
619
904
  init(): this;
620
905
  }
621
906
  export declare enum VeLiveAudioCaptureType {
622
-
907
+ /** {zh}
908
+ * @brief 使用默认麦克风设备进行音频采集。
909
+ *
910
+ */
623
911
  /** {en}
624
912
  * @brief Capture the audio with the default microphone.
625
913
  *
626
914
  */
627
915
  VeLiveAudioCaptureMicrophone = 0,
628
-
916
+ /** {zh}
917
+ * @brief 使用语音通话模式进行音频采集,此模式下会启动硬件的 3A 功能,即自动增益控制、自动频率控制和自动噪声抑制。
918
+ *
919
+ */
629
920
  /** {en}
630
921
  * @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.
631
922
  *
632
923
  */
633
924
  VeLiveAudioCaptureVoiceCommunication = 1,
634
-
925
+ /** {zh}
926
+ * @brief 使用外部设备或源进行音频采集。
927
+ *
928
+ */
635
929
  /** {en}
636
930
  * @brief Capture the audio with an external device or source.
637
931
  *
638
932
  */
639
933
  VeLiveAudioCaptureExternal = 2,
640
-
934
+ /** {zh}
935
+ * @brief 使用静音帧作为音频源。
936
+ *
937
+ */
641
938
  /** {en}
642
939
  * @brief Use muted frames as the audio source.
643
940
  *
@@ -645,13 +942,19 @@ export declare enum VeLiveAudioCaptureType {
645
942
  VeLiveAudioCaptureMuteFrame = 3
646
943
  }
647
944
  export declare enum VeLiveVideoCodec {
648
-
945
+ /** {zh}
946
+ * @brief 使用 H.264 视频编码。
947
+ *
948
+ */
649
949
  /** {en}
650
950
  * @brief H.264.
651
951
  *
652
952
  */
653
953
  VeLiveVideoCodecH264 = 0,
654
-
954
+ /** {zh}
955
+ * @brief 使用火山引擎自研 ByteVC1 视频编码。
956
+ *
957
+ */
655
958
  /** {en}
656
959
  * @brief ByteVC1, an encoding format developed by BytePlus.
657
960
  *
@@ -659,22 +962,30 @@ export declare enum VeLiveVideoCodec {
659
962
  VeLiveVideoCodecByteVC1 = 1
660
963
  }
661
964
  export declare class VeLiveVideoEncodeFrame {
662
-
965
+ /** {zh}
966
+ * @brief 编码帧展示时间戳,单位为 μs。
967
+ */
663
968
  /** {en}
664
969
  * @brief The display timestamp, in μs. The display timestamp indicates when the frame should be rendered.
665
970
  */
666
971
  pts: CMTime;
667
-
972
+ /** {zh}
973
+ * @brief 编码帧 dts 时间,即解码时间戳,单位为 μs。
974
+ */
668
975
  /** {en}
669
976
  * @brief The dts time, or the decoding timestamp, in μs. The decoding timestamp indicates when the frame should be decoded.
670
977
  */
671
978
  dts: CMTime;
672
-
979
+ /** {zh}
980
+ * @brief 编码帧的类型,详细请参见 [VeLiveVideoEncodeFrameType:](#VeLiveVideoEncodeFrameType)。
981
+ */
673
982
  /** {en}
674
983
  * @brief The type of the encoded frame. See [VeLiveVideoEncodeFrameType:](#VeLiveVideoEncodeFrameType) for details.
675
984
  */
676
985
  videoEcodeFrameType: VeLiveVideoEncodeFrameType;
677
-
986
+ /** {zh}
987
+ * @brief 编码帧的数据,使用 NSData 表示。
988
+ */
678
989
  /** {en}
679
990
  * @brief The encoded data of the video frame. The encoded data is represented by an object of type NSData.
680
991
  */
@@ -682,22 +993,30 @@ export declare class VeLiveVideoEncodeFrame {
682
993
  init(): this;
683
994
  }
684
995
  export declare class VeLiveAudioEncoderConfiguration {
685
-
996
+ /** {zh}
997
+ * @brief 音频编码码率,单位为 kbps,默认值为 64。
998
+ */
686
999
  /** {en}
687
1000
  * @brief The audio encoding bitrate, in Kbps. The default value is `64`.
688
1001
  */
689
1002
  bitrate: int;
690
-
1003
+ /** {zh}
1004
+ * @brief 音频编码采样率,默认值为 VeLiveAudioSampleRate44100,详情请参见 [VeLiveAudioSampleRate](#VeLiveAudioSampleRate)。
1005
+ */
691
1006
  /** {en}
692
1007
  * @brief The encoding sample rate. The default value is `VeLiveAudioSampleRate44100`. See [VeLiveAudioSampleRate](#VeLiveAudioSampleRate) for details.
693
1008
  */
694
1009
  sampleRate: VeLiveAudioSampleRate;
695
-
1010
+ /** {zh}
1011
+ * @brief 音频声道数,默认值为 VeLiveAudioChannelStereo,详情请参见 [VeLiveAudioChannel](#VeLiveAudioChannel)。
1012
+ */
696
1013
  /** {en}
697
1014
  * @brief The number of audio channels. The default value is `VeLiveAudioChannelStereo`. See [VeLiveAudioChannel](#VeLiveAudioChannel) for details.
698
1015
  */
699
1016
  channel: VeLiveAudioChannel;
700
-
1017
+ /** {zh}
1018
+ * @brief AAC 编码类型,默认值为 VeLiveAudioAACProfileLC。详情请参见 [VeLiveAudioProfile](#VeLiveAudioProfile)。
1019
+ */
701
1020
  /** {en}
702
1021
  * @brief The AAC encoding format. The default value is `VeLiveAudioAACProfileLC`. See [VeLiveAudioProfile](#VeLiveAudioProfile) for details.
703
1022
  */
@@ -705,37 +1024,55 @@ export declare class VeLiveAudioEncoderConfiguration {
705
1024
  init(): this;
706
1025
  }
707
1026
  export declare enum VeLivePusherLogLevel {
708
-
1027
+ /** {zh}
1028
+ * @brief 输出 VERBOSE、DEBUG、INFO、WARNING 和 ERROR 级别的日志。
1029
+ *
1030
+ */
709
1031
  /** {en}
710
1032
  * @brief Output VERBOSE, DEBUG, INFO, WARNING and ERROR.
711
1033
  *
712
1034
  */
713
1035
  VeLivePusherLogLevelVerbose = 0,
714
-
1036
+ /** {zh}
1037
+ * @brief 输出 DEBUG、INFO、WARNING 和 ERROR 级别的日志。
1038
+ *
1039
+ */
715
1040
  /** {en}
716
1041
  * @brief Output DEBUG, INFO, WARNING and ERROR.
717
1042
  *
718
1043
  */
719
1044
  VeLivePusherLogLevelDebug = 1,
720
-
1045
+ /** {zh}
1046
+ * @brief 输出 INFO、WARNING 和 ERROR 级别的日志。
1047
+ *
1048
+ */
721
1049
  /** {en}
722
1050
  * @brief Output INFO, WARNING and ERROR.
723
1051
  *
724
1052
  */
725
1053
  VeLivePusherLogLevelInfo = 2,
726
-
1054
+ /** {zh}
1055
+ * @brief 输出 WARNING 和 ERROR 级别的日志。
1056
+ *
1057
+ */
727
1058
  /** {en}
728
1059
  * @brief Output WARNING and ERROR.
729
1060
  *
730
1061
  */
731
1062
  VeLivePusherLogLevelWarn = 3,
732
-
1063
+ /** {zh}
1064
+ * @brief 输出 ERROR 级别的日志。
1065
+ *
1066
+ */
733
1067
  /** {en}
734
1068
  * @brief Output ERROR.
735
1069
  *
736
1070
  */
737
1071
  VeLivePusherLogLevelError = 4,
738
-
1072
+ /** {zh}
1073
+ * @brief 关闭日志。
1074
+ *
1075
+ */
739
1076
  /** {en}
740
1077
  * @brief Disable logging.
741
1078
  *
@@ -743,13 +1080,19 @@ export declare enum VeLivePusherLogLevel {
743
1080
  VeLivePusherLogLevelNone = 5
744
1081
  }
745
1082
  export declare enum VeLiveAudioMixType {
746
-
1083
+ /** {zh}
1084
+ * @brief 拉流端可以听到混音效果,本地无法听到。
1085
+ *
1086
+ */
747
1087
  /** {en}
748
1088
  * @brief The audience can hear the mixed audio, but the host cannot.
749
1089
  *
750
1090
  */
751
1091
  VeLiveAudioMixPush = 0,
752
-
1092
+ /** {zh}
1093
+ * @brief 拉流端和本地都可以听到混音效果。
1094
+ *
1095
+ */
753
1096
  /** {en}
754
1097
  * @brief Both the host and audience can hear the mixed audio.
755
1098
  *
@@ -757,19 +1100,28 @@ export declare enum VeLiveAudioMixType {
757
1100
  VeLiveAudioMixPlayAndPush = 1
758
1101
  }
759
1102
  export declare enum VeLivePusherRenderMode {
760
-
1103
+ /** {zh}
1104
+ * @brief 视窗填满优先。视频帧等比缩放,直至视窗被视频填满。如果视频帧长宽比例与视窗不同,视频帧的多出部分将无法显示。
1105
+ *
1106
+ */
761
1107
  /** {en}
762
1108
  * @brief Uniformly scale the video until the screen is completely filled. Part of the video may be cropped.
763
1109
  *
764
1110
  */
765
1111
  VeLivePusherRenderModeHidden = 0,
766
-
1112
+ /** {zh}
1113
+ * @brief 视频帧内容全部显示优先。视频尺寸等比缩放,优先保证视频内容全部显示。当视频尺寸与显示窗口尺寸不一致时,会把窗口未被填满的区域填充成背景颜色。
1114
+ *
1115
+ */
767
1116
  /** {en}
768
1117
  * @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.
769
1118
  *
770
1119
  */
771
1120
  VeLivePusherRenderModeFit = 1,
772
-
1121
+ /** {zh}
1122
+ * @brief 视频帧自适应画布。视频帧非等比缩放,直至画布被填满。在此过程中,视频帧的长宽比例可能会发生变化。
1123
+ *
1124
+ */
773
1125
  /** {en}
774
1126
  * @brief Stretch the video to fill the screen. The aspect ratio of the video might change.
775
1127
  *
@@ -777,32 +1129,47 @@ export declare enum VeLivePusherRenderMode {
777
1129
  VeLivePusherRenderModeFill = 2
778
1130
  }
779
1131
  export declare class VeLiveVideoEffectLicenseConfiguration {
780
-
1132
+ /** {zh}
1133
+ * @brief 获取视频特效许可证类型。许可证类型请参见 [VeLiveVideoEffectLicenseType](#VeLiveVideoEffectLicenseType)。
1134
+ */
781
1135
  /** {en}
782
1136
  * @brief The special effects license type. See [VeLiveVideoEffectLicenseType](#VeLiveVideoEffectLicenseType) for details.
783
1137
  */
784
1138
  type: VeLiveVideoEffectLicenseType;
785
-
1139
+ /** {zh}
1140
+ * @brief 获取视频特效许可证的本地路径。当 [VeLiveVideoEffectLicenseType](#VeLiveVideoEffectLicenseType) 为 `VeLiveVideoEffectLicenseTypeOffLine` 时,该属性返回许可证文件的本地路径。
1141
+ */
786
1142
  /** {en}
787
1143
  * @brief The local path to the video effects license, when [VeLiveVideoEffectLicenseType](#VeLiveVideoEffectLicenseType) is `VeLiveVideoEffectLicenseTypeOffLine`.
788
1144
  */
789
1145
  path: NSString;
790
-
1146
+ /** {zh}
1147
+ * @brief 获取视频特效许可证的在线认证 key。当 [VeLiveVideoEffectLicenseType](#VeLiveVideoEffectLicenseType) 为 `VeLiveVideoEffectLicenseTypeOnLine` 时,该属性返回在线认证的 key。
1148
+ */
791
1149
  /** {en}
792
1150
  * @brief The online authentication key for the video effects license, when [VeLiveVideoEffectLicenseType](#VeLiveVideoEffectLicenseType) is `VeLiveVideoEffectLicenseTypeOnLine`.
793
1151
  */
794
1152
  key: NSString;
795
-
1153
+ /** {zh}
1154
+ * @brief 获取视频特效许可证的在线认证 secret。当 [VeLiveVideoEffectLicenseType](#VeLiveVideoEffectLicenseType) 为 `VeLiveVideoEffectLicenseTypeOnLine` 时,该属性返回在线认证的 secret。
1155
+ */
796
1156
  /** {en}
797
1157
  * @brief The online authentication secret for the video effects license, when [VeLiveVideoEffectLicenseType](#VeLiveVideoEffectLicenseType) is `VeLiveVideoEffectLicenseTypeOnLine`.
798
1158
  */
799
1159
  secret: NSString;
800
-
1160
+ /** {zh}
1161
+ * @brief 获取视频特效许可证的在线认证地址。当 [VeLiveVideoEffectLicenseType](#VeLiveVideoEffectLicenseType) 为 `VeLiveVideoEffectLicenseTypeOnLine` 时,该属性返回在线认证地址。
1162
+ */
801
1163
  /** {en}
802
1164
  * @brief The online authentication address for the video effects license, when [VeLiveVideoEffectLicenseType](#VeLiveVideoEffectLicenseType) is `VeLiveVideoEffectLicenseTypeOnLine`.
803
1165
  */
804
1166
  url: NSString;
805
-
1167
+ /** {zh}
1168
+ * @detail api
1169
+ * @brief 初始化配置为本地验证模式。
1170
+ * @param path 视频特效许可证的本地缓存路径。可通过 [path](#VeLiveVideoEffectLicenseConfiguration-path) 获取
1171
+ * @return 返回 [VeLiveVideoEffectLicenseConfiguration](#VeLiveVideoEffectLicenseConfiguration) 类的实例,该实例使用指定的本地路径进行许可证验证。
1172
+ */
806
1173
  /** {en}
807
1174
  * @detail api
808
1175
  * @brief Initializes the license configurations in local authentication mode.
@@ -810,7 +1177,14 @@ export declare class VeLiveVideoEffectLicenseConfiguration {
810
1177
  * @return A [VeLiveVideoEffectLicenseConfiguration](#VeLiveVideoEffectLicenseConfiguration) object that uses the specified local path for license authentication.
811
1178
  */
812
1179
  initWithPath(path: NSString): this;
813
-
1180
+ /** {zh}
1181
+ * @detail api
1182
+ * @brief 初始化配置为在线验证模式。
1183
+ * @param key 视频特效许可证的在线认证 key,可通过 [key](#VeLiveVideoEffectLicenseConfiguration-key) 获取。
1184
+ * @param secret 视频特效许可证的在线认证 secret,可通过 [secret](#VeLiveVideoEffectLicenseConfiguration-secret) 获取。
1185
+ * @param url 视频特效许可证的在线认证地址,如果传入 nil,会使用默认 url,可通过 [url](#VeLiveVideoEffectLicenseConfiguration-url) 获取在线认证地址。
1186
+ * @return 返回 [VeLiveVideoEffectLicenseConfiguration](#VeLiveVideoEffectLicenseConfiguration) 类的实例,该实例使用指定的 key、secret 和 url 进行在线许可证验证。
1187
+ */
814
1188
  /** {en}
815
1189
  * @detail api
816
1190
  * @brief Initializes the license configurations in online authentication mode.
@@ -822,13 +1196,19 @@ export declare class VeLiveVideoEffectLicenseConfiguration {
822
1196
  initWithKey(key: NSString, secret: NSString, url: NSString): this;
823
1197
  }
824
1198
  export declare enum VeLiveAudioFrameSource {
825
-
1199
+ /** {zh}
1200
+ * @brief 采集到的原始音频帧。这是从设备的麦克风或其他音频输入源获取的音频帧。
1201
+ *
1202
+ */
826
1203
  /** {en}
827
1204
  * @brief The original audio frame captured by the microphone or other audio sources.
828
1205
  *
829
1206
  */
830
1207
  VeLiveAudioFrameSourceCapture = 1,
831
-
1208
+ /** {zh}
1209
+ * @brief 编码前的音频帧。这是通过各种处理(例如噪音消除、回声消除等)后,准备进行编码的音频帧。
1210
+ *
1211
+ */
832
1212
  /** {en}
833
1213
  * @brief The audio frame prior to encoding after undergoing various processes, such as noise cancellation and echo cancellation.
834
1214
  *
@@ -836,43 +1216,64 @@ export declare enum VeLiveAudioFrameSource {
836
1216
  VeLiveAudioFrameSourcePreEncode = 2
837
1217
  }
838
1218
  export declare enum VeLivePushStatus {
839
-
1219
+ /** {zh}
1220
+ * @brief 初始状态。
1221
+ *
1222
+ */
840
1223
  /** {en}
841
1224
  * @brief The initial state.
842
1225
  *
843
1226
  */
844
1227
  VeLivePushStatusNone = 0,
845
-
1228
+ /** {zh}
1229
+ * @brief 正在连接服务器。
1230
+ *
1231
+ */
846
1232
  /** {en}
847
1233
  * @brief Connecting to the server.
848
1234
  *
849
1235
  */
850
1236
  VeLivePushStatusConnecting = 1,
851
-
1237
+ /** {zh}
1238
+ * @brief 连接服务器成功。
1239
+ *
1240
+ */
852
1241
  /** {en}
853
1242
  * @brief The connection with the server is established.
854
1243
  *
855
1244
  */
856
1245
  VeLivePushStatusConnectSuccess = 2,
857
-
1246
+ /** {zh}
1247
+ * @brief 重连服务器中。
1248
+ *
1249
+ */
858
1250
  /** {en}
859
1251
  * @brief Reconnecting to the server.
860
1252
  *
861
1253
  */
862
1254
  VeLivePushStatusReconnecting = 3,
863
-
1255
+ /** {zh}
1256
+ * @brief 推流连接被终止。
1257
+ *
1258
+ */
864
1259
  /** {en}
865
1260
  * @brief Stops connecting to the server.
866
1261
  *
867
1262
  */
868
1263
  VeLivePushStatusConnectStop = 4,
869
-
1264
+ /** {zh}
1265
+ * @brief 推流连接失败。
1266
+ *
1267
+ */
870
1268
  /** {en}
871
1269
  * @brief Fails to connect to the server.
872
1270
  *
873
1271
  */
874
1272
  VeLivePushStatusConnectError = 5,
875
-
1273
+ /** {zh}
1274
+ * @brief 与服务器断开连接。
1275
+ *
1276
+ */
876
1277
  /** {en}
877
1278
  * @brief The connection with the server is lost.
878
1279
  *
@@ -880,31 +1281,46 @@ export declare enum VeLivePushStatus {
880
1281
  VeLivePushStatusDisconnected = 6
881
1282
  }
882
1283
  export declare enum VeLiveFirstFrameType {
883
-
1284
+ /** {zh}
1285
+ * @brief 视频/音频采集首帧,采集首帧是从音频设备或视频设备(如麦克风、摄像头)获取的第一帧数据。
1286
+ *
1287
+ */
884
1288
  /** {en}
885
1289
  * @brief The first audio or video frame captured by the microphone or the camera.
886
1290
  *
887
1291
  */
888
1292
  VeLiveFirstCaptureFrame = 0,
889
-
1293
+ /** {zh}
1294
+ * @brief 视频渲染首帧,渲染首帧是在渲染过程中在屏幕上显示的第一帧视频数据。
1295
+ *
1296
+ */
890
1297
  /** {en}
891
1298
  * @brief The first video frame rendered, which is the first frame displayed on the screen.
892
1299
  *
893
1300
  */
894
1301
  VeLiveFirstRenderFrame = 1,
895
-
1302
+ /** {zh}
1303
+ * @brief 视频/音频编码完成首帧,编码完成首帧是编码为某种特定格式的第一帧数据。
1304
+ *
1305
+ */
896
1306
  /** {en}
897
1307
  * @brief The first audio or video frame encoded.
898
1308
  *
899
1309
  */
900
1310
  VeLiveFirstEncodedFrame = 2,
901
-
1311
+ /** {zh}
1312
+ * @brief 视频/音频发送首帧,发送首帧是在发送过程中,通过网络传输的第一帧数据。
1313
+ *
1314
+ */
902
1315
  /** {en}
903
1316
  * @brief The first audio or video frame transmitted through the network.
904
1317
  *
905
1318
  */
906
1319
  VeLiveFirstSendFrame = 3,
907
-
1320
+ /** {zh}
1321
+ * @brief 录屏采集开始后,获得的第一个 app 音频帧。
1322
+ *
1323
+ */
908
1324
  /** {en}
909
1325
  * @brief The first audio frame captured from the app after screen streaming starts.
910
1326
  *
@@ -912,7 +1328,10 @@ export declare enum VeLiveFirstFrameType {
912
1328
  VeLiveFirstAppAudioCaptureFrame = 4
913
1329
  }
914
1330
  export declare enum VeLiveAudioSampleRate {
915
-
1331
+ /** {zh}
1332
+ * @brief 44.1k 采样,适用于大多数音频处理场景,是音乐 CD 的标准采样率。
1333
+ *
1334
+ */
916
1335
  /** {en}
917
1336
  * @brief 44.1K. This sample rate is suitable for most audio processing scenarios, and is the standard sampling rate for music CDs.
918
1337
  *
@@ -920,82 +1339,114 @@ export declare enum VeLiveAudioSampleRate {
920
1339
  VeLiveAudioSampleRate44100 = 44100
921
1340
  }
922
1341
  export declare class VeLivePusherStatistics {
923
-
1342
+ /** {zh}
1343
+ * @brief 视频采集宽度,单位为 px。
1344
+ */
924
1345
  /** {en}
925
1346
  * @brief The width of the captured video, in pixels.
926
1347
  */
927
1348
  captureWidth: int;
928
-
1349
+ /** {zh}
1350
+ * @brief 视频采集高度,单位为 px。
1351
+ */
929
1352
  /** {en}
930
1353
  * @brief The height of the captured video, in pixels.
931
1354
  */
932
1355
  captureHeight: int;
933
-
1356
+ /** {zh}
1357
+ * @brief 视频采集帧率,单位为 fps。
1358
+ */
934
1359
  /** {en}
935
1360
  * @brief The captured frame rate, in fps.
936
1361
  */
937
1362
  captureFps: int;
938
-
1363
+ /** {zh}
1364
+ * @brief 视频编码宽度,单位为 px。
1365
+ */
939
1366
  /** {en}
940
1367
  * @brief The width of the encoded video, in pixels.
941
1368
  */
942
1369
  encodeWidth: int;
943
-
1370
+ /** {zh}
1371
+ * @brief 视频编码高度,单位为 px。
1372
+ */
944
1373
  /** {en}
945
1374
  * @brief The height of the encoded video, in pixels.
946
1375
  */
947
1376
  encodeHeight: int;
948
-
1377
+ /** {zh}
1378
+ * @brief 视频编码帧率,单位为 fps。
1379
+ */
949
1380
  /** {en}
950
1381
  * @brief The encoded frame rate, in fps.
951
1382
  */
952
1383
  encodeFps: int;
953
-
1384
+ /** {zh}
1385
+ * @brief 视频编码码率,单位为 kbps。
1386
+ */
954
1387
  /** {en}
955
1388
  * @brief The encoded video bitrate, in Kbps.
956
1389
  */
957
1390
  encodeVideoBitrate: int;
958
-
1391
+ /** {zh}
1392
+ * @brief 音频编码码率,单位为 kbps。
1393
+ */
959
1394
  /** {en}
960
1395
  * @brief The encoded audio bitrate, in Kbps.
961
1396
  */
962
1397
  encodeAudioBitrate: int;
963
-
1398
+ /** {zh}
1399
+ * @brief 视频发送帧率,可用展示实时帧率,单位为 fps。
1400
+ */
964
1401
  /** {en}
965
1402
  * @brief The transmission frame rate, in fps. You can use this parameter to showcase the real-time frame rate on the user interface.
966
1403
  */
967
1404
  transportFps: int;
968
-
1405
+ /** {zh}
1406
+ * @brief 视频发送码率,可用于展示实时码率,单位为 kbps。
1407
+ */
969
1408
  /** {en}
970
1409
  * @brief The transmission bitrate, in Kbps. You can use this parameter to showcase the real-time bitrate on the user interface.
971
1410
  */
972
1411
  transportVideoBitrate: int;
973
-
1412
+ /** {zh}
1413
+ * @brief 视频推流帧率,即您通过 setVideoEncoderConfiguration:{@link #VeLivePusher#setVideoEncoderConfiguration} 方法设置的帧率,单位为 fps。
1414
+ */
974
1415
  /** {en}
975
1416
  * @brief The encoded frame rate you specify in the setVideoEncoderConfiguration:{@link #VeLivePusher#setVideoEncoderConfiguration} method, in fps.
976
1417
  */
977
1418
  fps: int;
978
-
1419
+ /** {zh}
1420
+ * @brief 视频推流码率,即您通过 [setVideoEncoderConfiguration](155318#VeLivePusher-setvideoencoderconfiguration) 方法设置的码率,单位为 kbps。
1421
+ */
979
1422
  /** {en}
980
1423
  * @brief The encoded bitrate you specify in the [setVideoEncoderConfiguration](docs-broadcast-sdk-for-ios-api#VeLivePusher-setvideoencoderconfiguration) method, in Kbps.
981
1424
  */
982
1425
  videoBitrate: int;
983
-
1426
+ /** {zh}
1427
+ * @brief 视频推流最小码率,即您通过 [etVideoEncoderConfiguration:](155318#VeLivePusher-setvideoencoderconfiguration) 方法设置的最小码率,单位为 kbps。
1428
+ */
984
1429
  /** {en}
985
1430
  * @brief The minimum encoded bitrate you specify in the [etVideoEncoderConfiguration:](docs-broadcast-sdk-for-ios-api#VeLivePusher-setvideoencoderconfiguration) method, in Kbps.
986
1431
  */
987
1432
  minVideoBitrate: int;
988
-
1433
+ /** {zh}
1434
+ * @brief 视频推流最大码率,即您通过 setVideoEncoderConfiguration:{@link #VeLivePusher#setVideoEncoderConfiguration} 方法设置的最大码率,单位为 kbps。
1435
+ */
989
1436
  /** {en}
990
1437
  * @brief The maximum encoded bitrate you specify in the setVideoEncoderConfiguration:{@link #VeLivePusher#setVideoEncoderConfiguration} method, in Kbps.
991
1438
  */
992
1439
  maxVideoBitrate: int;
993
-
1440
+ /** {zh}
1441
+ * @brief 推流地址。
1442
+ */
994
1443
  /** {en}
995
1444
  * @brief The push stream address.
996
1445
  */
997
1446
  url: NSString;
998
-
1447
+ /** {zh}
1448
+ * @brief 视频编码格式。
1449
+ */
999
1450
  /** {en}
1000
1451
  * @brief The video codec.
1001
1452
  */
@@ -1003,37 +1454,55 @@ export declare class VeLivePusherStatistics {
1003
1454
  init(): this;
1004
1455
  }
1005
1456
  export declare enum VeLivePixelFormat {
1006
-
1457
+ /** {zh}
1458
+ * @brief 未知格式。
1459
+ *
1460
+ */
1007
1461
  /** {en}
1008
1462
  * @brief Unknown format.
1009
1463
  *
1010
1464
  */
1011
1465
  VeLivePixelFormatUnknown = -1,
1012
-
1466
+ /** {zh}
1467
+ * @brief I420 格式。
1468
+ *
1469
+ */
1013
1470
  /** {en}
1014
1471
  * @brief I420.
1015
1472
  *
1016
1473
  */
1017
1474
  VeLivePixelFormatI420 = 0,
1018
-
1475
+ /** {zh}
1476
+ * @brief NV12 格式。
1477
+ *
1478
+ */
1019
1479
  /** {en}
1020
1480
  * @brief NV12.
1021
1481
  *
1022
1482
  */
1023
1483
  VeLivePixelFormatNV12 = 1,
1024
-
1484
+ /** {zh}
1485
+ * @brief NV21 格式。
1486
+ *
1487
+ */
1025
1488
  /** {en}
1026
1489
  * @brief NV21 format.
1027
1490
  *
1028
1491
  */
1029
1492
  VeLivePixelFormatNV21 = 2,
1030
-
1493
+ /** {zh}
1494
+ * @brief RAGBA 格式。
1495
+ *
1496
+ */
1031
1497
  /** {en}
1032
1498
  * @brief RAGBA.
1033
1499
  *
1034
1500
  */
1035
1501
  VeLivePixelFormatBGRA32 = 3,
1036
-
1502
+ /** {zh}
1503
+ * @brief OpenGL 2D 纹理。
1504
+ *
1505
+ */
1037
1506
  /** {en}
1038
1507
  * @brief OpenGL 2D texture.
1039
1508
  *
@@ -1041,22 +1510,35 @@ export declare enum VeLivePixelFormat {
1041
1510
  VeLivePixelFormat2DTexture = 4
1042
1511
  }
1043
1512
  export declare class VeLiveVideoCaptureConfiguration {
1044
-
1513
+ /** {zh}
1514
+ * @brief 视频采集宽度,单位为 px,默认值为 720。
1515
+ */
1045
1516
  /** {en}
1046
1517
  * @brief The width of the captured video, in pixels. The default value is `720`.
1047
1518
  */
1048
1519
  width: int;
1049
-
1520
+ /** {zh}
1521
+ * @brief 视频采集高度,单位为 px,默认值为 1280。
1522
+ */
1050
1523
  /** {en}
1051
1524
  * @brief The height of the captured video, in pixels. The default value is `1280`.
1052
1525
  */
1053
1526
  height: int;
1054
-
1527
+ /** {zh}
1528
+ * @brief 视频采集帧率,单位为 fps,默认值为 15。
1529
+ */
1055
1530
  /** {en}
1056
1531
  * @brief The captured frame rate, in fps. The default value is `15`.
1057
1532
  */
1058
1533
  fps: int;
1059
-
1534
+ /** {zh}
1535
+ * @brief 视频采集帧类型,默认为 kCVPixelFormatType_420YpCbCr8BiPlanarFullRange。
1536
+ * @note 支持以下视频帧类型:
1537
+ * - kCVPixelFormatType_32BGRA
1538
+ * - kCVPixelFormatType_420YpCbCr8BiPlanarFullRange
1539
+ * - kCVPixelFormatType_420YpCbCr8BiPlanarVideoRange
1540
+ * - kCVPixelFormatType_420YpCbCr10BiPlanarVideoRange
1541
+ */
1060
1542
  /** {en}
1061
1543
  * @brief The pixel format. The default format is kCVPixelFormatType_420YpCbCr8BiPlanarFullRange.
1062
1544
  * @note The following formats are supported:
@@ -1069,32 +1551,44 @@ export declare class VeLiveVideoCaptureConfiguration {
1069
1551
  init(): this;
1070
1552
  }
1071
1553
  export declare class VeLiveAudioFrame {
1072
-
1554
+ /** {zh}
1555
+ * @brief 音频数据类型,默认值为 `VeLiveAudioBufferTypeUnknown`,详情请参见 [VeLiveAudioBufferType](#VeLiveAudioBufferType)。
1556
+ */
1073
1557
  /** {en}
1074
1558
  * @brief The audio data type. The default value is `VeLiveAudioBufferTypeUnknown`. See [VeLiveAudioBufferType](#VeLiveAudioBufferType) for details.
1075
1559
  */
1076
1560
  bufferType: VeLiveAudioBufferType;
1077
-
1561
+ /** {zh}
1562
+ * @brief 音频采样率。详情请参见 [VeLiveAudioSampleRate](#VeLiveAudioSampleRate)。
1563
+ */
1078
1564
  /** {en}
1079
1565
  * @brief The audio sample rate. See [VeLiveAudioSampleRate](#VeLiveAudioSampleRate) for details.
1080
1566
  */
1081
1567
  sampleRate: VeLiveAudioSampleRate;
1082
-
1568
+ /** {zh}
1569
+ * @brief 音频声道数。详情请参见 [VeLiveAudioChannel](#VeLiveAudioChannel)。
1570
+ */
1083
1571
  /** {en}
1084
1572
  * @brief The number of audio channels. See [VeLiveAudioChannel](#VeLiveAudioChannel) for details.
1085
1573
  */
1086
1574
  channels: VeLiveAudioChannel;
1087
-
1575
+ /** {zh}
1576
+ * @brief 当 bufferType 取值为 `VeLiveAudioBufferNSData` 时的音频帧时间戳,单位为 μs。
1577
+ */
1088
1578
  /** {en}
1089
1579
  * @brief The audio frame timestamp, in μs, when `bufferType` is `VeLiveAudioBufferNSData`.
1090
1580
  */
1091
1581
  pts: CMTime;
1092
-
1582
+ /** {zh}
1583
+ * @brief 当 bufferType 取值为 `VeLiveAudioBufferTypeSampleBuffer` 时的音频数据。
1584
+ */
1093
1585
  /** {en}
1094
1586
  * @brief The audio data, when `bufferType` is `VeLiveAudioBufferTypeSampleBuffer`.
1095
1587
  */
1096
1588
  sampleBuffer: CMSampleBufferRef;
1097
-
1589
+ /** {zh}
1590
+ * @brief 当 bufferType 取值为 `VeLiveAudioBufferTypeNSData` 时的音频数据。音频帧数据为 float32 格式小端字节序存储。
1591
+ */
1098
1592
  /** {en}
1099
1593
  * @brief The audio data, when `bufferType` is `VeLiveAudioBufferTypeNSData`. The audio data is of type float32 and is stored in little-endian byte order.
1100
1594
  */
@@ -1102,37 +1596,55 @@ export declare class VeLiveAudioFrame {
1102
1596
  init(): this;
1103
1597
  }
1104
1598
  export declare enum VeLiveAudioPowerLevel {
1105
-
1599
+ /** {zh}
1600
+ * @brief 无声,音量 ≤ 1dB。
1601
+ *
1602
+ */
1106
1603
  /** {en}
1107
1604
  * @brief Muted. The volume is 1 dB or less.
1108
1605
  *
1109
1606
  */
1110
1607
  VeLiveAudioPowerLevelSilent = 0,
1111
-
1608
+ /** {zh}
1609
+ * @brief 安静,音量 15dB 以下。
1610
+ *
1611
+ */
1112
1612
  /** {en}
1113
1613
  * @brief Quiet. The volume is below 15 dB.
1114
1614
  *
1115
1615
  */
1116
1616
  VeLiveAudioPowerLevelQuiet = 1,
1117
-
1617
+ /** {zh}
1618
+ * @brief 轻声,接近耳语音量,音量为 16dB~30dB 之间。
1619
+ *
1620
+ */
1118
1621
  /** {en}
1119
1622
  * @brief Soft, close to whisper. The volume is between 16 dB and 30 dB.
1120
1623
  *
1121
1624
  */
1122
1625
  VeLiveAudioPowerLevelLight = 2,
1123
-
1626
+ /** {zh}
1627
+ * @brief 正常,音量适宜,类似正常对话的音量,音量为 30dB~60dB 之间。
1628
+ *
1629
+ */
1124
1630
  /** {en}
1125
1631
  * @brief Normal, similar to the volume in a daily conversation. The volume is between 30 dB and 60 dB.
1126
1632
  *
1127
1633
  */
1128
1634
  VeLiveAudioPowerLevelNormal = 3,
1129
-
1635
+ /** {zh}
1636
+ * @brief 较大,音量较高,类似咖啡馆、餐厅的环境噪音,音量为 61dB~85dB 之间。
1637
+ *
1638
+ */
1130
1639
  /** {en}
1131
1640
  * @brief Loud, similar to the volume of the noise at cafes. The volume is between 61 dB and 85 dB.
1132
1641
  *
1133
1642
  */
1134
1643
  VeLiveAudioPowerLevelLoud = 4,
1135
-
1644
+ /** {zh}
1645
+ * @brief 吵闹,音量极高,类似于繁忙的街道或者是音乐会现场,音量超过 85dB。
1646
+ *
1647
+ */
1136
1648
  /** {en}
1137
1649
  * @brief Noisy, similar to the volume of the noise on a busy street or at a concert. The volume is higher than 85 dB.
1138
1650
  *