@byteplus/react-native-live-push 1.0.1 → 1.0.3-rc.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/android/build.gradle +2 -2
- package/android/src/main/java/com/volcengine/velive/rn/push/NativeVariableManager.java +1 -1
- package/android/src/main/java/com/volcengine/velive/rn/push/VeLivePushModule.java +5 -3
- package/android/src/main/java/com/volcengine/velive/rn/push/VeLivePushViewManager.java +10 -5
- package/ios/VeLivePushView.m +1 -1
- package/ios/VeLivePushViewManager.m +5 -1
- package/lib/commonjs/index.js +21799 -17839
- package/lib/module/index.js +21799 -17832
- package/lib/typescript/android/index.d.ts +3 -0
- package/lib/typescript/codegen/android/api.d.ts +1350 -75
- package/lib/typescript/codegen/android/keytype.d.ts +439 -62
- package/lib/typescript/codegen/android/types.d.ts +7 -6
- package/lib/typescript/codegen/ios/api.d.ts +11 -19
- package/lib/typescript/codegen/ios/callback.d.ts +17 -25
- package/lib/typescript/codegen/ios/external.d.ts +1 -0
- package/lib/typescript/codegen/ios/index.d.ts +1 -0
- package/lib/typescript/codegen/ios/keytype.d.ts +6 -34
- package/lib/typescript/codegen/ios/types.d.ts +16 -5
- package/lib/typescript/codegen/pack/api.d.ts +1250 -1216
- package/lib/typescript/codegen/pack/callback.d.ts +153 -295
- package/lib/typescript/codegen/pack/errorcode.d.ts +11 -150
- package/lib/typescript/codegen/pack/index.d.ts +1 -1
- package/lib/typescript/codegen/pack/keytype.d.ts +806 -1366
- package/lib/typescript/codegen/pack/types.d.ts +67 -0
- package/lib/typescript/component.d.ts +10 -3
- package/lib/typescript/core/api.d.ts +2 -2
- package/lib/typescript/core/callback.d.ts +2 -2
- package/lib/typescript/core/errorcode.d.ts +2 -2
- package/lib/typescript/core/keytype.d.ts +2 -7
- package/lib/typescript/platforms/ios/extends.d.ts +17 -0
- package/package.json +2 -1
- package/react-native-velive-push.podspec +3 -3
|
@@ -1,41 +1,183 @@
|
|
|
1
1
|
import { int, double, String, ArrayList, float, long } from './types';
|
|
2
2
|
export declare class VeLiveVideoEncoderConfiguration {
|
|
3
3
|
|
|
4
|
+
/** {en}
|
|
5
|
+
* @detail api
|
|
6
|
+
* @brief Gets the video resolution.
|
|
7
|
+
* @return <br>
|
|
8
|
+
* The video resolution. See VeLiveVideoResolution {@link #VeLiveVideoResolution} for details.
|
|
9
|
+
*
|
|
10
|
+
*/
|
|
4
11
|
getResolution(): VeLiveVideoResolution;
|
|
5
12
|
|
|
6
|
-
|
|
7
|
-
|
|
13
|
+
/** {en}
|
|
14
|
+
* @detail api
|
|
15
|
+
* @brief Sets the video resolution.
|
|
16
|
+
* @param resolution The video resolution. The default value is `VeLiveVideoResolution720P`. See VeLiveVideoResolution {@link #VeLiveVideoResolution} for details.
|
|
17
|
+
* @return <br>
|
|
18
|
+
* The video encoding configurations. See VeLiveVideoEncoderConfiguration {@link #VeLiveVideoEncoderConfiguration} for details.
|
|
19
|
+
*
|
|
20
|
+
*/
|
|
21
|
+
setResolution(resolution: VeLiveVideoResolution): this;
|
|
22
|
+
|
|
23
|
+
/** {en}
|
|
24
|
+
* @detail api
|
|
25
|
+
* @brief Gets the video codec.
|
|
26
|
+
* @return <br>
|
|
27
|
+
* The video codec. See VeLiveVideoCodec {@link #VeLiveVideoCodec} for details.
|
|
28
|
+
*
|
|
29
|
+
*/
|
|
8
30
|
getCodec(): VeLiveVideoCodec;
|
|
9
31
|
|
|
10
|
-
|
|
11
|
-
|
|
32
|
+
/** {en}
|
|
33
|
+
* @detail api
|
|
34
|
+
* @brief Sets the video codec.
|
|
35
|
+
* @return The video encoding configurations. See [VeLiveVideoEncoderConfiguration](broadcast-sdk-for-android-type-definition#VeLiveVideoEncoderConfiguration) for details.
|
|
36
|
+
* @param codec <br>The video codec. See [VeLiveVideoCodec](broadcast-sdk-for-android-type-definition#VeLiveVideoCodec) for details.
|
|
37
|
+
*
|
|
38
|
+
*/
|
|
39
|
+
setCodec(codec: VeLiveVideoCodec): this;
|
|
40
|
+
|
|
41
|
+
/** {en}
|
|
42
|
+
* @detail api
|
|
43
|
+
* @brief Get the encoded video bitrate.
|
|
44
|
+
* @return <br>
|
|
45
|
+
* The encoded video bitrate.
|
|
46
|
+
*
|
|
47
|
+
*/
|
|
12
48
|
getBitrate(): int;
|
|
13
49
|
|
|
14
|
-
|
|
15
|
-
|
|
50
|
+
/** {en}
|
|
51
|
+
* @detail api
|
|
52
|
+
* @brief Sets the encoded video bitrate.
|
|
53
|
+
* @param bitrate The encoded video bitrate, in Kbps. The default value depends on the value of the `resolution` parameter.
|
|
54
|
+
* @return <br>
|
|
55
|
+
* The video encoding configurations. See VeLiveVideoEncoderConfiguration {@link #VeLiveVideoEncoderConfiguration} for details.
|
|
56
|
+
*
|
|
57
|
+
*/
|
|
58
|
+
setBitrate(bitrate: int): this;
|
|
59
|
+
|
|
60
|
+
/** {en}
|
|
61
|
+
* @detail api
|
|
62
|
+
* @brief Gets the minimum encoded video bitrate.
|
|
63
|
+
* @return <br>
|
|
64
|
+
* The minimum encoded video bitrate.
|
|
65
|
+
*
|
|
66
|
+
*/
|
|
16
67
|
getMinBitrate(): int;
|
|
17
68
|
|
|
18
|
-
|
|
19
|
-
|
|
69
|
+
/** {en}
|
|
70
|
+
* @detail api
|
|
71
|
+
* @brief Sets the minimum encoded video bitrate.
|
|
72
|
+
* @param minBitrate The minimum encoded video bitrate, in Kbps, when the adaptive bitrate (ABR) feature is enabled. The default value depends on the value of the `resolution` parameter.
|
|
73
|
+
* @return <br>
|
|
74
|
+
* The video encoding configurations. See VeLiveVideoEncoderConfiguration {@link #VeLiveVideoEncoderConfiguration} for details.
|
|
75
|
+
*
|
|
76
|
+
*/
|
|
77
|
+
setMinBitrate(minBitrate: int): this;
|
|
78
|
+
|
|
79
|
+
/** {en}
|
|
80
|
+
* @detail api
|
|
81
|
+
* @brief Gets the maximum encoded video bitrate.
|
|
82
|
+
* @return <br>
|
|
83
|
+
* The maximum encoded video bitrate.
|
|
84
|
+
*
|
|
85
|
+
*/
|
|
20
86
|
getMaxBitrate(): int;
|
|
21
87
|
|
|
22
|
-
|
|
23
|
-
|
|
88
|
+
/** {en}
|
|
89
|
+
* @detail api
|
|
90
|
+
* @brief Sets the maximum encoded video bitrate.
|
|
91
|
+
* @param maxBitrate The maximum video encoding bitrate, in Kbps, when the adaptive bitrate (ABR) feature is enabled. The default value depends on the value of the `resolution` parameter.
|
|
92
|
+
* @return <br>
|
|
93
|
+
* The video encoding configurations. See VeLiveVideoEncoderConfiguration {@link #VeLiveVideoEncoderConfiguration} for details.
|
|
94
|
+
*
|
|
95
|
+
*/
|
|
96
|
+
setMaxBitrate(maxBitrate: int): this;
|
|
97
|
+
|
|
98
|
+
/** {en}
|
|
99
|
+
* @detail api
|
|
100
|
+
* @brief Gets the encoded video GOP size.
|
|
101
|
+
* @return <br>
|
|
102
|
+
* The encoded video GOP size.
|
|
103
|
+
*
|
|
104
|
+
*/
|
|
24
105
|
getGopSize(): int;
|
|
25
106
|
|
|
26
|
-
|
|
27
|
-
|
|
107
|
+
/** {en}
|
|
108
|
+
* @detail api
|
|
109
|
+
* @brief Sets the encoded video GOP size.
|
|
110
|
+
* @param gopSize The encoded video GOP size, in seconds. The default value is `2`.
|
|
111
|
+
* @return <br>
|
|
112
|
+
* The video encoding configurations. See VeLiveVideoEncoderConfiguration {@link #VeLiveVideoEncoderConfiguration} for details.
|
|
113
|
+
*
|
|
114
|
+
*/
|
|
115
|
+
setGopSize(gopSize: int): this;
|
|
116
|
+
|
|
117
|
+
/** {en}
|
|
118
|
+
* @detail api
|
|
119
|
+
* @brief Gets the encoded frame rate.
|
|
120
|
+
* @return <br>
|
|
121
|
+
* The encoded frame rate.
|
|
122
|
+
*
|
|
123
|
+
*/
|
|
28
124
|
getFps(): int;
|
|
29
125
|
|
|
30
|
-
|
|
31
|
-
|
|
126
|
+
/** {en}
|
|
127
|
+
* @detail api
|
|
128
|
+
* @brief Sets the encoded frame rate.
|
|
129
|
+
* @param fps The encoded frame rate, in fps. The default value is `15`.
|
|
130
|
+
* @return <br>
|
|
131
|
+
* The video encoding configurations. See VeLiveVideoEncoderConfiguration {@link #VeLiveVideoEncoderConfiguration} for details.
|
|
132
|
+
*
|
|
133
|
+
*/
|
|
134
|
+
setFps(fps: int): this;
|
|
135
|
+
|
|
136
|
+
/** {en}
|
|
137
|
+
* @detail api
|
|
138
|
+
* @brief Gets whether to enable B frames.
|
|
139
|
+
* @return <br>
|
|
140
|
+
* Whether to enable B frames. <br>
|
|
141
|
+
* - true: Enable;
|
|
142
|
+
* - false: Disable.
|
|
143
|
+
*
|
|
144
|
+
*/
|
|
32
145
|
isEnableBFrame(): boolean;
|
|
33
146
|
|
|
34
|
-
|
|
35
|
-
|
|
147
|
+
/** {en}
|
|
148
|
+
* @detail api
|
|
149
|
+
* @brief Sets whether to enable B frames.
|
|
150
|
+
* @param enableBFrame Whether to enable B frames. <br>
|
|
151
|
+
* - true: Enable;
|
|
152
|
+
* - false: (Default) Disable.
|
|
153
|
+
* @return <br>
|
|
154
|
+
* The video encoding configurations. See VeLiveVideoEncoderConfiguration {@link #VeLiveVideoEncoderConfiguration} for details.
|
|
155
|
+
*
|
|
156
|
+
*/
|
|
157
|
+
setEnableBFrame(enableBFrame: boolean): this;
|
|
158
|
+
|
|
159
|
+
/** {en}
|
|
160
|
+
* @detail api
|
|
161
|
+
* @brief Gets whether to enable hardware encoding.
|
|
162
|
+
* @return <br>
|
|
163
|
+
* Whether to enable hardware encoding. <br>
|
|
164
|
+
* - true: Enable;
|
|
165
|
+
* - false: Disable.
|
|
166
|
+
*
|
|
167
|
+
*/
|
|
36
168
|
isEnableAccelerate(): boolean;
|
|
37
169
|
|
|
38
|
-
|
|
170
|
+
/** {en}
|
|
171
|
+
* @detail api
|
|
172
|
+
* @brief Enables hardware encoding.
|
|
173
|
+
* @param enableAccelerate Whether to enable hardware encoding. <br>
|
|
174
|
+
* - true: (Default) Enable;
|
|
175
|
+
* - false: Disable.
|
|
176
|
+
* @return <br>
|
|
177
|
+
* The video encoding configurations. See VeLiveVideoEncoderConfiguration {@link #VeLiveVideoEncoderConfiguration} for details.
|
|
178
|
+
*
|
|
179
|
+
*/
|
|
180
|
+
setEnableAccelerate(enableAccelerate: boolean): this;
|
|
39
181
|
}
|
|
40
182
|
export declare enum VeLiveAudioCodec {
|
|
41
183
|
|
|
@@ -107,9 +249,9 @@ export declare enum VeLiveAudioBufferType {
|
|
|
107
249
|
}
|
|
108
250
|
export declare enum VeLiveAudioChannel {
|
|
109
251
|
|
|
110
|
-
VeLiveAudioChannelMono =
|
|
252
|
+
VeLiveAudioChannelMono = 1,
|
|
111
253
|
|
|
112
|
-
VeLiveAudioChannelStereo =
|
|
254
|
+
VeLiveAudioChannelStereo = 2
|
|
113
255
|
}
|
|
114
256
|
export declare enum VeLiveFirstFrameType {
|
|
115
257
|
|
|
@@ -121,14 +263,6 @@ export declare enum VeLiveFirstFrameType {
|
|
|
121
263
|
|
|
122
264
|
VeLiveFirstSendFrame = 3
|
|
123
265
|
}
|
|
124
|
-
export declare enum VeLiveVideoFluencyLevel {
|
|
125
|
-
|
|
126
|
-
VeLiveVideoFluencyLevelSmooth = 0,
|
|
127
|
-
|
|
128
|
-
VeLiveVideoFluencyLevelSluggish = 1,
|
|
129
|
-
|
|
130
|
-
VeLiveVideoFluencyLevelBlocked = 2
|
|
131
|
-
}
|
|
132
266
|
export declare enum VeLiveVideoCaptureType {
|
|
133
267
|
|
|
134
268
|
VeLiveVideoCaptureFrontCamera = 0,
|
|
@@ -163,11 +297,11 @@ export declare enum VeLiveVideoRotation {
|
|
|
163
297
|
|
|
164
298
|
VeLiveVideoRotation0 = 0,
|
|
165
299
|
|
|
166
|
-
VeLiveVideoRotation90 =
|
|
300
|
+
VeLiveVideoRotation90 = 90,
|
|
167
301
|
|
|
168
|
-
VeLiveVideoRotation180 =
|
|
302
|
+
VeLiveVideoRotation180 = 180,
|
|
169
303
|
|
|
170
|
-
VeLiveVideoRotation270 =
|
|
304
|
+
VeLiveVideoRotation270 = 270
|
|
171
305
|
}
|
|
172
306
|
export declare enum VeLiveVideoFrameSource {
|
|
173
307
|
|
|
@@ -195,13 +329,41 @@ export declare enum VeLiveVideoBufferType {
|
|
|
195
329
|
}
|
|
196
330
|
export declare class VeLiveAudioCaptureConfiguration {
|
|
197
331
|
|
|
332
|
+
/** {en}
|
|
333
|
+
* @detail api
|
|
334
|
+
* @brief Gets the sample rate.
|
|
335
|
+
* @return <br>
|
|
336
|
+
* The sample rate. See VeLiveAudioSampleRate {@link #VeLiveAudioSampleRate} for details.
|
|
337
|
+
*
|
|
338
|
+
*/
|
|
198
339
|
getSampleRate(): VeLiveAudioSampleRate;
|
|
199
340
|
|
|
200
|
-
|
|
201
|
-
|
|
341
|
+
/** {en}
|
|
342
|
+
* @detail api
|
|
343
|
+
* @brief Sets the sample rate.
|
|
344
|
+
* @return <br>The audio capture configurations. See VeLiveAudioCaptureConfiguration for details.
|
|
345
|
+
* @param sampleRate The sample rate. The default value is `VeLiveAudioSampleRate44100`. See VeLiveAudioSampleRate {@link #VeLiveAudioSampleRate} for details.
|
|
346
|
+
*
|
|
347
|
+
*/
|
|
348
|
+
setSampleRate(sampleRate: VeLiveAudioSampleRate): this;
|
|
349
|
+
|
|
350
|
+
/** {en}
|
|
351
|
+
* @detail api
|
|
352
|
+
* @brief Gets the number of audio channels.
|
|
353
|
+
* @return <br>
|
|
354
|
+
* The number of audio channels. See VeLiveAudioChannel {@link #VeLiveAudioChannel} for details.
|
|
355
|
+
*
|
|
356
|
+
*/
|
|
202
357
|
getChannel(): VeLiveAudioChannel;
|
|
203
358
|
|
|
204
|
-
|
|
359
|
+
/** {en}
|
|
360
|
+
* @detail api
|
|
361
|
+
* @brief Sets the number of audio channels.
|
|
362
|
+
* @return <br>The audio capture configurations. See VeLiveAudioCaptureConfiguration for details.
|
|
363
|
+
* @param channel The number of audio channels. The default value is `VeLiveAudioChannelStereo`. See VeLiveAudioChannel {@link #VeLiveAudioChannel} for details.
|
|
364
|
+
*
|
|
365
|
+
*/
|
|
366
|
+
setChannel(channel: VeLiveAudioChannel): this;
|
|
205
367
|
}
|
|
206
368
|
export declare class VeLiveStreamMixDescription {
|
|
207
369
|
|
|
@@ -213,15 +375,15 @@ export declare class VeLiveStreamMixDescription {
|
|
|
213
375
|
}
|
|
214
376
|
export declare enum VeLiveAudioSampleRate {
|
|
215
377
|
|
|
216
|
-
VeLiveAudioSampleRate8000 =
|
|
378
|
+
VeLiveAudioSampleRate8000 = 8000,
|
|
217
379
|
|
|
218
|
-
VeLiveAudioSampleRate16000 =
|
|
380
|
+
VeLiveAudioSampleRate16000 = 16000,
|
|
219
381
|
|
|
220
|
-
VeLiveAudioSampleRate32000 =
|
|
382
|
+
VeLiveAudioSampleRate32000 = 32000,
|
|
221
383
|
|
|
222
|
-
VeLiveAudioSampleRate44100 =
|
|
384
|
+
VeLiveAudioSampleRate44100 = 44100,
|
|
223
385
|
|
|
224
|
-
VeLiveAudioSampleRate48000 =
|
|
386
|
+
VeLiveAudioSampleRate48000 = 48000
|
|
225
387
|
}
|
|
226
388
|
export declare enum VeLiveAudioPowerLevel {
|
|
227
389
|
|
|
@@ -239,17 +401,59 @@ export declare enum VeLiveAudioPowerLevel {
|
|
|
239
401
|
}
|
|
240
402
|
export declare class VeLiveVideoCaptureConfiguration {
|
|
241
403
|
|
|
404
|
+
/** {en}
|
|
405
|
+
* @detail api
|
|
406
|
+
* @brief Gets the width of the captured video.
|
|
407
|
+
* @return <br>
|
|
408
|
+
* The width of the captured video.
|
|
409
|
+
*
|
|
410
|
+
*/
|
|
242
411
|
getWidth(): int;
|
|
243
412
|
|
|
244
|
-
|
|
245
|
-
|
|
413
|
+
/** {en}
|
|
414
|
+
* @detail api
|
|
415
|
+
* @brief Sets the width of the captured video.
|
|
416
|
+
* @return <br>The video capture configurations. See VeLiveVideoCaptureConfiguration for details.
|
|
417
|
+
* @param width The width of the captured video. The default value is `720`.
|
|
418
|
+
*
|
|
419
|
+
*/
|
|
420
|
+
setWidth(width: int): this;
|
|
421
|
+
|
|
422
|
+
/** {en}
|
|
423
|
+
* @detail api
|
|
424
|
+
* @brief Gets the height of the captured video.
|
|
425
|
+
* @return <br>
|
|
426
|
+
* The height of the captured video.
|
|
427
|
+
*
|
|
428
|
+
*/
|
|
246
429
|
getHeight(): int;
|
|
247
430
|
|
|
248
|
-
|
|
249
|
-
|
|
431
|
+
/** {en}
|
|
432
|
+
* @detail api
|
|
433
|
+
* @brief Sets the height of the captured video.
|
|
434
|
+
* @return <br>The video capture configurations. See VeLiveVideoCaptureConfiguration for details.
|
|
435
|
+
* @param height The height of the captured video. The default value is `1280`.
|
|
436
|
+
*
|
|
437
|
+
*/
|
|
438
|
+
setHeight(height: int): this;
|
|
439
|
+
|
|
440
|
+
/** {en}
|
|
441
|
+
* @detail api
|
|
442
|
+
* @brief Gets the captured frame rate.
|
|
443
|
+
* @return <br>
|
|
444
|
+
* The captured frame rate.
|
|
445
|
+
*
|
|
446
|
+
*/
|
|
250
447
|
getFps(): int;
|
|
251
448
|
|
|
252
|
-
|
|
449
|
+
/** {en}
|
|
450
|
+
* @detail api
|
|
451
|
+
* @brief Sets the captured frame rate.
|
|
452
|
+
* @return <br>The video capture configurations. See VeLiveVideoCaptureConfiguration for details.
|
|
453
|
+
* @param fps The captured frame rate. The default value is `15`.
|
|
454
|
+
*
|
|
455
|
+
*/
|
|
456
|
+
setFps(fps: int): this;
|
|
253
457
|
}
|
|
254
458
|
export declare enum VeLivePixelFormat {
|
|
255
459
|
|
|
@@ -319,7 +523,7 @@ export declare enum VeLivePusherLogLevel {
|
|
|
319
523
|
}
|
|
320
524
|
export declare enum VeLiveAudioBitDepth {
|
|
321
525
|
|
|
322
|
-
VeLiveAudioBitDepth16 =
|
|
526
|
+
VeLiveAudioBitDepth16 = 16
|
|
323
527
|
}
|
|
324
528
|
export declare class VeLiveMixAudioLayout {
|
|
325
529
|
|
|
@@ -327,6 +531,12 @@ export declare class VeLiveMixAudioLayout {
|
|
|
327
531
|
|
|
328
532
|
volume: float;
|
|
329
533
|
|
|
534
|
+
/** {en}
|
|
535
|
+
* @detail api
|
|
536
|
+
* @brief Updates audio mixing configurations.
|
|
537
|
+
* @param other New audio mixing configurations. See VeLiveMixAudioLayout for details.
|
|
538
|
+
*
|
|
539
|
+
*/
|
|
330
540
|
update(other: VeLiveMixAudioLayout): void;
|
|
331
541
|
}
|
|
332
542
|
export declare enum VeLiveOrientation {
|
|
@@ -373,21 +583,77 @@ export declare class VeLivePusherLogConfig {
|
|
|
373
583
|
}
|
|
374
584
|
export declare class VeLiveFileRecorderConfiguration {
|
|
375
585
|
|
|
586
|
+
/** {en}
|
|
587
|
+
* @detail api
|
|
588
|
+
* @brief Gets the width of the recorded video.
|
|
589
|
+
* @return <br>
|
|
590
|
+
* The width of the recorded video.
|
|
591
|
+
*
|
|
592
|
+
*/
|
|
376
593
|
getWidth(): int;
|
|
377
594
|
|
|
378
|
-
|
|
379
|
-
|
|
595
|
+
/** {en}
|
|
596
|
+
* @detail api
|
|
597
|
+
* @brief Sets the width of the recorded video.
|
|
598
|
+
* @return <br>The local recording configurations. See VeLiveFileRecorderConfiguration for details.
|
|
599
|
+
* @param width The width of the recorded video. The default value is `360`.
|
|
600
|
+
*
|
|
601
|
+
*/
|
|
602
|
+
setWidth(width: int): this;
|
|
603
|
+
|
|
604
|
+
/** {en}
|
|
605
|
+
* @detail api
|
|
606
|
+
* @brief Gets the height of the recorded video.
|
|
607
|
+
* @return <br>
|
|
608
|
+
* The height of the recorded video.
|
|
609
|
+
*
|
|
610
|
+
*/
|
|
380
611
|
getHeight(): int;
|
|
381
612
|
|
|
382
|
-
|
|
383
|
-
|
|
613
|
+
/** {en}
|
|
614
|
+
* @detail api
|
|
615
|
+
* @brief Sets the height of the recorded video.
|
|
616
|
+
* @return <br>The local recording configurations. See VeLiveFileRecorderConfiguration for details.
|
|
617
|
+
* @param height The height of the recorded video, the default value is `640`.
|
|
618
|
+
*
|
|
619
|
+
*/
|
|
620
|
+
setHeight(height: int): this;
|
|
621
|
+
|
|
622
|
+
/** {en}
|
|
623
|
+
* @detail api
|
|
624
|
+
* @brief Gets the frame rate of the recorded video.
|
|
625
|
+
* @return <br>
|
|
626
|
+
* The frame rate of the recorded video.
|
|
627
|
+
*
|
|
628
|
+
*/
|
|
384
629
|
getFps(): int;
|
|
385
630
|
|
|
386
|
-
|
|
387
|
-
|
|
631
|
+
/** {en}
|
|
632
|
+
* @detail api
|
|
633
|
+
* @brief Sets the frame rate of the recorded video.
|
|
634
|
+
* @return <br>The local recording configurations. See VeLiveFileRecorderConfiguration for details.
|
|
635
|
+
* @param fps The frame rate of the recorded video. The default value is `15`.
|
|
636
|
+
*
|
|
637
|
+
*/
|
|
638
|
+
setFps(fps: int): this;
|
|
639
|
+
|
|
640
|
+
/** {en}
|
|
641
|
+
* @detail api
|
|
642
|
+
* @brief Gets the bitrate of the recorded video.
|
|
643
|
+
* @return <br>
|
|
644
|
+
* The bitrate of the recorded video.
|
|
645
|
+
*
|
|
646
|
+
*/
|
|
388
647
|
getBitrate(): int;
|
|
389
648
|
|
|
390
|
-
|
|
649
|
+
/** {en}
|
|
650
|
+
* @detail api
|
|
651
|
+
* @brief Sets the bitrate of the recorded video.
|
|
652
|
+
* @return <br>The local recording configurations. See VeLiveFileRecorderConfiguration for details.
|
|
653
|
+
* @param bitrate The bitrate of the recorded video, in Kbps. The default value is `2000`.
|
|
654
|
+
*
|
|
655
|
+
*/
|
|
656
|
+
setBitrate(bitrate: int): this;
|
|
391
657
|
}
|
|
392
658
|
export declare class VeLiveMixVideoLayout {
|
|
393
659
|
|
|
@@ -407,22 +673,77 @@ export declare class VeLiveMixVideoLayout {
|
|
|
407
673
|
|
|
408
674
|
renderMode: VeLivePusherRenderMode;
|
|
409
675
|
|
|
676
|
+
/** {en}
|
|
677
|
+
* @detail api
|
|
678
|
+
* @brief Updates video mixing configurations.
|
|
679
|
+
* @param other New video mixing configurations. See VeLiveMixVideoLayout {@link #VeLiveMixVideoLayout} for details.
|
|
680
|
+
*
|
|
681
|
+
*/
|
|
410
682
|
update(other: VeLiveMixVideoLayout): void;
|
|
411
683
|
}
|
|
412
684
|
export declare class VeLiveVideoEffectLicenseConfiguration {
|
|
413
685
|
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
686
|
+
/** {en}
|
|
687
|
+
* @detail api
|
|
688
|
+
* @brief Initializes the license configurations in local authentication mode.
|
|
689
|
+
* @return <br>A VeLiveVideoEffectLicenseConfiguration object that uses the specified local path for license authentication.
|
|
690
|
+
* @param path The local cache path for the video effects license. You can get the path through the getPath {@link #getPath} property.
|
|
691
|
+
*
|
|
692
|
+
*/
|
|
693
|
+
static create(path: String): VeLiveVideoEffectLicenseConfiguration;
|
|
694
|
+
|
|
695
|
+
/** {en}
|
|
696
|
+
* @detail api
|
|
697
|
+
* @brief Initializes the license configurations in local authentication mode.
|
|
698
|
+
* @return <br>A VeLiveVideoEffectLicenseConfiguration object that uses the specified local path for license authentication.
|
|
699
|
+
* @param path The local cache path for the video effects license. You can get the path through the getPath {@link #getPath} property.
|
|
700
|
+
*
|
|
701
|
+
*/
|
|
702
|
+
static create_key$secret$url(key: String, secret: String, url: String): VeLiveVideoEffectLicenseConfiguration;
|
|
703
|
+
|
|
704
|
+
/** {en}
|
|
705
|
+
* @detail api
|
|
706
|
+
* @brief Gets the special effects license type.
|
|
707
|
+
* @return <br>
|
|
708
|
+
* The special effects license type. See VeLiveVideoEffectLicenseType {@link #VeLiveVideoEffectLicenseType} for details..
|
|
709
|
+
*
|
|
710
|
+
*/
|
|
418
711
|
getType(): VeLiveVideoEffectLicenseType;
|
|
419
712
|
|
|
713
|
+
/** {en}
|
|
714
|
+
* @detail api
|
|
715
|
+
* @brief Gets the local path to the video effects license.
|
|
716
|
+
* @return <br>
|
|
717
|
+
* The local path to the video effects license, when VeLiveVideoEffectLicenseType {@link #VeLiveVideoEffectLicenseType} is `VeLiveVideoEffectLicenseTypeOffLine`.
|
|
718
|
+
*
|
|
719
|
+
*/
|
|
420
720
|
getPath(): String;
|
|
421
721
|
|
|
722
|
+
/** {en}
|
|
723
|
+
* @detail api
|
|
724
|
+
* @brief Gets the online authentication key for the video effects licenses.
|
|
725
|
+
* @return <br>
|
|
726
|
+
* The online authentication key for the video effects license, when VeLiveVideoEffectLicenseType {@link #VeLiveVideoEffectLicenseType} is `VeLiveVideoEffectLicenseTypeOnLine`.
|
|
727
|
+
*
|
|
728
|
+
*/
|
|
422
729
|
getKey(): String;
|
|
423
730
|
|
|
731
|
+
/** {en}
|
|
732
|
+
* @detail api
|
|
733
|
+
* @brief Gets the online authentication secret for the video effects license.
|
|
734
|
+
* @return <br>
|
|
735
|
+
* The online authentication secret for the video effects license, when VeLiveVideoEffectLicenseType {@link #VeLiveVideoEffectLicenseType} is `VeLiveVideoEffectLicenseTypeOnLine`.
|
|
736
|
+
*
|
|
737
|
+
*/
|
|
424
738
|
getSecret(): String;
|
|
425
739
|
|
|
740
|
+
/** {en}
|
|
741
|
+
* @detail api
|
|
742
|
+
* @brief Gets the online authentication address for the video effects license.
|
|
743
|
+
* @return <br>
|
|
744
|
+
* The online authentication address for the video effects license, when VeLiveVideoEffectLicenseType {@link #VeLiveVideoEffectLicenseType} is `VeLiveVideoEffectLicenseTypeOnLine`.
|
|
745
|
+
*
|
|
746
|
+
*/
|
|
426
747
|
getUrl(): String;
|
|
427
748
|
}
|
|
428
749
|
export declare enum VeLiveAudioFrameSource {
|
|
@@ -433,21 +754,77 @@ export declare enum VeLiveAudioFrameSource {
|
|
|
433
754
|
}
|
|
434
755
|
export declare class VeLiveAudioEncoderConfiguration {
|
|
435
756
|
|
|
757
|
+
/** {en}
|
|
758
|
+
* @detail api
|
|
759
|
+
* @brief Gets the audio encoding bitrate.
|
|
760
|
+
* @return <br>
|
|
761
|
+
* The audio encoding bitrate.
|
|
762
|
+
*
|
|
763
|
+
*/
|
|
436
764
|
getBitrate(): int;
|
|
437
765
|
|
|
438
|
-
|
|
439
|
-
|
|
766
|
+
/** {en}
|
|
767
|
+
* @detail api
|
|
768
|
+
* @brief Sets the audio encoding bitrate.
|
|
769
|
+
* @return <br>The audio encoding configurations. See VeLiveAudioEncoderConfiguration for details.
|
|
770
|
+
* @param bitrate The audio encoding bitrate, in Kbps. The default value is `64`.
|
|
771
|
+
*
|
|
772
|
+
*/
|
|
773
|
+
setBitrate(bitrate: int): this;
|
|
774
|
+
|
|
775
|
+
/** {en}
|
|
776
|
+
* @detail api
|
|
777
|
+
* @brief Gets the encoding sample rate.
|
|
778
|
+
* @return <br>
|
|
779
|
+
* The encoding sample rate. See VeLiveAudioSampleRate {@link #VeLiveAudioSampleRate} for details.
|
|
780
|
+
*
|
|
781
|
+
*/
|
|
440
782
|
getSampleRate(): VeLiveAudioSampleRate;
|
|
441
783
|
|
|
442
|
-
|
|
443
|
-
|
|
784
|
+
/** {en}
|
|
785
|
+
* @detail api
|
|
786
|
+
* @brief Sets the encoding sample rate.
|
|
787
|
+
* @return <br>The audio encoding configurations. See VeLiveAudioEncoderConfiguration for details.
|
|
788
|
+
* @param sampleRate The encoding sample rate. The default value is `VeLiveAudioSampleRate44100`. See VeLiveAudioSampleRate {@link #VeLiveAudioSampleRate} for details.
|
|
789
|
+
*
|
|
790
|
+
*/
|
|
791
|
+
setSampleRate(sampleRate: VeLiveAudioSampleRate): this;
|
|
792
|
+
|
|
793
|
+
/** {en}
|
|
794
|
+
* @detail api
|
|
795
|
+
* @brief Gets the number of audio channels for streaming.
|
|
796
|
+
* @return <br>
|
|
797
|
+
* The number of audio channels for streaming. See VeLiveAudioChannel {@link #VeLiveAudioChannel} for details.
|
|
798
|
+
*
|
|
799
|
+
*/
|
|
444
800
|
getChannel(): VeLiveAudioChannel;
|
|
445
801
|
|
|
446
|
-
|
|
447
|
-
|
|
802
|
+
/** {en}
|
|
803
|
+
* @detail api
|
|
804
|
+
* @brief Sets the number of audio channels for streaming.
|
|
805
|
+
* @return <br>The audio encoding configurations. See VeLiveAudioEncoderConfiguration for details.
|
|
806
|
+
* @param channel The number of audio channels for streaming. The default value is `VeLiveAudioChannelStereo`. See VeLiveAudioChannel {@link #VeLiveAudioChannel} for details.
|
|
807
|
+
*
|
|
808
|
+
*/
|
|
809
|
+
setChannel(channel: VeLiveAudioChannel): this;
|
|
810
|
+
|
|
811
|
+
/** {en}
|
|
812
|
+
* @detail api
|
|
813
|
+
* @brief Gets the audio encoding format.
|
|
814
|
+
* @return <br>
|
|
815
|
+
* The audio encoding format. See VeLiveAudioProfile {@link #VeLiveAudioProfile} for details.
|
|
816
|
+
*
|
|
817
|
+
*/
|
|
448
818
|
getProfile(): VeLiveAudioProfile;
|
|
449
819
|
|
|
450
|
-
|
|
820
|
+
/** {en}
|
|
821
|
+
* @detail api
|
|
822
|
+
* @brief Sets the audio encoding format.
|
|
823
|
+
* @return <br>The audio encoding configurations. See VeLiveAudioEncoderConfiguration for details.
|
|
824
|
+
* @param profile The audio encoding format. The default value is `VeLiveAudioAACProfileLC`. See VeLiveAudioProfile {@link #VeLiveAudioProfile} for details.
|
|
825
|
+
*
|
|
826
|
+
*/
|
|
827
|
+
setProfile(profile: VeLiveAudioProfile): this;
|
|
451
828
|
}
|
|
452
829
|
export declare enum VeLiveAudioMixType {
|
|
453
830
|
|
|
@@ -7,11 +7,13 @@ export type double = number;
|
|
|
7
7
|
export type long = number;
|
|
8
8
|
export type Integer = number;
|
|
9
9
|
export type Double = number;
|
|
10
|
-
export type List<T> = Array<T>;
|
|
11
|
-
export type list<T> = Array<T>;
|
|
12
|
-
export type ArrayList<T> = Array<T>;
|
|
13
|
-
export type Map<K extends keyof any, V> = Record<K, V>;
|
|
14
|
-
export type
|
|
10
|
+
export type List<T = any> = Array<T>;
|
|
11
|
+
export type list<T = any> = Array<T>;
|
|
12
|
+
export type ArrayList<T = any> = Array<T>;
|
|
13
|
+
export type Map<K extends keyof any = any, V = any> = Record<K, V>;
|
|
14
|
+
export type HashMap<K extends keyof any = any, V = any> = Record<K, V>;
|
|
15
|
+
export type Pair<K extends keyof any = any, V = any> = Record<K, V>;
|
|
16
|
+
export type set<T = any> = Set<T>;
|
|
15
17
|
export type map = Object;
|
|
16
18
|
export type struct = Object;
|
|
17
19
|
export type Bitmap = unknown;
|
|
@@ -26,7 +28,6 @@ export type View = unknown;
|
|
|
26
28
|
export type Intent = unknown;
|
|
27
29
|
export type Context = unknown;
|
|
28
30
|
export type Bundle = any;
|
|
29
|
-
export type Error = any;
|
|
30
31
|
export type JSONObject = any;
|
|
31
32
|
export type LiveSdkSetting = unknown;
|
|
32
33
|
export type NativeImageResource = unknown;
|