@byteplus/react-native-live-pull 1.5.1-rc.2 → 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 (63) hide show
  1. package/android/bin/build/generated/res/pngs/debug/drawable-anydpi-v24/new_window.xml +16 -0
  2. package/android/bin/build/generated/res/pngs/debug/drawable-hdpi/new_window.png +0 -0
  3. package/android/bin/build/generated/res/pngs/debug/drawable-ldpi/new_window.png +0 -0
  4. package/android/bin/build/generated/res/pngs/debug/drawable-mdpi/new_window.png +0 -0
  5. package/android/bin/build/generated/res/pngs/debug/drawable-xhdpi/new_window.png +0 -0
  6. package/android/bin/build/generated/res/pngs/debug/drawable-xxhdpi/new_window.png +0 -0
  7. package/android/bin/build/generated/res/pngs/debug/drawable-xxxhdpi/new_window.png +0 -0
  8. package/android/bin/build/generated/source/buildConfig/debug/com/volcengine/velive/rn/pull/BuildConfig.class +0 -0
  9. package/android/bin/build/intermediates/aapt_friendly_merged_manifests/debug/aapt/AndroidManifest.xml +25 -0
  10. package/android/bin/build/intermediates/aapt_friendly_merged_manifests/debug/aapt/output-metadata.json +18 -0
  11. package/android/bin/build/intermediates/aar_metadata/debug/aar-metadata.properties +5 -0
  12. package/android/bin/build/intermediates/annotation_processor_list/debug/annotationProcessors.json +1 -0
  13. package/android/bin/build/intermediates/compile_library_classes_jar/debug/classes.jar +0 -0
  14. package/android/bin/build/intermediates/compile_r_class_jar/debug/R.jar +0 -0
  15. package/android/bin/build/intermediates/compile_symbol_list/debug/R.txt +6 -0
  16. package/android/bin/build/intermediates/compiled_local_resources/debug/out/drawable-anydpi-v24_new_window.xml.flat +0 -0
  17. package/android/bin/build/intermediates/compiled_local_resources/debug/out/drawable-hdpi-v4_new_window.png.flat +0 -0
  18. package/android/bin/build/intermediates/compiled_local_resources/debug/out/drawable-ldpi-v4_new_window.png.flat +0 -0
  19. package/android/bin/build/intermediates/compiled_local_resources/debug/out/drawable-mdpi-v4_new_window.png.flat +0 -0
  20. package/android/bin/build/intermediates/compiled_local_resources/debug/out/drawable-xhdpi-v4_new_window.png.flat +0 -0
  21. package/android/bin/build/intermediates/compiled_local_resources/debug/out/drawable-xxhdpi-v4_new_window.png.flat +0 -0
  22. package/android/bin/build/intermediates/compiled_local_resources/debug/out/drawable-xxxhdpi-v4_new_window.png.flat +0 -0
  23. package/android/bin/build/intermediates/compiled_local_resources/debug/out/drawable_button_close.xml.flat +0 -0
  24. package/android/bin/build/intermediates/compiled_local_resources/debug/out/layout_floating_window_layout.xml.flat +0 -0
  25. package/android/bin/build/intermediates/incremental/debug/packageDebugResources/compile-file-map.properties +10 -0
  26. package/android/bin/build/intermediates/incremental/debug/packageDebugResources/merger.xml +2 -0
  27. package/android/bin/build/intermediates/incremental/mergeDebugJniLibFolders/merger.xml +2 -0
  28. package/android/bin/build/intermediates/incremental/mergeDebugShaders/merger.xml +2 -0
  29. package/android/bin/build/intermediates/incremental/packageDebugAssets/merger.xml +2 -0
  30. package/android/bin/build/intermediates/local_only_symbol_list/debug/R-def.txt +8 -0
  31. package/android/bin/build/intermediates/manifest_merge_blame_file/debug/manifest-merger-blame-debug-report.txt +44 -0
  32. package/android/bin/build/intermediates/merged_manifest/debug/AndroidManifest.xml +25 -0
  33. package/android/bin/build/intermediates/navigation_json/debug/navigation.json +1 -0
  34. package/android/bin/build/intermediates/packaged_res/debug/drawable/button_close.xml +9 -0
  35. package/android/bin/build/intermediates/packaged_res/debug/drawable-anydpi-v24/new_window.xml +16 -0
  36. package/android/bin/build/intermediates/packaged_res/debug/drawable-hdpi-v4/new_window.png +0 -0
  37. package/android/bin/build/intermediates/packaged_res/debug/drawable-ldpi-v4/new_window.png +0 -0
  38. package/android/bin/build/intermediates/packaged_res/debug/drawable-mdpi-v4/new_window.png +0 -0
  39. package/android/bin/build/intermediates/packaged_res/debug/drawable-xhdpi-v4/new_window.png +0 -0
  40. package/android/bin/build/intermediates/packaged_res/debug/drawable-xxhdpi-v4/new_window.png +0 -0
  41. package/android/bin/build/intermediates/packaged_res/debug/drawable-xxxhdpi-v4/new_window.png +0 -0
  42. package/android/bin/build/intermediates/packaged_res/debug/layout/floating_window_layout.xml +29 -0
  43. package/android/bin/build/intermediates/runtime_library_classes_jar/debug/classes.jar +0 -0
  44. package/android/bin/build/intermediates/symbol_list_with_package_name/debug/package-aware-r.txt +7 -0
  45. package/android/bin/build/outputs/logs/manifest-merger-debug-report.txt +54 -0
  46. package/android/bin/build/tmp/compileDebugJavaWithJavac/previous-compilation-data.bin +0 -0
  47. package/lib/typescript/codegen/android/api.d.ts +257 -27
  48. package/lib/typescript/codegen/android/callback.d.ts +162 -19
  49. package/lib/typescript/codegen/android/errorcode.d.ts +115 -28
  50. package/lib/typescript/codegen/android/keytype.d.ts +482 -113
  51. package/lib/typescript/codegen/ios/api.d.ts +225 -29
  52. package/lib/typescript/codegen/ios/callback.d.ts +134 -18
  53. package/lib/typescript/codegen/ios/errorcode.d.ts +102 -26
  54. package/lib/typescript/codegen/ios/keytype.d.ts +424 -113
  55. package/lib/typescript/codegen/pack/api.d.ts +291 -33
  56. package/lib/typescript/codegen/pack/callback.d.ts +167 -20
  57. package/lib/typescript/codegen/pack/errorcode.d.ts +126 -30
  58. package/lib/typescript/codegen/pack/keytype.d.ts +582 -130
  59. package/lib/typescript/core/keytype.d.ts +16 -4
  60. package/lib/typescript/core/logger.d.ts +1 -0
  61. package/lib/typescript/platforms/android/AppLogWrapper.d.ts +8 -0
  62. package/lib/typescript/platforms/ios/RangersAppLog.d.ts +4 -0
  63. package/package.json +1 -1
@@ -1,36 +1,60 @@
1
1
  import * as $p_a from '../android/index';
2
2
  import * as $p_i from '../ios/index';
