@volcengine/react-native-live-push 1.1.3-rc.0 → 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.
Files changed (139) hide show
  1. package/android/build.gradle +2 -2
  2. package/android/src/main/java/com/volcengine/velive/rn/push/ClassHelper.java +9 -0
  3. package/android/src/main/java/com/volcengine/velive/rn/push/NativeVariableManager.java +5 -8
  4. package/android/src/main/java/com/volcengine/velive/rn/push/VeLivePushModule.java +14 -2
  5. package/android/src/main/java/com/volcengine/velive/rn/push/VeLivePushPackage.java +16 -13
  6. package/android/src/main/java/com/volcengine/velive/rn/push/VeLivePushView.java +16 -0
  7. package/android/src/main/java/com/volcengine/velive/rn/push/VeLivePushViewManager.java +7 -2
  8. package/android/src/main/java/com/volcengine/velive/rn/push/mixer/MixerManager.java +410 -0
  9. package/android/src/main/java/com/volcengine/velive/rn/push/mixer/MixerView.java +434 -0
  10. package/android/src/main/java/com/volcengine/velive/rn/push/mixer/MixerViewManager.java +79 -0
  11. package/android/src/main/java/com/volcengine/velive/rn/push/mixer/TextureMgr.java +168 -0
  12. package/android/src/main/java/com/volcengine/velive/rn/push/mixer/YuvHelper.java +165 -0
  13. package/ios/VeLiveMixerHelper.h +46 -0
  14. package/ios/VeLiveMixerHelper.m +620 -0
  15. package/ios/VeLiveMixerView.h +69 -0
  16. package/ios/VeLiveMixerView.m +600 -0
  17. package/ios/VeLiveMixerViewManager.m +92 -0
  18. package/lib/commonjs/index.js +22698 -20359
  19. package/lib/commonjs/typescript/android/index.d.ts +44 -0
  20. package/lib/commonjs/typescript/codegen/android/api.d.ts +1068 -0
  21. package/lib/commonjs/typescript/codegen/android/callback.d.ts +333 -0
  22. package/lib/commonjs/typescript/codegen/android/errorcode.d.ts +92 -0
  23. package/lib/commonjs/typescript/codegen/android/index.d.ts +5 -0
  24. package/lib/commonjs/typescript/codegen/android/keytype.d.ts +1693 -0
  25. package/lib/commonjs/typescript/codegen/android/types.d.ts +33 -0
  26. package/lib/commonjs/typescript/codegen/ios/api.d.ts +1125 -0
  27. package/lib/commonjs/typescript/codegen/ios/callback.d.ts +242 -0
  28. package/lib/commonjs/typescript/codegen/ios/errorcode.d.ts +154 -0
  29. package/lib/commonjs/typescript/codegen/ios/external.d.ts +1 -0
  30. package/lib/commonjs/typescript/codegen/ios/index.d.ts +6 -0
  31. package/lib/commonjs/typescript/codegen/ios/keytype.d.ts +1154 -0
  32. package/lib/commonjs/typescript/codegen/ios/types.d.ts +46 -0
  33. package/lib/commonjs/typescript/codegen/pack/api.d.ts +1470 -0
  34. package/lib/commonjs/typescript/codegen/pack/callback.d.ts +446 -0
  35. package/lib/commonjs/typescript/codegen/pack/errorcode.d.ts +109 -0
  36. package/lib/commonjs/typescript/codegen/pack/index.d.ts +5 -0
  37. package/lib/commonjs/typescript/codegen/pack/keytype.d.ts +2248 -0
  38. package/lib/commonjs/typescript/codegen/pack/types.d.ts +68 -0
  39. package/lib/commonjs/typescript/codegen/type-shim.d.ts +6 -0
  40. package/lib/commonjs/typescript/component.d.ts +15 -0
  41. package/lib/commonjs/typescript/core/api.d.ts +18 -0
  42. package/lib/commonjs/typescript/core/callback.d.ts +2 -0
  43. package/lib/commonjs/typescript/core/env.d.ts +29 -0
  44. package/lib/commonjs/typescript/core/errorcode.d.ts +2 -0
  45. package/lib/commonjs/typescript/core/index.d.ts +6 -0
  46. package/lib/commonjs/typescript/core/keytype.d.ts +18 -0
  47. package/lib/commonjs/typescript/core/mixer.d.ts +26 -0
  48. package/lib/commonjs/typescript/core/pusher.d.ts +13 -0
  49. package/lib/commonjs/typescript/index.d.ts +3 -0
  50. package/lib/commonjs/typescript/ios/extends.d.ts +41 -0
  51. package/lib/commonjs/typescript/platforms/android/extends.d.ts +8 -0
  52. package/lib/commonjs/typescript/platforms/android/helper.d.ts +8 -0
  53. package/lib/commonjs/typescript/platforms/android/mixer.d.ts +8 -0
  54. package/lib/commonjs/typescript/platforms/ios/extends.d.ts +17 -0
  55. package/lib/commonjs/typescript/platforms/ios/helper.d.ts +8 -0
  56. package/lib/commonjs/typescript/platforms/ios/mixer.d.ts +9 -0
  57. package/lib/commonjs/typescript/runtime.d.ts +1 -0
  58. package/lib/commonjs/typescript/view/MixView.d.ts +52 -0
  59. package/lib/commonjs/typescript/view/VeImageView.d.ts +19 -0
  60. package/lib/commonjs/typescript/view/VeTextView.d.ts +7 -0
  61. package/lib/commonjs/typescript/view/VeView.d.ts +7 -0
  62. package/lib/commonjs/typescript/view/VeWebView.d.ts +7 -0
  63. package/lib/commonjs/typescript/view/index.d.ts +5 -0
  64. package/lib/module/index.js +22695 -20360
  65. package/lib/module/typescript/android/index.d.ts +44 -0
  66. package/lib/module/typescript/codegen/android/api.d.ts +1068 -0
  67. package/lib/module/typescript/codegen/android/callback.d.ts +333 -0
  68. package/lib/module/typescript/codegen/android/errorcode.d.ts +92 -0
  69. package/lib/module/typescript/codegen/android/index.d.ts +5 -0
  70. package/lib/module/typescript/codegen/android/keytype.d.ts +1693 -0
  71. package/lib/module/typescript/codegen/android/types.d.ts +33 -0
  72. package/lib/module/typescript/codegen/ios/api.d.ts +1125 -0
  73. package/lib/module/typescript/codegen/ios/callback.d.ts +242 -0
  74. package/lib/module/typescript/codegen/ios/errorcode.d.ts +154 -0
  75. package/lib/module/typescript/codegen/ios/external.d.ts +1 -0
  76. package/lib/module/typescript/codegen/ios/index.d.ts +6 -0
  77. package/lib/module/typescript/codegen/ios/keytype.d.ts +1154 -0
  78. package/lib/module/typescript/codegen/ios/types.d.ts +46 -0
  79. package/lib/module/typescript/codegen/pack/api.d.ts +1470 -0
  80. package/lib/module/typescript/codegen/pack/callback.d.ts +446 -0
  81. package/lib/module/typescript/codegen/pack/errorcode.d.ts +109 -0
  82. package/lib/module/typescript/codegen/pack/index.d.ts +5 -0
  83. package/lib/module/typescript/codegen/pack/keytype.d.ts +2248 -0
  84. package/lib/module/typescript/codegen/pack/types.d.ts +68 -0
  85. package/lib/module/typescript/codegen/type-shim.d.ts +6 -0
  86. package/lib/module/typescript/component.d.ts +15 -0
  87. package/lib/module/typescript/core/api.d.ts +18 -0
  88. package/lib/module/typescript/core/callback.d.ts +2 -0
  89. package/lib/module/typescript/core/env.d.ts +29 -0
  90. package/lib/module/typescript/core/errorcode.d.ts +2 -0
  91. package/lib/module/typescript/core/index.d.ts +6 -0
  92. package/lib/module/typescript/core/keytype.d.ts +18 -0
  93. package/lib/module/typescript/core/mixer.d.ts +26 -0
  94. package/lib/module/typescript/core/pusher.d.ts +13 -0
  95. package/lib/module/typescript/index.d.ts +3 -0
  96. package/lib/module/typescript/ios/extends.d.ts +41 -0
  97. package/lib/module/typescript/platforms/android/extends.d.ts +8 -0
  98. package/lib/module/typescript/platforms/android/helper.d.ts +8 -0
  99. package/lib/module/typescript/platforms/android/mixer.d.ts +8 -0
  100. package/lib/module/typescript/platforms/ios/extends.d.ts +17 -0
  101. package/lib/module/typescript/platforms/ios/helper.d.ts +8 -0
  102. package/lib/module/typescript/platforms/ios/mixer.d.ts +9 -0
  103. package/lib/module/typescript/runtime.d.ts +1 -0
  104. package/lib/module/typescript/view/MixView.d.ts +52 -0
  105. package/lib/module/typescript/view/VeImageView.d.ts +19 -0
  106. package/lib/module/typescript/view/VeTextView.d.ts +7 -0
  107. package/lib/module/typescript/view/VeView.d.ts +7 -0
  108. package/lib/module/typescript/view/VeWebView.d.ts +7 -0
  109. package/lib/module/typescript/view/index.d.ts +5 -0
  110. package/lib/typescript/android/index.d.ts +0 -3
  111. package/lib/typescript/codegen/android/api.d.ts +194 -762
  112. package/lib/typescript/codegen/android/callback.d.ts +85 -48
  113. package/lib/typescript/codegen/android/errorcode.d.ts +30 -0
  114. package/lib/typescript/codegen/android/keytype.d.ts +514 -122
  115. package/lib/typescript/codegen/ios/api.d.ts +380 -351
  116. package/lib/typescript/codegen/ios/callback.d.ts +33 -6
  117. package/lib/typescript/codegen/ios/errorcode.d.ts +52 -2
  118. package/lib/typescript/codegen/ios/keytype.d.ts +313 -35
  119. package/lib/typescript/codegen/pack/api.d.ts +302 -821
  120. package/lib/typescript/codegen/pack/callback.d.ts +54 -49
  121. package/lib/typescript/codegen/pack/errorcode.d.ts +38 -5
  122. package/lib/typescript/codegen/pack/keytype.d.ts +672 -228
  123. package/lib/typescript/core/api.d.ts +18 -2
  124. package/lib/typescript/core/keytype.d.ts +16 -0
  125. package/lib/typescript/core/mixer.d.ts +26 -0
  126. package/lib/typescript/core/pusher.d.ts +0 -3
  127. package/lib/typescript/index.d.ts +1 -0
  128. package/lib/typescript/platforms/android/extends.d.ts +8 -0
  129. package/lib/typescript/platforms/android/mixer.d.ts +8 -0
  130. package/lib/typescript/platforms/ios/mixer.d.ts +9 -0
  131. package/lib/typescript/view/MixView.d.ts +52 -0
  132. package/lib/typescript/view/VeImageView.d.ts +19 -0
  133. package/lib/typescript/view/VeTextView.d.ts +7 -0
  134. package/lib/typescript/view/VeView.d.ts +7 -0
  135. package/lib/typescript/view/VeWebView.d.ts +7 -0
  136. package/lib/typescript/view/index.d.ts +5 -0
  137. package/package.json +1 -1
  138. package/react-native-velive-push.podspec +3 -3
  139. package/android/src/main/java/com/volcengine/velive/rn/push/ScreenCaptureHelper.java +0 -73
