@volcengine/react-native-live-pull 1.3.2-rc.0 → 1.3.3-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 (39) hide show
  1. package/lib/commonjs/index.js +14555 -0
  2. package/lib/module/index.js +14543 -0
  3. package/lib/typescript/codegen/android/api.d.ts +319 -0
  4. package/lib/typescript/codegen/android/callback.d.ts +206 -0
  5. package/lib/typescript/codegen/android/errorcode.d.ts +177 -0
  6. package/lib/typescript/codegen/android/external.d.ts +1 -0
  7. package/lib/typescript/codegen/android/index.d.ts +6 -0
  8. package/lib/typescript/codegen/android/keytype.d.ts +753 -0
  9. package/lib/typescript/codegen/android/types.d.ts +31 -0
  10. package/lib/typescript/codegen/ios/api.d.ts +293 -0
  11. package/lib/typescript/codegen/ios/callback.d.ts +176 -0
  12. package/lib/typescript/codegen/ios/errorcode.d.ts +160 -0
  13. package/lib/typescript/codegen/ios/external.d.ts +1 -0
  14. package/lib/typescript/codegen/ios/index.d.ts +6 -0
  15. package/lib/typescript/codegen/ios/keytype.d.ts +697 -0
  16. package/lib/typescript/codegen/ios/types.d.ts +46 -0
  17. package/lib/typescript/codegen/pack/api.d.ts +371 -0
  18. package/lib/typescript/codegen/pack/callback.d.ts +258 -0
  19. package/lib/typescript/codegen/pack/errorcode.d.ts +195 -0
  20. package/lib/typescript/codegen/pack/external.d.ts +1 -0
  21. package/lib/typescript/codegen/pack/index.d.ts +6 -0
  22. package/lib/typescript/codegen/pack/keytype.d.ts +980 -0
  23. package/lib/typescript/codegen/pack/types.d.ts +68 -0
  24. package/lib/typescript/component.d.ts +15 -0
  25. package/lib/typescript/core/api.d.ts +114 -0
  26. package/lib/typescript/core/appState.d.ts +3 -0
  27. package/lib/typescript/core/callback.d.ts +53 -0
  28. package/lib/typescript/core/env.d.ts +36 -0
  29. package/lib/typescript/core/errorcode.d.ts +1 -0
  30. package/lib/typescript/core/index.d.ts +6 -0
  31. package/lib/typescript/core/keytype.d.ts +33 -0
  32. package/lib/typescript/core/player.d.ts +14 -0
  33. package/lib/typescript/index.d.ts +3 -0
  34. package/lib/typescript/platforms/android/extends.d.ts +39 -0
  35. package/lib/typescript/platforms/android/pictureInpicture.d.ts +26 -0
  36. package/lib/typescript/platforms/ios/extends.d.ts +43 -0
  37. package/lib/typescript/platforms/ios/pictureInpicture.d.ts +32 -0
  38. package/lib/typescript/runtime/index.d.ts +1 -0
  39. package/package.json +3 -3