3
-
3
+ /** {zh}
4
+ * @detail keytype
5
+ * @brief 视频顺时针旋转角度。
6
+ *
7
+ */
4
8
  export declare enum VeLivePlayerRotation {
5
-
9
+ /** {zh}
10
+ * @brief 关闭旋转。
11
+ *
12
+ */
6
13
  /** {en}
7
14
  * @brief No rotation.
8
15
  *
9
16
  */
10
17
  VeLivePlayerRotation0 = 0,
11
-
18
+ /** {zh}
19
+ * @brief 顺时针旋转 90 度。
20
+ *
21
+ */
12
22
  /** {en}
13
23
  * @brief Rotate 90 degrees clockwise.
14
24
  *
15
25
  */
16
26
  VeLivePlayerRotation90 = 1,
17
-
27
+ /** {zh}
28
+ * @brief 顺时针旋转 180 度。
29
+ *
30
+ */
18
31
  /** {en}
19
32
  * @brief Rotate 180 degrees clockwise.
20
33
  *
21
34
  */
22
35
  VeLivePlayerRotation180 = 2,
23
-
36
+ /** {zh}
37
+ * @brief 顺时针旋转 270 度。
38
+ *
39
+ */
24
40
  /** {en}
25
41
  * @brief Rotate 270 degrees clockwise.
26
42
  *
27
43
  */
28
44
  VeLivePlayerRotation270 = 3
29
45
  }
