@volcengine/react-native-live-push 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +2 -0
- package/android/build.gradle +92 -0
- package/android/gradle.properties +5 -0
- package/android/src/main/AndroidManifest.xml +16 -0
- package/android/src/main/AndroidManifestNew.xml +16 -0
- package/android/src/main/java/com/volcengine/velive/rn/push/ExternalSourceHelper.java +58 -0
- package/android/src/main/java/com/volcengine/velive/rn/push/NativeVariableManager.java +19 -0
- package/android/src/main/java/com/volcengine/velive/rn/push/ScreenCaptureHelper.java +73 -0
- package/android/src/main/java/com/volcengine/velive/rn/push/VeLivePushModule.java +182 -0
- package/android/src/main/java/com/volcengine/velive/rn/push/VeLivePushModuleSpec.java +16 -0
- package/android/src/main/java/com/volcengine/velive/rn/push/VeLivePushPackage.java +27 -0
- package/android/src/main/java/com/volcengine/velive/rn/push/VeLivePushView.java +45 -0
- package/android/src/main/java/com/volcengine/velive/rn/push/VeLivePushViewManager.java +87 -0
- package/ios/VeLivePushSDK.h +24 -0
- package/ios/VeLivePushSDK.m +109 -0
- package/ios/VeLivePushView.h +24 -0
- package/ios/VeLivePushView.m +74 -0
- package/ios/VeLivePushViewManager.m +59 -0
- package/lib/commonjs/index.js +24238 -0
- package/lib/module/index.js +24186 -0
- package/lib/typescript/android/index.d.ts +44 -0
- package/lib/typescript/codegen/android/api.d.ts +1408 -0
- package/lib/typescript/codegen/android/callback.d.ts +265 -0
- package/lib/typescript/codegen/android/errorcode.d.ts +50 -0
- package/lib/typescript/codegen/android/index.d.ts +5 -0
- package/lib/typescript/codegen/android/keytype.d.ts +1069 -0
- package/lib/typescript/codegen/android/types.d.ts +32 -0
- package/lib/typescript/codegen/ios/api.d.ts +1133 -0
- package/lib/typescript/codegen/ios/callback.d.ts +251 -0
- package/lib/typescript/codegen/ios/errorcode.d.ts +104 -0
- package/lib/typescript/codegen/ios/index.d.ts +5 -0
- package/lib/typescript/codegen/ios/keytype.d.ts +934 -0
- package/lib/typescript/codegen/ios/types.d.ts +35 -0
- package/lib/typescript/codegen/pack/api.d.ts +1923 -0
- package/lib/typescript/codegen/pack/callback.d.ts +545 -0
- package/lib/typescript/codegen/pack/errorcode.d.ts +174 -0
- package/lib/typescript/codegen/pack/index.d.ts +5 -0
- package/lib/typescript/codegen/pack/keytype.d.ts +1953 -0
- package/lib/typescript/codegen/pack/types.d.ts +1 -0
- package/lib/typescript/codegen/type-shim.d.ts +6 -0
- package/lib/typescript/component.d.ts +8 -0
- package/lib/typescript/core/api.d.ts +2 -0
- package/lib/typescript/core/callback.d.ts +2 -0
- package/lib/typescript/core/env.d.ts +29 -0
- package/lib/typescript/core/errorcode.d.ts +2 -0
- package/lib/typescript/core/index.d.ts +6 -0
- package/lib/typescript/core/keytype.d.ts +7 -0
- package/lib/typescript/core/pusher.d.ts +16 -0
- package/lib/typescript/index.d.ts +2 -0
- package/lib/typescript/ios/extends.d.ts +41 -0
- package/lib/typescript/runtime.d.ts +1 -0
- package/package.json +31 -0
- package/react-native-velive-push.podspec +45 -0
|
@@ -0,0 +1,1953 @@
|
|
|
1
|
+
import * as $p_a from '../android/index';
|
|
2
|
+
import * as $p_i from '../ios/index';
|
|
3
|
+
/** {zh}
|
|
4
|
+
* @detail keytype
|
|
5
|
+
* @brief 推流视频编码参数。
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
export declare class VeLiveVideoEncoderConfiguration {
|
|
9
|
+
protected _instance: any;
|
|
10
|
+
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;
|
|
20
|
+
/** {zh}
|
|
21
|
+
* @detail api
|
|
22
|
+
* @brief 设置推流视频分辨率。
|
|
23
|
+
* @param resolution 推流视频分辨率,默认值为 VeLiveVideoResolution720P,详情请参见 {@link #VeLiveVideoResolution VeLiveVideoResolution}
|
|
24
|
+
* @return <br>
|
|
25
|
+
* 推流视频编码参数配置对象,详情请参见 {@link #VeLiveVideoEncoderConfiguration VeLiveVideoEncoderConfiguration}。
|
|
26
|
+
*/
|
|
27
|
+
|
|
28
|
+
setResolution(resolution: VeLiveVideoResolution): VeLiveVideoEncoderConfiguration;
|
|
29
|
+
/** {zh}
|
|
30
|
+
* @detail api
|
|
31
|
+
* @brief 获取推流视频编码格式。
|
|
32
|
+
* @return <br>
|
|
33
|
+
* 推流视频编码格式,详情请参见 {@link #VeLiveVideoCodec VeLiveVideoCodec}。
|
|
34
|
+
*/
|
|
35
|
+
|
|
36
|
+
getCodec(): VeLiveVideoCodec;
|
|
37
|
+
/** {zh}
|
|
38
|
+
* @detail api
|
|
39
|
+
* @brief 设置推流视频编码格式。
|
|
40
|
+
* @param codec
|
|
41
|
+
* 推流视频编码格式,详情请参见 [VeLiveVideoCodec](147521#VeLiveVideoCodec)。
|
|
42
|
+
* @return 推流视频编码参数,详见 [VeLiveVideoEncoderConfiguration](147521#velivevideoencoderconfiguration)。
|
|
43
|
+
*/
|
|
44
|
+
|
|
45
|
+
setCodec(codec: VeLiveVideoCodec): VeLiveVideoEncoderConfiguration;
|
|
46
|
+
/** {zh}
|
|
47
|
+
* @detail api
|
|
48
|
+
* @brief 获取推流视频编码码率。
|
|
49
|
+
* @return <br>
|
|
50
|
+
* 推流视频编码码率。
|
|
51
|
+
*/
|
|
52
|
+
|
|
53
|
+
getBitrate(): number;
|
|
54
|
+
/** {zh}
|
|
55
|
+
* @detail api
|
|
56
|
+
* @brief 设置推流视频编码码率。
|
|
57
|
+
* @param bitrate 推流视频编码码率,单位为 kbps,默认值由 `resolution` 参数值决定。
|
|
58
|
+
* @return <br>
|
|
59
|
+
* 推流视频编码参数配置对象,详情请参见 {@link #VeLiveVideoEncoderConfiguration VeLiveVideoEncoderConfiguration}。
|
|
60
|
+
*/
|
|
61
|
+
|
|
62
|
+
setBitrate(bitrate: number): VeLiveVideoEncoderConfiguration;
|
|
63
|
+
/** {zh}
|
|
64
|
+
* @detail api
|
|
65
|
+
* @brief 获取推流视频编码最小码率。
|
|
66
|
+
* @return <br>
|
|
67
|
+
* 推流视频编码最小码率。
|
|
68
|
+
*/
|
|
69
|
+
|
|
70
|
+
getMinBitrate(): number;
|
|
71
|
+
/** {zh}
|
|
72
|
+
* @detail api
|
|
73
|
+
* @brief 设置推流视频编码最小码率。
|
|
74
|
+
* @param minBitrate 推流视频编码最小码率,单位为 kbps,默认值由 `resolution` 参数值决定;如果开启自适应码率,推流 SDK 根据网络情况进行编码码率自适应调整的最小码率。
|
|
75
|
+
* @return <br>
|
|
76
|
+
* 推流视频编码参数配置对象,详情请参见 {@link #VeLiveVideoEncoderConfiguration VeLiveVideoEncoderConfiguration}。
|
|
77
|
+
*/
|
|
78
|
+
|
|
79
|
+
setMinBitrate(minBitrate: number): VeLiveVideoEncoderConfiguration;
|
|
80
|
+
/** {zh}
|
|
81
|
+
* @detail api
|
|
82
|
+
* @brief 获取推流视频编码最大码率。
|
|
83
|
+
* @return <br>
|
|
84
|
+
* 推流视频编码最大码率。
|
|
85
|
+
*/
|
|
86
|
+
|
|
87
|
+
getMaxBitrate(): number;
|
|
88
|
+
/** {zh}
|
|
89
|
+
* @detail api
|
|
90
|
+
* @brief 设置推流视频编码最大码率。
|
|
91
|
+
* @return <br>
|
|
92
|
+
* 推流视频编码参数配置对象,详情请参见 {@link #VeLiveVideoEncoderConfiguration VeLiveVideoEncoderConfiguration}。
|
|
93
|
+
* @param maxBitrate 推流视频编码最大码率,单位为 kbps,默认值由 `resolution` 参数值决定;如果开启自适应码率,推流 SDK 根据网络情况进行编码码率自适应调整的最大码率。
|
|
94
|
+
*/
|
|
95
|
+
|
|
96
|
+
setMaxBitrate(maxBitrate: number): VeLiveVideoEncoderConfiguration;
|
|
97
|
+
/** {zh}
|
|
98
|
+
* @detail api
|
|
99
|
+
* @brief 获取推流视频编码 GOP。
|
|
100
|
+
* @return <br>
|
|
101
|
+
* 推流视频编码 GOP。
|
|
102
|
+
*/
|
|
103
|
+
|
|
104
|
+
getGopSize(): number;
|
|
105
|
+
/** {zh}
|
|
106
|
+
* @detail api
|
|
107
|
+
* @brief 设置推流视频编码 GOP。
|
|
108
|
+
* @param gopSize 视频 GOP 大小,单位为 s,默认值为 2。
|
|
109
|
+
* @return <br>
|
|
110
|
+
* 推流视频编码参数配置对象,详情请参见 {@link #VeLiveVideoEncoderConfiguration VeLiveVideoEncoderConfiguration}。
|
|
111
|
+
*/
|
|
112
|
+
|
|
113
|
+
setGopSize(gopSize: number): VeLiveVideoEncoderConfiguration;
|
|
114
|
+
/** {zh}
|
|
115
|
+
* @detail api
|
|
116
|
+
* @brief 获取推流视频编码帧率。
|
|
117
|
+
* @return <br>
|
|
118
|
+
* 推流视频编码帧率。
|
|
119
|
+
*/
|
|
120
|
+
|
|
121
|
+
getFps(): number;
|
|
122
|
+
/** {zh}
|
|
123
|
+
* @detail api
|
|
124
|
+
* @brief 设置推流视频编码帧率。
|
|
125
|
+
* @param fps 视频编码帧率,单位为 fps,默认值为 15。
|
|
126
|
+
* @return <br>
|
|
127
|
+
* 推流视频编码参数配置对象,详情请参见 {@link #VeLiveVideoEncoderConfiguration VeLiveVideoEncoderConfiguration}。
|
|
128
|
+
*/
|
|
129
|
+
|
|
130
|
+
setFps(fps: number): VeLiveVideoEncoderConfiguration;
|
|
131
|
+
/** {zh}
|
|
132
|
+
* @platform android
|
|
133
|
+
* @detail api
|
|
134
|
+
* @brief 获取是否开启 B 帧。
|
|
135
|
+
* @return <br>
|
|
136
|
+
* 是否开启B帧。
|
|
137
|
+
* - true:B 帧开启;
|
|
138
|
+
* - false:B 帧关闭。
|
|
139
|
+
*/
|
|
140
|
+
|
|
141
|
+
android_isEnableBFrame(): boolean;
|
|
142
|
+
/** {zh}
|
|
143
|
+
* @detail api
|
|
144
|
+
* @brief 设置推流视频编码开启 B 帧。
|
|
145
|
+
* @param enableBFrame 是否开启 B 帧。默认为 false。 <br>
|
|
146
|
+
* - true:开启;
|
|
147
|
+
* - false:关闭。
|
|
148
|
+
* @return <br>
|
|
149
|
+
* 推流视频编码参数配置对象,详情请参见 {@link #VeLiveVideoEncoderConfiguration VeLiveVideoEncoderConfiguration}。
|
|
150
|
+
*/
|
|
151
|
+
|
|
152
|
+
setEnableBFrame(enableBFrame: boolean): VeLiveVideoEncoderConfiguration;
|
|
153
|
+
/** {zh}
|
|
154
|
+
* @platform android
|
|
155
|
+
* @detail api
|
|
156
|
+
* @brief 获取是否开启硬件编码。
|
|
157
|
+
* @return <br>
|
|
158
|
+
* 是否开启硬件编码。
|
|
159
|
+
* - true:开启;
|
|
160
|
+
* - false:关闭。
|
|
161
|
+
*/
|
|
162
|
+
|
|
163
|
+
android_isEnableAccelerate(): boolean;
|
|
164
|
+
/** {zh}
|
|
165
|
+
* @detail api
|
|
166
|
+
* @brief 设置推流视频编码开启硬件编码。
|
|
167
|
+
* @param enableAccelerate 是否开启硬件编码。默认值为 true。 <br>
|
|
168
|
+
* - true:开启;
|
|
169
|
+
* - false:关闭。
|
|
170
|
+
* @return <br>
|
|
171
|
+
* 推流视频编码参数配置对象,详情请参见 {@link #VeLiveVideoEncoderConfiguration VeLiveVideoEncoderConfiguration}。
|
|
172
|
+
*/
|
|
173
|
+
|
|
174
|
+
setEnableAccelerate(enableAccelerate: boolean): VeLiveVideoEncoderConfiguration;
|
|
175
|
+
/** {zh}
|
|
176
|
+
* @platform ios
|
|
177
|
+
* @brief 初始化方法,用于创建一个 {@link #VeLiveVideoEncoderConfiguration VeLiveVideoEncoderConfiguration} 对象,并指定视频的分辨率。
|
|
178
|
+
* @param resolution 视频的分辨率,详情请参见 {@link #VeLiveVideoResolution VeLiveVideoResolution}。
|
|
179
|
+
* @return <br>
|
|
180
|
+
* 创建的 {@link #VeLiveVideoEncoderConfiguration VeLiveVideoEncoderConfiguration} 对象。
|
|
181
|
+
*/
|
|
182
|
+
|
|
183
|
+
ios_initWithResolution(resolution: VeLiveVideoResolution): this;
|
|
184
|
+
}
|
|
185
|
+
/** {zh}
|
|
186
|
+
* @platform android
|
|
187
|
+
* @detail keytype
|
|
188
|
+
* @brief 音频编码格式。
|
|
189
|
+
*/
|
|
190
|
+
|
|
191
|
+
export declare enum VeLiveAudioCodec {
|
|
192
|
+
/** {zh}
|
|
193
|
+
* @platform android
|
|
194
|
+
* @brief FDKAAC 编码。
|
|
195
|
+
*/
|
|
196
|
+
|
|
197
|
+
VeLiveAudioCodecFdkAAC = 0,
|
|
198
|
+
/** {zh}
|
|
199
|
+
* @platform android
|
|
200
|
+
* @brief Mediacodec AAC 编码。
|
|
201
|
+
*/
|
|
202
|
+
|
|
203
|
+
VeLiveAudioCodecMediaCodecAAC = 1,
|
|
204
|
+
/** {zh}
|
|
205
|
+
* @platform android
|
|
206
|
+
* @brief FFMPEG AAC 编码。
|
|
207
|
+
*/
|
|
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;
|
|
216
|
+
}
|
|
217
|
+
/** {zh}
|
|
218
|
+
* @detail keytype
|
|
219
|
+
* @brief 视频编码格式。
|
|
220
|
+
*/
|
|
221
|
+
|
|
222
|
+
export declare enum VeLiveVideoCodec {
|
|
223
|
+
/** {zh}
|
|
224
|
+
* @brief 使用 H.264 视频编码。
|
|
225
|
+
*/
|
|
226
|
+
|
|
227
|
+
VeLiveVideoCodecH264 = "h264",
|
|
228
|
+
/** {zh}
|
|
229
|
+
* @brief 使用火山引擎自研 ByteVC1 视频编码。
|
|
230
|
+
*/
|
|
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;
|
|
239
|
+
}
|
|
240
|
+
/** {zh}
|
|
241
|
+
* @detail keytype
|
|
242
|
+
* @brief 推流周期性统计信息。
|
|
243
|
+
*/
|
|
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;
|
|
249
|
+
/** {zh}
|
|
250
|
+
* @brief 视频编码宽度,单位为 px。
|
|
251
|
+
*/
|
|
252
|
+
|
|
253
|
+
get encodeWidth(): number;
|
|
254
|
+
set encodeWidth(value: number);
|
|
255
|
+
/** {zh}
|
|
256
|
+
* @brief 视频编码高度,单位为 px。
|
|
257
|
+
*/
|
|
258
|
+
|
|
259
|
+
get encodeHeight(): number;
|
|
260
|
+
set encodeHeight(value: number);
|
|
261
|
+
/** {zh}
|
|
262
|
+
* @brief 视频采集宽度,单位为 px。
|
|
263
|
+
*/
|
|
264
|
+
|
|
265
|
+
get captureWidth(): number;
|
|
266
|
+
set captureWidth(value: number);
|
|
267
|
+
/** {zh}
|
|
268
|
+
* @brief 视频采集高度,单位为 px。
|
|
269
|
+
*/
|
|
270
|
+
|
|
271
|
+
get captureHeight(): number;
|
|
272
|
+
set captureHeight(value: number);
|
|
273
|
+
/** {zh}
|
|
274
|
+
* @brief 视频采集帧率,单位为 fps。
|
|
275
|
+
*/
|
|
276
|
+
|
|
277
|
+
get captureFps(): number;
|
|
278
|
+
set captureFps(value: number);
|
|
279
|
+
/** {zh}
|
|
280
|
+
* @brief 视频编码帧率,单位为 fps。
|
|
281
|
+
*/
|
|
282
|
+
|
|
283
|
+
get encodeFps(): number;
|
|
284
|
+
set encodeFps(value: number);
|
|
285
|
+
/** {zh}
|
|
286
|
+
* @brief 视频发送帧率,可用展示实时帧率,单位为 fps。
|
|
287
|
+
*/
|
|
288
|
+
|
|
289
|
+
get transportFps(): number;
|
|
290
|
+
set transportFps(value: number);
|
|
291
|
+
/** {zh}
|
|
292
|
+
* @brief 视频推流帧率,即您通过 [setVideoEncoderConfiguration](147517#VeLivePusher-setvideoencoderconfiguration) 方法设置的帧率,单位为 fps。
|
|
293
|
+
*/
|
|
294
|
+
|
|
295
|
+
get fps(): number;
|
|
296
|
+
set fps(value: number);
|
|
297
|
+
/** {zh}
|
|
298
|
+
* @brief 视频推流码率,即您通过 [setVideoEncoderConfiguration](147517#VeLivePusher-setvideoencoderconfiguration) 方法设置的码率,单位为 kbps。
|
|
299
|
+
*/
|
|
300
|
+
|
|
301
|
+
get videoBitrate(): number;
|
|
302
|
+
set videoBitrate(value: number);
|
|
303
|
+
/** {zh}
|
|
304
|
+
* @brief 视频推流最小码率,即您通过 [setVideoEncoderConfiguration](147517#VeLivePusher-setvideoencoderconfiguration) 方法设置的最小码率,单位为 kbps。
|
|
305
|
+
*/
|
|
306
|
+
|
|
307
|
+
get minVideoBitrate(): number;
|
|
308
|
+
set minVideoBitrate(value: number);
|
|
309
|
+
/** {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 以上
|
|
514
|
+
*/
|
|
515
|
+
|
|
516
|
+
VeLiveVideoFluencyLevelBlocked = 2,
|
|
517
|
+
/** {zh}
|
|
518
|
+
* @platform ios
|
|
519
|
+
* @brief 完全卡住,帧率低于 2fps。
|
|
520
|
+
*/
|
|
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;
|
|
529
|
+
}
|
|
530
|
+
/** {zh}
|
|
531
|
+
* @detail keytype
|
|
532
|
+
* @brief 视频采集类型。
|
|
533
|
+
*/
|
|
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,
|
|
557
|
+
/** {zh}
|
|
558
|
+
* @brief 使用外部设备或源进行视频采集。
|
|
559
|
+
*/
|
|
560
|
+
|
|
561
|
+
VeLiveVideoCaptureExternal = 4,
|
|
562
|
+
/** {zh}
|
|
563
|
+
* @brief 使用指定的静态图片作为视频源。
|
|
564
|
+
*/
|
|
565
|
+
|
|
566
|
+
VeLiveVideoCaptureCustomImage = 5,
|
|
567
|
+
/** {zh}
|
|
568
|
+
* @brief 使用最近采集的一帧图像重复作为视频源。
|
|
569
|
+
*/
|
|
570
|
+
|
|
571
|
+
VeLiveVideoCaptureLastFrame = 6,
|
|
572
|
+
/** {zh}
|
|
573
|
+
* @brief 使用黑色帧作为视频源,一般用于调试或特殊需求。
|
|
574
|
+
*/
|
|
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;
|
|
583
|
+
}
|
|
584
|
+
/** {zh}
|
|
585
|
+
* @platform android
|
|
586
|
+
* @detail keytype
|
|
587
|
+
* @brief 相机视频配置枚举类。用于设置相机的视频配置参数,包括视频编码格式和参数等。
|
|
588
|
+
*/
|
|
589
|
+
|
|
590
|
+
export declare enum VeLiveVideoProfile {
|
|
591
|
+
/** {zh}
|
|
592
|
+
* @platform android
|
|
593
|
+
* @brief 未知的视频配置类型。
|
|
594
|
+
*/
|
|
595
|
+
|
|
596
|
+
VeLiveVideoProfileUnknown = 0,
|
|
597
|
+
/** {zh}
|
|
598
|
+
* @platform android
|
|
599
|
+
* @brief H.264 编码配置,使用 Baseline 级别。
|
|
600
|
+
*/
|
|
601
|
+
|
|
602
|
+
VeLiveVideoProfileH264Baseline = 1,
|
|
603
|
+
/** {zh}
|
|
604
|
+
* @platform android
|
|
605
|
+
* @brief H.264 编码配置,使用 Main 级别。
|
|
606
|
+
*/
|
|
607
|
+
|
|
608
|
+
VeLiveVideoProfileH264Main = 2,
|
|
609
|
+
/** {zh}
|
|
610
|
+
* @platform android
|
|
611
|
+
* @brief H.264 编码配置,使用 High 级别。
|
|
612
|
+
*/
|
|
613
|
+
|
|
614
|
+
VeLiveVideoProfileH264High = 3,
|
|
615
|
+
/** {zh}
|
|
616
|
+
* @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 编码方式。
|
|
702
|
+
*/
|
|
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;
|
|
711
|
+
}
|
|
712
|
+
/** {zh}
|
|
713
|
+
* @detail keytype
|
|
714
|
+
* @brief 推流视频数据类型。
|
|
715
|
+
*/
|
|
716
|
+
|
|
717
|
+
export declare enum VeLiveVideoBufferType {
|
|
718
|
+
/** {zh}
|
|
719
|
+
* @brief 未知视频数据类型,当未指定输入视频数据的格式时,会默认为此类型。
|
|
720
|
+
*/
|
|
721
|
+
|
|
722
|
+
VeLiveVideoBufferTypeUnknown = 0,
|
|
723
|
+
/** {zh}
|
|
724
|
+
* @brief 视频数据类型为 OpenGL 纹理。
|
|
725
|
+
*/
|
|
726
|
+
|
|
727
|
+
VeLiveVideoBufferTypeTexture = 1,
|
|
728
|
+
/** {zh}
|
|
729
|
+
* @platform android
|
|
730
|
+
* @brief 视频数据类型为 ByteBuffer 类型。
|
|
731
|
+
*/
|
|
732
|
+
|
|
733
|
+
VeLiveVideoBufferTypeByteBuffer = 2,
|
|
734
|
+
/** {zh}
|
|
735
|
+
* @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}。
|
|
779
|
+
*/
|
|
780
|
+
|
|
781
|
+
getSampleRate(): VeLiveAudioSampleRate;
|
|
782
|
+
/** {zh}
|
|
783
|
+
* @detail api
|
|
784
|
+
* @brief 设置采集音频采样率。
|
|
785
|
+
* @return <br>推流音频采集参数配置对象,详情请参见 [VeLiveAudioCaptureConfiguration](#VeLiveAudioCaptureConfiguration)
|
|
786
|
+
* @param sampleRate 音频采样率,默认值为 VeLiveAudioSampleRate44100,详情请参见 [VeLiveAudioSampleRate](147521#VeLiveAudioSampleRate)。
|
|
787
|
+
*/
|
|
788
|
+
|
|
789
|
+
setSampleRate(sampleRate: VeLiveAudioSampleRate): VeLiveAudioCaptureConfiguration;
|
|
790
|
+
/** {zh}
|
|
791
|
+
* @detail api
|
|
792
|
+
* @brief 获取采集音频声道数。
|
|
793
|
+
* @return <br>
|
|
794
|
+
* 音频声道数,详情请参见 {@link #VeLiveAudioChannel VeLiveAudioChannel}。
|
|
795
|
+
*/
|
|
796
|
+
|
|
797
|
+
getChannel(): VeLiveAudioChannel;
|
|
798
|
+
/** {zh}
|
|
799
|
+
* @detail api
|
|
800
|
+
* @brief 设置采集音频声道数。
|
|
801
|
+
* @return <br>推流音频采集参数配置对象,详情请参见 [VeLiveAudioCaptureConfiguration](#VeLiveAudioCaptureConfiguration)。
|
|
802
|
+
* @param channel 音频声道数,默认值为 VeLiveAudioChannelStereo,详情请参见 {@link #VeLiveAudioChannel VeLiveAudioChannel}
|
|
803
|
+
*/
|
|
804
|
+
|
|
805
|
+
setChannel(channel: VeLiveAudioChannel): VeLiveAudioCaptureConfiguration;
|
|
806
|
+
}
|
|
807
|
+
/** {zh}
|
|
808
|
+
* @detail keytype
|
|
809
|
+
* @brief 音视频混流布局。包含了视频混流布局、音频混流布局和画布背景色等属性。
|
|
810
|
+
*/
|
|
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;
|
|
816
|
+
/** {zh}
|
|
817
|
+
* @brief 视频混流布局设置的数组,其中每个元素代表一路视频流的布局。详情请参见 {@link #VeLiveMixVideoLayout VeLiveMixVideoLayout}。
|
|
818
|
+
*/
|
|
819
|
+
|
|
820
|
+
get mixVideoStreams(): Array<VeLiveMixVideoLayout>;
|
|
821
|
+
set mixVideoStreams(value: Array<VeLiveMixVideoLayout>);
|
|
822
|
+
/** {zh}
|
|
823
|
+
* @brief 音频混流设置的数组,其中每个元素代表一路音频流的。详情请参见 [VeLiveMixAudioLayout](#VeLiveMixAudioLayout)。
|
|
824
|
+
*/
|
|
825
|
+
|
|
826
|
+
get mixAudioStreams(): Array<VeLiveMixAudioLayout>;
|
|
827
|
+
set mixAudioStreams(value: Array<VeLiveMixAudioLayout>);
|
|
828
|
+
/** {zh}
|
|
829
|
+
* @brief 视频混流画布的背景色设置,采用 #RRGGBB 格式。
|
|
830
|
+
*/
|
|
831
|
+
|
|
832
|
+
get backgroundColor(): string;
|
|
833
|
+
set backgroundColor(value: string);
|
|
834
|
+
}
|
|
835
|
+
/** {zh}
|
|
836
|
+
* @detail keytype
|
|
837
|
+
* @brief 推流音频采样率。
|
|
838
|
+
*/
|
|
839
|
+
|
|
840
|
+
export declare enum VeLiveAudioSampleRate {
|
|
841
|
+
/** {zh}
|
|
842
|
+
* @platform android
|
|
843
|
+
* @brief 8k 采样。
|
|
844
|
+
*/
|
|
845
|
+
|
|
846
|
+
VeLiveAudioSampleRate8000 = 8000,
|
|
847
|
+
/** {zh}
|
|
848
|
+
* @platform android
|
|
849
|
+
* @brief 16k 采样。
|
|
850
|
+
*/
|
|
851
|
+
|
|
852
|
+
VeLiveAudioSampleRate16000 = 16000,
|
|
853
|
+
/** {zh}
|
|
854
|
+
* @platform android
|
|
855
|
+
* @brief 32k 采样。
|
|
856
|
+
*/
|
|
857
|
+
|
|
858
|
+
VeLiveAudioSampleRate32000 = 32000,
|
|
859
|
+
/** {zh}
|
|
860
|
+
* @brief 44.1k 采样。
|
|
861
|
+
*/
|
|
862
|
+
|
|
863
|
+
VeLiveAudioSampleRate44100 = 44100,
|
|
864
|
+
/** {zh}
|
|
865
|
+
* @platform android
|
|
866
|
+
* @brief 48k 采样。
|
|
867
|
+
*/
|
|
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;
|
|
876
|
+
}
|
|
877
|
+
/** {zh}
|
|
878
|
+
* @detail keytype
|
|
879
|
+
* @brief 音量等级,用于评估和控制音频的响度。
|
|
880
|
+
*/
|
|
881
|
+
|
|
882
|
+
export declare enum VeLiveAudioPowerLevel {
|
|
883
|
+
/** {zh}
|
|
884
|
+
* @brief 无声,音量 ≤1db。
|
|
885
|
+
*/
|
|
886
|
+
|
|
887
|
+
VeLiveAudioPowerLevelSilent = 0,
|
|
888
|
+
/** {zh}
|
|
889
|
+
* @brief 安静,音量 15db 以下。
|
|
890
|
+
*/
|
|
891
|
+
|
|
892
|
+
VeLiveAudioPowerLevelQuiet = 1,
|
|
893
|
+
/** {zh}
|
|
894
|
+
* @brief 轻声,接近耳语音量,音量为 16db~30db 之间。
|
|
895
|
+
*/
|
|
896
|
+
|
|
897
|
+
VeLiveAudioPowerLevelLight = 2,
|
|
898
|
+
/** {zh}
|
|
899
|
+
* @brief 正常,音量适宜,类似正常对话的音量,音量为 30db~60db 之间。
|
|
900
|
+
*/
|
|
901
|
+
|
|
902
|
+
VeLiveAudioPowerLevelNormal = 3,
|
|
903
|
+
/** {zh}
|
|
904
|
+
* @brief 较大,音量较高,类似咖啡馆、餐厅的环境噪音,音量为 61db~85db 之间。
|
|
905
|
+
*/
|
|
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;
|
|
919
|
+
}
|
|
920
|
+
/** {zh}
|
|
921
|
+
* @detail keytype
|
|
922
|
+
* @brief 视频采集配置。
|
|
923
|
+
*/
|
|
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;
|
|
929
|
+
/** {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
|
|
943
|
+
*/
|
|
944
|
+
set ios_pixelFormat(value: $p_i.OSType);
|
|
945
|
+
/** {zh}
|
|
946
|
+
* @detail api
|
|
947
|
+
* @brief 获取采集视频宽度。
|
|
948
|
+
* @return <br>
|
|
949
|
+
* 采集视频宽度。
|
|
950
|
+
*/
|
|
951
|
+
|
|
952
|
+
getWidth(): number;
|
|
953
|
+
/** {zh}
|
|
954
|
+
* @detail api
|
|
955
|
+
* @brief 设置采集视频宽度。
|
|
956
|
+
* @return <br>推流视频采集参数配置对象,详情请参见 [VeLiveVideoCaptureConfiguration](#VeLiveVideoCaptureConfiguration)。
|
|
957
|
+
* @param width 采集视频宽度,默认值为 720。
|
|
958
|
+
*/
|
|
959
|
+
|
|
960
|
+
setWidth(width: number): VeLiveVideoCaptureConfiguration;
|
|
961
|
+
/** {zh}
|
|
962
|
+
* @detail api
|
|
963
|
+
* @brief 获取采集视频高度。
|
|
964
|
+
* @return <br>
|
|
965
|
+
* 采集视频高度。
|
|
966
|
+
*/
|
|
967
|
+
|
|
968
|
+
getHeight(): number;
|
|
969
|
+
/** {zh}
|
|
970
|
+
* @detail api
|
|
971
|
+
* @brief 设置采集视频高度。
|
|
972
|
+
* @return <br>推流视频采集参数配置对象,详情请参见 [VeLiveVideoCaptureConfiguration](#VeLiveVideoCaptureConfiguration)。
|
|
973
|
+
* @param height 采集视频高度,默认值为 1280。
|
|
974
|
+
*/
|
|
975
|
+
|
|
976
|
+
setHeight(height: number): VeLiveVideoCaptureConfiguration;
|
|
977
|
+
/** {zh}
|
|
978
|
+
* @detail api
|
|
979
|
+
* @brief 获取采集视频帧率。
|
|
980
|
+
* @return <br>
|
|
981
|
+
* 采集视频帧率。
|
|
982
|
+
*/
|
|
983
|
+
|
|
984
|
+
getFps(): number;
|
|
985
|
+
/** {zh}
|
|
986
|
+
* @detail api
|
|
987
|
+
* @brief 设置采集视频帧率。
|
|
988
|
+
* @return <br>推流视频采集参数配置对象,详情请参见 [VeLiveVideoCaptureConfiguration](#VeLiveVideoCaptureConfiguration)。
|
|
989
|
+
* @param fps 采集视频帧率,默认值为 15。
|
|
990
|
+
*/
|
|
991
|
+
|
|
992
|
+
setFps(fps: number): VeLiveVideoCaptureConfiguration;
|
|
993
|
+
}
|
|
994
|
+
/** {zh}
|
|
995
|
+
* @detail keytype
|
|
996
|
+
* @brief 视频帧的数据格式。
|
|
997
|
+
*/
|
|
998
|
+
|
|
999
|
+
export declare enum VeLivePixelFormat {
|
|
1000
|
+
/** {zh}
|
|
1001
|
+
* @brief 未知格式。
|
|
1002
|
+
*/
|
|
1003
|
+
|
|
1004
|
+
VeLivePixelFormatUnknown = 0,
|
|
1005
|
+
/** {zh}
|
|
1006
|
+
* @brief I420 格式。
|
|
1007
|
+
*/
|
|
1008
|
+
|
|
1009
|
+
VeLivePixelFormatI420 = 1,
|
|
1010
|
+
/** {zh}
|
|
1011
|
+
* @brief NV12 格式。
|
|
1012
|
+
*/
|
|
1013
|
+
|
|
1014
|
+
VeLivePixelFormatNV12 = 2,
|
|
1015
|
+
/** {zh}
|
|
1016
|
+
* @brief NV21 格式。
|
|
1017
|
+
*/
|
|
1018
|
+
|
|
1019
|
+
VeLivePixelFormatNV21 = 3,
|
|
1020
|
+
/** {zh}
|
|
1021
|
+
* @brief 2D 纹理格式。
|
|
1022
|
+
*/
|
|
1023
|
+
|
|
1024
|
+
VeLivePixelFormat2DTexture = 4,
|
|
1025
|
+
/** {zh}
|
|
1026
|
+
* @platform android
|
|
1027
|
+
* @brief OES 纹理格式。
|
|
1028
|
+
*/
|
|
1029
|
+
|
|
1030
|
+
VeLivePixelFormatOesTexture = 5,
|
|
1031
|
+
/** {zh}
|
|
1032
|
+
* @platform ios
|
|
1033
|
+
* @brief RAGBA 格式。
|
|
1034
|
+
*/
|
|
1035
|
+
|
|
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 {
|
|
1050
|
+
/** {zh}
|
|
1051
|
+
* @brief 初始状态。
|
|
1052
|
+
*/
|
|
1053
|
+
|
|
1054
|
+
VeLivePushStatusNone = 0,
|
|
1055
|
+
/** {zh}
|
|
1056
|
+
* @brief 正在连接服务器。
|
|
1057
|
+
*/
|
|
1058
|
+
|
|
1059
|
+
VeLivePushStatusConnecting = 1,
|
|
1060
|
+
/** {zh}
|
|
1061
|
+
* @brief 连接服务器成功。
|
|
1062
|
+
*/
|
|
1063
|
+
|
|
1064
|
+
VeLivePushStatusConnectSuccess = 2,
|
|
1065
|
+
/** {zh}
|
|
1066
|
+
* @brief 重连服务器中。
|
|
1067
|
+
*/
|
|
1068
|
+
|
|
1069
|
+
VeLivePushStatusReconnecting = 3,
|
|
1070
|
+
/** {zh}
|
|
1071
|
+
* @brief 推流连接被终止。
|
|
1072
|
+
*/
|
|
1073
|
+
|
|
1074
|
+
VeLivePushStatusConnectStop = 4,
|
|
1075
|
+
/** {zh}
|
|
1076
|
+
* @brief 推流连接失败。
|
|
1077
|
+
*/
|
|
1078
|
+
|
|
1079
|
+
VeLivePushStatusConnectError = 5,
|
|
1080
|
+
/** {zh}
|
|
1081
|
+
* @brief 与服务器断开连接。
|
|
1082
|
+
*/
|
|
1083
|
+
|
|
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 {
|
|
1098
|
+
/** {zh}
|
|
1099
|
+
* @brief 360P 分辨率。档位详细配置如下所示。
|
|
1100
|
+
* - 横屏分辨率:640x360
|
|
1101
|
+
* - 竖屏分辨率:360x640
|
|
1102
|
+
* - 帧率:15fps
|
|
1103
|
+
* - 目标码率:500kbps
|
|
1104
|
+
* - 最小码率:250kbps
|
|
1105
|
+
* - 最大码率:800kbps
|
|
1106
|
+
*/
|
|
1107
|
+
|
|
1108
|
+
VeLiveVideoResolution360P = 0,
|
|
1109
|
+
/** {zh}
|
|
1110
|
+
* @brief 480P 分辨率。档位详细配置如下所示。
|
|
1111
|
+
* - 横屏分辨率:864x480
|
|
1112
|
+
* - 竖屏分辨率:480x864
|
|
1113
|
+
* - 帧率:15fps
|
|
1114
|
+
* - 目标码率:800kbps
|
|
1115
|
+
* - 最小码率:320kbps
|
|
1116
|
+
* - 最大码率:1266kbps
|
|
1117
|
+
*/
|
|
1118
|
+
|
|
1119
|
+
VeLiveVideoResolution480P = 1,
|
|
1120
|
+
/** {zh}
|
|
1121
|
+
* @brief 540P 分辨率。档位详细配置如下所示。
|
|
1122
|
+
* - 横屏 960x540
|
|
1123
|
+
* - 竖屏 540x960
|
|
1124
|
+
* - 帧率:15fps
|
|
1125
|
+
* - 目标码率:1000kbps
|
|
1126
|
+
* - 最小码率:500kbps
|
|
1127
|
+
* - 最大码率:1520kbps
|
|
1128
|
+
*/
|
|
1129
|
+
|
|
1130
|
+
VeLiveVideoResolution540P = 2,
|
|
1131
|
+
/** {zh}
|
|
1132
|
+
* @brief 720P 分辨率。档位详细配置如下所示。
|
|
1133
|
+
* - 横屏 1280x720
|
|
1134
|
+
* - 竖屏 720x1280
|
|
1135
|
+
* - 帧率:15fps
|
|
1136
|
+
* - 目标码率:1200kbps
|
|
1137
|
+
* - 最小码率:800kbps
|
|
1138
|
+
* - 最大码率:1900kbps
|
|
1139
|
+
*/
|
|
1140
|
+
|
|
1141
|
+
VeLiveVideoResolution720P = 3,
|
|
1142
|
+
/** {zh}
|
|
1143
|
+
* @brief 1080P 分辨率。档位详细配置如下所示。
|
|
1144
|
+
* - 横屏 1920x1080
|
|
1145
|
+
* - 竖屏 1080x1920
|
|
1146
|
+
* - 帧率:20 fps
|
|
1147
|
+
* - 目标码率:2500kbps
|
|
1148
|
+
* - 最小码率:1000kbps
|
|
1149
|
+
* - 最大码率:3800kbps
|
|
1150
|
+
*/
|
|
1151
|
+
|
|
1152
|
+
VeLiveVideoResolution1080P = 4,
|
|
1153
|
+
/** {zh}
|
|
1154
|
+
* @brief 屏幕推流分辨率。档位详细配置如下所示。
|
|
1155
|
+
* - 帧率:15fps
|
|
1156
|
+
* - 目标码率:2500kbps
|
|
1157
|
+
* - 最小码率:1000kbps
|
|
1158
|
+
* - 最大码率:3800kbps
|
|
1159
|
+
*/
|
|
1160
|
+
|
|
1161
|
+
VeLiveVideoResolutionScreen = 10
|
|
1162
|
+
}
|
|
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;
|
|
1168
|
+
}
|
|
1169
|
+
/** {zh}
|
|
1170
|
+
* @detail keytype
|
|
1171
|
+
* @brief 网络质量/状态。
|
|
1172
|
+
*/
|
|
1173
|
+
|
|
1174
|
+
export declare enum VeLiveNetworkQuality {
|
|
1175
|
+
/** {zh}
|
|
1176
|
+
* @brief 未查询到网络状态。
|
|
1177
|
+
*/
|
|
1178
|
+
|
|
1179
|
+
VeLiveNetworkQualityUnknown = 0,
|
|
1180
|
+
/** {zh}
|
|
1181
|
+
* @brief 网络差。
|
|
1182
|
+
*/
|
|
1183
|
+
|
|
1184
|
+
VeLiveNetworkQualityBad = 1,
|
|
1185
|
+
/** {zh}
|
|
1186
|
+
* @brief 网络一般。
|
|
1187
|
+
*/
|
|
1188
|
+
|
|
1189
|
+
VeLiveNetworkQualityPoor = 2,
|
|
1190
|
+
/** {zh}
|
|
1191
|
+
* @brief 网络状态佳。
|
|
1192
|
+
*/
|
|
1193
|
+
|
|
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 {
|
|
1208
|
+
/** {zh}
|
|
1209
|
+
* @platform android
|
|
1210
|
+
* @brief 输出 VERBOSE、DEBUG、INFO、WARNING 和 ERROR 级别的日志。
|
|
1211
|
+
*/
|
|
1212
|
+
|
|
1213
|
+
VeLiveLogLevelVerbose = "AVLog.VERBOSE",
|
|
1214
|
+
/** {zh}
|
|
1215
|
+
* @platform android
|
|
1216
|
+
* @brief 输出 DEBUG、INFO、WARNING 和 ERROR 级别的日志。
|
|
1217
|
+
*/
|
|
1218
|
+
|
|
1219
|
+
VeLiveLogLevelDebug = "AVLog.DEBUG",
|
|
1220
|
+
/** {zh}
|
|
1221
|
+
* @platform android
|
|
1222
|
+
* @brief 输出 INFO、WARNING 和 ERROR 级别的日志。
|
|
1223
|
+
*/
|
|
1224
|
+
|
|
1225
|
+
VeLiveLogLevelInfo = "AVLog.INFO",
|
|
1226
|
+
/** {zh}
|
|
1227
|
+
* @platform android
|
|
1228
|
+
* @brief 输出 WARNING 和 ERROR 级别的日志。
|
|
1229
|
+
*/
|
|
1230
|
+
|
|
1231
|
+
VeLiveLogLevelWarn = "AVLog.WARN",
|
|
1232
|
+
/** {zh}
|
|
1233
|
+
* @platform android
|
|
1234
|
+
* @brief 输出 ERROR 级别的日志。
|
|
1235
|
+
*/
|
|
1236
|
+
|
|
1237
|
+
VeLiveLogLevelError = "AVLog.ERROR",
|
|
1238
|
+
/** {zh}
|
|
1239
|
+
* @platform android
|
|
1240
|
+
* @brief 关闭日志。
|
|
1241
|
+
*/
|
|
1242
|
+
|
|
1243
|
+
VeLiveLogLevelNone = "AVLog.NONE",
|
|
1244
|
+
/** {zh}
|
|
1245
|
+
* @platform ios
|
|
1246
|
+
* @brief 输出 VERBOSE、DEBUG、INFO、WARNING 和 ERROR 级别的日志。
|
|
1247
|
+
*/
|
|
1248
|
+
|
|
1249
|
+
VeLivePusherLogLevelVerbose = 0,
|
|
1250
|
+
/** {zh}
|
|
1251
|
+
* @platform ios
|
|
1252
|
+
* @brief 输出 DEBUG、INFO、WARNING 和 ERROR 级别的日志。
|
|
1253
|
+
*/
|
|
1254
|
+
|
|
1255
|
+
VeLivePusherLogLevelDebug = 1,
|
|
1256
|
+
/** {zh}
|
|
1257
|
+
* @platform ios
|
|
1258
|
+
* @brief 输出 INFO、WARNING 和 ERROR 级别的日志。
|
|
1259
|
+
*/
|
|
1260
|
+
|
|
1261
|
+
VeLivePusherLogLevelInfo = 2,
|
|
1262
|
+
/** {zh}
|
|
1263
|
+
* @platform ios
|
|
1264
|
+
* @brief 输出 WARNING 和 ERROR 级别的日志。
|
|
1265
|
+
*/
|
|
1266
|
+
|
|
1267
|
+
VeLivePusherLogLevelWarn = 3,
|
|
1268
|
+
/** {zh}
|
|
1269
|
+
* @platform ios
|
|
1270
|
+
* @brief 输出 ERROR 级别的日志。
|
|
1271
|
+
*/
|
|
1272
|
+
|
|
1273
|
+
VeLivePusherLogLevelError = 4,
|
|
1274
|
+
/** {zh}
|
|
1275
|
+
* @platform ios
|
|
1276
|
+
* @brief 关闭日志。
|
|
1277
|
+
*/
|
|
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;
|
|
1286
|
+
}
|
|
1287
|
+
/** {zh}
|
|
1288
|
+
* @platform android
|
|
1289
|
+
* @detail keytype
|
|
1290
|
+
* @brief 推流音频位深度。
|
|
1291
|
+
*/
|
|
1292
|
+
|
|
1293
|
+
export declare enum VeLiveAudioBitDepth {
|
|
1294
|
+
/** {zh}
|
|
1295
|
+
* @platform android
|
|
1296
|
+
* @brief 16bit 位深度。
|
|
1297
|
+
*/
|
|
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;
|
|
1306
|
+
}
|
|
1307
|
+
/** {zh}
|
|
1308
|
+
* @detail keytype
|
|
1309
|
+
* @brief 音频混流设置。
|
|
1310
|
+
*/
|
|
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);
|
|
1322
|
+
/** {zh}
|
|
1323
|
+
* @detail api
|
|
1324
|
+
* @brief 混流音频的音量,范围为 [0.0,4.0]。当您将 [VeLiveAudioMixType](147521#VeLiveAudioMixType) 设置为 `VeLiveAudioMixPlayAndPush` 时,该变量同时控制混流音频在拉流端和本地的播放音量。
|
|
1325
|
+
*/
|
|
1326
|
+
|
|
1327
|
+
get volume(): number;
|
|
1328
|
+
set volume(value: number);
|
|
1329
|
+
/** {zh}
|
|
1330
|
+
* @platform android
|
|
1331
|
+
* @detail api
|
|
1332
|
+
* @brief 更新音频混流设置。
|
|
1333
|
+
* @param other 新的音频混流设置,详情请参见 [VeLiveMixAudioLayout](#VeLiveMixAudioLayout)。
|
|
1334
|
+
*/
|
|
1335
|
+
|
|
1336
|
+
android_update(other: VeLiveMixAudioLayout): void;
|
|
1337
|
+
}
|
|
1338
|
+
/** {zh}
|
|
1339
|
+
* @detail keytype
|
|
1340
|
+
* @brief 推流横竖屏模式。
|
|
1341
|
+
*/
|
|
1342
|
+
|
|
1343
|
+
export declare enum VeLiveOrientation {
|
|
1344
|
+
/** {zh}
|
|
1345
|
+
* @brief 横屏模式。
|
|
1346
|
+
*/
|
|
1347
|
+
|
|
1348
|
+
VeLiveOrientationLandscape = 0,
|
|
1349
|
+
/** {zh}
|
|
1350
|
+
* @brief 竖屏模式。
|
|
1351
|
+
*/
|
|
1352
|
+
|
|
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;
|
|
1372
|
+
}
|
|
1373
|
+
/** {zh}
|
|
1374
|
+
* @detail keytype
|
|
1375
|
+
* @brief 视频镜像类型。
|
|
1376
|
+
*/
|
|
1377
|
+
|
|
1378
|
+
export declare enum VeLiveVideoMirrorType {
|
|
1379
|
+
/** {zh}
|
|
1380
|
+
* @brief 对采集画面的镜像控制。开启时,预览和推流画面都会呈现为镜像状态。
|
|
1381
|
+
*/
|
|
1382
|
+
|
|
1383
|
+
VeLiveVideoMirrorCapture = 0,
|
|
1384
|
+
/** {zh}
|
|
1385
|
+
* @brief 对预览画面的镜像控制。开启时,只有主播预览画面呈现镜像状态。
|
|
1386
|
+
*/
|
|
1387
|
+
|
|
1388
|
+
VeLiveVideoMirrorPreview = 1,
|
|
1389
|
+
/** {zh}
|
|
1390
|
+
* @brief 对编码前画面的镜像控制。开启时,主播推流画面呈现镜像状态。
|
|
1391
|
+
*/
|
|
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;
|
|
1400
|
+
}
|
|
1401
|
+
/** {zh}
|
|
1402
|
+
* @hidden
|
|
1403
|
+
* @detail keytype
|
|
1404
|
+
* @brief 日志配置。
|
|
1405
|
+
*/
|
|
1406
|
+
|
|
1407
|
+
export declare class VeLivePusherLogConfig {
|
|
1408
|
+
protected _instance: any;
|
|
1409
|
+
protected __init(...args: any[]): void;
|
|
1410
|
+
protected __new_instance(...args: any[]): $p_a.VeLivePusherLogConfig | $p_i.VeLivePusherLogConfig;
|
|
1411
|
+
/** {zh}
|
|
1412
|
+
* @brief 日志文件保存路径。
|
|
1413
|
+
*/
|
|
1414
|
+
|
|
1415
|
+
get logPath(): string;
|
|
1416
|
+
set logPath(value: string);
|
|
1417
|
+
/** {zh}
|
|
1418
|
+
* @brief 日志文件整体最大尺寸,单位为 M,默认值为 100。
|
|
1419
|
+
*/
|
|
1420
|
+
|
|
1421
|
+
get maxLogSizeM(): number;
|
|
1422
|
+
set maxLogSizeM(value: number);
|
|
1423
|
+
/** {zh}
|
|
1424
|
+
* @brief 单个日志文件最大尺寸,单位为 M,默认值为 2。
|
|
1425
|
+
*/
|
|
1426
|
+
|
|
1427
|
+
get singleLogSizeM(): number;
|
|
1428
|
+
set singleLogSizeM(value: number);
|
|
1429
|
+
/** {zh}
|
|
1430
|
+
* @brief 日志文件有效期,单位为 s,默认值为 604,800,即 7 天。
|
|
1431
|
+
*/
|
|
1432
|
+
|
|
1433
|
+
get logExpireTimeS(): number;
|
|
1434
|
+
set logExpireTimeS(value: number);
|
|
1435
|
+
/** {zh}
|
|
1436
|
+
* @brief 是否开启线程轮询,默认值为 `1` <br>
|
|
1437
|
+
* - `0`:关闭;
|
|
1438
|
+
* - `1`:开启。
|
|
1439
|
+
*/
|
|
1440
|
+
|
|
1441
|
+
get enableThreadLoop(): number;
|
|
1442
|
+
set enableThreadLoop(value: number);
|
|
1443
|
+
/** {zh}
|
|
1444
|
+
* @platform android
|
|
1445
|
+
* @brief 日志是否打印到控制台输出,默认为不打印。
|
|
1446
|
+
*/
|
|
1447
|
+
|
|
1448
|
+
get android_enableStdout(): $p_a.int;
|
|
1449
|
+
set android_enableStdout(value: $p_a.int);
|
|
1450
|
+
/** {zh}
|
|
1451
|
+
* @brief 日志是否打印到文件输出,默认为打印。
|
|
1452
|
+
*/
|
|
1453
|
+
|
|
1454
|
+
get enableLogFile(): number;
|
|
1455
|
+
set enableLogFile(value: number);
|
|
1456
|
+
/** {zh}
|
|
1457
|
+
* @brief 日志级别,默认值为 `kVolcLogLevelWarning`。
|
|
1458
|
+
*/
|
|
1459
|
+
|
|
1460
|
+
get logLevel(): number;
|
|
1461
|
+
set logLevel(value: number);
|
|
1462
|
+
/** {zh}
|
|
1463
|
+
* @brief 日志刷新频率,单位为 ms,默认值为 120,000,即 2 分钟。
|
|
1464
|
+
*/
|
|
1465
|
+
|
|
1466
|
+
get intervalMs(): number;
|
|
1467
|
+
set intervalMs(value: number);
|
|
1468
|
+
/** {zh}
|
|
1469
|
+
* @brief 日志上报路径。
|
|
1470
|
+
*/
|
|
1471
|
+
|
|
1472
|
+
get queryUrl(): string;
|
|
1473
|
+
set queryUrl(value: string);
|
|
1474
|
+
/** {zh}
|
|
1475
|
+
* @platform android
|
|
1476
|
+
* @brief 设备唯一 ID。
|
|
1477
|
+
*/
|
|
1478
|
+
|
|
1479
|
+
get android_device_id(): string;
|
|
1480
|
+
set android_device_id(value: string);
|
|
1481
|
+
/** {zh}
|
|
1482
|
+
* @platform android
|
|
1483
|
+
* @brief HTTP 请求超时时间。取值范围:大于 0。
|
|
1484
|
+
*/
|
|
1485
|
+
|
|
1486
|
+
get android_httpTimeoutMS(): $p_a.int;
|
|
1487
|
+
set android_httpTimeoutMS(value: $p_a.int);
|
|
1488
|
+
/** {zh}
|
|
1489
|
+
* @platform android
|
|
1490
|
+
* @brief 文件上传超时时间。取值范围:大于 0。
|
|
1491
|
+
*/
|
|
1492
|
+
|
|
1493
|
+
get android_httpUploadFileTimeoutMS(): $p_a.int;
|
|
1494
|
+
set android_httpUploadFileTimeoutMS(value: $p_a.int);
|
|
1495
|
+
}
|
|
1496
|
+
/** {zh}
|
|
1497
|
+
* @detail keytype
|
|
1498
|
+
* @brief 推流本地文件录制配置。
|
|
1499
|
+
*/
|
|
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;
|
|
1505
|
+
/** {zh}
|
|
1506
|
+
* @detail api
|
|
1507
|
+
* @brief 获取录制视频宽度。
|
|
1508
|
+
* @return <br>
|
|
1509
|
+
* 录制视频宽度。
|
|
1510
|
+
*/
|
|
1511
|
+
|
|
1512
|
+
getWidth(): number;
|
|
1513
|
+
/** {zh}
|
|
1514
|
+
* @detail api
|
|
1515
|
+
* @brief 设置录制视频宽度。
|
|
1516
|
+
* @param width 录制视频宽度,默认值为 360。
|
|
1517
|
+
* @return <br>推流本地文件录制配置对象,详情请参见 [VeLiveFileRecorderConfiguration](#VeLiveFileRecorderConfiguration)。
|
|
1518
|
+
*/
|
|
1519
|
+
|
|
1520
|
+
setWidth(width: number): VeLiveFileRecorderConfiguration;
|
|
1521
|
+
/** {zh}
|
|
1522
|
+
* @detail api
|
|
1523
|
+
* @brief 获取录制视频高度。
|
|
1524
|
+
* @return <br>
|
|
1525
|
+
* 录制视频高度。
|
|
1526
|
+
*/
|
|
1527
|
+
|
|
1528
|
+
getHeight(): number;
|
|
1529
|
+
/** {zh}
|
|
1530
|
+
* @detail api
|
|
1531
|
+
* @brief 设置录制视频高度。
|
|
1532
|
+
* @return <br>推流本地文件录制配置对象,详情请参见 [VeLiveFileRecorderConfiguration](#VeLiveFileRecorderConfiguration)。
|
|
1533
|
+
* @param height 录制视频宽度,默认值为 640。
|
|
1534
|
+
*/
|
|
1535
|
+
|
|
1536
|
+
setHeight(height: number): VeLiveFileRecorderConfiguration;
|
|
1537
|
+
/** {zh}
|
|
1538
|
+
* @detail api
|
|
1539
|
+
* @brief 获取录制视频帧率。
|
|
1540
|
+
* @return <br>
|
|
1541
|
+
* 录制视频帧率。
|
|
1542
|
+
*/
|
|
1543
|
+
|
|
1544
|
+
getFps(): number;
|
|
1545
|
+
/** {zh}
|
|
1546
|
+
* @detail api
|
|
1547
|
+
* @brief 设置录制视频帧率。
|
|
1548
|
+
* @return <br>推流本地文件录制配置对象,详情请参见 [VeLiveFileRecorderConfiguration](#VeLiveFileRecorderConfiguration)。
|
|
1549
|
+
* @param fps 录制视频帧率,默认值为 15。
|
|
1550
|
+
*/
|
|
1551
|
+
|
|
1552
|
+
setFps(fps: number): VeLiveFileRecorderConfiguration;
|
|
1553
|
+
/** {zh}
|
|
1554
|
+
* @detail api
|
|
1555
|
+
* @brief 获取录制视频码率。
|
|
1556
|
+
* @return <br>
|
|
1557
|
+
* 录制视频码率。
|
|
1558
|
+
*/
|
|
1559
|
+
|
|
1560
|
+
getBitrate(): number;
|
|
1561
|
+
/** {zh}
|
|
1562
|
+
* @detail api
|
|
1563
|
+
* @brief 设置录制视频码率。
|
|
1564
|
+
* @return <br>推流本地文件录制配置对象,详情请参见 [VeLiveFileRecorderConfiguration](#VeLiveFileRecorderConfiguration)。
|
|
1565
|
+
* @param bitrate 录制视频码率,单位为 kbps,默认值为 2000。
|
|
1566
|
+
*/
|
|
1567
|
+
|
|
1568
|
+
setBitrate(bitrate: number): VeLiveFileRecorderConfiguration;
|
|
1569
|
+
}
|
|
1570
|
+
/** {zh}
|
|
1571
|
+
* @detail keytype
|
|
1572
|
+
* @brief 视频混流设置。
|
|
1573
|
+
*/
|
|
1574
|
+
|
|
1575
|
+
export declare class VeLiveMixVideoLayout {
|
|
1576
|
+
protected _instance: any;
|
|
1577
|
+
protected __init(...args: any[]): void;
|
|
1578
|
+
protected __new_instance(...args: any[]): $p_a.VeLiveMixVideoLayout | $p_i.VeLiveMixVideoLayout;
|
|
1579
|
+
/** {zh}
|
|
1580
|
+
* @brief 视频流 ID,唯一标识,用于区分不同的视频流。
|
|
1581
|
+
*/
|
|
1582
|
+
|
|
1583
|
+
get streamId(): number;
|
|
1584
|
+
set streamId(value: number);
|
|
1585
|
+
/** {zh}
|
|
1586
|
+
* @brief 视频流对应区域左上角的横坐标,该坐标是相对整体画面的归一化比例,取值的范围为 [0.0,1.0]。
|
|
1587
|
+
*/
|
|
1588
|
+
|
|
1589
|
+
get x(): number;
|
|
1590
|
+
set x(value: number);
|
|
1591
|
+
/** {zh}
|
|
1592
|
+
* @brief 视频流对应区域左上角的纵坐标,该坐标是相对整体画面的归一化比例,取值的范围为 [0.0,1.0]。
|
|
1593
|
+
*/
|
|
1594
|
+
|
|
1595
|
+
get y(): number;
|
|
1596
|
+
set y(value: number);
|
|
1597
|
+
/** {zh}
|
|
1598
|
+
* @brief 视频流对应区域宽度,该宽度是相对整体画面的归一化比例,取值的范围为 [0.0,1.0]。
|
|
1599
|
+
*/
|
|
1600
|
+
|
|
1601
|
+
get width(): number;
|
|
1602
|
+
set width(value: number);
|
|
1603
|
+
/** {zh}
|
|
1604
|
+
* @brief 视频流对应区域高度,该高度是相对整体画面的归一化比例,取值的范围为 [0.0,1.0]。
|
|
1605
|
+
*/
|
|
1606
|
+
|
|
1607
|
+
get height(): number;
|
|
1608
|
+
set height(value: number);
|
|
1609
|
+
/** {zh}
|
|
1610
|
+
* @brief 视频流在混流中的透明度,取值范围为 [0.0,1.0],取值 0.0 表示全透明,取值 1.0 表示不透明。
|
|
1611
|
+
*/
|
|
1612
|
+
|
|
1613
|
+
get alpha(): number;
|
|
1614
|
+
set alpha(value: number);
|
|
1615
|
+
/** {zh}
|
|
1616
|
+
* @brief 视频流在混流中的层级。取值范围为 [0,100],取值 0 表示最底层,取值越大,层级越高。
|
|
1617
|
+
*/
|
|
1618
|
+
|
|
1619
|
+
get zOrder(): number;
|
|
1620
|
+
set zOrder(value: number);
|
|
1621
|
+
/** {zh}
|
|
1622
|
+
* @brief 视频流的渲染模式。详情请参见 {@link #VeLivePusherRenderMode VeLivePusherRenderMode}。
|
|
1623
|
+
*/
|
|
1624
|
+
|
|
1625
|
+
get renderMode(): VeLivePusherRenderMode;
|
|
1626
|
+
set renderMode(value: VeLivePusherRenderMode);
|
|
1627
|
+
/** {zh}
|
|
1628
|
+
* @platform android
|
|
1629
|
+
* @detail api
|
|
1630
|
+
* @brief 更新视频混流设置。
|
|
1631
|
+
* @param other 新的视频混流设置,详情请参见 [VeLiveMixVideoLayout](147521#VeLiveMixVideoLayout)。
|
|
1632
|
+
*/
|
|
1633
|
+
|
|
1634
|
+
android_update(other: VeLiveMixVideoLayout): void;
|
|
1635
|
+
}
|
|
1636
|
+
/** {zh}
|
|
1637
|
+
* @detail keytype
|
|
1638
|
+
* @brief 视频特效许可证配置。
|
|
1639
|
+
*/
|
|
1640
|
+
|
|
1641
|
+
export declare class VeLiveVideoEffectLicenseConfiguration {
|
|
1642
|
+
/** {zh}
|
|
1643
|
+
* @platform android
|
|
1644
|
+
* @detail api
|
|
1645
|
+
* @brief 初始化配置为本地验证模式。
|
|
1646
|
+
* @return <br>返回 VeLiveVideoEffectLicenseConfiguration 类的实例,该实例使用指定的本地路径进行许可证验证。
|
|
1647
|
+
* @param path 视频特效许可证的本地缓存路径。可通过 [getPath](#VeLiveVideoEffectLicenseConfiguration-getpath) 获取。
|
|
1648
|
+
*/
|
|
1649
|
+
|
|
1650
|
+
static android_create_String(path: string): VeLiveVideoEffectLicenseConfiguration;
|
|
1651
|
+
/** {zh}
|
|
1652
|
+
* @platform android
|
|
1653
|
+
* @detail api
|
|
1654
|
+
* @brief 初始化配置为在线验证模式。
|
|
1655
|
+
* @return <br>返回 VeLiveVideoEffectLicenseConfiguration 类的实例,该实例使用指定的 key、secret 和 url 进行在线许可证验证。
|
|
1656
|
+
* @param key 视频特效许可证的在线认证 key。可通过 [getKey](#VeLiveVideoEffectLicenseConfiguration-getkey) 获取。
|
|
1657
|
+
* @param secret 视频特效许可证的在线认证 secret。可通过 [getSecret](#VeLiveVideoEffectLicenseConfiguration-getsecret) 获取。
|
|
1658
|
+
* @param url 视频特效许可证的在线认证地址,如果传入 `null`,可通过 [getUrl](147521#VeLiveVideoEffectLicenseConfiguration-geturl) 获取在线认证地址。
|
|
1659
|
+
*/
|
|
1660
|
+
|
|
1661
|
+
static android_create_String$String$String(key: string, secret: string, url: string): VeLiveVideoEffectLicenseConfiguration;
|
|
1662
|
+
protected _instance: any;
|
|
1663
|
+
protected __init(...args: any[]): void;
|
|
1664
|
+
protected __new_instance(...args: any[]): $p_a.VeLiveVideoEffectLicenseConfiguration | $p_i.VeLiveVideoEffectLicenseConfiguration;
|
|
1665
|
+
/** {zh}
|
|
1666
|
+
* @detail api
|
|
1667
|
+
* @brief 获取视频特效许可证类型。
|
|
1668
|
+
* @return <br>
|
|
1669
|
+
* 视频特效许可证类型,许可证类型请参见 {@link #VeLiveVideoEffectLicenseType VeLiveVideoEffectLicenseType}。
|
|
1670
|
+
*/
|
|
1671
|
+
|
|
1672
|
+
getType(): VeLiveVideoEffectLicenseType;
|
|
1673
|
+
/** {zh}
|
|
1674
|
+
* @detail api
|
|
1675
|
+
* @brief 获取视频特效许可证的本地路径。当 {@link #VeLiveVideoEffectLicenseType VeLiveVideoEffectLicenseType} 为 `VeLiveVideoEffectLicenseTypeOffLine` 时,返回许可证文件的本地路径。
|
|
1676
|
+
* @return <br>
|
|
1677
|
+
* 视频特效许可证的本地路径。
|
|
1678
|
+
*/
|
|
1679
|
+
|
|
1680
|
+
getPath(): string;
|
|
1681
|
+
/** {zh}
|
|
1682
|
+
* @detail api
|
|
1683
|
+
* @brief 获取视频特效许可证的在线认证 key。当 {@link #VeLiveVideoEffectLicenseType VeLiveVideoEffectLicenseType} 为 `VeLiveVideoEffectLicenseTypeOnLine` 时,返回在线认证的 key。
|
|
1684
|
+
* @return <br>
|
|
1685
|
+
* 视频特效许可证的在线认证 key。
|
|
1686
|
+
*/
|
|
1687
|
+
|
|
1688
|
+
getKey(): string;
|
|
1689
|
+
/** {zh}
|
|
1690
|
+
* @detail api
|
|
1691
|
+
* @brief 获取视频特效许可证的在线认证 secret。当 {@link #VeLiveVideoEffectLicenseType VeLiveVideoEffectLicenseType} 为 `VeLiveVideoEffectLicenseTypeOnLine` 时,返回在线认证的 secret。
|
|
1692
|
+
* @return <br>
|
|
1693
|
+
* 视频特效许可证的在线认证 secret。
|
|
1694
|
+
*/
|
|
1695
|
+
|
|
1696
|
+
getSecret(): string;
|
|
1697
|
+
/** {zh}
|
|
1698
|
+
* @detail api
|
|
1699
|
+
* @brief 获取视频特效许可证的在线认证地址。当 {@link #VeLiveVideoEffectLicenseType VeLiveVideoEffectLicenseType} 为 `VeLiveVideoEffectLicenseTypeOnLine` 时,返回在线认证地址。
|
|
1700
|
+
* @return <br>
|
|
1701
|
+
* 视频特效许可证的在线认证地址。
|
|
1702
|
+
*/
|
|
1703
|
+
|
|
1704
|
+
getUrl(): string;
|
|
1705
|
+
/** {zh}
|
|
1706
|
+
* @platform ios
|
|
1707
|
+
* @detail api
|
|
1708
|
+
* @brief 初始化配置为本地验证模式。
|
|
1709
|
+
* @param path 视频特效许可证的本地缓存路径。可通过 {@link #path path} 获取
|
|
1710
|
+
* @return <br>
|
|
1711
|
+
* 返回 {@link #VeLiveVideoEffectLicenseConfiguration VeLiveVideoEffectLicenseConfiguration} 类的实例,该实例使用指定的本地路径进行许可证验证。
|
|
1712
|
+
*/
|
|
1713
|
+
|
|
1714
|
+
ios_initWithPath(path: string): this;
|
|
1715
|
+
/** {zh}
|
|
1716
|
+
* @platform ios
|
|
1717
|
+
* @detail api
|
|
1718
|
+
* @brief 初始化配置为在线验证模式。
|
|
1719
|
+
* @return <br>
|
|
1720
|
+
* 返回 {@link #VeLiveVideoEffectLicenseConfiguration VeLiveVideoEffectLicenseConfiguration} 类的实例,该实例使用指定的 key、secret 和 url 进行在线许可证验证。
|
|
1721
|
+
* @param key 视频特效许可证的在线认证 key,可通过 [key](155321#VeLiveVideoEffectLicenseConfiguration-key) 获取。
|
|
1722
|
+
* @param secret 视频特效许可证的在线认证 secret,可通过 [secret](155321#VeLiveVideoEffectLicenseConfiguration-secret) 获取。
|
|
1723
|
+
* @param url 视频特效许可证的在线认证地址,如果传入 nil,会使用默认 url,可通过 [url](155321#VeLiveVideoEffectLicenseConfiguration-url) 获取在线认证地址。
|
|
1724
|
+
*/
|
|
1725
|
+
|
|
1726
|
+
ios_initWithKey(key: string, secret: string, url: string): this;
|
|
1727
|
+
}
|
|
1728
|
+
/** {zh}
|
|
1729
|
+
* @detail keytype
|
|
1730
|
+
* @brief 音频帧来源。
|
|
1731
|
+
*/
|
|
1732
|
+
|
|
1733
|
+
export declare enum VeLiveAudioFrameSource {
|
|
1734
|
+
/** {zh}
|
|
1735
|
+
* @brief 采集到的原始音频帧。这是从设备的麦克风或其他音频输入源获取的音频帧。
|
|
1736
|
+
*/
|
|
1737
|
+
|
|
1738
|
+
VeLiveAudioFrameSourceCapture = "1<<0",
|
|
1739
|
+
/** {zh}
|
|
1740
|
+
* @brief 编码前的音频帧。这是通过各种处理(例如噪音消除、回声消除等)后,准备进行编码的音频帧。
|
|
1741
|
+
*/
|
|
1742
|
+
|
|
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;
|
|
1750
|
+
}
|
|
1751
|
+
/** {zh}
|
|
1752
|
+
* @detail keytype
|
|
1753
|
+
* @brief 推流音频编码参数。
|
|
1754
|
+
*/
|
|
1755
|
+
|
|
1756
|
+
export declare class VeLiveAudioEncoderConfiguration {
|
|
1757
|
+
protected _instance: any;
|
|
1758
|
+
protected __init(...args: any[]): void;
|
|
1759
|
+
protected __new_instance(...args: any[]): $p_a.VeLiveAudioEncoderConfiguration | $p_i.VeLiveAudioEncoderConfiguration;
|
|
1760
|
+
/** {zh}
|
|
1761
|
+
* @detail api
|
|
1762
|
+
* @brief 获取推流音频编码码率。
|
|
1763
|
+
* @return <br>
|
|
1764
|
+
* 推流音频编码码率。
|
|
1765
|
+
*/
|
|
1766
|
+
|
|
1767
|
+
getBitrate(): number;
|
|
1768
|
+
/** {zh}
|
|
1769
|
+
* @detail api
|
|
1770
|
+
* @brief 设置推流音频编码码率。
|
|
1771
|
+
* @return <br>推流音频编码参数配置对象,详情请参见 [VeLiveAudioEncoderConfiguration](#VeLiveAudioEncoderConfiguration)。
|
|
1772
|
+
* @param bitrate 推流音频编码码率,单位为 kbps,默认值为 64。
|
|
1773
|
+
*/
|
|
1774
|
+
|
|
1775
|
+
setBitrate(bitrate: number): VeLiveAudioEncoderConfiguration;
|
|
1776
|
+
/** {zh}
|
|
1777
|
+
* @detail api
|
|
1778
|
+
* @brief 获取推流音频采样率。
|
|
1779
|
+
* @return <br>
|
|
1780
|
+
* 推流音频采样率。详情请参见 {@link #VeLiveAudioSampleRate VeLiveAudioSampleRate}。
|
|
1781
|
+
*/
|
|
1782
|
+
|
|
1783
|
+
getSampleRate(): VeLiveAudioSampleRate;
|
|
1784
|
+
/** {zh}
|
|
1785
|
+
* @detail api
|
|
1786
|
+
* @brief 设置推流音频采样率。
|
|
1787
|
+
* @return <br>推流音频编码参数配置对象,详情请参见 [VeLiveAudioEncoderConfiguration](#VeLiveAudioEncoderConfiguration)。
|
|
1788
|
+
* @param sampleRate 推流音频采样率,默认值为 VeLiveAudioSampleRate44100,详情请参见 [VeLiveAudioSampleRate](147521#VeLiveAudioSampleRate)。
|
|
1789
|
+
*/
|
|
1790
|
+
|
|
1791
|
+
setSampleRate(sampleRate: VeLiveAudioSampleRate): VeLiveAudioEncoderConfiguration;
|
|
1792
|
+
/** {zh}
|
|
1793
|
+
* @detail api
|
|
1794
|
+
* @brief 获取推流音频声道。
|
|
1795
|
+
* @return <br>
|
|
1796
|
+
* 推流音频声道。详情请参见 {@link #VeLiveAudioChannel VeLiveAudioChannel}。
|
|
1797
|
+
*/
|
|
1798
|
+
|
|
1799
|
+
getChannel(): VeLiveAudioChannel;
|
|
1800
|
+
/** {zh}
|
|
1801
|
+
* @detail api
|
|
1802
|
+
* @brief 设置推流音频声道。
|
|
1803
|
+
* @return <br>推流音频编码参数配置对象,详情请参见 [VeLiveAudioEncoderConfiguration](#VeLiveAudioEncoderConfiguration)。
|
|
1804
|
+
* @param channel 推流音频声道,默认值为 VeLiveAudioChannelStereo,详情请参见 [VeLiveAudioChannel](147521#VeLiveAudioChannel)。
|
|
1805
|
+
*/
|
|
1806
|
+
|
|
1807
|
+
setChannel(channel: VeLiveAudioChannel): VeLiveAudioEncoderConfiguration;
|
|
1808
|
+
/** {zh}
|
|
1809
|
+
* @detail api
|
|
1810
|
+
* @brief 获取推流音频编码类型。
|
|
1811
|
+
* @return <br>
|
|
1812
|
+
* 推流音频编码类型。详情请参见 {@link #VeLiveAudioProfile VeLiveAudioProfile}。
|
|
1813
|
+
*/
|
|
1814
|
+
|
|
1815
|
+
getProfile(): VeLiveAudioProfile;
|
|
1816
|
+
/** {zh}
|
|
1817
|
+
* @detail api
|
|
1818
|
+
* @brief 设置推流音频编码类型。
|
|
1819
|
+
* @return <br>推流音频编码参数配置对象,详情请参见 [VeLiveAudioEncoderConfiguration](#VeLiveAudioEncoderConfiguration)。
|
|
1820
|
+
* @param profile 推流音频编码类型,默认值为 VeLiveAudioAACProfileLC,详情请参见 [VeLiveAudioProfile](147521#VeLiveAudioProfile)。
|
|
1821
|
+
*/
|
|
1822
|
+
|
|
1823
|
+
setProfile(profile: VeLiveAudioProfile): VeLiveAudioEncoderConfiguration;
|
|
1824
|
+
}
|
|
1825
|
+
/** {zh}
|
|
1826
|
+
* @detail keytype
|
|
1827
|
+
* @brief 音频混流类型。
|
|
1828
|
+
*/
|
|
1829
|
+
|
|
1830
|
+
export declare enum VeLiveAudioMixType {
|
|
1831
|
+
/** {zh}
|
|
1832
|
+
* @brief 拉流端可以听到混音效果,本地无法听到。
|
|
1833
|
+
*/
|
|
1834
|
+
|
|
1835
|
+
VeLiveAudioMixPush = 0,
|
|
1836
|
+
/** {zh}
|
|
1837
|
+
* @brief 拉流端和本地都可以听到混音效果。
|
|
1838
|
+
*/
|
|
1839
|
+
|
|
1840
|
+
VeLiveAudioMixPlayAndPush = 1
|
|
1841
|
+
}
|
|
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;
|
|
1847
|
+
}
|
|
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
|
|
1880
|
+
}
|
|
1881
|
+
export declare class t_VeLiveAudioCaptureType {
|
|
1882
|
+
static ts_to_android(value: VeLiveAudioCaptureType): $p_a.VeLiveAudioCaptureType;
|
|
1883
|
+
static android_to_ts(value: $p_a.VeLiveAudioCaptureType): VeLiveAudioCaptureType;
|
|
1884
|
+
static ts_to_ios(value: VeLiveAudioCaptureType): $p_i.VeLiveAudioCaptureType;
|
|
1885
|
+
static ios_to_ts(value: $p_i.VeLiveAudioCaptureType): VeLiveAudioCaptureType;
|
|
1886
|
+
}
|
|
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
|
|
1918
|
+
}
|
|
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;
|
|
1924
|
+
}
|
|
1925
|
+
export declare class VeLiveVideoEncodeFrame extends $p_i.VeLiveVideoEncodeFrame {
|
|
1926
|
+
}
|
|
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"
|
|
1947
|
+
}
|
|
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;
|
|
1953
|
+
}
|