@byteplus/react-native-live-pull 1.1.3-rc.3 → 1.2.0-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.
- 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 +254 -141
- package/lib/commonjs/index.js +4455 -1648
- package/lib/module/index.js +4455 -1648
- package/lib/typescript/codegen/android/api.d.ts +51 -43
- package/lib/typescript/codegen/android/callback.d.ts +166 -0
- package/lib/typescript/codegen/android/errorcode.d.ts +123 -2
- package/lib/typescript/codegen/android/keytype.d.ts +501 -13
- package/lib/typescript/codegen/ios/api.d.ts +232 -16
- package/lib/typescript/codegen/ios/callback.d.ts +137 -1
- package/lib/typescript/codegen/ios/errorcode.d.ts +104 -0
- package/lib/typescript/codegen/ios/keytype.d.ts +460 -6
- package/lib/typescript/codegen/pack/api.d.ts +66 -57
- package/lib/typescript/codegen/pack/callback.d.ts +45 -21
- package/lib/typescript/codegen/pack/errorcode.d.ts +45 -15
- package/lib/typescript/codegen/pack/keytype.d.ts +388 -114
- 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
|
@@ -3,31 +3,33 @@ import * as $p_i from '../ios/index';
|
|
|
3
3
|
|
|
4
4
|
export declare enum VeLivePlayerRotation {
|
|
5
5
|
|
|
6
|
+
/** {en}
|
|
7
|
+
* @brief No rotation.
|
|
8
|
+
*
|
|
9
|
+
*/
|
|
6
10
|
VeLivePlayerRotation0 = 0,
|
|
7
11
|
|
|
12
|
+
/** {en}
|
|
13
|
+
* @brief Rotate 90 degrees clockwise.
|
|
14
|
+
*
|
|
15
|
+
*/
|
|
8
16
|
VeLivePlayerRotation90 = 1,
|
|
9
17
|
|
|
10
|
-
VeLivePlayerRotation180 = 2,
|
|
11
|
-
|
|
12
|
-
VeLivePlayerRotation270 = 3
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
export declare class VeLivePlayerStreamData {
|
|
16
|
-
protected _instance: any;
|
|
17
|
-
|
|
18
18
|
/** {en}
|
|
19
|
-
* @brief
|
|
19
|
+
* @brief Rotate 180 degrees clockwise.
|
|
20
20
|
*
|
|
21
21
|
*/
|
|
22
|
-
|
|
23
|
-
set mainStreamList(value: VeLivePlayerStream[]);
|
|
22
|
+
VeLivePlayerRotation180 = 2,
|
|
24
23
|
|
|
25
24
|
/** {en}
|
|
26
|
-
* @brief
|
|
25
|
+
* @brief Rotate 270 degrees clockwise.
|
|
27
26
|
*
|
|
28
27
|
*/
|
|
29
|
-
|
|
30
|
-
|
|
28
|
+
VeLivePlayerRotation270 = 3
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export declare class VeLivePlayerStreamData {
|
|
32
|
+
protected _instance: any;
|
|
31
33
|
|
|
32
34
|
/** {en}
|
|
33
35
|
* @brief Whether to enable adaptive bitrate (ABR). The default value is `false`. <br>
|
|
@@ -48,21 +50,21 @@ export declare class VeLivePlayerStreamData {
|
|
|
48
50
|
set enableMainBackupSwitch(value: boolean);
|
|
49
51
|
|
|
50
52
|
/** {en}
|
|
51
|
-
* @brief The default resolution. The default value is `VeLivePlayerResolutionOrigin`, which indicates the original resolution. See VeLivePlayerResolution
|
|
53
|
+
* @brief The default resolution. The default value is `VeLivePlayerResolutionOrigin`, which indicates the original resolution. See [VeLivePlayerResolution](#VeLivePlayerResolution) for details.
|
|
52
54
|
*
|
|
53
55
|
*/
|
|
54
56
|
get defaultResolution(): VeLivePlayerResolution;
|
|
55
57
|
set defaultResolution(value: VeLivePlayerResolution);
|
|
56
58
|
|
|
57
59
|
/** {en}
|
|
58
|
-
* @brief The default video format. The default value is `VeLivePlayerFormatFLV`. See VeLivePlayerFormat
|
|
60
|
+
* @brief The default video format. The default value is `VeLivePlayerFormatFLV`. See [VeLivePlayerFormat](#VeLivePlayerFormat) for details.
|
|
59
61
|
*
|
|
60
62
|
*/
|
|
61
63
|
get defaultFormat(): VeLivePlayerFormat;
|
|
62
64
|
set defaultFormat(value: VeLivePlayerFormat);
|
|
63
65
|
|
|
64
66
|
/** {en}
|
|
65
|
-
* @brief The default transmission protocol. The default value is `VeLivePlayerProtocolTCP`. See VeLivePlayerProtocol
|
|
67
|
+
* @brief The default transmission protocol. The default value is `VeLivePlayerProtocolTCP`. See [VeLivePlayerProtocol](#VeLivePlayerProtocol) for details.
|
|
66
68
|
*
|
|
67
69
|
*/
|
|
68
70
|
get defaultProtocol(): VeLivePlayerProtocol;
|
|
@@ -73,30 +75,70 @@ export declare class VeLivePlayerStreamData {
|
|
|
73
75
|
|
|
74
76
|
export declare enum VeLivePlayerStatus {
|
|
75
77
|
|
|
78
|
+
/** {en}
|
|
79
|
+
* @brief The player finishes preparing and is waiting to render the video.
|
|
80
|
+
*
|
|
81
|
+
*/
|
|
76
82
|
VeLivePlayerStatusPrepared = 0,
|
|
77
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
|
+
*/
|
|
78
88
|
VeLivePlayerStatusPlaying = 1,
|
|
79
89
|
|
|
90
|
+
/** {en}
|
|
91
|
+
* @brief The playback is paused.
|
|
92
|
+
*
|
|
93
|
+
*/
|
|
80
94
|
VeLivePlayerStatusPaused = 2,
|
|
81
95
|
|
|
96
|
+
/** {en}
|
|
97
|
+
* @brief The playback is stopped.
|
|
98
|
+
*
|
|
99
|
+
*/
|
|
82
100
|
VeLivePlayerStatusStopped = 3,
|
|
83
101
|
|
|
102
|
+
/** {en}
|
|
103
|
+
* @brief An error has occurred to the player.
|
|
104
|
+
*
|
|
105
|
+
*/
|
|
84
106
|
VeLivePlayerStatusError = 4
|
|
85
107
|
}
|
|
86
108
|
|
|
87
109
|
export declare enum VeLivePlayerResolutionSwitchReason {
|
|
88
110
|
|
|
111
|
+
/** {en}
|
|
112
|
+
* @brief The resolution is switched automatically through the adaptive bitrate (ABR) feature.
|
|
113
|
+
*
|
|
114
|
+
*/
|
|
89
115
|
VeLivePlayerResolutionSwitchByAuto = 0,
|
|
90
116
|
|
|
117
|
+
/** {en}
|
|
118
|
+
* @brief The resolution is changed after switchResolution{@link #VeLivePlayer#switchResolution} is called.
|
|
119
|
+
*
|
|
120
|
+
*/
|
|
91
121
|
VeLivePlayerResolutionSwitchByManual = 1
|
|
92
122
|
}
|
|
93
123
|
|
|
94
124
|
export declare enum VeLivePlayerFillMode {
|
|
95
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
|
+
*/
|
|
96
130
|
VeLivePlayerFillModeAspectFit = 0,
|
|
97
131
|
|
|
132
|
+
/** {en}
|
|
133
|
+
* @brief Stretch the video to fill the screen. The aspect ratio of the video might change.
|
|
134
|
+
*
|
|
135
|
+
*/
|
|
98
136
|
VeLivePlayerFillModeFullFill = 1,
|
|
99
137
|
|
|
138
|
+
/** {en}
|
|
139
|
+
* @brief Uniformly scale the video until the screen is completely filled. Part of the video may be cropped.
|
|
140
|
+
*
|
|
141
|
+
*/
|
|
100
142
|
VeLivePlayerFillModeAspectFill = 2
|
|
101
143
|
}
|
|
102
144
|
|
|
@@ -129,6 +171,10 @@ export declare class VeLivePlayerStatistics {
|
|
|
129
171
|
*/
|
|
130
172
|
get stallTimeMs(): number;
|
|
131
173
|
|
|
174
|
+
/** {en}
|
|
175
|
+
* @brief Bandwidth estimation, unit is kbps.
|
|
176
|
+
*
|
|
177
|
+
*/
|
|
132
178
|
get bandwidthEstimation(): number;
|
|
133
179
|
|
|
134
180
|
/** {en}
|
|
@@ -176,74 +222,213 @@ export declare class VeLivePlayerStatistics {
|
|
|
176
222
|
|
|
177
223
|
export declare enum VeLivePlayerVideoBufferType {
|
|
178
224
|
|
|
225
|
+
/** {en}
|
|
226
|
+
* @brief Unknown format.
|
|
227
|
+
*
|
|
228
|
+
*/
|
|
179
229
|
VeLivePlayerVideoBufferTypeUnknown = 0,
|
|
180
230
|
|
|
231
|
+
/** {en}
|
|
232
|
+
* @platform android
|
|
233
|
+
* @brief ByteBuffer.
|
|
234
|
+
*
|
|
235
|
+
*/
|
|
181
236
|
VeLivePlayerVideoBufferTypeByteBuffer = 1,
|
|
182
237
|
|
|
238
|
+
/** {en}
|
|
239
|
+
* @platform android
|
|
240
|
+
* @brief ByteArray.
|
|
241
|
+
*
|
|
242
|
+
*/
|
|
183
243
|
VeLivePlayerVideoBufferTypeByteArray = 2,
|
|
184
244
|
|
|
245
|
+
/** {en}
|
|
246
|
+
* @platform android
|
|
247
|
+
* @brief Texture.
|
|
248
|
+
*
|
|
249
|
+
*/
|
|
185
250
|
VeLivePlayerVideoBufferTypeTexture = 3,
|
|
186
251
|
|
|
252
|
+
/** {en}
|
|
253
|
+
* @platform ios
|
|
254
|
+
* @brief CVPixelBufferRef.
|
|
255
|
+
*
|
|
256
|
+
*/
|
|
187
257
|
VeLivePlayerVideoBufferTypePixelBuffer = 4,
|
|
188
258
|
|
|
259
|
+
/** {en}
|
|
260
|
+
* @platform ios
|
|
261
|
+
* @brief CVSampleBufferRef.
|
|
262
|
+
*
|
|
263
|
+
*/
|
|
189
264
|
VeLivePlayerVideoBufferTypeSampleBuffer = 5,
|
|
190
265
|
|
|
266
|
+
/** {en}
|
|
267
|
+
* @platform ios
|
|
268
|
+
* @brief NSData.
|
|
269
|
+
*
|
|
270
|
+
*/
|
|
191
271
|
VeLivePlayerVideoBufferTypeNSData = 6
|
|
192
272
|
}
|
|
193
273
|
|
|
194
274
|
export declare enum VeLivePlayerPixelFormat {
|
|
195
275
|
|
|
276
|
+
/** {en}
|
|
277
|
+
* @brief Unknown format.
|
|
278
|
+
*
|
|
279
|
+
*/
|
|
196
280
|
VeLivePlayerPixelFormatUnknown = 0,
|
|
197
281
|
|
|
282
|
+
/** {en}
|
|
283
|
+
* @platform android
|
|
284
|
+
* @brief RGBA8888.
|
|
285
|
+
*
|
|
286
|
+
*/
|
|
198
287
|
VeLivePlayerPixelFormatRGBA32 = 1,
|
|
199
288
|
|
|
289
|
+
/** {en}
|
|
290
|
+
* @platform android
|
|
291
|
+
* @brief Texture.
|
|
292
|
+
*
|
|
293
|
+
*/
|
|
200
294
|
VeLivePlayerPixelFormatTexture = 2,
|
|
201
295
|
|
|
296
|
+
/** {en}
|
|
297
|
+
* @platform ios
|
|
298
|
+
* @brief NV12.
|
|
299
|
+
*
|
|
300
|
+
*/
|
|
202
301
|
VeLivePlayerPixelFormatNV12 = 3,
|
|
203
302
|
|
|
303
|
+
/** {en}
|
|
304
|
+
* @platform ios
|
|
305
|
+
* @brief YUVI420.
|
|
306
|
+
*
|
|
307
|
+
*/
|
|
204
308
|
VeLivePlayerPixelFormatI420 = 4,
|
|
205
309
|
|
|
310
|
+
/** {en}
|
|
311
|
+
* @platform ios
|
|
312
|
+
* @brief BGRA.
|
|
313
|
+
*
|
|
314
|
+
*/
|
|
206
315
|
VeLivePlayerPixelFormatBGRA32 = 5
|
|
207
316
|
}
|
|
208
317
|
|
|
209
318
|
export declare enum VeLivePlayerAudioBufferType {
|
|
210
319
|
|
|
320
|
+
/** {en}
|
|
321
|
+
* @platform android
|
|
322
|
+
* @brief Unknown format.
|
|
323
|
+
*
|
|
324
|
+
*/
|
|
211
325
|
VeLivePlayerAudioBufferTypeUnknown = 0,
|
|
212
326
|
|
|
327
|
+
/** {en}
|
|
328
|
+
* @platform android
|
|
329
|
+
* @brief ByteArray.
|
|
330
|
+
*
|
|
331
|
+
*/
|
|
213
332
|
VeLivePlayerAudioBufferTypeByteArray = 1,
|
|
214
333
|
|
|
334
|
+
/** {en}
|
|
335
|
+
* @platform ios
|
|
336
|
+
* @brief Unknown format.
|
|
337
|
+
*
|
|
338
|
+
*/
|
|
215
339
|
VeLivePlayerAudioBufferUnknown = 2,
|
|
216
340
|
|
|
341
|
+
/** {en}
|
|
342
|
+
* @platform ios
|
|
343
|
+
* @brief CVSampleBufferRef. The audio data is processed and rendered as sample buffers.
|
|
344
|
+
*
|
|
345
|
+
*/
|
|
217
346
|
VeLivePlayerAudioBufferTypeSampleBuffer = 3,
|
|
218
347
|
|
|
348
|
+
/** {en}
|
|
349
|
+
* @platform ios
|
|
350
|
+
* @brief NSData. The audio data is processed and rendered as NSData objects.
|
|
351
|
+
*
|
|
352
|
+
*/
|
|
219
353
|
VeLivePlayerAudioBufferTypeNSData = 4
|
|
220
354
|
}
|
|
221
355
|
|
|
222
356
|
export declare enum VeLivePlayerResolution {
|
|
223
357
|
|
|
358
|
+
/** {en}
|
|
359
|
+
* @brief Original.
|
|
360
|
+
*
|
|
361
|
+
*/
|
|
224
362
|
VeLivePlayerResolutionOrigin = 0,
|
|
225
363
|
|
|
364
|
+
/** {en}
|
|
365
|
+
* @brief Ultra high definition (UHD).
|
|
366
|
+
*
|
|
367
|
+
*/
|
|
226
368
|
VeLivePlayerResolutionUHD = 1,
|
|
227
369
|
|
|
370
|
+
/** {en}
|
|
371
|
+
* @brief High definition (HD).
|
|
372
|
+
*
|
|
373
|
+
*/
|
|
228
374
|
VeLivePlayerResolutionHD = 2,
|
|
229
375
|
|
|
376
|
+
/** {en}
|
|
377
|
+
* @brief Standard definition (SD).
|
|
378
|
+
*
|
|
379
|
+
*/
|
|
230
380
|
VeLivePlayerResolutionSD = 3,
|
|
231
381
|
|
|
232
|
-
|
|
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
|
|
233
408
|
}
|
|
234
409
|
|
|
235
410
|
export declare class VeLivePlayerConfiguration {
|
|
236
411
|
protected _instance: any;
|
|
237
412
|
|
|
238
413
|
/** {en}
|
|
239
|
-
* @brief Whether to enable the parsing of SEI messages. The default value is `false
|
|
240
|
-
*
|
|
241
|
-
*
|
|
414
|
+
* @brief Whether to enable the parsing of string SEI messages. The default value is `false`.<br/>
|
|
415
|
+
* - true: Enable;
|
|
416
|
+
* - false: Disable.
|
|
242
417
|
*
|
|
243
418
|
*/
|
|
244
419
|
get enableSei(): boolean;
|
|
245
420
|
set enableSei(value: boolean);
|
|
246
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
|
+
|
|
247
432
|
/** {en}
|
|
248
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>
|
|
249
434
|
* - true: Enable;
|
|
@@ -254,7 +439,7 @@ export declare class VeLivePlayerConfiguration {
|
|
|
254
439
|
set enableHardwareDecode(value: boolean);
|
|
255
440
|
|
|
256
441
|
/** {en}
|
|
257
|
-
* @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
|
|
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.
|
|
258
443
|
*
|
|
259
444
|
*/
|
|
260
445
|
get networkTimeoutMs(): number;
|
|
@@ -288,16 +473,16 @@ export declare class VeLivePlayerConfiguration {
|
|
|
288
473
|
set enableLiveDNS(value: boolean);
|
|
289
474
|
|
|
290
475
|
/** {en}
|
|
291
|
-
* @brief Whether to enable periodic callbacks for playback information. The default value is `false`. Refer to VeLivePlayerStatistics
|
|
292
|
-
*
|
|
293
|
-
*
|
|
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.
|
|
294
479
|
*
|
|
295
480
|
*/
|
|
296
481
|
get enableStatisticsCallback(): boolean;
|
|
297
482
|
set enableStatisticsCallback(value: boolean);
|
|
298
483
|
|
|
299
484
|
/** {en}
|
|
300
|
-
* @brief The time interval for periodic callbacks that provide playback information, in seconds. The default value is `5`. If enableStatisticsCallback
|
|
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.
|
|
301
486
|
*
|
|
302
487
|
*/
|
|
303
488
|
get statisticsCallbackInterval(): number;
|
|
@@ -308,28 +493,77 @@ export declare class VeLivePlayerConfiguration {
|
|
|
308
493
|
|
|
309
494
|
export declare enum VeLivePlayerFormat {
|
|
310
495
|
|
|
496
|
+
/** {en}
|
|
497
|
+
* @brief FLV.
|
|
498
|
+
*
|
|
499
|
+
*/
|
|
311
500
|
VeLivePlayerFormatFLV = 0,
|
|
312
501
|
|
|
502
|
+
/** {en}
|
|
503
|
+
* @brief HLS.
|
|
504
|
+
*
|
|
505
|
+
*/
|
|
313
506
|
VeLivePlayerFormatHLS = 1,
|
|
314
507
|
|
|
315
|
-
|
|
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
|
|
316
520
|
}
|
|
317
521
|
|
|
318
522
|
export declare enum VeLivePlayerProtocol {
|
|
319
523
|
|
|
524
|
+
/** {en}
|
|
525
|
+
* @brief TCP.
|
|
526
|
+
*
|
|
527
|
+
*/
|
|
320
528
|
VeLivePlayerProtocolTCP = 0,
|
|
321
529
|
|
|
530
|
+
/** {en}
|
|
531
|
+
* @brief QUIC.
|
|
532
|
+
*
|
|
533
|
+
*/
|
|
322
534
|
VeLivePlayerProtocolQUIC = 1,
|
|
323
535
|
|
|
324
|
-
|
|
536
|
+
/** {en}
|
|
537
|
+
* @brief TLS.
|
|
538
|
+
*
|
|
539
|
+
*/
|
|
540
|
+
VeLivePlayerProtocolTLS = 2,
|
|
541
|
+
|
|
542
|
+
/** {en}
|
|
543
|
+
* @brief HTTP2.0 protocol
|
|
544
|
+
*
|
|
545
|
+
*/
|
|
546
|
+
VeLivePlayerProtocolHTTP2 = 3
|
|
325
547
|
}
|
|
326
548
|
|
|
327
549
|
export declare enum VeLivePlayerMirror {
|
|
328
550
|
|
|
551
|
+
/** {en}
|
|
552
|
+
* @brief No mirroring.
|
|
553
|
+
*
|
|
554
|
+
*/
|
|
329
555
|
VeLivePlayerMirrorNone = 0,
|
|
330
556
|
|
|
557
|
+
/** {en}
|
|
558
|
+
* @brief Horizontal mirroring.
|
|
559
|
+
*
|
|
560
|
+
*/
|
|
331
561
|
VeLivePlayerMirrorHorizontal = 1,
|
|
332
562
|
|
|
563
|
+
/** {en}
|
|
564
|
+
* @brief Vertical mirroring.
|
|
565
|
+
*
|
|
566
|
+
*/
|
|
333
567
|
VeLivePlayerMirrorVertical = 2
|
|
334
568
|
}
|
|
335
569
|
|
|
@@ -346,7 +580,7 @@ export declare class VeLivePlayerStream {
|
|
|
346
580
|
set url(value: string);
|
|
347
581
|
|
|
348
582
|
/** {en}
|
|
349
|
-
* @brief The playback resolution. For details, see VeLivePlayerResolution
|
|
583
|
+
* @brief The playback resolution. For details, see [VeLivePlayerResolution](#VeLivePlayerResolution).
|
|
350
584
|
*
|
|
351
585
|
*/
|
|
352
586
|
get resolution(): VeLivePlayerResolution;
|
|
@@ -360,7 +594,7 @@ export declare class VeLivePlayerStream {
|
|
|
360
594
|
set bitrate(value: number);
|
|
361
595
|
|
|
362
596
|
/** {en}
|
|
363
|
-
* @brief The format of the live stream. See VeLivePlayerFormat
|
|
597
|
+
* @brief The format of the live stream. See [VeLivePlayerFormat](#VeLivePlayerFormat) for details.
|
|
364
598
|
*
|
|
365
599
|
*/
|
|
366
600
|
get format(): VeLivePlayerFormat;
|
|
@@ -368,25 +602,25 @@ export declare class VeLivePlayerStream {
|
|
|
368
602
|
|
|
369
603
|
/** {en}
|
|
370
604
|
* @platform android
|
|
371
|
-
* @brief Whether the stream is a main or backup stream. See VeLivePlayerStreamType
|
|
605
|
+
* @brief Whether the stream is a main or backup stream. See [VeLivePlayerStreamType](#VeLivePlayerStreamType) for details.
|
|
372
606
|
*
|
|
373
607
|
*/
|
|
374
|
-
get
|
|
375
|
-
set
|
|
608
|
+
get streamType(): $p_a.VeLivePlayerStreamType;
|
|
609
|
+
set streamType(value: $p_a.VeLivePlayerStreamType);
|
|
376
610
|
|
|
377
611
|
/** {en}
|
|
378
612
|
* @platform ios
|
|
379
|
-
* @brief The transmission protocol. See VeLivePlayerProtocol
|
|
613
|
+
* @brief The transmission protocol. See [VeLivePlayerProtocol](#VeLivePlayerProtocol) for details.
|
|
380
614
|
*/
|
|
381
|
-
get
|
|
382
|
-
set
|
|
615
|
+
get protocol(): $p_i.VeLivePlayerProtocol;
|
|
616
|
+
set protocol(value: $p_i.VeLivePlayerProtocol);
|
|
383
617
|
|
|
384
618
|
/** {en}
|
|
385
619
|
* @platform ios
|
|
386
|
-
* @brief Whether the stream is a primary or a backup stream. See VeLivePlayerStreamType
|
|
620
|
+
* @brief Whether the stream is a primary or a backup stream. See [VeLivePlayerStreamType](#VeLivePlayerStreamType) for details.
|
|
387
621
|
*/
|
|
388
|
-
get
|
|
389
|
-
set
|
|
622
|
+
get type(): $p_i.VeLivePlayerStreamType;
|
|
623
|
+
set type(value: $p_i.VeLivePlayerStreamType);
|
|
390
624
|
protected __init(...args: any[]): void;
|
|
391
625
|
protected __new_instance(...args: any[]): any;
|
|
392
626
|
}
|
|
@@ -395,14 +629,14 @@ export declare class VeLivePlayerVideoFrame {
|
|
|
395
629
|
protected _instance: any;
|
|
396
630
|
|
|
397
631
|
/** {en}
|
|
398
|
-
* @brief The encapsulation format. See VeLivePlayerVideoBufferType
|
|
632
|
+
* @brief The encapsulation format. See [VeLivePlayerVideoBufferType](#VeLivePlayerVideoBufferType) for details.
|
|
399
633
|
*
|
|
400
634
|
*/
|
|
401
635
|
get bufferType(): VeLivePlayerVideoBufferType;
|
|
402
636
|
set bufferType(value: VeLivePlayerVideoBufferType);
|
|
403
637
|
|
|
404
638
|
/** {en}
|
|
405
|
-
* @brief The pixel format. See VeLivePlayerPixelFormat
|
|
639
|
+
* @brief The pixel format. See [VeLivePlayerPixelFormat](#VeLivePlayerPixelFormat) for details.
|
|
406
640
|
*
|
|
407
641
|
*/
|
|
408
642
|
get pixelFormat(): VeLivePlayerPixelFormat;
|
|
@@ -431,22 +665,22 @@ export declare class VeLivePlayerVideoFrame {
|
|
|
431
665
|
|
|
432
666
|
/** {en}
|
|
433
667
|
* @platform android
|
|
434
|
-
* @brief The texture data for OpenGL rendering. The SDK returns this video data type if you set VeLivePlayerPixelFormat
|
|
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.
|
|
435
669
|
*
|
|
436
670
|
*/
|
|
437
|
-
get
|
|
438
|
-
set
|
|
671
|
+
get texture(): $p_a.VeLivePlayerVideoTexture;
|
|
672
|
+
set texture(value: $p_a.VeLivePlayerVideoTexture);
|
|
439
673
|
|
|
440
674
|
/** {en}
|
|
441
675
|
* @platform android
|
|
442
|
-
* @brief The video data in ByteBuffer format. The SDK returns this video data type if you set VeLivePlayerPixelFormat
|
|
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`.
|
|
443
677
|
*
|
|
444
678
|
*/
|
|
445
|
-
get
|
|
446
|
-
set
|
|
679
|
+
get buffer(): $p_a.ByteBuffer;
|
|
680
|
+
set buffer(value: $p_a.ByteBuffer);
|
|
447
681
|
|
|
448
682
|
/** {en}
|
|
449
|
-
* @brief The video data in ByteArray format. The SDK returns this video data type if you set VeLivePlayerPixelFormat
|
|
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`.
|
|
450
684
|
*
|
|
451
685
|
*/
|
|
452
686
|
get data(): ArrayBuffer;
|
|
@@ -454,40 +688,72 @@ export declare class VeLivePlayerVideoFrame {
|
|
|
454
688
|
|
|
455
689
|
/** {en}
|
|
456
690
|
* @platform ios
|
|
457
|
-
* @brief The video data, if you set VeLivePlayerVideoBufferType
|
|
691
|
+
* @brief The video data, if you set [VeLivePlayerVideoBufferType](#VeLivePlayerVideoBufferType) to `VeLivePlayerVideoBufferTypePixelBuffer`.
|
|
458
692
|
*/
|
|
459
|
-
get
|
|
460
|
-
set
|
|
693
|
+
get pixelBuffer(): $p_i.CVPixelBufferRef;
|
|
694
|
+
set pixelBuffer(value: $p_i.CVPixelBufferRef);
|
|
461
695
|
|
|
462
696
|
/** {en}
|
|
463
697
|
* @platform ios
|
|
464
|
-
* @brief The video data, if you set VeLivePlayerVideoBufferType
|
|
698
|
+
* @brief The video data, if you set [VeLivePlayerVideoBufferType](#VeLivePlayerVideoBufferType) to `VeLivePlayerVideoBufferTypeSampleBuffer`.
|
|
465
699
|
*/
|
|
466
|
-
get
|
|
467
|
-
set
|
|
700
|
+
get sampleBuffer(): $p_i.CMSampleBufferRef;
|
|
701
|
+
set sampleBuffer(value: $p_i.CMSampleBufferRef);
|
|
468
702
|
protected __init(...args: any[]): void;
|
|
469
703
|
protected __new_instance(...args: any[]): any;
|
|
470
704
|
}
|
|
471
705
|
|
|
472
706
|
export declare enum VeLivePlayerStreamType {
|
|
473
707
|
|
|
708
|
+
/** {en}
|
|
709
|
+
* @brief The primary stream.
|
|
710
|
+
*
|
|
711
|
+
*/
|
|
474
712
|
VeLivePlayerStreamTypeMain = 0,
|
|
475
713
|
|
|
714
|
+
/** {en}
|
|
715
|
+
* @brief The backup stream.
|
|
716
|
+
*
|
|
717
|
+
*/
|
|
476
718
|
VeLivePlayerStreamTypeBackup = 1
|
|
477
719
|
}
|
|
478
720
|
|
|
479
721
|
export declare enum VeLivePlayerLogLevel {
|
|
480
722
|
|
|
723
|
+
/** {en}
|
|
724
|
+
* @brief Output logs at the VERBOSE, DEBUG, INFO, WARNING, and ERROR levels.
|
|
725
|
+
*
|
|
726
|
+
*/
|
|
481
727
|
VeLivePlayerLogLevelVerbose = 0,
|
|
482
728
|
|
|
729
|
+
/** {en}
|
|
730
|
+
* @brief Output logs at the DEBUG, INFO, WARNING, and ERROR levels.
|
|
731
|
+
*
|
|
732
|
+
*/
|
|
483
733
|
VeLivePlayerLogLevelDebug = 1,
|
|
484
734
|
|
|
735
|
+
/** {en}
|
|
736
|
+
* @brief Output logs at the INFO, WARNING, and ERROR levels.
|
|
737
|
+
*
|
|
738
|
+
*/
|
|
485
739
|
VeLivePlayerLogLevelInfo = 2,
|
|
486
740
|
|
|
741
|
+
/** {en}
|
|
742
|
+
* @brief Output logs at the WARNING and ERROR levels.
|
|
743
|
+
*
|
|
744
|
+
*/
|
|
487
745
|
VeLivePlayerLogLevelWarn = 3,
|
|
488
746
|
|
|
747
|
+
/** {en}
|
|
748
|
+
* @brief Output logs at the ERROR level.
|
|
749
|
+
*
|
|
750
|
+
*/
|
|
489
751
|
VeLivePlayerLogLevelError = 4,
|
|
490
752
|
|
|
753
|
+
/** {en}
|
|
754
|
+
* @brief Disable log printing.
|
|
755
|
+
*
|
|
756
|
+
*/
|
|
491
757
|
VeLivePlayerLogLevelNone = 5
|
|
492
758
|
}
|
|
493
759
|
|
|
@@ -495,7 +761,7 @@ export declare class VeLivePlayerAudioFrame {
|
|
|
495
761
|
protected _instance: any;
|
|
496
762
|
|
|
497
763
|
/** {en}
|
|
498
|
-
* @brief The encapsulation format of the audio data. See VeLivePlayerAudioBufferType
|
|
764
|
+
* @brief The encapsulation format of the audio data. See [VeLivePlayerAudioBufferType](#VeLivePlayerAudioBufferType) for details.
|
|
499
765
|
*
|
|
500
766
|
*/
|
|
501
767
|
get bufferType(): VeLivePlayerAudioBufferType;
|
|
@@ -533,11 +799,19 @@ export declare class VeLivePlayerAudioFrame {
|
|
|
533
799
|
|
|
534
800
|
/** {en}
|
|
535
801
|
* @platform android
|
|
536
|
-
* @brief The PCM audio data.
|
|
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.
|
|
537
811
|
*
|
|
538
812
|
*/
|
|
539
|
-
get
|
|
540
|
-
set
|
|
813
|
+
get buffer(): $p_a.ByteBuffer[];
|
|
814
|
+
set buffer(value: $p_a.ByteBuffer[]);
|
|
541
815
|
|
|
542
816
|
/** {en}
|
|
543
817
|
* @brief The number of audio samples.
|
|
@@ -550,86 +824,86 @@ export declare class VeLivePlayerAudioFrame {
|
|
|
550
824
|
* @platform ios
|
|
551
825
|
* @brief The PCM audio data.
|
|
552
826
|
*/
|
|
553
|
-
get
|
|
554
|
-
set
|
|
827
|
+
get data(): $p_i.NSData;
|
|
828
|
+
set data(value: $p_i.NSData);
|
|
555
829
|
protected __init(...args: any[]): void;
|
|
556
830
|
protected __new_instance(...args: any[]): any;
|
|
557
831
|
}
|
|
558
832
|
export declare class t_VeLivePlayerResolution {
|
|
559
|
-
static
|
|
560
|
-
static
|
|
561
|
-
static
|
|
562
|
-
static
|
|
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;
|
|
563
837
|
}
|
|
564
838
|
export declare class t_VeLivePlayerFillMode {
|
|
565
|
-
static
|
|
566
|
-
static
|
|
567
|
-
static
|
|
568
|
-
static
|
|
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;
|
|
569
843
|
}
|
|
570
844
|
export declare class t_VeLivePlayerPixelFormat {
|
|
571
|
-
static
|
|
572
|
-
static
|
|
573
|
-
static
|
|
574
|
-
static
|
|
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;
|
|
575
849
|
}
|
|
576
850
|
export declare class t_VeLivePlayerVideoBufferType {
|
|
577
|
-
static
|
|
578
|
-
static
|
|
579
|
-
static
|
|
580
|
-
static
|
|
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;
|
|
581
861
|
}
|
|
582
862
|
export declare class t_VeLivePlayerRotation {
|
|
583
|
-
static
|
|
584
|
-
static
|
|
585
|
-
static
|
|
586
|
-
static
|
|
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;
|
|
587
867
|
}
|
|
588
868
|
export declare class t_VeLivePlayerMirror {
|
|
589
|
-
static
|
|
590
|
-
static
|
|
591
|
-
static
|
|
592
|
-
static
|
|
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;
|
|
593
873
|
}
|
|
594
874
|
export declare class t_VeLivePlayerLogLevel {
|
|
595
|
-
static
|
|
596
|
-
static
|
|
597
|
-
static
|
|
598
|
-
static
|
|
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;
|
|
599
879
|
}
|
|
600
880
|
export declare class t_VeLivePlayerResolutionSwitchReason {
|
|
601
|
-
static
|
|
602
|
-
static
|
|
603
|
-
static
|
|
604
|
-
static
|
|
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;
|
|
605
885
|
}
|
|
606
886
|
export declare class t_VeLivePlayerStreamType {
|
|
607
|
-
static
|
|
608
|
-
static
|
|
609
|
-
static
|
|
610
|
-
static
|
|
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;
|
|
611
891
|
}
|
|
612
892
|
export declare class t_VeLivePlayerStatus {
|
|
613
|
-
static
|
|
614
|
-
static
|
|
615
|
-
static
|
|
616
|
-
static
|
|
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;
|
|
617
897
|
}
|
|
618
898
|
export declare class t_VeLivePlayerFormat {
|
|
619
|
-
static
|
|
620
|
-
static
|
|
621
|
-
static
|
|
622
|
-
static
|
|
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;
|
|
623
903
|
}
|
|
624
904
|
export declare class t_VeLivePlayerProtocol {
|
|
625
|
-
static
|
|
626
|
-
static
|
|
627
|
-
static
|
|
628
|
-
static
|
|
629
|
-
}
|
|
630
|
-
export declare class t_VeLivePlayerAudioBufferType {
|
|
631
|
-
static ts_to_android(value: VeLivePlayerAudioBufferType): $p_a.VeLivePlayerAudioBufferType;
|
|
632
|
-
static android_to_ts(value: $p_a.VeLivePlayerAudioBufferType): VeLivePlayerAudioBufferType;
|
|
633
|
-
static ts_to_ios(value: VeLivePlayerAudioBufferType): $p_i.VeLivePlayerAudioBufferType;
|
|
634
|
-
static ios_to_ts(value: $p_i.VeLivePlayerAudioBufferType): VeLivePlayerAudioBufferType;
|
|
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;
|
|
635
909
|
}
|