@byteplus/react-native-live-pull 1.3.0 → 1.3.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 (41) hide show
  1. package/android/build.gradle +1 -1
  2. package/package.json +3 -3
  3. package/react-native-velive-pull.podspec +10 -3
  4. package/lib/commonjs/index.js +0 -14555
  5. package/lib/module/index.js +0 -14543
  6. package/lib/typescript/codegen/android/api.d.ts +0 -318
  7. package/lib/typescript/codegen/android/callback.d.ts +0 -206
  8. package/lib/typescript/codegen/android/errorcode.d.ts +0 -174
  9. package/lib/typescript/codegen/android/external.d.ts +0 -1
  10. package/lib/typescript/codegen/android/index.d.ts +0 -6
  11. package/lib/typescript/codegen/android/keytype.d.ts +0 -749
  12. package/lib/typescript/codegen/android/types.d.ts +0 -31
  13. package/lib/typescript/codegen/ios/api.d.ts +0 -295
  14. package/lib/typescript/codegen/ios/callback.d.ts +0 -176
  15. package/lib/typescript/codegen/ios/errorcode.d.ts +0 -160
  16. package/lib/typescript/codegen/ios/external.d.ts +0 -1
  17. package/lib/typescript/codegen/ios/index.d.ts +0 -6
  18. package/lib/typescript/codegen/ios/keytype.d.ts +0 -695
  19. package/lib/typescript/codegen/ios/types.d.ts +0 -46
  20. package/lib/typescript/codegen/pack/api.d.ts +0 -367
  21. package/lib/typescript/codegen/pack/callback.d.ts +0 -255
  22. package/lib/typescript/codegen/pack/errorcode.d.ts +0 -187
  23. package/lib/typescript/codegen/pack/external.d.ts +0 -1
  24. package/lib/typescript/codegen/pack/index.d.ts +0 -6
  25. package/lib/typescript/codegen/pack/keytype.d.ts +0 -909
  26. package/lib/typescript/codegen/pack/types.d.ts +0 -68
  27. package/lib/typescript/component.d.ts +0 -15
  28. package/lib/typescript/core/api.d.ts +0 -114
  29. package/lib/typescript/core/appState.d.ts +0 -3
  30. package/lib/typescript/core/callback.d.ts +0 -53
  31. package/lib/typescript/core/env.d.ts +0 -38
  32. package/lib/typescript/core/errorcode.d.ts +0 -1
  33. package/lib/typescript/core/index.d.ts +0 -6
  34. package/lib/typescript/core/keytype.d.ts +0 -33
  35. package/lib/typescript/core/player.d.ts +0 -16
  36. package/lib/typescript/index.d.ts +0 -3
  37. package/lib/typescript/platforms/android/extends.d.ts +0 -39
  38. package/lib/typescript/platforms/android/pictureInpicture.d.ts +0 -26
  39. package/lib/typescript/platforms/ios/extends.d.ts +0 -43
  40. package/lib/typescript/platforms/ios/pictureInpicture.d.ts +0 -32
  41. package/lib/typescript/runtime/index.d.ts +0 -1