30
-
46
+ /** {zh}
47
+ * @detail keytype
48
+ * @brief 播放地址相关配置。
49
+ */
31
50
  export declare class VeLivePlayerStreamData {
32
51
  protected _instance: any;
33
-
52
+ /** {zh}
53
+ * @brief 是否打开 ABR 平滑切档功能,默认为 false。<br>
54
+ * - true:开启;
55
+ * - false:关闭。
56
+ *
57
+ */
34
58
  /** {en}
35
59
  * @brief Whether to enable adaptive bitrate (ABR). The default value is `false`. <br>
36
60
  * - true: Enable;
@@ -39,7 +63,12 @@ export declare class VeLivePlayerStreamData {
39
63
  */
40
64
  get enableABR(): boolean;
41
65
  set enableABR(value: boolean);
42
-
66
+ /** {zh}
67
+ * @brief 是否打开主备切换,默认为 false。<br>
68
+ * - true:开启;
69
+ * - false:关闭。
70
+ *
71
+ */
43
72
  /** {en}
44
73
  * @brief Whether to enable switching between primary and backup streams. The default value is `false`. <br>
45
74
  * - true: Enable;
@@ -48,21 +77,30 @@ export declare class VeLivePlayerStreamData {
48
77
  */
49
78
  get enableMainBackupSwitch(): boolean;
50
79
  set enableMainBackupSwitch(value: boolean);
51
-
80
+ /** {zh}
81
+ * @brief 播放器的默认清晰度档位,默认使用原始流清晰度。详情请参见 [VeLivePlayerResolution](#VeLivePlayerResolution)。
82
+ *
83
+ */
52
84
  /** {en}
53
85
  * @brief The default resolution. The default value is `VeLivePlayerResolutionOrigin`, which indicates the original resolution. See [VeLivePlayerResolution](#VeLivePlayerResolution) for details.
54
86
  *
55
87
  */
56
88
  get defaultResolution(): VeLivePlayerResolution;
57
89
  set defaultResolution(value: VeLivePlayerResolution);
58
-
90
+ /** {zh}
91
+ * @brief 播放器的默认播放格式,默认值为 FLV。详情请参见 [VeLivePlayerFormat](#VeLivePlayerFormat)。
92
+ *
93
+ */
59
94
  /** {en}
60
95
  * @brief The default video format. The default value is `VeLivePlayerFormatFLV`. See [VeLivePlayerFormat](#VeLivePlayerFormat) for details.
61
96
  *
62
97
  */
63
98
  get defaultFormat(): VeLivePlayerFormat;
64
99
  set defaultFormat(value: VeLivePlayerFormat);
65
-
100
+ /** {zh}
101
+ * @brief 播放器的默认播放传输层协议,默认值为 TCP。详情请参见 [VeLivePlayerProtocol](#VeLivePlayerProtocol)。
102
+ *
103
+ */
66
104
  /** {en}
67
105
  * @brief The default transmission protocol. The default value is `VeLivePlayerProtocolTCP`. See [VeLivePlayerProtocol](#VeLivePlayerProtocol) for details.
68
106
  *
@@ -72,79 +110,129 @@ export declare class VeLivePlayerStreamData {
72
110
  protected __init(...args: any[]): void;
73
111
  protected __new_instance(...args: any[]): any;
74
112
  }
75
-
113
+ /** {zh}
114
+ * @detail keytype
115
+ * @brief 直播播放器状态。
116
+ *
117
+ */
76
118
  export declare enum VeLivePlayerStatus {
77
-
119
+ /** {zh}
120
+ * @brief 播放器准备完成,等待渲染。
121
+ *
122
+ */
78
123
  /** {en}
79
124
  * @brief The player finishes preparing and is waiting to render the video.
80
125
  *
81
126
  */
82
127
  VeLivePlayerStatusPrepared = 0,
83
-
128
+ /** {zh}
129
+ * @brief 正在播放,即首帧渲染完成且播放器未发生错误。
130
+ *
131
+ */
84
132
  /** {en}
85
133
  * @brief Playback is currently in progress, meaning that the first frame has been rendered and no errors have occurred to the player.
86
134
  *
87
135
  */
88
136
  VeLivePlayerStatusPlaying = 1,
89
-
137
+ /** {zh}
138
+ * @brief 暂停播放状态。
139
+ *
140
+ */
90
141
  /** {en}
91
142
  * @brief The playback is paused.
92
143
  *
93
144
  */
94
145
  VeLivePlayerStatusPaused = 2,
95
-
146
+ /** {zh}
147
+ * @brief 停止播放状态。
148
+ *
149
+ */
96
150
  /** {en}
97
151
  * @brief The playback is stopped.
98
152
  *
99
153
  */
100
154
  VeLivePlayerStatusStopped = 3,
101
-
155
+ /** {zh}
156
+ * @brief 播放器发生错误。
157
+ *
158
+ */
102
159
  /** {en}
103
160
  * @brief An error has occurred to the player.
104
161
  *
105
162
  */
106
163
  VeLivePlayerStatusError = 4
107
164
  }
108
-
165
+ /** {zh}
166
+ * @detail keytype
167
+ * @brief 直播播放器清晰度档位变化原因。
168
+ *
169
+ */
109
170
  export declare enum VeLivePlayerResolutionSwitchReason {
110
-
171
+ /** {zh}
172
+ * @brief ABR 自动切档。
173
+ *
174
+ */
111
175
  /** {en}
112
176
  * @brief The resolution is switched automatically through the adaptive bitrate (ABR) feature.
113
177
  *
114
178
  */
115
179
  VeLivePlayerResolutionSwitchByAuto = 0,
116
-
180
+ /** {zh}
181
+ * @brief 调用 [switchResolution](188111#VeLivePlayer-switchresolution) 手动切换档位导致的分辨率变化。
182
+ *
183
+ */
117
184
  /** {en}
118
185
  * @brief The resolution is changed after switchResolution{@link #VeLivePlayer#switchResolution} is called.
119
186
  *
120
187
  */
121
188
  VeLivePlayerResolutionSwitchByManual = 1
122
189
  }
123
-
190
+ /** {zh}
191
+ * @detail keytype
192
+ * @brief 直播播放器画面的填充模式。
193
+ *
194
+ */
124
195
  export declare enum VeLivePlayerFillMode {
125
-
196
+ /** {zh}
197
+ * @brief 显示完整的视频帧。视频帧等比缩放,直至视频帧恰好在画布上全部显示。如果视频帧长宽比例与画布不同,视窗上未被视频帧填满区域将填充为黑色。
198
+ *
199
+ */
126
200
  /** {en}
127
201
  * @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 black.
128
202
  *
129
203
  */
130
204
  VeLivePlayerFillModeAspectFit = 0,
131
-
205
+ /** {zh}
206
+ * @brief 视频帧自适应画布。视频帧非等比缩放,直至填满画布。在此过程中,视频帧的长宽比例可能会发生变化。
207
+ *
208
+ */
132
209
  /** {en}
133
210
  * @brief Stretch the video to fill the screen. The aspect ratio of the video might change.
134
211
  *
135
212
  */
136
213
  VeLivePlayerFillModeFullFill = 1,
137
-
214
+ /** {zh}
215
+ * @brief 视频填满画布。视频帧等比缩放,直至填满画布,超出屏幕的部分将被裁剪,画面可能不完整。
216
+ *
217
+ */
138
218
  /** {en}
139
219
  * @brief Uniformly scale the video until the screen is completely filled. Part of the video may be cropped.
140
220
  *
141
221
  */
142
222
  VeLivePlayerFillModeAspectFill = 2
143
223
  }
144
-
224
+ /** {zh}
225
+ * @detail keytype
226
+ * @brief 播放周期性统计信息。
227
+ */
145
228
  export declare class VeLivePlayerStatistics {
146
229
  protected _instance: any;
147
-
230
+ /** {zh}
231
+ * @brief 是否使用硬件解码。<br>
232
+ * - true:硬解;
233
+ * - false:非硬解。
234
+ *
235
+ */
148
236
  /** {en}
149
237
  * @brief Whether hardware decoding is used. <br>
150
238
  * - true: Hardware decoding is used;
@@ -152,117 +240,181 @@ export declare class VeLivePlayerStatistics {
152
240
  *
153
241
  */
154
242
  get isHardwareDecode(): boolean;
155
-
243
+ /** {zh}
244
+ * @brief 当前直播的播放地址。
245
+ *
246
+ */
156
247
  /** {en}
157
248
  * @brief The current pull stream address.
158
249
  *
159
250
  */
160
251
  get url(): string;
161
-
252
+ /** {zh}
253
+ * @brief 视频的编码类型。
254
+ *
255
+ */
162
256
  /** {en}
163
257
  * @brief The encoding format of the video.
164
258
  *
165
259
  */
166
260
  get videoCodec(): string;
167
-
261
+ /** {zh}
262
+ * @brief 从当前视频开始播放起,累计的卡顿时长,单位为 ms。
263
+ *
264
+ */
168
265
  /** {en}
169
266
  * @brief The cumulative duration of stutters that occurred since the beginning of playback, in milliseconds.
170
267
  *
171
268
  */
172
269
  get stallTimeMs(): number;
173
-
270
+ /** {zh}
271
+ * @brief 带宽预测 ,单位为 kbps
272
+ *
273
+ */
174
274
  /** {en}
175
275
  * @brief Bandwidth estimation, unit is kbps.
176
276
  *
177
277
  */
178
278
  get bandwidthEstimation(): number;
179
-
279
+ /** {zh}
280
+ * @brief 当前播放延时,单位为 ms。仅在使用了火山引擎视频直播推流 SDK 时,支持统计播放延时。
281
+ *
282
+ */
180
283
  /** {en}
181
284
  * @brief The current playback latency, in milliseconds. The latency data is available only if you use the BytePlus MediaLive Broadcast SDK to push the live stream.
182
285
  *
183
286
  */
184
287
  get delayMs(): number;
185
-
288
+ /** {zh}
289
+ * @brief 当前播放视频的宽度,单位为 px。
290
+ *
291
+ */
186
292
  /** {en}
187
293
  * @brief The width of the video, in pixels.
188
294
  *
189
295
  */
190
296
  get width(): number;
191
-
297
+ /** {zh}
298
+ * @brief 当前播放视频的高度,单位为 px。
299
+ *
300
+ */
192
301
  /** {en}
193
302
  * @brief The height of the video, in pixels.
194
303
  *
195
304
  */
196
305
  get height(): number;
197
-
306
+ /** {zh}
307
+ * @brief 当前播放视频的帧率,单位为 fps。
308
+ *
309
+ */
198
310
  /** {en}
199
311
  * @brief The frame rate of the video, in fps.
200
312
  *
201
313
  */
202
314
  get fps(): number;
203
-
315
+ /** {zh}
316
+ * @brief 实时下载的码率,单位为 kbps。
317
+ *
318
+ */
204
319
  /** {en}
205
320
  * @brief The downlink bitrate, in Kbps.
206
321
  *
207
322
  */
208
323
  get bitrate(): number;
209
-
324
+ /** {zh}
325
+ * @brief 视频播放的缓冲区 buffer 大小,单位为 ms。
326
+ *
327
+ */
210
328
  /** {en}
211
329
  * @brief The video buffer, in milliseconds.
212
330
  *
213
331
  */
214
332
  get videoBufferMs(): number;
215
-
333
+ /** {zh}
334
+ * @brief 音频播放的缓冲区 buffer 大小,单位为 ms。
335
+ *
336
+ */
216
337
  /** {en}
217
338
  * @brief The audio buffer, in milliseconds.
218
339
  *
219
340
  */
220
341
  get audioBufferMs(): number;
221
342
  }
222
-
343
+ /** {zh}
344
+ * @detail keytype
345
+ * @brief 视频数据封装格式。
346
+ *
347
+ */
223
348
  export declare enum VeLivePlayerVideoBufferType {
224
-
349
+ /** {zh}
350
+ * @brief 未知格式。
351
+ *
352
+ */
225
353
  /** {en}
226
354
  * @brief Unknown format.
227
355
  *
228
356
  */
229
357
  VeLivePlayerVideoBufferTypeUnknown = 0,
230
-
358
+ /** {zh}
359
+ * @platform android
360
+ * @brief ByteBuffer 格式。
361
+ *
362
+ */
231
363
  /** {en}
232
364
  * @platform android
233
365
  * @brief ByteBuffer.
234
366
  *
235
367
  */
236
368
  VeLivePlayerVideoBufferTypeByteBuffer = 1,
237
-
369
+ /** {zh}
370
+ * @platform android
371
+ * @brief ByteArray 格式。
372
+ *
373
+ */
238
374
  /** {en}
239
375
  * @platform android
240
376
  * @brief ByteArray.
241
377
  *
242
378
  */
243
379
  VeLivePlayerVideoBufferTypeByteArray = 2,
244
-
380
+ /** {zh}
381
+ * @platform android
382
+ * @brief 纹理格式。
383
+ *
384
+ */
245
385
  /** {en}
246
386
  * @platform android
247
387
  * @brief Texture.
248
388
  *
249
389
  */
250
390
  VeLivePlayerVideoBufferTypeTexture = 3,
251
-
391
+ /** {zh}
392
+ * @platform ios
393
+ * @brief CVPixelBufferRef 格式。
394
+ *
395
+ */
252
396
  /** {en}
253
397
  * @platform ios
254
398
  * @brief CVPixelBufferRef.
255
399
  *
256
400
  */
257
401
  VeLivePlayerVideoBufferTypePixelBuffer = 4,
258
-
402
+ /** {zh}
403
+ * @platform ios
404
+ * @brief CVSampleBufferRef 格式。
405
+ *
406
+ */
259
407
  /** {en}
260
408
  * @platform ios
261
409
  * @brief CVSampleBufferRef.
262
410
  *
263
411
  */
264
412
  VeLivePlayerVideoBufferTypeSampleBuffer = 5,
265
-
413
+ /** {zh}
414
+ * @platform ios
415
+ * @brief NSData 格式。
416
+ *
417
+ */
266
418
  /** {en}
267
419
  * @platform ios
268
420
  * @brief NSData.
@@ -270,43 +422,70 @@ export declare enum VeLivePlayerVideoBufferType {
270
422
  */
271
423
  VeLivePlayerVideoBufferTypeNSData = 6
272
424
  }
273
-
425
+ /** {zh}
426
+ * @detail keytype
427
+ * @brief 视频帧像素格式。
428
+ *
429
+ */
274
430
  export declare enum VeLivePlayerPixelFormat {
275
-
431
+ /** {zh}
432
+ * @brief 未知格式。
433
+ *
434
+ */
276
435
  /** {en}
277
436
  * @brief Unknown format.
278
437
  *
279
438
  */
280
439
  VeLivePlayerPixelFormatUnknown = 0,
281
-
440
+ /** {zh}
441
+ * @platform android
442
+ * @brief RGBA8888 格式。
443
+ *
444
+ */
282
445
  /** {en}
283
446
  * @platform android
284
447
  * @brief RGBA8888.
285
448
  *
286
449
  */
287
450
  VeLivePlayerPixelFormatRGBA32 = 1,
288
-
451
+ /** {zh}
452
+ * @platform android
453
+ * @brief 纹理格式。
454
+ *
455
+ */
289
456
  /** {en}
290
457
  * @platform android
291
458
  * @brief Texture.
292
459
  *
293
460
  */
294
461
  VeLivePlayerPixelFormatTexture = 2,
295
-
462
+ /** {zh}
463
+ * @platform ios
464
+ * @brief NV12 格式。
465
+ *
466
+ */
296
467
  /** {en}
297
468
  * @platform ios
298
469
  * @brief NV12.
299
470
  *
300
471
  */
301
472
  VeLivePlayerPixelFormatNV12 = 3,
302
-
473
+ /** {zh}
474
+ * @platform ios
475
+ * @brief YUVI420 格式。
476
+ *
477
+ */
303
478
  /** {en}
304
479
  * @platform ios
305
480
  * @brief YUVI420.
306
481
  *
307
482
  */
308
483
  VeLivePlayerPixelFormatI420 = 4,
309
-
484
+ /** {zh}
485
+ * @platform ios
486
+ * @brief BGRA 格式。
487
+ *
488
+ */
310
489
  /** {en}
311
490
  * @platform ios
312
491
  * @brief BGRA.
@@ -314,37 +493,61 @@ export declare enum VeLivePlayerPixelFormat {
314
493
  */
315
494
  VeLivePlayerPixelFormatBGRA32 = 5
316
495
  }
317
-
496
+ /** {zh}
497
+ * @detail keytype
498
+ * @brief 音频数据封装格式。
499
+ *
500
+ */
318
501
  export declare enum VeLivePlayerAudioBufferType {
319
-
502
+ /** {zh}
503
+ * @platform android
504
+ * @brief 未知格式。
505
+ *
506
+ */
320
507
  /** {en}
321
508
  * @platform android
322
509
  * @brief Unknown format.
323
510
  *
324
511
  */
325
512
  VeLivePlayerAudioBufferTypeUnknown = 0,
326
-
513
+ /** {zh}
514
+ * @platform android
515
+ * @brief ByteArray 格式。
516
+ *
517
+ */
327
518
  /** {en}
328
519
  * @platform android
329
520
  * @brief ByteArray.
330
521
  *
331
522
  */
332
523
  VeLivePlayerAudioBufferTypeByteArray = 1,
333
-
524
+ /** {zh}
525
+ * @platform ios
526
+ * @brief 未知格式。
527
+ *
528
+ */
334
529
  /** {en}
335
530
  * @platform ios
336
531
  * @brief Unknown format.
337
532
  *
338
533
  */
339
534
  VeLivePlayerAudioBufferUnknown = 2,
340
-
535
+ /** {zh}
536
+ * @platform ios
537
+ * @brief CVSampleBufferRef 格式,音频数据以样本缓冲区 sample buffer 的形式进行处理和渲染。
538
+ *
539
+ */
341
540
  /** {en}
342
541
  * @platform ios
343
542
  * @brief CVSampleBufferRef. The audio data is processed and rendered as sample buffers.
344
543
  *
345
544
  */
346
545
  VeLivePlayerAudioBufferTypeSampleBuffer = 3,
347
-
546
+ /** {zh}
547
+ * @platform ios
548
+ * @brief NSData 格式,音频数据以 NSData 对象的形式进行处理和渲染。
549
+ *
550
+ */
348
551
  /** {en}
349
552
  * @platform ios
350
553
  * @brief NSData. The audio data is processed and rendered as NSData objects.
@@ -352,53 +555,84 @@ export declare enum VeLivePlayerAudioBufferType {
352
555
  */
353
556
  VeLivePlayerAudioBufferTypeNSData = 4
354
557
  }
355
-
558
+ /** {zh}
559
+ * @detail keytype
560
+ * @brief 直播播放器的清晰度档位。
561
+ *
562
+ */
356
563
  export declare enum VeLivePlayerResolution {
357
-
564
+ /** {zh}
565
+ * @brief 原始流。
566
+ *
567
+ */
358
568
  /** {en}
359
569
  * @brief Original.
360
570
  *
361
571
  */
362
572
  VeLivePlayerResolutionOrigin = 0,
363
-
573
+ /** {zh}
574
+ * @brief UHD 超高清。
575
+ *
576
+ */
364
577
  /** {en}
365
578
  * @brief Ultra high definition (UHD).
366
579
  *
367
580
  */
368
581
  VeLivePlayerResolutionUHD = 1,
369
-
582
+ /** {zh}
583
+ * @brief HD 高清。
584
+ *
585
+ */
370
586
  /** {en}
371
587
  * @brief High definition (HD).
372
588
  *
373
589
  */
374
590
  VeLivePlayerResolutionHD = 2,
375
-
591
+ /** {zh}
592
+ * @brief SD 标清。
593
+ *
594
+ */
376
595
  /** {en}
377
596
  * @brief Standard definition (SD).
378
597
  *
379
598
  */
380
599
  VeLivePlayerResolutionSD = 3,
381
-
600
+ /** {zh}
601
+ * @brief LD 低清。
602
+ *
603
+ */
382
604
  /** {en}
383
605
  * @brief Low definition (LD).
384
606
  *
385
607
  */
386
608
  VeLivePlayerResolutionLD = 4,
387
-
609
+ /** {zh}
610
+ * @brief AO 纯音频流。
611
+ * @hidden (Android)
612
+ *
613
+ */
388
614
  /** {en}
389
615
  * @brief AO pure audio stream.
390
616
  * @hidden (Android)
391
617
  *
392
618
  */
393
619
  VeLivePlayerResolutionAO = 5,
394
-
620
+ /** {zh}
621
+ * @platform ios
622
+ * @brief FHD 全高清
623
+ *
624
+ */
395
625
  /** {en}
396
626
  * @platform ios
397
627
  * @brief Full High definition (FHD).
398
628
  *
399
629
  */
400
630
  VeLivePlayerResolutionFHD = 6,
401
-
631
+ /** {zh}
632
+ * @platform ios
633
+ * @brief 自动档位。
634
+ *
635
+ */
402
636
  /** {en}
403
637
  * @platform ios
404
638
  * @brief Auto.
@@ -406,10 +640,18 @@ export declare enum VeLivePlayerResolution {
406
640
  */
407
641
  VeLivePlayerResolutionAUTO = 8
408
642
  }
409
-
643
+ /** {zh}
644
+ * @detail keytype
645
+ * @brief 播放器初始化相关配置。
646
+ */
410
647
  export declare class VeLivePlayerConfiguration {
411
648
  protected _instance: any;
412
-
649
+ /** {zh}
650
+ * @brief 是否开启字符串 SEI 消息的解析,默认值为 false。<br/>
651
+ * - true:开启;
652
+ * - false:关闭。
653
+ *
654
+ */
413
655
  /** {en}
414
656
  * @brief Whether to enable the parsing of string SEI messages. The default value is `false`.<br/>
415
657
  * - true: Enable;
@@ -418,7 +660,13 @@ export declare class VeLivePlayerConfiguration {
418
660
  */
419
661
  get enableSei(): boolean;
420
662
  set enableSei(value: boolean);
421
-
663
+ /** {zh}
664
+ * @brief 是否开启二进制 SEI 消息的解析,默认值为 false。<br/>
665
+ * - true:开启;
666
+ * - false:关闭。
667
+ * @notes 二进制 SEI 开启后,字符串 SEI 的回调将不再发送。
668
+ *
669
+ */
422
670
  /** {en}
423
671
  * @brief Whether to enable the parsing of binary SEI messages. The default value is `false`. <br>
424
672
  * - true: Enable;
@@ -428,7 +676,12 @@ export declare class VeLivePlayerConfiguration {
428
676
  */
429
677
  get enableBinarySei(): boolean;
430
678
  set enableBinarySei(value: boolean);
431
-
679
+ /** {zh}
680
+ * @brief 是否开启硬件解码功能,默认值为 true。开启硬件解码后,如果出现硬件解码启动失败或硬件解码失败的情况,播放器内部会自动切换为软解。<br>
681
+ * - true:开启;
682
+ * - false:关闭。
683
+ *
684
+ */
432
685
  /** {en}
433
686
  * @brief Whether to turn on hardware decoding. The default value is `true`. When hardware decoding is enabled, if the player fails to start hardware decoding or if hardware decoding fails, the player automatically switches to software decoding. <br>
434
687
  * - true: Enable;
@@ -437,14 +690,22 @@ export declare class VeLivePlayerConfiguration {
437
690
  */
438
691
  get enableHardwareDecode(): boolean;
439
692
  set enableHardwareDecode(value: boolean);
440
-
693
+ /** {zh}
694
+ * @brief 网络超时时间,单位为 ms,默认值为 5000。播放器发起网络请求,如果超过了该时间仍未收到服务器响应,则认为网络请求失败。
695
+ *
696
+ */
441
697
  /** {en}
442
698
  * @brief Network timeout duration, in milliseconds. The default value is `5000`. Once the player sends a network request, if the player does not receive a response from the server after the timeout duration, the network request is considered failed.
443
699
  *
444
700
  */
445
701
  get networkTimeoutMs(): number;
446
702
  set networkTimeoutMs(value: number);
447
-
703
+ /** {zh}
704
+ * @brief 重试时间间隔,单位为 ms,默认值为 5000,仅在无备流时生效。<br>
705
+ * - 在无备流的场景下,若遇到网络异常等问题导致播放中断,播放器会立即进行重试,前三次重试为立即执行,第四次及之后的重试将按照设置的重试时间间隔执行;
706
+ * - 在有备流的场景下,重试时间间隔将不生效,所有重试均会立即执行。
707
+ *
708
+ */
448
709
  /** {en}
449
710
  * @brief The retry time interval, in milliseconds. The default value is `5000`. This variable takes effect only when there is no backup stream.<br>
450
711
  * - In the absence of a backup stream, if playback is interrupted due to network issues or other anomalies, the player will immediately initiate a retry. The player will make the first three retries immediately without any waiting time. However, for subsequent retries starting from the fourth attempt, the player will wait for the specified time interval between each attempt.
@@ -453,7 +714,12 @@ export declare class VeLivePlayerConfiguration {
453
714
  */
454
715
  get retryIntervalTimeMs(): number;
455
716
  set retryIntervalTimeMs(value: number);
456
-
717
+ /** {zh}
718
+ * @brief 在网络连接错误的情况下,播放器最大重试次数,默认值为 5。如果取值为 0,表示关闭播放器内部重试。<br>
719
+ * - 在无备流的场景下,每次重试,会消耗一次重试次数;
720
+ * - 在有备流的场景下,每次主备流切换,会消耗一次重试次数。
721
+ *
722
+ */
457
723
  /** {en}
458
724
  * @brief In the case of a network connection error, the maximum number of automatic retries of the player. The default value is `5`. If the value is `0`, the player will not automatically retry.<br>
459
725
  * - In the absence of a backup stream, each retry will count as one retry attempt.
@@ -462,7 +728,12 @@ export declare class VeLivePlayerConfiguration {
462
728
  */
463
729
  get retryMaxCount(): number;
464
730
  set retryMaxCount(value: number);
465
-
731
+ /** {zh}
732
+ * @brief 是否开启本地 DNS 预解析,默认值为 false。开启本地 DNS 预解析可以缩短启播时间。如果本地 DNS 预解析出现异常,可能会影响播放器的正常使用。<br>
733
+ * - true:开启;
734
+ * - false:关闭。
735
+ *
736
+ */
466
737
  /** {en}
467
738
  * @brief Whether to enable local DNS prefetch. The default value is `false`. Enabling local DNS prefetch can reduce the time required to start playback. If an abnormality occurs with local DNS prefetch, the player may not function properly. <br>
468
739
  * - true: Enable;
@@ -471,7 +742,12 @@ export declare class VeLivePlayerConfiguration {
471
742
  */
472
743
  get enableLiveDNS(): boolean;
473
744
  set enableLiveDNS(value: boolean);
474
-
745
+ /** {zh}
746
+ * @brief 是否开启播放信息周期性回调。默认值为 false。周期性回调参数详细说明请参见 [VeLivePlayerStatistics](188115#VeLivePlayerStatistics) 。当 `enableStatisticsCallback` 为 `true`,且 [statisticsCallbackInterval](188115#VeLivePlayerConfiguration-statisticscallbackinterval) 大于 0 时,播放器会在指定的时间间隔内,周期性地回调播放器状态信息。<br>
747
+ * - true:开启;
748
+ * - false:关闭。
749
+ *
750
+ */
475
751
  /** {en}
476
752
  * @brief Whether to enable periodic callbacks for playback information. The default value is `false`. Refer to [VeLivePlayerStatistics](#VeLivePlayerStatistics) for more information on callback statistics. If `enableStatisticsCallback` is `true` and [statisticsCallbackInterval](#VeLivePlayerConfiguration-statisticscallbackinterval) is greater than `0`, the player will periodically report the player status information after the specified time interval.<br/>
477
753
  * - true: Enable;
@@ -480,7 +756,10 @@ export declare class VeLivePlayerConfiguration {
480
756
  */
481
757
  get enableStatisticsCallback(): boolean;
482
758
  set enableStatisticsCallback(value: boolean);
483
-
759
+ /** {zh}
760
+ * @brief 播放信息周期性回调的时间间隔,单位为 s,默认值为 5。当 [enableStatisticsCallback](188115#VeLivePlayerConfiguration-enablestatisticscallback) 为 `true`,且 `statisticsCallbackInterval` 大于 0 时,播放器会在指定的时间间隔内,周期性地回调播放器状态信息。
761
+ *
762
+ */
484
763
  /** {en}
485
764
  * @brief The time interval for periodic callbacks that provide playback information, in seconds. The default value is `5`. If [enableStatisticsCallback](#VeLivePlayerConfiguration-enablestatisticscallback) is `true` and `statisticsCallbackInterval` is greater than `0`, the player will periodically report the player status information after the specified time interval.
486
765
  *
@@ -490,27 +769,44 @@ export declare class VeLivePlayerConfiguration {
490
769
  protected __init(...args: any[]): void;
491
770
  protected __new_instance(...args: any[]): any;
492
771
  }
493
-
772
+ /** {zh}
773
+ * @detail keytype
774
+ * @brief 直播播放格式。
775
+ *
776
+ */
494
777
  export declare enum VeLivePlayerFormat {
495
-
778
+ /** {zh}
779
+ * @brief FLV 格式。
780
+ *
781
+ */
496
782
  /** {en}
497
783
  * @brief FLV.
498
784
  *
499
785
  */
500
786
  VeLivePlayerFormatFLV = 0,
501
-
787
+ /** {zh}
788
+ * @brief HLS 格式。
789
+ *
790
+ */
502
791
  /** {en}
503
792
  * @brief HLS.
504
793
  *
505
794
  */
506
795
  VeLivePlayerFormatHLS = 1,
507
-
796
+ /** {zh}
797
+ * @brief RTM 格式。
798
+ *
799
+ */
508
800
  /** {en}
509
801
  * @brief Real Time Media (RTM).
510
802
  *
511
803
  */
512
804
  VeLivePlayerFormatRTM = 2,
513
-
805
+ /** {zh}
806
+ * @platform android
807
+ * @brief CMAF 格式
808
+ *
809
+ */
514
810
  /** {en}
515
811
  * @platform android
516
812
  * @brief CMAF format
@@ -518,88 +814,137 @@ export declare enum VeLivePlayerFormat {
518
814
  */
519
815
  VeLivePlayerFormatCMAF = 3
520
816
  }
521
-
817
+ /** {zh}
818
+ * @detail keytype
819
+ * @brief 直播播放传输协议。
820
+ *
821
+ */
522
822
  export declare enum VeLivePlayerProtocol {
523
-
823
+ /** {zh}
824
+ * @brief TCP 协议。
825
+ *
826
+ */
524
827
  /** {en}
525
828
  * @brief TCP.
526
829
  *
527
830
  */
528
831
  VeLivePlayerProtocolTCP = 0,
529
-
832
+ /** {zh}
833
+ * @brief QUIC 协议。
834
+ *
835
+ */
530
836
  /** {en}
531
837
  * @brief QUIC.
532
838
  *
533
839
  */
534
840
  VeLivePlayerProtocolQUIC = 1,
535
-
841
+ /** {zh}
842
+ * @brief TLS 协议。
843
+ *
844
+ */
536
845
  /** {en}
537
846
  * @brief TLS.
538
847
  *
539
848
  */
540
849
  VeLivePlayerProtocolTLS = 2,
541
-
850
+ /** {zh}
851
+ * @brief HTTP2.0 协议。
852
+ *
853
+ */
542
854
  /** {en}
543
855
  * @brief HTTP2.0 protocol
544
856
  *
545
857
  */
546
858
  VeLivePlayerProtocolHTTP2 = 3
547
859
  }
548
-
860
+ /** {zh}
861
+ * @detail keytype
862
+ * @brief 视频镜像。
863
+ *
864
+ */
549
865
  export declare enum VeLivePlayerMirror {
550
-
866
+ /** {zh}
867
+ * @brief 关闭镜像。
868
+ *
869
+ */
551
870
  /** {en}
552
871
  * @brief No mirroring.
553
872
  *
554
873
  */
555
874
  VeLivePlayerMirrorNone = 0,
556
-
875
+ /** {zh}
876
+ * @brief 水平镜像。
877
+ *
878
+ */
557
879
  /** {en}
558
880
  * @brief Horizontal mirroring.
559
881
  *
560
882
  */
561
883
  VeLivePlayerMirrorHorizontal = 1,
562
-
884
+ /** {zh}
885
+ * @brief 垂直镜像。
886
+ *
887
+ */
563
888
  /** {en}
564
889
  * @brief Vertical mirroring.
565
890
  *
566
891
  */
567
892
  VeLivePlayerMirrorVertical = 2
568
893
  }
569
-
894
+ /** {zh}
895
+ * @detail keytype
896
+ * @brief 流地址信息。
897
+ *
898
+ */
570
899
  export declare class VeLivePlayerStream {
571
900
  constructor();
572
901
  constructor();
573
902
  protected _instance: any;
574
-
903
+ /** {zh}
904
+ * @brief 播放地址。
905
+ *
906
+ */
575
907
  /** {en}
576
908
  * @brief The pull stream address.
577
909
  *
578
910
  */
579
911
  get url(): string;
580
912
  set url(value: string);
581
-
913
+ /** {zh}
914
+ * @brief 清晰度档位。详情请参见 [VeLivePlayerResolution](#VeLivePlayerResolution)。
915
+ *
916
+ */
582
917
  /** {en}
583
918
  * @brief The playback resolution. For details, see [VeLivePlayerResolution](#VeLivePlayerResolution).
584
919
  *
585
920
  */
586
921
  get resolution(): VeLivePlayerResolution;
587
922
  set resolution(value: VeLivePlayerResolution);
588
-
923
+ /** {zh}
924
+ * @brief 播放码率,单位为 kbps。
925
+ *
926
+ */
589
927
  /** {en}
590
928
  * @brief The playback bitrate, in Kbps.
591
929
  *
592
930
  */
593
931
  get bitrate(): number;
594
932
  set bitrate(value: number);
595
-
933
+ /** {zh}
934
+ * @brief 播放格式。详情请参见 [VeLivePlayerFormat](#VeLivePlayerFormat)。
935
+ *
936
+ */
596
937
  /** {en}
597
938
  * @brief The format of the live stream. See [VeLivePlayerFormat](#VeLivePlayerFormat) for details.
598
939
  *
599
940
  */
600
941
  get format(): VeLivePlayerFormat;
601
942
  set format(value: VeLivePlayerFormat);
602
-
943
+ /** {zh}
944
+ * @platform android
945
+ * @brief 播放流类型为主路或备路。详情请参见 [VeLivePlayerStreamType](#VeLivePlayerStreamType)。
946
+ *
947
+ */
603
948
  /** {en}
604
949
  * @platform android
605
950
  * @brief Whether the stream is a main or backup stream. See [VeLivePlayerStreamType](#VeLivePlayerStreamType) for details.
@@ -607,14 +952,20 @@ export declare class VeLivePlayerStream {
607
952
  */
608
953
  get streamType(): $p_a.VeLivePlayerStreamType;
609
954
  set streamType(value: $p_a.VeLivePlayerStreamType);
610
-
955
+ /** {zh}
956
+ * @platform ios
957
+ * @brief 传输协议,详情请参见 [VeLivePlayerProtocol](#VeLivePlayerProtocol)。
958
+ */
611
959
  /** {en}
612
960
  * @platform ios
613
961
  * @brief The transmission protocol. See [VeLivePlayerProtocol](#VeLivePlayerProtocol) for details.
614
962
  */
615
963
  get protocol(): $p_i.VeLivePlayerProtocol;
616
964
  set protocol(value: $p_i.VeLivePlayerProtocol);
617
-
965
+ /** {zh}
966
+ * @platform ios
967
+ * @brief 播放流类型为主路或备路,详情请参见 [VeLivePlayerStreamType](188121#VeLivePlayerStreamType)。
968
+ */
618
969
  /** {en}
619
970
  * @platform ios
620
971
  * @brief Whether the stream is a primary or a backup stream. See [VeLivePlayerStreamType](#VeLivePlayerStreamType) for details.
@@ -624,45 +975,67 @@ export declare class VeLivePlayerStream {
624
975
  protected __init(...args: any[]): void;
625
976
  protected __new_instance(...args: any[]): any;
626
977
  }
627
-
978
+ /** {zh}
979
+ * @detail keytype
980
+ * @brief 视频帧数据。
981
+ */
628
982
  export declare class VeLivePlayerVideoFrame {
629
983
  protected _instance: any;
630
-
984
+ /** {zh}
985
+ * @brief 视频帧数据封装格式。详情请参见 [VeLivePlayerVideoBufferType](#VeLivePlayerVideoBufferType)。
986
+ *
987
+ */
631
988
  /** {en}
632
989
  * @brief The encapsulation format. See [VeLivePlayerVideoBufferType](#VeLivePlayerVideoBufferType) for details.
633
990
  *
634
991
  */
635
992
  get bufferType(): VeLivePlayerVideoBufferType;
636
993
  set bufferType(value: VeLivePlayerVideoBufferType);
637
-
994
+ /** {zh}
995
+ * @brief 视频帧像素格式。详情请参见 [VeLivePlayerPixelFormat](#VeLivePlayerPixelFormat)。
996
+ *
997
+ */
638
998
  /** {en}
639
999
  * @brief The pixel format. See [VeLivePlayerPixelFormat](#VeLivePlayerPixelFormat) for details.
640
1000
  *
641
1001
  */
642
1002
  get pixelFormat(): VeLivePlayerPixelFormat;
643
1003
  set pixelFormat(value: VeLivePlayerPixelFormat);
644
-
1004
+ /** {zh}
1005
+ * @brief 视频宽度,单位为 px。
1006
+ *
1007
+ */
645
1008
  /** {en}
646
1009
  * @brief The video width, in pixels.
647
1010
  *
648
1011
  */
649
1012
  get width(): number;
650
1013
  set width(value: number);
651
-
1014
+ /** {zh}
1015
+ * @brief 视频高度,单位为 px。
1016
+ *
1017
+ */
652
1018
  /** {en}
653
1019
  * @brief The video height, in pixels.
654
1020
  *
655
1021
  */
656
1022
  get height(): number;
657
1023
  set height(value: number);
658
-
1024
+ /** {zh}
1025
+ * @brief 视频帧的渲染时间戳。单位为 ms。
1026
+ *
1027
+ */
659
1028
  /** {en}
660
1029
  * @brief The timestamp indicating the time when the video frame is rendered, in milliseconds.
661
1030
  *
662
1031
  */
663
1032
  get pts(): number;
664
1033
  set pts(value: number);
665
-
1034
+ /** {zh}
1035
+ * @platform android
1036
+ * @brief OpenGL 渲染的视频纹理数据。如果将 [VeLivePlayerPixelFormat](#VeLivePlayerPixelFormat) 设置为`VeLivePlayerPixelFormatTexture`,并将 [VeLivePlayerVideoBufferType](#VeLivePlayerVideoBufferType) 设置为`VeLivePlayerVideoBufferTypeTexture`,SDK 会返回此视频数据类型。有关详细信息,请参阅[VeLivePlayerVideoTexture](#VeLivePlayerVideoTexture)。
1037
+ *
1038
+ */
666
1039
  /** {en}
667
1040
  * @platform android
668
1041
  * @brief The texture data for OpenGL rendering. The SDK returns this video data type if you set [VeLivePlayerPixelFormat](#VeLivePlayerPixelFormat) to `VeLivePlayerPixelFormatTexture` and set [VeLivePlayerVideoBufferType](#VeLivePlayerVideoBufferType) to `VeLivePlayerVideoBufferTypeTexture`. See [VeLivePlayerVideoTexture](#VeLivePlayerVideoTexture) for details.
@@ -670,7 +1043,11 @@ export declare class VeLivePlayerVideoFrame {
670
1043
  */
671
1044
  get texture(): $p_a.VeLivePlayerVideoTexture;
672
1045
  set texture(value: $p_a.VeLivePlayerVideoTexture);
673
-
1046
+ /** {zh}
1047
+ * @platform android
1048
+ * @brief ByteBuffer 格式的视频数据。如果将 [VeLivePlayerPixelFormat](#VeLivePlayerPixelFormat)设置为`VeLivePlayerPixelFormatRGBA32`,并将 [VeLivePlayerVideoBufferType](#VeLivePlayerVideoBufferType) 设置为`VeLivePlayerVideoBufferTypeByteBuffer`,则 SDK 会返回此视频数据类型。
1049
+ *
1050
+ */
674
1051
  /** {en}
675
1052
  * @platform android
676
1053
  * @brief The video data in ByteBuffer format. The SDK returns this video data type if you set [VeLivePlayerPixelFormat](#VeLivePlayerPixelFormat) to `VeLivePlayerPixelFormatRGBA32` and set [VeLivePlayerVideoBufferType](#VeLivePlayerVideoBufferType) to `VeLivePlayerVideoBufferTypeByteBuffer`.
@@ -678,21 +1055,30 @@ export declare class VeLivePlayerVideoFrame {
678
1055
  */
679
1056
  get buffer(): $p_a.ByteBuffer;
680
1057
  set buffer(value: $p_a.ByteBuffer);
681
-
1058
+ /** {zh}
1059
+ * @brief ByteArray 格式的视频数据。如果将 [VeLivePlayerPixelFormat](#VeLivePlayerPixelFormat) 设置为“VeLivePlayerPixelFormatRGBA32”,并将 [VeLivePlayerVideoBufferType](#VeLivePlayerVideoBufferType) 设置为“VeLivePlayerVideoBufferTypeByteArray”,则 SDK 会返回这种视频数据类型。
1060
+ *
1061
+ */
682
1062
  /** {en}
683
1063
  * @brief The video data in ByteArray format. The SDK returns this video data type if you set [VeLivePlayerPixelFormat](#VeLivePlayerPixelFormat) to `VeLivePlayerPixelFormatRGBA32` and set [VeLivePlayerVideoBufferType](#VeLivePlayerVideoBufferType) to `VeLivePlayerVideoBufferTypeByteArray`.
684
1064
  *
685
1065
  */
686
1066
  get data(): ArrayBuffer;
687
1067
  set data(value: ArrayBuffer);
688
-
1068
+ /** {zh}
1069
+ * @platform ios
1070
+ * @brief `pixelFormat` 为 `VeLivePlayerVideoBufferTypePixelBuffer` 时的视频数据。
1071
+ */
689
1072
  /** {en}
690
1073
  * @platform ios
691
1074
  * @brief The video data, if you set [VeLivePlayerVideoBufferType](#VeLivePlayerVideoBufferType) to `VeLivePlayerVideoBufferTypePixelBuffer`.
692
1075
  */
693
1076
  get pixelBuffer(): $p_i.CVPixelBufferRef;
694
1077
  set pixelBuffer(value: $p_i.CVPixelBufferRef);
695
-
1078
+ /** {zh}
1079
+ * @platform ios
1080
+ * @brief `pixelFormat` 为 `VeLivePlayerVideoBufferTypeSampleBuffer` 时的视频数据。
1081
+ */
696
1082
  /** {en}
697
1083
  * @platform ios
698
1084
  * @brief The video data, if you set [VeLivePlayerVideoBufferType](#VeLivePlayerVideoBufferType) to `VeLivePlayerVideoBufferTypeSampleBuffer`.
@@ -702,78 +1088,124 @@ export declare class VeLivePlayerVideoFrame {
702
1088
  protected __init(...args: any[]): void;
703
1089
  protected __new_instance(...args: any[]): any;
704
1090
  }
705
-
1091
+ /** {zh}
1092
+ * @detail keytype
1093
+ * @brief 直播播放流类型。
1094
+ *
1095
+ */
706
1096
  export declare enum VeLivePlayerStreamType {
707
-
1097
+ /** {zh}
1098
+ * @brief 主路流。
1099
+ *
1100
+ */
708
1101
  /** {en}
709
1102
  * @brief The primary stream.
710
1103
  *
711
1104
  */
712
1105
  VeLivePlayerStreamTypeMain = 0,
713
-
1106
+ /** {zh}
1107
+ * @brief 备路流。
1108
+ *
1109
+ */
714
1110
  /** {en}
715
1111
  * @brief The backup stream.
716
1112
  *
717
1113
  */
718
1114
  VeLivePlayerStreamTypeBackup = 1
719
1115
  }
720
-
1116
+ /** {zh}
1117
+ * @detail keytype
1118
+ * @brief 直播播放器日志打印级别。
1119
+ *
1120
+ */
721
1121
  export declare enum VeLivePlayerLogLevel {
722
-
1122
+ /** {zh}
1123
+ * @brief 输出 VERBOSE、DEBUG、INFO、WARNING 和 ERROR 级别的日志。
1124
+ *
1125
+ */
723
1126
  /** {en}
724
1127
  * @brief Output logs at the VERBOSE, DEBUG, INFO, WARNING, and ERROR levels.
725
1128
  *
726
1129
  */
727
1130
  VeLivePlayerLogLevelVerbose = 0,
728
-
1131
+ /** {zh}
1132
+ * @brief 输出 DEBUG、INFO、WARNING 和 ERROR 级别的日志。
1133
+ *
1134
+ */
729
1135
  /** {en}
730
1136
  * @brief Output logs at the DEBUG, INFO, WARNING, and ERROR levels.
731
1137
  *
732
1138
  */
733
1139
  VeLivePlayerLogLevelDebug = 1,
734
-
1140
+ /** {zh}
1141
+ * @brief 输出 INFO、WARNING 和 ERROR 级别的日志。
1142
+ *
1143
+ */
735
1144
  /** {en}
736
1145
  * @brief Output logs at the INFO, WARNING, and ERROR levels.
737
1146
  *
738
1147
  */
739
1148
  VeLivePlayerLogLevelInfo = 2,
740
-
1149
+ /** {zh}
1150
+ * @brief 输出 WARNING 和 ERROR 级别的日志。
1151
+ *
1152
+ */
741
1153
  /** {en}
742
1154
  * @brief Output logs at the WARNING and ERROR levels.
743
1155
  *
744
1156
  */
745
1157
  VeLivePlayerLogLevelWarn = 3,
746
-
1158
+ /** {zh}
1159
+ * @brief 输出 ERROR 级别的日志。
1160
+ *
1161
+ */
747
1162
  /** {en}
748
1163
  * @brief Output logs at the ERROR level.
749
1164
  *
750
1165
  */
751
1166
  VeLivePlayerLogLevelError = 4,
752
-
1167
+ /** {zh}
1168
+ * @brief 关闭日志打印。
1169
+ *
1170
+ */
753
1171
  /** {en}
754
1172
  * @brief Disable log printing.
755
1173
  *
756
1174
  */
757
1175
  VeLivePlayerLogLevelNone = 5
758
1176
  }
759
-
1177
+ /** {zh}
1178
+ * @detail keytype
1179
+ * @brief 音频帧数据。
1180
+ */
760
1181
  export declare class VeLivePlayerAudioFrame {
761
1182
  protected _instance: any;
762
-
1183
+ /** {zh}
1184
+ * @brief 音频帧数据封装格式,详情请参见 [VeLivePlayerAudioBufferType](#VeLivePlayerAudioBufferType)。
1185
+ *
1186
+ */
763
1187
  /** {en}
764
1188
  * @brief The encapsulation format of the audio data. See [VeLivePlayerAudioBufferType](#VeLivePlayerAudioBufferType) for details.
765
1189
  *
766
1190
  */
767
1191
  get bufferType(): VeLivePlayerAudioBufferType;
768
1192
  set bufferType(value: VeLivePlayerAudioBufferType);
769
-
1193
+ /** {zh}
1194
+ * @brief 音频采样率,单位为 Hz。
1195
+ *
1196
+ */
770
1197
  /** {en}
771
1198
  * @brief The audio sample rate, in Hz.
772
1199
  *
773
1200
  */
774
1201
  get sampleRate(): number;
775
1202
  set sampleRate(value: number);
776
-
1203
+ /** {zh}
1204
+ * @brief 声道数。<br>
1205
+ * - 1:单声道;
1206
+ * - 2:双声道。
1207
+ *
1208
+ */
777
1209
  /** {en}
778
1210
  * @brief The number of audio channels. <br>
779
1211
  * - 1: Mono;
@@ -782,21 +1214,31 @@ export declare class VeLivePlayerAudioFrame {
782
1214
  */
783
1215
  get channels(): number;
784
1216
  set channels(value: number);
785
-
1217
+ /** {zh}
1218
+ * @brief 音频位深度。
1219
+ *
1220
+ */
786
1221
  /** {en}
787
1222
  * @brief The audio bit depth.
788
1223
  *
789
1224
  */
790
1225
  get bitDepth(): number;
791
1226
  set bitDepth(value: number);
792
-
1227
+ /** {zh}
1228
+ * @brief 音频渲染时间戳。单位为 ms。
1229
+ *
1230
+ */
793
1231
  /** {en}
794
1232
  * @brief The timestamp indicating the time when the audio is rendered, in milliseconds.
795
1233
  *
796
1234
  */
797
1235
  get pts(): number;
798
1236
  set pts(value: number);
799
-
1237
+ /** {zh}
1238
+ * @platform android
1239
+ * @brief PCM 音频数据。byte[]类型
1240
+ *
1241
+ */
800
1242
  /** {en}
801
1243
  * @platform android
802
1244
  * @brief The PCM audio data. byte[] type.
@@ -804,7 +1246,11 @@ export declare class VeLivePlayerAudioFrame {
804
1246
  */
805
1247
  get bufferArray(): ArrayBuffer;
806
1248
  set bufferArray(value: ArrayBuffer);
807
-
1249
+ /** {zh}
1250
+ * @platform android
1251
+ * @brief PCM 音频数据。ByteBuffer[]类型
1252
+ *
1253
+ */
808
1254
  /** {en}
809
1255
  * @platform android
810
1256
  * @brief The PCM audio data. ByteBuffer[] type.
@@ -812,14 +1258,20 @@ export declare class VeLivePlayerAudioFrame {
812
1258
  */
813
1259
  get buffer(): $p_a.ByteBuffer[];
814
1260
  set buffer(value: $p_a.ByteBuffer[]);
815
-
1261
+ /** {zh}
1262
+ * @brief 音频采样点个数。
1263
+ *
1264
+ */
816
1265
  /** {en}
817
1266
  * @brief The number of audio samples.
818
1267
  *
819
1268
  */
820
1269
  get samples(): number;
821
1270
  set samples(value: number);
822
-
1271
+ /** {zh}
1272
+ * @platform ios
1273
+ * @brief PCM 音频数据。
1274
+ */
823
1275
  /** {en}
824
1276
  * @platform ios
825
1277
  * @brief The PCM audio data.