@byteplus/react-native-live-push 1.1.3-rc.0 → 1.1.3-rc.2

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 (123) hide show
  1. package/android/src/main/java/com/volcengine/velive/rn/push/VeLivePushModule.java +13 -2
  2. package/android/src/main/java/com/volcengine/velive/rn/push/VeLivePushPackage.java +16 -13
  3. package/android/src/main/java/com/volcengine/velive/rn/push/VeLivePushView.java +16 -0
  4. package/android/src/main/java/com/volcengine/velive/rn/push/VeLivePushViewManager.java +7 -2
  5. package/android/src/main/java/com/volcengine/velive/rn/push/mixer/MixerManager.java +392 -0
  6. package/android/src/main/java/com/volcengine/velive/rn/push/mixer/MixerView.java +415 -0
  7. package/android/src/main/java/com/volcengine/velive/rn/push/mixer/MixerViewManager.java +79 -0
  8. package/android/src/main/java/com/volcengine/velive/rn/push/mixer/TextureMgr.java +168 -0
  9. package/android/src/main/java/com/volcengine/velive/rn/push/mixer/YuvHelper.java +154 -0
  10. package/ios/VeLiveMixerHelper.h +44 -0
  11. package/ios/VeLiveMixerHelper.m +562 -0
  12. package/ios/VeLiveMixerView.h +69 -0
  13. package/ios/VeLiveMixerView.m +592 -0
  14. package/ios/VeLiveMixerViewManager.m +92 -0
  15. package/lib/commonjs/index.js +1779 -980
  16. package/lib/commonjs/typescript/android/index.d.ts +47 -0
  17. package/lib/commonjs/typescript/codegen/android/api.d.ts +1527 -0
  18. package/lib/commonjs/typescript/codegen/android/callback.d.ts +91 -0
  19. package/lib/commonjs/typescript/codegen/android/errorcode.d.ts +26 -0
  20. package/lib/commonjs/typescript/codegen/android/index.d.ts +5 -0
  21. package/lib/commonjs/typescript/codegen/android/keytype.d.ts +846 -0
  22. package/lib/commonjs/typescript/codegen/android/types.d.ts +33 -0
  23. package/lib/commonjs/typescript/codegen/ios/api.d.ts +222 -0
  24. package/lib/commonjs/typescript/codegen/ios/callback.d.ts +80 -0
  25. package/lib/commonjs/typescript/codegen/ios/errorcode.d.ts +54 -0
  26. package/lib/commonjs/typescript/codegen/ios/external.d.ts +1 -0
  27. package/lib/commonjs/typescript/codegen/ios/index.d.ts +6 -0
  28. package/lib/commonjs/typescript/codegen/ios/keytype.d.ts +460 -0
  29. package/lib/commonjs/typescript/codegen/ios/types.d.ts +46 -0
  30. package/lib/commonjs/typescript/codegen/pack/api.d.ts +1835 -0
  31. package/lib/commonjs/typescript/codegen/pack/callback.d.ts +400 -0
  32. package/lib/commonjs/typescript/codegen/pack/errorcode.d.ts +35 -0
  33. package/lib/commonjs/typescript/codegen/pack/index.d.ts +5 -0
  34. package/lib/commonjs/typescript/codegen/pack/keytype.d.ts +1392 -0
  35. package/lib/commonjs/typescript/codegen/pack/types.d.ts +68 -0
  36. package/lib/commonjs/typescript/codegen/type-shim.d.ts +6 -0
  37. package/lib/commonjs/typescript/component.d.ts +15 -0
  38. package/lib/commonjs/typescript/core/api.d.ts +17 -0
  39. package/lib/commonjs/typescript/core/callback.d.ts +2 -0
  40. package/lib/commonjs/typescript/core/env.d.ts +29 -0
  41. package/lib/commonjs/typescript/core/errorcode.d.ts +2 -0
  42. package/lib/commonjs/typescript/core/index.d.ts +6 -0
  43. package/lib/commonjs/typescript/core/keytype.d.ts +17 -0
  44. package/lib/commonjs/typescript/core/mixer.d.ts +26 -0
  45. package/lib/commonjs/typescript/core/pusher.d.ts +16 -0
  46. package/lib/commonjs/typescript/index.d.ts +3 -0
  47. package/lib/commonjs/typescript/ios/extends.d.ts +41 -0
  48. package/lib/commonjs/typescript/platforms/android/extends.d.ts +8 -0
  49. package/lib/commonjs/typescript/platforms/android/helper.d.ts +8 -0
  50. package/lib/commonjs/typescript/platforms/android/mixer.d.ts +8 -0
  51. package/lib/commonjs/typescript/platforms/ios/extends.d.ts +17 -0
  52. package/lib/commonjs/typescript/platforms/ios/helper.d.ts +8 -0
  53. package/lib/commonjs/typescript/platforms/ios/mixer.d.ts +9 -0
  54. package/lib/commonjs/typescript/runtime.d.ts +1 -0
  55. package/lib/commonjs/typescript/view/MixView.d.ts +52 -0
  56. package/lib/commonjs/typescript/view/VeImageView.d.ts +19 -0
  57. package/lib/commonjs/typescript/view/VeTextView.d.ts +7 -0
  58. package/lib/commonjs/typescript/view/VeView.d.ts +7 -0
  59. package/lib/commonjs/typescript/view/VeWebView.d.ts +7 -0
  60. package/lib/commonjs/typescript/view/index.d.ts +5 -0
  61. package/lib/module/index.js +1776 -982
  62. package/lib/module/typescript/android/index.d.ts +47 -0
  63. package/lib/module/typescript/codegen/android/api.d.ts +1527 -0
  64. package/lib/module/typescript/codegen/android/callback.d.ts +91 -0
  65. package/lib/module/typescript/codegen/android/errorcode.d.ts +26 -0
  66. package/lib/module/typescript/codegen/android/index.d.ts +5 -0
  67. package/lib/module/typescript/codegen/android/keytype.d.ts +846 -0
  68. package/lib/module/typescript/codegen/android/types.d.ts +33 -0
  69. package/lib/module/typescript/codegen/ios/api.d.ts +222 -0
  70. package/lib/module/typescript/codegen/ios/callback.d.ts +80 -0
  71. package/lib/module/typescript/codegen/ios/errorcode.d.ts +54 -0
  72. package/lib/module/typescript/codegen/ios/external.d.ts +1 -0
  73. package/lib/module/typescript/codegen/ios/index.d.ts +6 -0
  74. package/lib/module/typescript/codegen/ios/keytype.d.ts +460 -0
  75. package/lib/module/typescript/codegen/ios/types.d.ts +46 -0
  76. package/lib/module/typescript/codegen/pack/api.d.ts +1835 -0
  77. package/lib/module/typescript/codegen/pack/callback.d.ts +400 -0
  78. package/lib/module/typescript/codegen/pack/errorcode.d.ts +35 -0
  79. package/lib/module/typescript/codegen/pack/index.d.ts +5 -0
  80. package/lib/module/typescript/codegen/pack/keytype.d.ts +1392 -0
  81. package/lib/module/typescript/codegen/pack/types.d.ts +68 -0
  82. package/lib/module/typescript/codegen/type-shim.d.ts +6 -0
  83. package/lib/module/typescript/component.d.ts +15 -0
  84. package/lib/module/typescript/core/api.d.ts +17 -0
  85. package/lib/module/typescript/core/callback.d.ts +2 -0
  86. package/lib/module/typescript/core/env.d.ts +29 -0
  87. package/lib/module/typescript/core/errorcode.d.ts +2 -0
  88. package/lib/module/typescript/core/index.d.ts +6 -0
  89. package/lib/module/typescript/core/keytype.d.ts +17 -0
  90. package/lib/module/typescript/core/mixer.d.ts +26 -0
  91. package/lib/module/typescript/core/pusher.d.ts +16 -0
  92. package/lib/module/typescript/index.d.ts +3 -0
  93. package/lib/module/typescript/ios/extends.d.ts +41 -0
  94. package/lib/module/typescript/platforms/android/extends.d.ts +8 -0
  95. package/lib/module/typescript/platforms/android/helper.d.ts +8 -0
  96. package/lib/module/typescript/platforms/android/mixer.d.ts +8 -0
  97. package/lib/module/typescript/platforms/ios/extends.d.ts +17 -0
  98. package/lib/module/typescript/platforms/ios/helper.d.ts +8 -0
  99. package/lib/module/typescript/platforms/ios/mixer.d.ts +9 -0
  100. package/lib/module/typescript/runtime.d.ts +1 -0
  101. package/lib/module/typescript/view/MixView.d.ts +52 -0
  102. package/lib/module/typescript/view/VeImageView.d.ts +19 -0
  103. package/lib/module/typescript/view/VeTextView.d.ts +7 -0
  104. package/lib/module/typescript/view/VeView.d.ts +7 -0
  105. package/lib/module/typescript/view/VeWebView.d.ts +7 -0
  106. package/lib/module/typescript/view/index.d.ts +5 -0
  107. package/lib/typescript/codegen/android/api.d.ts +1 -121
  108. package/lib/typescript/codegen/ios/api.d.ts +1 -28
  109. package/lib/typescript/codegen/pack/api.d.ts +1 -133
  110. package/lib/typescript/core/api.d.ts +17 -2
  111. package/lib/typescript/core/keytype.d.ts +15 -0
  112. package/lib/typescript/core/mixer.d.ts +26 -0
  113. package/lib/typescript/index.d.ts +1 -0
  114. package/lib/typescript/platforms/android/extends.d.ts +8 -0
  115. package/lib/typescript/platforms/android/mixer.d.ts +8 -0
  116. package/lib/typescript/platforms/ios/mixer.d.ts +9 -0
  117. package/lib/typescript/view/MixView.d.ts +52 -0
  118. package/lib/typescript/view/VeImageView.d.ts +19 -0
  119. package/lib/typescript/view/VeTextView.d.ts +7 -0
  120. package/lib/typescript/view/VeView.d.ts +7 -0
  121. package/lib/typescript/view/VeWebView.d.ts +7 -0
  122. package/lib/typescript/view/index.d.ts +5 -0
  123. package/package.json +1 -1