@@ -1,909 +0,0 @@
1
- import * as $p_a from '../android/index';
2
- import * as $p_i from '../ios/index';
3
-
4
- export declare enum VeLivePlayerRotation {
5
-
6
- /** {en}
7
- * @brief No rotation.
8
- *
9
- */
10
- VeLivePlayerRotation0 = 0,
11
-
12
- /** {en}
13
- * @brief Rotate 90 degrees clockwise.
14
- *
15
- */
16
- VeLivePlayerRotation90 = 1,
17
-
18
- /** {en}
19
- * @brief Rotate 180 degrees clockwise.
20
- *
21
- */
22
- VeLivePlayerRotation180 = 2,
23
-
24
- /** {en}
25
- * @brief Rotate 270 degrees clockwise.
26
- *
27
- */
28
- VeLivePlayerRotation270 = 3
29
- }
30
-
31
- export declare class VeLivePlayerStreamData {
32
- protected _instance: any;
33
-
34
- /** {en}
35
- * @brief Whether to enable adaptive bitrate (ABR). The default value is `false`. <br>
36
- * - true: Enable;
37
- * - false: Disable.
38
- *
39
- */
40
- get enableABR(): boolean;
41
- set enableABR(value: boolean);
42
-
43
- /** {en}
44
- * @brief Whether to enable switching between primary and backup streams. The default value is `false`. <br>
45
- * - true: Enable;
46
- * - false: Disable.
47
- *
48
- */
49
- get enableMainBackupSwitch(): boolean;
50
- set enableMainBackupSwitch(value: boolean);
51
-
52
- /** {en}
53
- * @brief The default resolution. The default value is `VeLivePlayerResolutionOrigin`, which indicates the original resolution. See [VeLivePlayerResolution](#VeLivePlayerResolution) for details.
54
- *
55
- */
56
- get defaultResolution(): VeLivePlayerResolution;
57
- set defaultResolution(value: VeLivePlayerResolution);
58
-
59
- /** {en}
60
- * @brief The default video format. The default value is `VeLivePlayerFormatFLV`. See [VeLivePlayerFormat](#VeLivePlayerFormat) for details.
61
- *
62
- */
63
- get defaultFormat(): VeLivePlayerFormat;
64
- set defaultFormat(value: VeLivePlayerFormat);
65
-
66
- /** {en}
67
- * @brief The default transmission protocol. The default value is `VeLivePlayerProtocolTCP`. See [VeLivePlayerProtocol](#VeLivePlayerProtocol) for details.
68
- *
69
- */
70
- get defaultProtocol(): VeLivePlayerProtocol;
71
- set defaultProtocol(value: VeLivePlayerProtocol);
72
- protected __init(...args: any[]): void;
73
- protected __new_instance(...args: any[]): any;
74
- }
75
-
76
- export declare enum VeLivePlayerStatus {
77
-
78
- /** {en}
79
- * @brief The player finishes preparing and is waiting to render the video.
80
- *
81
- */
82
- VeLivePlayerStatusPrepared = 0,
83
-
84
- /** {en}
85
- * @brief Playback is currently in progress, meaning that the first frame has been rendered and no errors have occurred to the player.
86
- *
87
- */
88
- VeLivePlayerStatusPlaying = 1,
89
-
90
- /** {en}
91
- * @brief The playback is paused.
92
- *
93
- */
94
- VeLivePlayerStatusPaused = 2,
95
-
96
- /** {en}
97
- * @brief The playback is stopped.
98
- *
99
- */
100
- VeLivePlayerStatusStopped = 3,
101
-
102
- /** {en}
103
- * @brief An error has occurred to the player.
104
- *
105
- */
106
- VeLivePlayerStatusError = 4
107
- }
108
-
109
- export declare enum VeLivePlayerResolutionSwitchReason {
110
-
111
- /** {en}
112
- * @brief The resolution is switched automatically through the adaptive bitrate (ABR) feature.
113
- *
114
- */
115
- VeLivePlayerResolutionSwitchByAuto = 0,
116
-
117
- /** {en}
118
- * @brief The resolution is changed after switchResolution{@link #VeLivePlayer#switchResolution} is called.
119
- *
120
- */
121
- VeLivePlayerResolutionSwitchByManual = 1
122
- }
123
-
124
- export declare enum VeLivePlayerFillMode {
125
-
126
- /** {en}
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.
128
- *
129
- */
130
- VeLivePlayerFillModeAspectFit = 0,
131
-
132
- /** {en}
133
- * @brief Stretch the video to fill the screen. The aspect ratio of the video might change.
134
- *
135
- */
136
- VeLivePlayerFillModeFullFill = 1,
137
-
138
- /** {en}
139
- * @brief Uniformly scale the video until the screen is completely filled. Part of the video may be cropped.
140
- *
141
- */
142
- VeLivePlayerFillModeAspectFill = 2
143
- }
144
-
145
- export declare class VeLivePlayerStatistics {
146
- protected _instance: any;
147
-
148
- /** {en}
149
- * @brief Whether hardware decoding is used. <br>
150
- * - true: Hardware decoding is used;
151
- * - false: Hardware decoding is not used.
152
- *
153
- */
154
- get isHardwareDecode(): boolean;
155
-
156
- /** {en}
157
- * @brief The current pull stream address.
158
- *
159
- */
160
- get url(): string;
161
-
162
- /** {en}
163
- * @brief The encoding format of the video.
164
- *
165
- */
166
- get videoCodec(): string;
167
-
168
- /** {en}
169
- * @brief The cumulative duration of stutters that occurred since the beginning of playback, in milliseconds.
170
- *
171
- */
172
- get stallTimeMs(): number;
173
-
174
- /** {en}
175
- * @brief Bandwidth estimation, unit is kbps.
176
- *
177
- */
178
- get bandwidthEstimation(): number;
179
-
180
- /** {en}
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.
182
- *
183
- */
184
- get delayMs(): number;
185
-
186
- /** {en}
187
- * @brief The width of the video, in pixels.
188
- *
189
- */
190
- get width(): number;
191
-
192
- /** {en}
193
- * @brief The height of the video, in pixels.
194
- *
195
- */
196
- get height(): number;
197
-
198
- /** {en}
199
- * @brief The frame rate of the video, in fps.
200
- *
201
- */
202
- get fps(): number;
203
-
204
- /** {en}
205
- * @brief The downlink bitrate, in Kbps.
206
- *
207
- */
208
- get bitrate(): number;
209
-
210
- /** {en}
211
- * @brief The video buffer, in milliseconds.
212
- *
213
- */
214
- get videoBufferMs(): number;
215
-
216
- /** {en}
217
- * @brief The audio buffer, in milliseconds.
218
- *
219
- */
220
- get audioBufferMs(): number;
221
- }
222
-
223
- export declare enum VeLivePlayerVideoBufferType {
224
-
225
- /** {en}
226
- * @brief Unknown format.
227
- *
228
- */
229
- VeLivePlayerVideoBufferTypeUnknown = 0,
230
-
231
- /** {en}
232
- * @platform android
233
- * @brief ByteBuffer.
234
- *
235
- */
236
- VeLivePlayerVideoBufferTypeByteBuffer = 1,
237
-
238
- /** {en}
239
- * @platform android
240
- * @brief ByteArray.
241
- *
242
- */
243
- VeLivePlayerVideoBufferTypeByteArray = 2,
244
-
245
- /** {en}
246
- * @platform android
247
- * @brief Texture.
248
- *
249
- */
250
- VeLivePlayerVideoBufferTypeTexture = 3,
251
-
252
- /** {en}
253
- * @platform ios
254
- * @brief CVPixelBufferRef.
255
- *
256
- */
257
- VeLivePlayerVideoBufferTypePixelBuffer = 4,
258
-
259
- /** {en}
260
- * @platform ios
261
- * @brief CVSampleBufferRef.
262
- *
263
- */
264
- VeLivePlayerVideoBufferTypeSampleBuffer = 5,
265
-
266
- /** {en}
267
- * @platform ios
268
- * @brief NSData.
269
- *
270
- */
271
- VeLivePlayerVideoBufferTypeNSData = 6
272
- }
273
-
274
- export declare enum VeLivePlayerPixelFormat {
275
-
276
- /** {en}
277
- * @brief Unknown format.
278
- *
279
- */
280
- VeLivePlayerPixelFormatUnknown = 0,
281
-
282
- /** {en}
283
- * @platform android
284
- * @brief RGBA8888.
285
- *
286
- */
287
- VeLivePlayerPixelFormatRGBA32 = 1,
288
-
289
- /** {en}
290
- * @platform android
291
- * @brief Texture.
292
- *
293
- */
294
- VeLivePlayerPixelFormatTexture = 2,
295
-
296
- /** {en}
297
- * @platform ios
298
- * @brief NV12.
299
- *
300
- */
301
- VeLivePlayerPixelFormatNV12 = 3,
302
-
303
- /** {en}
304
- * @platform ios
305
- * @brief YUVI420.
306
- *
307
- */
308
- VeLivePlayerPixelFormatI420 = 4,
309
-
310
- /** {en}
311
- * @platform ios
312
- * @brief BGRA.
313
- *
314
- */
315
- VeLivePlayerPixelFormatBGRA32 = 5
316
- }
317
-
318
- export declare enum VeLivePlayerAudioBufferType {
319
-
320
- /** {en}
321
- * @platform android
322
- * @brief Unknown format.
323
- *
324
- */
325
- VeLivePlayerAudioBufferTypeUnknown = 0,
326
-
327
- /** {en}
328
- * @platform android
329
- * @brief ByteArray.
330
- *
331
- */
332
- VeLivePlayerAudioBufferTypeByteArray = 1,
333
-
334
- /** {en}
335
- * @platform ios
336
- * @brief Unknown format.
337
- *
338
- */
339
- VeLivePlayerAudioBufferUnknown = 2,
340
-
341
- /** {en}
342
- * @platform ios
343
- * @brief CVSampleBufferRef. The audio data is processed and rendered as sample buffers.
344
- *
345
- */
346
- VeLivePlayerAudioBufferTypeSampleBuffer = 3,
347
-
348
- /** {en}
349
- * @platform ios
350
- * @brief NSData. The audio data is processed and rendered as NSData objects.
351
- *
352
- */
353
- VeLivePlayerAudioBufferTypeNSData = 4
354
- }
355
-
356
- export declare enum VeLivePlayerResolution {
357
-
358
- /** {en}
359
- * @brief Original.
360
- *
361
- */
362
- VeLivePlayerResolutionOrigin = 0,
363
-
364
- /** {en}
365
- * @brief Ultra high definition (UHD).
366
- *
367
- */
368
- VeLivePlayerResolutionUHD = 1,
369
-
370
- /** {en}
371
- * @brief High definition (HD).
372
- *
373
- */
374
- VeLivePlayerResolutionHD = 2,
375
-
376
- /** {en}
377
- * @brief Standard definition (SD).
378
- *
379
- */
380
- VeLivePlayerResolutionSD = 3,
381
-
382
- /** {en}
383
- * @brief Low definition (LD).
384
- *
385
- */
386
- VeLivePlayerResolutionLD = 4,
387
-
388
- /** {en}
389
- * @brief AO pure audio stream.
390
- * @hidden (Android)
391
- *
392
- */
393
- VeLivePlayerResolutionAO = 5,
394
-
395
- /** {en}
396
- * @platform ios
397
- * @brief Full High definition (FHD).
398
- *
399
- */
400
- VeLivePlayerResolutionFHD = 6,
401
-
402
- /** {en}
403
- * @platform ios
404
- * @brief Auto.
405
- *
406
- */
407
- VeLivePlayerResolutionAUTO = 8
408
- }
409
-
410
- export declare class VeLivePlayerConfiguration {
411
- protected _instance: any;
412
-
413
- /** {en}
414
- * @brief Whether to enable the parsing of string SEI messages. The default value is `false`.<br/>
415
- * - true: Enable;
416
- * - false: Disable.
417
- *
418
- */
419
- get enableSei(): boolean;
420
- set enableSei(value: boolean);
421
-
422
- /** {en}
423
- * @brief Whether to enable the parsing of binary SEI messages. The default value is `false`. <br>
424
- * - true: Enable;
425
- * - false: Disable.
426
- * @notes After binary SEI is enabled, callbacks for string SEI will no longer be sent.
427
- *
428
- */
429
- get enableBinarySei(): boolean;
430
- set enableBinarySei(value: boolean);
431
-
432
- /** {en}
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>
434
- * - true: Enable;
435
- * - false: Disable.
436
- *
437
- */
438
- get enableHardwareDecode(): boolean;
439
- set enableHardwareDecode(value: boolean);
440
-
441
- /** {en}
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.
443
- *
444
- */
445
- get networkTimeoutMs(): number;
446
- set networkTimeoutMs(value: number);
447
-
448
- /** {en}
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>
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.
451
- * - In the presence of a backup stream, the time interval will not take effect because all retries will be executed immediately without any waiting time.
452
- *
453
- */
454
- get retryIntervalTimeMs(): number;
455
- set retryIntervalTimeMs(value: number);
456
-
457
- /** {en}
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>
459
- * - In the absence of a backup stream, each retry will count as one retry attempt.
460
- * - In the presence of a backup stream, each switch between the primary stream and the backup stream will count as a retry attempt.
461
- *
462
- */
463
- get retryMaxCount(): number;
464
- set retryMaxCount(value: number);
465
-
466
- /** {en}
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>
468
- * - true: Enable;
469
- * - false: Disable.
470
- *
471
- */
472
- get enableLiveDNS(): boolean;
473
- set enableLiveDNS(value: boolean);
474
-
475
- /** {en}
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/>
477
- * - true: Enable;
478
- * - false: Disable.
479
- *
480
- */
481
- get enableStatisticsCallback(): boolean;
482
- set enableStatisticsCallback(value: boolean);
483
-
484
- /** {en}
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.
486
- *
487
- */
488
- get statisticsCallbackInterval(): number;
489
- set statisticsCallbackInterval(value: number);
490
- protected __init(...args: any[]): void;
491
- protected __new_instance(...args: any[]): any;
492
- }
493
-
494
- export declare enum VeLivePlayerFormat {
495
-
496
- /** {en}
497
- * @brief FLV.
498
- *
499
- */
500
- VeLivePlayerFormatFLV = 0,
501
-
502
- /** {en}
503
- * @brief HLS.
504
- *
505
- */
506
- VeLivePlayerFormatHLS = 1,
507
-
508
- /** {en}
509
- * @brief Real Time Media (RTM).
510
- *
511
- */
512
- VeLivePlayerFormatRTM = 2,
513
-
514
- /** {en}
515
- * @platform android
516
- * @brief CMAF format
517
- *
518
- */
519
- VeLivePlayerFormatCMAF = 3
520
- }
521
-
522
- export declare enum VeLivePlayerProtocol {
523
-
524
- /** {en}
525
- * @brief TCP.
526
- *
527
- */
528
- VeLivePlayerProtocolTCP = 0,
529
-
530
- /** {en}
531
- * @brief QUIC.
532
- *
533
- */
534
- VeLivePlayerProtocolQUIC = 1,
535
-
536
- /** {en}
537
- * @brief TLS.
538
- *
539
- */
540
- VeLivePlayerProtocolTLS = 2,
541
-
542
- /** {en}
543
- * @brief HTTP2.0 protocol
544
- *
545
- */
546
- VeLivePlayerProtocolHTTP2 = 3
547
- }
548
-
549
- export declare enum VeLivePlayerMirror {
550
-
551
- /** {en}
552
- * @brief No mirroring.
553
- *
554
- */
555
- VeLivePlayerMirrorNone = 0,
556
-
557
- /** {en}
558
- * @brief Horizontal mirroring.
559
- *
560
- */
561
- VeLivePlayerMirrorHorizontal = 1,
562
-
563
- /** {en}
564
- * @brief Vertical mirroring.
565
- *
566
- */
567
- VeLivePlayerMirrorVertical = 2
568
- }
569
-
570
- export declare class VeLivePlayerStream {
571
- constructor();
572
- constructor();
573
- protected _instance: any;
574
-
575
- /** {en}
576
- * @brief The pull stream address.
577
- *
578
- */
579
- get url(): string;
580
- set url(value: string);
581
-
582
- /** {en}
583
- * @brief The playback resolution. For details, see [VeLivePlayerResolution](#VeLivePlayerResolution).
584
- *
585
- */
586
- get resolution(): VeLivePlayerResolution;
587
- set resolution(value: VeLivePlayerResolution);
588
-
589
- /** {en}
590
- * @brief The playback bitrate, in Kbps.
591
- *
592
- */
593
- get bitrate(): number;
594
- set bitrate(value: number);
595
-
596
- /** {en}
597
- * @brief The format of the live stream. See [VeLivePlayerFormat](#VeLivePlayerFormat) for details.
598
- *
599
- */
600
- get format(): VeLivePlayerFormat;
601
- set format(value: VeLivePlayerFormat);
602
-
603
- /** {en}
604
- * @platform android
605
- * @brief Whether the stream is a main or backup stream. See [VeLivePlayerStreamType](#VeLivePlayerStreamType) for details.
606
- *
607
- */
608
- get streamType(): $p_a.VeLivePlayerStreamType;
609
- set streamType(value: $p_a.VeLivePlayerStreamType);
610
-
611
- /** {en}
612
- * @platform ios
613
- * @brief The transmission protocol. See [VeLivePlayerProtocol](#VeLivePlayerProtocol) for details.
614
- */
615
- get protocol(): $p_i.VeLivePlayerProtocol;
616
- set protocol(value: $p_i.VeLivePlayerProtocol);
617
-
618
- /** {en}
619
- * @platform ios
620
- * @brief Whether the stream is a primary or a backup stream. See [VeLivePlayerStreamType](#VeLivePlayerStreamType) for details.
621
- */
622
- get type(): $p_i.VeLivePlayerStreamType;
623
- set type(value: $p_i.VeLivePlayerStreamType);
624
- protected __init(...args: any[]): void;
625
- protected __new_instance(...args: any[]): any;
626
- }
627
-
628
- export declare class VeLivePlayerVideoFrame {
629
- protected _instance: any;
630
-
631
- /** {en}
632
- * @brief The encapsulation format. See [VeLivePlayerVideoBufferType](#VeLivePlayerVideoBufferType) for details.
633
- *
634
- */
635
- get bufferType(): VeLivePlayerVideoBufferType;
636
- set bufferType(value: VeLivePlayerVideoBufferType);
637
-
638
- /** {en}
639
- * @brief The pixel format. See [VeLivePlayerPixelFormat](#VeLivePlayerPixelFormat) for details.
640
- *
641
- */
642
- get pixelFormat(): VeLivePlayerPixelFormat;
643
- set pixelFormat(value: VeLivePlayerPixelFormat);
644
-
645
- /** {en}
646
- * @brief The video width, in pixels.
647
- *
648
- */
649
- get width(): number;
650
- set width(value: number);
651
-
652
- /** {en}
653
- * @brief The video height, in pixels.
654
- *
655
- */
656
- get height(): number;
657
- set height(value: number);
658
-
659
- /** {en}
660
- * @brief The timestamp indicating the time when the video frame is rendered, in milliseconds.
661
- *
662
- */
663
- get pts(): number;
664
- set pts(value: number);
665
-
666
- /** {en}
667
- * @platform android
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.
669
- *
670
- */
671
- get texture(): $p_a.VeLivePlayerVideoTexture;
672
- set texture(value: $p_a.VeLivePlayerVideoTexture);
673
-
674
- /** {en}
675
- * @platform android
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`.
677
- *
678
- */
679
- get buffer(): $p_a.ByteBuffer;
680
- set buffer(value: $p_a.ByteBuffer);
681
-
682
- /** {en}
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`.
684
- *
685
- */
686
- get data(): ArrayBuffer;
687
- set data(value: ArrayBuffer);
688
-
689
- /** {en}
690
- * @platform ios
691
- * @brief The video data, if you set [VeLivePlayerVideoBufferType](#VeLivePlayerVideoBufferType) to `VeLivePlayerVideoBufferTypePixelBuffer`.
692
- */
693
- get pixelBuffer(): $p_i.CVPixelBufferRef;
694
- set pixelBuffer(value: $p_i.CVPixelBufferRef);
695
-
696
- /** {en}
697
- * @platform ios
698
- * @brief The video data, if you set [VeLivePlayerVideoBufferType](#VeLivePlayerVideoBufferType) to `VeLivePlayerVideoBufferTypeSampleBuffer`.
699
- */
700
- get sampleBuffer(): $p_i.CMSampleBufferRef;
701
- set sampleBuffer(value: $p_i.CMSampleBufferRef);
702
- protected __init(...args: any[]): void;
703
- protected __new_instance(...args: any[]): any;
704
- }
705
-
706
- export declare enum VeLivePlayerStreamType {
707
-
708
- /** {en}
709
- * @brief The primary stream.
710
- *
711
- */
712
- VeLivePlayerStreamTypeMain = 0,
713
-
714
- /** {en}
715
- * @brief The backup stream.
716
- *
717
- */
718
- VeLivePlayerStreamTypeBackup = 1
719
- }
720
-
721
- export declare enum VeLivePlayerLogLevel {
722
-
723
- /** {en}
724
- * @brief Output logs at the VERBOSE, DEBUG, INFO, WARNING, and ERROR levels.
725
- *
726
- */
727
- VeLivePlayerLogLevelVerbose = 0,
728
-
729
- /** {en}
730
- * @brief Output logs at the DEBUG, INFO, WARNING, and ERROR levels.
731
- *
732
- */
733
- VeLivePlayerLogLevelDebug = 1,
734
-
735
- /** {en}
736
- * @brief Output logs at the INFO, WARNING, and ERROR levels.
737
- *
738
- */
739
- VeLivePlayerLogLevelInfo = 2,
740
-
741
- /** {en}
742
- * @brief Output logs at the WARNING and ERROR levels.
743
- *
744
- */
745
- VeLivePlayerLogLevelWarn = 3,
746
-
747
- /** {en}
748
- * @brief Output logs at the ERROR level.
749
- *
750
- */
751
- VeLivePlayerLogLevelError = 4,
752
-
753
- /** {en}
754
- * @brief Disable log printing.
755
- *
756
- */
757
- VeLivePlayerLogLevelNone = 5
758
- }
759
-
760
- export declare class VeLivePlayerAudioFrame {
761
- protected _instance: any;
762
-
763
- /** {en}
764
- * @brief The encapsulation format of the audio data. See [VeLivePlayerAudioBufferType](#VeLivePlayerAudioBufferType) for details.
765
- *
766
- */
767
- get bufferType(): VeLivePlayerAudioBufferType;
768
- set bufferType(value: VeLivePlayerAudioBufferType);
769
-
770
- /** {en}
771
- * @brief The audio sample rate, in Hz.
772
- *
773
- */
774
- get sampleRate(): number;
775
- set sampleRate(value: number);
776
-
777
- /** {en}
778
- * @brief The number of audio channels. <br>
779
- * - 1: Mono;
780
- * - 2: Stereo.
781
- *
782
- */
783
- get channels(): number;
784
- set channels(value: number);
785
-
786
- /** {en}
787
- * @brief The audio bit depth.
788
- *
789
- */
790
- get bitDepth(): number;
791
- set bitDepth(value: number);
792
-
793
- /** {en}
794
- * @brief The timestamp indicating the time when the audio is rendered, in milliseconds.
795
- *
796
- */
797
- get pts(): number;
798
- set pts(value: number);
799
-
800
- /** {en}
801
- * @platform android
802
- * @brief The PCM audio data. byte[] type.
803
- *
804
- */
805
- get bufferArray(): ArrayBuffer;
806
- set bufferArray(value: ArrayBuffer);
807
-
808
- /** {en}
809
- * @platform android
810
- * @brief The PCM audio data. ByteBuffer[] type.
811
- *
812
- */
813
- get buffer(): $p_a.ByteBuffer[];
814
- set buffer(value: $p_a.ByteBuffer[]);
815
-
816
- /** {en}
817
- * @brief The number of audio samples.
818
- *
819
- */
820
- get samples(): number;
821
- set samples(value: number);
822
-
823
- /** {en}
824
- * @platform ios
825
- * @brief The PCM audio data.
826
- */
827
- get data(): $p_i.NSData;
828
- set data(value: $p_i.NSData);
829
- protected __init(...args: any[]): void;
830
- protected __new_instance(...args: any[]): any;
831
- }
832
- export declare class t_VeLivePlayerResolution {
833
- static code_to_android(value: VeLivePlayerResolution): $p_a.VeLivePlayerResolution;
834
- static android_to_code(value: $p_a.VeLivePlayerResolution): VeLivePlayerResolution;
835
- static code_to_ios(value: VeLivePlayerResolution): $p_i.VeLivePlayerResolution;
836
- static ios_to_code(value: $p_i.VeLivePlayerResolution): VeLivePlayerResolution;
837
- }
838
- export declare class t_VeLivePlayerFillMode {
839
- static code_to_android(value: VeLivePlayerFillMode): $p_a.VeLivePlayerFillMode;
840
- static android_to_code(value: $p_a.VeLivePlayerFillMode): VeLivePlayerFillMode;
841
- static code_to_ios(value: VeLivePlayerFillMode): $p_i.VeLivePlayerFillMode;
842
- static ios_to_code(value: $p_i.VeLivePlayerFillMode): VeLivePlayerFillMode;
843
- }
844
- export declare class t_VeLivePlayerPixelFormat {
845
- static code_to_android(value: VeLivePlayerPixelFormat): $p_a.VeLivePlayerPixelFormat;
846
- static android_to_code(value: $p_a.VeLivePlayerPixelFormat): VeLivePlayerPixelFormat;
847
- static code_to_ios(value: VeLivePlayerPixelFormat): $p_i.VeLivePlayerPixelFormat;
848
- static ios_to_code(value: $p_i.VeLivePlayerPixelFormat): VeLivePlayerPixelFormat;
849
- }
850
- export declare class t_VeLivePlayerVideoBufferType {
851
- static code_to_android(value: VeLivePlayerVideoBufferType): $p_a.VeLivePlayerVideoBufferType;
852
- static android_to_code(value: $p_a.VeLivePlayerVideoBufferType): VeLivePlayerVideoBufferType;
853
- static code_to_ios(value: VeLivePlayerVideoBufferType): $p_i.VeLivePlayerVideoBufferType;
854
- static ios_to_code(value: $p_i.VeLivePlayerVideoBufferType): VeLivePlayerVideoBufferType;
855
- }
856
- export declare class t_VeLivePlayerAudioBufferType {
857
- static code_to_android(value: VeLivePlayerAudioBufferType): $p_a.VeLivePlayerAudioBufferType;
858
- static android_to_code(value: $p_a.VeLivePlayerAudioBufferType): VeLivePlayerAudioBufferType;
859
- static code_to_ios(value: VeLivePlayerAudioBufferType): $p_i.VeLivePlayerAudioBufferType;
860
- static ios_to_code(value: $p_i.VeLivePlayerAudioBufferType): VeLivePlayerAudioBufferType;
861
- }
862
- export declare class t_VeLivePlayerRotation {
863
- static code_to_android(value: VeLivePlayerRotation): $p_a.VeLivePlayerRotation;
864
- static android_to_code(value: $p_a.VeLivePlayerRotation): VeLivePlayerRotation;
865
- static code_to_ios(value: VeLivePlayerRotation): $p_i.VeLivePlayerRotation;
866
- static ios_to_code(value: $p_i.VeLivePlayerRotation): VeLivePlayerRotation;
867
- }
868
- export declare class t_VeLivePlayerMirror {
869
- static code_to_android(value: VeLivePlayerMirror): $p_a.VeLivePlayerMirror;
870
- static android_to_code(value: $p_a.VeLivePlayerMirror): VeLivePlayerMirror;
871
- static code_to_ios(value: VeLivePlayerMirror): $p_i.VeLivePlayerMirror;
872
- static ios_to_code(value: $p_i.VeLivePlayerMirror): VeLivePlayerMirror;
873
- }
874
- export declare class t_VeLivePlayerLogLevel {
875
- static code_to_android(value: VeLivePlayerLogLevel): $p_a.VeLivePlayerLogLevel;
876
- static android_to_code(value: $p_a.VeLivePlayerLogLevel): VeLivePlayerLogLevel;
877
- static code_to_ios(value: VeLivePlayerLogLevel): $p_i.VeLivePlayerLogLevel;
878
- static ios_to_code(value: $p_i.VeLivePlayerLogLevel): VeLivePlayerLogLevel;
879
- }
880
- export declare class t_VeLivePlayerResolutionSwitchReason {
881
- static code_to_android(value: VeLivePlayerResolutionSwitchReason): $p_a.VeLivePlayerResolutionSwitchReason;
882
- static android_to_code(value: $p_a.VeLivePlayerResolutionSwitchReason): VeLivePlayerResolutionSwitchReason;
883
- static code_to_ios(value: VeLivePlayerResolutionSwitchReason): $p_i.VeLivePlayerResolutionSwitchReason;
884
- static ios_to_code(value: $p_i.VeLivePlayerResolutionSwitchReason): VeLivePlayerResolutionSwitchReason;
885
- }
886
- export declare class t_VeLivePlayerStreamType {
887
- static code_to_android(value: VeLivePlayerStreamType): $p_a.VeLivePlayerStreamType;
888
- static android_to_code(value: $p_a.VeLivePlayerStreamType): VeLivePlayerStreamType;
889
- static code_to_ios(value: VeLivePlayerStreamType): $p_i.VeLivePlayerStreamType;
890
- static ios_to_code(value: $p_i.VeLivePlayerStreamType): VeLivePlayerStreamType;
891
- }
892
- export declare class t_VeLivePlayerStatus {
893
- static code_to_android(value: VeLivePlayerStatus): $p_a.VeLivePlayerStatus;
894
- static android_to_code(value: $p_a.VeLivePlayerStatus): VeLivePlayerStatus;
895
- static code_to_ios(value: VeLivePlayerStatus): $p_i.VeLivePlayerStatus;
896
- static ios_to_code(value: $p_i.VeLivePlayerStatus): VeLivePlayerStatus;
897
- }
898
- export declare class t_VeLivePlayerFormat {
899
- static code_to_android(value: VeLivePlayerFormat): $p_a.VeLivePlayerFormat;
900
- static android_to_code(value: $p_a.VeLivePlayerFormat): VeLivePlayerFormat;
901
- static code_to_ios(value: VeLivePlayerFormat): $p_i.VeLivePlayerFormat;
902
- static ios_to_code(value: $p_i.VeLivePlayerFormat): VeLivePlayerFormat;
903
- }
904
- export declare class t_VeLivePlayerProtocol {
905
- static code_to_android(value: VeLivePlayerProtocol): $p_a.VeLivePlayerProtocol;
906
- static android_to_code(value: $p_a.VeLivePlayerProtocol): VeLivePlayerProtocol;
907
- static code_to_ios(value: VeLivePlayerProtocol): $p_i.VeLivePlayerProtocol;
908
- static ios_to_code(value: $p_i.VeLivePlayerProtocol): VeLivePlayerProtocol;
909
- }