@byteplus/react-native-live-push 1.5.1-rc.3 → 1.5.2-rc.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/commonjs/index.js +2 -2
- package/lib/commonjs/typescript/codegen/android/api.d.ts +93 -869
- package/lib/commonjs/typescript/codegen/android/callback.d.ts +31 -243
- package/lib/commonjs/typescript/codegen/android/errorcode.d.ts +15 -60
- package/lib/commonjs/typescript/codegen/android/keytype.d.ts +219 -1173
- package/lib/commonjs/typescript/codegen/ios/api.d.ts +102 -899
- package/lib/commonjs/typescript/codegen/ios/callback.d.ts +28 -162
- package/lib/commonjs/typescript/codegen/ios/errorcode.d.ts +25 -100
- package/lib/commonjs/typescript/codegen/ios/keytype.d.ts +180 -692
- package/lib/commonjs/typescript/codegen/pack/api.d.ts +133 -1180
- package/lib/commonjs/typescript/codegen/pack/callback.d.ts +35 -243
- package/lib/commonjs/typescript/codegen/pack/errorcode.d.ts +16 -69
- package/lib/commonjs/typescript/codegen/pack/keytype.d.ts +271 -1460
- package/lib/commonjs/typescript/core/api.d.ts +1 -8
- package/lib/commonjs/typescript/core/effect.d.ts +1 -5
- package/lib/module/index.js +2 -2
- package/lib/module/typescript/codegen/android/api.d.ts +93 -869
- package/lib/module/typescript/codegen/android/callback.d.ts +31 -243
- package/lib/module/typescript/codegen/android/errorcode.d.ts +15 -60
- package/lib/module/typescript/codegen/android/keytype.d.ts +219 -1173
- package/lib/module/typescript/codegen/ios/api.d.ts +102 -899
- package/lib/module/typescript/codegen/ios/callback.d.ts +28 -162
- package/lib/module/typescript/codegen/ios/errorcode.d.ts +25 -100
- package/lib/module/typescript/codegen/ios/keytype.d.ts +180 -692
- package/lib/module/typescript/codegen/pack/api.d.ts +133 -1180
- package/lib/module/typescript/codegen/pack/callback.d.ts +35 -243
- package/lib/module/typescript/codegen/pack/errorcode.d.ts +16 -69
- package/lib/module/typescript/codegen/pack/keytype.d.ts +271 -1460
- package/lib/module/typescript/core/api.d.ts +1 -8
- package/lib/module/typescript/core/effect.d.ts +1 -5
- package/lib/typescript/codegen/android/api.d.ts +93 -869
- package/lib/typescript/codegen/android/callback.d.ts +31 -243
- package/lib/typescript/codegen/android/errorcode.d.ts +15 -60
- package/lib/typescript/codegen/android/keytype.d.ts +219 -1173
- package/lib/typescript/codegen/ios/api.d.ts +102 -899
- package/lib/typescript/codegen/ios/callback.d.ts +28 -162
- package/lib/typescript/codegen/ios/errorcode.d.ts +25 -100
- package/lib/typescript/codegen/ios/keytype.d.ts +180 -692
- package/lib/typescript/codegen/pack/api.d.ts +133 -1180
- package/lib/typescript/codegen/pack/callback.d.ts +35 -243
- package/lib/typescript/codegen/pack/errorcode.d.ts +16 -69
- package/lib/typescript/codegen/pack/keytype.d.ts +271 -1460
- package/lib/typescript/core/api.d.ts +1 -8
- package/lib/typescript/core/effect.d.ts +1 -5
- package/package.json +1 -1
- package/lib/commonjs/typescript/core/logger.d.ts +0 -1
- package/lib/commonjs/typescript/platforms/android/AppLogWrapper.d.ts +0 -8
- package/lib/commonjs/typescript/platforms/ios/RangersAppLog.d.ts +0 -4
- package/lib/module/typescript/core/logger.d.ts +0 -1
- package/lib/module/typescript/platforms/android/AppLogWrapper.d.ts +0 -8
- package/lib/module/typescript/platforms/ios/RangersAppLog.d.ts +0 -4
- package/lib/typescript/core/logger.d.ts +0 -1
- package/lib/typescript/platforms/android/AppLogWrapper.d.ts +0 -8
- package/lib/typescript/platforms/ios/RangersAppLog.d.ts +0 -4
|
@@ -1,12 +1,7 @@
|
|
|
1
1
|
import { int, long, Matrix, ByteBuffer, Runnable, double, String, ArrayList, float, Context, LiveSdkSetting } from './types';
|
|
2
2
|
import { VeLivePusher } from './api';
|
|
3
3
|
export declare class VeLiveVideoEncoderConfiguration {
|
|
4
|
-
|
|
5
|
-
* @detail api
|
|
6
|
-
* @brief 获取推流视频分辨率。
|
|
7
|
-
* @return 推流视频分辨率 [VeLiveVideoResolution](#VeLivePusherDef-VeLiveVideoResolution)。
|
|
8
|
-
*
|
|
9
|
-
*/
|
|
4
|
+
|
|
10
5
|
/** {en}
|
|
11
6
|
* @detail api
|
|
12
7
|
* @brief Gets the video resolution.
|
|
@@ -14,13 +9,7 @@ export declare class VeLiveVideoEncoderConfiguration {
|
|
|
14
9
|
*
|
|
15
10
|
*/
|
|
16
11
|
getResolution(): VeLiveVideoResolution;
|
|
17
|
-
|
|
18
|
-
* @detail api
|
|
19
|
-
* @brief 设置推流视频分辨率。
|
|
20
|
-
* @param resolution 推流视频分辨率,默认值为 VeLiveVideoResolution720P,详情请参见 [VeLiveVideoResolution](#VeLivePusherDef-VeLiveVideoResolution)。
|
|
21
|
-
* @return 推流视频编码参数配置对象,详情请参见 [VeLiveVideoEncoderConfiguration](#VeLivePusherDef-VeLiveVideoEncoderConfiguration)。
|
|
22
|
-
*
|
|
23
|
-
*/
|
|
12
|
+
|
|
24
13
|
/** {en}
|
|
25
14
|
* @detail api
|
|
26
15
|
* @brief Sets the video resolution.
|
|
@@ -29,12 +18,7 @@ export declare class VeLiveVideoEncoderConfiguration {
|
|
|
29
18
|
*
|
|
30
19
|
*/
|
|
31
20
|
setResolution(resolution: VeLiveVideoResolution): this;
|
|
32
|
-
|
|
33
|
-
* @detail api
|
|
34
|
-
* @brief 获取推流视频编码格式。
|
|
35
|
-
* @return 推流视频编码格式,详情请参见 [VeLiveVideoCodec](#VeLiveVideoCodec)。
|
|
36
|
-
*
|
|
37
|
-
*/
|
|
21
|
+
|
|
38
22
|
/** {en}
|
|
39
23
|
* @detail api
|
|
40
24
|
* @brief Gets the video codec.
|
|
@@ -42,13 +26,7 @@ export declare class VeLiveVideoEncoderConfiguration {
|
|
|
42
26
|
*
|
|
43
27
|
*/
|
|
44
28
|
getCodec(): VeLiveVideoCodec;
|
|
45
|
-
|
|
46
|
-
* @detail api
|
|
47
|
-
* @brief 设置推流视频编码格式。
|
|
48
|
-
* @param codec 推流视频编码格式,详情请参见 [VeLiveVideoCodec](#VeLiveVideoCodec) 。
|
|
49
|
-
* @return 推流视频编码参数,详见 [VeLiveVideoEncoderConfiguration](#VeLivePusherDef-VeLiveVideoEncoderConfiguration)。
|
|
50
|
-
*
|
|
51
|
-
*/
|
|
29
|
+
|
|
52
30
|
/** {en}
|
|
53
31
|
* @detail api
|
|
54
32
|
* @brief Sets the video codec.
|
|
@@ -57,13 +35,7 @@ export declare class VeLiveVideoEncoderConfiguration {
|
|
|
57
35
|
*
|
|
58
36
|
*/
|
|
59
37
|
setCodec(codec: VeLiveVideoCodec): this;
|
|
60
|
-
|
|
61
|
-
* @detail api
|
|
62
|
-
* @brief 获取推流视频编码码率。
|
|
63
|
-
* @return <br>
|
|
64
|
-
* 推流视频编码码率。
|
|
65
|
-
*
|
|
66
|
-
*/
|
|
38
|
+
|
|
67
39
|
/** {en}
|
|
68
40
|
* @detail api
|
|
69
41
|
* @brief Get the encoded video bitrate.
|
|
@@ -71,13 +43,7 @@ export declare class VeLiveVideoEncoderConfiguration {
|
|
|
71
43
|
*
|
|
72
44
|
*/
|
|
73
45
|
getBitrate(): int;
|
|
74
|
-
|
|
75
|
-
* @detail api
|
|
76
|
-
* @brief 设置推流视频编码码率。
|
|
77
|
-
* @param bitrate 推流视频编码码率,单位为 kbps,默认值由 `resolution` 参数值决定。
|
|
78
|
-
* @return 推流视频编码参数配置对象,详情请参见 [VeLiveVideoEncoderConfiguration](#VeLivePusherDef-VeLiveVideoEncoderConfiguration)。
|
|
79
|
-
*
|
|
80
|
-
*/
|
|
46
|
+
|
|
81
47
|
/** {en}
|
|
82
48
|
* @detail api
|
|
83
49
|
* @brief Sets the encoded video bitrate.
|
|
@@ -86,13 +52,7 @@ export declare class VeLiveVideoEncoderConfiguration {
|
|
|
86
52
|
*
|
|
87
53
|
*/
|
|
88
54
|
setBitrate(bitrate: int): this;
|
|
89
|
-
|
|
90
|
-
* @detail api
|
|
91
|
-
* @brief 获取推流视频编码最小码率。
|
|
92
|
-
* @return <br>
|
|
93
|
-
* 推流视频编码最小码率。
|
|
94
|
-
*
|
|
95
|
-
*/
|
|
55
|
+
|
|
96
56
|
/** {en}
|
|
97
57
|
* @detail api
|
|
98
58
|
* @brief Gets the minimum encoded video bitrate.
|
|
@@ -100,13 +60,7 @@ export declare class VeLiveVideoEncoderConfiguration {
|
|
|
100
60
|
*
|
|
101
61
|
*/
|
|
102
62
|
getMinBitrate(): int;
|
|
103
|
-
|
|
104
|
-
* @detail api
|
|
105
|
-
* @brief 设置推流视频编码最小码率。
|
|
106
|
-
* @param minBitrate 推流视频编码最小码率,单位为 kbps,默认值由 `resolution` 参数值决定;如果开启自适应码率,推流 SDK 根据网络情况进行编码码率自适应调整的最小码率
|
|
107
|
-
* @return 推流视频编码参数配置对象,详情请参见 [VeLiveVideoEncoderConfiguration](#VeLivePusherDef-VeLiveVideoEncoderConfiguration)。
|
|
108
|
-
*
|
|
109
|
-
*/
|
|
63
|
+
|
|
110
64
|
/** {en}
|
|
111
65
|
* @detail api
|
|
112
66
|
* @brief Sets the minimum encoded video bitrate.
|
|
@@ -115,13 +69,7 @@ export declare class VeLiveVideoEncoderConfiguration {
|
|
|
115
69
|
*
|
|
116
70
|
*/
|
|
117
71
|
setMinBitrate(minBitrate: int): this;
|
|
118
|
-
|
|
119
|
-
* @detail api
|
|
120
|
-
* @brief 获取推流视频编码最大码率。
|
|
121
|
-
* @return <br>
|
|
122
|
-
* 推流视频编码最大码率。
|
|
123
|
-
*
|
|
124
|
-
*/
|
|
72
|
+
|
|
125
73
|
/** {en}
|
|
126
74
|
* @detail api
|
|
127
75
|
* @brief Gets the maximum encoded video bitrate.
|
|
@@ -129,14 +77,7 @@ export declare class VeLiveVideoEncoderConfiguration {
|
|
|
129
77
|
*
|
|
130
78
|
*/
|
|
131
79
|
getMaxBitrate(): int;
|
|
132
|
-
|
|
133
|
-
* @detail api
|
|
134
|
-
* @brief 设置推流视频编码最大码率。
|
|
135
|
-
* @param maxBitrate 推流视频编码最大码率,单位为 kbps,默认值由 `resolution` 参数值决定;如果开启自适应码率,推流 SDK 根据网络情况进行编码码率自适应调整的最大码率。
|
|
136
|
-
* @return
|
|
137
|
-
* 推流视频编码参数配置对象,详情请参见 [VeLiveVideoEncoderConfiguration](#VeLivePusherDef-VeLiveVideoEncoderConfiguration)。
|
|
138
|
-
*
|
|
139
|
-
*/
|
|
80
|
+
|
|
140
81
|
/** {en}
|
|
141
82
|
* @detail api
|
|
142
83
|
* @brief Sets the maximum encoded video bitrate.
|
|
@@ -145,13 +86,7 @@ export declare class VeLiveVideoEncoderConfiguration {
|
|
|
145
86
|
*
|
|
146
87
|
*/
|
|
147
88
|
setMaxBitrate(maxBitrate: int): this;
|
|
148
|
-
|
|
149
|
-
* @detail api
|
|
150
|
-
* @brief 获取推流视频编码 GOP。
|
|
151
|
-
* @return <br>
|
|
152
|
-
* 推流视频编码 GOP。
|
|
153
|
-
*
|
|
154
|
-
*/
|
|
89
|
+
|
|
155
90
|
/** {en}
|
|
156
91
|
* @detail api
|
|
157
92
|
* @brief Gets the encoded video GOP size.
|
|
@@ -159,13 +94,7 @@ export declare class VeLiveVideoEncoderConfiguration {
|
|
|
159
94
|
*
|
|
160
95
|
*/
|
|
161
96
|
getGopSize(): int;
|
|
162
|
-
|
|
163
|
-
* @detail api
|
|
164
|
-
* @brief 设置推流视频编码 GOP。
|
|
165
|
-
* @param gopSize 视频 GOP 大小,单位为 s,默认值为 2
|
|
166
|
-
* @return 推流视频编码参数配置对象,详情请参见 [VeLiveVideoEncoderConfiguration](#VeLivePusherDef-VeLiveVideoEncoderConfiguration)。
|
|
167
|
-
*
|
|
168
|
-
*/
|
|
97
|
+
|
|
169
98
|
/** {en}
|
|
170
99
|
* @detail api
|
|
171
100
|
* @brief Sets the encoded video GOP size.
|
|
@@ -174,12 +103,7 @@ export declare class VeLiveVideoEncoderConfiguration {
|
|
|
174
103
|
*
|
|
175
104
|
*/
|
|
176
105
|
setGopSize(gopSize: int): this;
|
|
177
|
-
|
|
178
|
-
* @detail api
|
|
179
|
-
* @brief 获取推流视频编码帧率。
|
|
180
|
-
* @return 推流视频编码帧率。
|
|
181
|
-
*
|
|
182
|
-
*/
|
|
106
|
+
|
|
183
107
|
/** {en}
|
|
184
108
|
* @detail api
|
|
185
109
|
* @brief Gets the encoded frame rate.
|
|
@@ -187,13 +111,7 @@ export declare class VeLiveVideoEncoderConfiguration {
|
|
|
187
111
|
*
|
|
188
112
|
*/
|
|
189
113
|
getFps(): int;
|
|
190
|
-
|
|
191
|
-
* @detail api
|
|
192
|
-
* @brief 设置推流视频编码帧率。
|
|
193
|
-
* @param fps 视频编码帧率,单位为 fps,默认值为 15
|
|
194
|
-
* @return 推流视频编码参数配置对象,详情请参见 [VeLiveVideoEncoderConfiguration](#VeLivePusherDef-VeLiveVideoEncoderConfiguration)。
|
|
195
|
-
*
|
|
196
|
-
*/
|
|
114
|
+
|
|
197
115
|
/** {en}
|
|
198
116
|
* @detail api
|
|
199
117
|
* @brief Sets the encoded frame rate.
|
|
@@ -202,14 +120,7 @@ export declare class VeLiveVideoEncoderConfiguration {
|
|
|
202
120
|
*
|
|
203
121
|
*/
|
|
204
122
|
setFps(fps: int): this;
|
|
205
|
-
|
|
206
|
-
* @detail api
|
|
207
|
-
* @brief 获取是否开启 B 帧。
|
|
208
|
-
* @return 是否开启B帧。<br/>
|
|
209
|
-
* - true:B 帧开启;
|
|
210
|
-
* - false:B 帧关闭。
|
|
211
|
-
*
|
|
212
|
-
*/
|
|
123
|
+
|
|
213
124
|
/** {en}
|
|
214
125
|
* @detail api
|
|
215
126
|
* @brief Gets whether to enable B frames.
|
|
@@ -219,15 +130,7 @@ export declare class VeLiveVideoEncoderConfiguration {
|
|
|
219
130
|
*
|
|
220
131
|
*/
|
|
221
132
|
isEnableBFrame(): boolean;
|
|
222
|
-
|
|
223
|
-
* @detail api
|
|
224
|
-
* @brief 设置推流视频编码开启 B 帧。
|
|
225
|
-
* @param enableBFrame 是否开启 B 帧。默认为 false。 <br>
|
|
226
|
-
* - true:开启;
|
|
227
|
-
* - false:关闭。
|
|
228
|
-
* @return 推流视频编码参数配置对象,详情请参见 [VeLiveVideoEncoderConfiguration](#VeLivePusherDef-VeLiveVideoEncoderConfiguration)。
|
|
229
|
-
*
|
|
230
|
-
*/
|
|
133
|
+
|
|
231
134
|
/** {en}
|
|
232
135
|
* @detail api
|
|
233
136
|
* @brief Sets whether to enable B frames.
|
|
@@ -238,15 +141,7 @@ export declare class VeLiveVideoEncoderConfiguration {
|
|
|
238
141
|
*
|
|
239
142
|
*/
|
|
240
143
|
setEnableBFrame(enableBFrame: boolean): this;
|
|
241
|
-
|
|
242
|
-
* @detail api
|
|
243
|
-
* @brief 获取是否开启硬件编码。
|
|
244
|
-
* @return <br>
|
|
245
|
-
* 是否开启硬件编码。<br>
|
|
246
|
-
* - true:开启;
|
|
247
|
-
* - false:关闭。
|
|
248
|
-
*
|
|
249
|
-
*/
|
|
144
|
+
|
|
250
145
|
/** {en}
|
|
251
146
|
* @detail api
|
|
252
147
|
* @brief Gets whether to enable hardware encoding.
|
|
@@ -256,15 +151,7 @@ export declare class VeLiveVideoEncoderConfiguration {
|
|
|
256
151
|
*
|
|
257
152
|
*/
|
|
258
153
|
isEnableAccelerate(): boolean;
|
|
259
|
-
|
|
260
|
-
* @detail api
|
|
261
|
-
* @brief 设置推流视频编码开启硬件编码。
|
|
262
|
-
* @param enableAccelerate 是否开启硬件编码。默认值为 true。 <br>
|
|
263
|
-
* - true:开启;
|
|
264
|
-
* - false:关闭。
|
|
265
|
-
* @return 推流视频编码参数配置对象,详情请参见 [VeLiveVideoEncoderConfiguration](#VeLivePusherDef-VeLiveVideoEncoderConfiguration)。
|
|
266
|
-
*
|
|
267
|
-
*/
|
|
154
|
+
|
|
268
155
|
/** {en}
|
|
269
156
|
* @detail api
|
|
270
157
|
* @brief Enables hardware encoding.
|
|
@@ -278,34 +165,21 @@ export declare class VeLiveVideoEncoderConfiguration {
|
|
|
278
165
|
}
|
|
279
166
|
export declare class VeLiveVideoFrame {
|
|
280
167
|
constructor(width: int, height: int, pts: long, data: ArrayBuffer);
|
|
281
|
-
|
|
282
|
-
* @detail api
|
|
283
|
-
* @brief 增加 VeLiveVideoFrame 对象的引用计数。当您需要继续使用 VeLiveVideoFrame 对象时,请调用此方法将引用计数增加 1。
|
|
284
|
-
*
|
|
285
|
-
*/
|
|
168
|
+
|
|
286
169
|
/** {en}
|
|
287
170
|
* @detail api
|
|
288
171
|
* @brief Increases the reference count of the `VeLiveVideoFrame` object. Call this method to increase the reference count by 1 if you need to continue using the `VeLiveVideoFrame` object.
|
|
289
172
|
*
|
|
290
173
|
*/
|
|
291
174
|
retain(): void;
|
|
292
|
-
|
|
293
|
-
* @detail api
|
|
294
|
-
* @brief 释放对 VeLiveVideoFrame 对象的引用。在您不再需要使用 VeLiveVideoFrame 对象时,应调用此方法将引用计数减少 1。当引用计数减少到零,表示不再有引用指向该对象,可以安全地释放或销毁该对象。
|
|
295
|
-
*
|
|
296
|
-
*/
|
|
175
|
+
|
|
297
176
|
/** {en}
|
|
298
177
|
* @detail api
|
|
299
178
|
* @brief Releases the reference to the `VeLiveVideoFrame` object. Call this method to reduce the reference count by 1 when you no longer need to use the `VeLiveVideoFrame` object. When the reference count is reduced to 0, it means there is no reference to the object, and the object can be safely released or destroyed.
|
|
300
179
|
*
|
|
301
180
|
*/
|
|
302
181
|
release(): void;
|
|
303
|
-
|
|
304
|
-
* @detail api
|
|
305
|
-
* @brief 获取视频数据类型。
|
|
306
|
-
* @return 视频数据类型,详情请参见 [VeLiveVideoBufferType](#VeLiveVideoBufferType)。
|
|
307
|
-
*
|
|
308
|
-
*/
|
|
182
|
+
|
|
309
183
|
/** {en}
|
|
310
184
|
* @detail api
|
|
311
185
|
* @brief Gets the data type of the video.
|
|
@@ -313,13 +187,7 @@ export declare class VeLiveVideoFrame {
|
|
|
313
187
|
*
|
|
314
188
|
*/
|
|
315
189
|
getBufferType(): VeLiveVideoBufferType;
|
|
316
|
-
|
|
317
|
-
* @detail api
|
|
318
|
-
* @brief 设置视频数据类型。
|
|
319
|
-
* @param bufferType 视频数据类型,详情请参见 [VeLiveVideoBufferType](#VeLiveVideoBufferType)。
|
|
320
|
-
* @return 视频帧对象,详情请参见 [VeLiveVideoFrame](#VeLiveVideoFrame)。
|
|
321
|
-
*
|
|
322
|
-
*/
|
|
190
|
+
|
|
323
191
|
/** {en}
|
|
324
192
|
* @detail api
|
|
325
193
|
* @brief Sets the data type of the video.
|
|
@@ -328,12 +196,7 @@ export declare class VeLiveVideoFrame {
|
|
|
328
196
|
*
|
|
329
197
|
*/
|
|
330
198
|
setBufferType(bufferType: VeLiveVideoBufferType): this;
|
|
331
|
-
|
|
332
|
-
* @detail api
|
|
333
|
-
* @brief 获取视频像素格式。
|
|
334
|
-
* @return 视频像素格式,详情请参见 [VeLivePixelFormat](#VeLivePixelFormat)。
|
|
335
|
-
*
|
|
336
|
-
*/
|
|
199
|
+
|
|
337
200
|
/** {en}
|
|
338
201
|
* @detail api
|
|
339
202
|
* @brief Gets the pixel format.
|
|
@@ -342,13 +205,7 @@ export declare class VeLiveVideoFrame {
|
|
|
342
205
|
*
|
|
343
206
|
*/
|
|
344
207
|
getPixelFormat(): VeLivePixelFormat;
|
|
345
|
-
|
|
346
|
-
* @detail api
|
|
347
|
-
* @brief 设置视频像素格式。
|
|
348
|
-
* @param pixelFormat 视频像素格式,详情请参见 [VeLivePixelFormat](#VeLivePixelFormat)。
|
|
349
|
-
* @return 视频帧对象,详情请参见 [VeLiveVideoFrame](#VeLiveVideoFrame)。
|
|
350
|
-
*
|
|
351
|
-
*/
|
|
208
|
+
|
|
352
209
|
/** {en}
|
|
353
210
|
* @detail api
|
|
354
211
|
* @brief Sets the pixel format.
|
|
@@ -357,12 +214,7 @@ export declare class VeLiveVideoFrame {
|
|
|
357
214
|
*
|
|
358
215
|
*/
|
|
359
216
|
setPixelFormat(pixelFormat: VeLivePixelFormat): this;
|
|
360
|
-
|
|
361
|
-
* @detail api
|
|
362
|
-
* @brief 获取视频帧旋转角度。
|
|
363
|
-
* @return 视频帧旋转角度,详情请参见 [VeLiveVideoRotation](#VeLiveVideoRotation)。
|
|
364
|
-
*
|
|
365
|
-
*/
|
|
217
|
+
|
|
366
218
|
/** {en}
|
|
367
219
|
* @detail api
|
|
368
220
|
* @brief Gets the rotation angle in a clockwise direction.
|
|
@@ -370,13 +222,7 @@ export declare class VeLiveVideoFrame {
|
|
|
370
222
|
*
|
|
371
223
|
*/
|
|
372
224
|
getRotation(): VeLiveVideoRotation;
|
|
373
|
-
|
|
374
|
-
* @detail api
|
|
375
|
-
* @brief 设置视频帧旋转角度。
|
|
376
|
-
* @param rotation 视频帧旋转角度,详情请参见 [VeLiveVideoRotation](#VeLiveVideoRotation)。
|
|
377
|
-
* @return 视频帧对象,详情请参见 [VeLiveVideoFrame](#VeLiveVideoFrame)。
|
|
378
|
-
*
|
|
379
|
-
*/
|
|
225
|
+
|
|
380
226
|
/** {en}
|
|
381
227
|
* @detail api
|
|
382
228
|
* @brief Sets the rotation angle in a clockwise direction.
|
|
@@ -386,13 +232,7 @@ export declare class VeLiveVideoFrame {
|
|
|
386
232
|
*
|
|
387
233
|
*/
|
|
388
234
|
setRotation(rotation: VeLiveVideoRotation): this;
|
|
389
|
-
|
|
390
|
-
* @detail api
|
|
391
|
-
* @brief 获取视频帧宽度。
|
|
392
|
-
* @return <br>
|
|
393
|
-
* 视频帧宽度。
|
|
394
|
-
*
|
|
395
|
-
*/
|
|
235
|
+
|
|
396
236
|
/** {en}
|
|
397
237
|
* @detail api
|
|
398
238
|
* @brief Gets the width of the video frame.
|
|
@@ -401,13 +241,7 @@ export declare class VeLiveVideoFrame {
|
|
|
401
241
|
*
|
|
402
242
|
*/
|
|
403
243
|
getWidth(): int;
|
|
404
|
-
|
|
405
|
-
* @detail api
|
|
406
|
-
* @brief 获取视频帧高度。
|
|
407
|
-
* @return <br>
|
|
408
|
-
* 视频帧高度。
|
|
409
|
-
*
|
|
410
|
-
*/
|
|
244
|
+
|
|
411
245
|
/** {en}
|
|
412
246
|
* @detail api
|
|
413
247
|
* @brief Gets the height of the video frame.
|
|
@@ -416,13 +250,7 @@ export declare class VeLiveVideoFrame {
|
|
|
416
250
|
*
|
|
417
251
|
*/
|
|
418
252
|
getHeight(): int;
|
|
419
|
-
|
|
420
|
-
* @detail api
|
|
421
|
-
* @brief 获取带旋转角度的视频帧宽度。
|
|
422
|
-
* @return <br>
|
|
423
|
-
* 带旋转角度的视频帧宽度。
|
|
424
|
-
*
|
|
425
|
-
*/
|
|
253
|
+
|
|
426
254
|
/** {en}
|
|
427
255
|
* @detail api
|
|
428
256
|
* @brief Gets the width of the rotated video frame.
|
|
@@ -431,13 +259,7 @@ export declare class VeLiveVideoFrame {
|
|
|
431
259
|
*
|
|
432
260
|
*/
|
|
433
261
|
getRotatedWidth(): int;
|
|
434
|
-
|
|
435
|
-
* @detail api
|
|
436
|
-
* @brief 获取带旋转角度的视频帧高度。
|
|
437
|
-
* @return <br>
|
|
438
|
-
* 带旋转角度的视频帧高度。
|
|
439
|
-
*
|
|
440
|
-
*/
|
|
262
|
+
|
|
441
263
|
/** {en}
|
|
442
264
|
* @detail api
|
|
443
265
|
* @brief Gets the height of the rotated video frame.
|
|
@@ -446,13 +268,7 @@ export declare class VeLiveVideoFrame {
|
|
|
446
268
|
*
|
|
447
269
|
*/
|
|
448
270
|
getRotatedHeight(): int;
|
|
449
|
-
|
|
450
|
-
* @detail api
|
|
451
|
-
* @brief 获取视频帧时间戳。
|
|
452
|
-
* @return <br>
|
|
453
|
-
* 视频帧时间戳,单位为 μs。
|
|
454
|
-
*
|
|
455
|
-
*/
|
|
271
|
+
|
|
456
272
|
/** {en}
|
|
457
273
|
* @detail api
|
|
458
274
|
* @brief Gets the timestamp of the video frame.
|
|
@@ -461,13 +277,7 @@ export declare class VeLiveVideoFrame {
|
|
|
461
277
|
*
|
|
462
278
|
*/
|
|
463
279
|
getPts(): long;
|
|
464
|
-
|
|
465
|
-
* @detail api
|
|
466
|
-
* @brief 获取视频帧纹理 ID。
|
|
467
|
-
* @return <br>
|
|
468
|
-
* 视频帧纹理 ID。
|
|
469
|
-
*
|
|
470
|
-
*/
|
|
280
|
+
|
|
471
281
|
/** {en}
|
|
472
282
|
* @detail api
|
|
473
283
|
* @brief Gets the texture ID.
|
|
@@ -476,12 +286,7 @@ export declare class VeLiveVideoFrame {
|
|
|
476
286
|
*
|
|
477
287
|
*/
|
|
478
288
|
getTextureId(): int;
|
|
479
|
-
|
|
480
|
-
* @detail api
|
|
481
|
-
* @brief 获取视频帧纹理矩阵。
|
|
482
|
-
* @return 视频帧纹理矩阵。
|
|
483
|
-
*
|
|
484
|
-
*/
|
|
289
|
+
|
|
485
290
|
/** {en}
|
|
486
291
|
* @detail api
|
|
487
292
|
* @brief Gets the texture matrix.
|
|
@@ -489,13 +294,7 @@ export declare class VeLiveVideoFrame {
|
|
|
489
294
|
*
|
|
490
295
|
*/
|
|
491
296
|
getTextureMatrix(): Matrix;
|
|
492
|
-
|
|
493
|
-
* @detail api
|
|
494
|
-
* @brief 获取 ByteBuffer 格式的视频数据。
|
|
495
|
-
* @return <br>
|
|
496
|
-
* ByteBuffer 格式的视频数据。
|
|
497
|
-
*
|
|
498
|
-
*/
|
|
297
|
+
|
|
499
298
|
/** {en}
|
|
500
299
|
* @detail api
|
|
501
300
|
* @brief Gets the video data in the format of ByteBuffer.
|
|
@@ -503,12 +302,7 @@ export declare class VeLiveVideoFrame {
|
|
|
503
302
|
*
|
|
504
303
|
*/
|
|
505
304
|
getBuffer(): ByteBuffer;
|
|
506
|
-
|
|
507
|
-
* @detail api
|
|
508
|
-
* @brief 获取 byte[] 格式的视频数据。
|
|
509
|
-
* @return byte[] 格式的视频数据。
|
|
510
|
-
*
|
|
511
|
-
*/
|
|
305
|
+
|
|
512
306
|
/** {en}
|
|
513
307
|
* @detail api
|
|
514
308
|
* @brief Gets the video data in the format of byte [].
|
|
@@ -516,13 +310,7 @@ export declare class VeLiveVideoFrame {
|
|
|
516
310
|
*
|
|
517
311
|
*/
|
|
518
312
|
getData(): ArrayBuffer;
|
|
519
|
-
|
|
520
|
-
* @detail api
|
|
521
|
-
* @brief 获取视频帧内部销毁回调。
|
|
522
|
-
* @return <br>
|
|
523
|
-
* 视频帧内部销毁回调。
|
|
524
|
-
*
|
|
525
|
-
*/
|
|
313
|
+
|
|
526
314
|
/** {en}
|
|
527
315
|
* @detail api
|
|
528
316
|
* @brief Gets the internal release callback.
|
|
@@ -530,13 +318,7 @@ export declare class VeLiveVideoFrame {
|
|
|
530
318
|
*
|
|
531
319
|
*/
|
|
532
320
|
getReleaseCallback(): Runnable;
|
|
533
|
-
|
|
534
|
-
* @detail api
|
|
535
|
-
* @brief 设置视频帧内部销毁回调。
|
|
536
|
-
* @param releaseCallback 视频帧内部销毁回调
|
|
537
|
-
* @return 视频帧对象,详情请参见 [VeLiveVideoFrame](#VeLiveVideoFrame)。
|
|
538
|
-
*
|
|
539
|
-
*/
|
|
321
|
+
|
|
540
322
|
/** {en}
|
|
541
323
|
* @detail api
|
|
542
324
|
* @brief Sets the internal release callback.
|
|
@@ -547,28 +329,19 @@ export declare class VeLiveVideoFrame {
|
|
|
547
329
|
setReleaseCallback(releaseCallback: Runnable): this;
|
|
548
330
|
}
|
|
549
331
|
export declare enum VeLiveAudioCodec {
|
|
550
|
-
|
|
551
|
-
* @brief FDKAAC 编码。
|
|
552
|
-
*
|
|
553
|
-
*/
|
|
332
|
+
|
|
554
333
|
/** {en}
|
|
555
334
|
* @brief FDKAAC.
|
|
556
335
|
*
|
|
557
336
|
*/
|
|
558
337
|
VeLiveAudioCodecFdkAAC = 0,
|
|
559
|
-
|
|
560
|
-
* @brief Mediacodec AAC 编码。
|
|
561
|
-
*
|
|
562
|
-
*/
|
|
338
|
+
|
|
563
339
|
/** {en}
|
|
564
340
|
* @brief Mediacodec AAC.
|
|
565
341
|
*
|
|
566
342
|
*/
|
|
567
343
|
VeLiveAudioCodecMediaCodecAAC = 1,
|
|
568
|
-
|
|
569
|
-
* @brief FFMPEG AAC 编码。
|
|
570
|
-
*
|
|
571
|
-
*/
|
|
344
|
+
|
|
572
345
|
/** {en}
|
|
573
346
|
* @brief FFMPEG AAC.
|
|
574
347
|
*
|
|
@@ -576,19 +349,13 @@ export declare enum VeLiveAudioCodec {
|
|
|
576
349
|
VeLiveAudioCodecFFmpegAAC = 2
|
|
577
350
|
}
|
|
578
351
|
export declare enum VeLiveVideoCodec {
|
|
579
|
-
|
|
580
|
-
* @brief 使用 H.264 视频编码。
|
|
581
|
-
*
|
|
582
|
-
*/
|
|
352
|
+
|
|
583
353
|
/** {en}
|
|
584
354
|
* @brief H.264.
|
|
585
355
|
*
|
|
586
356
|
*/
|
|
587
357
|
VeLiveVideoCodecH264 = 0,
|
|
588
|
-
|
|
589
|
-
* @brief 使用火山引擎自研 ByteVC1 视频编码。
|
|
590
|
-
*
|
|
591
|
-
*/
|
|
358
|
+
|
|
592
359
|
/** {en}
|
|
593
360
|
* @brief ByteVC1, an encoding format developed by BytePlus.
|
|
594
361
|
*
|
|
@@ -596,145 +363,97 @@ export declare enum VeLiveVideoCodec {
|
|
|
596
363
|
VeLiveVideoCodecByteVC1 = 1
|
|
597
364
|
}
|
|
598
365
|
export declare class VeLivePusherStatistics {
|
|
599
|
-
|
|
600
|
-
* @brief 视频编码宽度,单位为 px。
|
|
601
|
-
*
|
|
602
|
-
*/
|
|
366
|
+
|
|
603
367
|
/** {en}
|
|
604
368
|
* @brief The width of the encoded video, in pixels.
|
|
605
369
|
*
|
|
606
370
|
*/
|
|
607
371
|
encodeWidth: int;
|
|
608
|
-
|
|
609
|
-
* @brief 视频编码高度,单位为 px。
|
|
610
|
-
*
|
|
611
|
-
*/
|
|
372
|
+
|
|
612
373
|
/** {en}
|
|
613
374
|
* @brief The height of the encoded video, in pixels.
|
|
614
375
|
*
|
|
615
376
|
*/
|
|
616
377
|
encodeHeight: int;
|
|
617
|
-
|
|
618
|
-
* @brief 视频采集宽度,单位为 px。
|
|
619
|
-
*
|
|
620
|
-
*/
|
|
378
|
+
|
|
621
379
|
/** {en}
|
|
622
380
|
* @brief The width of the captured video, in pixels.
|
|
623
381
|
*
|
|
624
382
|
*/
|
|
625
383
|
captureWidth: int;
|
|
626
|
-
|
|
627
|
-
* @brief 视频采集高度,单位为 px。
|
|
628
|
-
*
|
|
629
|
-
*/
|
|
384
|
+
|
|
630
385
|
/** {en}
|
|
631
386
|
* @brief The height of the captured video, in pixels.
|
|
632
387
|
*
|
|
633
388
|
*/
|
|
634
389
|
captureHeight: int;
|
|
635
|
-
|
|
636
|
-
* @brief 视频采集帧率,单位为 fps。
|
|
637
|
-
*
|
|
638
|
-
*/
|
|
390
|
+
|
|
639
391
|
/** {en}
|
|
640
392
|
* @brief The captured frame rate, in fps.
|
|
641
393
|
*
|
|
642
394
|
*/
|
|
643
395
|
captureFps: double;
|
|
644
|
-
|
|
645
|
-
* @brief 视频编码帧率,单位为 fps。
|
|
646
|
-
*
|
|
647
|
-
*/
|
|
396
|
+
|
|
648
397
|
/** {en}
|
|
649
398
|
* @brief The encoded frame rate, in fps.
|
|
650
399
|
*
|
|
651
400
|
*/
|
|
652
401
|
encodeFps: double;
|
|
653
|
-
|
|
654
|
-
* @brief 视频发送帧率,可用展示实时帧率,单位为 fps。
|
|
655
|
-
*
|
|
656
|
-
*/
|
|
402
|
+
|
|
657
403
|
/** {en}
|
|
658
404
|
* @brief The transmission frame rate, in fps. You can use this parameter to showcase the real-time frame rate on the user interface.
|
|
659
405
|
*
|
|
660
406
|
*/
|
|
661
407
|
transportFps: double;
|
|
662
|
-
|
|
663
|
-
* @brief 视频推流帧率,即您通过 [setVideoEncoderConfiguration](147517#VeLivePusher-setvideoencoderconfiguration) 方法设置的帧率,单位为 fps。
|
|
664
|
-
*
|
|
665
|
-
*/
|
|
408
|
+
|
|
666
409
|
/** {en}
|
|
667
410
|
* @brief The encoded frame rate you specify in the setVideoEncoderConfiguration {@link #VeLivePusher#setVideoEncoderConfiguration} method, in fps.
|
|
668
411
|
*
|
|
669
412
|
*/
|
|
670
413
|
fps: int;
|
|
671
|
-
|
|
672
|
-
* @brief 视频推流码率,即您通过 [setVideoEncoderConfiguration](147517#VeLivePusher-setvideoencoderconfiguration) 方法设置的码率,单位为 kbps。
|
|
673
|
-
*
|
|
674
|
-
*/
|
|
414
|
+
|
|
675
415
|
/** {en}
|
|
676
416
|
* @brief The encoded bitrate you specify in the setVideoEncoderConfiguration {@link #VeLivePusher#setVideoEncoderConfiguration} method, in Kbps.
|
|
677
417
|
*
|
|
678
418
|
*/
|
|
679
419
|
videoBitrate: int;
|
|
680
|
-
|
|
681
|
-
* @brief 视频推流最小码率,即您通过 [setVideoEncoderConfiguration](147517#VeLivePusher-setvideoencoderconfiguration) 方法设置的最小码率,单位为 kbps。
|
|
682
|
-
*
|
|
683
|
-
*/
|
|
420
|
+
|
|
684
421
|
/** {en}
|
|
685
422
|
* @brief The minimum encoded bitrate you specify in the setVideoEncoderConfiguration {@link #VeLivePusher#setVideoEncoderConfiguration} method, in Kbps.
|
|
686
423
|
*
|
|
687
424
|
*/
|
|
688
425
|
minVideoBitrate: int;
|
|
689
|
-
|
|
690
|
-
* @brief 视频推流最大码率,即您通过 [setVideoEncoderConfiguration](147517#VeLivePusher-setvideoencoderconfiguration) 方法设置的最大码率,单位为 kbps。
|
|
691
|
-
*
|
|
692
|
-
*/
|
|
426
|
+
|
|
693
427
|
/** {en}
|
|
694
428
|
* @brief The maximum encoded bitrate you specify in the setVideoEncoderConfiguration {@link #VeLivePusher#setVideoEncoderConfiguration} method, in Kbps.
|
|
695
429
|
*
|
|
696
430
|
*/
|
|
697
431
|
maxVideoBitrate: int;
|
|
698
|
-
|
|
699
|
-
* @brief 视频编码码率,单位为 kbps。
|
|
700
|
-
*
|
|
701
|
-
*/
|
|
432
|
+
|
|
702
433
|
/** {en}
|
|
703
434
|
* @brief The encoded video bitrate, in Kbps.
|
|
704
435
|
*
|
|
705
436
|
*/
|
|
706
437
|
encodeVideoBitrate: double;
|
|
707
|
-
|
|
708
|
-
* @brief 视频发送码率,可用于展示实时码率,单位为 kbps。
|
|
709
|
-
*
|
|
710
|
-
*/
|
|
438
|
+
|
|
711
439
|
/** {en}
|
|
712
440
|
* @brief The transmission bitrate, in Kbps. You can use this parameter to showcase the real-time bitrate on the user interface.
|
|
713
441
|
*
|
|
714
442
|
*/
|
|
715
443
|
transportVideoBitrate: double;
|
|
716
|
-
|
|
717
|
-
* @brief 音频编码码率,单位为 kbps。
|
|
718
|
-
*
|
|
719
|
-
*/
|
|
444
|
+
|
|
720
445
|
/** {en}
|
|
721
446
|
* @brief The audio encoding bitrate, in Kbps.
|
|
722
447
|
*
|
|
723
448
|
*/
|
|
724
449
|
encodeAudioBitrate: double;
|
|
725
|
-
|
|
726
|
-
* @brief 推流地址。
|
|
727
|
-
*
|
|
728
|
-
*/
|
|
450
|
+
|
|
729
451
|
/** {en}
|
|
730
452
|
* @brief The push stream address.
|
|
731
453
|
*
|
|
732
454
|
*/
|
|
733
455
|
url: String;
|
|
734
|
-
|
|
735
|
-
* @brief 视频编码格式。
|
|
736
|
-
*
|
|
737
|
-
*/
|
|
456
|
+
|
|
738
457
|
/** {en}
|
|
739
458
|
* @brief The video codec.
|
|
740
459
|
*
|
|
@@ -742,28 +461,19 @@ export declare class VeLivePusherStatistics {
|
|
|
742
461
|
codec: String;
|
|
743
462
|
}
|
|
744
463
|
export declare enum VeLivePusherRenderMode {
|
|
745
|
-
|
|
746
|
-
* @brief 视频帧自适应画布。视频帧非等比缩放,直至画布被填满。在此过程中,视频帧的长宽比例可能会发生变化。
|
|
747
|
-
*
|
|
748
|
-
*/
|
|
464
|
+
|
|
749
465
|
/** {en}
|
|
750
466
|
* @brief Stretch the video to fill the screen. The aspect ratio of the video might change.
|
|
751
467
|
*
|
|
752
468
|
*/
|
|
753
469
|
VeLivePusherRenderModeFill = 0,
|
|
754
|
-
|
|
755
|
-
* @brief 视频帧内容全部显示优先。视频尺寸等比缩放,优先保证视频内容全部显示。当视频尺寸与显示窗口尺寸不一致时,会把窗口未被填满的区域填充成背景颜色。
|
|
756
|
-
*
|
|
757
|
-
*/
|
|
470
|
+
|
|
758
471
|
/** {en}
|
|
759
472
|
* @brief Display the full video. The video is uniformly scaled until one dimension of the video hits the boundary of the screen. Any remaining space on the screen will be filled with background color.
|
|
760
473
|
*
|
|
761
474
|
*/
|
|
762
475
|
VeLivePusherRenderModeFit = 1,
|
|
763
|
-
|
|
764
|
-
* @brief 视窗填满优先。视频帧等比缩放,直至视窗被视频填满。如果视频帧长宽比例与视窗不同,视频帧的多出部分将无法显示。
|
|
765
|
-
*
|
|
766
|
-
*/
|
|
476
|
+
|
|
767
477
|
/** {en}
|
|
768
478
|
* @brief Uniformly scale the video until the screen is completely filled. Part of the video may be cropped.
|
|
769
479
|
*
|
|
@@ -771,19 +481,13 @@ export declare enum VeLivePusherRenderMode {
|
|
|
771
481
|
VeLivePusherRenderModeHidden = 2
|
|
772
482
|
}
|
|
773
483
|
export declare enum VeLiveVideoEffectLicenseType {
|
|
774
|
-
|
|
775
|
-
* @brief 离线认证视频特效许可证。
|
|
776
|
-
*
|
|
777
|
-
*/
|
|
484
|
+
|
|
778
485
|
/** {en}
|
|
779
486
|
* @brief Authenticate offline.
|
|
780
487
|
*
|
|
781
488
|
*/
|
|
782
489
|
VeLiveVideoEffectLicenseTypeOffLine = 0,
|
|
783
|
-
|
|
784
|
-
* @brief 在线认证视频特效许可证。
|
|
785
|
-
*
|
|
786
|
-
*/
|
|
490
|
+
|
|
787
491
|
/** {en}
|
|
788
492
|
* @brief Authenticate online.
|
|
789
493
|
*
|
|
@@ -791,19 +495,13 @@ export declare enum VeLiveVideoEffectLicenseType {
|
|
|
791
495
|
VeLiveVideoEffectLicenseTypeOnLine = 1
|
|
792
496
|
}
|
|
793
497
|
export declare enum VeLiveAudioBufferType {
|
|
794
|
-
|
|
795
|
-
* @brief 未知的音频数据类型。
|
|
796
|
-
*
|
|
797
|
-
*/
|
|
498
|
+
|
|
798
499
|
/** {en}
|
|
799
500
|
* @brief Unknown data type.
|
|
800
501
|
*
|
|
801
502
|
*/
|
|
802
503
|
VeLiveAudioBufferTypeUnknown = 0,
|
|
803
|
-
|
|
804
|
-
* @brief ByteBuffer 音频数据类型。
|
|
805
|
-
*
|
|
806
|
-
*/
|
|
504
|
+
|
|
807
505
|
/** {en}
|
|
808
506
|
* @brief ByteBuffer.
|
|
809
507
|
*
|
|
@@ -811,19 +509,13 @@ export declare enum VeLiveAudioBufferType {
|
|
|
811
509
|
VeLiveAudioBufferTypeByteBuffer = 1
|
|
812
510
|
}
|
|
813
511
|
export declare enum VeLiveAudioChannel {
|
|
814
|
-
|
|
815
|
-
* @brief 单声道,适用于语音通信,节省带宽。
|
|
816
|
-
*
|
|
817
|
-
*/
|
|
512
|
+
|
|
818
513
|
/** {en}
|
|
819
514
|
* @brief Mono, which is suitable for voice communication and saves bandwidth.
|
|
820
515
|
*
|
|
821
516
|
*/
|
|
822
517
|
VeLiveAudioChannelMono = 1,
|
|
823
|
-
|
|
824
|
-
* @brief 立体声,适用于音乐播放,提供更丰富的音频体验。
|
|
825
|
-
*
|
|
826
|
-
*/
|
|
518
|
+
|
|
827
519
|
/** {en}
|
|
828
520
|
* @brief Stereo, which provides a richer audio experience and is suitable for music playback.
|
|
829
521
|
*
|
|
@@ -831,37 +523,25 @@ export declare enum VeLiveAudioChannel {
|
|
|
831
523
|
VeLiveAudioChannelStereo = 2
|
|
832
524
|
}
|
|
833
525
|
export declare enum VeLiveFirstFrameType {
|
|
834
|
-
|
|
835
|
-
* @brief 视频/音频采集首帧,采集首帧是从音频设备或视频设备(如麦克风、摄像头)获取的第一帧数据。
|
|
836
|
-
*
|
|
837
|
-
*/
|
|
526
|
+
|
|
838
527
|
/** {en}
|
|
839
528
|
* @brief The first audio or video frame captured by the microphone or the camera.
|
|
840
529
|
*
|
|
841
530
|
*/
|
|
842
531
|
VeLiveFirstCaptureFrame = 0,
|
|
843
|
-
|
|
844
|
-
* @brief 视频渲染首帧,渲染首帧是在渲染过程中在屏幕上显示的第一帧视频数据。
|
|
845
|
-
*
|
|
846
|
-
*/
|
|
532
|
+
|
|
847
533
|
/** {en}
|
|
848
534
|
* @brief The first video frame rendered, which is the first frame displayed on the screen.
|
|
849
535
|
*
|
|
850
536
|
*/
|
|
851
537
|
VeLiveFirstRenderFrame = 1,
|
|
852
|
-
|
|
853
|
-
* @brief 视频/音频编码完成首帧,编码完成首帧是编码为某种特定格式的第一帧数据。
|
|
854
|
-
*
|
|
855
|
-
*/
|
|
538
|
+
|
|
856
539
|
/** {en}
|
|
857
540
|
* @brief The first audio or video frame encoded in a certain format.
|
|
858
541
|
*
|
|
859
542
|
*/
|
|
860
543
|
VeLiveFirstEncodedFrame = 2,
|
|
861
|
-
|
|
862
|
-
* @brief 视频/音频发送首帧,发送首帧是在发送过程中,通过网络传输的第一帧数据。
|
|
863
|
-
*
|
|
864
|
-
*/
|
|
544
|
+
|
|
865
545
|
/** {en}
|
|
866
546
|
* @brief The first audio or video frame transmitted through the network.
|
|
867
547
|
*
|
|
@@ -869,72 +549,48 @@ export declare enum VeLiveFirstFrameType {
|
|
|
869
549
|
VeLiveFirstSendFrame = 3
|
|
870
550
|
}
|
|
871
551
|
export declare enum VeLiveVideoCaptureType {
|
|
872
|
-
|
|
873
|
-
* @brief 使用前置摄像头进行视频采集。
|
|
874
|
-
*
|
|
875
|
-
*/
|
|
552
|
+
|
|
876
553
|
/** {en}
|
|
877
554
|
* @brief Capture the video with the front-facing camera.
|
|
878
555
|
*
|
|
879
556
|
*/
|
|
880
557
|
VeLiveVideoCaptureFrontCamera = 0,
|
|
881
|
-
|
|
882
|
-
* @brief 使用后置摄像头进行视频采集。
|
|
883
|
-
*
|
|
884
|
-
*/
|
|
558
|
+
|
|
885
559
|
/** {en}
|
|
886
560
|
* @brief Capture the video with the rear camera.
|
|
887
561
|
*
|
|
888
562
|
*/
|
|
889
563
|
VeLiveVideoCaptureBackCamera = 1,
|
|
890
|
-
|
|
891
|
-
* @brief 使用设备的双摄进行视频采集。
|
|
892
|
-
*
|
|
893
|
-
*/
|
|
564
|
+
|
|
894
565
|
/** {en}
|
|
895
566
|
* @brief Capture the video with dual cameras.
|
|
896
567
|
*
|
|
897
568
|
*/
|
|
898
|
-
|
|
899
|
-
* @brief 使用屏幕采集。
|
|
900
|
-
*
|
|
901
|
-
*/
|
|
569
|
+
|
|
902
570
|
/** {en}
|
|
903
571
|
* @brief Capture the screen.
|
|
904
572
|
*
|
|
905
573
|
*/
|
|
906
574
|
VeLiveVideoCaptureScreen = 2,
|
|
907
|
-
|
|
908
|
-
* @brief 使用外部设备或源进行视频采集。
|
|
909
|
-
*
|
|
910
|
-
*/
|
|
575
|
+
|
|
911
576
|
/** {en}
|
|
912
577
|
* @brief Capture the video with an external device or source.
|
|
913
578
|
*
|
|
914
579
|
*/
|
|
915
580
|
VeLiveVideoCaptureExternal = 3,
|
|
916
|
-
|
|
917
|
-
* @brief 使用指定的静态图片作为视频源。
|
|
918
|
-
*
|
|
919
|
-
*/
|
|
581
|
+
|
|
920
582
|
/** {en}
|
|
921
583
|
* @brief Use a static image as the video source.
|
|
922
584
|
*
|
|
923
585
|
*/
|
|
924
586
|
VeLiveVideoCaptureCustomImage = 4,
|
|
925
|
-
|
|
926
|
-
* @brief 使用最近采集的一帧图像重复作为视频源。
|
|
927
|
-
*
|
|
928
|
-
*/
|
|
587
|
+
|
|
929
588
|
/** {en}
|
|
930
589
|
* @brief Use the last frame as the video source.
|
|
931
590
|
*
|
|
932
591
|
*/
|
|
933
592
|
VeLiveVideoCaptureLastFrame = 5,
|
|
934
|
-
|
|
935
|
-
* @brief 使用黑色帧作为视频源,一般用于调试或特殊需求。
|
|
936
|
-
*
|
|
937
|
-
*/
|
|
593
|
+
|
|
938
594
|
/** {en}
|
|
939
595
|
* @brief Use a black frame as the video source. This is usually used for debugging purposes or in special circumstances.
|
|
940
596
|
*
|
|
@@ -942,46 +598,31 @@ export declare enum VeLiveVideoCaptureType {
|
|
|
942
598
|
VeLiveVideoCaptureDummyFrame = 6
|
|
943
599
|
}
|
|
944
600
|
export declare enum VeLiveVideoProfile {
|
|
945
|
-
|
|
946
|
-
* @brief 未知的视频配置类型。
|
|
947
|
-
*
|
|
948
|
-
*/
|
|
601
|
+
|
|
949
602
|
/** {en}
|
|
950
603
|
* @brief Unknown codec.
|
|
951
604
|
*
|
|
952
605
|
*/
|
|
953
606
|
VeLiveVideoProfileUnknown = 0,
|
|
954
|
-
|
|
955
|
-
* @brief H.264 编码配置,使用 Baseline 级别。
|
|
956
|
-
*
|
|
957
|
-
*/
|
|
607
|
+
|
|
958
608
|
/** {en}
|
|
959
609
|
* @brief H.264, using Baseline level.
|
|
960
610
|
*
|
|
961
611
|
*/
|
|
962
612
|
VeLiveVideoProfileH264Baseline = 1,
|
|
963
|
-
|
|
964
|
-
* @brief H.264 编码配置,使用 Main 级别。
|
|
965
|
-
*
|
|
966
|
-
*/
|
|
613
|
+
|
|
967
614
|
/** {en}
|
|
968
615
|
* @brief H.264, using Main level.
|
|
969
616
|
*
|
|
970
617
|
*/
|
|
971
618
|
VeLiveVideoProfileH264Main = 2,
|
|
972
|
-
|
|
973
|
-
* @brief H.264 编码配置,使用 High 级别。
|
|
974
|
-
*
|
|
975
|
-
*/
|
|
619
|
+
|
|
976
620
|
/** {en}
|
|
977
621
|
* @brief H.264, using High level.
|
|
978
622
|
*
|
|
979
623
|
*/
|
|
980
624
|
VeLiveVideoProfileH264High = 3,
|
|
981
|
-
|
|
982
|
-
* @brief ByteVC1 编码配置,使用 Main 级别。
|
|
983
|
-
*
|
|
984
|
-
*/
|
|
625
|
+
|
|
985
626
|
/** {en}
|
|
986
627
|
* @brief ByteVC1, using Main level.
|
|
987
628
|
*
|
|
@@ -989,37 +630,25 @@ export declare enum VeLiveVideoProfile {
|
|
|
989
630
|
VeLiveVideoProfileByteVC1Main = 4
|
|
990
631
|
}
|
|
991
632
|
export declare enum VeLiveVideoRotation {
|
|
992
|
-
|
|
993
|
-
* @brief 不旋转。
|
|
994
|
-
*
|
|
995
|
-
*/
|
|
633
|
+
|
|
996
634
|
/** {en}
|
|
997
635
|
* @brief Do not rotate.
|
|
998
636
|
*
|
|
999
637
|
*/
|
|
1000
638
|
VeLiveVideoRotation0 = 0,
|
|
1001
|
-
|
|
1002
|
-
* @brief 顺时针旋转 90 度。
|
|
1003
|
-
*
|
|
1004
|
-
*/
|
|
639
|
+
|
|
1005
640
|
/** {en}
|
|
1006
641
|
* @brief Rotate by 90 degrees clockwise.
|
|
1007
642
|
*
|
|
1008
643
|
*/
|
|
1009
644
|
VeLiveVideoRotation90 = 90,
|
|
1010
|
-
|
|
1011
|
-
* @brief 顺时针旋转 180 度。
|
|
1012
|
-
*
|
|
1013
|
-
*/
|
|
645
|
+
|
|
1014
646
|
/** {en}
|
|
1015
647
|
* @brief Rotate by 180 degrees clockwise.
|
|
1016
648
|
*
|
|
1017
649
|
*/
|
|
1018
650
|
VeLiveVideoRotation180 = 180,
|
|
1019
|
-
|
|
1020
|
-
* @brief 顺时针旋转 270 度。
|
|
1021
|
-
*
|
|
1022
|
-
*/
|
|
651
|
+
|
|
1023
652
|
/** {en}
|
|
1024
653
|
* @brief Rotate by 270 degrees clockwise.
|
|
1025
654
|
*
|
|
@@ -1027,19 +656,13 @@ export declare enum VeLiveVideoRotation {
|
|
|
1027
656
|
VeLiveVideoRotation270 = 270
|
|
1028
657
|
}
|
|
1029
658
|
export declare enum VeLiveVideoFrameSource {
|
|
1030
|
-
|
|
1031
|
-
* @brief 采集到的原始视频帧。这是从设备的摄像头或其他视频输入源获取的视频帧。
|
|
1032
|
-
*
|
|
1033
|
-
*/
|
|
659
|
+
|
|
1034
660
|
/** {en}
|
|
1035
661
|
* @brief The original video frame captured by the camera or other video sources.
|
|
1036
662
|
*
|
|
1037
663
|
*/
|
|
1038
664
|
VeLiveVideoFrameSourceCapture = 1,
|
|
1039
|
-
|
|
1040
|
-
* @brief 编码前的视频帧。这是通过各种处理(例如滤镜、旋转等)后,准备进行编码的视频帧。
|
|
1041
|
-
*
|
|
1042
|
-
*/
|
|
665
|
+
|
|
1043
666
|
/** {en}
|
|
1044
667
|
* @brief The video frame to be encoded after undergoing various processes, such as filtering and rotation.
|
|
1045
668
|
*
|
|
@@ -1047,28 +670,19 @@ export declare enum VeLiveVideoFrameSource {
|
|
|
1047
670
|
VeLiveVideoFrameSourcePreEncode = "1 << 1"
|
|
1048
671
|
}
|
|
1049
672
|
export declare enum VeLiveAudioProfile {
|
|
1050
|
-
|
|
1051
|
-
* @brief LC-AAC 编码方式。
|
|
1052
|
-
*
|
|
1053
|
-
*/
|
|
673
|
+
|
|
1054
674
|
/** {en}
|
|
1055
675
|
* @brief LC-AAC.
|
|
1056
676
|
*
|
|
1057
677
|
*/
|
|
1058
678
|
VeLiveAudioAACProfileLC = 0,
|
|
1059
|
-
|
|
1060
|
-
* @brief HEv1-AAC 编码方式。
|
|
1061
|
-
*
|
|
1062
|
-
*/
|
|
679
|
+
|
|
1063
680
|
/** {en}
|
|
1064
681
|
* @brief HEv1-AAC.
|
|
1065
682
|
*
|
|
1066
683
|
*/
|
|
1067
684
|
VeLiveAudioAACProfileHEv1 = 1,
|
|
1068
|
-
|
|
1069
|
-
* @brief HEv2-AAC 编码方式。
|
|
1070
|
-
*
|
|
1071
|
-
*/
|
|
685
|
+
|
|
1072
686
|
/** {en}
|
|
1073
687
|
* @brief HEv2-AAC.
|
|
1074
688
|
*
|
|
@@ -1076,37 +690,25 @@ export declare enum VeLiveAudioProfile {
|
|
|
1076
690
|
VeLiveAudioAACProfileHEv2 = 2
|
|
1077
691
|
}
|
|
1078
692
|
export declare enum VeLiveVideoBufferType {
|
|
1079
|
-
|
|
1080
|
-
* @brief 未知视频数据类型,当未指定输入视频数据的格式时,会默认为此类型。
|
|
1081
|
-
*
|
|
1082
|
-
*/
|
|
693
|
+
|
|
1083
694
|
/** {en}
|
|
1084
695
|
* @brief Unknown data type, which is the default type if you do not specify any type.
|
|
1085
696
|
*
|
|
1086
697
|
*/
|
|
1087
698
|
VeLiveVideoBufferTypeUnknown = 0,
|
|
1088
|
-
|
|
1089
|
-
* @brief 视频数据类型为 OpenGL 纹理。
|
|
1090
|
-
*
|
|
1091
|
-
*/
|
|
699
|
+
|
|
1092
700
|
/** {en}
|
|
1093
701
|
* @brief OpenGL texture.
|
|
1094
702
|
*
|
|
1095
703
|
*/
|
|
1096
704
|
VeLiveVideoBufferTypeTexture = 1,
|
|
1097
|
-
|
|
1098
|
-
* @brief 视频数据类型为 ByteBuffer 类型。
|
|
1099
|
-
*
|
|
1100
|
-
*/
|
|
705
|
+
|
|
1101
706
|
/** {en}
|
|
1102
707
|
* @brief ByteBuffer.
|
|
1103
708
|
*
|
|
1104
709
|
*/
|
|
1105
710
|
VeLiveVideoBufferTypeByteBuffer = 2,
|
|
1106
|
-
|
|
1107
|
-
* @brief 视频数据类型为 ByteArray 类型。
|
|
1108
|
-
*
|
|
1109
|
-
*/
|
|
711
|
+
|
|
1110
712
|
/** {en}
|
|
1111
713
|
* @brief ByteArray.
|
|
1112
714
|
*
|
|
@@ -1114,12 +716,7 @@ export declare enum VeLiveVideoBufferType {
|
|
|
1114
716
|
VeLiveVideoBufferTypeByteArray = 3
|
|
1115
717
|
}
|
|
1116
718
|
export declare class VeLiveAudioCaptureConfiguration {
|
|
1117
|
-
|
|
1118
|
-
* @detail api
|
|
1119
|
-
* @brief 获取采集音频采样率。
|
|
1120
|
-
* @return 音频采样率,详情请参见 [VeLiveAudioSampleRate](#VeLiveAudioSampleRate)。
|
|
1121
|
-
*
|
|
1122
|
-
*/
|
|
719
|
+
|
|
1123
720
|
/** {en}
|
|
1124
721
|
* @detail api
|
|
1125
722
|
* @brief Gets the sample rate.
|
|
@@ -1127,13 +724,7 @@ export declare class VeLiveAudioCaptureConfiguration {
|
|
|
1127
724
|
*
|
|
1128
725
|
*/
|
|
1129
726
|
getSampleRate(): VeLiveAudioSampleRate;
|
|
1130
|
-
|
|
1131
|
-
* @detail api
|
|
1132
|
-
* @brief 设置采集音频采样率。
|
|
1133
|
-
* @param sampleRate 音频采样率,默认值为 VeLiveAudioSampleRate44100,详情请参见 [VeLiveAudioSampleRate](#VeLiveAudioSampleRate)。
|
|
1134
|
-
* @return 推流音频采集参数配置对象,详情请参见 [VeLiveAudioCaptureConfiguration](#VeLivePusherDef-VeLiveAudioCaptureConfiguration)。
|
|
1135
|
-
*
|
|
1136
|
-
*/
|
|
727
|
+
|
|
1137
728
|
/** {en}
|
|
1138
729
|
* @detail api
|
|
1139
730
|
* @brief Sets the sample rate.
|
|
@@ -1142,12 +733,7 @@ export declare class VeLiveAudioCaptureConfiguration {
|
|
|
1142
733
|
*
|
|
1143
734
|
*/
|
|
1144
735
|
setSampleRate(sampleRate: VeLiveAudioSampleRate): this;
|
|
1145
|
-
|
|
1146
|
-
* @detail api
|
|
1147
|
-
* @brief 获取采集音频声道数。
|
|
1148
|
-
* @return 音频声道数,详情请参见 [VeLiveAudioChannel](#VeLiveAudioChannel)。
|
|
1149
|
-
*
|
|
1150
|
-
*/
|
|
736
|
+
|
|
1151
737
|
/** {en}
|
|
1152
738
|
* @detail api
|
|
1153
739
|
* @brief Gets the number of audio channels.
|
|
@@ -1155,13 +741,7 @@ export declare class VeLiveAudioCaptureConfiguration {
|
|
|
1155
741
|
*
|
|
1156
742
|
*/
|
|
1157
743
|
getChannel(): VeLiveAudioChannel;
|
|
1158
|
-
|
|
1159
|
-
* @detail api
|
|
1160
|
-
* @brief 设置采集音频声道数。
|
|
1161
|
-
* @param channel 音频声道数,默认值为 VeLiveAudioChannelStereo,详情请参见 [VeLiveAudioChannel](#VeLiveAudioChannel)
|
|
1162
|
-
* @return 推流音频采集参数配置对象,详情请参见 [VeLiveAudioCaptureConfiguration](#VeLivePusherDef-VeLiveAudioCaptureConfiguration)。
|
|
1163
|
-
*
|
|
1164
|
-
*/
|
|
744
|
+
|
|
1165
745
|
/** {en}
|
|
1166
746
|
* @detail api
|
|
1167
747
|
* @brief Sets the number of audio channels.
|
|
@@ -1172,28 +752,19 @@ export declare class VeLiveAudioCaptureConfiguration {
|
|
|
1172
752
|
setChannel(channel: VeLiveAudioChannel): this;
|
|
1173
753
|
}
|
|
1174
754
|
export declare class VeLiveStreamMixDescription {
|
|
1175
|
-
|
|
1176
|
-
* @brief 视频混流布局设置的数组,其中每个元素代表一路视频流的布局。详情请参见 [VeLiveMixVideoLayout](#VeLivePusherDef-VeLiveMixVideoLayout)。
|
|
1177
|
-
*
|
|
1178
|
-
*/
|
|
755
|
+
|
|
1179
756
|
/** {en}
|
|
1180
757
|
* @brief An array of video mixing configurations, where each array element represents the mixing configurations of a video stream. See [VeLiveMixVideoLayout](#VeLivePusherDef-VeLiveMixVideoLayout) for details.
|
|
1181
758
|
*
|
|
1182
759
|
*/
|
|
1183
760
|
mixVideoStreams: ArrayList<VeLiveMixVideoLayout>;
|
|
1184
|
-
|
|
1185
|
-
* @brief 音频混流设置的数组,其中每个元素代表一路音频流的。详情请参见 [VeLiveMixAudioLayout](#VeLivePusherDef-VeLiveMixAudioLayout)。
|
|
1186
|
-
*
|
|
1187
|
-
*/
|
|
761
|
+
|
|
1188
762
|
/** {en}
|
|
1189
763
|
* @brief An array of audio mixing configurations, where each array element represents the mixing configurations of an audio stream. See [VeLiveMixAudioLayout](#VeLivePusherDef-VeLiveMixAudioLayout) for details.
|
|
1190
764
|
*
|
|
1191
765
|
*/
|
|
1192
766
|
mixAudioStreams: ArrayList<VeLiveMixAudioLayout>;
|
|
1193
|
-
|
|
1194
|
-
* @brief 视频混流画布的背景色设置,采用 #RRGGBB 格式。
|
|
1195
|
-
*
|
|
1196
|
-
*/
|
|
767
|
+
|
|
1197
768
|
/** {en}
|
|
1198
769
|
* @brief The background color of the mixed video, in #RRGGBB format.
|
|
1199
770
|
*
|
|
@@ -1201,46 +772,31 @@ export declare class VeLiveStreamMixDescription {
|
|
|
1201
772
|
backgroundColor: String;
|
|
1202
773
|
}
|
|
1203
774
|
export declare enum VeLiveAudioSampleRate {
|
|
1204
|
-
|
|
1205
|
-
* @brief 8k 采样。
|
|
1206
|
-
*
|
|
1207
|
-
*/
|
|
775
|
+
|
|
1208
776
|
/** {en}
|
|
1209
777
|
* @brief 8K.
|
|
1210
778
|
*
|
|
1211
779
|
*/
|
|
1212
780
|
VeLiveAudioSampleRate8000 = 8000,
|
|
1213
|
-
|
|
1214
|
-
* @brief 16k 采样。
|
|
1215
|
-
*
|
|
1216
|
-
*/
|
|
781
|
+
|
|
1217
782
|
/** {en}
|
|
1218
783
|
* @brief 16K.
|
|
1219
784
|
*
|
|
1220
785
|
*/
|
|
1221
786
|
VeLiveAudioSampleRate16000 = 16000,
|
|
1222
|
-
|
|
1223
|
-
* @brief 32k 采样。
|
|
1224
|
-
*
|
|
1225
|
-
*/
|
|
787
|
+
|
|
1226
788
|
/** {en}
|
|
1227
789
|
* @brief 32K.
|
|
1228
790
|
*
|
|
1229
791
|
*/
|
|
1230
792
|
VeLiveAudioSampleRate32000 = 32000,
|
|
1231
|
-
|
|
1232
|
-
* @brief 44.1k 采样。
|
|
1233
|
-
*
|
|
1234
|
-
*/
|
|
793
|
+
|
|
1235
794
|
/** {en}
|
|
1236
795
|
* @brief 44.1K.
|
|
1237
796
|
*
|
|
1238
797
|
*/
|
|
1239
798
|
VeLiveAudioSampleRate44100 = 44100,
|
|
1240
|
-
|
|
1241
|
-
* @brief 48k 采样。
|
|
1242
|
-
*
|
|
1243
|
-
*/
|
|
799
|
+
|
|
1244
800
|
/** {en}
|
|
1245
801
|
* @brief 48K.
|
|
1246
802
|
*
|
|
@@ -1248,55 +804,37 @@ export declare enum VeLiveAudioSampleRate {
|
|
|
1248
804
|
VeLiveAudioSampleRate48000 = 48000
|
|
1249
805
|
}
|
|
1250
806
|
export declare enum VeLiveAudioPowerLevel {
|
|
1251
|
-
|
|
1252
|
-
* @brief 无声,音量 ≤1db。
|
|
1253
|
-
*
|
|
1254
|
-
*/
|
|
807
|
+
|
|
1255
808
|
/** {en}
|
|
1256
809
|
* @brief Muted. The volume is 1 dB or less.
|
|
1257
810
|
*
|
|
1258
811
|
*/
|
|
1259
812
|
VeLiveAudioPowerLevelSilent = 0,
|
|
1260
|
-
|
|
1261
|
-
* @brief 安静,音量 15db 以下。
|
|
1262
|
-
*
|
|
1263
|
-
*/
|
|
813
|
+
|
|
1264
814
|
/** {en}
|
|
1265
815
|
* @brief Quiet. The volume is below 15 dB.
|
|
1266
816
|
*
|
|
1267
817
|
*/
|
|
1268
818
|
VeLiveAudioPowerLevelQuiet = 1,
|
|
1269
|
-
|
|
1270
|
-
* @brief 轻声,接近耳语音量,音量为 16db~30db 之间。
|
|
1271
|
-
*
|
|
1272
|
-
*/
|
|
819
|
+
|
|
1273
820
|
/** {en}
|
|
1274
821
|
* @brief Soft, close to whisper. The volume is between 16 dB and 30 dB.
|
|
1275
822
|
*
|
|
1276
823
|
*/
|
|
1277
824
|
VeLiveAudioPowerLevelLight = 2,
|
|
1278
|
-
|
|
1279
|
-
* @brief 正常,音量适宜,类似正常对话的音量,音量为 30db~60db 之间。
|
|
1280
|
-
*
|
|
1281
|
-
*/
|
|
825
|
+
|
|
1282
826
|
/** {en}
|
|
1283
827
|
* @brief Normal, similar to the volume in a daily conversation. The volume is between 30 dB and 60 dB.
|
|
1284
828
|
*
|
|
1285
829
|
*/
|
|
1286
830
|
VeLiveAudioPowerLevelNormal = 3,
|
|
1287
|
-
|
|
1288
|
-
* @brief 较大,音量较高,类似咖啡馆、餐厅的环境噪音,音量为 61db~85db 之间。
|
|
1289
|
-
*
|
|
1290
|
-
*/
|
|
831
|
+
|
|
1291
832
|
/** {en}
|
|
1292
833
|
* @brief Loud, similar to the volume of the noise at cafes. The volume is between 61 dB and 85 dB.
|
|
1293
834
|
*
|
|
1294
835
|
*/
|
|
1295
836
|
VeLiveAudioPowerLevelLoud = 4,
|
|
1296
|
-
|
|
1297
|
-
* @brief 吵闹,音量极高,类似于繁忙的街道或者是音乐会现场,音量超过 85db。
|
|
1298
|
-
*
|
|
1299
|
-
*/
|
|
837
|
+
|
|
1300
838
|
/** {en}
|
|
1301
839
|
* @brief Noisy, similar to the volume of the noise on a busy street or at a concert. The volume is higher than 85 dB.
|
|
1302
840
|
*
|
|
@@ -1304,12 +842,7 @@ export declare enum VeLiveAudioPowerLevel {
|
|
|
1304
842
|
VeLiveAudioPowerLevelNoise = 5
|
|
1305
843
|
}
|
|
1306
844
|
export declare class VeLiveVideoCaptureConfiguration {
|
|
1307
|
-
|
|
1308
|
-
* @detail api
|
|
1309
|
-
* @brief 获取采集视频宽度。
|
|
1310
|
-
* @return 采集视频宽度。
|
|
1311
|
-
*
|
|
1312
|
-
*/
|
|
845
|
+
|
|
1313
846
|
/** {en}
|
|
1314
847
|
* @detail api
|
|
1315
848
|
* @brief Gets the width of the captured video.
|
|
@@ -1317,13 +850,7 @@ export declare class VeLiveVideoCaptureConfiguration {
|
|
|
1317
850
|
*
|
|
1318
851
|
*/
|
|
1319
852
|
getWidth(): int;
|
|
1320
|
-
|
|
1321
|
-
* @detail api
|
|
1322
|
-
* @brief 设置采集视频宽度。
|
|
1323
|
-
* @param width 采集视频宽度,默认值为 720。
|
|
1324
|
-
* @return 推流视频采集参数配置对象,详情请参见 [VeLiveVideoCaptureConfiguration](#VeLivePusherDef-VeLiveVideoCaptureConfiguration)。
|
|
1325
|
-
*
|
|
1326
|
-
*/
|
|
853
|
+
|
|
1327
854
|
/** {en}
|
|
1328
855
|
* @detail api
|
|
1329
856
|
* @brief Sets the width of the captured video.
|
|
@@ -1332,13 +859,7 @@ export declare class VeLiveVideoCaptureConfiguration {
|
|
|
1332
859
|
*
|
|
1333
860
|
*/
|
|
1334
861
|
setWidth(width: int): this;
|
|
1335
|
-
|
|
1336
|
-
* @detail api
|
|
1337
|
-
* @brief 获取采集视频高度。
|
|
1338
|
-
* @return <br>
|
|
1339
|
-
* 采集视频高度。
|
|
1340
|
-
*
|
|
1341
|
-
*/
|
|
862
|
+
|
|
1342
863
|
/** {en}
|
|
1343
864
|
* @detail api
|
|
1344
865
|
* @brief Gets the height of the captured video.
|
|
@@ -1347,13 +868,7 @@ export declare class VeLiveVideoCaptureConfiguration {
|
|
|
1347
868
|
*
|
|
1348
869
|
*/
|
|
1349
870
|
getHeight(): int;
|
|
1350
|
-
|
|
1351
|
-
* @detail api
|
|
1352
|
-
* @brief 设置采集视频高度。
|
|
1353
|
-
* @param height 采集视频高度,默认值为 1280。
|
|
1354
|
-
* @return 推流视频采集参数配置对象,详情请参见 [VeLiveVideoCaptureConfiguration](#VeLivePusherDef-VeLiveVideoCaptureConfiguration)。
|
|
1355
|
-
*
|
|
1356
|
-
*/
|
|
871
|
+
|
|
1357
872
|
/** {en}
|
|
1358
873
|
* @detail api
|
|
1359
874
|
* @brief Sets the height of the captured video.
|
|
@@ -1362,13 +877,7 @@ export declare class VeLiveVideoCaptureConfiguration {
|
|
|
1362
877
|
*
|
|
1363
878
|
*/
|
|
1364
879
|
setHeight(height: int): this;
|
|
1365
|
-
|
|
1366
|
-
* @detail api
|
|
1367
|
-
* @brief 获取采集视频帧率。
|
|
1368
|
-
* @return <br>
|
|
1369
|
-
* 采集视频帧率。
|
|
1370
|
-
*
|
|
1371
|
-
*/
|
|
880
|
+
|
|
1372
881
|
/** {en}
|
|
1373
882
|
* @detail api
|
|
1374
883
|
* @brief Gets the captured frame rate.
|
|
@@ -1376,13 +885,7 @@ export declare class VeLiveVideoCaptureConfiguration {
|
|
|
1376
885
|
*
|
|
1377
886
|
*/
|
|
1378
887
|
getFps(): int;
|
|
1379
|
-
|
|
1380
|
-
* @detail api
|
|
1381
|
-
* @brief 设置采集视频帧率。
|
|
1382
|
-
* @param fps 采集视频帧率,默认值为 15。
|
|
1383
|
-
* @return 推流视频采集参数配置对象,详情请参见 [VeLiveVideoCaptureConfiguration](#VeLivePusherDef-VeLiveVideoCaptureConfiguration)。
|
|
1384
|
-
*
|
|
1385
|
-
*/
|
|
888
|
+
|
|
1386
889
|
/** {en}
|
|
1387
890
|
* @detail api
|
|
1388
891
|
* @brief Sets the captured frame rate.
|
|
@@ -1393,55 +896,37 @@ export declare class VeLiveVideoCaptureConfiguration {
|
|
|
1393
896
|
setFps(fps: int): this;
|
|
1394
897
|
}
|
|
1395
898
|
export declare enum VeLivePixelFormat {
|
|
1396
|
-
|
|
1397
|
-
* @brief 未知格式。
|
|
1398
|
-
*
|
|
1399
|
-
*/
|
|
899
|
+
|
|
1400
900
|
/** {en}
|
|
1401
901
|
* @brief Unknown format.
|
|
1402
902
|
*
|
|
1403
903
|
*/
|
|
1404
904
|
VeLivePixelFormatUnknown = 0,
|
|
1405
|
-
|
|
1406
|
-
* @brief I420 格式。
|
|
1407
|
-
*
|
|
1408
|
-
*/
|
|
905
|
+
|
|
1409
906
|
/** {en}
|
|
1410
907
|
* @brief I420.
|
|
1411
908
|
*
|
|
1412
909
|
*/
|
|
1413
910
|
VeLivePixelFormatI420 = 1,
|
|
1414
|
-
|
|
1415
|
-
* @brief NV12 格式。
|
|
1416
|
-
*
|
|
1417
|
-
*/
|
|
911
|
+
|
|
1418
912
|
/** {en}
|
|
1419
913
|
* @brief NV12.
|
|
1420
914
|
*
|
|
1421
915
|
*/
|
|
1422
916
|
VeLivePixelFormatNV12 = 2,
|
|
1423
|
-
|
|
1424
|
-
* @brief NV21 格式。
|
|
1425
|
-
*
|
|
1426
|
-
*/
|
|
917
|
+
|
|
1427
918
|
/** {en}
|
|
1428
919
|
* @brief NV21.
|
|
1429
920
|
*
|
|
1430
921
|
*/
|
|
1431
922
|
VeLivePixelFormatNV21 = 3,
|
|
1432
|
-
|
|
1433
|
-
* @brief 2D 纹理格式。
|
|
1434
|
-
*
|
|
1435
|
-
*/
|
|
923
|
+
|
|
1436
924
|
/** {en}
|
|
1437
925
|
* @brief 2D texture.
|
|
1438
926
|
*
|
|
1439
927
|
*/
|
|
1440
928
|
VeLivePixelFormat2DTexture = 4,
|
|
1441
|
-
|
|
1442
|
-
* @brief OES 纹理格式。
|
|
1443
|
-
*
|
|
1444
|
-
*/
|
|
929
|
+
|
|
1445
930
|
/** {en}
|
|
1446
931
|
* @brief OES texture.
|
|
1447
932
|
*
|
|
@@ -1449,64 +934,43 @@ export declare enum VeLivePixelFormat {
|
|
|
1449
934
|
VeLivePixelFormatOesTexture = 5
|
|
1450
935
|
}
|
|
1451
936
|
export declare enum VeLivePusherStatus {
|
|
1452
|
-
|
|
1453
|
-
* @brief 初始状态。
|
|
1454
|
-
*
|
|
1455
|
-
*/
|
|
937
|
+
|
|
1456
938
|
/** {en}
|
|
1457
939
|
* @brief The initial state.
|
|
1458
940
|
*
|
|
1459
941
|
*/
|
|
1460
942
|
VeLivePushStatusNone = 0,
|
|
1461
|
-
|
|
1462
|
-
* @brief 正在连接服务器。
|
|
1463
|
-
*
|
|
1464
|
-
*/
|
|
943
|
+
|
|
1465
944
|
/** {en}
|
|
1466
945
|
* @brief Connecting to the server.
|
|
1467
946
|
*
|
|
1468
947
|
*/
|
|
1469
948
|
VeLivePushStatusConnecting = 1,
|
|
1470
|
-
|
|
1471
|
-
* @brief 连接服务器成功。
|
|
1472
|
-
*
|
|
1473
|
-
*/
|
|
949
|
+
|
|
1474
950
|
/** {en}
|
|
1475
951
|
* @brief The connection with the server is established.
|
|
1476
952
|
*
|
|
1477
953
|
*/
|
|
1478
954
|
VeLivePushStatusConnectSuccess = 2,
|
|
1479
|
-
|
|
1480
|
-
* @brief 重连服务器中。
|
|
1481
|
-
*
|
|
1482
|
-
*/
|
|
955
|
+
|
|
1483
956
|
/** {en}
|
|
1484
957
|
* @brief Reconnecting to the server.
|
|
1485
958
|
*
|
|
1486
959
|
*/
|
|
1487
960
|
VeLivePushStatusReconnecting = 3,
|
|
1488
|
-
|
|
1489
|
-
* @brief 推流连接被终止。
|
|
1490
|
-
*
|
|
1491
|
-
*/
|
|
961
|
+
|
|
1492
962
|
/** {en}
|
|
1493
963
|
* @brief Stops connecting to the server.
|
|
1494
964
|
*
|
|
1495
965
|
*/
|
|
1496
966
|
VeLivePushStatusConnectStop = 4,
|
|
1497
|
-
|
|
1498
|
-
* @brief 推流连接失败。
|
|
1499
|
-
*
|
|
1500
|
-
*/
|
|
967
|
+
|
|
1501
968
|
/** {en}
|
|
1502
969
|
* @brief Fails to connect to the server.
|
|
1503
970
|
*
|
|
1504
971
|
*/
|
|
1505
972
|
VeLivePushStatusConnectError = 5,
|
|
1506
|
-
|
|
1507
|
-
* @brief 与服务器断开连接。
|
|
1508
|
-
*
|
|
1509
|
-
*/
|
|
973
|
+
|
|
1510
974
|
/** {en}
|
|
1511
975
|
* @brief The connection with the server is lost.
|
|
1512
976
|
*
|
|
@@ -1514,16 +978,7 @@ export declare enum VeLivePusherStatus {
|
|
|
1514
978
|
VeLivePushStatusDisconnected = 6
|
|
1515
979
|
}
|
|
1516
980
|
export declare enum VeLiveVideoResolution {
|
|
1517
|
-
|
|
1518
|
-
* @brief 360P 分辨率。档位详细配置如下所示。
|
|
1519
|
-
* - 横屏分辨率:640x360
|
|
1520
|
-
* - 竖屏分辨率:360x640
|
|
1521
|
-
* - 帧率:15fps
|
|
1522
|
-
* - 目标码率:500kbps
|
|
1523
|
-
* - 最小码率:250kbps
|
|
1524
|
-
* - 最大码率:800kbps
|
|
1525
|
-
*
|
|
1526
|
-
*/
|
|
981
|
+
|
|
1527
982
|
/** {en}
|
|
1528
983
|
* @brief 360P.
|
|
1529
984
|
* - Resolution in landscape mode: 640x360
|
|
@@ -1535,16 +990,7 @@ export declare enum VeLiveVideoResolution {
|
|
|
1535
990
|
*
|
|
1536
991
|
*/
|
|
1537
992
|
VeLiveVideoResolution360P = "VeLiveVideoResolution360P",
|
|
1538
|
-
|
|
1539
|
-
* @brief 480P 分辨率。档位详细配置如下所示。
|
|
1540
|
-
* - 横屏分辨率:864x480
|
|
1541
|
-
* - 竖屏分辨率:480x864
|
|
1542
|
-
* - 帧率:15fps
|
|
1543
|
-
* - 目标码率:800kbps
|
|
1544
|
-
* - 最小码率:320kbps
|
|
1545
|
-
* - 最大码率:1266kbps
|
|
1546
|
-
*
|
|
1547
|
-
*/
|
|
993
|
+
|
|
1548
994
|
/** {en}
|
|
1549
995
|
* @brief 480P.
|
|
1550
996
|
* - Resolution in landscape mode: 864x480
|
|
@@ -1556,16 +1002,7 @@ export declare enum VeLiveVideoResolution {
|
|
|
1556
1002
|
*
|
|
1557
1003
|
*/
|
|
1558
1004
|
VeLiveVideoResolution480P = "VeLiveVideoResolution480P",
|
|
1559
|
-
|
|
1560
|
-
* @brief 540P 分辨率。档位详细配置如下所示。
|
|
1561
|
-
* - 横屏 960x540
|
|
1562
|
-
* - 竖屏 540x960
|
|
1563
|
-
* - 帧率:15fps
|
|
1564
|
-
* - 目标码率:1000kbps
|
|
1565
|
-
* - 最小码率:500kbps
|
|
1566
|
-
* - 最大码率:1520kbps
|
|
1567
|
-
*
|
|
1568
|
-
*/
|
|
1005
|
+
|
|
1569
1006
|
/** {en}
|
|
1570
1007
|
* @brief 540P.
|
|
1571
1008
|
* - Resolution in landscape mode: 960x540
|
|
@@ -1577,16 +1014,7 @@ export declare enum VeLiveVideoResolution {
|
|
|
1577
1014
|
*
|
|
1578
1015
|
*/
|
|
1579
1016
|
VeLiveVideoResolution540P = "VeLiveVideoResolution540P",
|
|
1580
|
-
|
|
1581
|
-
* @brief 720P 分辨率。档位详细配置如下所示。
|
|
1582
|
-
* - 横屏 1280x720
|
|
1583
|
-
* - 竖屏 720x1280
|
|
1584
|
-
* - 帧率:15fps
|
|
1585
|
-
* - 目标码率:1200kbps
|
|
1586
|
-
* - 最小码率:800kbps
|
|
1587
|
-
* - 最大码率:1900kbps
|
|
1588
|
-
*
|
|
1589
|
-
*/
|
|
1017
|
+
|
|
1590
1018
|
/** {en}
|
|
1591
1019
|
* @brief 720P.
|
|
1592
1020
|
* - Resolution in landscape mode: 1280x720
|
|
@@ -1598,16 +1026,7 @@ export declare enum VeLiveVideoResolution {
|
|
|
1598
1026
|
*
|
|
1599
1027
|
*/
|
|
1600
1028
|
VeLiveVideoResolution720P = "VeLiveVideoResolution720P",
|
|
1601
|
-
|
|
1602
|
-
* @brief 1080P 分辨率。档位详细配置如下所示。
|
|
1603
|
-
* - 横屏 1920x1080
|
|
1604
|
-
* - 竖屏 1080x1920
|
|
1605
|
-
* - 帧率:20 fps
|
|
1606
|
-
* - 目标码率:2500kbps
|
|
1607
|
-
* - 最小码率:1000kbps
|
|
1608
|
-
* - 最大码率:3800kbps
|
|
1609
|
-
*
|
|
1610
|
-
*/
|
|
1029
|
+
|
|
1611
1030
|
/** {en}
|
|
1612
1031
|
* @brief 1080P.
|
|
1613
1032
|
* - Resolution in landscape mode: 1920x1080
|
|
@@ -1622,12 +1041,7 @@ export declare enum VeLiveVideoResolution {
|
|
|
1622
1041
|
}
|
|
1623
1042
|
export declare class VeLiveAudioFrame {
|
|
1624
1043
|
constructor();
|
|
1625
|
-
|
|
1626
|
-
* @detail api
|
|
1627
|
-
* @brief 获取音频数据类型。
|
|
1628
|
-
* @return 音频数据类型,详情请参见 [VeLiveAudioBufferType](#VeLiveAudioBufferType)。
|
|
1629
|
-
*
|
|
1630
|
-
*/
|
|
1044
|
+
|
|
1631
1045
|
/** {en}
|
|
1632
1046
|
* @detail api
|
|
1633
1047
|
* @brief Gets the audio data type.
|
|
@@ -1635,12 +1049,7 @@ export declare class VeLiveAudioFrame {
|
|
|
1635
1049
|
*
|
|
1636
1050
|
*/
|
|
1637
1051
|
getBufferType(): VeLiveAudioBufferType;
|
|
1638
|
-
|
|
1639
|
-
* @detail api
|
|
1640
|
-
* @brief 获取音频采样率。
|
|
1641
|
-
* @return 音频采样率,详情请参见 [VeLiveAudioSampleRate](#VeLiveAudioSampleRate)。
|
|
1642
|
-
*
|
|
1643
|
-
*/
|
|
1052
|
+
|
|
1644
1053
|
/** {en}
|
|
1645
1054
|
* @detail api
|
|
1646
1055
|
* @brief Gets the audio sample rate.
|
|
@@ -1648,12 +1057,7 @@ export declare class VeLiveAudioFrame {
|
|
|
1648
1057
|
*
|
|
1649
1058
|
*/
|
|
1650
1059
|
getSampleRate(): VeLiveAudioSampleRate;
|
|
1651
|
-
|
|
1652
|
-
* @detail api
|
|
1653
|
-
* @brief 获取音频声道数。
|
|
1654
|
-
* @return 音频声道数,详情请参见 [VeLiveAudioChannel](#VeLiveAudioChannel)。
|
|
1655
|
-
*
|
|
1656
|
-
*/
|
|
1060
|
+
|
|
1657
1061
|
/** {en}
|
|
1658
1062
|
* @detail api
|
|
1659
1063
|
* @brief Gets the number of audio channels.
|
|
@@ -1661,12 +1065,7 @@ export declare class VeLiveAudioFrame {
|
|
|
1661
1065
|
*
|
|
1662
1066
|
*/
|
|
1663
1067
|
getChannels(): VeLiveAudioChannel;
|
|
1664
|
-
|
|
1665
|
-
* @detail api
|
|
1666
|
-
* @brief 获取每个声道的采样点数。
|
|
1667
|
-
* @return 采样点数。
|
|
1668
|
-
*
|
|
1669
|
-
*/
|
|
1068
|
+
|
|
1670
1069
|
/** {en}
|
|
1671
1070
|
* @detail api
|
|
1672
1071
|
* @brief Get the number of sampling points of each channel.
|
|
@@ -1674,13 +1073,7 @@ export declare class VeLiveAudioFrame {
|
|
|
1674
1073
|
*
|
|
1675
1074
|
*/
|
|
1676
1075
|
getSamplesPerChannel(): int;
|
|
1677
|
-
|
|
1678
|
-
* @detail api
|
|
1679
|
-
* @brief 获取音频时间戳,单位为 μs。
|
|
1680
|
-
* @return <br>
|
|
1681
|
-
* 音频时间戳,单位为 μs。
|
|
1682
|
-
*
|
|
1683
|
-
*/
|
|
1076
|
+
|
|
1684
1077
|
/** {en}
|
|
1685
1078
|
* @detail api
|
|
1686
1079
|
* @brief Gets the audio timestamp, in μs.
|
|
@@ -1689,13 +1082,7 @@ export declare class VeLiveAudioFrame {
|
|
|
1689
1082
|
*
|
|
1690
1083
|
*/
|
|
1691
1084
|
getPts(): long;
|
|
1692
|
-
|
|
1693
|
-
* @detail api
|
|
1694
|
-
* @brief 获取音频数据。音频帧数据为小端字节序存储。
|
|
1695
|
-
* @return <br>
|
|
1696
|
-
* 格式为 ByteBuffer 的音频数据。
|
|
1697
|
-
*
|
|
1698
|
-
*/
|
|
1085
|
+
|
|
1699
1086
|
/** {en}
|
|
1700
1087
|
* @detail api
|
|
1701
1088
|
* @brief Gets the audio data. The audio data is stored in little-endian byte order.
|
|
@@ -1706,37 +1093,25 @@ export declare class VeLiveAudioFrame {
|
|
|
1706
1093
|
getBuffer(): ByteBuffer;
|
|
1707
1094
|
}
|
|
1708
1095
|
export declare enum VeLiveNetworkQuality {
|
|
1709
|
-
|
|
1710
|
-
* @brief 未查询到网络状态。
|
|
1711
|
-
*
|
|
1712
|
-
*/
|
|
1096
|
+
|
|
1713
1097
|
/** {en}
|
|
1714
1098
|
* @brief Network status not found.
|
|
1715
1099
|
*
|
|
1716
1100
|
*/
|
|
1717
1101
|
VeLiveNetworkQualityUnknown = 0,
|
|
1718
|
-
|
|
1719
|
-
* @brief 网络差。
|
|
1720
|
-
*
|
|
1721
|
-
*/
|
|
1102
|
+
|
|
1722
1103
|
/** {en}
|
|
1723
1104
|
* @brief Bad network condition.
|
|
1724
1105
|
*
|
|
1725
1106
|
*/
|
|
1726
1107
|
VeLiveNetworkQualityBad = 1,
|
|
1727
|
-
|
|
1728
|
-
* @brief 网络一般。
|
|
1729
|
-
*
|
|
1730
|
-
*/
|
|
1108
|
+
|
|
1731
1109
|
/** {en}
|
|
1732
1110
|
* @brief Poor network condition.
|
|
1733
1111
|
*
|
|
1734
1112
|
*/
|
|
1735
1113
|
VeLiveNetworkQualityPoor = 2,
|
|
1736
|
-
|
|
1737
|
-
* @brief 网络状态佳。
|
|
1738
|
-
*
|
|
1739
|
-
*/
|
|
1114
|
+
|
|
1740
1115
|
/** {en}
|
|
1741
1116
|
* @brief Good network condition.
|
|
1742
1117
|
*
|
|
@@ -1744,55 +1119,37 @@ export declare enum VeLiveNetworkQuality {
|
|
|
1744
1119
|
VeLiveNetworkQualityGood = 3
|
|
1745
1120
|
}
|
|
1746
1121
|
export declare enum VeLivePusherLogLevel {
|
|
1747
|
-
|
|
1748
|
-
* @brief 输出 VERBOSE、DEBUG、INFO、WARNING 和 ERROR 级别的日志。
|
|
1749
|
-
*
|
|
1750
|
-
*/
|
|
1122
|
+
|
|
1751
1123
|
/** {en}
|
|
1752
1124
|
* @brief Output VERBOSE, DEBUG, INFO, WARNING and ERROR.
|
|
1753
1125
|
*
|
|
1754
1126
|
*/
|
|
1755
1127
|
VeLiveLogLevelVerbose = 0,
|
|
1756
|
-
|
|
1757
|
-
* @brief 输出 DEBUG、INFO、WARNING 和 ERROR 级别的日志。
|
|
1758
|
-
*
|
|
1759
|
-
*/
|
|
1128
|
+
|
|
1760
1129
|
/** {en}
|
|
1761
1130
|
* @brief Output DEBUG, INFO, WARNING and ERROR.
|
|
1762
1131
|
*
|
|
1763
1132
|
*/
|
|
1764
1133
|
VeLiveLogLevelDebug = 1,
|
|
1765
|
-
|
|
1766
|
-
* @brief 输出 INFO、WARNING 和 ERROR 级别的日志。
|
|
1767
|
-
*
|
|
1768
|
-
*/
|
|
1134
|
+
|
|
1769
1135
|
/** {en}
|
|
1770
1136
|
* @brief Output INFO, WARNING and ERROR.
|
|
1771
1137
|
*
|
|
1772
1138
|
*/
|
|
1773
1139
|
VeLiveLogLevelInfo = 2,
|
|
1774
|
-
|
|
1775
|
-
* @brief 输出 WARNING 和 ERROR 级别的日志。
|
|
1776
|
-
*
|
|
1777
|
-
*/
|
|
1140
|
+
|
|
1778
1141
|
/** {en}
|
|
1779
1142
|
* @brief Output WARNING and ERROR.
|
|
1780
1143
|
*
|
|
1781
1144
|
*/
|
|
1782
1145
|
VeLiveLogLevelWarn = 3,
|
|
1783
|
-
|
|
1784
|
-
* @brief 输出 ERROR 级别的日志。
|
|
1785
|
-
*
|
|
1786
|
-
*/
|
|
1146
|
+
|
|
1787
1147
|
/** {en}
|
|
1788
1148
|
* @brief Output ERROR.
|
|
1789
1149
|
*
|
|
1790
1150
|
*/
|
|
1791
1151
|
VeLiveLogLevelError = 4,
|
|
1792
|
-
|
|
1793
|
-
* @brief 关闭日志。
|
|
1794
|
-
*
|
|
1795
|
-
*/
|
|
1152
|
+
|
|
1796
1153
|
/** {en}
|
|
1797
1154
|
* @brief Disable logging.
|
|
1798
1155
|
*
|
|
@@ -1800,10 +1157,7 @@ export declare enum VeLivePusherLogLevel {
|
|
|
1800
1157
|
VeLiveLogLevelNone = 5
|
|
1801
1158
|
}
|
|
1802
1159
|
export declare enum VeLiveAudioBitDepth {
|
|
1803
|
-
|
|
1804
|
-
* @brief 16bit 位深度。
|
|
1805
|
-
*
|
|
1806
|
-
*/
|
|
1160
|
+
|
|
1807
1161
|
/** {en}
|
|
1808
1162
|
* @brief 16bit.
|
|
1809
1163
|
*
|
|
@@ -1811,32 +1165,20 @@ export declare enum VeLiveAudioBitDepth {
|
|
|
1811
1165
|
VeLiveAudioBitDepth16 = 16
|
|
1812
1166
|
}
|
|
1813
1167
|
export declare class VeLiveMixAudioLayout {
|
|
1814
|
-
|
|
1815
|
-
* @brief 音频流 ID,唯一标识,用于区分不同的音频流。
|
|
1816
|
-
*
|
|
1817
|
-
*/
|
|
1168
|
+
|
|
1818
1169
|
/** {en}
|
|
1819
1170
|
* @brief The unique identifier for an audio stream.
|
|
1820
1171
|
*
|
|
1821
1172
|
*/
|
|
1822
1173
|
streamId: int;
|
|
1823
|
-
|
|
1824
|
-
* @detail api
|
|
1825
|
-
* @brief 混流音频的音量,范围为 [0.0,4.0]。当您将 [VeLiveAudioMixType](#VeLiveAudioMixType) 设置为 `VeLiveAudioMixPlayAndPush` 时,该变量同时控制混流音频在拉流端和本地的播放音量。
|
|
1826
|
-
*
|
|
1827
|
-
*/
|
|
1174
|
+
|
|
1828
1175
|
/** {en}
|
|
1829
1176
|
* @detail api
|
|
1830
1177
|
* @brief The volume of the mixed audio stream. The value range is [0.0,4.0]. If you set [VeLiveAudioMixType](#VeLiveAudioMixType) to `VeLiveAudioMixPlayAndPush`, this variable takes effect on both the host and the audience sides.
|
|
1831
1178
|
*
|
|
1832
1179
|
*/
|
|
1833
1180
|
volume: float;
|
|
1834
|
-
|
|
1835
|
-
* @detail api
|
|
1836
|
-
* @brief 更新音频混流设置。
|
|
1837
|
-
* @param other 新的音频混流设置,详情请参见 [VeLiveMixAudioLayout](#VeLivePusherDef-VeLiveMixAudioLayout)。
|
|
1838
|
-
*
|
|
1839
|
-
*/
|
|
1181
|
+
|
|
1840
1182
|
/** {en}
|
|
1841
1183
|
* @detail api
|
|
1842
1184
|
* @brief Updates audio mixing configurations.
|
|
@@ -1846,13 +1188,7 @@ export declare class VeLiveMixAudioLayout {
|
|
|
1846
1188
|
update(other: VeLiveMixAudioLayout): void;
|
|
1847
1189
|
}
|
|
1848
1190
|
export declare class VeLivePusherConfiguration {
|
|
1849
|
-
|
|
1850
|
-
* @detail api
|
|
1851
|
-
* @brief 设置推流器推流失败后尝试重连的时间间隔。
|
|
1852
|
-
* @param interval 时间间隔,单位为 s,默认值为 5
|
|
1853
|
-
* @order 2
|
|
1854
|
-
*
|
|
1855
|
-
*/
|
|
1191
|
+
|
|
1856
1192
|
/** {en}
|
|
1857
1193
|
* @detail api
|
|
1858
1194
|
* @brief Sets the time interval between each attempt to reconnect.
|
|
@@ -1861,14 +1197,7 @@ export declare class VeLivePusherConfiguration {
|
|
|
1861
1197
|
*
|
|
1862
1198
|
*/
|
|
1863
1199
|
setReconnectIntervalSeconds(interval: int): this;
|
|
1864
|
-
|
|
1865
|
-
* @detail api
|
|
1866
|
-
* @brief 获取推流器推流失败后尝试重连的时间间隔。
|
|
1867
|
-
* @order 3
|
|
1868
|
-
* @return <br>
|
|
1869
|
-
* 时间间隔,单位为 s。
|
|
1870
|
-
*
|
|
1871
|
-
*/
|
|
1200
|
+
|
|
1872
1201
|
/** {en}
|
|
1873
1202
|
* @detail api
|
|
1874
1203
|
* @brief Gets the time interval between each attempt to reconnect.
|
|
@@ -1878,13 +1207,7 @@ export declare class VeLivePusherConfiguration {
|
|
|
1878
1207
|
*
|
|
1879
1208
|
*/
|
|
1880
1209
|
getReconnectIntervalSeconds(): int;
|
|
1881
|
-
|
|
1882
|
-
* @detail api
|
|
1883
|
-
* @brief 设置推流器推流失败后尝试重连的次数。
|
|
1884
|
-
* @param maxCount 重连次数,默认值为 3
|
|
1885
|
-
* @order 4
|
|
1886
|
-
*
|
|
1887
|
-
*/
|
|
1210
|
+
|
|
1888
1211
|
/** {en}
|
|
1889
1212
|
* @detail api
|
|
1890
1213
|
* @brief Sets the number of attempts to reconnect after the initial attempt fails.
|
|
@@ -1893,14 +1216,7 @@ export declare class VeLivePusherConfiguration {
|
|
|
1893
1216
|
*
|
|
1894
1217
|
*/
|
|
1895
1218
|
setReconnectCount(maxCount: int): this;
|
|
1896
|
-
|
|
1897
|
-
* @detail api
|
|
1898
|
-
* @brief 获取推流器推流失败后尝试重连的次数。
|
|
1899
|
-
* @order 5
|
|
1900
|
-
* @return <br>
|
|
1901
|
-
* 重连次数。
|
|
1902
|
-
*
|
|
1903
|
-
*/
|
|
1219
|
+
|
|
1904
1220
|
/** {en}
|
|
1905
1221
|
* @detail api
|
|
1906
1222
|
* @brief Gets the number of attempts to reconnect after the initial attempt fails.
|
|
@@ -1910,14 +1226,7 @@ export declare class VeLivePusherConfiguration {
|
|
|
1910
1226
|
*
|
|
1911
1227
|
*/
|
|
1912
1228
|
getReconnectCount(): int;
|
|
1913
|
-
|
|
1914
|
-
* @detail api
|
|
1915
|
-
* @brief 设置视频采集参数,用于调整和设置视频采集相关的参数。
|
|
1916
|
-
* @order 6
|
|
1917
|
-
* @param config 视频采集参数,详情请参见 [VeLiveVideoCaptureConfiguration](#VeLivePusherDef-VeLiveVideoCaptureConfiguration)。
|
|
1918
|
-
* @return 推流引擎初始化配置对象,详情请参见 [VeLivePusherConfiguration](#VeLivePusherConfiguration)。
|
|
1919
|
-
*
|
|
1920
|
-
*/
|
|
1229
|
+
|
|
1921
1230
|
/** {en}
|
|
1922
1231
|
* @detail api
|
|
1923
1232
|
* @brief Sets the video capture configurations.
|
|
@@ -1928,13 +1237,7 @@ export declare class VeLivePusherConfiguration {
|
|
|
1928
1237
|
*
|
|
1929
1238
|
*/
|
|
1930
1239
|
setVideoCaptureConfig(config: VeLiveVideoCaptureConfiguration): this;
|
|
1931
|
-
|
|
1932
|
-
* @detail api
|
|
1933
|
-
* @brief 获取视频采集参数,用于调整和设置视频采集相关的参数。
|
|
1934
|
-
* @order 7
|
|
1935
|
-
* @return 视频采集参数配置对象,详情请参见 [VeLiveVideoCaptureConfiguration](#VeLivePusherDef-VeLiveVideoCaptureConfiguration)。
|
|
1936
|
-
*
|
|
1937
|
-
*/
|
|
1240
|
+
|
|
1938
1241
|
/** {en}
|
|
1939
1242
|
* @detail api
|
|
1940
1243
|
* @brief Gets the video capture configurations.
|
|
@@ -1943,14 +1246,7 @@ export declare class VeLivePusherConfiguration {
|
|
|
1943
1246
|
*
|
|
1944
1247
|
*/
|
|
1945
1248
|
getVideoCaptureConfig(): VeLiveVideoCaptureConfiguration;
|
|
1946
|
-
|
|
1947
|
-
* @detail api
|
|
1948
|
-
* @brief 设置音频采集参数,用于调整和设置音频采集相关的参数。
|
|
1949
|
-
* @order 7
|
|
1950
|
-
* @param config 音频采集参数,详情请参见 [VeLiveAudioCaptureConfiguration](#VeLivePusherDef-VeLiveAudioCaptureConfiguration)。
|
|
1951
|
-
* @return 推流引擎初始化配置对象,详情请参见 [VeLiveAudioCaptureConfiguration](#VeLivePusherDef-VeLiveAudioCaptureConfiguration)。
|
|
1952
|
-
*
|
|
1953
|
-
*/
|
|
1249
|
+
|
|
1954
1250
|
/** {en}
|
|
1955
1251
|
* @detail api
|
|
1956
1252
|
* @brief Sets the audio capture configurations.
|
|
@@ -1960,13 +1256,7 @@ export declare class VeLivePusherConfiguration {
|
|
|
1960
1256
|
*
|
|
1961
1257
|
*/
|
|
1962
1258
|
setAudioCaptureConfig(config: VeLiveAudioCaptureConfiguration): this;
|
|
1963
|
-
|
|
1964
|
-
* @detail api
|
|
1965
|
-
* @brief 获取音频采集参数,用于调整和设置音频采集相关的参数。
|
|
1966
|
-
* @order 8
|
|
1967
|
-
* @return 音频采集参数配置对象,详情请参见 [VeLiveAudioCaptureConfiguration](#VeLivePusherDef-VeLiveAudioCaptureConfiguration)。
|
|
1968
|
-
*
|
|
1969
|
-
*/
|
|
1259
|
+
|
|
1970
1260
|
/** {en}
|
|
1971
1261
|
* @detail api
|
|
1972
1262
|
* @brief Gets the audio capture configurations.
|
|
@@ -1975,14 +1265,7 @@ export declare class VeLivePusherConfiguration {
|
|
|
1975
1265
|
*
|
|
1976
1266
|
*/
|
|
1977
1267
|
getAudioCaptureConfig(): VeLiveAudioCaptureConfiguration;
|
|
1978
|
-
|
|
1979
|
-
* @detail api
|
|
1980
|
-
* @brief 设置应用上下文。
|
|
1981
|
-
* @order 9
|
|
1982
|
-
* @param context 应用上下文。
|
|
1983
|
-
* @return 推流引擎初始化配置对象,详情请参见 [VeLivePusherConfiguration](#VeLivePusherConfiguration)。
|
|
1984
|
-
*
|
|
1985
|
-
*/
|
|
1268
|
+
|
|
1986
1269
|
/** {en}
|
|
1987
1270
|
* @detail api
|
|
1988
1271
|
* @brief Sets the context of the application.
|
|
@@ -1992,14 +1275,7 @@ export declare class VeLivePusherConfiguration {
|
|
|
1992
1275
|
*
|
|
1993
1276
|
*/
|
|
1994
1277
|
setContext(context: Context): this;
|
|
1995
|
-
|
|
1996
|
-
* @detail api
|
|
1997
|
-
* @brief 获取应用上下文。
|
|
1998
|
-
* @order 10
|
|
1999
|
-
* @return <br>
|
|
2000
|
-
* 应用上下文。
|
|
2001
|
-
*
|
|
2002
|
-
*/
|
|
1278
|
+
|
|
2003
1279
|
/** {en}
|
|
2004
1280
|
* @detail api
|
|
2005
1281
|
* @brief Gets the context of the application.
|
|
@@ -2009,15 +1285,7 @@ export declare class VeLivePusherConfiguration {
|
|
|
2009
1285
|
*
|
|
2010
1286
|
*/
|
|
2011
1287
|
getContext(): Context;
|
|
2012
|
-
|
|
2013
|
-
* @detail api
|
|
2014
|
-
* @brief 设置扩展参数,默认不需要设置。如果需要使用,您可通过提交工单联系[技术支持](https://console.volcengine.com/workorder/create?step=3&SubProductID=P00000076)。
|
|
2015
|
-
* @order 11
|
|
2016
|
-
* @param params 扩展参数。
|
|
2017
|
-
* @return
|
|
2018
|
-
* 推流引擎初始化配置对象,详情请参见 [VeLivePusherConfiguration](#VeLivePusherConfiguration)。
|
|
2019
|
-
*
|
|
2020
|
-
*/
|
|
1288
|
+
|
|
2021
1289
|
/** {en}
|
|
2022
1290
|
* @detail api
|
|
2023
1291
|
* @brief Sets advanced parameters. You can leave this parameter empty. If you need to use it, please [create a ticket](https://console.byteplus.com/workorder/create?step=2&SubProductID=P00000980) to contact BytePlus technical support.
|
|
@@ -2027,14 +1295,7 @@ export declare class VeLivePusherConfiguration {
|
|
|
2027
1295
|
*
|
|
2028
1296
|
*/
|
|
2029
1297
|
setExtraParameters(params: String): this;
|
|
2030
|
-
|
|
2031
|
-
* @detail api
|
|
2032
|
-
* @brief 获取扩展参数。
|
|
2033
|
-
* @order 12
|
|
2034
|
-
* @return <br>
|
|
2035
|
-
* 扩展参数。
|
|
2036
|
-
*
|
|
2037
|
-
*/
|
|
1298
|
+
|
|
2038
1299
|
/** {en}
|
|
2039
1300
|
* @detail api
|
|
2040
1301
|
* @brief Gets advanced parameters.
|
|
@@ -2044,13 +1305,7 @@ export declare class VeLivePusherConfiguration {
|
|
|
2044
1305
|
*
|
|
2045
1306
|
*/
|
|
2046
1307
|
getExtraParams(): LiveSdkSetting;
|
|
2047
|
-
|
|
2048
|
-
* @detail api
|
|
2049
|
-
* @brief 构造推流引擎。
|
|
2050
|
-
* @order 1
|
|
2051
|
-
* @return 推流引擎,详情请参见 [VeLivePusher](147517#VeLivePusher)。
|
|
2052
|
-
*
|
|
2053
|
-
*/
|
|
1308
|
+
|
|
2054
1309
|
/** {en}
|
|
2055
1310
|
* @detail api
|
|
2056
1311
|
* @brief Creates the live pusher.
|
|
@@ -2061,19 +1316,13 @@ export declare class VeLivePusherConfiguration {
|
|
|
2061
1316
|
build(): VeLivePusher;
|
|
2062
1317
|
}
|
|
2063
1318
|
export declare enum VeLiveOrientation {
|
|
2064
|
-
|
|
2065
|
-
* @brief 横屏模式。
|
|
2066
|
-
*
|
|
2067
|
-
*/
|
|
1319
|
+
|
|
2068
1320
|
/** {en}
|
|
2069
1321
|
* @brief The landscape mode.
|
|
2070
1322
|
*
|
|
2071
1323
|
*/
|
|
2072
1324
|
VeLiveOrientationLandscape = 0,
|
|
2073
|
-
|
|
2074
|
-
* @brief 竖屏模式。
|
|
2075
|
-
*
|
|
2076
|
-
*/
|
|
1325
|
+
|
|
2077
1326
|
/** {en}
|
|
2078
1327
|
* @brief The portrait mode.
|
|
2079
1328
|
*
|
|
@@ -2081,28 +1330,19 @@ export declare enum VeLiveOrientation {
|
|
|
2081
1330
|
VeLiveOrientationPortrait = 1
|
|
2082
1331
|
}
|
|
2083
1332
|
export declare enum VeLiveVideoMirrorType {
|
|
2084
|
-
|
|
2085
|
-
* @brief 对采集画面的镜像控制。开启时,预览和推流画面都会呈现为镜像状态。
|
|
2086
|
-
*
|
|
2087
|
-
*/
|
|
1333
|
+
|
|
2088
1334
|
/** {en}
|
|
2089
1335
|
* @brief Mirror the captured video. When turned on, both the preview and the pushed video are mirrored.
|
|
2090
1336
|
*
|
|
2091
1337
|
*/
|
|
2092
1338
|
VeLiveVideoMirrorCapture = 0,
|
|
2093
|
-
|
|
2094
|
-
* @brief 对预览画面的镜像控制。开启时,只有主播预览画面呈现镜像状态。
|
|
2095
|
-
*
|
|
2096
|
-
*/
|
|
1339
|
+
|
|
2097
1340
|
/** {en}
|
|
2098
1341
|
* @brief Mirror the preview. When turned on, only the preview is mirrored.
|
|
2099
1342
|
*
|
|
2100
1343
|
*/
|
|
2101
1344
|
VeLiveVideoMirrorPreview = 1,
|
|
2102
|
-
|
|
2103
|
-
* @brief 对编码前画面的镜像控制。开启时,主播推流画面呈现镜像状态。
|
|
2104
|
-
*
|
|
2105
|
-
*/
|
|
1345
|
+
|
|
2106
1346
|
/** {en}
|
|
2107
1347
|
* @brief Mirror the video before encoding. When turned on, only the pushed video is mirrored.
|
|
2108
1348
|
*
|
|
@@ -2110,13 +1350,7 @@ export declare enum VeLiveVideoMirrorType {
|
|
|
2110
1350
|
VeLiveVideoMirrorPushStream = 2
|
|
2111
1351
|
}
|
|
2112
1352
|
export declare class VeLiveFileRecorderConfiguration {
|
|
2113
|
-
|
|
2114
|
-
* @detail api
|
|
2115
|
-
* @brief 获取录制视频宽度。
|
|
2116
|
-
* @return <br>
|
|
2117
|
-
* 录制视频宽度。
|
|
2118
|
-
*
|
|
2119
|
-
*/
|
|
1353
|
+
|
|
2120
1354
|
/** {en}
|
|
2121
1355
|
* @detail api
|
|
2122
1356
|
* @brief Gets the width of the recorded video.
|
|
@@ -2124,13 +1358,7 @@ export declare class VeLiveFileRecorderConfiguration {
|
|
|
2124
1358
|
*
|
|
2125
1359
|
*/
|
|
2126
1360
|
getWidth(): int;
|
|
2127
|
-
|
|
2128
|
-
* @detail api
|
|
2129
|
-
* @brief 设置录制视频宽度。
|
|
2130
|
-
* @param width 录制视频宽度,默认值为 360
|
|
2131
|
-
* @return 推流本地文件录制配置对象,详情请参见 [VeLiveFileRecorderConfiguration](#VeLivePusherDef-VeLiveFileRecorderConfiguration)。
|
|
2132
|
-
*
|
|
2133
|
-
*/
|
|
1361
|
+
|
|
2134
1362
|
/** {en}
|
|
2135
1363
|
* @detail api
|
|
2136
1364
|
* @brief Sets the width of the recorded video.
|
|
@@ -2139,13 +1367,7 @@ export declare class VeLiveFileRecorderConfiguration {
|
|
|
2139
1367
|
*
|
|
2140
1368
|
*/
|
|
2141
1369
|
setWidth(width: int): this;
|
|
2142
|
-
|
|
2143
|
-
* @detail api
|
|
2144
|
-
* @brief 获取录制视频高度。
|
|
2145
|
-
* @return <br>
|
|
2146
|
-
* 录制视频高度。
|
|
2147
|
-
*
|
|
2148
|
-
*/
|
|
1370
|
+
|
|
2149
1371
|
/** {en}
|
|
2150
1372
|
* @detail api
|
|
2151
1373
|
* @brief Gets the height of the recorded video.
|
|
@@ -2153,13 +1375,7 @@ export declare class VeLiveFileRecorderConfiguration {
|
|
|
2153
1375
|
*
|
|
2154
1376
|
*/
|
|
2155
1377
|
getHeight(): int;
|
|
2156
|
-
|
|
2157
|
-
* @detail api
|
|
2158
|
-
* @brief 设置录制视频高度。
|
|
2159
|
-
* @param height 录制视频宽度,默认值为 640。
|
|
2160
|
-
* @return 推流本地文件录制配置对象,详情请参见 [VeLiveFileRecorderConfiguration](#VeLivePusherDef-VeLiveFileRecorderConfiguration)。<br/>
|
|
2161
|
-
*
|
|
2162
|
-
*/
|
|
1378
|
+
|
|
2163
1379
|
/** {en}
|
|
2164
1380
|
* @detail api
|
|
2165
1381
|
* @brief Sets the height of the recorded video.
|
|
@@ -2168,13 +1384,7 @@ export declare class VeLiveFileRecorderConfiguration {
|
|
|
2168
1384
|
*
|
|
2169
1385
|
*/
|
|
2170
1386
|
setHeight(height: int): this;
|
|
2171
|
-
|
|
2172
|
-
* @detail api
|
|
2173
|
-
* @brief 获取录制视频帧率。
|
|
2174
|
-
* @return <br>
|
|
2175
|
-
* 录制视频帧率。
|
|
2176
|
-
*
|
|
2177
|
-
*/
|
|
1387
|
+
|
|
2178
1388
|
/** {en}
|
|
2179
1389
|
* @detail api
|
|
2180
1390
|
* @brief Gets the frame rate of the recorded video.
|
|
@@ -2182,13 +1392,7 @@ export declare class VeLiveFileRecorderConfiguration {
|
|
|
2182
1392
|
*
|
|
2183
1393
|
*/
|
|
2184
1394
|
getFps(): int;
|
|
2185
|
-
|
|
2186
|
-
* @detail api
|
|
2187
|
-
* @brief 设置录制视频帧率。
|
|
2188
|
-
* @param fps 录制视频帧率,默认值为 15。
|
|
2189
|
-
* @return 推流本地文件录制配置对象,详情请参见 [VeLiveFileRecorderConfiguration](#VeLivePusherDef-VeLiveFileRecorderConfiguration)。
|
|
2190
|
-
*
|
|
2191
|
-
*/
|
|
1395
|
+
|
|
2192
1396
|
/** {en}
|
|
2193
1397
|
* @detail api
|
|
2194
1398
|
* @brief Sets the frame rate of the recorded video.
|
|
@@ -2197,13 +1401,7 @@ export declare class VeLiveFileRecorderConfiguration {
|
|
|
2197
1401
|
*
|
|
2198
1402
|
*/
|
|
2199
1403
|
setFps(fps: int): this;
|
|
2200
|
-
|
|
2201
|
-
* @detail api
|
|
2202
|
-
* @brief 获取录制视频码率。
|
|
2203
|
-
* @return <br>
|
|
2204
|
-
* 录制视频码率。
|
|
2205
|
-
*
|
|
2206
|
-
*/
|
|
1404
|
+
|
|
2207
1405
|
/** {en}
|
|
2208
1406
|
* @detail api
|
|
2209
1407
|
* @brief Gets the bitrate of the recorded video.
|
|
@@ -2211,14 +1409,7 @@ export declare class VeLiveFileRecorderConfiguration {
|
|
|
2211
1409
|
*
|
|
2212
1410
|
*/
|
|
2213
1411
|
getBitrate(): int;
|
|
2214
|
-
|
|
2215
|
-
* @detail api
|
|
2216
|
-
* @brief 设置录制视频码率。
|
|
2217
|
-
* @param bitrate 录制视频码率,单位为 kbps,默认值为 2000。
|
|
2218
|
-
* @return
|
|
2219
|
-
* 推流本地文件录制配置对象,详情请参见 [VeLiveFileRecorderConfiguration](#VeLivePusherDef-VeLiveFileRecorderConfiguration)。
|
|
2220
|
-
*
|
|
2221
|
-
*/
|
|
1412
|
+
|
|
2222
1413
|
/** {en}
|
|
2223
1414
|
* @detail api
|
|
2224
1415
|
* @brief Sets the bitrate of the recorded video.
|
|
@@ -2229,84 +1420,55 @@ export declare class VeLiveFileRecorderConfiguration {
|
|
|
2229
1420
|
setBitrate(bitrate: int): this;
|
|
2230
1421
|
}
|
|
2231
1422
|
export declare class VeLiveMixVideoLayout {
|
|
2232
|
-
|
|
2233
|
-
* @brief 视频流 ID,唯一标识,用于区分不同的视频流。
|
|
2234
|
-
*
|
|
2235
|
-
*/
|
|
1423
|
+
|
|
2236
1424
|
/** {en}
|
|
2237
1425
|
* @brief The unique identifier for a video stream.
|
|
2238
1426
|
*
|
|
2239
1427
|
*/
|
|
2240
1428
|
streamId: int;
|
|
2241
|
-
|
|
2242
|
-
* @brief 视频流对应区域左上角的横坐标,该坐标是相对整体画面的归一化比例,取值的范围为 [0.0,1.0]。
|
|
2243
|
-
*
|
|
2244
|
-
*/
|
|
1429
|
+
|
|
2245
1430
|
/** {en}
|
|
2246
1431
|
* @brief The horizontal offset, which represents the ratio of the distance between the left edge of the video and the left edge of the screen to the width of the screen. The value range is [0.0,1.0], where `0.0` indicates the left edge and `1.0` indicates the right edge.
|
|
2247
1432
|
*
|
|
2248
1433
|
*/
|
|
2249
1434
|
x: float;
|
|
2250
|
-
|
|
2251
|
-
* @brief 视频流对应区域左上角的纵坐标,该坐标是相对整体画面的归一化比例,取值的范围为 [0.0,1.0]。
|
|
2252
|
-
*
|
|
2253
|
-
*/
|
|
1435
|
+
|
|
2254
1436
|
/** {en}
|
|
2255
1437
|
* @brief The vertical offset, which represents the ratio of the distance between the top edge of the video and the top edge of the screen to the height of the screen. The value range is [0.0,1.0], where `0.0` indicates the top edge and `1.0` indicates the bottom edge.
|
|
2256
1438
|
*
|
|
2257
1439
|
*/
|
|
2258
1440
|
y: float;
|
|
2259
|
-
|
|
2260
|
-
* @brief 视频流对应区域宽度,该宽度是相对整体画面的归一化比例,取值的范围为 [0.0,1.0]。
|
|
2261
|
-
*
|
|
2262
|
-
*/
|
|
1441
|
+
|
|
2263
1442
|
/** {en}
|
|
2264
1443
|
* @brief The ratio of the video width to the screen width. The value range is [0.0,1.0], where `1.0` indicates that the video occupies the entire screen width.
|
|
2265
1444
|
*
|
|
2266
1445
|
*/
|
|
2267
1446
|
width: float;
|
|
2268
|
-
|
|
2269
|
-
* @brief 视频流对应区域高度,该高度是相对整体画面的归一化比例,取值的范围为 [0.0,1.0]。
|
|
2270
|
-
*
|
|
2271
|
-
*/
|
|
1447
|
+
|
|
2272
1448
|
/** {en}
|
|
2273
1449
|
* @brief The ratio of the video height to the screen height. The value range is [0.0,1.0], where `1.0` indicates that the video occupies the entire screen height.
|
|
2274
1450
|
*
|
|
2275
1451
|
*/
|
|
2276
1452
|
height: float;
|
|
2277
|
-
|
|
2278
|
-
* @brief 视频流在混流中的透明度,取值范围为 [0.0,1.0],取值 0.0 表示全透明,取值 1.0 表示不透明。
|
|
2279
|
-
*
|
|
2280
|
-
*/
|
|
1453
|
+
|
|
2281
1454
|
/** {en}
|
|
2282
1455
|
* @brief The video transparency. The value range is [0.0, 1.0], where `0.0` indicates full transparency and `1.0` indicates full opacity.
|
|
2283
1456
|
*
|
|
2284
1457
|
*/
|
|
2285
1458
|
alpha: float;
|
|
2286
|
-
|
|
2287
|
-
* @brief 视频流在混流中的层级。取值范围为 [0,100],取值 0 表示最底层,取值越大,层级越高。
|
|
2288
|
-
*
|
|
2289
|
-
*/
|
|
1459
|
+
|
|
2290
1460
|
/** {en}
|
|
2291
1461
|
* @brief The level of video within the final mixed video. The value range is [0,100], where `0` represents the bottom layer. The higher the value, the higher the level of the video in the final output.
|
|
2292
1462
|
*
|
|
2293
1463
|
*/
|
|
2294
1464
|
zOrder: int;
|
|
2295
|
-
|
|
2296
|
-
* @brief 视频流的渲染模式。详情请参见 [VeLivePusherRenderMode](#VeLivePusherRenderMode)。
|
|
2297
|
-
*
|
|
2298
|
-
*/
|
|
1465
|
+
|
|
2299
1466
|
/** {en}
|
|
2300
1467
|
* @brief The render mode of the video. See [VeLivePusherRenderMode](#VeLivePusherRenderMode) for details.
|
|
2301
1468
|
*
|
|
2302
1469
|
*/
|
|
2303
1470
|
renderMode: VeLivePusherRenderMode;
|
|
2304
|
-
|
|
2305
|
-
* @brief 是否保留视频流原 Alpha 通道值,默认为保留,当 [alpha](#VeLiveMixVideoLayout-alpha) 取值在 [0.0, 1.0] 之间时,则忽略该配置。
|
|
2306
|
-
* - YES:保留;
|
|
2307
|
-
* - NO:不保留。
|
|
2308
|
-
*
|
|
2309
|
-
*/
|
|
1471
|
+
|
|
2310
1472
|
/** {en}
|
|
2311
1473
|
* @brief Whether to retain the original Alpha channel value of the video stream. The default is retain. When the value of [alpha](#VeLiveMixVideoLayout-alpha) is within the range of [0.0, 1.0], this configuration is ignored.<br/>
|
|
2312
1474
|
*
|
|
@@ -2315,12 +1477,7 @@ export declare class VeLiveMixVideoLayout {
|
|
|
2315
1477
|
*
|
|
2316
1478
|
*/
|
|
2317
1479
|
enableAlpha: boolean;
|
|
2318
|
-
|
|
2319
|
-
* @detail api
|
|
2320
|
-
* @brief 更新视频混流设置。
|
|
2321
|
-
* @param other 新的视频混流设置,详情请参见 [VeLiveMixVideoLayout](#VeLivePusherDef-VeLiveMixVideoLayout)。
|
|
2322
|
-
*
|
|
2323
|
-
*/
|
|
1480
|
+
|
|
2324
1481
|
/** {en}
|
|
2325
1482
|
* @detail api
|
|
2326
1483
|
* @brief Updates video mixing configurations.
|
|
@@ -2330,13 +1487,7 @@ export declare class VeLiveMixVideoLayout {
|
|
|
2330
1487
|
update(other: VeLiveMixVideoLayout): void;
|
|
2331
1488
|
}
|
|
2332
1489
|
export declare class VeLiveVideoEffectLicenseConfiguration {
|
|
2333
|
-
|
|
2334
|
-
* @detail api
|
|
2335
|
-
* @brief 初始化配置为本地验证模式。
|
|
2336
|
-
* @param path 视频特效许可证的本地缓存路径。可通过 [getPath](#VeLiveVideoEffectLicenseConfiguration-getpath) 获取。
|
|
2337
|
-
* @return 返回 VeLiveVideoEffectLicenseConfiguration 类的实例,该实例使用指定的本地路径进行许可证验证。
|
|
2338
|
-
*
|
|
2339
|
-
*/
|
|
1490
|
+
|
|
2340
1491
|
/** {en}
|
|
2341
1492
|
* @detail api
|
|
2342
1493
|
* @brief Initializes the license configurations in local authentication mode.
|
|
@@ -2345,15 +1496,7 @@ export declare class VeLiveVideoEffectLicenseConfiguration {
|
|
|
2345
1496
|
*
|
|
2346
1497
|
*/
|
|
2347
1498
|
static create(path: String): VeLiveVideoEffectLicenseConfiguration;
|
|
2348
|
-
|
|
2349
|
-
* @detail api
|
|
2350
|
-
* @brief 初始化配置为在线验证模式。
|
|
2351
|
-
* @return <br>返回 VeLiveVideoEffectLicenseConfiguration 类的实例,该实例使用指定的 key、secret 和 url 进行在线许可证验证。
|
|
2352
|
-
* @param key 视频特效许可证的在线认证 key。可通过 [getKey](#VeLiveVideoEffectLicenseConfiguration-getkey) 获取。
|
|
2353
|
-
* @param secret 视频特效许可证的在线认证 secret。可通过 [getSecret](#VeLiveVideoEffectLicenseConfiguration-getsecret) 获取。
|
|
2354
|
-
* @param url 视频特效许可证的在线认证地址,如果传入 `null`,可通过 [getUrl](147521#VeLiveVideoEffectLicenseConfiguration-geturl) 获取在线认证地址。
|
|
2355
|
-
*
|
|
2356
|
-
*/
|
|
1499
|
+
|
|
2357
1500
|
/** {en}
|
|
2358
1501
|
* @detail api
|
|
2359
1502
|
* @brief Initializes the license configurations in local authentication mode.
|
|
@@ -2362,12 +1505,7 @@ export declare class VeLiveVideoEffectLicenseConfiguration {
|
|
|
2362
1505
|
*
|
|
2363
1506
|
*/
|
|
2364
1507
|
static create_key$secret$url(key: String, secret: String, url: String): VeLiveVideoEffectLicenseConfiguration;
|
|
2365
|
-
|
|
2366
|
-
* @detail api
|
|
2367
|
-
* @brief 获取视频特效许可证类型。
|
|
2368
|
-
* @return 视频特效许可证类型,许可证类型请参见 [VeLiveVideoEffectLicenseType](147521#VeLiveVideoEffectLicenseType)。
|
|
2369
|
-
*
|
|
2370
|
-
*/
|
|
1508
|
+
|
|
2371
1509
|
/** {en}
|
|
2372
1510
|
* @detail api
|
|
2373
1511
|
* @brief Gets the special effects license type.
|
|
@@ -2375,12 +1513,7 @@ export declare class VeLiveVideoEffectLicenseConfiguration {
|
|
|
2375
1513
|
*
|
|
2376
1514
|
*/
|
|
2377
1515
|
getType(): VeLiveVideoEffectLicenseType;
|
|
2378
|
-
|
|
2379
|
-
* @detail api
|
|
2380
|
-
* @brief 获取视频特效许可证的本地路径。当 [VeLiveVideoEffectLicenseType](#VeLiveVideoEffectLicenseType) 为 `VeLiveVideoEffectLicenseTypeOffLine` 时,返回许可证文件的本地路径。
|
|
2381
|
-
* @return 视频特效许可证的本地路径。
|
|
2382
|
-
*
|
|
2383
|
-
*/
|
|
1516
|
+
|
|
2384
1517
|
/** {en}
|
|
2385
1518
|
* @detail api
|
|
2386
1519
|
* @brief Gets the local path to the video effects license. When [VeLiveVideoEffectLicenseType](#VeLiveVideoEffectLicenseType) is `VeLiveVideoEffectLicenseTypeOffLine`, return the local path of the license file.
|
|
@@ -2388,12 +1521,7 @@ export declare class VeLiveVideoEffectLicenseConfiguration {
|
|
|
2388
1521
|
*
|
|
2389
1522
|
*/
|
|
2390
1523
|
getPath(): String;
|
|
2391
|
-
|
|
2392
|
-
* @detail api
|
|
2393
|
-
* @brief 获取视频特效许可证的在线认证 key。当 [VeLiveVideoEffectLicenseType](#VeLiveVideoEffectLicenseType) 为 `VeLiveVideoEffectLicenseTypeOnLine` 时,返回在线认证的 key。
|
|
2394
|
-
* @return 视频特效许可证的在线认证 key。
|
|
2395
|
-
*
|
|
2396
|
-
*/
|
|
1524
|
+
|
|
2397
1525
|
/** {en}
|
|
2398
1526
|
* @detail api
|
|
2399
1527
|
* @brief Gets the online authentication key for the video effects licenses, when [VeLiveVideoEffectLicenseType](#VeLiveVideoEffectLicenseType) is `VeLiveVideoEffectLicenseTypeOnLine`.
|
|
@@ -2401,12 +1529,7 @@ export declare class VeLiveVideoEffectLicenseConfiguration {
|
|
|
2401
1529
|
*
|
|
2402
1530
|
*/
|
|
2403
1531
|
getKey(): String;
|
|
2404
|
-
|
|
2405
|
-
* @detail api
|
|
2406
|
-
* @brief 获取视频特效许可证的在线认证 secret。当 [VeLiveVideoEffectLicenseType](#VeLiveVideoEffectLicenseType) 为 `VeLiveVideoEffectLicenseTypeOnLine` 时,返回在线认证的 secret。
|
|
2407
|
-
* @return 视频特效许可证的在线认证 secret。
|
|
2408
|
-
*
|
|
2409
|
-
*/
|
|
1532
|
+
|
|
2410
1533
|
/** {en}
|
|
2411
1534
|
* @detail api
|
|
2412
1535
|
* @brief Gets the online authentication secret for the video effects license, when [VeLiveVideoEffectLicenseType](#VeLiveVideoEffectLicenseType) is `VeLiveVideoEffectLicenseTypeOnLine`.
|
|
@@ -2414,12 +1537,7 @@ export declare class VeLiveVideoEffectLicenseConfiguration {
|
|
|
2414
1537
|
*
|
|
2415
1538
|
*/
|
|
2416
1539
|
getSecret(): String;
|
|
2417
|
-
|
|
2418
|
-
* @detail api
|
|
2419
|
-
* @brief 获取视频特效许可证的在线认证地址。当 [VeLiveVideoEffectLicenseType](#VeLiveVideoEffectLicenseType) 为 `VeLiveVideoEffectLicenseTypeOnLine` 时,返回在线认证地址。
|
|
2420
|
-
* @return 视频特效许可证的在线认证地址。
|
|
2421
|
-
*
|
|
2422
|
-
*/
|
|
1540
|
+
|
|
2423
1541
|
/** {en}
|
|
2424
1542
|
* @detail api
|
|
2425
1543
|
* @brief Gets the online authentication address for the video effects license, when [VeLiveVideoEffectLicenseType](#VeLiveVideoEffectLicenseType) is `VeLiveVideoEffectLicenseTypeOnLine`.
|
|
@@ -2429,19 +1547,13 @@ export declare class VeLiveVideoEffectLicenseConfiguration {
|
|
|
2429
1547
|
getUrl(): String;
|
|
2430
1548
|
}
|
|
2431
1549
|
export declare enum VeLiveAudioFrameSource {
|
|
2432
|
-
|
|
2433
|
-
* @brief 采集到的原始音频帧。这是从设备的麦克风或其他音频输入源获取的音频帧。
|
|
2434
|
-
*
|
|
2435
|
-
*/
|
|
1550
|
+
|
|
2436
1551
|
/** {en}
|
|
2437
1552
|
* @brief The original audio frame captured by the microphone or other audio sources.
|
|
2438
1553
|
*
|
|
2439
1554
|
*/
|
|
2440
1555
|
VeLiveAudioFrameSourceCapture = 1,
|
|
2441
|
-
|
|
2442
|
-
* @brief 编码前的音频帧。这是通过各种处理(例如噪音消除、回声消除等)后,准备进行编码的音频帧。
|
|
2443
|
-
*
|
|
2444
|
-
*/
|
|
1556
|
+
|
|
2445
1557
|
/** {en}
|
|
2446
1558
|
* @brief The audio frame to be encoded after undergoing various processes, such as noise cancellation and echo cancellation.
|
|
2447
1559
|
*
|
|
@@ -2449,13 +1561,7 @@ export declare enum VeLiveAudioFrameSource {
|
|
|
2449
1561
|
VeLiveAudioFrameSourcePreEncode = "1 << 1"
|
|
2450
1562
|
}
|
|
2451
1563
|
export declare class VeLiveAudioEncoderConfiguration {
|
|
2452
|
-
|
|
2453
|
-
* @detail api
|
|
2454
|
-
* @brief 获取推流音频编码码率。
|
|
2455
|
-
* @return <br>
|
|
2456
|
-
* 推流音频编码码率。
|
|
2457
|
-
*
|
|
2458
|
-
*/
|
|
1564
|
+
|
|
2459
1565
|
/** {en}
|
|
2460
1566
|
* @detail api
|
|
2461
1567
|
* @brief Gets the audio encoding bitrate.
|
|
@@ -2463,13 +1569,7 @@ export declare class VeLiveAudioEncoderConfiguration {
|
|
|
2463
1569
|
*
|
|
2464
1570
|
*/
|
|
2465
1571
|
getBitrate(): int;
|
|
2466
|
-
|
|
2467
|
-
* @detail api
|
|
2468
|
-
* @brief 设置推流音频编码码率。
|
|
2469
|
-
* @param bitrate 推流音频编码码率,单位为 kbps,默认值为 64。
|
|
2470
|
-
* @return 推流音频编码参数配置对象,详情请参见 [VeLiveAudioEncoderConfiguration](#VeLivePusherDef-VeLiveAudioEncoderConfiguration)。
|
|
2471
|
-
*
|
|
2472
|
-
*/
|
|
1572
|
+
|
|
2473
1573
|
/** {en}
|
|
2474
1574
|
* @detail api
|
|
2475
1575
|
* @brief Sets the audio encoding bitrate.
|
|
@@ -2478,12 +1578,7 @@ export declare class VeLiveAudioEncoderConfiguration {
|
|
|
2478
1578
|
*
|
|
2479
1579
|
*/
|
|
2480
1580
|
setBitrate(bitrate: int): this;
|
|
2481
|
-
|
|
2482
|
-
* @detail api
|
|
2483
|
-
* @brief 获取推流音频采样率。
|
|
2484
|
-
* @return 推流音频采样率。详情请参见 [VeLiveAudioSampleRate](#VeLiveAudioSampleRate)。
|
|
2485
|
-
*
|
|
2486
|
-
*/
|
|
1581
|
+
|
|
2487
1582
|
/** {en}
|
|
2488
1583
|
* @detail api
|
|
2489
1584
|
* @brief Gets the encoding sample rate.
|
|
@@ -2491,13 +1586,7 @@ export declare class VeLiveAudioEncoderConfiguration {
|
|
|
2491
1586
|
*
|
|
2492
1587
|
*/
|
|
2493
1588
|
getSampleRate(): VeLiveAudioSampleRate;
|
|
2494
|
-
|
|
2495
|
-
* @detail api
|
|
2496
|
-
* @brief 设置推流音频采样率。
|
|
2497
|
-
* @param sampleRate 推流音频采样率,默认值为 VeLiveAudioSampleRate44100,详情请参见 [VeLiveAudioSampleRate](#VeLiveAudioSampleRate)。
|
|
2498
|
-
* @return 推流音频编码参数配置对象,详情请参见 [VeLiveAudioEncoderConfiguration](#VeLivePusherDef-VeLiveAudioEncoderConfiguration)。
|
|
2499
|
-
*
|
|
2500
|
-
*/
|
|
1589
|
+
|
|
2501
1590
|
/** {en}
|
|
2502
1591
|
* @detail api
|
|
2503
1592
|
* @brief Sets the encoding sample rate.
|
|
@@ -2506,12 +1595,7 @@ export declare class VeLiveAudioEncoderConfiguration {
|
|
|
2506
1595
|
*
|
|
2507
1596
|
*/
|
|
2508
1597
|
setSampleRate(sampleRate: VeLiveAudioSampleRate): this;
|
|
2509
|
-
|
|
2510
|
-
* @detail api
|
|
2511
|
-
* @brief 获取推流音频声道。
|
|
2512
|
-
* @return 推流音频声道。详情请参见 [VeLiveAudioChannel](#VeLiveAudioChannel)。
|
|
2513
|
-
*
|
|
2514
|
-
*/
|
|
1598
|
+
|
|
2515
1599
|
/** {en}
|
|
2516
1600
|
* @detail api
|
|
2517
1601
|
* @brief Gets the number of audio channels for streaming.
|
|
@@ -2519,13 +1603,7 @@ export declare class VeLiveAudioEncoderConfiguration {
|
|
|
2519
1603
|
*
|
|
2520
1604
|
*/
|
|
2521
1605
|
getChannel(): VeLiveAudioChannel;
|
|
2522
|
-
|
|
2523
|
-
* @detail api
|
|
2524
|
-
* @brief 设置推流音频声道。
|
|
2525
|
-
* @param channel 推流音频声道,默认值为 VeLiveAudioChannelStereo,详情请参见 [VeLiveAudioChannel](#VeLiveAudioChannel)。
|
|
2526
|
-
* @return 推流音频编码参数配置对象,详情请参见 [VeLiveAudioEncoderConfiguration](#VeLivePusherDef-VeLiveAudioEncoderConfiguration)。
|
|
2527
|
-
*
|
|
2528
|
-
*/
|
|
1606
|
+
|
|
2529
1607
|
/** {en}
|
|
2530
1608
|
* @detail api
|
|
2531
1609
|
* @brief Sets the number of audio channels for streaming.
|
|
@@ -2534,12 +1612,7 @@ export declare class VeLiveAudioEncoderConfiguration {
|
|
|
2534
1612
|
*
|
|
2535
1613
|
*/
|
|
2536
1614
|
setChannel(channel: VeLiveAudioChannel): this;
|
|
2537
|
-
|
|
2538
|
-
* @detail api
|
|
2539
|
-
* @brief 获取推流音频编码类型。
|
|
2540
|
-
* @return 推流音频编码类型。详情请参见 [VeLiveAudioProfile](#VeLiveAudioProfile)。
|
|
2541
|
-
*
|
|
2542
|
-
*/
|
|
1615
|
+
|
|
2543
1616
|
/** {en}
|
|
2544
1617
|
* @detail api
|
|
2545
1618
|
* @brief Gets the audio encoding format.
|
|
@@ -2547,13 +1620,7 @@ export declare class VeLiveAudioEncoderConfiguration {
|
|
|
2547
1620
|
*
|
|
2548
1621
|
*/
|
|
2549
1622
|
getProfile(): VeLiveAudioProfile;
|
|
2550
|
-
|
|
2551
|
-
* @detail api
|
|
2552
|
-
* @brief 设置推流音频编码类型。
|
|
2553
|
-
* @param profile 推流音频编码类型,默认值为 VeLiveAudioAACProfileLC,详情请参见 [VeLiveAudioProfile](#VeLiveAudioProfile)。
|
|
2554
|
-
* @return 推流音频编码参数配置对象,详情请参见 [VeLiveAudioEncoderConfiguration](#VeLivePusherDef-VeLiveAudioEncoderConfiguration)。
|
|
2555
|
-
*
|
|
2556
|
-
*/
|
|
1623
|
+
|
|
2557
1624
|
/** {en}
|
|
2558
1625
|
* @detail api
|
|
2559
1626
|
* @brief Sets the audio encoding format.
|
|
@@ -2564,19 +1631,13 @@ export declare class VeLiveAudioEncoderConfiguration {
|
|
|
2564
1631
|
setProfile(profile: VeLiveAudioProfile): this;
|
|
2565
1632
|
}
|
|
2566
1633
|
export declare enum VeLiveAudioMixType {
|
|
2567
|
-
|
|
2568
|
-
* @brief 拉流端可以听到混音效果,本地无法听到。
|
|
2569
|
-
*
|
|
2570
|
-
*/
|
|
1634
|
+
|
|
2571
1635
|
/** {en}
|
|
2572
1636
|
* @brief The audience can hear the mixed audio, but the host cannot.
|
|
2573
1637
|
*
|
|
2574
1638
|
*/
|
|
2575
1639
|
VeLiveAudioMixPush = 0,
|
|
2576
|
-
|
|
2577
|
-
* @brief 拉流端和本地都可以听到混音效果。
|
|
2578
|
-
*
|
|
2579
|
-
*/
|
|
1640
|
+
|
|
2580
1641
|
/** {en}
|
|
2581
1642
|
* @brief Both the host and audience can hear the mixed audio.
|
|
2582
1643
|
*
|
|
@@ -2584,46 +1645,31 @@ export declare enum VeLiveAudioMixType {
|
|
|
2584
1645
|
VeLiveAudioMixPlayAndPush = 1
|
|
2585
1646
|
}
|
|
2586
1647
|
export declare enum VeLiveAudioCaptureType {
|
|
2587
|
-
|
|
2588
|
-
* @brief 使用默认麦克风设备进行音频采集。
|
|
2589
|
-
*
|
|
2590
|
-
*/
|
|
1648
|
+
|
|
2591
1649
|
/** {en}
|
|
2592
1650
|
* @brief Capture the audio with the default microphone.
|
|
2593
1651
|
*
|
|
2594
1652
|
*/
|
|
2595
1653
|
VeLiveAudioCaptureMicrophone = 0,
|
|
2596
|
-
|
|
2597
|
-
* @brief 使用语音通话模式进行音频采集,此模式下会启动硬件的 3A 功能,即自动增益控制、自动频率控制和自动噪声抑制。
|
|
2598
|
-
*
|
|
2599
|
-
*/
|
|
1654
|
+
|
|
2600
1655
|
/** {en}
|
|
2601
1656
|
* @brief Capture the audio in voice call mode, which will activate the 3A features of the hardware, including automatic gain control, automatic frequency control, and automatic noise suppression.
|
|
2602
1657
|
*
|
|
2603
1658
|
*/
|
|
2604
1659
|
VeLiveAudioCaptureVoiceCommunication = 1,
|
|
2605
|
-
|
|
2606
|
-
* @brief 使用录屏直播无障碍音频模式进行音频采集。
|
|
2607
|
-
*
|
|
2608
|
-
*/
|
|
1660
|
+
|
|
2609
1661
|
/** {en}
|
|
2610
1662
|
* @brief Capture the audio in screen recording.
|
|
2611
1663
|
*
|
|
2612
1664
|
*/
|
|
2613
1665
|
VeLiveAudioCaptureVoiceRecognition = 2,
|
|
2614
|
-
|
|
2615
|
-
* @brief 使用外部设备或源进行音频采集。
|
|
2616
|
-
*
|
|
2617
|
-
*/
|
|
1666
|
+
|
|
2618
1667
|
/** {en}
|
|
2619
1668
|
* @brief Capture the audio with an external device or source.
|
|
2620
1669
|
*
|
|
2621
1670
|
*/
|
|
2622
1671
|
VeLiveAudioCaptureExternal = 3,
|
|
2623
|
-
|
|
2624
|
-
* @brief 使用静音帧作为音频源。
|
|
2625
|
-
*
|
|
2626
|
-
*/
|
|
1672
|
+
|
|
2627
1673
|
/** {en}
|
|
2628
1674
|
* @brief Use muted frames as the audio source.
|
|
2629
1675
|
*
|