@@ -0,0 +1,1392 @@
1
+ import * as $p_a from '../android/index';
2
+ import * as $p_i from '../ios/index';
3
+ import { ArrayList } from './types';
4
+
5
+ export declare class VeLiveFileRecorderConfiguration {
6
+ protected _instance: any;
7
+ protected __init(...args: any[]): void;
8
+ protected __new_instance(...args: any[]): any;
9
+
10
+ /** {en}
11
+ * @detail api
12
+ * @brief Sets the width of the recorded video.
13
+ * @return <br>The local recording configurations. See VeLiveFileRecorderConfiguration for details.
14
+ * @param width The width of the recorded video. The default value is `360`.
15
+ *
16
+ */
17
+ setWidth(width: number): void;
18
+
19
+ /** {en}
20
+ * @detail api
21
+ * @brief Sets the height of the recorded video.
22
+ * @return <br>The local recording configurations. See VeLiveFileRecorderConfiguration for details.
23
+ * @param height The height of the recorded video, the default value is `640`.
24
+ *
25
+ */
26
+ setHeight(height: number): void;
27
+
28
+ /** {en}
29
+ * @detail api
30
+ * @brief Sets the bitrate of the recorded video.
31
+ * @return <br>The local recording configurations. See VeLiveFileRecorderConfiguration for details.
32
+ * @param bitrate The bitrate of the recorded video, in Kbps. The default value is `2000`.
33
+ *
34
+ */
35
+ setBitrate(bitrate: number): void;
36
+
37
+ /** {en}
38
+ * @detail api
39
+ * @brief Sets the frame rate of the recorded video.
40
+ * @return <br>The local recording configurations. See VeLiveFileRecorderConfiguration for details.
41
+ * @param fps The frame rate of the recorded video. The default value is `15`.
42
+ *
43
+ */
44
+ setFps(fps: number): void;
45
+
46
+ /** {en}
47
+ * @platform android
48
+ * @detail api
49
+ * @brief Gets the width of the recorded video.
50
+ * @return <br>
51
+ * The width of the recorded video.
52
+ *
53
+ */
54
+ android_getWidth(): number;
55
+
56
+ /** {en}
57
+ * @platform android
58
+ * @detail api
59
+ * @brief Gets the height of the recorded video.
60
+ * @return <br>
61
+ * The height of the recorded video.
62
+ *
63
+ */
64
+ android_getHeight(): number;
65
+
66
+ /** {en}
67
+ * @platform android
68
+ * @detail api
69
+ * @brief Gets the frame rate of the recorded video.
70
+ * @return <br>
71
+ * The frame rate of the recorded video.
72
+ *
73
+ */
74
+ android_getFps(): number;
75
+
76
+ /** {en}
77
+ * @platform android
78
+ * @detail api
79
+ * @brief Gets the bitrate of the recorded video.
80
+ * @return <br>
81
+ * The bitrate of the recorded video.
82
+ *
83
+ */
84
+ android_getBitrate(): number;
85
+ }
86
+
87
+ export declare class VeLiveVideoCaptureConfiguration {
88
+ protected _instance: any;
89
+
90
+ /** {en}
91
+ * @platform ios
92
+ * @brief The pixel format. The default format is kCVPixelFormatType_420YpCbCr8BiPlanarFullRange.
93
+ * @note The following formats are supported:
94
+ * - kCVPixelFormatType_32BGRA
95
+ * - kCVPixelFormatType_420YpCbCr8BiPlanarFullRange
96
+ * - kCVPixelFormatType_420YpCbCr8BiPlanarVideoRange
97
+ * - kCVPixelFormatType_420YpCbCr10BiPlanarVideoRange
98
+ */
99
+ get ios_pixelFormat(): $p_i.OSType;
100
+ set ios_pixelFormat(value: $p_i.OSType);
101
+ protected __init(...args: any[]): void;
102
+ protected __new_instance(...args: any[]): any;
103
+
104
+ /** {en}
105
+ * @detail api
106
+ * @brief Sets the width of the captured video.
107
+ * @return <br>The video capture configurations. See VeLiveVideoCaptureConfiguration for details.
108
+ * @param width The width of the captured video. The default value is `720`.
109
+ *
110
+ */
111
+ setWidth(width: number): void;
112
+
113
+ /** {en}
114
+ * @detail api
115
+ * @brief Sets the height of the captured video.
116
+ * @return <br>The video capture configurations. See VeLiveVideoCaptureConfiguration for details.
117
+ * @param height The height of the captured video. The default value is `1280`.
118
+ *
119
+ */
120
+ setHeight(height: number): void;
121
+
122
+ /** {en}
123
+ * @detail api
124
+ * @brief Sets the captured frame rate.
125
+ * @return <br>The video capture configurations. See VeLiveVideoCaptureConfiguration for details.
126
+ * @param fps The captured frame rate. The default value is `15`.
127
+ *
128
+ */
129
+ setFps(fps: number): void;
130
+
131
+ /** {en}
132
+ * @platform android
133
+ * @detail api
134
+ * @brief Gets the width of the captured video.
135
+ * @return <br>
136
+ * The width of the captured video.
137
+ *
138
+ */
139
+ android_getWidth(): number;
140
+
141
+ /** {en}
142
+ * @platform android
143
+ * @detail api
144
+ * @brief Gets the height of the captured video.
145
+ * @return <br>
146
+ * The height of the captured video.
147
+ *
148
+ */
149
+ android_getHeight(): number;
150
+
151
+ /** {en}
152
+ * @platform android
153
+ * @detail api
154
+ * @brief Gets the captured frame rate.
155
+ * @return <br>
156
+ * The captured frame rate.
157
+ *
158
+ */
159
+ android_getFps(): number;
160
+ }
161
+
162
+ export declare enum VeLivePusherRenderMode {
163
+
164
+ VeLivePusherRenderModeFill = 0,
165
+
166
+ VeLivePusherRenderModeFit = 1,
167
+
168
+ VeLivePusherRenderModeHidden = 2
169
+ }
170
+
171
+ export declare enum VeLiveAudioBufferType {
172
+
173
+ VeLiveAudioBufferTypeUnknown = 0,
174
+
175
+ VeLiveAudioBufferTypeByteBuffer = 1,
176
+
177
+ VeLiveAudioBufferTypeSampleBuffer = 2,
178
+
179
+ VeLiveAudioBufferTypeNSData = 3
180
+ }
181
+
182
+ export declare enum VeLiveVideoCaptureType {
183
+
184
+ VeLiveVideoCaptureFrontCamera = 0,
185
+
186
+ VeLiveVideoCaptureBackCamera = 1,
187
+
188
+ VeLiveVideoCaptureDualCamera = 2,
189
+
190
+ VeLiveVideoCaptureScreen = 3,
191
+
192
+ VeLiveVideoCaptureExternal = 4,
193
+
194
+ VeLiveVideoCaptureCustomImage = 5,
195
+
196
+ VeLiveVideoCaptureLastFrame = 6,
197
+
198
+ VeLiveVideoCaptureDummyFrame = 7
199
+ }
200
+
201
+ export declare enum VeLiveVideoRotation {
202
+
203
+ VeLiveVideoRotation0 = 0,
204
+
205
+ VeLiveVideoRotation90 = 1,
206
+
207
+ VeLiveVideoRotation180 = 2,
208
+
209
+ VeLiveVideoRotation270 = 3
210
+ }
211
+
212
+ export declare enum VeLiveNetworkQuality {
213
+
214
+ VeLiveNetworkQualityUnknown = 0,
215
+
216
+ VeLiveNetworkQualityBad = 1,
217
+
218
+ VeLiveNetworkQualityPoor = 2,
219
+
220
+ VeLiveNetworkQualityGood = 3
221
+ }
222
+
223
+ export declare enum VeLiveAudioCaptureType {
224
+
225
+ VeLiveAudioCaptureMicrophone = 0,
226
+
227
+ VeLiveAudioCaptureVoiceCommunication = 1,
228
+
229
+ VeLiveAudioCaptureExternal = 3,
230
+
231
+ VeLiveAudioCaptureMuteFrame = 4,
232
+
233
+ VeLiveAudioCaptureVoiceRecognition = 5
234
+ }
235
+
236
+ export declare enum VeLiveVideoBufferType {
237
+
238
+ VeLiveVideoBufferTypeUnknown = 0,
239
+
240
+ VeLiveVideoBufferTypeTexture = 1,
241
+
242
+ VeLiveVideoBufferTypeByteBuffer = 2,
243
+
244
+ VeLiveVideoBufferTypeByteArray = 3,
245
+
246
+ VeLiveVideoBufferTypePixelBuffer = 4,
247
+
248
+ VeLiveVideoBufferTypeSampleBuffer = 5,
249
+
250
+ VeLiveVideoBufferTypeNSData = 6
251
+ }
252
+
253
+ export declare enum VeLiveOrientation {
254
+
255
+ VeLiveOrientationLandscape = 0,
256
+
257
+ VeLiveOrientationPortrait = 1,
258
+ /**
259
+ * @platform ios
260
+ */
261
+ UIInterfaceOrientationUnknown = 2,
262
+ /**
263
+ * @platform ios
264
+ */
265
+ UIInterfaceOrientationPortraitUpsideDown = 3,
266
+ /**
267
+ * @platform ios
268
+ */
269
+ UIInterfaceOrientationLandscapeRight = 4
270
+ }
271
+
272
+ export declare enum VeLivePusherStatus {
273
+
274
+ VeLivePushStatusNone = 0,
275
+
276
+ VeLivePushStatusConnecting = 1,
277
+
278
+ VeLivePushStatusConnectSuccess = 2,
279
+
280
+ VeLivePushStatusReconnecting = 3,
281
+
282
+ VeLivePushStatusConnectStop = 4,
283
+
284
+ VeLivePushStatusConnectError = 5,
285
+
286
+ VeLivePushStatusDisconnected = 6
287
+ }
288
+
289
+ export declare enum VeLiveAudioPowerLevel {
290
+
291
+ VeLiveAudioPowerLevelNoise = 6,
292
+
293
+ VeLiveAudioPowerLevelSilent = 0,
294
+
295
+ VeLiveAudioPowerLevelQuiet = 1,
296
+
297
+ VeLiveAudioPowerLevelLight = 2,
298
+
299
+ VeLiveAudioPowerLevelNormal = 3,
300
+
301
+ VeLiveAudioPowerLevelLoud = 4
302
+ }
303
+
304
+ export declare enum VeLivePixelFormat {
305
+
306
+ VeLivePixelFormatUnknown = 0,
307
+
308
+ VeLivePixelFormatI420 = 1,
309
+
310
+ VeLivePixelFormatNV12 = 2,
311
+
312
+ VeLivePixelFormatNV21 = 3,
313
+
314
+ VeLivePixelFormat2DTexture = 4,
315
+
316
+ VeLivePixelFormatOesTexture = 5,
317
+
318
+ VeLivePixelFormatBGRA32 = 6
319
+ }
320
+
321
+ export declare enum VeLivePusherLogLevel {
322
+
323
+ VeLivePusherLogLevelVerbose = 0,
324
+
325
+ VeLivePusherLogLevelDebug = 1,
326
+
327
+ VeLivePusherLogLevelInfo = 2,
328
+
329
+ VeLivePusherLogLevelWarn = 3,
330
+
331
+ VeLivePusherLogLevelError = 4,
332
+
333
+ VeLivePusherLogLevelNone = 5
334
+ }
335
+
336
+ export declare class VeLiveVideoEncoderConfiguration {
337
+ protected _instance: any;
338
+
339
+ /** {en}
340
+ * @platform ios
341
+ * @brief The video resolution. See VeLiveVideoResolution {@link #VeLiveVideoResolution} for details. The default value is `VeLiveVideoResolution720P`.
342
+ */
343
+ get ios_resolution(): $p_i.VeLiveVideoResolution;
344
+ set ios_resolution(value: $p_i.VeLiveVideoResolution);
345
+ protected __init(...args: any[]): void;
346
+ protected __new_instance(...args: any[]): any;
347
+
348
+ /** {en}
349
+ * @detail api
350
+ * @brief Sets the video resolution.
351
+ * @param resolution The video resolution. The default value is `VeLiveVideoResolution720P`. See VeLiveVideoResolution {@link #VeLiveVideoResolution} for details.
352
+ * @return <br>
353
+ * The video encoding configurations. See VeLiveVideoEncoderConfiguration {@link #VeLiveVideoEncoderConfiguration} for details.
354
+ *
355
+ */
356
+ initWithResolution(resolution: VeLiveVideoResolution): this;
357
+
358
+ /** {en}
359
+ * @detail api
360
+ * @brief Sets the video codec.
361
+ * @return The video encoding configurations. See [VeLiveVideoEncoderConfiguration](broadcast-sdk-for-android-type-definition#VeLiveVideoEncoderConfiguration) for details.
362
+ * @param codec <br>The video codec. See [VeLiveVideoCodec](broadcast-sdk-for-android-type-definition#VeLiveVideoCodec) for details.
363
+ *
364
+ */
365
+ setCodec(codec: VeLiveVideoCodec): this;
366
+
367
+ /** {en}
368
+ * @detail api
369
+ * @brief Sets the encoded video bitrate.
370
+ * @param bitrate The encoded video bitrate, in Kbps. The default value depends on the value of the `resolution` parameter.
371
+ * @return <br>
372
+ * The video encoding configurations. See VeLiveVideoEncoderConfiguration {@link #VeLiveVideoEncoderConfiguration} for details.
373
+ *
374
+ */
375
+ setBitrate(bitrate: number): this;
376
+
377
+ /** {en}
378
+ * @detail api
379
+ * @brief Sets the minimum encoded video bitrate.
380
+ * @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.
381
+ * @return <br>
382
+ * The video encoding configurations. See VeLiveVideoEncoderConfiguration {@link #VeLiveVideoEncoderConfiguration} for details.
383
+ *
384
+ */
385
+ setMinBitrate(minBitrate: number): this;
386
+
387
+ /** {en}
388
+ * @detail api
389
+ * @brief Sets the maximum encoded video bitrate.
390
+ * @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.
391
+ * @return <br>
392
+ * The video encoding configurations. See VeLiveVideoEncoderConfiguration {@link #VeLiveVideoEncoderConfiguration} for details.
393
+ *
394
+ */
395
+ setMaxBitrate(maxBitrate: number): this;
396
+
397
+ /** {en}
398
+ * @detail api
399
+ * @brief Sets the encoded video GOP size.
400
+ * @param gopSize The encoded video GOP size, in seconds. The default value is `2`.
401
+ * @return <br>
402
+ * The video encoding configurations. See VeLiveVideoEncoderConfiguration {@link #VeLiveVideoEncoderConfiguration} for details.
403
+ *
404
+ */
405
+ setGopSize(gopSize: number): this;
406
+
407
+ /** {en}
408
+ * @detail api
409
+ * @brief Sets the encoded frame rate.
410
+ * @param fps The encoded frame rate, in fps. The default value is `15`.
411
+ * @return <br>
412
+ * The video encoding configurations. See VeLiveVideoEncoderConfiguration {@link #VeLiveVideoEncoderConfiguration} for details.
413
+ *
414
+ */
415
+ setFps(fps: number): this;
416
+
417
+ /** {en}
418
+ * @detail api
419
+ * @brief Sets whether to enable B frames.
420
+ * @param enableBFrame Whether to enable B frames. <br>
421
+ * - true: Enable;
422
+ * - false: (Default) Disable.
423
+ * @return <br>
424
+ * The video encoding configurations. See VeLiveVideoEncoderConfiguration {@link #VeLiveVideoEncoderConfiguration} for details.
425
+ *
426
+ */
427
+ setEnableBFrame(enableBFrame: boolean): this;
428
+
429
+ /** {en}
430
+ * @detail api
431
+ * @brief Enables hardware encoding.
432
+ * @param enableAccelerate Whether to enable hardware encoding. <br>
433
+ * - true: (Default) Enable;
434
+ * - false: Disable.
435
+ * @return <br>
436
+ * The video encoding configurations. See VeLiveVideoEncoderConfiguration {@link #VeLiveVideoEncoderConfiguration} for details.
437
+ *
438
+ */
439
+ setEnableAccelerate(enableAccelerate: boolean): this;
440
+
441
+ /** {en}
442
+ * @platform android
443
+ * @detail api
444
+ * @brief Gets the video resolution.
445
+ * @return <br>
446
+ * The video resolution. See VeLiveVideoResolution {@link #VeLiveVideoResolution} for details.
447
+ *
448
+ */
449
+ android_getResolution(): $p_a.VeLiveVideoResolution;
450
+
451
+ /** {en}
452
+ * @platform android
453
+ * @detail api
454
+ * @brief Gets the video codec.
455
+ * @return <br>
456
+ * The video codec. See VeLiveVideoCodec {@link #VeLiveVideoCodec} for details.
457
+ *
458
+ */
459
+ android_getCodec(): $p_a.VeLiveVideoCodec;
460
+
461
+ /** {en}
462
+ * @platform android
463
+ * @detail api
464
+ * @brief Get the encoded video bitrate.
465
+ * @return <br>
466
+ * The encoded video bitrate.
467
+ *
468
+ */
469
+ android_getBitrate(): number;
470
+
471
+ /** {en}
472
+ * @platform android
473
+ * @detail api
474
+ * @brief Gets the minimum encoded video bitrate.
475
+ * @return <br>
476
+ * The minimum encoded video bitrate.
477
+ *
478
+ */
479
+ android_getMinBitrate(): number;
480
+
481
+ /** {en}
482
+ * @platform android
483
+ * @detail api
484
+ * @brief Gets the maximum encoded video bitrate.
485
+ * @return <br>
486
+ * The maximum encoded video bitrate.
487
+ *
488
+ */
489
+ android_getMaxBitrate(): number;
490
+
491
+ /** {en}
492
+ * @platform android
493
+ * @detail api
494
+ * @brief Gets the encoded video GOP size.
495
+ * @return <br>
496
+ * The encoded video GOP size.
497
+ *
498
+ */
499
+ android_getGopSize(): number;
500
+
501
+ /** {en}
502
+ * @platform android
503
+ * @detail api
504
+ * @brief Gets the encoded frame rate.
505
+ * @return <br>
506
+ * The encoded frame rate.
507
+ *
508
+ */
509
+ android_getFps(): number;
510
+
511
+ /** {en}
512
+ * @platform android
513
+ * @detail api
514
+ * @brief Gets whether to enable B frames.
515
+ * @return <br>
516
+ * Whether to enable B frames. <br>
517
+ * - true: Enable;
518
+ * - false: Disable.
519
+ *
520
+ */
521
+ android_isEnableBFrame(): boolean;
522
+
523
+ /** {en}
524
+ * @platform android
525
+ * @detail api
526
+ * @brief Gets whether to enable hardware encoding.
527
+ * @return <br>
528
+ * Whether to enable hardware encoding. <br>
529
+ * - true: Enable;
530
+ * - false: Disable.
531
+ *
532
+ */
533
+ android_isEnableAccelerate(): boolean;
534
+ }
535
+
536
+ export declare enum VeLiveVideoCodec {
537
+
538
+ VeLiveVideoCodecH264 = 0,
539
+
540
+ VeLiveVideoCodecByteVC1 = 1
541
+ }
542
+
543
+ export declare class VeLivePusherStatistics {
544
+ protected _instance: any;
545
+
546
+ /** {en}
547
+ * @brief The width of the encoded video, in pixels.
548
+ *
549
+ */
550
+ get encodeWidth(): number;
551
+ set encodeWidth(value: number);
552
+
553
+ /** {en}
554
+ * @brief The height of the encoded video, in pixels.
555
+ *
556
+ */
557
+ get encodeHeight(): number;
558
+ set encodeHeight(value: number);
559
+
560
+ /** {en}
561
+ * @brief The width of the captured video, in pixels.
562
+ *
563
+ */
564
+ get captureWidth(): number;
565
+ set captureWidth(value: number);
566
+
567
+ /** {en}
568
+ * @brief The height of the captured video, in pixels.
569
+ *
570
+ */
571
+ get captureHeight(): number;
572
+ set captureHeight(value: number);
573
+
574
+ /** {en}
575
+ * @brief The captured frame rate, in fps.
576
+ *
577
+ */
578
+ get captureFps(): number;
579
+ set captureFps(value: number);
580
+
581
+ /** {en}
582
+ * @brief The encoded frame rate, in fps.
583
+ *
584
+ */
585
+ get encodeFps(): number;
586
+ set encodeFps(value: number);
587
+
588
+ /** {en}
589
+ * @brief The transmission frame rate, in fps. You can use this parameter to showcase the real-time frame rate on the user interface.
590
+ *
591
+ */
592
+ get transportFps(): number;
593
+ set transportFps(value: number);
594
+
595
+ /** {en}
596
+ * @brief The encoded frame rate you specify in the setVideoEncoderConfiguration {@link #VeLivePusher#setVideoEncoderConfiguration} method, in fps.
597
+ *
598
+ */
599
+ get fps(): number;
600
+ set fps(value: number);
601
+
602
+ /** {en}
603
+ * @brief The encoded bitrate you specify in the setVideoEncoderConfiguration {@link #VeLivePusher#setVideoEncoderConfiguration} method, in Kbps.
604
+ *
605
+ */
606
+ get videoBitrate(): number;
607
+ set videoBitrate(value: number);
608
+
609
+ /** {en}
610
+ * @brief The minimum encoded bitrate you specify in the setVideoEncoderConfiguration {@link #VeLivePusher#setVideoEncoderConfiguration} method, in Kbps.
611
+ *
612
+ */
613
+ get minVideoBitrate(): number;
614
+ set minVideoBitrate(value: number);
615
+
616
+ /** {en}
617
+ * @brief The maximum encoded bitrate you specify in the setVideoEncoderConfiguration {@link #VeLivePusher#setVideoEncoderConfiguration} method, in Kbps.
618
+ *
619
+ */
620
+ get maxVideoBitrate(): number;
621
+ set maxVideoBitrate(value: number);
622
+
623
+ /** {en}
624
+ * @brief The encoded video bitrate, in Kbps.
625
+ *
626
+ */
627
+ get encodeVideoBitrate(): number;
628
+ set encodeVideoBitrate(value: number);
629
+
630
+ /** {en}
631
+ * @brief The transmission bitrate, in Kbps. You can use this parameter to showcase the real-time bitrate on the user interface.
632
+ *
633
+ */
634
+ get transportVideoBitrate(): number;
635
+ set transportVideoBitrate(value: number);
636
+
637
+ /** {en}
638
+ * @brief The audio encoding bitrate, in Kbps.
639
+ *
640
+ */
641
+ get encodeAudioBitrate(): number;
642
+ set encodeAudioBitrate(value: number);
643
+
644
+ /** {en}
645
+ * @brief The push stream address.
646
+ *
647
+ */
648
+ get url(): string;
649
+ set url(value: string);
650
+
651
+ /** {en}
652
+ * @brief The video codec.
653
+ *
654
+ */
655
+ get codec(): string;
656
+ set codec(value: string);
657
+ protected __init(...args: any[]): void;
658
+ protected __new_instance(...args: any[]): any;
659
+ }
660
+
661
+ export declare enum VeLiveVideoEffectLicenseType {
662
+
663
+ VeLiveVideoEffectLicenseTypeOffLine = 0,
664
+
665
+ VeLiveVideoEffectLicenseTypeOnLine = 1
666
+ }
667
+
668
+ export declare enum VeLiveAudioChannel {
669
+
670
+ VeLiveAudioChannelMono = 0,
671
+
672
+ VeLiveAudioChannelStereo = 1
673
+ }
674
+
675
+ export declare enum VeLiveFirstFrameType {
676
+
677
+ VeLiveFirstCaptureFrame = 0,
678
+
679
+ VeLiveFirstRenderFrame = 1,
680
+
681
+ VeLiveFirstEncodedFrame = 2,
682
+
683
+ VeLiveFirstSendFrame = 3,
684
+
685
+ VeLiveFirstAppAudioCaptureFrame = 4
686
+ }
687
+
688
+ export declare enum VeLiveVideoFrameSource {
689
+
690
+ /** {en}
691
+ * @brief The original video frame captured by the camera or other video sources.
692
+ *
693
+ */
694
+ VeLiveVideoFrameSourceCapture = 0,
695
+
696
+ /** {en}
697
+ * @brief The video frame to be encoded after undergoing various processes, such as filtering and rotation.
698
+ *
699
+ */
700
+ VeLiveVideoFrameSourcePreEncode = 1
701
+ }
702
+
703
+ export declare enum VeLiveAudioProfile {
704
+
705
+ VeLiveAudioAACProfileLC = 0,
706
+
707
+ VeLiveAudioAACProfileHEv1 = 1,
708
+
709
+ VeLiveAudioAACProfileHEv2 = 2
710
+ }
711
+
712
+ export declare class VeLiveAudioCaptureConfiguration {
713
+ protected _instance: any;
714
+
715
+ /** {en}
716
+ * @platform ios
717
+ * @brief The sample rate. See VeLiveAudioSampleRate {@link #VeLiveAudioSampleRate} for details. The default value is `VeLiveAudioSampleRate44100`.
718
+ */
719
+ get ios_sampleRate(): $p_i.VeLiveAudioSampleRate;
720
+ set ios_sampleRate(value: $p_i.VeLiveAudioSampleRate);
721
+
722
+ /** {en}
723
+ * @platform ios
724
+ * @brief The number of audio channels. See VeLiveAudioChannel {@link #VeLiveAudioChannel} for details. The default value is `VeLiveAudioChannelStereo`.
725
+ */
726
+ get ios_channel(): $p_i.VeLiveAudioChannel;
727
+ set ios_channel(value: $p_i.VeLiveAudioChannel);
728
+ protected __init(...args: any[]): void;
729
+ protected __new_instance(...args: any[]): any;
730
+
731
+ /** {en}
732
+ * @platform android
733
+ * @detail api
734
+ * @brief Gets the sample rate.
735
+ * @return <br>
736
+ * The sample rate. See VeLiveAudioSampleRate {@link #VeLiveAudioSampleRate} for details.
737
+ *
738
+ */
739
+ android_getSampleRate(): $p_a.VeLiveAudioSampleRate;
740
+
741
+ /** {en}
742
+ * @platform android
743
+ * @detail api
744
+ * @brief Sets the sample rate.
745
+ * @return <br>The audio capture configurations. See VeLiveAudioCaptureConfiguration for details.
746
+ * @param sampleRate The sample rate. The default value is `VeLiveAudioSampleRate44100`. See VeLiveAudioSampleRate {@link #VeLiveAudioSampleRate} for details.
747
+ *
748
+ */
749
+ android_setSampleRate(sampleRate: $p_a.VeLiveAudioSampleRate): this;
750
+
751
+ /** {en}
752
+ * @platform android
753
+ * @detail api
754
+ * @brief Gets the number of audio channels.
755
+ * @return <br>
756
+ * The number of audio channels. See VeLiveAudioChannel {@link #VeLiveAudioChannel} for details.
757
+ *
758
+ */
759
+ android_getChannel(): $p_a.VeLiveAudioChannel;
760
+
761
+ /** {en}
762
+ * @platform android
763
+ * @detail api
764
+ * @brief Sets the number of audio channels.
765
+ * @return <br>The audio capture configurations. See VeLiveAudioCaptureConfiguration for details.
766
+ * @param channel The number of audio channels. The default value is `VeLiveAudioChannelStereo`. See VeLiveAudioChannel {@link #VeLiveAudioChannel} for details.
767
+ *
768
+ */
769
+ android_setChannel(channel: $p_a.VeLiveAudioChannel): this;
770
+ }
771
+
772
+ export declare class VeLiveStreamMixDescription {
773
+ protected _instance: any;
774
+
775
+ /** {en}
776
+ * @brief An array of video mixing configurations, where each array element represents the mixing configurations of a video stream. See VeLiveMixVideoLayout {@link #VeLiveMixVideoLayout} for details.
777
+ *
778
+ */
779
+ get mixVideoStreams(): ArrayList<VeLiveMixVideoLayout>;
780
+ set mixVideoStreams(value: ArrayList<VeLiveMixVideoLayout>);
781
+
782
+ /** {en}
783
+ * @brief An array of audio mixing configurations, where each array element represents the mixing configurations of an audio stream. See VeLiveMixAudioLayout for details.
784
+ *
785
+ */
786
+ get mixAudioStreams(): ArrayList<VeLiveMixAudioLayout>;
787
+ set mixAudioStreams(value: ArrayList<VeLiveMixAudioLayout>);
788
+
789
+ /** {en}
790
+ * @brief The background color of the mixed video, in #RRGGBB format.
791
+ *
792
+ */
793
+ get backgroundColor(): string;
794
+ set backgroundColor(value: string);
795
+ protected __init(...args: any[]): void;
796
+ protected __new_instance(...args: any[]): any;
797
+ }
798
+
799
+ export declare enum VeLiveAudioSampleRate {
800
+
801
+ VeLiveAudioSampleRate8000 = 0,
802
+
803
+ VeLiveAudioSampleRate16000 = 1,
804
+
805
+ VeLiveAudioSampleRate32000 = 2,
806
+
807
+ VeLiveAudioSampleRate44100 = 3,
808
+
809
+ VeLiveAudioSampleRate48000 = 4
810
+ }
811
+
812
+ export declare enum VeLiveVideoResolution {
813
+
814
+ /** {en}
815
+ * @brief 360P.
816
+ * - Resolution in landscape mode: 640x360
817
+ * - Resolution in portrait mode: 360x640
818
+ * - Frame rate: 15 fps
819
+ * - Target bitrate: 500 Kbps
820
+ * - Minimum bitrate: 250 Kbps
821
+ * - Maximum bitrate: 800 Kbps
822
+ *
823
+ */
824
+ VeLiveVideoResolution360P = 0,
825
+
826
+ /** {en}
827
+ * @brief 480P.
828
+ * - Resolution in landscape mode: 864x480
829
+ * - Resolution in portrait mode: 480x864
830
+ * - Frame rate: 15 fps
831
+ * - Target bitrate: 800 Kbps
832
+ * - Minimum bitrate: 320 Kbps
833
+ * - Maximum bitrate: 1266 Kbps
834
+ *
835
+ */
836
+ VeLiveVideoResolution480P = 1,
837
+
838
+ /** {en}
839
+ * @brief 540P.
840
+ * - Resolution in landscape mode: 960x540
841
+ * - Resolution in portrait mode: 540x960
842
+ * - Frame rate: 15 fps
843
+ * - Target bitrate: 1000 Kbps
844
+ * - Minimum bitrate: 500 Kbps
845
+ * - Maximum bitrate: 1520 Kbps
846
+ *
847
+ */
848
+ VeLiveVideoResolution540P = 2,
849
+
850
+ /** {en}
851
+ * @brief 720P.
852
+ * - Resolution in landscape mode: 1280x720
853
+ * - Resolution in portrait mode: 720x1280
854
+ * - Frame rate: 15 fps
855
+ * - Target bitrate: 1200 Kbps
856
+ * - Minimum bitrate: 800 Kbps
857
+ * - Maximum bitrate: 1900 Kbps
858
+ *
859
+ */
860
+ VeLiveVideoResolution720P = 3,
861
+
862
+ /** {en}
863
+ * @brief 1080P.
864
+ * - Resolution in landscape mode: 1920x1080
865
+ * - Resolution in portrait mode: 1080x1920
866
+ * - Frame rate: 20 fps
867
+ * - Target bitrate: 2500 Kbps
868
+ * - Minimum bitrate: 1000 Kbps
869
+ * - Maximum bitrate: 3800 Kbps
870
+ *
871
+ */
872
+ VeLiveVideoResolution1080P = 4,
873
+
874
+ VeLiveVideoResolutionScreen = 5
875
+ }
876
+
877
+ export declare class VeLiveMixAudioLayout {
878
+ protected _instance: any;
879
+
880
+ /** {en}
881
+ * @brief The unique identifier for an audio stream.
882
+ *
883
+ */
884
+ get streamId(): number;
885
+ set streamId(value: number);
886
+
887
+ /** {en}
888
+ * @detail api
889
+ * @brief The volume of the mixed audio stream. The value range is [0.0,4.0]. If you set VeLiveAudioMixType{@link #VeLiveAudioMixType} to `VeLiveAudioMixPlayAndPush`, this variable takes effect on both the host and the audience sides.
890
+ *
891
+ */
892
+ get volume(): number;
893
+ set volume(value: number);
894
+ protected __init(...args: any[]): void;
895
+ protected __new_instance(...args: any[]): any;
896
+
897
+ /** {en}
898
+ * @platform android
899
+ * @detail api
900
+ * @brief Updates audio mixing configurations.
901
+ * @param other New audio mixing configurations. See VeLiveMixAudioLayout for details.
902
+ *
903
+ */
904
+ android_update(other: $p_a.VeLiveMixAudioLayout): void;
905
+ }
906
+
907
+ export declare enum VeLiveVideoMirrorType {
908
+
909
+ VeLiveVideoMirrorCapture = 0,
910
+
911
+ VeLiveVideoMirrorPreview = 1,
912
+
913
+ VeLiveVideoMirrorPushStream = 2
914
+ }
915
+
916
+ export declare class VeLiveMixVideoLayout {
917
+ protected _instance: any;
918
+
919
+ /** {en}
920
+ * @brief The unique identifier for a video stream.
921
+ *
922
+ */
923
+ get streamId(): number;
924
+ set streamId(value: number);
925
+
926
+ /** {en}
927
+ * @brief The horizontal offset, which represents the ratio of the distance between the left edge of the video and the left edge of the screen to the width of the screen. The value range is [0.0,1.0], where `0.0` indicates the left edge and `1.0` indicates the right edge.
928
+ *
929
+ */
930
+ get x(): number;
931
+ set x(value: number);
932
+
933
+ /** {en}
934
+ * @brief The vertical offset, which represents the ratio of the distance between the top edge of the video and the top edge of the screen to the height of the screen. The value range is [0.0,1.0], where `0.0` indicates the top edge and `1.0` indicates the bottom edge.
935
+ *
936
+ */
937
+ get y(): number;
938
+ set y(value: number);
939
+
940
+ /** {en}
941
+ * @brief The ratio of the video width to the screen width. The value range is [0.0,1.0], where `1.0` indicates that the video occupies the entire screen width.
942
+ *
943
+ */
944
+ get width(): number;
945
+ set width(value: number);
946
+
947
+ /** {en}
948
+ * @brief The ratio of the video height to the screen height. The value range is [0.0,1.0], where `1.0` indicates that the video occupies the entire screen height.
949
+ *
950
+ */
951
+ get height(): number;
952
+ set height(value: number);
953
+
954
+ /** {en}
955
+ * @brief The video transparency. The value range is [0.0, 1.0], where `0.0` indicates full transparency and `1.0` indicates full opacity.
956
+ *
957
+ */
958
+ get alpha(): number;
959
+ set alpha(value: number);
960
+
961
+ /** {en}
962
+ * @brief The level of video within the final mixed video. The value range is [0,100], where `0` represents the bottom layer. The higher the value, the higher the level of the video in the final output.
963
+ *
964
+ */
965
+ get zOrder(): number;
966
+ set zOrder(value: number);
967
+
968
+ /** {en}
969
+ * @brief The render mode of the video. See VeLivePusherRenderMode {@link #VeLivePusherRenderMode} for details.
970
+ *
971
+ */
972
+ get renderMode(): VeLivePusherRenderMode;
973
+ set renderMode(value: VeLivePusherRenderMode);
974
+ protected __init(...args: any[]): void;
975
+ protected __new_instance(...args: any[]): any;
976
+
977
+ /** {en}
978
+ * @platform android
979
+ * @detail api
980
+ * @brief Updates video mixing configurations.
981
+ * @param other New video mixing configurations. See VeLiveMixVideoLayout {@link #VeLiveMixVideoLayout} for details.
982
+ *
983
+ */
984
+ android_update(other: $p_a.VeLiveMixVideoLayout): void;
985
+ }
986
+
987
+ export declare class VeLiveVideoEffectLicenseConfiguration {
988
+
989
+ /** {en}
990
+ * @platform android
991
+ * @detail api
992
+ * @brief Initializes the license configurations in local authentication mode.
993
+ * @return <br>A VeLiveVideoEffectLicenseConfiguration object that uses the specified local path for license authentication.
994
+ * @param path The local cache path for the video effects license. You can get the path through the getPath {@link #getPath} property.
995
+ *
996
+ */
997
+ static android_create(path: string): $p_a.VeLiveVideoEffectLicenseConfiguration;
998
+
999
+ /** {en}
1000
+ * @platform android
1001
+ * @detail api
1002
+ * @brief Initializes the license configurations in local authentication mode.
1003
+ * @return <br>A VeLiveVideoEffectLicenseConfiguration object that uses the specified local path for license authentication.
1004
+ * @param path The local cache path for the video effects license. You can get the path through the getPath {@link #getPath} property.
1005
+ *
1006
+ */
1007
+ static android_create_key$secret$url(key: string, secret: string, url: string): $p_a.VeLiveVideoEffectLicenseConfiguration;
1008
+ protected _instance: any;
1009
+
1010
+ /** {en}
1011
+ * @platform ios
1012
+ * @brief The special effects license type. See VeLiveVideoEffectLicenseType {@link #VeLiveVideoEffectLicenseType} for details.
1013
+ */
1014
+ get ios_type(): $p_i.VeLiveVideoEffectLicenseType;
1015
+ set ios_type(value: $p_i.VeLiveVideoEffectLicenseType);
1016
+
1017
+ /** {en}
1018
+ * @platform ios
1019
+ * @brief The local path to the video effects license, when VeLiveVideoEffectLicenseType {@link #VeLiveVideoEffectLicenseType} is `VeLiveVideoEffectLicenseTypeOffLine`.
1020
+ */
1021
+ get ios_path(): $p_i.NSString;
1022
+ set ios_path(value: $p_i.NSString);
1023
+
1024
+ /** {en}
1025
+ * @platform ios
1026
+ * @brief The online authentication key for the video effects license, when VeLiveVideoEffectLicenseType {@link #VeLiveVideoEffectLicenseType} is `VeLiveVideoEffectLicenseTypeOnLine`.
1027
+ */
1028
+ get ios_key(): $p_i.NSString;
1029
+ set ios_key(value: $p_i.NSString);
1030
+
1031
+ /** {en}
1032
+ * @platform ios
1033
+ * @brief The online authentication secret for the video effects license, when VeLiveVideoEffectLicenseType {@link #VeLiveVideoEffectLicenseType} is `VeLiveVideoEffectLicenseTypeOnLine`.
1034
+ */
1035
+ get ios_secret(): $p_i.NSString;
1036
+ set ios_secret(value: $p_i.NSString);
1037
+
1038
+ /** {en}
1039
+ * @platform ios
1040
+ * @brief The online authentication address for the video effects license, when VeLiveVideoEffectLicenseType {@link #VeLiveVideoEffectLicenseType} is `VeLiveVideoEffectLicenseTypeOnLine`.
1041
+ */
1042
+ get ios_url(): $p_i.NSString;
1043
+ set ios_url(value: $p_i.NSString);
1044
+ protected __init(...args: any[]): void;
1045
+ protected __new_instance(...args: any[]): any;
1046
+
1047
+ /** {en}
1048
+ * @platform android
1049
+ * @detail api
1050
+ * @brief Gets the special effects license type.
1051
+ * @return <br>
1052
+ * The special effects license type. See VeLiveVideoEffectLicenseType {@link #VeLiveVideoEffectLicenseType} for details..
1053
+ *
1054
+ */
1055
+ android_getType(): $p_a.VeLiveVideoEffectLicenseType;
1056
+
1057
+ /** {en}
1058
+ * @platform android
1059
+ * @detail api
1060
+ * @brief Gets the local path to the video effects license.
1061
+ * @return <br>
1062
+ * The local path to the video effects license, when VeLiveVideoEffectLicenseType {@link #VeLiveVideoEffectLicenseType} is `VeLiveVideoEffectLicenseTypeOffLine`.
1063
+ *
1064
+ */
1065
+ android_getPath(): string;
1066
+
1067
+ /** {en}
1068
+ * @platform android
1069
+ * @detail api
1070
+ * @brief Gets the online authentication key for the video effects licenses.
1071
+ * @return <br>
1072
+ * The online authentication key for the video effects license, when VeLiveVideoEffectLicenseType {@link #VeLiveVideoEffectLicenseType} is `VeLiveVideoEffectLicenseTypeOnLine`.
1073
+ *
1074
+ */
1075
+ android_getKey(): string;
1076
+
1077
+ /** {en}
1078
+ * @platform android
1079
+ * @detail api
1080
+ * @brief Gets the online authentication secret for the video effects license.
1081
+ * @return <br>
1082
+ * The online authentication secret for the video effects license, when VeLiveVideoEffectLicenseType {@link #VeLiveVideoEffectLicenseType} is `VeLiveVideoEffectLicenseTypeOnLine`.
1083
+ *
1084
+ */
1085
+ android_getSecret(): string;
1086
+
1087
+ /** {en}
1088
+ * @platform android
1089
+ * @detail api
1090
+ * @brief Gets the online authentication address for the video effects license.
1091
+ * @return <br>
1092
+ * The online authentication address for the video effects license, when VeLiveVideoEffectLicenseType {@link #VeLiveVideoEffectLicenseType} is `VeLiveVideoEffectLicenseTypeOnLine`.
1093
+ *
1094
+ */
1095
+ android_getUrl(): string;
1096
+
1097
+ /** {en}
1098
+ * @platform ios
1099
+ * @detail api
1100
+ * @brief Initializes the license configurations in local authentication mode.
1101
+ * @param path The local cache path for the video effects license. You can get the path through the path {@link #path} property.
1102
+ * @return <br>
1103
+ * A VeLiveVideoEffectLicenseConfiguration {@link #VeLiveVideoEffectLicenseConfiguration} object that uses the specified local path for license authentication.
1104
+ */
1105
+ ios_initWithPath(path: string): this;
1106
+
1107
+ /** {en}
1108
+ * @platform ios
1109
+ * @detail api
1110
+ * @brief Initializes the license configurations in online authentication mode.
1111
+ * @param key The online authentication key for the video effects license. You can get it through the key{@link #key} property.
1112
+ * @param secret The online authentication secret for the video effects license. You can get it through the secret{@link #secret} property.
1113
+ * @param url The online authentication address for the video effects license. You can get it through the url{@link #url} property. If you set it to nil, the SDK will use the default URL.
1114
+ * @return <br>
1115
+ * A VeLiveVideoEffectLicenseConfiguration {@link #VeLiveVideoEffectLicenseConfiguration} object that uses the specified key, secret and address for online license authentication.
1116
+ */
1117
+ ios_initWithKey(key: string, secret: string, url: string): this;
1118
+ }
1119
+
1120
+ export declare enum VeLiveAudioFrameSource {
1121
+
1122
+ /** {en}
1123
+ * @brief The original audio frame captured by the microphone or other audio sources.
1124
+ *
1125
+ */
1126
+ VeLiveAudioFrameSourceCapture = 0,
1127
+
1128
+ /** {en}
1129
+ * @brief The audio frame to be encoded after undergoing various processes, such as noise cancellation and echo cancellation.
1130
+ *
1131
+ */
1132
+ VeLiveAudioFrameSourcePreEncode = 1
1133
+ }
1134
+
1135
+ export declare class VeLiveAudioEncoderConfiguration {
1136
+ protected _instance: any;
1137
+
1138
+ /** {en}
1139
+ * @platform ios
1140
+ * @brief The audio encoding bitrate, in Kbps. The default value is `64`.
1141
+ */
1142
+ get ios_bitrate(): $p_i.int;
1143
+ set ios_bitrate(value: $p_i.int);
1144
+
1145
+ /** {en}
1146
+ * @platform ios
1147
+ * @brief The encoding sample rate. The default value is `VeLiveAudioSampleRate44100`. See VeLiveAudioSampleRate {@link #VeLiveAudioSampleRate} for details.
1148
+ */
1149
+ get ios_sampleRate(): $p_i.VeLiveAudioSampleRate;
1150
+ set ios_sampleRate(value: $p_i.VeLiveAudioSampleRate);
1151
+
1152
+ /** {en}
1153
+ * @platform ios
1154
+ * @brief The number of audio channels. The default value is `VeLiveAudioChannelStereo`. See VeLiveAudioChannel {@link #VeLiveAudioChannel} for details.
1155
+ */
1156
+ get ios_channel(): $p_i.VeLiveAudioChannel;
1157
+ set ios_channel(value: $p_i.VeLiveAudioChannel);
1158
+
1159
+ /** {en}
1160
+ * @platform ios
1161
+ * @brief The AAC encoding format. The default value is `VeLiveAudioAACProfileLC`. See VeLiveAudioProfile {@link #VeLiveAudioProfile} for details.
1162
+ */
1163
+ get ios_profile(): $p_i.VeLiveAudioProfile;
1164
+ set ios_profile(value: $p_i.VeLiveAudioProfile);
1165
+ protected __init(...args: any[]): void;
1166
+ protected __new_instance(...args: any[]): any;
1167
+
1168
+ /** {en}
1169
+ * @platform android
1170
+ * @detail api
1171
+ * @brief Gets the audio encoding bitrate.
1172
+ * @return <br>
1173
+ * The audio encoding bitrate.
1174
+ *
1175
+ */
1176
+ android_getBitrate(): number;
1177
+
1178
+ /** {en}
1179
+ * @platform android
1180
+ * @detail api
1181
+ * @brief Sets the audio encoding bitrate.
1182
+ * @return <br>The audio encoding configurations. See VeLiveAudioEncoderConfiguration for details.
1183
+ * @param bitrate The audio encoding bitrate, in Kbps. The default value is `64`.
1184
+ *
1185
+ */
1186
+ android_setBitrate(bitrate: number): this;
1187
+
1188
+ /** {en}
1189
+ * @platform android
1190
+ * @detail api
1191
+ * @brief Gets the encoding sample rate.
1192
+ * @return <br>
1193
+ * The encoding sample rate. See VeLiveAudioSampleRate {@link #VeLiveAudioSampleRate} for details.
1194
+ *
1195
+ */
1196
+ android_getSampleRate(): $p_a.VeLiveAudioSampleRate;
1197
+
1198
+ /** {en}
1199
+ * @platform android
1200
+ * @detail api
1201
+ * @brief Sets the encoding sample rate.
1202
+ * @return <br>The audio encoding configurations. See VeLiveAudioEncoderConfiguration for details.
1203
+ * @param sampleRate The encoding sample rate. The default value is `VeLiveAudioSampleRate44100`. See VeLiveAudioSampleRate {@link #VeLiveAudioSampleRate} for details.
1204
+ *
1205
+ */
1206
+ android_setSampleRate(sampleRate: $p_a.VeLiveAudioSampleRate): this;
1207
+
1208
+ /** {en}
1209
+ * @platform android
1210
+ * @detail api
1211
+ * @brief Gets the number of audio channels for streaming.
1212
+ * @return <br>
1213
+ * The number of audio channels for streaming. See VeLiveAudioChannel {@link #VeLiveAudioChannel} for details.
1214
+ *
1215
+ */
1216
+ android_getChannel(): $p_a.VeLiveAudioChannel;
1217
+
1218
+ /** {en}
1219
+ * @platform android
1220
+ * @detail api
1221
+ * @brief Sets the number of audio channels for streaming.
1222
+ * @return <br>The audio encoding configurations. See VeLiveAudioEncoderConfiguration for details.
1223
+ * @param channel The number of audio channels for streaming. The default value is `VeLiveAudioChannelStereo`. See VeLiveAudioChannel {@link #VeLiveAudioChannel} for details.
1224
+ *
1225
+ */
1226
+ android_setChannel(channel: $p_a.VeLiveAudioChannel): this;
1227
+
1228
+ /** {en}
1229
+ * @platform android
1230
+ * @detail api
1231
+ * @brief Gets the audio encoding format.
1232
+ * @return <br>
1233
+ * The audio encoding format. See VeLiveAudioProfile {@link #VeLiveAudioProfile} for details.
1234
+ *
1235
+ */
1236
+ android_getProfile(): $p_a.VeLiveAudioProfile;
1237
+
1238
+ /** {en}
1239
+ * @platform android
1240
+ * @detail api
1241
+ * @brief Sets the audio encoding format.
1242
+ * @return <br>The audio encoding configurations. See VeLiveAudioEncoderConfiguration for details.
1243
+ * @param profile The audio encoding format. The default value is `VeLiveAudioAACProfileLC`. See VeLiveAudioProfile {@link #VeLiveAudioProfile} for details.
1244
+ *
1245
+ */
1246
+ android_setProfile(profile: $p_a.VeLiveAudioProfile): this;
1247
+ }
1248
+
1249
+ export declare enum VeLiveAudioMixType {
1250
+
1251
+ VeLiveAudioMixPush = 0,
1252
+
1253
+ VeLiveAudioMixPlayAndPush = 1
1254
+ }
1255
+ export declare class t_VeLivePusherRenderMode {
1256
+ static ts_to_android(value: VeLivePusherRenderMode): $p_a.VeLivePusherRenderMode;
1257
+ static android_to_ts(value: $p_a.VeLivePusherRenderMode): VeLivePusherRenderMode;
1258
+ static ts_to_ios(value: VeLivePusherRenderMode): $p_i.VeLivePusherRenderMode;
1259
+ static ios_to_ts(value: $p_i.VeLivePusherRenderMode): VeLivePusherRenderMode;
1260
+ }
1261
+ export declare class t_VeLiveAudioBufferType {
1262
+ static ts_to_android(value: VeLiveAudioBufferType): $p_a.VeLiveAudioBufferType;
1263
+ static android_to_ts(value: $p_a.VeLiveAudioBufferType): VeLiveAudioBufferType;
1264
+ static ts_to_ios(value: VeLiveAudioBufferType): $p_i.VeLiveAudioBufferType;
1265
+ static ios_to_ts(value: $p_i.VeLiveAudioBufferType): VeLiveAudioBufferType;
1266
+ }
1267
+ export declare class t_VeLiveVideoCaptureType {
1268
+ static ts_to_android(value: VeLiveVideoCaptureType): $p_a.VeLiveVideoCaptureType;
1269
+ static android_to_ts(value: $p_a.VeLiveVideoCaptureType): VeLiveVideoCaptureType;
1270
+ static ts_to_ios(value: VeLiveVideoCaptureType): $p_i.VeLiveVideoCaptureType;
1271
+ static ios_to_ts(value: $p_i.VeLiveVideoCaptureType): VeLiveVideoCaptureType;
1272
+ }
1273
+ export declare class t_VeLiveVideoRotation {
1274
+ static ts_to_android(value: VeLiveVideoRotation): $p_a.VeLiveVideoRotation;
1275
+ static android_to_ts(value: $p_a.VeLiveVideoRotation): VeLiveVideoRotation;
1276
+ static ts_to_ios(value: VeLiveVideoRotation): $p_i.VeLiveVideoRotation;
1277
+ static ios_to_ts(value: $p_i.VeLiveVideoRotation): VeLiveVideoRotation;
1278
+ }
1279
+ export declare class t_VeLiveNetworkQuality {
1280
+ static ts_to_android(value: VeLiveNetworkQuality): $p_a.VeLiveNetworkQuality;
1281
+ static android_to_ts(value: $p_a.VeLiveNetworkQuality): VeLiveNetworkQuality;
1282
+ static ts_to_ios(value: VeLiveNetworkQuality): $p_i.VeLiveNetworkQuality;
1283
+ static ios_to_ts(value: $p_i.VeLiveNetworkQuality): VeLiveNetworkQuality;
1284
+ }
1285
+ export declare class t_VeLiveAudioCaptureType {
1286
+ static ts_to_android(value: VeLiveAudioCaptureType): $p_a.VeLiveAudioCaptureType;
1287
+ static android_to_ts(value: $p_a.VeLiveAudioCaptureType): VeLiveAudioCaptureType;
1288
+ static ts_to_ios(value: VeLiveAudioCaptureType): $p_i.VeLiveAudioCaptureType;
1289
+ static ios_to_ts(value: $p_i.VeLiveAudioCaptureType): VeLiveAudioCaptureType;
1290
+ }
1291
+ export declare class t_VeLiveVideoBufferType {
1292
+ static ts_to_android(value: VeLiveVideoBufferType): $p_a.VeLiveVideoBufferType;
1293
+ static android_to_ts(value: $p_a.VeLiveVideoBufferType): VeLiveVideoBufferType;
1294
+ static ts_to_ios(value: VeLiveVideoBufferType): $p_i.VeLiveVideoBufferType;
1295
+ static ios_to_ts(value: $p_i.VeLiveVideoBufferType): VeLiveVideoBufferType;
1296
+ }
1297
+ export declare class t_VeLiveOrientation {
1298
+ static ts_to_android(value: VeLiveOrientation): $p_a.VeLiveOrientation;
1299
+ static android_to_ts(value: $p_a.VeLiveOrientation): VeLiveOrientation;
1300
+ static ts_to_ios(value: VeLiveOrientation): $p_i.UIInterfaceOrientation;
1301
+ static ios_to_ts(value: $p_i.UIInterfaceOrientation): VeLiveOrientation;
1302
+ }
1303
+ export declare class t_VeLivePusherStatus {
1304
+ static ts_to_android(value: VeLivePusherStatus): $p_a.VeLivePusherStatus;
1305
+ static android_to_ts(value: $p_a.VeLivePusherStatus): VeLivePusherStatus;
1306
+ static ts_to_ios(value: VeLivePusherStatus): $p_i.VeLivePushStatus;
1307
+ static ios_to_ts(value: $p_i.VeLivePushStatus): VeLivePusherStatus;
1308
+ }
1309
+ export declare class t_VeLiveAudioPowerLevel {
1310
+ static ts_to_android(value: VeLiveAudioPowerLevel): $p_a.VeLiveAudioPowerLevel;
1311
+ static android_to_ts(value: $p_a.VeLiveAudioPowerLevel): VeLiveAudioPowerLevel;
1312
+ static ts_to_ios(value: VeLiveAudioPowerLevel): $p_i.VeLiveAudioPowerLevel;
1313
+ static ios_to_ts(value: $p_i.VeLiveAudioPowerLevel): VeLiveAudioPowerLevel;
1314
+ }
1315
+ export declare class t_VeLivePixelFormat {
1316
+ static ts_to_android(value: VeLivePixelFormat): $p_a.VeLivePixelFormat;
1317
+ static android_to_ts(value: $p_a.VeLivePixelFormat): VeLivePixelFormat;
1318
+ static ts_to_ios(value: VeLivePixelFormat): $p_i.VeLivePixelFormat;
1319
+ static ios_to_ts(value: $p_i.VeLivePixelFormat): VeLivePixelFormat;
1320
+ }
1321
+ export declare class t_VeLivePusherLogLevel {
1322
+ static ts_to_android(value: VeLivePusherLogLevel): $p_a.VeLivePusherLogLevel;
1323
+ static android_to_ts(value: $p_a.VeLivePusherLogLevel): VeLivePusherLogLevel;
1324
+ static ts_to_ios(value: VeLivePusherLogLevel): $p_i.VeLivePusherLogLevel;
1325
+ static ios_to_ts(value: $p_i.VeLivePusherLogLevel): VeLivePusherLogLevel;
1326
+ }
1327
+ export declare class t_VeLiveVideoResolution {
1328
+ static ts_to_android(value: VeLiveVideoResolution): $p_a.VeLiveVideoResolution;
1329
+ static android_to_ts(value: $p_a.VeLiveVideoResolution): VeLiveVideoResolution;
1330
+ static ts_to_ios(value: VeLiveVideoResolution): $p_i.VeLiveVideoResolution;
1331
+ static ios_to_ts(value: $p_i.VeLiveVideoResolution): VeLiveVideoResolution;
1332
+ }
1333
+ export declare class t_VeLiveVideoCodec {
1334
+ static ts_to_android(value: VeLiveVideoCodec): $p_a.VeLiveVideoCodec;
1335
+ static android_to_ts(value: $p_a.VeLiveVideoCodec): VeLiveVideoCodec;
1336
+ static ts_to_ios(value: VeLiveVideoCodec): $p_i.VeLiveVideoCodec;
1337
+ static ios_to_ts(value: $p_i.VeLiveVideoCodec): VeLiveVideoCodec;
1338
+ }
1339
+ export declare class t_VeLiveVideoEffectLicenseType {
1340
+ static ts_to_android(value: VeLiveVideoEffectLicenseType): $p_a.VeLiveVideoEffectLicenseType;
1341
+ static android_to_ts(value: $p_a.VeLiveVideoEffectLicenseType): VeLiveVideoEffectLicenseType;
1342
+ static ts_to_ios(value: VeLiveVideoEffectLicenseType): $p_i.VeLiveVideoEffectLicenseType;
1343
+ static ios_to_ts(value: $p_i.VeLiveVideoEffectLicenseType): VeLiveVideoEffectLicenseType;
1344
+ }
1345
+ export declare class t_VeLiveAudioChannel {
1346
+ static ts_to_android(value: VeLiveAudioChannel): $p_a.VeLiveAudioChannel;
1347
+ static android_to_ts(value: $p_a.VeLiveAudioChannel): VeLiveAudioChannel;
1348
+ static ts_to_ios(value: VeLiveAudioChannel): $p_i.VeLiveAudioChannel;
1349
+ static ios_to_ts(value: $p_i.VeLiveAudioChannel): VeLiveAudioChannel;
1350
+ }
1351
+ export declare class t_VeLiveFirstFrameType {
1352
+ static ts_to_android(value: VeLiveFirstFrameType): $p_a.VeLiveFirstFrameType;
1353
+ static android_to_ts(value: $p_a.VeLiveFirstFrameType): VeLiveFirstFrameType;
1354
+ static ts_to_ios(value: VeLiveFirstFrameType): $p_i.VeLiveFirstFrameType;
1355
+ static ios_to_ts(value: $p_i.VeLiveFirstFrameType): VeLiveFirstFrameType;
1356
+ }
1357
+ export declare class t_VeLiveVideoFrameSource {
1358
+ static ts_to_android(value: VeLiveVideoFrameSource): $p_a.VeLiveVideoFrameSource;
1359
+ static android_to_ts(value: $p_a.VeLiveVideoFrameSource): VeLiveVideoFrameSource;
1360
+ static ts_to_ios(value: VeLiveVideoFrameSource): $p_i.VeLiveVideoFrameSource;
1361
+ static ios_to_ts(value: $p_i.VeLiveVideoFrameSource): VeLiveVideoFrameSource;
1362
+ }
1363
+ export declare class t_VeLiveAudioProfile {
1364
+ static ts_to_android(value: VeLiveAudioProfile): $p_a.VeLiveAudioProfile;
1365
+ static android_to_ts(value: $p_a.VeLiveAudioProfile): VeLiveAudioProfile;
1366
+ static ts_to_ios(value: VeLiveAudioProfile): $p_i.VeLiveAudioProfile;
1367
+ static ios_to_ts(value: $p_i.VeLiveAudioProfile): VeLiveAudioProfile;
1368
+ }
1369
+ export declare class t_VeLiveAudioSampleRate {
1370
+ static ts_to_android(value: VeLiveAudioSampleRate): $p_a.VeLiveAudioSampleRate;
1371
+ static android_to_ts(value: $p_a.VeLiveAudioSampleRate): VeLiveAudioSampleRate;
1372
+ static ts_to_ios(value: VeLiveAudioSampleRate): $p_i.VeLiveAudioSampleRate;
1373
+ static ios_to_ts(value: $p_i.VeLiveAudioSampleRate): VeLiveAudioSampleRate;
1374
+ }
1375
+ export declare class t_VeLiveVideoMirrorType {
1376
+ static ts_to_android(value: VeLiveVideoMirrorType): $p_a.VeLiveVideoMirrorType;
1377
+ static android_to_ts(value: $p_a.VeLiveVideoMirrorType): VeLiveVideoMirrorType;
1378
+ static ts_to_ios(value: VeLiveVideoMirrorType): $p_i.VeLiveVideoMirrorType;
1379
+ static ios_to_ts(value: $p_i.VeLiveVideoMirrorType): VeLiveVideoMirrorType;
1380
+ }
1381
+ export declare class t_VeLiveAudioFrameSource {
1382
+ static ts_to_android(value: VeLiveAudioFrameSource): $p_a.VeLiveAudioFrameSource;
1383
+ static android_to_ts(value: $p_a.VeLiveAudioFrameSource): VeLiveAudioFrameSource;
1384
+ static ts_to_ios(value: VeLiveAudioFrameSource): $p_i.VeLiveAudioFrameSource;
1385
+ static ios_to_ts(value: $p_i.VeLiveAudioFrameSource): VeLiveAudioFrameSource;
1386
+ }
1387
+ export declare class t_VeLiveAudioMixType {
1388
+ static ts_to_android(value: VeLiveAudioMixType): $p_a.VeLiveAudioMixType;
1389
+ static android_to_ts(value: $p_a.VeLiveAudioMixType): VeLiveAudioMixType;
1390
+ static ts_to_ios(value: VeLiveAudioMixType): $p_i.VeLiveAudioMixType;
1391
+ static ios_to_ts(value: $p_i.VeLiveAudioMixType): VeLiveAudioMixType;
1392
+ }