@volcengine/react-native-live-push 1.0.1 → 1.0.3-rc.0

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