@byteplus/react-native-live-pull 1.5.1-rc.3 → 1.5.2-rc.0

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