@volcengine/react-native-live-pull 1.1.3-rc.1 → 1.2.0-rc.1
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.
- package/android/build.gradle +2 -2
- package/android/src/main/java/com/volcengine/velive/rn/pull/ClassHelper.java +15 -0
- package/android/src/main/java/com/volcengine/velive/rn/pull/NativeVariableManager.java +1 -1
- package/android/src/main/java/com/volcengine/velive/rn/pull/VolcLiveModule.java +2 -0
- package/android/src/main/java/com/volcengine/velive/rn/pull/autogen/MethodSignature.java +66 -77
- package/android/src/main/java/com/volcengine/velive/rn/pull/pictureInpicture/FloatingWindowService.java +79 -15
- package/ios/VeLivePlayerMultiObserver.h +3 -2
- package/ios/VeLivePlayerMultiObserver.m +2 -2
- package/ios/include/react-native-velive-pull.modulemap +4 -0
- package/ios/pictureInpicture/PictureInPictureManager.h +21 -1
- package/ios/pictureInpicture/PictureInPictureManager.m +260 -141
- package/lib/commonjs/index.js +4455 -1648
- package/lib/module/index.js +4455 -1648
- package/lib/typescript/codegen/android/api.d.ts +18 -13
- package/lib/typescript/codegen/android/callback.d.ts +38 -1
- package/lib/typescript/codegen/android/errorcode.d.ts +58 -3
- package/lib/typescript/codegen/android/keytype.d.ts +168 -26
- package/lib/typescript/codegen/ios/api.d.ts +66 -54
- package/lib/typescript/codegen/ios/callback.d.ts +32 -5
- package/lib/typescript/codegen/ios/errorcode.d.ts +56 -2
- package/lib/typescript/codegen/ios/keytype.d.ts +261 -23
- package/lib/typescript/codegen/pack/api.d.ts +33 -27
- package/lib/typescript/codegen/pack/callback.d.ts +33 -9
- package/lib/typescript/codegen/pack/errorcode.d.ts +30 -5
- package/lib/typescript/codegen/pack/keytype.d.ts +209 -107
- package/lib/typescript/core/api.d.ts +13 -0
- package/lib/typescript/core/keytype.d.ts +18 -2
- package/package.json +1 -1
- package/react-native-velive-pull.podspec +12 -3
- package/ios/pictureInpicture/VeLivePictureInPictureController.h +0 -207
- package/ios/pictureInpicture/VeLivePictureInPictureController.m +0 -3393
|
@@ -10,21 +10,25 @@ export declare enum VeLivePlayerRotation {
|
|
|
10
10
|
* @brief 关闭旋转。
|
|
11
11
|
*
|
|
12
12
|
*/
|
|
13
|
+
|
|
13
14
|
VeLivePlayerRotation0 = 0,
|
|
14
15
|
/** {zh}
|
|
15
16
|
* @brief 顺时针旋转 90 度。
|
|
16
17
|
*
|
|
17
18
|
*/
|
|
19
|
+
|
|
18
20
|
VeLivePlayerRotation90 = 1,
|
|
19
21
|
/** {zh}
|
|
20
22
|
* @brief 顺时针旋转 180 度。
|
|
21
23
|
*
|
|
22
24
|
*/
|
|
25
|
+
|
|
23
26
|
VeLivePlayerRotation180 = 2,
|
|
24
27
|
/** {zh}
|
|
25
28
|
* @brief 顺时针旋转 270 度。
|
|
26
29
|
*
|
|
27
30
|
*/
|
|
31
|
+
|
|
28
32
|
VeLivePlayerRotation270 = 3
|
|
29
33
|
}
|
|
30
34
|
/** {zh}
|
|
@@ -33,20 +37,6 @@ export declare enum VeLivePlayerRotation {
|
|
|
33
37
|
*/
|
|
34
38
|
export declare class VeLivePlayerStreamData {
|
|
35
39
|
protected _instance: any;
|
|
36
|
-
/** {zh}
|
|
37
|
-
* @brief 主路流地址列表,详情请参见 [VeLivePlayerStream](#VeLivePlayerStreamData-VeLivePlayerStream)。
|
|
38
|
-
*
|
|
39
|
-
*/
|
|
40
|
-
|
|
41
|
-
get mainStreamList(): VeLivePlayerStream[];
|
|
42
|
-
set mainStreamList(value: VeLivePlayerStream[]);
|
|
43
|
-
/** {zh}
|
|
44
|
-
* @brief 备路流地址列表。详情请参见 [VeLivePlayerStream](#VeLivePlayerStreamData-VeLivePlayerStream)。
|
|
45
|
-
*
|
|
46
|
-
*/
|
|
47
|
-
|
|
48
|
-
get backupStreamList(): VeLivePlayerStream[];
|
|
49
|
-
set backupStreamList(value: VeLivePlayerStream[]);
|
|
50
40
|
/** {zh}
|
|
51
41
|
* @brief 是否打开 ABR 平滑切档功能,默认为 false。<br>
|
|
52
42
|
* - true:开启;
|
|
@@ -66,21 +56,21 @@ export declare class VeLivePlayerStreamData {
|
|
|
66
56
|
get enableMainBackupSwitch(): boolean;
|
|
67
57
|
set enableMainBackupSwitch(value: boolean);
|
|
68
58
|
/** {zh}
|
|
69
|
-
* @brief 播放器的默认清晰度档位,默认使用原始流清晰度。详情请参见 VeLivePlayerResolution
|
|
59
|
+
* @brief 播放器的默认清晰度档位,默认使用原始流清晰度。详情请参见 [VeLivePlayerResolution](#VeLivePlayerResolution)。
|
|
70
60
|
*
|
|
71
61
|
*/
|
|
72
62
|
|
|
73
63
|
get defaultResolution(): VeLivePlayerResolution;
|
|
74
64
|
set defaultResolution(value: VeLivePlayerResolution);
|
|
75
65
|
/** {zh}
|
|
76
|
-
* @brief 播放器的默认播放格式,默认值为 FLV。详情请参见 VeLivePlayerFormat
|
|
66
|
+
* @brief 播放器的默认播放格式,默认值为 FLV。详情请参见 [VeLivePlayerFormat](#VeLivePlayerFormat)。
|
|
77
67
|
*
|
|
78
68
|
*/
|
|
79
69
|
|
|
80
70
|
get defaultFormat(): VeLivePlayerFormat;
|
|
81
71
|
set defaultFormat(value: VeLivePlayerFormat);
|
|
82
72
|
/** {zh}
|
|
83
|
-
* @brief 播放器的默认播放传输层协议,默认值为 TCP。详情请参见 VeLivePlayerProtocol
|
|
73
|
+
* @brief 播放器的默认播放传输层协议,默认值为 TCP。详情请参见 [VeLivePlayerProtocol](#VeLivePlayerProtocol)。
|
|
84
74
|
*
|
|
85
75
|
*/
|
|
86
76
|
|
|
@@ -99,26 +89,31 @@ export declare enum VeLivePlayerStatus {
|
|
|
99
89
|
* @brief 播放器准备完成,等待渲染。
|
|
100
90
|
*
|
|
101
91
|
*/
|
|
92
|
+
|
|
102
93
|
VeLivePlayerStatusPrepared = 0,
|
|
103
94
|
/** {zh}
|
|
104
95
|
* @brief 正在播放,即首帧渲染完成且播放器未发生错误。
|
|
105
96
|
*
|
|
106
97
|
*/
|
|
98
|
+
|
|
107
99
|
VeLivePlayerStatusPlaying = 1,
|
|
108
100
|
/** {zh}
|
|
109
101
|
* @brief 暂停播放状态。
|
|
110
102
|
*
|
|
111
103
|
*/
|
|
104
|
+
|
|
112
105
|
VeLivePlayerStatusPaused = 2,
|
|
113
106
|
/** {zh}
|
|
114
107
|
* @brief 停止播放状态。
|
|
115
108
|
*
|
|
116
109
|
*/
|
|
110
|
+
|
|
117
111
|
VeLivePlayerStatusStopped = 3,
|
|
118
112
|
/** {zh}
|
|
119
113
|
* @brief 播放器发生错误。
|
|
120
114
|
*
|
|
121
115
|
*/
|
|
116
|
+
|
|
122
117
|
VeLivePlayerStatusError = 4
|
|
123
118
|
}
|
|
124
119
|
/** {zh}
|
|
@@ -131,11 +126,13 @@ export declare enum VeLivePlayerResolutionSwitchReason {
|
|
|
131
126
|
* @brief ABR 自动切档。
|
|
132
127
|
*
|
|
133
128
|
*/
|
|
129
|
+
|
|
134
130
|
VeLivePlayerResolutionSwitchByAuto = 0,
|
|
135
131
|
/** {zh}
|
|
136
|
-
* @brief
|
|
132
|
+
* @brief 调用 [switchResolution](188111#VeLivePlayer-switchresolution) 手动切换档位导致的分辨率变化。
|
|
137
133
|
*
|
|
138
134
|
*/
|
|
135
|
+
|
|
139
136
|
VeLivePlayerResolutionSwitchByManual = 1
|
|
140
137
|
}
|
|
141
138
|
/** {zh}
|
|
@@ -148,16 +145,19 @@ export declare enum VeLivePlayerFillMode {
|
|
|
148
145
|
* @brief 显示完整的视频帧。视频帧等比缩放,直至视频帧恰好在画布上全部显示。如果视频帧长宽比例与画布不同,视窗上未被视频帧填满区域将填充为黑色。
|
|
149
146
|
*
|
|
150
147
|
*/
|
|
148
|
+
|
|
151
149
|
VeLivePlayerFillModeAspectFit = 0,
|
|
152
150
|
/** {zh}
|
|
153
151
|
* @brief 视频帧自适应画布。视频帧非等比缩放,直至填满画布。在此过程中,视频帧的长宽比例可能会发生变化。
|
|
154
152
|
*
|
|
155
153
|
*/
|
|
154
|
+
|
|
156
155
|
VeLivePlayerFillModeFullFill = 1,
|
|
157
156
|
/** {zh}
|
|
158
157
|
* @brief 视频填满画布。视频帧等比缩放,直至填满画布,超出屏幕的部分将被裁剪,画面可能不完整。
|
|
159
158
|
*
|
|
160
159
|
*/
|
|
160
|
+
|
|
161
161
|
VeLivePlayerFillModeAspectFill = 2
|
|
162
162
|
}
|
|
163
163
|
/** {zh}
|
|
@@ -196,6 +196,7 @@ export declare class VeLivePlayerStatistics {
|
|
|
196
196
|
* @brief 带宽预测 ,单位为 kbps
|
|
197
197
|
*
|
|
198
198
|
*/
|
|
199
|
+
|
|
199
200
|
get bandwidthEstimation(): number;
|
|
200
201
|
/** {zh}
|
|
201
202
|
* @brief 当前播放延时,单位为 ms。仅在使用了火山引擎视频直播推流 SDK 时,支持统计播放延时。
|
|
@@ -250,39 +251,49 @@ export declare enum VeLivePlayerVideoBufferType {
|
|
|
250
251
|
* @brief 未知格式。
|
|
251
252
|
*
|
|
252
253
|
*/
|
|
254
|
+
|
|
253
255
|
VeLivePlayerVideoBufferTypeUnknown = 0,
|
|
254
256
|
/** {zh}
|
|
255
257
|
* @platform android
|
|
256
258
|
* @brief ByteBuffer 格式。
|
|
257
259
|
*
|
|
258
260
|
*/
|
|
261
|
+
|
|
259
262
|
VeLivePlayerVideoBufferTypeByteBuffer = 1,
|
|
260
263
|
/** {zh}
|
|
261
264
|
* @platform android
|
|
262
265
|
* @brief ByteArray 格式。
|
|
263
266
|
*
|
|
264
267
|
*/
|
|
268
|
+
|
|
265
269
|
VeLivePlayerVideoBufferTypeByteArray = 2,
|
|
266
270
|
/** {zh}
|
|
267
271
|
* @platform android
|
|
268
272
|
* @brief 纹理格式。
|
|
269
273
|
*
|
|
270
274
|
*/
|
|
275
|
+
|
|
271
276
|
VeLivePlayerVideoBufferTypeTexture = 3,
|
|
272
277
|
/** {zh}
|
|
273
278
|
* @platform ios
|
|
274
279
|
* @brief CVPixelBufferRef 格式。
|
|
280
|
+
*
|
|
275
281
|
*/
|
|
282
|
+
|
|
276
283
|
VeLivePlayerVideoBufferTypePixelBuffer = 4,
|
|
277
284
|
/** {zh}
|
|
278
285
|
* @platform ios
|
|
279
286
|
* @brief CVSampleBufferRef 格式。
|
|
287
|
+
*
|
|
280
288
|
*/
|
|
289
|
+
|
|
281
290
|
VeLivePlayerVideoBufferTypeSampleBuffer = 5,
|
|
282
291
|
/** {zh}
|
|
283
292
|
* @platform ios
|
|
284
293
|
* @brief NSData 格式。
|
|
294
|
+
*
|
|
285
295
|
*/
|
|
296
|
+
|
|
286
297
|
VeLivePlayerVideoBufferTypeNSData = 6
|
|
287
298
|
}
|
|
288
299
|
/** {zh}
|
|
@@ -295,33 +306,42 @@ export declare enum VeLivePlayerPixelFormat {
|
|
|
295
306
|
* @brief 未知格式。
|
|
296
307
|
*
|
|
297
308
|
*/
|
|
309
|
+
|
|
298
310
|
VeLivePlayerPixelFormatUnknown = 0,
|
|
299
311
|
/** {zh}
|
|
300
312
|
* @platform android
|
|
301
313
|
* @brief RGBA8888 格式。
|
|
302
314
|
*
|
|
303
315
|
*/
|
|
316
|
+
|
|
304
317
|
VeLivePlayerPixelFormatRGBA32 = 1,
|
|
305
318
|
/** {zh}
|
|
306
319
|
* @platform android
|
|
307
320
|
* @brief 纹理格式。
|
|
308
321
|
*
|
|
309
322
|
*/
|
|
323
|
+
|
|
310
324
|
VeLivePlayerPixelFormatTexture = 2,
|
|
311
325
|
/** {zh}
|
|
312
326
|
* @platform ios
|
|
313
327
|
* @brief NV12 格式。
|
|
328
|
+
*
|
|
314
329
|
*/
|
|
330
|
+
|
|
315
331
|
VeLivePlayerPixelFormatNV12 = 3,
|
|
316
332
|
/** {zh}
|
|
317
333
|
* @platform ios
|
|
318
334
|
* @brief YUVI420 格式。
|
|
335
|
+
*
|
|
319
336
|
*/
|
|
337
|
+
|
|
320
338
|
VeLivePlayerPixelFormatI420 = 4,
|
|
321
339
|
/** {zh}
|
|
322
340
|
* @platform ios
|
|
323
341
|
* @brief BGRA 格式。
|
|
342
|
+
*
|
|
324
343
|
*/
|
|
344
|
+
|
|
325
345
|
VeLivePlayerPixelFormatBGRA32 = 5
|
|
326
346
|
}
|
|
327
347
|
/** {zh}
|
|
@@ -335,27 +355,35 @@ export declare enum VeLivePlayerAudioBufferType {
|
|
|
335
355
|
* @brief 未知格式。
|
|
336
356
|
*
|
|
337
357
|
*/
|
|
358
|
+
|
|
338
359
|
VeLivePlayerAudioBufferTypeUnknown = 0,
|
|
339
360
|
/** {zh}
|
|
340
361
|
* @platform android
|
|
341
362
|
* @brief ByteArray 格式。
|
|
342
363
|
*
|
|
343
364
|
*/
|
|
365
|
+
|
|
344
366
|
VeLivePlayerAudioBufferTypeByteArray = 1,
|
|
345
367
|
/** {zh}
|
|
346
368
|
* @platform ios
|
|
347
369
|
* @brief 未知格式。
|
|
370
|
+
*
|
|
348
371
|
*/
|
|
372
|
+
|
|
349
373
|
VeLivePlayerAudioBufferUnknown = 2,
|
|
350
374
|
/** {zh}
|
|
351
375
|
* @platform ios
|
|
352
376
|
* @brief CVSampleBufferRef 格式,音频数据以样本缓冲区 sample buffer 的形式进行处理和渲染。
|
|
377
|
+
*
|
|
353
378
|
*/
|
|
379
|
+
|
|
354
380
|
VeLivePlayerAudioBufferTypeSampleBuffer = 3,
|
|
355
381
|
/** {zh}
|
|
356
382
|
* @platform ios
|
|
357
383
|
* @brief NSData 格式,音频数据以 NSData 对象的形式进行处理和渲染。
|
|
384
|
+
*
|
|
358
385
|
*/
|
|
386
|
+
|
|
359
387
|
VeLivePlayerAudioBufferTypeNSData = 4
|
|
360
388
|
}
|
|
361
389
|
/** {zh}
|
|
@@ -368,27 +396,53 @@ export declare enum VeLivePlayerResolution {
|
|
|
368
396
|
* @brief 原始流。
|
|
369
397
|
*
|
|
370
398
|
*/
|
|
399
|
+
|
|
371
400
|
VeLivePlayerResolutionOrigin = 0,
|
|
372
401
|
/** {zh}
|
|
373
402
|
* @brief UHD 超高清。
|
|
374
403
|
*
|
|
375
404
|
*/
|
|
405
|
+
|
|
376
406
|
VeLivePlayerResolutionUHD = 1,
|
|
377
407
|
/** {zh}
|
|
378
408
|
* @brief HD 高清。
|
|
379
409
|
*
|
|
380
410
|
*/
|
|
411
|
+
|
|
381
412
|
VeLivePlayerResolutionHD = 2,
|
|
382
413
|
/** {zh}
|
|
383
414
|
* @brief SD 标清。
|
|
384
415
|
*
|
|
385
416
|
*/
|
|
417
|
+
|
|
386
418
|
VeLivePlayerResolutionSD = 3,
|
|
387
419
|
/** {zh}
|
|
388
420
|
* @brief LD 低清。
|
|
389
421
|
*
|
|
390
422
|
*/
|
|
391
|
-
|
|
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
|
|
392
446
|
}
|
|
393
447
|
/** {zh}
|
|
394
448
|
* @detail keytype
|
|
@@ -397,14 +451,24 @@ export declare enum VeLivePlayerResolution {
|
|
|
397
451
|
export declare class VeLivePlayerConfiguration {
|
|
398
452
|
protected _instance: any;
|
|
399
453
|
/** {zh}
|
|
400
|
-
* @brief
|
|
401
|
-
*
|
|
402
|
-
*
|
|
454
|
+
* @brief 是否开启字符串 SEI 消息的解析,默认值为 false。<br/>
|
|
455
|
+
* - true:开启;
|
|
456
|
+
* - false:关闭。
|
|
403
457
|
*
|
|
404
458
|
*/
|
|
405
459
|
|
|
406
460
|
get enableSei(): boolean;
|
|
407
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);
|
|
408
472
|
/** {zh}
|
|
409
473
|
* @brief 是否开启硬件解码功能,默认值为 true。开启硬件解码后,如果出现硬件解码启动失败或硬件解码失败的情况,播放器内部会自动切换为软解。<br>
|
|
410
474
|
* - true:开启;
|
|
@@ -477,17 +541,27 @@ export declare enum VeLivePlayerFormat {
|
|
|
477
541
|
* @brief FLV 格式。
|
|
478
542
|
*
|
|
479
543
|
*/
|
|
544
|
+
|
|
480
545
|
VeLivePlayerFormatFLV = 0,
|
|
481
546
|
/** {zh}
|
|
482
547
|
* @brief HLS 格式。
|
|
483
548
|
*
|
|
484
549
|
*/
|
|
550
|
+
|
|
485
551
|
VeLivePlayerFormatHLS = 1,
|
|
486
552
|
/** {zh}
|
|
487
553
|
* @brief RTM 格式。
|
|
488
554
|
*
|
|
489
555
|
*/
|
|
490
|
-
|
|
556
|
+
|
|
557
|
+
VeLivePlayerFormatRTM = 2,
|
|
558
|
+
/** {zh}
|
|
559
|
+
* @platform android
|
|
560
|
+
* @brief CMAF 格式
|
|
561
|
+
*
|
|
562
|
+
*/
|
|
563
|
+
|
|
564
|
+
VeLivePlayerFormatCMAF = 3
|
|
491
565
|
}
|
|
492
566
|
/** {zh}
|
|
493
567
|
* @detail keytype
|
|
@@ -499,17 +573,26 @@ export declare enum VeLivePlayerProtocol {
|
|
|
499
573
|
* @brief TCP 协议。
|
|
500
574
|
*
|
|
501
575
|
*/
|
|
576
|
+
|
|
502
577
|
VeLivePlayerProtocolTCP = 0,
|
|
503
578
|
/** {zh}
|
|
504
579
|
* @brief QUIC 协议。
|
|
505
580
|
*
|
|
506
581
|
*/
|
|
582
|
+
|
|
507
583
|
VeLivePlayerProtocolQUIC = 1,
|
|
508
584
|
/** {zh}
|
|
509
585
|
* @brief TLS 协议。
|
|
510
586
|
*
|
|
511
587
|
*/
|
|
512
|
-
|
|
588
|
+
|
|
589
|
+
VeLivePlayerProtocolTLS = 2,
|
|
590
|
+
/** {zh}
|
|
591
|
+
* @brief HTTP2.0 协议。
|
|
592
|
+
*
|
|
593
|
+
*/
|
|
594
|
+
|
|
595
|
+
VeLivePlayerProtocolHTTP2 = 3
|
|
513
596
|
}
|
|
514
597
|
/** {zh}
|
|
515
598
|
* @detail keytype
|
|
@@ -521,16 +604,19 @@ export declare enum VeLivePlayerMirror {
|
|
|
521
604
|
* @brief 关闭镜像。
|
|
522
605
|
*
|
|
523
606
|
*/
|
|
607
|
+
|
|
524
608
|
VeLivePlayerMirrorNone = 0,
|
|
525
609
|
/** {zh}
|
|
526
610
|
* @brief 水平镜像。
|
|
527
611
|
*
|
|
528
612
|
*/
|
|
613
|
+
|
|
529
614
|
VeLivePlayerMirrorHorizontal = 1,
|
|
530
615
|
/** {zh}
|
|
531
616
|
* @brief 垂直镜像。
|
|
532
617
|
*
|
|
533
618
|
*/
|
|
619
|
+
|
|
534
620
|
VeLivePlayerMirrorVertical = 2
|
|
535
621
|
}
|
|
536
622
|
/** {zh}
|
|
@@ -550,7 +636,7 @@ export declare class VeLivePlayerStream {
|
|
|
550
636
|
get url(): string;
|
|
551
637
|
set url(value: string);
|
|
552
638
|
/** {zh}
|
|
553
|
-
* @brief 清晰度档位。详情请参见 VeLivePlayerResolution
|
|
639
|
+
* @brief 清晰度档位。详情请参见 [VeLivePlayerResolution](#VeLivePlayerResolution)。
|
|
554
640
|
*
|
|
555
641
|
*/
|
|
556
642
|
|
|
@@ -564,7 +650,7 @@ export declare class VeLivePlayerStream {
|
|
|
564
650
|
get bitrate(): number;
|
|
565
651
|
set bitrate(value: number);
|
|
566
652
|
/** {zh}
|
|
567
|
-
* @brief 播放格式。详情请参见 VeLivePlayerFormat
|
|
653
|
+
* @brief 播放格式。详情请参见 [VeLivePlayerFormat](#VeLivePlayerFormat)。
|
|
568
654
|
*
|
|
569
655
|
*/
|
|
570
656
|
|
|
@@ -572,26 +658,26 @@ export declare class VeLivePlayerStream {
|
|
|
572
658
|
set format(value: VeLivePlayerFormat);
|
|
573
659
|
/** {zh}
|
|
574
660
|
* @platform android
|
|
575
|
-
* @brief 播放流类型为主路或备路。详情请参见 VeLivePlayerStreamType
|
|
661
|
+
* @brief 播放流类型为主路或备路。详情请参见 [VeLivePlayerStreamType](#VeLivePlayerStreamType)。
|
|
576
662
|
*
|
|
577
663
|
*/
|
|
578
664
|
|
|
579
|
-
get
|
|
580
|
-
set
|
|
665
|
+
get streamType(): $p_a.VeLivePlayerStreamType;
|
|
666
|
+
set streamType(value: $p_a.VeLivePlayerStreamType);
|
|
581
667
|
/** {zh}
|
|
582
668
|
* @platform ios
|
|
583
|
-
* @brief 传输协议,详情请参见 [VeLivePlayerProtocol](
|
|
669
|
+
* @brief 传输协议,详情请参见 [VeLivePlayerProtocol](#VeLivePlayerProtocol)。
|
|
584
670
|
*/
|
|
585
671
|
|
|
586
|
-
get
|
|
587
|
-
set
|
|
672
|
+
get protocol(): $p_i.VeLivePlayerProtocol;
|
|
673
|
+
set protocol(value: $p_i.VeLivePlayerProtocol);
|
|
588
674
|
/** {zh}
|
|
589
675
|
* @platform ios
|
|
590
676
|
* @brief 播放流类型为主路或备路,详情请参见 [VeLivePlayerStreamType](188121#VeLivePlayerStreamType)。
|
|
591
677
|
*/
|
|
592
678
|
|
|
593
|
-
get
|
|
594
|
-
set
|
|
679
|
+
get type(): $p_i.VeLivePlayerStreamType;
|
|
680
|
+
set type(value: $p_i.VeLivePlayerStreamType);
|
|
595
681
|
protected __init(...args: any[]): void;
|
|
596
682
|
protected __new_instance(...args: any[]): any;
|
|
597
683
|
}
|
|
@@ -602,14 +688,14 @@ export declare class VeLivePlayerStream {
|
|
|
602
688
|
export declare class VeLivePlayerVideoFrame {
|
|
603
689
|
protected _instance: any;
|
|
604
690
|
/** {zh}
|
|
605
|
-
* @brief 视频帧数据封装格式。详情请参见 VeLivePlayerVideoBufferType
|
|
691
|
+
* @brief 视频帧数据封装格式。详情请参见 [VeLivePlayerVideoBufferType](#VeLivePlayerVideoBufferType)。
|
|
606
692
|
*
|
|
607
693
|
*/
|
|
608
694
|
|
|
609
695
|
get bufferType(): VeLivePlayerVideoBufferType;
|
|
610
696
|
set bufferType(value: VeLivePlayerVideoBufferType);
|
|
611
697
|
/** {zh}
|
|
612
|
-
* @brief 视频帧像素格式。详情请参见 VeLivePlayerPixelFormat
|
|
698
|
+
* @brief 视频帧像素格式。详情请参见 [VeLivePlayerPixelFormat](#VeLivePlayerPixelFormat)。
|
|
613
699
|
*
|
|
614
700
|
*/
|
|
615
701
|
|
|
@@ -638,22 +724,22 @@ export declare class VeLivePlayerVideoFrame {
|
|
|
638
724
|
set pts(value: number);
|
|
639
725
|
/** {zh}
|
|
640
726
|
* @platform android
|
|
641
|
-
* @brief
|
|
727
|
+
* @brief OpenGL 渲染的视频纹理数据。如果将 [VeLivePlayerPixelFormat](#VeLivePlayerPixelFormat) 设置为`VeLivePlayerPixelFormatTexture`,并将 [VeLivePlayerVideoBufferType](#VeLivePlayerVideoBufferType) 设置为`VeLivePlayerVideoBufferTypeTexture`,SDK 会返回此视频数据类型。有关详细信息,请参阅[VeLivePlayerVideoTexture](#VeLivePlayerVideoTexture)。
|
|
642
728
|
*
|
|
643
729
|
*/
|
|
644
730
|
|
|
645
|
-
get
|
|
646
|
-
set
|
|
731
|
+
get texture(): $p_a.VeLivePlayerVideoTexture;
|
|
732
|
+
set texture(value: $p_a.VeLivePlayerVideoTexture);
|
|
647
733
|
/** {zh}
|
|
648
734
|
* @platform android
|
|
649
|
-
* @brief
|
|
735
|
+
* @brief ByteBuffer 格式的视频数据。如果将 [VeLivePlayerPixelFormat](#VeLivePlayerPixelFormat)设置为`VeLivePlayerPixelFormatRGBA32`,并将 [VeLivePlayerVideoBufferType](#VeLivePlayerVideoBufferType) 设置为`VeLivePlayerVideoBufferTypeByteBuffer`,则 SDK 会返回此视频数据类型。
|
|
650
736
|
*
|
|
651
737
|
*/
|
|
652
738
|
|
|
653
|
-
get
|
|
654
|
-
set
|
|
739
|
+
get buffer(): $p_a.ByteBuffer;
|
|
740
|
+
set buffer(value: $p_a.ByteBuffer);
|
|
655
741
|
/** {zh}
|
|
656
|
-
* @brief
|
|
742
|
+
* @brief ByteArray 格式的视频数据。如果将 [VeLivePlayerPixelFormat](#VeLivePlayerPixelFormat) 设置为“VeLivePlayerPixelFormatRGBA32”,并将 [VeLivePlayerVideoBufferType](#VeLivePlayerVideoBufferType) 设置为“VeLivePlayerVideoBufferTypeByteArray”,则 SDK 会返回这种视频数据类型。
|
|
657
743
|
*
|
|
658
744
|
*/
|
|
659
745
|
|
|
@@ -664,15 +750,15 @@ export declare class VeLivePlayerVideoFrame {
|
|
|
664
750
|
* @brief `pixelFormat` 为 `VeLivePlayerVideoBufferTypePixelBuffer` 时的视频数据。
|
|
665
751
|
*/
|
|
666
752
|
|
|
667
|
-
get
|
|
668
|
-
set
|
|
753
|
+
get pixelBuffer(): $p_i.CVPixelBufferRef;
|
|
754
|
+
set pixelBuffer(value: $p_i.CVPixelBufferRef);
|
|
669
755
|
/** {zh}
|
|
670
756
|
* @platform ios
|
|
671
757
|
* @brief `pixelFormat` 为 `VeLivePlayerVideoBufferTypeSampleBuffer` 时的视频数据。
|
|
672
758
|
*/
|
|
673
759
|
|
|
674
|
-
get
|
|
675
|
-
set
|
|
760
|
+
get sampleBuffer(): $p_i.CMSampleBufferRef;
|
|
761
|
+
set sampleBuffer(value: $p_i.CMSampleBufferRef);
|
|
676
762
|
protected __init(...args: any[]): void;
|
|
677
763
|
protected __new_instance(...args: any[]): any;
|
|
678
764
|
}
|
|
@@ -686,11 +772,13 @@ export declare enum VeLivePlayerStreamType {
|
|
|
686
772
|
* @brief 主路流。
|
|
687
773
|
*
|
|
688
774
|
*/
|
|
775
|
+
|
|
689
776
|
VeLivePlayerStreamTypeMain = 0,
|
|
690
777
|
/** {zh}
|
|
691
778
|
* @brief 备路流。
|
|
692
779
|
*
|
|
693
780
|
*/
|
|
781
|
+
|
|
694
782
|
VeLivePlayerStreamTypeBackup = 1
|
|
695
783
|
}
|
|
696
784
|
/** {zh}
|
|
@@ -703,31 +791,37 @@ export declare enum VeLivePlayerLogLevel {
|
|
|
703
791
|
* @brief 输出 VERBOSE、DEBUG、INFO、WARNING 和 ERROR 级别的日志。
|
|
704
792
|
*
|
|
705
793
|
*/
|
|
794
|
+
|
|
706
795
|
VeLivePlayerLogLevelVerbose = 0,
|
|
707
796
|
/** {zh}
|
|
708
797
|
* @brief 输出 DEBUG、INFO、WARNING 和 ERROR 级别的日志。
|
|
709
798
|
*
|
|
710
799
|
*/
|
|
800
|
+
|
|
711
801
|
VeLivePlayerLogLevelDebug = 1,
|
|
712
802
|
/** {zh}
|
|
713
803
|
* @brief 输出 INFO、WARNING 和 ERROR 级别的日志。
|
|
714
804
|
*
|
|
715
805
|
*/
|
|
806
|
+
|
|
716
807
|
VeLivePlayerLogLevelInfo = 2,
|
|
717
808
|
/** {zh}
|
|
718
809
|
* @brief 输出 WARNING 和 ERROR 级别的日志。
|
|
719
810
|
*
|
|
720
811
|
*/
|
|
812
|
+
|
|
721
813
|
VeLivePlayerLogLevelWarn = 3,
|
|
722
814
|
/** {zh}
|
|
723
815
|
* @brief 输出 ERROR 级别的日志。
|
|
724
816
|
*
|
|
725
817
|
*/
|
|
818
|
+
|
|
726
819
|
VeLivePlayerLogLevelError = 4,
|
|
727
820
|
/** {zh}
|
|
728
821
|
* @brief 关闭日志打印。
|
|
729
822
|
*
|
|
730
823
|
*/
|
|
824
|
+
|
|
731
825
|
VeLivePlayerLogLevelNone = 5
|
|
732
826
|
}
|
|
733
827
|
/** {zh}
|
|
@@ -737,7 +831,7 @@ export declare enum VeLivePlayerLogLevel {
|
|
|
737
831
|
export declare class VeLivePlayerAudioFrame {
|
|
738
832
|
protected _instance: any;
|
|
739
833
|
/** {zh}
|
|
740
|
-
* @brief 音频帧数据封装格式,详情请参见 [VeLivePlayerAudioBufferType](
|
|
834
|
+
* @brief 音频帧数据封装格式,详情请参见 [VeLivePlayerAudioBufferType](#VeLivePlayerAudioBufferType)。
|
|
741
835
|
*
|
|
742
836
|
*/
|
|
743
837
|
|
|
@@ -775,12 +869,20 @@ export declare class VeLivePlayerAudioFrame {
|
|
|
775
869
|
set pts(value: number);
|
|
776
870
|
/** {zh}
|
|
777
871
|
* @platform android
|
|
778
|
-
* @brief PCM 音频数据。
|
|
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[]类型
|
|
779
881
|
*
|
|
780
882
|
*/
|
|
781
883
|
|
|
782
|
-
get
|
|
783
|
-
set
|
|
884
|
+
get buffer(): $p_a.ByteBuffer[];
|
|
885
|
+
set buffer(value: $p_a.ByteBuffer[]);
|
|
784
886
|
/** {zh}
|
|
785
887
|
* @brief 音频采样点个数。
|
|
786
888
|
*
|
|
@@ -793,86 +895,86 @@ export declare class VeLivePlayerAudioFrame {
|
|
|
793
895
|
* @brief PCM 音频数据。
|
|
794
896
|
*/
|
|
795
897
|
|
|
796
|
-
get
|
|
797
|
-
set
|
|
898
|
+
get data(): $p_i.NSData;
|
|
899
|
+
set data(value: $p_i.NSData);
|
|
798
900
|
protected __init(...args: any[]): void;
|
|
799
901
|
protected __new_instance(...args: any[]): any;
|
|
800
902
|
}
|
|
801
903
|
export declare class t_VeLivePlayerResolution {
|
|
802
|
-
static
|
|
803
|
-
static
|
|
804
|
-
static
|
|
805
|
-
static
|
|
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;
|
|
806
908
|
}
|
|
807
909
|
export declare class t_VeLivePlayerFillMode {
|
|
808
|
-
static
|
|
809
|
-
static
|
|
810
|
-
static
|
|
811
|
-
static
|
|
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;
|
|
812
914
|
}
|
|
813
915
|
export declare class t_VeLivePlayerPixelFormat {
|
|
814
|
-
static
|
|
815
|
-
static
|
|
816
|
-
static
|
|
817
|
-
static
|
|
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;
|
|
818
920
|
}
|
|
819
921
|
export declare class t_VeLivePlayerVideoBufferType {
|
|
820
|
-
static
|
|
821
|
-
static
|
|
822
|
-
static
|
|
823
|
-
static
|
|
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;
|
|
824
932
|
}
|
|
825
933
|
export declare class t_VeLivePlayerRotation {
|
|
826
|
-
static
|
|
827
|
-
static
|
|
828
|
-
static
|
|
829
|
-
static
|
|
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;
|
|
830
938
|
}
|
|
831
939
|
export declare class t_VeLivePlayerMirror {
|
|
832
|
-
static
|
|
833
|
-
static
|
|
834
|
-
static
|
|
835
|
-
static
|
|
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;
|
|
836
944
|
}
|
|
837
945
|
export declare class t_VeLivePlayerLogLevel {
|
|
838
|
-
static
|
|
839
|
-
static
|
|
840
|
-
static
|
|
841
|
-
static
|
|
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;
|
|
842
950
|
}
|
|
843
951
|
export declare class t_VeLivePlayerResolutionSwitchReason {
|
|
844
|
-
static
|
|
845
|
-
static
|
|
846
|
-
static
|
|
847
|
-
static
|
|
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;
|
|
848
956
|
}
|
|
849
957
|
export declare class t_VeLivePlayerStreamType {
|
|
850
|
-
static
|
|
851
|
-
static
|
|
852
|
-
static
|
|
853
|
-
static
|
|
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;
|
|
854
962
|
}
|
|
855
963
|
export declare class t_VeLivePlayerStatus {
|
|
856
|
-
static
|
|
857
|
-
static
|
|
858
|
-
static
|
|
859
|
-
static
|
|
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;
|
|
860
968
|
}
|
|
861
969
|
export declare class t_VeLivePlayerFormat {
|
|
862
|
-
static
|
|
863
|
-
static
|
|
864
|
-
static
|
|
865
|
-
static
|
|
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;
|
|
866
974
|
}
|
|
867
975
|
export declare class t_VeLivePlayerProtocol {
|
|
868
|
-
static
|
|
869
|
-
static
|
|
870
|
-
static
|
|
871
|
-
static
|
|
872
|
-
}
|
|
873
|
-
export declare class t_VeLivePlayerAudioBufferType {
|
|
874
|
-
static ts_to_android(value: VeLivePlayerAudioBufferType): $p_a.VeLivePlayerAudioBufferType;
|
|
875
|
-
static android_to_ts(value: $p_a.VeLivePlayerAudioBufferType): VeLivePlayerAudioBufferType;
|
|
876
|
-
static ts_to_ios(value: VeLivePlayerAudioBufferType): $p_i.VeLivePlayerAudioBufferType;
|
|
877
|
-
static ios_to_ts(value: $p_i.VeLivePlayerAudioBufferType): VeLivePlayerAudioBufferType;
|
|
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;
|
|
878
980
|
}
|