@@ -0,0 +1,2248 @@
1
+ import * as $p_a from '../android/index';
2
+ import * as $p_i from '../ios/index';
3
+ /** {zh}
4
+ * @detail keytype
5
+ * @brief 推流本地文件录制配置。
6
+ *
7
+ */
8
+ export declare class VeLiveFileRecorderConfiguration {
9
+ protected _instance: any;
10
+ protected __init(...args: any[]): void;
11
+ protected __new_instance(...args: any[]): any;
12
+ /** {zh}
13
+ * @detail api
14
+ * @brief 设置录制视频宽度。
15
+ * @param width 录制视频宽度,默认值为 360
16
+ * @return 推流本地文件录制配置对象,详情请参见 [VeLiveFileRecorderConfiguration](#VeLivePusherDef-VeLiveFileRecorderConfiguration)。
17
+ *
18
+ */
19
+
20
+ setWidth(width: number): void;
21
+ /** {zh}
22
+ * @detail api
23
+ * @brief 设置录制视频高度。
24
+ * @param height 录制视频宽度,默认值为 640。
25
+ * @return 推流本地文件录制配置对象,详情请参见 [VeLiveFileRecorderConfiguration](#VeLivePusherDef-VeLiveFileRecorderConfiguration)。<br/>
26
+ *
27
+ */
28
+
29
+ setHeight(height: number): void;
30
+ /** {zh}
31
+ * @detail api
32
+ * @brief 设置录制视频码率。
33
+ * @param bitrate 录制视频码率,单位为 kbps,默认值为 2000。
34
+ * @return
35
+ * 推流本地文件录制配置对象,详情请参见 [VeLiveFileRecorderConfiguration](#VeLivePusherDef-VeLiveFileRecorderConfiguration)。
36
+ *
37
+ */
38
+
39
+ setBitrate(bitrate: number): void;
40
+ /** {zh}
41
+ * @detail api
42
+ * @brief 设置录制视频帧率。
43
+ * @param fps 录制视频帧率,默认值为 15。
44
+ * @return 推流本地文件录制配置对象,详情请参见 [VeLiveFileRecorderConfiguration](#VeLivePusherDef-VeLiveFileRecorderConfiguration)。
45
+ *
46
+ */
47
+
48
+ setFps(fps: number): void;
49
+ /** {zh}
50
+ * @platform android
51
+ * @detail api
52
+ * @brief 获取录制视频宽度。
53
+ * @return <br>
54
+ * 录制视频宽度。
55
+ *
56
+ */
57
+
58
+ android_getWidth(): number;
59
+ /** {zh}
60
+ * @platform android
61
+ * @detail api
62
+ * @brief 获取录制视频高度。
63
+ * @return <br>
64
+ * 录制视频高度。
65
+ *
66
+ */
67
+
68
+ android_getHeight(): number;
69
+ /** {zh}
70
+ * @platform android
71
+ * @detail api
72
+ * @brief 获取录制视频帧率。
73
+ * @return <br>
74
+ * 录制视频帧率。
75
+ *
76
+ */
77
+
78
+ android_getFps(): number;
79
+ /** {zh}
80
+ * @platform android
81
+ * @detail api
82
+ * @brief 获取录制视频码率。
83
+ * @return <br>
84
+ * 录制视频码率。
85
+ *
86
+ */
87
+
88
+ android_getBitrate(): number;
89
+ }
90
+ /** {zh}
91
+ * @detail keytype
92
+ * @brief 视频采集配置。
93
+ *
94
+ */
95
+ export declare class VeLiveVideoCaptureConfiguration {
96
+ protected _instance: any;
97
+ /** {zh}
98
+ * @platform ios
99
+ * @brief 视频采集帧类型,默认为 kCVPixelFormatType_420YpCbCr8BiPlanarFullRange。
100
+ * @note 支持以下视频帧类型:
101
+ * - kCVPixelFormatType_32BGRA
102
+ * - kCVPixelFormatType_420YpCbCr8BiPlanarFullRange
103
+ * - kCVPixelFormatType_420YpCbCr8BiPlanarVideoRange
104
+ * - kCVPixelFormatType_420YpCbCr10BiPlanarVideoRange
105
+ */
106
+
107
+ get pixelFormat(): $p_i.OSType;
108
+ set pixelFormat(value: $p_i.OSType);
109
+ protected __init(...args: any[]): void;
110
+ protected __new_instance(...args: any[]): any;
111
+ /** {zh}
112
+ * @detail api
113
+ * @brief 设置采集视频宽度。
114
+ * @param width 采集视频宽度,默认值为 720。
115
+ * @return 推流视频采集参数配置对象,详情请参见 [VeLiveVideoCaptureConfiguration](#VeLivePusherDef-VeLiveVideoCaptureConfiguration)。
116
+ *
117
+ */
118
+
119
+ setWidth(width: number): void;
120
+ /** {zh}
121
+ * @detail api
122
+ * @brief 设置采集视频高度。
123
+ * @param height 采集视频高度,默认值为 1280。
124
+ * @return 推流视频采集参数配置对象,详情请参见 [VeLiveVideoCaptureConfiguration](#VeLivePusherDef-VeLiveVideoCaptureConfiguration)。
125
+ *
126
+ */
127
+
128
+ setHeight(height: number): void;
129
+ /** {zh}
130
+ * @detail api
131
+ * @brief 设置采集视频帧率。
132
+ * @param fps 采集视频帧率,默认值为 15。
133
+ * @return 推流视频采集参数配置对象,详情请参见 [VeLiveVideoCaptureConfiguration](#VeLivePusherDef-VeLiveVideoCaptureConfiguration)。
134
+ *
135
+ */
136
+
137
+ setFps(fps: number): void;
138
+ /** {zh}
139
+ * @platform android
140
+ * @detail api
141
+ * @brief 获取采集视频宽度。
142
+ * @return 采集视频宽度。
143
+ *
144
+ */
145
+
146
+ android_getWidth(): number;
147
+ /** {zh}
148
+ * @platform android
149
+ * @detail api
150
+ * @brief 获取采集视频高度。
151
+ * @return <br>
152
+ * 采集视频高度。
153
+ *
154
+ */
155
+
156
+ android_getHeight(): number;
157
+ /** {zh}
158
+ * @platform android
159
+ * @detail api
160
+ * @brief 获取采集视频帧率。
161
+ * @return <br>
162
+ * 采集视频帧率。
163
+ *
164
+ */
165
+
166
+ android_getFps(): number;
167
+ }
168
+ /** {zh}
169
+ * @detail keytype
170
+ * @brief 推流渲染模式。
171
+ *
172
+ */
173
+ export declare enum VeLivePusherRenderMode {
174
+ /** {zh}
175
+ * @brief 视频帧自适应画布。视频帧非等比缩放,直至画布被填满。在此过程中,视频帧的长宽比例可能会发生变化。
176
+ *
177
+ */
178
+
179
+ VeLivePusherRenderModeFill = 0,
180
+ /** {zh}
181
+ * @brief 视频帧内容全部显示优先。视频尺寸等比缩放,优先保证视频内容全部显示。当视频尺寸与显示窗口尺寸不一致时,会把窗口未被填满的区域填充成背景颜色。
182
+ *
183
+ */
184
+
185
+ VeLivePusherRenderModeFit = 1,
186
+ /** {zh}
187
+ * @brief 视窗填满优先。视频帧等比缩放,直至视窗被视频填满。如果视频帧长宽比例与视窗不同,视频帧的多出部分将无法显示。
188
+ *
189
+ */
190
+
191
+ VeLivePusherRenderModeHidden = 2
192
+ }
193
+ /** {zh}
194
+ * @detail keytype
195
+ * @brief 推流音频数据类型。
196
+ *
197
+ */
198
+ export declare enum VeLiveAudioBufferType {
199
+ /** {zh}
200
+ * @brief 未知的音频数据类型。
201
+ *
202
+ */
203
+
204
+ VeLiveAudioBufferTypeUnknown = 0,
205
+ /** {zh}
206
+ * @platform android
207
+ * @brief ByteBuffer 音频数据类型。
208
+ *
209
+ */
210
+
211
+ VeLiveAudioBufferTypeByteBuffer = 1,
212
+ /** {zh}
213
+ * @platform ios
214
+ * @brief 音频数据类型为 CMSampleBufferRef。
215
+ *
216
+ */
217
+
218
+ VeLiveAudioBufferTypeSampleBuffer = 2,
219
+ /** {zh}
220
+ * @platform ios
221
+ * @brief 音频数据类型为 NSData。
222
+ *
223
+ */
224
+
225
+ VeLiveAudioBufferTypeNSData = 3
226
+ }
227
+ /** {zh}
228
+ * @detail keytype
229
+ * @brief 视频采集类型。
230
+ *
231
+ */
232
+ export declare enum VeLiveVideoCaptureType {
233
+ /** {zh}
234
+ * @brief 使用前置摄像头进行视频采集。
235
+ *
236
+ */
237
+
238
+ VeLiveVideoCaptureFrontCamera = 0,
239
+ /** {zh}
240
+ * @brief 使用后置摄像头进行视频采集。
241
+ *
242
+ */
243
+
244
+ VeLiveVideoCaptureBackCamera = 1,
245
+ /** {zh}
246
+ * @brief 使用设备的双摄进行视频采集。
247
+ *
248
+ */
249
+
250
+ VeLiveVideoCaptureDualCamera = 2,
251
+ /** {zh}
252
+ * @platform android
253
+ * @brief 使用屏幕采集。
254
+ *
255
+ */
256
+
257
+ VeLiveVideoCaptureScreen = 3,
258
+ /** {zh}
259
+ * @brief 使用外部设备或源进行视频采集。
260
+ *
261
+ */
262
+
263
+ VeLiveVideoCaptureExternal = 4,
264
+ /** {zh}
265
+ * @brief 使用指定的静态图片作为视频源。
266
+ *
267
+ */
268
+
269
+ VeLiveVideoCaptureCustomImage = 5,
270
+ /** {zh}
271
+ * @brief 使用最近采集的一帧图像重复作为视频源。
272
+ *
273
+ */
274
+
275
+ VeLiveVideoCaptureLastFrame = 6,
276
+ /** {zh}
277
+ * @brief 使用黑色帧作为视频源,一般用于调试或特殊需求。
278
+ *
279
+ */
280
+
281
+ VeLiveVideoCaptureDummyFrame = 7
282
+ }
283
+ /** {zh}
284
+ * @detail keytype
285
+ * @brief 视频帧旋转角度。以 App 方向为旋转参考系。
286
+ *
287
+ */
288
+ export declare enum VeLiveVideoRotation {
289
+ /** {zh}
290
+ * @brief 不旋转。
291
+ *
292
+ */
293
+
294
+ VeLiveVideoRotation0 = 0,
295
+ /** {zh}
296
+ * @brief 顺时针旋转 90 度。
297
+ *
298
+ */
299
+
300
+ VeLiveVideoRotation90 = 1,
301
+ /** {zh}
302
+ * @brief 顺时针旋转 180 度。
303
+ *
304
+ */
305
+
306
+ VeLiveVideoRotation180 = 2,
307
+ /** {zh}
308
+ * @brief 顺时针旋转 270 度。
309
+ *
310
+ */
311
+
312
+ VeLiveVideoRotation270 = 3
313
+ }
314
+ /** {zh}
315
+ * @detail keytype
316
+ * @brief 网络质量/状态。
317
+ *
318
+ */
319
+ export declare enum VeLiveNetworkQuality {
320
+ /** {zh}
321
+ * @brief 未查询到网络状态。
322
+ *
323
+ */
324
+
325
+ VeLiveNetworkQualityUnknown = 0,
326
+ /** {zh}
327
+ * @brief 网络差。
328
+ *
329
+ */
330
+
331
+ VeLiveNetworkQualityBad = 1,
332
+ /** {zh}
333
+ * @brief 网络一般。
334
+ *
335
+ */
336
+
337
+ VeLiveNetworkQualityPoor = 2,
338
+ /** {zh}
339
+ * @brief 网络状态佳。
340
+ *
341
+ */
342
+
343
+ VeLiveNetworkQualityGood = 3
344
+ }
345
+ /** {zh}
346
+ * @detail keytype
347
+ * @brief 音频采集类型。
348
+ *
349
+ */
350
+ export declare enum VeLiveAudioCaptureType {
351
+ /** {zh}
352
+ * @brief 使用默认麦克风设备进行音频采集。
353
+ *
354
+ */
355
+
356
+ VeLiveAudioCaptureMicrophone = 0,
357
+ /** {zh}
358
+ * @brief 使用语音通话模式进行音频采集,此模式下会启动硬件的 3A 功能,即自动增益控制、自动频率控制和自动噪声抑制。
359
+ *
360
+ */
361
+
362
+ VeLiveAudioCaptureVoiceCommunication = 1,
363
+ /** {zh}
364
+ * @brief 使用外部设备或源进行音频采集。
365
+ *
366
+ */
367
+
368
+ VeLiveAudioCaptureExternal = 3,
369
+ /** {zh}
370
+ * @brief 使用静音帧作为音频源。
371
+ *
372
+ */
373
+
374
+ VeLiveAudioCaptureMuteFrame = 4,
375
+ /** {zh}
376
+ * @platform android
377
+ * @brief 使用录屏直播无障碍音频模式进行音频采集。
378
+ *
379
+ */
380
+
381
+ VeLiveAudioCaptureVoiceRecognition = 5
382
+ }
383
+ /** {zh}
384
+ * @detail keytype
385
+ * @brief 推流视频数据类型。
386
+ *
387
+ */
388
+ export declare enum VeLiveVideoBufferType {
389
+ /** {zh}
390
+ * @brief 未知视频数据类型,当未指定输入视频数据的格式时,会默认为此类型。
391
+ *
392
+ */
393
+
394
+ VeLiveVideoBufferTypeUnknown = 0,
395
+ /** {zh}
396
+ * @brief 视频数据类型为 OpenGL 纹理。
397
+ *
398
+ */
399
+
400
+ VeLiveVideoBufferTypeTexture = 1,
401
+ /** {zh}
402
+ * @platform android
403
+ * @brief 视频数据类型为 ByteBuffer 类型。
404
+ *
405
+ */
406
+
407
+ VeLiveVideoBufferTypeByteBuffer = 2,
408
+ /** {zh}
409
+ * @platform android
410
+ * @brief 视频数据类型为 ByteArray 类型。
411
+ *
412
+ */
413
+
414
+ VeLiveVideoBufferTypeByteArray = 3,
415
+ /** {zh}
416
+ * @platform ios
417
+ * @brief 视频数据类型为 CVPixelBuffer。
418
+ *
419
+ */
420
+
421
+ VeLiveVideoBufferTypePixelBuffer = 4,
422
+ /** {zh}
423
+ * @platform ios
424
+ * @brief 视频数据类型为 CMSampleBufferRef。
425
+ *
426
+ */
427
+
428
+ VeLiveVideoBufferTypeSampleBuffer = 5,
429
+ /** {zh}
430
+ * @platform ios
431
+ * @brief 视频数据类型为 NSData。
432
+ *
433
+ */
434
+
435
+ VeLiveVideoBufferTypeNSData = 6
436
+ }
437
+ /** {zh}
438
+ * @detail keytype
439
+ * @brief 推流横竖屏模式。
440
+ *
441
+ */
442
+ export declare enum VeLiveOrientation {
443
+ /** {zh}
444
+ * @brief 横屏模式。
445
+ *
446
+ */
447
+
448
+ VeLiveOrientationLandscape = 0,
449
+ /** {zh}
450
+ * @brief 竖屏模式。
451
+ *
452
+ */
453
+
454
+ VeLiveOrientationPortrait = 1,
455
+ /**
456
+ * @platform ios
457
+ */
458
+ UIInterfaceOrientationUnknown = 2,
459
+ /**
460
+ * @platform ios
461
+ */
462
+ UIInterfaceOrientationPortraitUpsideDown = 3,
463
+ /**
464
+ * @platform ios
465
+ */
466
+ UIInterfaceOrientationLandscapeRight = 4
467
+ }
468
+ /** {zh}
469
+ * @detail keytype
470
+ * @brief 推流器与服务器的连接状态。
471
+ *
472
+ */
473
+ export declare enum VeLivePusherStatus {
474
+ /** {zh}
475
+ * @brief 初始状态。
476
+ *
477
+ */
478
+
479
+ VeLivePushStatusNone = 0,
480
+ /** {zh}
481
+ * @brief 正在连接服务器。
482
+ *
483
+ */
484
+
485
+ VeLivePushStatusConnecting = 1,
486
+ /** {zh}
487
+ * @brief 连接服务器成功。
488
+ *
489
+ */
490
+
491
+ VeLivePushStatusConnectSuccess = 2,
492
+ /** {zh}
493
+ * @brief 重连服务器中。
494
+ *
495
+ */
496
+
497
+ VeLivePushStatusReconnecting = 3,
498
+ /** {zh}
499
+ * @brief 推流连接被终止。
500
+ *
501
+ */
502
+
503
+ VeLivePushStatusConnectStop = 4,
504
+ /** {zh}
505
+ * @brief 推流连接失败。
506
+ *
507
+ */
508
+
509
+ VeLivePushStatusConnectError = 5,
510
+ /** {zh}
511
+ * @brief 与服务器断开连接。
512
+ *
513
+ */
514
+
515
+ VeLivePushStatusDisconnected = 6
516
+ }
517
+ /** {zh}
518
+ * @detail keytype
519
+ * @brief 音量等级,用于评估和控制音频的响度。
520
+ *
521
+ */
522
+ export declare enum VeLiveAudioPowerLevel {
523
+ /** {zh}
524
+ * @brief 吵闹,音量极高,类似于繁忙的街道或者是音乐会现场,音量超过 85db。
525
+ *
526
+ */
527
+
528
+ VeLiveAudioPowerLevelNoise = 6,
529
+ /** {zh}
530
+ * @brief 无声,音量 ≤1db。
531
+ *
532
+ */
533
+
534
+ VeLiveAudioPowerLevelSilent = 0,
535
+ /** {zh}
536
+ * @brief 安静,音量 15db 以下。
537
+ *
538
+ */
539
+
540
+ VeLiveAudioPowerLevelQuiet = 1,
541
+ /** {zh}
542
+ * @brief 轻声,接近耳语音量,音量为 16db~30db 之间。
543
+ *
544
+ */
545
+
546
+ VeLiveAudioPowerLevelLight = 2,
547
+ /** {zh}
548
+ * @brief 正常,音量适宜,类似正常对话的音量,音量为 30db~60db 之间。
549
+ *
550
+ */
551
+
552
+ VeLiveAudioPowerLevelNormal = 3,
553
+ /** {zh}
554
+ * @brief 较大,音量较高,类似咖啡馆、餐厅的环境噪音,音量为 61db~85db 之间。
555
+ *
556
+ */
557
+
558
+ VeLiveAudioPowerLevelLoud = 4
559
+ }
560
+ /** {zh}
561
+ * @detail keytype
562
+ * @brief 视频帧的数据格式。
563
+ *
564
+ */
565
+ export declare enum VeLivePixelFormat {
566
+ /** {zh}
567
+ * @brief 未知格式。
568
+ *
569
+ */
570
+
571
+ VeLivePixelFormatUnknown = 0,
572
+ /** {zh}
573
+ * @brief I420 格式。
574
+ *
575
+ */
576
+
577
+ VeLivePixelFormatI420 = 1,
578
+ /** {zh}
579
+ * @brief NV12 格式。
580
+ *
581
+ */
582
+
583
+ VeLivePixelFormatNV12 = 2,
584
+ /** {zh}
585
+ * @brief NV21 格式。
586
+ *
587
+ */
588
+
589
+ VeLivePixelFormatNV21 = 3,
590
+ /** {zh}
591
+ * @brief 2D 纹理格式。
592
+ *
593
+ */
594
+
595
+ VeLivePixelFormat2DTexture = 4,
596
+ /** {zh}
597
+ * @platform android
598
+ * @brief OES 纹理格式。
599
+ *
600
+ */
601
+
602
+ VeLivePixelFormatOesTexture = 5,
603
+ /** {zh}
604
+ * @platform ios
605
+ * @brief RAGBA 格式。
606
+ *
607
+ */
608
+
609
+ VeLivePixelFormatBGRA32 = 6
610
+ }
611
+ /** {zh}
612
+ * @detail keytype
613
+ * @brief 输出的日志级别。
614
+ *
615
+ */
616
+ export declare enum VeLivePusherLogLevel {
617
+ /** {zh}
618
+ * @brief 输出 VERBOSE、DEBUG、INFO、WARNING 和 ERROR 级别的日志。
619
+ *
620
+ */
621
+
622
+ VeLivePusherLogLevelVerbose = 0,
623
+ /** {zh}
624
+ * @brief 输出 DEBUG、INFO、WARNING 和 ERROR 级别的日志。
625
+ *
626
+ */
627
+
628
+ VeLivePusherLogLevelDebug = 1,
629
+ /** {zh}
630
+ * @brief 输出 INFO、WARNING 和 ERROR 级别的日志。
631
+ *
632
+ */
633
+
634
+ VeLivePusherLogLevelInfo = 2,
635
+ /** {zh}
636
+ * @brief 输出 WARNING 和 ERROR 级别的日志。
637
+ *
638
+ */
639
+
640
+ VeLivePusherLogLevelWarn = 3,
641
+ /** {zh}
642
+ * @brief 输出 ERROR 级别的日志。
643
+ *
644
+ */
645
+
646
+ VeLivePusherLogLevelError = 4,
647
+ /** {zh}
648
+ * @brief 关闭日志。
649
+ *
650
+ */
651
+
652
+ VeLivePusherLogLevelNone = 5
653
+ }
654
+ /** {zh}
655
+ * @detail keytype
656
+ * @brief 推流视频编码参数。
657
+ *
658
+ */
659
+ export declare class VeLiveVideoEncoderConfiguration {
660
+ protected _instance: any;
661
+ /** {zh}
662
+ * @platform ios
663
+ * @brief 推流视频分辨率,默认值为 VeLiveVideoResolution720P,详情请参见 [VeLiveVideoResolution](#VeLiveVideoResolution)。
664
+ */
665
+
666
+ get resolution(): $p_i.VeLiveVideoResolution;
667
+ set resolution(value: $p_i.VeLiveVideoResolution);
668
+ protected __init(...args: any[]): void;
669
+ protected __new_instance(...args: any[]): any;
670
+ /** {zh}
671
+ * @detail api
672
+ * @brief 设置推流视频分辨率。
673
+ * @param resolution 推流视频分辨率,默认值为 VeLiveVideoResolution720P,详情请参见 [VeLiveVideoResolution](#VeLivePusherDef-VeLiveVideoResolution)。
674
+ * @return 推流视频编码参数配置对象,详情请参见 [VeLiveVideoEncoderConfiguration](#VeLivePusherDef-VeLiveVideoEncoderConfiguration)。
675
+ *
676
+ */
677
+
678
+ initWithResolution(resolution: VeLiveVideoResolution): this;
679
+ /** {zh}
680
+ * @detail api
681
+ * @brief 设置推流视频编码格式。
682
+ * @param codec 推流视频编码格式,详情请参见 [VeLiveVideoCodec](#VeLiveVideoCodec) 。
683
+ * @return 推流视频编码参数,详见 [VeLiveVideoEncoderConfiguration](#VeLivePusherDef-VeLiveVideoEncoderConfiguration)。
684
+ *
685
+ */
686
+
687
+ setCodec(codec: VeLiveVideoCodec): this;
688
+ /** {zh}
689
+ * @detail api
690
+ * @brief 设置推流视频编码码率。
691
+ * @param bitrate 推流视频编码码率,单位为 kbps,默认值由 `resolution` 参数值决定。
692
+ * @return 推流视频编码参数配置对象,详情请参见 [VeLiveVideoEncoderConfiguration](#VeLivePusherDef-VeLiveVideoEncoderConfiguration)。
693
+ *
694
+ */
695
+
696
+ setBitrate(bitrate: number): this;
697
+ /** {zh}
698
+ * @detail api
699
+ * @brief 设置推流视频编码最小码率。
700
+ * @param minBitrate 推流视频编码最小码率,单位为 kbps,默认值由 `resolution` 参数值决定;如果开启自适应码率,推流 SDK 根据网络情况进行编码码率自适应调整的最小码率
701
+ * @return 推流视频编码参数配置对象,详情请参见 [VeLiveVideoEncoderConfiguration](#VeLivePusherDef-VeLiveVideoEncoderConfiguration)。
702
+ *
703
+ */
704
+
705
+ setMinBitrate(minBitrate: number): this;
706
+ /** {zh}
707
+ * @detail api
708
+ * @brief 设置推流视频编码最大码率。
709
+ * @param maxBitrate 推流视频编码最大码率,单位为 kbps,默认值由 `resolution` 参数值决定;如果开启自适应码率,推流 SDK 根据网络情况进行编码码率自适应调整的最大码率。
710
+ * @return
711
+ * 推流视频编码参数配置对象,详情请参见 [VeLiveVideoEncoderConfiguration](#VeLivePusherDef-VeLiveVideoEncoderConfiguration)。
712
+ *
713
+ */
714
+
715
+ setMaxBitrate(maxBitrate: number): this;
716
+ /** {zh}
717
+ * @detail api
718
+ * @brief 设置推流视频编码 GOP。
719
+ * @param gopSize 视频 GOP 大小,单位为 s,默认值为 2
720
+ * @return 推流视频编码参数配置对象,详情请参见 [VeLiveVideoEncoderConfiguration](#VeLivePusherDef-VeLiveVideoEncoderConfiguration)。
721
+ *
722
+ */
723
+
724
+ setGopSize(gopSize: number): this;
725
+ /** {zh}
726
+ * @detail api
727
+ * @brief 设置推流视频编码帧率。
728
+ * @param fps 视频编码帧率,单位为 fps,默认值为 15
729
+ * @return 推流视频编码参数配置对象,详情请参见 [VeLiveVideoEncoderConfiguration](#VeLivePusherDef-VeLiveVideoEncoderConfiguration)。
730
+ *
731
+ */
732
+
733
+ setFps(fps: number): this;
734
+ /** {zh}
735
+ * @detail api
736
+ * @brief 设置推流视频编码开启 B 帧。
737
+ * @param enableBFrame 是否开启 B 帧。默认为 false。 <br>
738
+ * - true:开启;
739
+ * - false:关闭。
740
+ * @return 推流视频编码参数配置对象,详情请参见 [VeLiveVideoEncoderConfiguration](#VeLivePusherDef-VeLiveVideoEncoderConfiguration)。
741
+ *
742
+ */
743
+
744
+ setEnableBFrame(enableBFrame: boolean): this;
745
+ /** {zh}
746
+ * @detail api
747
+ * @brief 设置推流视频编码开启硬件编码。
748
+ * @param enableAccelerate 是否开启硬件编码。默认值为 true。 <br>
749
+ * - true:开启;
750
+ * - false:关闭。
751
+ * @return 推流视频编码参数配置对象,详情请参见 [VeLiveVideoEncoderConfiguration](#VeLivePusherDef-VeLiveVideoEncoderConfiguration)。
752
+ *
753
+ */
754
+
755
+ setEnableAccelerate(enableAccelerate: boolean): this;
756
+ /** {zh}
757
+ * @platform android
758
+ * @detail api
759
+ * @brief 获取推流视频分辨率。
760
+ * @return 推流视频分辨率 [VeLiveVideoResolution](#VeLivePusherDef-VeLiveVideoResolution)。
761
+ *
762
+ */
763
+
764
+ android_getResolution(): $p_a.VeLiveVideoResolution;
765
+ /** {zh}
766
+ * @platform android
767
+ * @detail api
768
+ * @brief 获取推流视频编码格式。
769
+ * @return 推流视频编码格式,详情请参见 [VeLiveVideoCodec](#VeLiveVideoCodec)。
770
+ *
771
+ */
772
+
773
+ android_getCodec(): $p_a.VeLiveVideoCodec;
774
+ /** {zh}
775
+ * @platform android
776
+ * @detail api
777
+ * @brief 获取推流视频编码码率。
778
+ * @return <br>
779
+ * 推流视频编码码率。
780
+ *
781
+ */
782
+
783
+ android_getBitrate(): number;
784
+ /** {zh}
785
+ * @platform android
786
+ * @detail api
787
+ * @brief 获取推流视频编码最小码率。
788
+ * @return <br>
789
+ * 推流视频编码最小码率。
790
+ *
791
+ */
792
+
793
+ android_getMinBitrate(): number;
794
+ /** {zh}
795
+ * @platform android
796
+ * @detail api
797
+ * @brief 获取推流视频编码最大码率。
798
+ * @return <br>
799
+ * 推流视频编码最大码率。
800
+ *
801
+ */
802
+
803
+ android_getMaxBitrate(): number;
804
+ /** {zh}
805
+ * @platform android
806
+ * @detail api
807
+ * @brief 获取推流视频编码 GOP。
808
+ * @return <br>
809
+ * 推流视频编码 GOP。
810
+ *
811
+ */
812
+
813
+ android_getGopSize(): number;
814
+ /** {zh}
815
+ * @platform android
816
+ * @detail api
817
+ * @brief 获取推流视频编码帧率。
818
+ * @return 推流视频编码帧率。
819
+ *
820
+ */
821
+
822
+ android_getFps(): number;
823
+ /** {zh}
824
+ * @platform android
825
+ * @detail api
826
+ * @brief 获取是否开启 B 帧。
827
+ * @return 是否开启B帧。<br/>
828
+ * - true:B 帧开启;
829
+ * - false:B 帧关闭。
830
+ *
831
+ */
832
+
833
+ android_isEnableBFrame(): boolean;
834
+ /** {zh}
835
+ * @platform android
836
+ * @detail api
837
+ * @brief 获取是否开启硬件编码。
838
+ * @return <br>
839
+ * 是否开启硬件编码。<br>
840
+ * - true:开启;
841
+ * - false:关闭。
842
+ *
843
+ */
844
+
845
+ android_isEnableAccelerate(): boolean;
846
+ }
847
+ /** {zh}
848
+ * @detail keytype
849
+ * @brief 视频帧的数据信息。
850
+ */
851
+ export declare class VeLiveVideoFrame {
852
+ constructor(width: number, height: number, pts: number, data: ArrayBuffer);
853
+ constructor();
854
+ protected _instance: any;
855
+ /** {zh}
856
+ * @platform ios
857
+ * @brief 视频数据包装格式。默认值为 VeLiveVideoBufferTypeUnknown,详情请参见 [VeLiveVideoBufferType](#VeLiveVideoBufferType)。
858
+ */
859
+
860
+ get bufferType(): $p_i.VeLiveVideoBufferType;
861
+ set bufferType(value: $p_i.VeLiveVideoBufferType);
862
+ /** {zh}
863
+ * @platform ios
864
+ * @brief 视频帧像素格式。bufferType 为 VeLiveVideoBufferTypeNSData 时,需要指定数据格式。详情请参见 [VeLivePixelFormat](#VeLivePixelFormat)。
865
+ */
866
+
867
+ get pixelFormat(): $p_i.VeLivePixelFormat;
868
+ set pixelFormat(value: $p_i.VeLivePixelFormat);
869
+ /** {zh}
870
+ * @platform ios
871
+ * @brief 视频帧顺时针旋转角度。详情请参见 [VeLiveVideoRotation](#VeLiveVideoRotation)。
872
+ */
873
+
874
+ get rotation(): $p_i.VeLiveVideoRotation;
875
+ set rotation(value: $p_i.VeLiveVideoRotation);
876
+ /** {zh}
877
+ * @platform ios
878
+ * @brief 视频宽度,单位为 px。
879
+ */
880
+
881
+ get width(): $p_i.int;
882
+ set width(value: $p_i.int);
883
+ /** {zh}
884
+ * @platform ios
885
+ * @brief 视频高度,单位为 px。
886
+ */
887
+
888
+ get height(): $p_i.int;
889
+ set height(value: $p_i.int);
890
+ /** {zh}
891
+ * @platform ios
892
+ * @brief 视频帧时间戳,单位为 μs。
893
+ */
894
+
895
+ get pts(): $p_i.CMTime;
896
+ set pts(value: $p_i.CMTime);
897
+ /** {zh}
898
+ * @platform ios
899
+ * @brief `bufferType` 为 `VeLiveVideoBufferTypeTexture` 时的视频数据。
900
+ */
901
+
902
+ get textureId(): $p_i.GLuint;
903
+ set textureId(value: $p_i.GLuint);
904
+ /** {zh}
905
+ * @platform ios
906
+ * @brief `bufferType` 为 `VeLiveVideoBufferTypePixelBuffer` 时的视频数据。
907
+ */
908
+
909
+ get pixelBuffer(): $p_i.CVPixelBufferRef;
910
+ set pixelBuffer(value: $p_i.CVPixelBufferRef);
911
+ /** {zh}
912
+ * @platform ios
913
+ * @brief `bufferType` 为 `VeLiveVideoBufferTypeSampleBuffer` 时的视频数据。
914
+ */
915
+
916
+ get sampleBuffer(): $p_i.CMSampleBufferRef;
917
+ set sampleBuffer(value: $p_i.CMSampleBufferRef);
918
+ /** {zh}
919
+ * @platform ios
920
+ * @brief `bufferType` 为 `VeLiveVideoBufferTypeNSData` 时的视频数据。
921
+ */
922
+
923
+ get data(): $p_i.NSData;
924
+ set data(value: $p_i.NSData);
925
+ protected __init(...args: any[]): void;
926
+ protected __new_instance(...args: any[]): any;
927
+ /** {zh}
928
+ * @platform android
929
+ * @detail api
930
+ * @brief 增加 VeLiveVideoFrame 对象的引用计数。当您需要继续使用 VeLiveVideoFrame 对象时,请调用此方法将引用计数增加 1。
931
+ *
932
+ */
933
+
934
+ android_retain(): void;
935
+ /** {zh}
936
+ * @platform android
937
+ * @detail api
938
+ * @brief 释放对 VeLiveVideoFrame 对象的引用。在您不再需要使用 VeLiveVideoFrame 对象时,应调用此方法将引用计数减少 1。当引用计数减少到零,表示不再有引用指向该对象,可以安全地释放或销毁该对象。
939
+ *
940
+ */
941
+
942
+ android_release(): void;
943
+ /** {zh}
944
+ * @platform android
945
+ * @detail api
946
+ * @brief 获取视频数据类型。
947
+ * @return 视频数据类型,详情请参见 [VeLiveVideoBufferType](#VeLiveVideoBufferType)。
948
+ *
949
+ */
950
+
951
+ android_getBufferType(): $p_a.VeLiveVideoBufferType;
952
+ /** {zh}
953
+ * @platform android
954
+ * @detail api
955
+ * @brief 设置视频数据类型。
956
+ * @param bufferType 视频数据类型,详情请参见 [VeLiveVideoBufferType](#VeLiveVideoBufferType)。
957
+ * @return 视频帧对象,详情请参见 [VeLiveVideoFrame](#VeLiveVideoFrame)。
958
+ *
959
+ */
960
+
961
+ android_setBufferType(bufferType: $p_a.VeLiveVideoBufferType): this;
962
+ /** {zh}
963
+ * @platform android
964
+ * @detail api
965
+ * @brief 获取视频像素格式。
966
+ * @return 视频像素格式,详情请参见 [VeLivePixelFormat](#VeLivePixelFormat)。
967
+ *
968
+ */
969
+
970
+ android_getPixelFormat(): $p_a.VeLivePixelFormat;
971
+ /** {zh}
972
+ * @platform android
973
+ * @detail api
974
+ * @brief 设置视频像素格式。
975
+ * @param pixelFormat 视频像素格式,详情请参见 [VeLivePixelFormat](#VeLivePixelFormat)。
976
+ * @return 视频帧对象,详情请参见 [VeLiveVideoFrame](#VeLiveVideoFrame)。
977
+ *
978
+ */
979
+
980
+ android_setPixelFormat(pixelFormat: $p_a.VeLivePixelFormat): this;
981
+ /** {zh}
982
+ * @platform android
983
+ * @detail api
984
+ * @brief 获取视频帧旋转角度。
985
+ * @return 视频帧旋转角度,详情请参见 [VeLiveVideoRotation](#VeLiveVideoRotation)。
986
+ *
987
+ */
988
+
989
+ android_getRotation(): $p_a.VeLiveVideoRotation;
990
+ /** {zh}
991
+ * @platform android
992
+ * @detail api
993
+ * @brief 设置视频帧旋转角度。
994
+ * @param rotation 视频帧旋转角度,详情请参见 [VeLiveVideoRotation](#VeLiveVideoRotation)。
995
+ * @return 视频帧对象,详情请参见 [VeLiveVideoFrame](#VeLiveVideoFrame)。
996
+ *
997
+ */
998
+
999
+ android_setRotation(rotation: $p_a.VeLiveVideoRotation): this;
1000
+ /** {zh}
1001
+ * @platform android
1002
+ * @detail api
1003
+ * @brief 获取视频帧宽度。
1004
+ * @return <br>
1005
+ * 视频帧宽度。
1006
+ *
1007
+ */
1008
+
1009
+ android_getWidth(): number;
1010
+ /** {zh}
1011
+ * @platform android
1012
+ * @detail api
1013
+ * @brief 获取视频帧高度。
1014
+ * @return <br>
1015
+ * 视频帧高度。
1016
+ *
1017
+ */
1018
+
1019
+ android_getHeight(): number;
1020
+ /** {zh}
1021
+ * @platform android
1022
+ * @detail api
1023
+ * @brief 获取带旋转角度的视频帧宽度。
1024
+ * @return <br>
1025
+ * 带旋转角度的视频帧宽度。
1026
+ *
1027
+ */
1028
+
1029
+ android_getRotatedWidth(): number;
1030
+ /** {zh}
1031
+ * @platform android
1032
+ * @detail api
1033
+ * @brief 获取带旋转角度的视频帧高度。
1034
+ * @return <br>
1035
+ * 带旋转角度的视频帧高度。
1036
+ *
1037
+ */
1038
+
1039
+ android_getRotatedHeight(): number;
1040
+ /** {zh}
1041
+ * @platform android
1042
+ * @detail api
1043
+ * @brief 获取视频帧时间戳。
1044
+ * @return <br>
1045
+ * 视频帧时间戳,单位为 μs。
1046
+ *
1047
+ */
1048
+
1049
+ android_getPts(): number;
1050
+ /** {zh}
1051
+ * @platform android
1052
+ * @detail api
1053
+ * @brief 获取视频帧纹理 ID。
1054
+ * @return <br>
1055
+ * 视频帧纹理 ID。
1056
+ *
1057
+ */
1058
+
1059
+ android_getTextureId(): number;
1060
+ /** {zh}
1061
+ * @platform android
1062
+ * @detail api
1063
+ * @brief 获取视频帧纹理矩阵。
1064
+ * @return 视频帧纹理矩阵。
1065
+ *
1066
+ */
1067
+
1068
+ android_getTextureMatrix(): $p_a.Matrix;
1069
+ /** {zh}
1070
+ * @platform android
1071
+ * @detail api
1072
+ * @brief 获取 ByteBuffer 格式的视频数据。
1073
+ * @return <br>
1074
+ * ByteBuffer 格式的视频数据。
1075
+ *
1076
+ */
1077
+
1078
+ android_getBuffer(): $p_a.ByteBuffer;
1079
+ /** {zh}
1080
+ * @platform android
1081
+ * @detail api
1082
+ * @brief 获取 byte[] 格式的视频数据。
1083
+ * @return byte[] 格式的视频数据。
1084
+ *
1085
+ */
1086
+
1087
+ android_getData(): ArrayBuffer;
1088
+ /** {zh}
1089
+ * @platform android
1090
+ * @detail api
1091
+ * @brief 获取视频帧内部销毁回调。
1092
+ * @return <br>
1093
+ * 视频帧内部销毁回调。
1094
+ *
1095
+ */
1096
+
1097
+ android_getReleaseCallback(): $p_a.Runnable;
1098
+ /** {zh}
1099
+ * @platform android
1100
+ * @detail api
1101
+ * @brief 设置视频帧内部销毁回调。
1102
+ * @param releaseCallback 视频帧内部销毁回调
1103
+ * @return 视频帧对象,详情请参见 [VeLiveVideoFrame](#VeLiveVideoFrame)。
1104
+ *
1105
+ */
1106
+
1107
+ android_setReleaseCallback(releaseCallback: $p_a.Runnable): this;
1108
+ /** {zh}
1109
+ * @platform ios
1110
+ * @brief 释放回调函数,用于在 SDK 内部处理完 VideoFrame 后通知外部释放相关资源。此回调主要用于 SDK 外部为 VideoFrame 申请内存,以便 SDK 内部使用。但无法预知内部何时使用完毕。
1111
+ */
1112
+
1113
+ ios_releaseCallback(): void;
1114
+ }
1115
+ /** {zh}
1116
+ * @detail keytype
1117
+ * @brief 视频编码格式。
1118
+ *
1119
+ */
1120
+ export declare enum VeLiveVideoCodec {
1121
+ /** {zh}
1122
+ * @brief 使用 H.264 视频编码。
1123
+ *
1124
+ */
1125
+
1126
+ VeLiveVideoCodecH264 = 0,
1127
+ /** {zh}
1128
+ * @brief 使用火山引擎自研 ByteVC1 视频编码。
1129
+ *
1130
+ */
1131
+
1132
+ VeLiveVideoCodecByteVC1 = 1
1133
+ }
1134
+ /** {zh}
1135
+ * @detail keytype
1136
+ * @brief 推流周期性统计信息。
1137
+ *
1138
+ */
1139
+ export declare class VeLivePusherStatistics {
1140
+ protected _instance: any;
1141
+ /** {zh}
1142
+ * @brief 视频编码宽度,单位为 px。
1143
+ *
1144
+ */
1145
+
1146
+ get encodeWidth(): number;
1147
+ set encodeWidth(value: number);
1148
+ /** {zh}
1149
+ * @brief 视频编码高度,单位为 px。
1150
+ *
1151
+ */
1152
+
1153
+ get encodeHeight(): number;
1154
+ set encodeHeight(value: number);
1155
+ /** {zh}
1156
+ * @brief 视频采集宽度,单位为 px。
1157
+ *
1158
+ */
1159
+
1160
+ get captureWidth(): number;
1161
+ set captureWidth(value: number);
1162
+ /** {zh}
1163
+ * @brief 视频采集高度,单位为 px。
1164
+ *
1165
+ */
1166
+
1167
+ get captureHeight(): number;
1168
+ set captureHeight(value: number);
1169
+ /** {zh}
1170
+ * @brief 视频采集帧率,单位为 fps。
1171
+ *
1172
+ */
1173
+
1174
+ get captureFps(): number;
1175
+ set captureFps(value: number);
1176
+ /** {zh}
1177
+ * @brief 视频编码帧率,单位为 fps。
1178
+ *
1179
+ */
1180
+
1181
+ get encodeFps(): number;
1182
+ set encodeFps(value: number);
1183
+ /** {zh}
1184
+ * @brief 视频发送帧率,可用展示实时帧率,单位为 fps。
1185
+ *
1186
+ */
1187
+
1188
+ get transportFps(): number;
1189
+ set transportFps(value: number);
1190
+ /** {zh}
1191
+ * @brief 视频推流帧率,即您通过 [setVideoEncoderConfiguration](147517#VeLivePusher-setvideoencoderconfiguration) 方法设置的帧率,单位为 fps。
1192
+ *
1193
+ */
1194
+
1195
+ get fps(): number;
1196
+ set fps(value: number);
1197
+ /** {zh}
1198
+ * @brief 视频推流码率,即您通过 [setVideoEncoderConfiguration](147517#VeLivePusher-setvideoencoderconfiguration) 方法设置的码率,单位为 kbps。
1199
+ *
1200
+ */
1201
+
1202
+ get videoBitrate(): number;
1203
+ set videoBitrate(value: number);
1204
+ /** {zh}
1205
+ * @brief 视频推流最小码率,即您通过 [setVideoEncoderConfiguration](147517#VeLivePusher-setvideoencoderconfiguration) 方法设置的最小码率,单位为 kbps。
1206
+ *
1207
+ */
1208
+
1209
+ get minVideoBitrate(): number;
1210
+ set minVideoBitrate(value: number);
1211
+ /** {zh}
1212
+ * @brief 视频推流最大码率,即您通过 [setVideoEncoderConfiguration](147517#VeLivePusher-setvideoencoderconfiguration) 方法设置的最大码率,单位为 kbps。
1213
+ *
1214
+ */
1215
+
1216
+ get maxVideoBitrate(): number;
1217
+ set maxVideoBitrate(value: number);
1218
+ /** {zh}
1219
+ * @brief 视频编码码率,单位为 kbps。
1220
+ *
1221
+ */
1222
+
1223
+ get encodeVideoBitrate(): number;
1224
+ set encodeVideoBitrate(value: number);
1225
+ /** {zh}
1226
+ * @brief 视频发送码率,可用于展示实时码率,单位为 kbps。
1227
+ *
1228
+ */
1229
+
1230
+ get transportVideoBitrate(): number;
1231
+ set transportVideoBitrate(value: number);
1232
+ /** {zh}
1233
+ * @brief 音频编码码率,单位为 kbps。
1234
+ *
1235
+ */
1236
+
1237
+ get encodeAudioBitrate(): number;
1238
+ set encodeAudioBitrate(value: number);
1239
+ /** {zh}
1240
+ * @brief 推流地址。
1241
+ *
1242
+ */
1243
+
1244
+ get url(): string;
1245
+ set url(value: string);
1246
+ /** {zh}
1247
+ * @brief 视频编码格式。
1248
+ *
1249
+ */
1250
+
1251
+ get codec(): string;
1252
+ set codec(value: string);
1253
+ protected __init(...args: any[]): void;
1254
+ protected __new_instance(...args: any[]): any;
1255
+ }
1256
+ /** {zh}
1257
+ * @detail keytype
1258
+ * @brief 视频特效的许可证认证方式。
1259
+ *
1260
+ */
1261
+ export declare enum VeLiveVideoEffectLicenseType {
1262
+ /** {zh}
1263
+ * @brief 离线认证视频特效许可证。
1264
+ *
1265
+ */
1266
+
1267
+ VeLiveVideoEffectLicenseTypeOffLine = 0,
1268
+ /** {zh}
1269
+ * @brief 在线认证视频特效许可证。
1270
+ *
1271
+ */
1272
+
1273
+ VeLiveVideoEffectLicenseTypeOnLine = 1
1274
+ }
1275
+ /** {zh}
1276
+ * @detail keytype
1277
+ * @brief 推流音频声道数,决定音频的立体感。
1278
+ *
1279
+ */
1280
+ export declare enum VeLiveAudioChannel {
1281
+ /** {zh}
1282
+ * @brief 单声道,适用于语音通信,节省带宽。
1283
+ *
1284
+ */
1285
+
1286
+ VeLiveAudioChannelMono = 0,
1287
+ /** {zh}
1288
+ * @brief 立体声,适用于音乐播放,提供更丰富的音频体验。
1289
+ *
1290
+ */
1291
+
1292
+ VeLiveAudioChannelStereo = 1
1293
+ }
1294
+ /** {zh}
1295
+ * @detail keytype
1296
+ * @brief 定义了推流中首帧的类型,包括音视频的采集首帧、渲染首帧、编码完成首帧和发送首帧。
1297
+ *
1298
+ */
1299
+ export declare enum VeLiveFirstFrameType {
1300
+ /** {zh}
1301
+ * @brief 视频/音频采集首帧,采集首帧是从音频设备或视频设备(如麦克风、摄像头)获取的第一帧数据。
1302
+ *
1303
+ */
1304
+
1305
+ VeLiveFirstCaptureFrame = 0,
1306
+ /** {zh}
1307
+ * @brief 视频渲染首帧,渲染首帧是在渲染过程中在屏幕上显示的第一帧视频数据。
1308
+ *
1309
+ */
1310
+
1311
+ VeLiveFirstRenderFrame = 1,
1312
+ /** {zh}
1313
+ * @brief 视频/音频编码完成首帧,编码完成首帧是编码为某种特定格式的第一帧数据。
1314
+ *
1315
+ */
1316
+
1317
+ VeLiveFirstEncodedFrame = 2,
1318
+ /** {zh}
1319
+ * @brief 视频/音频发送首帧,发送首帧是在发送过程中,通过网络传输的第一帧数据。
1320
+ *
1321
+ */
1322
+
1323
+ VeLiveFirstSendFrame = 3,
1324
+ /** {zh}
1325
+ * @platform ios
1326
+ * @brief 录屏采集开始后,获得的第一个 app 音频帧。
1327
+ *
1328
+ */
1329
+
1330
+ VeLiveFirstAppAudioCaptureFrame = 4
1331
+ }
1332
+ /** {zh}
1333
+ * @detail keytype
1334
+ * @brief 视频帧来源。
1335
+ *
1336
+ */
1337
+ export declare enum VeLiveVideoFrameSource {
1338
+ /** {zh}
1339
+ * @brief 采集到的原始视频帧。这是从设备的摄像头或其他视频输入源获取的视频帧。
1340
+ *
1341
+ */
1342
+
1343
+ VeLiveVideoFrameSourceCapture = 0,
1344
+ /** {zh}
1345
+ * @brief 编码前的视频帧。这是通过各种处理(例如滤镜、旋转等)后,准备进行编码的视频帧。
1346
+ *
1347
+ */
1348
+
1349
+ VeLiveVideoFrameSourcePreEncode = 1
1350
+ }
1351
+ /** {zh}
1352
+ * @detail keytype
1353
+ * @brief AAC 音频编码档位。
1354
+ *
1355
+ */
1356
+ export declare enum VeLiveAudioProfile {
1357
+ /** {zh}
1358
+ * @brief LC-AAC 编码方式。
1359
+ *
1360
+ */
1361
+
1362
+ VeLiveAudioAACProfileLC = 0,
1363
+ /** {zh}
1364
+ * @brief HEv1-AAC 编码方式。
1365
+ *
1366
+ */
1367
+
1368
+ VeLiveAudioAACProfileHEv1 = 1,
1369
+ /** {zh}
1370
+ * @brief HEv2-AAC 编码方式。
1371
+ *
1372
+ */
1373
+
1374
+ VeLiveAudioAACProfileHEv2 = 2
1375
+ }
1376
+ /** {zh}
1377
+ * @detail keytype
1378
+ * @brief 音频采集配置。
1379
+ *
1380
+ */
1381
+ export declare class VeLiveAudioCaptureConfiguration {
1382
+ protected _instance: any;
1383
+ /** {zh}
1384
+ * @platform ios
1385
+ * @brief 音频采样率,默认值为 `VeLiveAudioSampleRate44100`,详情请参见 [VeLiveAudioSampleRate](#VeLiveAudioSampleRate)。
1386
+ */
1387
+
1388
+ get sampleRate(): $p_i.VeLiveAudioSampleRate;
1389
+ set sampleRate(value: $p_i.VeLiveAudioSampleRate);
1390
+ /** {zh}
1391
+ * @platform ios
1392
+ * @brief 音频采集声道数,默认值为 `VeLiveAudioChannelStereo`,详情请参见 [VeLiveAudioChannel](#VeLiveAudioChannel)。
1393
+ */
1394
+
1395
+ get channel(): $p_i.VeLiveAudioChannel;
1396
+ set channel(value: $p_i.VeLiveAudioChannel);
1397
+ protected __init(...args: any[]): void;
1398
+ protected __new_instance(...args: any[]): any;
1399
+ /** {zh}
1400
+ * @platform android
1401
+ * @detail api
1402
+ * @brief 获取采集音频采样率。
1403
+ * @return 音频采样率,详情请参见 [VeLiveAudioSampleRate](#VeLiveAudioSampleRate)。
1404
+ *
1405
+ */
1406
+
1407
+ android_getSampleRate(): $p_a.VeLiveAudioSampleRate;
1408
+ /** {zh}
1409
+ * @platform android
1410
+ * @detail api
1411
+ * @brief 设置采集音频采样率。
1412
+ * @param sampleRate 音频采样率,默认值为 VeLiveAudioSampleRate44100,详情请参见 [VeLiveAudioSampleRate](#VeLiveAudioSampleRate)。
1413
+ * @return 推流音频采集参数配置对象,详情请参见 [VeLiveAudioCaptureConfiguration](#VeLivePusherDef-VeLiveAudioCaptureConfiguration)。
1414
+ *
1415
+ */
1416
+
1417
+ android_setSampleRate(sampleRate: $p_a.VeLiveAudioSampleRate): this;
1418
+ /** {zh}
1419
+ * @platform android
1420
+ * @detail api
1421
+ * @brief 获取采集音频声道数。
1422
+ * @return 音频声道数,详情请参见 [VeLiveAudioChannel](#VeLiveAudioChannel)。
1423
+ *
1424
+ */
1425
+
1426
+ android_getChannel(): $p_a.VeLiveAudioChannel;
1427
+ /** {zh}
1428
+ * @platform android
1429
+ * @detail api
1430
+ * @brief 设置采集音频声道数。
1431
+ * @param channel 音频声道数,默认值为 VeLiveAudioChannelStereo,详情请参见 [VeLiveAudioChannel](#VeLiveAudioChannel)
1432
+ * @return 推流音频采集参数配置对象,详情请参见 [VeLiveAudioCaptureConfiguration](#VeLivePusherDef-VeLiveAudioCaptureConfiguration)。
1433
+ *
1434
+ */
1435
+
1436
+ android_setChannel(channel: $p_a.VeLiveAudioChannel): this;
1437
+ }
1438
+ /** {zh}
1439
+ * @detail keytype
1440
+ * @brief 音视频混流布局。包含了视频混流布局、音频混流布局和画布背景色等属性。
1441
+ *
1442
+ */
1443
+ export declare class VeLiveStreamMixDescription {
1444
+ protected _instance: any;
1445
+ /** {zh}
1446
+ * @brief 视频混流画布的背景色设置,采用 #RRGGBB 格式。
1447
+ *
1448
+ */
1449
+
1450
+ get backgroundColor(): string;
1451
+ set backgroundColor(value: string);
1452
+ protected __init(...args: any[]): void;
1453
+ protected __new_instance(...args: any[]): any;
1454
+ }
1455
+ /** {zh}
1456
+ * @detail keytype
1457
+ * @brief 推流音频采样率。
1458
+ *
1459
+ */
1460
+ export declare enum VeLiveAudioSampleRate {
1461
+ /** {zh}
1462
+ * @platform android
1463
+ * @brief 8k 采样。
1464
+ *
1465
+ */
1466
+
1467
+ VeLiveAudioSampleRate8000 = 0,
1468
+ /** {zh}
1469
+ * @platform android
1470
+ * @brief 16k 采样。
1471
+ *
1472
+ */
1473
+
1474
+ VeLiveAudioSampleRate16000 = 1,
1475
+ /** {zh}
1476
+ * @platform android
1477
+ * @brief 32k 采样。
1478
+ *
1479
+ */
1480
+
1481
+ VeLiveAudioSampleRate32000 = 2,
1482
+ /** {zh}
1483
+ * @brief 44.1k 采样。
1484
+ *
1485
+ */
1486
+
1487
+ VeLiveAudioSampleRate44100 = 3,
1488
+ /** {zh}
1489
+ * @platform android
1490
+ * @brief 48k 采样。
1491
+ *
1492
+ */
1493
+
1494
+ VeLiveAudioSampleRate48000 = 4
1495
+ }
1496
+ /** {zh}
1497
+ * @detail keytype
1498
+ * @brief 推流视频分辨率档位枚举值。
1499
+ *
1500
+ */
1501
+ export declare enum VeLiveVideoResolution {
1502
+ /** {zh}
1503
+ * @brief 360P 分辨率。档位详细配置如下所示。
1504
+ * - 横屏分辨率:640x360
1505
+ * - 竖屏分辨率:360x640
1506
+ * - 帧率:15fps
1507
+ * - 目标码率:500kbps
1508
+ * - 最小码率:250kbps
1509
+ * - 最大码率:800kbps
1510
+ *
1511
+ */
1512
+
1513
+ VeLiveVideoResolution360P = 0,
1514
+ /** {zh}
1515
+ * @brief 480P 分辨率。档位详细配置如下所示。
1516
+ * - 横屏分辨率:864x480
1517
+ * - 竖屏分辨率:480x864
1518
+ * - 帧率:15fps
1519
+ * - 目标码率:800kbps
1520
+ * - 最小码率:320kbps
1521
+ * - 最大码率:1266kbps
1522
+ *
1523
+ */
1524
+
1525
+ VeLiveVideoResolution480P = 1,
1526
+ /** {zh}
1527
+ * @brief 540P 分辨率。档位详细配置如下所示。
1528
+ * - 横屏 960x540
1529
+ * - 竖屏 540x960
1530
+ * - 帧率:15fps
1531
+ * - 目标码率:1000kbps
1532
+ * - 最小码率:500kbps
1533
+ * - 最大码率:1520kbps
1534
+ *
1535
+ */
1536
+
1537
+ VeLiveVideoResolution540P = 2,
1538
+ /** {zh}
1539
+ * @brief 720P 分辨率。档位详细配置如下所示。
1540
+ * - 横屏 1280x720
1541
+ * - 竖屏 720x1280
1542
+ * - 帧率:15fps
1543
+ * - 目标码率:1200kbps
1544
+ * - 最小码率:800kbps
1545
+ * - 最大码率:1900kbps
1546
+ *
1547
+ */
1548
+
1549
+ VeLiveVideoResolution720P = 3,
1550
+ /** {zh}
1551
+ * @brief 1080P 分辨率。档位详细配置如下所示。
1552
+ * - 横屏 1920x1080
1553
+ * - 竖屏 1080x1920
1554
+ * - 帧率:20 fps
1555
+ * - 目标码率:2500kbps
1556
+ * - 最小码率:1000kbps
1557
+ * - 最大码率:3800kbps
1558
+ *
1559
+ */
1560
+
1561
+ VeLiveVideoResolution1080P = 4,
1562
+ /** {zh}
1563
+ * @platform ios
1564
+ * @brief 屏幕推流分辨率。档位详细配置如下所示。
1565
+ * - 帧率:15fps
1566
+ * - 目标码率:2500kbps
1567
+ * - 最小码率:1000kbps
1568
+ * - 最大码率:3800kbps
1569
+ *
1570
+ */
1571
+
1572
+ VeLiveVideoResolutionScreen = 5
1573
+ }
1574
+ /** {zh}
1575
+ * @detail keytype
1576
+ * @brief 音频帧的数据信息。
1577
+ */
1578
+ export declare class VeLiveAudioFrame {
1579
+ constructor();
1580
+ constructor();
1581
+ protected _instance: any;
1582
+ /** {zh}
1583
+ * @platform ios
1584
+ * @brief 音频数据类型,默认值为 `VeLiveAudioBufferTypeUnknown`,详情请参见 [VeLiveAudioBufferType](#VeLiveAudioBufferType)。
1585
+ */
1586
+
1587
+ get bufferType(): $p_i.VeLiveAudioBufferType;
1588
+ set bufferType(value: $p_i.VeLiveAudioBufferType);
1589
+ /** {zh}
1590
+ * @platform ios
1591
+ * @brief 音频采样率。详情请参见 [VeLiveAudioSampleRate](#VeLiveAudioSampleRate)。
1592
+ */
1593
+
1594
+ get sampleRate(): $p_i.VeLiveAudioSampleRate;
1595
+ set sampleRate(value: $p_i.VeLiveAudioSampleRate);
1596
+ /** {zh}
1597
+ * @platform ios
1598
+ * @brief 音频声道数。详情请参见 [VeLiveAudioChannel](#VeLiveAudioChannel)。
1599
+ */
1600
+
1601
+ get channels(): $p_i.VeLiveAudioChannel;
1602
+ set channels(value: $p_i.VeLiveAudioChannel);
1603
+ /** {zh}
1604
+ * @platform ios
1605
+ * @brief 当 bufferType 取值为 `VeLiveAudioBufferNSData` 时的音频帧时间戳,单位为 μs。
1606
+ */
1607
+
1608
+ get pts(): $p_i.CMTime;
1609
+ set pts(value: $p_i.CMTime);
1610
+ /** {zh}
1611
+ * @platform ios
1612
+ * @brief 当 bufferType 取值为 `VeLiveAudioBufferTypeSampleBuffer` 时的音频数据。
1613
+ */
1614
+
1615
+ get sampleBuffer(): $p_i.CMSampleBufferRef;
1616
+ set sampleBuffer(value: $p_i.CMSampleBufferRef);
1617
+ /** {zh}
1618
+ * @platform ios
1619
+ * @brief 当 bufferType 取值为 `VeLiveAudioBufferTypeNSData` 时的音频数据。音频帧数据为 float32 格式小端字节序存储。
1620
+ */
1621
+
1622
+ get data(): $p_i.NSData;
1623
+ set data(value: $p_i.NSData);
1624
+ protected __init(...args: any[]): void;
1625
+ protected __new_instance(...args: any[]): any;
1626
+ /** {zh}
1627
+ * @platform android
1628
+ * @detail api
1629
+ * @brief 获取音频数据类型。
1630
+ * @return 音频数据类型,详情请参见 [VeLiveAudioBufferType](#VeLiveAudioBufferType)。
1631
+ *
1632
+ */
1633
+
1634
+ android_getBufferType(): $p_a.VeLiveAudioBufferType;
1635
+ /** {zh}
1636
+ * @platform android
1637
+ * @detail api
1638
+ * @brief 获取音频采样率。
1639
+ * @return 音频采样率,详情请参见 [VeLiveAudioSampleRate](#VeLiveAudioSampleRate)。
1640
+ *
1641
+ */
1642
+
1643
+ android_getSampleRate(): $p_a.VeLiveAudioSampleRate;
1644
+ /** {zh}
1645
+ * @platform android
1646
+ * @detail api
1647
+ * @brief 获取音频声道数。
1648
+ * @return 音频声道数,详情请参见 [VeLiveAudioChannel](#VeLiveAudioChannel)。
1649
+ *
1650
+ */
1651
+
1652
+ android_getChannels(): $p_a.VeLiveAudioChannel;
1653
+ /** {zh}
1654
+ * @platform android
1655
+ * @detail api
1656
+ * @brief 获取每个声道的采样点数。
1657
+ * @return 采样点数。
1658
+ *
1659
+ */
1660
+
1661
+ android_getSamplesPerChannel(): number;
1662
+ /** {zh}
1663
+ * @platform android
1664
+ * @detail api
1665
+ * @brief 获取音频时间戳,单位为 μs。
1666
+ * @return <br>
1667
+ * 音频时间戳,单位为 μs。
1668
+ *
1669
+ */
1670
+
1671
+ android_getPts(): number;
1672
+ /** {zh}
1673
+ * @platform android
1674
+ * @detail api
1675
+ * @brief 获取音频数据。音频帧数据为小端字节序存储。
1676
+ * @return <br>
1677
+ * 格式为 ByteBuffer 的音频数据。
1678
+ *
1679
+ */
1680
+
1681
+ android_getBuffer(): $p_a.ByteBuffer;
1682
+ }
1683
+ /** {zh}
1684
+ * @detail keytype
1685
+ * @brief 音频混流设置。
1686
+ *
1687
+ */
1688
+ export declare class VeLiveMixAudioLayout {
1689
+ protected _instance: any;
1690
+ /** {zh}
1691
+ * @brief 音频流 ID,唯一标识,用于区分不同的音频流。
1692
+ *
1693
+ */
1694
+
1695
+ get streamId(): number;
1696
+ set streamId(value: number);
1697
+ /** {zh}
1698
+ * @detail api
1699
+ * @brief 混流音频的音量,范围为 [0.0,4.0]。当您将 [VeLiveAudioMixType](#VeLiveAudioMixType) 设置为 `VeLiveAudioMixPlayAndPush` 时,该变量同时控制混流音频在拉流端和本地的播放音量。
1700
+ *
1701
+ */
1702
+
1703
+ get volume(): number;
1704
+ set volume(value: number);
1705
+ protected __init(...args: any[]): void;
1706
+ protected __new_instance(...args: any[]): any;
1707
+ /** {zh}
1708
+ * @platform android
1709
+ * @detail api
1710
+ * @brief 更新音频混流设置。
1711
+ * @param other 新的音频混流设置,详情请参见 [VeLiveMixAudioLayout](#VeLivePusherDef-VeLiveMixAudioLayout)。
1712
+ *
1713
+ */
1714
+
1715
+ android_update(other: $p_a.VeLiveMixAudioLayout): void;
1716
+ }
1717
+ /** {zh}
1718
+ * @detail keytype
1719
+ * @brief 视频镜像类型。
1720
+ *
1721
+ */
1722
+ export declare enum VeLiveVideoMirrorType {
1723
+ /** {zh}
1724
+ * @brief 对采集画面的镜像控制。开启时,预览和推流画面都会呈现为镜像状态。
1725
+ *
1726
+ */
1727
+
1728
+ VeLiveVideoMirrorCapture = 0,
1729
+ /** {zh}
1730
+ * @brief 对预览画面的镜像控制。开启时,只有主播预览画面呈现镜像状态。
1731
+ *
1732
+ */
1733
+
1734
+ VeLiveVideoMirrorPreview = 1,
1735
+ /** {zh}
1736
+ * @brief 对编码前画面的镜像控制。开启时,主播推流画面呈现镜像状态。
1737
+ *
1738
+ */
1739
+
1740
+ VeLiveVideoMirrorPushStream = 2
1741
+ }
1742
+ /** {zh}
1743
+ * @detail keytype
1744
+ * @brief 视频混流设置。
1745
+ *
1746
+ */
1747
+ export declare class VeLiveMixVideoLayout {
1748
+ protected _instance: any;
1749
+ /** {zh}
1750
+ * @brief 视频流 ID,唯一标识,用于区分不同的视频流。
1751
+ *
1752
+ */
1753
+
1754
+ get streamId(): number;
1755
+ set streamId(value: number);
1756
+ /** {zh}
1757
+ * @brief 视频流对应区域左上角的横坐标,该坐标是相对整体画面的归一化比例,取值的范围为 [0.0,1.0]。
1758
+ *
1759
+ */
1760
+
1761
+ get x(): number;
1762
+ set x(value: number);
1763
+ /** {zh}
1764
+ * @brief 视频流对应区域左上角的纵坐标,该坐标是相对整体画面的归一化比例,取值的范围为 [0.0,1.0]。
1765
+ *
1766
+ */
1767
+
1768
+ get y(): number;
1769
+ set y(value: number);
1770
+ /** {zh}
1771
+ * @brief 视频流对应区域宽度,该宽度是相对整体画面的归一化比例,取值的范围为 [0.0,1.0]。
1772
+ *
1773
+ */
1774
+
1775
+ get width(): number;
1776
+ set width(value: number);
1777
+ /** {zh}
1778
+ * @brief 视频流对应区域高度,该高度是相对整体画面的归一化比例,取值的范围为 [0.0,1.0]。
1779
+ *
1780
+ */
1781
+
1782
+ get height(): number;
1783
+ set height(value: number);
1784
+ /** {zh}
1785
+ * @brief 视频流在混流中的透明度,取值范围为 [0.0,1.0],取值 0.0 表示全透明,取值 1.0 表示不透明。
1786
+ *
1787
+ */
1788
+
1789
+ get alpha(): number;
1790
+ set alpha(value: number);
1791
+ /** {zh}
1792
+ * @brief 视频流在混流中的层级。取值范围为 [0,100],取值 0 表示最底层,取值越大,层级越高。
1793
+ *
1794
+ */
1795
+
1796
+ get zOrder(): number;
1797
+ set zOrder(value: number);
1798
+ /** {zh}
1799
+ * @brief 视频流的渲染模式。详情请参见 [VeLivePusherRenderMode](#VeLivePusherRenderMode)。
1800
+ *
1801
+ */
1802
+
1803
+ get renderMode(): VeLivePusherRenderMode;
1804
+ set renderMode(value: VeLivePusherRenderMode);
1805
+ /** {zh}
1806
+ * @brief 是否保留视频流原 Alpha 通道值,默认为保留,当 [alpha](#VeLiveMixVideoLayout-alpha) 取值在 [0.0, 1.0] 之间时,则忽略该配置。
1807
+ * - YES:保留;
1808
+ * - NO:不保留。
1809
+ *
1810
+ */
1811
+
1812
+ get enableAlpha(): boolean;
1813
+ set enableAlpha(value: boolean);
1814
+ protected __init(...args: any[]): void;
1815
+ protected __new_instance(...args: any[]): any;
1816
+ /** {zh}
1817
+ * @platform android
1818
+ * @detail api
1819
+ * @brief 更新视频混流设置。
1820
+ * @param other 新的视频混流设置,详情请参见 [VeLiveMixVideoLayout](#VeLivePusherDef-VeLiveMixVideoLayout)。
1821
+ *
1822
+ */
1823
+
1824
+ android_update(other: $p_a.VeLiveMixVideoLayout): void;
1825
+ }
1826
+ /** {zh}
1827
+ * @detail keytype
1828
+ * @brief 视频特效许可证配置。
1829
+ *
1830
+ */
1831
+ export declare class VeLiveVideoEffectLicenseConfiguration {
1832
+ /** {zh}
1833
+ * @platform android
1834
+ * @detail api
1835
+ * @brief 初始化配置为本地验证模式。
1836
+ * @param path 视频特效许可证的本地缓存路径。可通过 [getPath](#VeLiveVideoEffectLicenseConfiguration-getpath) 获取。
1837
+ * @return 返回 VeLiveVideoEffectLicenseConfiguration 类的实例,该实例使用指定的本地路径进行许可证验证。
1838
+ *
1839
+ */
1840
+
1841
+ static android_create(path: string): $p_a.VeLiveVideoEffectLicenseConfiguration;
1842
+ /** {zh}
1843
+ * @platform android
1844
+ * @detail api
1845
+ * @brief 初始化配置为在线验证模式。
1846
+ * @return <br>返回 VeLiveVideoEffectLicenseConfiguration 类的实例,该实例使用指定的 key、secret 和 url 进行在线许可证验证。
1847
+ * @param key 视频特效许可证的在线认证 key。可通过 [getKey](#VeLiveVideoEffectLicenseConfiguration-getkey) 获取。
1848
+ * @param secret 视频特效许可证的在线认证 secret。可通过 [getSecret](#VeLiveVideoEffectLicenseConfiguration-getsecret) 获取。
1849
+ * @param url 视频特效许可证的在线认证地址,如果传入 `null`,可通过 [getUrl](147521#VeLiveVideoEffectLicenseConfiguration-geturl) 获取在线认证地址。
1850
+ *
1851
+ */
1852
+
1853
+ static android_create_key$secret$url(key: string, secret: string, url: string): $p_a.VeLiveVideoEffectLicenseConfiguration;
1854
+ protected _instance: any;
1855
+ /** {zh}
1856
+ * @platform ios
1857
+ * @brief 获取视频特效许可证类型。许可证类型请参见 [VeLiveVideoEffectLicenseType](#VeLiveVideoEffectLicenseType)。
1858
+ */
1859
+
1860
+ get type(): $p_i.VeLiveVideoEffectLicenseType;
1861
+ set type(value: $p_i.VeLiveVideoEffectLicenseType);
1862
+ /** {zh}
1863
+ * @platform ios
1864
+ * @brief 获取视频特效许可证的本地路径。当 [VeLiveVideoEffectLicenseType](#VeLiveVideoEffectLicenseType) 为 `VeLiveVideoEffectLicenseTypeOffLine` 时,该属性返回许可证文件的本地路径。
1865
+ */
1866
+
1867
+ get path(): $p_i.NSString;
1868
+ set path(value: $p_i.NSString);
1869
+ /** {zh}
1870
+ * @platform ios
1871
+ * @brief 获取视频特效许可证的在线认证 key。当 [VeLiveVideoEffectLicenseType](#VeLiveVideoEffectLicenseType) 为 `VeLiveVideoEffectLicenseTypeOnLine` 时,该属性返回在线认证的 key。
1872
+ */
1873
+
1874
+ get key(): $p_i.NSString;
1875
+ set key(value: $p_i.NSString);
1876
+ /** {zh}
1877
+ * @platform ios
1878
+ * @brief 获取视频特效许可证的在线认证 secret。当 [VeLiveVideoEffectLicenseType](#VeLiveVideoEffectLicenseType) 为 `VeLiveVideoEffectLicenseTypeOnLine` 时,该属性返回在线认证的 secret。
1879
+ */
1880
+
1881
+ get secret(): $p_i.NSString;
1882
+ set secret(value: $p_i.NSString);
1883
+ /** {zh}
1884
+ * @platform ios
1885
+ * @brief 获取视频特效许可证的在线认证地址。当 [VeLiveVideoEffectLicenseType](#VeLiveVideoEffectLicenseType) 为 `VeLiveVideoEffectLicenseTypeOnLine` 时,该属性返回在线认证地址。
1886
+ */
1887
+
1888
+ get url(): $p_i.NSString;
1889
+ set url(value: $p_i.NSString);
1890
+ protected __init(...args: any[]): void;
1891
+ protected __new_instance(...args: any[]): any;
1892
+ /** {zh}
1893
+ * @platform android
1894
+ * @detail api
1895
+ * @brief 获取视频特效许可证类型。
1896
+ * @return 视频特效许可证类型,许可证类型请参见 [VeLiveVideoEffectLicenseType](147521#VeLiveVideoEffectLicenseType)。
1897
+ *
1898
+ */
1899
+
1900
+ android_getType(): $p_a.VeLiveVideoEffectLicenseType;
1901
+ /** {zh}
1902
+ * @platform android
1903
+ * @detail api
1904
+ * @brief 获取视频特效许可证的本地路径。当 [VeLiveVideoEffectLicenseType](#VeLiveVideoEffectLicenseType) 为 `VeLiveVideoEffectLicenseTypeOffLine` 时,返回许可证文件的本地路径。
1905
+ * @return 视频特效许可证的本地路径。
1906
+ *
1907
+ */
1908
+
1909
+ android_getPath(): string;
1910
+ /** {zh}
1911
+ * @platform android
1912
+ * @detail api
1913
+ * @brief 获取视频特效许可证的在线认证 key。当 [VeLiveVideoEffectLicenseType](#VeLiveVideoEffectLicenseType) 为 `VeLiveVideoEffectLicenseTypeOnLine` 时,返回在线认证的 key。
1914
+ * @return 视频特效许可证的在线认证 key。
1915
+ *
1916
+ */
1917
+
1918
+ android_getKey(): string;
1919
+ /** {zh}
1920
+ * @platform android
1921
+ * @detail api
1922
+ * @brief 获取视频特效许可证的在线认证 secret。当 [VeLiveVideoEffectLicenseType](#VeLiveVideoEffectLicenseType) 为 `VeLiveVideoEffectLicenseTypeOnLine` 时,返回在线认证的 secret。
1923
+ * @return 视频特效许可证的在线认证 secret。
1924
+ *
1925
+ */
1926
+
1927
+ android_getSecret(): string;
1928
+ /** {zh}
1929
+ * @platform android
1930
+ * @detail api
1931
+ * @brief 获取视频特效许可证的在线认证地址。当 [VeLiveVideoEffectLicenseType](#VeLiveVideoEffectLicenseType) 为 `VeLiveVideoEffectLicenseTypeOnLine` 时,返回在线认证地址。
1932
+ * @return 视频特效许可证的在线认证地址。
1933
+ *
1934
+ */
1935
+
1936
+ android_getUrl(): string;
1937
+ /** {zh}
1938
+ * @platform ios
1939
+ * @detail api
1940
+ * @brief 初始化配置为本地验证模式。
1941
+ * @param path 视频特效许可证的本地缓存路径。可通过 [path](#VeLiveVideoEffectLicenseConfiguration-path) 获取
1942
+ * @return 返回 [VeLiveVideoEffectLicenseConfiguration](#VeLiveVideoEffectLicenseConfiguration) 类的实例,该实例使用指定的本地路径进行许可证验证。
1943
+ */
1944
+
1945
+ ios_initWithPath(path: string): this;
1946
+ /** {zh}
1947
+ * @platform ios
1948
+ * @detail api
1949
+ * @brief 初始化配置为在线验证模式。
1950
+ * @param key 视频特效许可证的在线认证 key,可通过 [key](#VeLiveVideoEffectLicenseConfiguration-key) 获取。
1951
+ * @param secret 视频特效许可证的在线认证 secret,可通过 [secret](#VeLiveVideoEffectLicenseConfiguration-secret) 获取。
1952
+ * @param url 视频特效许可证的在线认证地址,如果传入 nil,会使用默认 url,可通过 [url](#VeLiveVideoEffectLicenseConfiguration-url) 获取在线认证地址。
1953
+ * @return 返回 [VeLiveVideoEffectLicenseConfiguration](#VeLiveVideoEffectLicenseConfiguration) 类的实例,该实例使用指定的 key、secret 和 url 进行在线许可证验证。
1954
+ */
1955
+
1956
+ ios_initWithKey(key: string, secret: string, url: string): this;
1957
+ }
1958
+ /** {zh}
1959
+ * @detail keytype
1960
+ * @brief 音频帧来源。
1961
+ *
1962
+ */
1963
+ export declare enum VeLiveAudioFrameSource {
1964
+ /** {zh}
1965
+ * @brief 采集到的原始音频帧。这是从设备的麦克风或其他音频输入源获取的音频帧。
1966
+ *
1967
+ */
1968
+
1969
+ VeLiveAudioFrameSourceCapture = 0,
1970
+ /** {zh}
1971
+ * @brief 编码前的音频帧。这是通过各种处理(例如噪音消除、回声消除等)后,准备进行编码的音频帧。
1972
+ *
1973
+ */
1974
+
1975
+ VeLiveAudioFrameSourcePreEncode = 1
1976
+ }
1977
+ /** {zh}
1978
+ * @detail keytype
1979
+ * @brief 推流音频编码参数。
1980
+ *
1981
+ */
1982
+ export declare class VeLiveAudioEncoderConfiguration {
1983
+ protected _instance: any;
1984
+ /** {zh}
1985
+ * @platform ios
1986
+ * @brief 音频编码码率,单位为 kbps,默认值为 64。
1987
+ */
1988
+
1989
+ get bitrate(): $p_i.int;
1990
+ set bitrate(value: $p_i.int);
1991
+ /** {zh}
1992
+ * @platform ios
1993
+ * @brief 音频编码采样率,默认值为 VeLiveAudioSampleRate44100,详情请参见 [VeLiveAudioSampleRate](#VeLiveAudioSampleRate)。
1994
+ */
1995
+
1996
+ get sampleRate(): $p_i.VeLiveAudioSampleRate;
1997
+ set sampleRate(value: $p_i.VeLiveAudioSampleRate);
1998
+ /** {zh}
1999
+ * @platform ios
2000
+ * @brief 音频声道数,默认值为 VeLiveAudioChannelStereo,详情请参见 [VeLiveAudioChannel](#VeLiveAudioChannel)。
2001
+ */
2002
+
2003
+ get channel(): $p_i.VeLiveAudioChannel;
2004
+ set channel(value: $p_i.VeLiveAudioChannel);
2005
+ /** {zh}
2006
+ * @platform ios
2007
+ * @brief AAC 编码类型,默认值为 VeLiveAudioAACProfileLC。详情请参见 [VeLiveAudioProfile](#VeLiveAudioProfile)。
2008
+ */
2009
+
2010
+ get profile(): $p_i.VeLiveAudioProfile;
2011
+ set profile(value: $p_i.VeLiveAudioProfile);
2012
+ protected __init(...args: any[]): void;
2013
+ protected __new_instance(...args: any[]): any;
2014
+ /** {zh}
2015
+ * @platform android
2016
+ * @detail api
2017
+ * @brief 获取推流音频编码码率。
2018
+ * @return <br>
2019
+ * 推流音频编码码率。
2020
+ *
2021
+ */
2022
+
2023
+ android_getBitrate(): number;
2024
+ /** {zh}
2025
+ * @platform android
2026
+ * @detail api
2027
+ * @brief 设置推流音频编码码率。
2028
+ * @param bitrate 推流音频编码码率,单位为 kbps,默认值为 64。
2029
+ * @return 推流音频编码参数配置对象,详情请参见 [VeLiveAudioEncoderConfiguration](#VeLivePusherDef-VeLiveAudioEncoderConfiguration)。
2030
+ *
2031
+ */
2032
+
2033
+ android_setBitrate(bitrate: number): this;
2034
+ /** {zh}
2035
+ * @platform android
2036
+ * @detail api
2037
+ * @brief 获取推流音频采样率。
2038
+ * @return 推流音频采样率。详情请参见 [VeLiveAudioSampleRate](#VeLiveAudioSampleRate)。
2039
+ *
2040
+ */
2041
+
2042
+ android_getSampleRate(): $p_a.VeLiveAudioSampleRate;
2043
+ /** {zh}
2044
+ * @platform android
2045
+ * @detail api
2046
+ * @brief 设置推流音频采样率。
2047
+ * @param sampleRate 推流音频采样率,默认值为 VeLiveAudioSampleRate44100,详情请参见 [VeLiveAudioSampleRate](#VeLiveAudioSampleRate)。
2048
+ * @return 推流音频编码参数配置对象,详情请参见 [VeLiveAudioEncoderConfiguration](#VeLivePusherDef-VeLiveAudioEncoderConfiguration)。
2049
+ *
2050
+ */
2051
+
2052
+ android_setSampleRate(sampleRate: $p_a.VeLiveAudioSampleRate): this;
2053
+ /** {zh}
2054
+ * @platform android
2055
+ * @detail api
2056
+ * @brief 获取推流音频声道。
2057
+ * @return 推流音频声道。详情请参见 [VeLiveAudioChannel](#VeLiveAudioChannel)。
2058
+ *
2059
+ */
2060
+
2061
+ android_getChannel(): $p_a.VeLiveAudioChannel;
2062
+ /** {zh}
2063
+ * @platform android
2064
+ * @detail api
2065
+ * @brief 设置推流音频声道。
2066
+ * @param channel 推流音频声道,默认值为 VeLiveAudioChannelStereo,详情请参见 [VeLiveAudioChannel](#VeLiveAudioChannel)。
2067
+ * @return 推流音频编码参数配置对象,详情请参见 [VeLiveAudioEncoderConfiguration](#VeLivePusherDef-VeLiveAudioEncoderConfiguration)。
2068
+ *
2069
+ */
2070
+
2071
+ android_setChannel(channel: $p_a.VeLiveAudioChannel): this;
2072
+ /** {zh}
2073
+ * @platform android
2074
+ * @detail api
2075
+ * @brief 获取推流音频编码类型。
2076
+ * @return 推流音频编码类型。详情请参见 [VeLiveAudioProfile](#VeLiveAudioProfile)。
2077
+ *
2078
+ */
2079
+
2080
+ android_getProfile(): $p_a.VeLiveAudioProfile;
2081
+ /** {zh}
2082
+ * @platform android
2083
+ * @detail api
2084
+ * @brief 设置推流音频编码类型。
2085
+ * @param profile 推流音频编码类型,默认值为 VeLiveAudioAACProfileLC,详情请参见 [VeLiveAudioProfile](#VeLiveAudioProfile)。
2086
+ * @return 推流音频编码参数配置对象,详情请参见 [VeLiveAudioEncoderConfiguration](#VeLivePusherDef-VeLiveAudioEncoderConfiguration)。
2087
+ *
2088
+ */
2089
+
2090
+ android_setProfile(profile: $p_a.VeLiveAudioProfile): this;
2091
+ }
2092
+ /** {zh}
2093
+ * @detail keytype
2094
+ * @brief 音频混流类型。
2095
+ *
2096
+ */
2097
+ export declare enum VeLiveAudioMixType {
2098
+ /** {zh}
2099
+ * @brief 拉流端可以听到混音效果,本地无法听到。
2100
+ *
2101
+ */
2102
+
2103
+ VeLiveAudioMixPush = 0,
2104
+ /** {zh}
2105
+ * @brief 拉流端和本地都可以听到混音效果。
2106
+ *
2107
+ */
2108
+
2109
+ VeLiveAudioMixPlayAndPush = 1
2110
+ }
2111
+ export declare class t_VeLivePusherRenderMode {
2112
+ static code_to_android(value: VeLivePusherRenderMode): $p_a.VeLivePusherRenderMode;
2113
+ static android_to_code(value: $p_a.VeLivePusherRenderMode): VeLivePusherRenderMode;
2114
+ static code_to_ios(value: VeLivePusherRenderMode): $p_i.VeLivePusherRenderMode;
2115
+ static ios_to_code(value: $p_i.VeLivePusherRenderMode): VeLivePusherRenderMode;
2116
+ }
2117
+ export declare class t_VeLiveAudioBufferType {
2118
+ static code_to_android(value: VeLiveAudioBufferType): $p_a.VeLiveAudioBufferType;
2119
+ static android_to_code(value: $p_a.VeLiveAudioBufferType): VeLiveAudioBufferType;
2120
+ static code_to_ios(value: VeLiveAudioBufferType): $p_i.VeLiveAudioBufferType;
2121
+ static ios_to_code(value: $p_i.VeLiveAudioBufferType): VeLiveAudioBufferType;
2122
+ }
2123
+ export declare class t_VeLiveVideoCaptureType {
2124
+ static code_to_android(value: VeLiveVideoCaptureType): $p_a.VeLiveVideoCaptureType;
2125
+ static android_to_code(value: $p_a.VeLiveVideoCaptureType): VeLiveVideoCaptureType;
2126
+ static code_to_ios(value: VeLiveVideoCaptureType): $p_i.VeLiveVideoCaptureType;
2127
+ static ios_to_code(value: $p_i.VeLiveVideoCaptureType): VeLiveVideoCaptureType;
2128
+ }
2129
+ export declare class t_VeLiveVideoRotation {
2130
+ static code_to_android(value: VeLiveVideoRotation): $p_a.VeLiveVideoRotation;
2131
+ static android_to_code(value: $p_a.VeLiveVideoRotation): VeLiveVideoRotation;
2132
+ static code_to_ios(value: VeLiveVideoRotation): $p_i.VeLiveVideoRotation;
2133
+ static ios_to_code(value: $p_i.VeLiveVideoRotation): VeLiveVideoRotation;
2134
+ }
2135
+ export declare class t_VeLiveNetworkQuality {
2136
+ static code_to_android(value: VeLiveNetworkQuality): $p_a.VeLiveNetworkQuality;
2137
+ static android_to_code(value: $p_a.VeLiveNetworkQuality): VeLiveNetworkQuality;
2138
+ static code_to_ios(value: VeLiveNetworkQuality): $p_i.VeLiveNetworkQuality;
2139
+ static ios_to_code(value: $p_i.VeLiveNetworkQuality): VeLiveNetworkQuality;
2140
+ }
2141
+ export declare class t_VeLiveAudioCaptureType {
2142
+ static code_to_android(value: VeLiveAudioCaptureType): $p_a.VeLiveAudioCaptureType;
2143
+ static android_to_code(value: $p_a.VeLiveAudioCaptureType): VeLiveAudioCaptureType;
2144
+ static code_to_ios(value: VeLiveAudioCaptureType): $p_i.VeLiveAudioCaptureType;
2145
+ static ios_to_code(value: $p_i.VeLiveAudioCaptureType): VeLiveAudioCaptureType;
2146
+ }
2147
+ export declare class t_VeLiveVideoBufferType {
2148
+ static code_to_android(value: VeLiveVideoBufferType): $p_a.VeLiveVideoBufferType;
2149
+ static android_to_code(value: $p_a.VeLiveVideoBufferType): VeLiveVideoBufferType;
2150
+ static code_to_ios(value: VeLiveVideoBufferType): $p_i.VeLiveVideoBufferType;
2151
+ static ios_to_code(value: $p_i.VeLiveVideoBufferType): VeLiveVideoBufferType;
2152
+ }
2153
+ export declare class t_VeLiveOrientation {
2154
+ static code_to_android(value: VeLiveOrientation): $p_a.VeLiveOrientation;
2155
+ static android_to_code(value: $p_a.VeLiveOrientation): VeLiveOrientation;
2156
+ static code_to_ios(value: VeLiveOrientation): $p_i.UIInterfaceOrientation;
2157
+ static ios_to_code(value: $p_i.UIInterfaceOrientation): VeLiveOrientation;
2158
+ }
2159
+ export declare class t_VeLivePusherStatus {
2160
+ static code_to_android(value: VeLivePusherStatus): $p_a.VeLivePusherStatus;
2161
+ static android_to_code(value: $p_a.VeLivePusherStatus): VeLivePusherStatus;
2162
+ static code_to_ios(value: VeLivePusherStatus): $p_i.VeLivePushStatus;
2163
+ static ios_to_code(value: $p_i.VeLivePushStatus): VeLivePusherStatus;
2164
+ }
2165
+ export declare class t_VeLiveAudioPowerLevel {
2166
+ static code_to_android(value: VeLiveAudioPowerLevel): $p_a.VeLiveAudioPowerLevel;
2167
+ static android_to_code(value: $p_a.VeLiveAudioPowerLevel): VeLiveAudioPowerLevel;
2168
+ static code_to_ios(value: VeLiveAudioPowerLevel): $p_i.VeLiveAudioPowerLevel;
2169
+ static ios_to_code(value: $p_i.VeLiveAudioPowerLevel): VeLiveAudioPowerLevel;
2170
+ }
2171
+ export declare class t_VeLivePixelFormat {
2172
+ static code_to_android(value: VeLivePixelFormat): $p_a.VeLivePixelFormat;
2173
+ static android_to_code(value: $p_a.VeLivePixelFormat): VeLivePixelFormat;
2174
+ static code_to_ios(value: VeLivePixelFormat): $p_i.VeLivePixelFormat;
2175
+ static ios_to_code(value: $p_i.VeLivePixelFormat): VeLivePixelFormat;
2176
+ }
2177
+ export declare class t_VeLivePusherLogLevel {
2178
+ static code_to_android(value: VeLivePusherLogLevel): $p_a.VeLivePusherLogLevel;
2179
+ static android_to_code(value: $p_a.VeLivePusherLogLevel): VeLivePusherLogLevel;
2180
+ static code_to_ios(value: VeLivePusherLogLevel): $p_i.VeLivePusherLogLevel;
2181
+ static ios_to_code(value: $p_i.VeLivePusherLogLevel): VeLivePusherLogLevel;
2182
+ }
2183
+ export declare class t_VeLiveVideoResolution {
2184
+ static code_to_android(value: VeLiveVideoResolution): $p_a.VeLiveVideoResolution;
2185
+ static android_to_code(value: $p_a.VeLiveVideoResolution): VeLiveVideoResolution;
2186
+ static code_to_ios(value: VeLiveVideoResolution): $p_i.VeLiveVideoResolution;
2187
+ static ios_to_code(value: $p_i.VeLiveVideoResolution): VeLiveVideoResolution;
2188
+ }
2189
+ export declare class t_VeLiveVideoCodec {
2190
+ static code_to_android(value: VeLiveVideoCodec): $p_a.VeLiveVideoCodec;
2191
+ static android_to_code(value: $p_a.VeLiveVideoCodec): VeLiveVideoCodec;
2192
+ static code_to_ios(value: VeLiveVideoCodec): $p_i.VeLiveVideoCodec;
2193
+ static ios_to_code(value: $p_i.VeLiveVideoCodec): VeLiveVideoCodec;
2194
+ }
2195
+ export declare class t_VeLiveVideoEffectLicenseType {
2196
+ static code_to_android(value: VeLiveVideoEffectLicenseType): $p_a.VeLiveVideoEffectLicenseType;
2197
+ static android_to_code(value: $p_a.VeLiveVideoEffectLicenseType): VeLiveVideoEffectLicenseType;
2198
+ static code_to_ios(value: VeLiveVideoEffectLicenseType): $p_i.VeLiveVideoEffectLicenseType;
2199
+ static ios_to_code(value: $p_i.VeLiveVideoEffectLicenseType): VeLiveVideoEffectLicenseType;
2200
+ }
2201
+ export declare class t_VeLiveAudioChannel {
2202
+ static code_to_android(value: VeLiveAudioChannel): $p_a.VeLiveAudioChannel;
2203
+ static android_to_code(value: $p_a.VeLiveAudioChannel): VeLiveAudioChannel;
2204
+ static code_to_ios(value: VeLiveAudioChannel): $p_i.VeLiveAudioChannel;
2205
+ static ios_to_code(value: $p_i.VeLiveAudioChannel): VeLiveAudioChannel;
2206
+ }
2207
+ export declare class t_VeLiveFirstFrameType {
2208
+ static code_to_android(value: VeLiveFirstFrameType): $p_a.VeLiveFirstFrameType;
2209
+ static android_to_code(value: $p_a.VeLiveFirstFrameType): VeLiveFirstFrameType;
2210
+ static code_to_ios(value: VeLiveFirstFrameType): $p_i.VeLiveFirstFrameType;
2211
+ static ios_to_code(value: $p_i.VeLiveFirstFrameType): VeLiveFirstFrameType;
2212
+ }
2213
+ export declare class t_VeLiveVideoFrameSource {
2214
+ static code_to_android(value: VeLiveVideoFrameSource): $p_a.VeLiveVideoFrameSource;
2215
+ static android_to_code(value: $p_a.VeLiveVideoFrameSource): VeLiveVideoFrameSource;
2216
+ static code_to_ios(value: VeLiveVideoFrameSource): $p_i.VeLiveVideoFrameSource;
2217
+ static ios_to_code(value: $p_i.VeLiveVideoFrameSource): VeLiveVideoFrameSource;
2218
+ }
2219
+ export declare class t_VeLiveAudioProfile {
2220
+ static code_to_android(value: VeLiveAudioProfile): $p_a.VeLiveAudioProfile;
2221
+ static android_to_code(value: $p_a.VeLiveAudioProfile): VeLiveAudioProfile;
2222
+ static code_to_ios(value: VeLiveAudioProfile): $p_i.VeLiveAudioProfile;
2223
+ static ios_to_code(value: $p_i.VeLiveAudioProfile): VeLiveAudioProfile;
2224
+ }
2225
+ export declare class t_VeLiveAudioSampleRate {
2226
+ static code_to_android(value: VeLiveAudioSampleRate): $p_a.VeLiveAudioSampleRate;
2227
+ static android_to_code(value: $p_a.VeLiveAudioSampleRate): VeLiveAudioSampleRate;
2228
+ static code_to_ios(value: VeLiveAudioSampleRate): $p_i.VeLiveAudioSampleRate;
2229
+ static ios_to_code(value: $p_i.VeLiveAudioSampleRate): VeLiveAudioSampleRate;
2230
+ }
2231
+ export declare class t_VeLiveVideoMirrorType {
2232
+ static code_to_android(value: VeLiveVideoMirrorType): $p_a.VeLiveVideoMirrorType;
2233
+ static android_to_code(value: $p_a.VeLiveVideoMirrorType): VeLiveVideoMirrorType;
2234
+ static code_to_ios(value: VeLiveVideoMirrorType): $p_i.VeLiveVideoMirrorType;
2235
+ static ios_to_code(value: $p_i.VeLiveVideoMirrorType): VeLiveVideoMirrorType;
2236
+ }
2237
+ export declare class t_VeLiveAudioFrameSource {
2238
+ static code_to_android(value: VeLiveAudioFrameSource): $p_a.VeLiveAudioFrameSource;
2239
+ static android_to_code(value: $p_a.VeLiveAudioFrameSource): VeLiveAudioFrameSource;
2240
+ static code_to_ios(value: VeLiveAudioFrameSource): $p_i.VeLiveAudioFrameSource;
2241
+ static ios_to_code(value: $p_i.VeLiveAudioFrameSource): VeLiveAudioFrameSource;
2242
+ }
2243
+ export declare class t_VeLiveAudioMixType {
2244
+ static code_to_android(value: VeLiveAudioMixType): $p_a.VeLiveAudioMixType;
2245
+ static android_to_code(value: $p_a.VeLiveAudioMixType): VeLiveAudioMixType;
2246
+ static code_to_ios(value: VeLiveAudioMixType): $p_i.VeLiveAudioMixType;
2247
+ static ios_to_code(value: $p_i.VeLiveAudioMixType): VeLiveAudioMixType;
2248
+ }