@@ -0,0 +1,980 @@
1
+ import * as $p_a from '../android/index';
2
+ import * as $p_i from '../ios/index';
3
+ /** {zh}
4
+ * @detail keytype
5
+ * @brief 视频顺时针旋转角度。
6
+ *
7
+ */
8
+ export declare enum VeLivePlayerRotation {
9
+ /** {zh}
10
+ * @brief 关闭旋转。
11
+ *
12
+ */
13
+
14
+ VeLivePlayerRotation0 = 0,
15
+ /** {zh}
16
+ * @brief 顺时针旋转 90 度。
17
+ *
18
+ */
19
+
20
+ VeLivePlayerRotation90 = 1,
21
+ /** {zh}
22
+ * @brief 顺时针旋转 180 度。
23
+ *
24
+ */
25
+
26
+ VeLivePlayerRotation180 = 2,
27
+ /** {zh}
28
+ * @brief 顺时针旋转 270 度。
29
+ *
30
+ */
31
+
32
+ VeLivePlayerRotation270 = 3
33
+ }
34
+ /** {zh}
35
+ * @detail keytype
36
+ * @brief 播放地址相关配置。
37
+ */
38
+ export declare class VeLivePlayerStreamData {
39
+ protected _instance: any;
40
+ /** {zh}
41
+ * @brief 是否打开 ABR 平滑切档功能,默认为 false。<br>
42
+ * - true:开启;
43
+ * - false:关闭。
44
+ *
45
+ */
46
+
47
+ get enableABR(): boolean;
48
+ set enableABR(value: boolean);
49
+ /** {zh}
50
+ * @brief 是否打开主备切换,默认为 false。<br>
51
+ * - true:开启;
52
+ * - false:关闭。
53
+ *
54
+ */
55
+
56
+ get enableMainBackupSwitch(): boolean;
57
+ set enableMainBackupSwitch(value: boolean);
58
+ /** {zh}
59
+ * @brief 播放器的默认清晰度档位,默认使用原始流清晰度。详情请参见 [VeLivePlayerResolution](#VeLivePlayerResolution)。
60
+ *
61
+ */
62
+
63
+ get defaultResolution(): VeLivePlayerResolution;
64
+ set defaultResolution(value: VeLivePlayerResolution);
65
+ /** {zh}
66
+ * @brief 播放器的默认播放格式,默认值为 FLV。详情请参见 [VeLivePlayerFormat](#VeLivePlayerFormat)。
67
+ *
68
+ */
69
+
70
+ get defaultFormat(): VeLivePlayerFormat;
71
+ set defaultFormat(value: VeLivePlayerFormat);
72
+ /** {zh}
73
+ * @brief 播放器的默认播放传输层协议,默认值为 TCP。详情请参见 [VeLivePlayerProtocol](#VeLivePlayerProtocol)。
74
+ *
75
+ */
76
+
77
+ get defaultProtocol(): VeLivePlayerProtocol;
78
+ set defaultProtocol(value: VeLivePlayerProtocol);
79
+ protected __init(...args: any[]): void;
80
+ protected __new_instance(...args: any[]): any;
81
+ }
82
+ /** {zh}
83
+ * @detail keytype
84
+ * @brief 直播播放器状态。
85
+ *
86
+ */
87
+ export declare enum VeLivePlayerStatus {
88
+ /** {zh}
89
+ * @brief 播放器准备完成,等待渲染。
90
+ *
91
+ */
92
+
93
+ VeLivePlayerStatusPrepared = 0,
94
+ /** {zh}
95
+ * @brief 正在播放,即首帧渲染完成且播放器未发生错误。
96
+ *
97
+ */
98
+
99
+ VeLivePlayerStatusPlaying = 1,
100
+ /** {zh}
101
+ * @brief 暂停播放状态。
102
+ *
103
+ */
104
+
105
+ VeLivePlayerStatusPaused = 2,
106
+ /** {zh}
107
+ * @brief 停止播放状态。
108
+ *
109
+ */
110
+
111
+ VeLivePlayerStatusStopped = 3,
112
+ /** {zh}
113
+ * @brief 播放器发生错误。
114
+ *
115
+ */
116
+
117
+ VeLivePlayerStatusError = 4
118
+ }
119
+ /** {zh}
120
+ * @detail keytype
121
+ * @brief 直播播放器清晰度档位变化原因。
122
+ *
123
+ */
124
+ export declare enum VeLivePlayerResolutionSwitchReason {
125
+ /** {zh}
126
+ * @brief ABR 自动切档。
127
+ *
128
+ */
129
+
130
+ VeLivePlayerResolutionSwitchByAuto = 0,
131
+ /** {zh}
132
+ * @brief 调用 [switchResolution](188111#VeLivePlayer-switchresolution) 手动切换档位导致的分辨率变化。
133
+ *
134
+ */
135
+
136
+ VeLivePlayerResolutionSwitchByManual = 1
137
+ }
138
+ /** {zh}
139
+ * @detail keytype
140
+ * @brief 直播播放器画面的填充模式。
141
+ *
142
+ */
143
+ export declare enum VeLivePlayerFillMode {
144
+ /** {zh}
145
+ * @brief 显示完整的视频帧。视频帧等比缩放,直至视频帧恰好在画布上全部显示。如果视频帧长宽比例与画布不同,视窗上未被视频帧填满区域将填充为黑色。
146
+ *
147
+ */
148
+
149
+ VeLivePlayerFillModeAspectFit = 0,
150
+ /** {zh}
151
+ * @brief 视频帧自适应画布。视频帧非等比缩放,直至填满画布。在此过程中,视频帧的长宽比例可能会发生变化。
152
+ *
153
+ */
154
+
155
+ VeLivePlayerFillModeFullFill = 1,
156
+ /** {zh}
157
+ * @brief 视频填满画布。视频帧等比缩放,直至填满画布,超出屏幕的部分将被裁剪,画面可能不完整。
158
+ *
159
+ */
160
+
161
+ VeLivePlayerFillModeAspectFill = 2
162
+ }
163
+ /** {zh}
164
+ * @detail keytype
165
+ * @brief 播放周期性统计信息。
166
+ */
167
+ export declare class VeLivePlayerStatistics {
168
+ protected _instance: any;
169
+ /** {zh}
170
+ * @brief 是否使用硬件解码。<br>
171
+ * - true:硬解;
172
+ * - false:非硬解。
173
+ *
174
+ */
175
+
176
+ get isHardwareDecode(): boolean;
177
+ /** {zh}
178
+ * @brief 当前直播的播放地址。
179
+ *
180
+ */
181
+
182
+ get url(): string;
183
+ /** {zh}
184
+ * @brief 视频的编码类型。
185
+ *
186
+ */
187
+
188
+ get videoCodec(): string;
189
+ /** {zh}
190
+ * @brief 从当前视频开始播放起,累计的卡顿时长,单位为 ms。
191
+ *
192
+ */
193
+
194
+ get stallTimeMs(): number;
195
+ /** {zh}
196
+ * @brief 带宽预测 ,单位为 kbps
197
+ *
198
+ */
199
+
200
+ get bandwidthEstimation(): number;
201
+ /** {zh}
202
+ * @brief 当前播放延时,单位为 ms。仅在使用了火山引擎视频直播推流 SDK 时,支持统计播放延时。
203
+ *
204
+ */
205
+
206
+ get delayMs(): number;
207
+ /** {zh}
208
+ * @brief 当前播放视频的宽度,单位为 px。
209
+ *
210
+ */
211
+
212
+ get width(): number;
213
+ /** {zh}
214
+ * @brief 当前播放视频的高度,单位为 px。
215
+ *
216
+ */
217
+
218
+ get height(): number;
219
+ /** {zh}
220
+ * @brief 当前播放视频的帧率,单位为 fps。
221
+ *
222
+ */
223
+
224
+ get fps(): number;
225
+ /** {zh}
226
+ * @brief 实时下载的码率,单位为 kbps。
227
+ *
228
+ */
229
+
230
+ get bitrate(): number;
231
+ /** {zh}
232
+ * @brief 视频播放的缓冲区 buffer 大小,单位为 ms。
233
+ *
234
+ */
235
+
236
+ get videoBufferMs(): number;
237
+ /** {zh}
238
+ * @brief 音频播放的缓冲区 buffer 大小,单位为 ms。
239
+ *
240
+ */
241
+
242
+ get audioBufferMs(): number;
243
+ }
244
+ /** {zh}
245
+ * @detail keytype
246
+ * @brief 视频数据封装格式。
247
+ *
248
+ */
249
+ export declare enum VeLivePlayerVideoBufferType {
250
+ /** {zh}
251
+ * @brief 未知格式。
252
+ *
253
+ */
254
+
255
+ VeLivePlayerVideoBufferTypeUnknown = 0,
256
+ /** {zh}
257
+ * @platform android
258
+ * @brief ByteBuffer 格式。
259
+ *
260
+ */
261
+
262
+ VeLivePlayerVideoBufferTypeByteBuffer = 1,
263
+ /** {zh}
264
+ * @platform android
265
+ * @brief ByteArray 格式。
266
+ *
267
+ */
268
+
269
+ VeLivePlayerVideoBufferTypeByteArray = 2,
270
+ /** {zh}
271
+ * @platform android
272
+ * @brief 纹理格式。
273
+ *
274
+ */
275
+
276
+ VeLivePlayerVideoBufferTypeTexture = 3,
277
+ /** {zh}
278
+ * @platform ios
279
+ * @brief CVPixelBufferRef 格式。
280
+ *
281
+ */
282
+
283
+ VeLivePlayerVideoBufferTypePixelBuffer = 4,
284
+ /** {zh}
285
+ * @platform ios
286
+ * @brief CVSampleBufferRef 格式。
287
+ *
288
+ */
289
+
290
+ VeLivePlayerVideoBufferTypeSampleBuffer = 5,
291
+ /** {zh}
292
+ * @platform ios
293
+ * @brief NSData 格式。
294
+ *
295
+ */
296
+
297
+ VeLivePlayerVideoBufferTypeNSData = 6
298
+ }
299
+ /** {zh}
300
+ * @detail keytype
301
+ * @brief 视频帧像素格式。
302
+ *
303
+ */
304
+ export declare enum VeLivePlayerPixelFormat {
305
+ /** {zh}
306
+ * @brief 未知格式。
307
+ *
308
+ */
309
+
310
+ VeLivePlayerPixelFormatUnknown = 0,
311
+ /** {zh}
312
+ * @platform android
313
+ * @brief RGBA8888 格式。
314
+ *
315
+ */
316
+
317
+ VeLivePlayerPixelFormatRGBA32 = 1,
318
+ /** {zh}
319
+ * @platform android
320
+ * @brief 纹理格式。
321
+ *
322
+ */
323
+
324
+ VeLivePlayerPixelFormatTexture = 2,
325
+ /** {zh}
326
+ * @platform ios
327
+ * @brief NV12 格式。
328
+ *
329
+ */
330
+
331
+ VeLivePlayerPixelFormatNV12 = 3,
332
+ /** {zh}
333
+ * @platform ios
334
+ * @brief YUVI420 格式。
335
+ *
336
+ */
337
+
338
+ VeLivePlayerPixelFormatI420 = 4,
339
+ /** {zh}
340
+ * @platform ios
341
+ * @brief BGRA 格式。
342
+ *
343
+ */
344
+
345
+ VeLivePlayerPixelFormatBGRA32 = 5
346
+ }
347
+ /** {zh}
348
+ * @detail keytype
349
+ * @brief 音频数据封装格式。
350
+ *
351
+ */
352
+ export declare enum VeLivePlayerAudioBufferType {
353
+ /** {zh}
354
+ * @platform android
355
+ * @brief 未知格式。
356
+ *
357
+ */
358
+
359
+ VeLivePlayerAudioBufferTypeUnknown = 0,
360
+ /** {zh}
361
+ * @platform android
362
+ * @brief ByteArray 格式。
363
+ *
364
+ */
365
+
366
+ VeLivePlayerAudioBufferTypeByteArray = 1,
367
+ /** {zh}
368
+ * @platform ios
369
+ * @brief 未知格式。
370
+ *
371
+ */
372
+
373
+ VeLivePlayerAudioBufferUnknown = 2,
374
+ /** {zh}
375
+ * @platform ios
376
+ * @brief CVSampleBufferRef 格式,音频数据以样本缓冲区 sample buffer 的形式进行处理和渲染。
377
+ *
378
+ */
379
+
380
+ VeLivePlayerAudioBufferTypeSampleBuffer = 3,
381
+ /** {zh}
382
+ * @platform ios
383
+ * @brief NSData 格式,音频数据以 NSData 对象的形式进行处理和渲染。
384
+ *
385
+ */
386
+
387
+ VeLivePlayerAudioBufferTypeNSData = 4
388
+ }
389
+ /** {zh}
390
+ * @detail keytype
391
+ * @brief 直播播放器的清晰度档位。
392
+ *
393
+ */
394
+ export declare enum VeLivePlayerResolution {
395
+ /** {zh}
396
+ * @brief 原始流。
397
+ *
398
+ */
399
+
400
+ VeLivePlayerResolutionOrigin = 0,
401
+ /** {zh}
402
+ * @brief UHD 超高清。
403
+ *
404
+ */
405
+
406
+ VeLivePlayerResolutionUHD = 1,
407
+ /** {zh}
408
+ * @brief HD 高清。
409
+ *
410
+ */
411
+
412
+ VeLivePlayerResolutionHD = 2,
413
+ /** {zh}
414
+ * @brief SD 标清。
415
+ *
416
+ */
417
+
418
+ VeLivePlayerResolutionSD = 3,
419
+ /** {zh}
420
+ * @brief LD 低清。
421
+ *
422
+ */
423
+
424
+ VeLivePlayerResolutionLD = 4,
425
+ /** {zh}
426
+ * @brief AO 纯音频流。
427
+ * @hidden (Android)
428
+ *
429
+ */
430
+
431
+ VeLivePlayerResolutionAO = 5,
432
+ /** {zh}
433
+ * @platform ios
434
+ * @brief FHD 全高清
435
+ *
436
+ */
437
+
438
+ VeLivePlayerResolutionFHD = 6,
439
+ /** {zh}
440
+ * @platform ios
441
+ * @brief 自动档位。
442
+ *
443
+ */
444
+
445
+ VeLivePlayerResolutionAUTO = 8
446
+ }
447
+ /** {zh}
448
+ * @detail keytype
449
+ * @brief 播放器初始化相关配置。
450
+ */
451
+ export declare class VeLivePlayerConfiguration {
452
+ protected _instance: any;
453
+ /** {zh}
454
+ * @brief 是否开启字符串 SEI 消息的解析,默认值为 false。<br/>
455
+ * - true:开启;
456
+ * - false:关闭。
457
+ *
458
+ */
459
+
460
+ get enableSei(): boolean;
461
+ set enableSei(value: boolean);
462
+ /** {zh}
463
+ * @brief 是否开启二进制 SEI 消息的解析,默认值为 false。<br/>
464
+ * - true:开启;
465
+ * - false:关闭。
466
+ * @notes 二进制 SEI 开启后,字符串 SEI 的回调将不再发送。
467
+ *
468
+ */
469
+
470
+ get enableBinarySei(): boolean;
471
+ set enableBinarySei(value: boolean);
472
+ /** {zh}
473
+ * @brief 是否开启硬件解码功能,默认值为 true。开启硬件解码后,如果出现硬件解码启动失败或硬件解码失败的情况,播放器内部会自动切换为软解。<br>
474
+ * - true:开启;
475
+ * - false:关闭。
476
+ *
477
+ */
478
+
479
+ get enableHardwareDecode(): boolean;
480
+ set enableHardwareDecode(value: boolean);
481
+ /** {zh}
482
+ * @brief 网络超时时间,单位为 ms,默认值为 5000。播放器发起网络请求,如果超过了该时间仍未收到服务器响应,则认为网络请求失败。
483
+ *
484
+ */
485
+
486
+ get networkTimeoutMs(): number;
487
+ set networkTimeoutMs(value: number);
488
+ /** {zh}
489
+ * @brief 重试时间间隔,单位为 ms,默认值为 5000,仅在无备流时生效。<br>
490
+ * - 在无备流的场景下,若遇到网络异常等问题导致播放中断,播放器会立即进行重试,前三次重试为立即执行,第四次及之后的重试将按照设置的重试时间间隔执行;
491
+ * - 在有备流的场景下,重试时间间隔将不生效,所有重试均会立即执行。
492
+ *
493
+ */
494
+
495
+ get retryIntervalTimeMs(): number;
496
+ set retryIntervalTimeMs(value: number);
497
+ /** {zh}
498
+ * @brief 在网络连接错误的情况下,播放器最大重试次数,默认值为 5。如果取值为 0,表示关闭播放器内部重试。<br>
499
+ * - 在无备流的场景下,每次重试,会消耗一次重试次数;
500
+ * - 在有备流的场景下,每次主备流切换,会消耗一次重试次数。
501
+ *
502
+ */
503
+
504
+ get retryMaxCount(): number;
505
+ set retryMaxCount(value: number);
506
+ /** {zh}
507
+ * @brief 是否开启本地 DNS 预解析,默认值为 false。开启本地 DNS 预解析可以缩短启播时间。如果本地 DNS 预解析出现异常,可能会影响播放器的正常使用。<br>
508
+ * - true:开启;
509
+ * - false:关闭。
510
+ *
511
+ */
512
+
513
+ get enableLiveDNS(): boolean;
514
+ set enableLiveDNS(value: boolean);
515
+ /** {zh}
516
+ * @brief 是否开启播放信息周期性回调。默认值为 false。周期性回调参数详细说明请参见 [VeLivePlayerStatistics](188115#VeLivePlayerStatistics) 。当 `enableStatisticsCallback` 为 `true`,且 [statisticsCallbackInterval](188115#VeLivePlayerConfiguration-statisticscallbackinterval) 大于 0 时,播放器会在指定的时间间隔内,周期性地回调播放器状态信息。<br>
517
+ * - true:开启;
518
+ * - false:关闭。
519
+ *
520
+ */
521
+
522
+ get enableStatisticsCallback(): boolean;
523
+ set enableStatisticsCallback(value: boolean);
524
+ /** {zh}
525
+ * @brief 播放信息周期性回调的时间间隔,单位为 s,默认值为 5。当 [enableStatisticsCallback](188115#VeLivePlayerConfiguration-enablestatisticscallback) 为 `true`,且 `statisticsCallbackInterval` 大于 0 时,播放器会在指定的时间间隔内,周期性地回调播放器状态信息。
526
+ *
527
+ */
528
+
529
+ get statisticsCallbackInterval(): number;
530
+ set statisticsCallbackInterval(value: number);
531
+ protected __init(...args: any[]): void;
532
+ protected __new_instance(...args: any[]): any;
533
+ }
534
+ /** {zh}
535
+ * @detail keytype
536
+ * @brief 直播播放格式。
537
+ *
538
+ */
539
+ export declare enum VeLivePlayerFormat {
540
+ /** {zh}
541
+ * @brief FLV 格式。
542
+ *
543
+ */
544
+
545
+ VeLivePlayerFormatFLV = 0,
546
+ /** {zh}
547
+ * @brief HLS 格式。
548
+ *
549
+ */
550
+
551
+ VeLivePlayerFormatHLS = 1,
552
+ /** {zh}
553
+ * @brief RTM 格式。
554
+ *
555
+ */
556
+
557
+ VeLivePlayerFormatRTM = 2,
558
+ /** {zh}
559
+ * @platform android
560
+ * @brief CMAF 格式
561
+ *
562
+ */
563
+
564
+ VeLivePlayerFormatCMAF = 3
565
+ }
566
+ /** {zh}
567
+ * @detail keytype
568
+ * @brief 直播播放传输协议。
569
+ *
570
+ */
571
+ export declare enum VeLivePlayerProtocol {
572
+ /** {zh}
573
+ * @brief TCP 协议。
574
+ *
575
+ */
576
+
577
+ VeLivePlayerProtocolTCP = 0,
578
+ /** {zh}
579
+ * @brief QUIC 协议。
580
+ *
581
+ */
582
+
583
+ VeLivePlayerProtocolQUIC = 1,
584
+ /** {zh}
585
+ * @brief TLS 协议。
586
+ *
587
+ */
588
+
589
+ VeLivePlayerProtocolTLS = 2,
590
+ /** {zh}
591
+ * @brief HTTP2.0 协议。
592
+ *
593
+ */
594
+
595
+ VeLivePlayerProtocolHTTP2 = 3
596
+ }
597
+ /** {zh}
598
+ * @detail keytype
599
+ * @brief 视频镜像。
600
+ *
601
+ */
602
+ export declare enum VeLivePlayerMirror {
603
+ /** {zh}
604
+ * @brief 关闭镜像。
605
+ *
606
+ */
607
+
608
+ VeLivePlayerMirrorNone = 0,
609
+ /** {zh}
610
+ * @brief 水平镜像。
611
+ *
612
+ */
613
+
614
+ VeLivePlayerMirrorHorizontal = 1,
615
+ /** {zh}
616
+ * @brief 垂直镜像。
617
+ *
618
+ */
619
+
620
+ VeLivePlayerMirrorVertical = 2
621
+ }
622
+ /** {zh}
623
+ * @detail keytype
624
+ * @brief 流地址信息。
625
+ *
626
+ */
627
+ export declare class VeLivePlayerStream {
628
+ constructor();
629
+ constructor();
630
+ protected _instance: any;
631
+ /** {zh}
632
+ * @brief 播放地址。
633
+ *
634
+ */
635
+
636
+ get url(): string;
637
+ set url(value: string);
638
+ /** {zh}
639
+ * @brief 清晰度档位。详情请参见 [VeLivePlayerResolution](#VeLivePlayerResolution)。
640
+ *
641
+ */
642
+
643
+ get resolution(): VeLivePlayerResolution;
644
+ set resolution(value: VeLivePlayerResolution);
645
+ /** {zh}
646
+ * @brief 播放码率,单位为 kbps。
647
+ *
648
+ */
649
+
650
+ get bitrate(): number;
651
+ set bitrate(value: number);
652
+ /** {zh}
653
+ * @brief 播放格式。详情请参见 [VeLivePlayerFormat](#VeLivePlayerFormat)。
654
+ *
655
+ */
656
+
657
+ get format(): VeLivePlayerFormat;
658
+ set format(value: VeLivePlayerFormat);
659
+ /** {zh}
660
+ * @platform android
661
+ * @brief 播放流类型为主路或备路。详情请参见 [VeLivePlayerStreamType](#VeLivePlayerStreamType)。
662
+ *
663
+ */
664
+
665
+ get streamType(): $p_a.VeLivePlayerStreamType;
666
+ set streamType(value: $p_a.VeLivePlayerStreamType);
667
+ /** {zh}
668
+ * @platform ios
669
+ * @brief 传输协议,详情请参见 [VeLivePlayerProtocol](#VeLivePlayerProtocol)。
670
+ */
671
+
672
+ get protocol(): $p_i.VeLivePlayerProtocol;
673
+ set protocol(value: $p_i.VeLivePlayerProtocol);
674
+ /** {zh}
675
+ * @platform ios
676
+ * @brief 播放流类型为主路或备路,详情请参见 [VeLivePlayerStreamType](188121#VeLivePlayerStreamType)。
677
+ */
678
+
679
+ get type(): $p_i.VeLivePlayerStreamType;
680
+ set type(value: $p_i.VeLivePlayerStreamType);
681
+ protected __init(...args: any[]): void;
682
+ protected __new_instance(...args: any[]): any;
683
+ }
684
+ /** {zh}
685
+ * @detail keytype
686
+ * @brief 视频帧数据。
687
+ */
688
+ export declare class VeLivePlayerVideoFrame {
689
+ protected _instance: any;
690
+ /** {zh}
691
+ * @brief 视频帧数据封装格式。详情请参见 [VeLivePlayerVideoBufferType](#VeLivePlayerVideoBufferType)。
692
+ *
693
+ */
694
+
695
+ get bufferType(): VeLivePlayerVideoBufferType;
696
+ set bufferType(value: VeLivePlayerVideoBufferType);
697
+ /** {zh}
698
+ * @brief 视频帧像素格式。详情请参见 [VeLivePlayerPixelFormat](#VeLivePlayerPixelFormat)。
699
+ *
700
+ */
701
+
702
+ get pixelFormat(): VeLivePlayerPixelFormat;
703
+ set pixelFormat(value: VeLivePlayerPixelFormat);
704
+ /** {zh}
705
+ * @brief 视频宽度,单位为 px。
706
+ *
707
+ */
708
+
709
+ get width(): number;
710
+ set width(value: number);
711
+ /** {zh}
712
+ * @brief 视频高度,单位为 px。
713
+ *
714
+ */
715
+
716
+ get height(): number;
717
+ set height(value: number);
718
+ /** {zh}
719
+ * @brief 视频帧的渲染时间戳。单位为 ms。
720
+ *
721
+ */
722
+
723
+ get pts(): number;
724
+ set pts(value: number);
725
+ /** {zh}
726
+ * @platform android
727
+ * @brief OpenGL 渲染的视频纹理数据。如果将 [VeLivePlayerPixelFormat](#VeLivePlayerPixelFormat) 设置为`VeLivePlayerPixelFormatTexture`,并将 [VeLivePlayerVideoBufferType](#VeLivePlayerVideoBufferType) 设置为`VeLivePlayerVideoBufferTypeTexture`,SDK 会返回此视频数据类型。有关详细信息,请参阅[VeLivePlayerVideoTexture](#VeLivePlayerVideoTexture)。
728
+ *
729
+ */
730
+
731
+ get texture(): $p_a.VeLivePlayerVideoTexture;
732
+ set texture(value: $p_a.VeLivePlayerVideoTexture);
733
+ /** {zh}
734
+ * @platform android
735
+ * @brief ByteBuffer 格式的视频数据。如果将 [VeLivePlayerPixelFormat](#VeLivePlayerPixelFormat)设置为`VeLivePlayerPixelFormatRGBA32`,并将 [VeLivePlayerVideoBufferType](#VeLivePlayerVideoBufferType) 设置为`VeLivePlayerVideoBufferTypeByteBuffer`,则 SDK 会返回此视频数据类型。
736
+ *
737
+ */
738
+
739
+ get buffer(): $p_a.ByteBuffer;
740
+ set buffer(value: $p_a.ByteBuffer);
741
+ /** {zh}
742
+ * @brief ByteArray 格式的视频数据。如果将 [VeLivePlayerPixelFormat](#VeLivePlayerPixelFormat) 设置为“VeLivePlayerPixelFormatRGBA32”,并将 [VeLivePlayerVideoBufferType](#VeLivePlayerVideoBufferType) 设置为“VeLivePlayerVideoBufferTypeByteArray”,则 SDK 会返回这种视频数据类型。
743
+ *
744
+ */
745
+
746
+ get data(): ArrayBuffer;
747
+ set data(value: ArrayBuffer);
748
+ /** {zh}
749
+ * @platform ios
750
+ * @brief `pixelFormat` 为 `VeLivePlayerVideoBufferTypePixelBuffer` 时的视频数据。
751
+ */
752
+
753
+ get pixelBuffer(): $p_i.CVPixelBufferRef;
754
+ set pixelBuffer(value: $p_i.CVPixelBufferRef);
755
+ /** {zh}
756
+ * @platform ios
757
+ * @brief `pixelFormat` 为 `VeLivePlayerVideoBufferTypeSampleBuffer` 时的视频数据。
758
+ */
759
+
760
+ get sampleBuffer(): $p_i.CMSampleBufferRef;
761
+ set sampleBuffer(value: $p_i.CMSampleBufferRef);
762
+ protected __init(...args: any[]): void;
763
+ protected __new_instance(...args: any[]): any;
764
+ }
765
+ /** {zh}
766
+ * @detail keytype
767
+ * @brief 直播播放流类型。
768
+ *
769
+ */
770
+ export declare enum VeLivePlayerStreamType {
771
+ /** {zh}
772
+ * @brief 主路流。
773
+ *
774
+ */
775
+
776
+ VeLivePlayerStreamTypeMain = 0,
777
+ /** {zh}
778
+ * @brief 备路流。
779
+ *
780
+ */
781
+
782
+ VeLivePlayerStreamTypeBackup = 1
783
+ }
784
+ /** {zh}
785
+ * @detail keytype
786
+ * @brief 直播播放器日志打印级别。
787
+ *
788
+ */
789
+ export declare enum VeLivePlayerLogLevel {
790
+ /** {zh}
791
+ * @brief 输出 VERBOSE、DEBUG、INFO、WARNING 和 ERROR 级别的日志。
792
+ *
793
+ */
794
+
795
+ VeLivePlayerLogLevelVerbose = 0,
796
+ /** {zh}
797
+ * @brief 输出 DEBUG、INFO、WARNING 和 ERROR 级别的日志。
798
+ *
799
+ */
800
+
801
+ VeLivePlayerLogLevelDebug = 1,
802
+ /** {zh}
803
+ * @brief 输出 INFO、WARNING 和 ERROR 级别的日志。
804
+ *
805
+ */
806
+
807
+ VeLivePlayerLogLevelInfo = 2,
808
+ /** {zh}
809
+ * @brief 输出 WARNING 和 ERROR 级别的日志。
810
+ *
811
+ */
812
+
813
+ VeLivePlayerLogLevelWarn = 3,
814
+ /** {zh}
815
+ * @brief 输出 ERROR 级别的日志。
816
+ *
817
+ */
818
+
819
+ VeLivePlayerLogLevelError = 4,
820
+ /** {zh}
821
+ * @brief 关闭日志打印。
822
+ *
823
+ */
824
+
825
+ VeLivePlayerLogLevelNone = 5
826
+ }
827
+ /** {zh}
828
+ * @detail keytype
829
+ * @brief 音频帧数据。
830
+ */
831
+ export declare class VeLivePlayerAudioFrame {
832
+ protected _instance: any;
833
+ /** {zh}
834
+ * @brief 音频帧数据封装格式,详情请参见 [VeLivePlayerAudioBufferType](#VeLivePlayerAudioBufferType)。
835
+ *
836
+ */
837
+
838
+ get bufferType(): VeLivePlayerAudioBufferType;
839
+ set bufferType(value: VeLivePlayerAudioBufferType);
840
+ /** {zh}
841
+ * @brief 音频采样率,单位为 Hz。
842
+ *
843
+ */
844
+
845
+ get sampleRate(): number;
846
+ set sampleRate(value: number);
847
+ /** {zh}
848
+ * @brief 声道数。<br>
849
+ * - 1:单声道;
850
+ * - 2:双声道。
851
+ *
852
+ */
853
+
854
+ get channels(): number;
855
+ set channels(value: number);
856
+ /** {zh}
857
+ * @brief 音频位深度。
858
+ *
859
+ */
860
+
861
+ get bitDepth(): number;
862
+ set bitDepth(value: number);
863
+ /** {zh}
864
+ * @brief 音频渲染时间戳。单位为 ms。
865
+ *
866
+ */
867
+
868
+ get pts(): number;
869
+ set pts(value: number);
870
+ /** {zh}
871
+ * @platform android
872
+ * @brief PCM 音频数据。byte[]类型
873
+ *
874
+ */
875
+
876
+ get bufferArray(): ArrayBuffer;
877
+ set bufferArray(value: ArrayBuffer);
878
+ /** {zh}
879
+ * @platform android
880
+ * @brief PCM 音频数据。ByteBuffer[]类型
881
+ *
882
+ */
883
+
884
+ get buffer(): $p_a.ByteBuffer[];
885
+ set buffer(value: $p_a.ByteBuffer[]);
886
+ /** {zh}
887
+ * @brief 音频采样点个数。
888
+ *
889
+ */
890
+
891
+ get samples(): number;
892
+ set samples(value: number);
893
+ /** {zh}
894
+ * @platform ios
895
+ * @brief PCM 音频数据。
896
+ */
897
+
898
+ get data(): $p_i.NSData;
899
+ set data(value: $p_i.NSData);
900
+ protected __init(...args: any[]): void;
901
+ protected __new_instance(...args: any[]): any;
902
+ }
903
+ export declare class t_VeLivePlayerResolution {
904
+ static code_to_android(value: VeLivePlayerResolution): $p_a.VeLivePlayerResolution;
905
+ static android_to_code(value: $p_a.VeLivePlayerResolution): VeLivePlayerResolution;
906
+ static code_to_ios(value: VeLivePlayerResolution): $p_i.VeLivePlayerResolution;
907
+ static ios_to_code(value: $p_i.VeLivePlayerResolution): VeLivePlayerResolution;
908
+ }
909
+ export declare class t_VeLivePlayerFillMode {
910
+ static code_to_android(value: VeLivePlayerFillMode): $p_a.VeLivePlayerFillMode;
911
+ static android_to_code(value: $p_a.VeLivePlayerFillMode): VeLivePlayerFillMode;
912
+ static code_to_ios(value: VeLivePlayerFillMode): $p_i.VeLivePlayerFillMode;
913
+ static ios_to_code(value: $p_i.VeLivePlayerFillMode): VeLivePlayerFillMode;
914
+ }
915
+ export declare class t_VeLivePlayerPixelFormat {
916
+ static code_to_android(value: VeLivePlayerPixelFormat): $p_a.VeLivePlayerPixelFormat;
917
+ static android_to_code(value: $p_a.VeLivePlayerPixelFormat): VeLivePlayerPixelFormat;
918
+ static code_to_ios(value: VeLivePlayerPixelFormat): $p_i.VeLivePlayerPixelFormat;
919
+ static ios_to_code(value: $p_i.VeLivePlayerPixelFormat): VeLivePlayerPixelFormat;
920
+ }
921
+ export declare class t_VeLivePlayerVideoBufferType {
922
+ static code_to_android(value: VeLivePlayerVideoBufferType): $p_a.VeLivePlayerVideoBufferType;
923
+ static android_to_code(value: $p_a.VeLivePlayerVideoBufferType): VeLivePlayerVideoBufferType;
924
+ static code_to_ios(value: VeLivePlayerVideoBufferType): $p_i.VeLivePlayerVideoBufferType;
925
+ static ios_to_code(value: $p_i.VeLivePlayerVideoBufferType): VeLivePlayerVideoBufferType;
926
+ }
927
+ export declare class t_VeLivePlayerAudioBufferType {
928
+ static code_to_android(value: VeLivePlayerAudioBufferType): $p_a.VeLivePlayerAudioBufferType;
929
+ static android_to_code(value: $p_a.VeLivePlayerAudioBufferType): VeLivePlayerAudioBufferType;
930
+ static code_to_ios(value: VeLivePlayerAudioBufferType): $p_i.VeLivePlayerAudioBufferType;
931
+ static ios_to_code(value: $p_i.VeLivePlayerAudioBufferType): VeLivePlayerAudioBufferType;
932
+ }
933
+ export declare class t_VeLivePlayerRotation {
934
+ static code_to_android(value: VeLivePlayerRotation): $p_a.VeLivePlayerRotation;
935
+ static android_to_code(value: $p_a.VeLivePlayerRotation): VeLivePlayerRotation;
936
+ static code_to_ios(value: VeLivePlayerRotation): $p_i.VeLivePlayerRotation;
937
+ static ios_to_code(value: $p_i.VeLivePlayerRotation): VeLivePlayerRotation;
938
+ }
939
+ export declare class t_VeLivePlayerMirror {
940
+ static code_to_android(value: VeLivePlayerMirror): $p_a.VeLivePlayerMirror;
941
+ static android_to_code(value: $p_a.VeLivePlayerMirror): VeLivePlayerMirror;
942
+ static code_to_ios(value: VeLivePlayerMirror): $p_i.VeLivePlayerMirror;
943
+ static ios_to_code(value: $p_i.VeLivePlayerMirror): VeLivePlayerMirror;
944
+ }
945
+ export declare class t_VeLivePlayerLogLevel {
946
+ static code_to_android(value: VeLivePlayerLogLevel): $p_a.VeLivePlayerLogLevel;
947
+ static android_to_code(value: $p_a.VeLivePlayerLogLevel): VeLivePlayerLogLevel;
948
+ static code_to_ios(value: VeLivePlayerLogLevel): $p_i.VeLivePlayerLogLevel;
949
+ static ios_to_code(value: $p_i.VeLivePlayerLogLevel): VeLivePlayerLogLevel;
950
+ }
951
+ export declare class t_VeLivePlayerResolutionSwitchReason {
952
+ static code_to_android(value: VeLivePlayerResolutionSwitchReason): $p_a.VeLivePlayerResolutionSwitchReason;
953
+ static android_to_code(value: $p_a.VeLivePlayerResolutionSwitchReason): VeLivePlayerResolutionSwitchReason;
954
+ static code_to_ios(value: VeLivePlayerResolutionSwitchReason): $p_i.VeLivePlayerResolutionSwitchReason;
955
+ static ios_to_code(value: $p_i.VeLivePlayerResolutionSwitchReason): VeLivePlayerResolutionSwitchReason;
956
+ }
957
+ export declare class t_VeLivePlayerStreamType {
958
+ static code_to_android(value: VeLivePlayerStreamType): $p_a.VeLivePlayerStreamType;
959
+ static android_to_code(value: $p_a.VeLivePlayerStreamType): VeLivePlayerStreamType;
960
+ static code_to_ios(value: VeLivePlayerStreamType): $p_i.VeLivePlayerStreamType;
961
+ static ios_to_code(value: $p_i.VeLivePlayerStreamType): VeLivePlayerStreamType;
962
+ }
963
+ export declare class t_VeLivePlayerStatus {
964
+ static code_to_android(value: VeLivePlayerStatus): $p_a.VeLivePlayerStatus;
965
+ static android_to_code(value: $p_a.VeLivePlayerStatus): VeLivePlayerStatus;
966
+ static code_to_ios(value: VeLivePlayerStatus): $p_i.VeLivePlayerStatus;
967
+ static ios_to_code(value: $p_i.VeLivePlayerStatus): VeLivePlayerStatus;
968
+ }
969
+ export declare class t_VeLivePlayerFormat {
970
+ static code_to_android(value: VeLivePlayerFormat): $p_a.VeLivePlayerFormat;
971
+ static android_to_code(value: $p_a.VeLivePlayerFormat): VeLivePlayerFormat;
972
+ static code_to_ios(value: VeLivePlayerFormat): $p_i.VeLivePlayerFormat;
973
+ static ios_to_code(value: $p_i.VeLivePlayerFormat): VeLivePlayerFormat;
974
+ }
975
+ export declare class t_VeLivePlayerProtocol {
976
+ static code_to_android(value: VeLivePlayerProtocol): $p_a.VeLivePlayerProtocol;
977
+ static android_to_code(value: $p_a.VeLivePlayerProtocol): VeLivePlayerProtocol;
978
+ static code_to_ios(value: VeLivePlayerProtocol): $p_i.VeLivePlayerProtocol;
979
+ static ios_to_code(value: $p_i.VeLivePlayerProtocol): VeLivePlayerProtocol;
980
+ }