@byteplus/react-native-live-push 1.1.3-rc.0 → 1.1.3-rc.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/android/src/main/java/com/volcengine/velive/rn/push/VeLivePushModule.java +13 -2
- package/android/src/main/java/com/volcengine/velive/rn/push/VeLivePushPackage.java +16 -13
- package/android/src/main/java/com/volcengine/velive/rn/push/VeLivePushView.java +16 -0
- package/android/src/main/java/com/volcengine/velive/rn/push/VeLivePushViewManager.java +7 -2
- package/android/src/main/java/com/volcengine/velive/rn/push/mixer/MixerManager.java +392 -0
- package/android/src/main/java/com/volcengine/velive/rn/push/mixer/MixerView.java +415 -0
- package/android/src/main/java/com/volcengine/velive/rn/push/mixer/MixerViewManager.java +79 -0
- package/android/src/main/java/com/volcengine/velive/rn/push/mixer/TextureMgr.java +168 -0
- package/android/src/main/java/com/volcengine/velive/rn/push/mixer/YuvHelper.java +154 -0
- package/ios/VeLiveMixerHelper.h +44 -0
- package/ios/VeLiveMixerHelper.m +562 -0
- package/ios/VeLiveMixerView.h +69 -0
- package/ios/VeLiveMixerView.m +592 -0
- package/ios/VeLiveMixerViewManager.m +92 -0
- package/lib/commonjs/index.js +1779 -980
- package/lib/commonjs/typescript/android/index.d.ts +47 -0
- package/lib/commonjs/typescript/codegen/android/api.d.ts +1527 -0
- package/lib/commonjs/typescript/codegen/android/callback.d.ts +91 -0
- package/lib/commonjs/typescript/codegen/android/errorcode.d.ts +26 -0
- package/lib/commonjs/typescript/codegen/android/index.d.ts +5 -0
- package/lib/commonjs/typescript/codegen/android/keytype.d.ts +846 -0
- package/lib/commonjs/typescript/codegen/android/types.d.ts +33 -0
- package/lib/commonjs/typescript/codegen/ios/api.d.ts +222 -0
- package/lib/commonjs/typescript/codegen/ios/callback.d.ts +80 -0
- package/lib/commonjs/typescript/codegen/ios/errorcode.d.ts +54 -0
- package/lib/commonjs/typescript/codegen/ios/external.d.ts +1 -0
- package/lib/commonjs/typescript/codegen/ios/index.d.ts +6 -0
- package/lib/commonjs/typescript/codegen/ios/keytype.d.ts +460 -0
- package/lib/commonjs/typescript/codegen/ios/types.d.ts +46 -0
- package/lib/commonjs/typescript/codegen/pack/api.d.ts +1835 -0
- package/lib/commonjs/typescript/codegen/pack/callback.d.ts +400 -0
- package/lib/commonjs/typescript/codegen/pack/errorcode.d.ts +35 -0
- package/lib/commonjs/typescript/codegen/pack/index.d.ts +5 -0
- package/lib/commonjs/typescript/codegen/pack/keytype.d.ts +1392 -0
- package/lib/commonjs/typescript/codegen/pack/types.d.ts +68 -0
- package/lib/commonjs/typescript/codegen/type-shim.d.ts +6 -0
- package/lib/commonjs/typescript/component.d.ts +15 -0
- package/lib/commonjs/typescript/core/api.d.ts +17 -0
- package/lib/commonjs/typescript/core/callback.d.ts +2 -0
- package/lib/commonjs/typescript/core/env.d.ts +29 -0
- package/lib/commonjs/typescript/core/errorcode.d.ts +2 -0
- package/lib/commonjs/typescript/core/index.d.ts +6 -0
- package/lib/commonjs/typescript/core/keytype.d.ts +17 -0
- package/lib/commonjs/typescript/core/mixer.d.ts +26 -0
- package/lib/commonjs/typescript/core/pusher.d.ts +16 -0
- package/lib/commonjs/typescript/index.d.ts +3 -0
- package/lib/commonjs/typescript/ios/extends.d.ts +41 -0
- package/lib/commonjs/typescript/platforms/android/extends.d.ts +8 -0
- package/lib/commonjs/typescript/platforms/android/helper.d.ts +8 -0
- package/lib/commonjs/typescript/platforms/android/mixer.d.ts +8 -0
- package/lib/commonjs/typescript/platforms/ios/extends.d.ts +17 -0
- package/lib/commonjs/typescript/platforms/ios/helper.d.ts +8 -0
- package/lib/commonjs/typescript/platforms/ios/mixer.d.ts +9 -0
- package/lib/commonjs/typescript/runtime.d.ts +1 -0
- package/lib/commonjs/typescript/view/MixView.d.ts +52 -0
- package/lib/commonjs/typescript/view/VeImageView.d.ts +19 -0
- package/lib/commonjs/typescript/view/VeTextView.d.ts +7 -0
- package/lib/commonjs/typescript/view/VeView.d.ts +7 -0
- package/lib/commonjs/typescript/view/VeWebView.d.ts +7 -0
- package/lib/commonjs/typescript/view/index.d.ts +5 -0
- package/lib/module/index.js +1776 -982
- package/lib/module/typescript/android/index.d.ts +47 -0
- package/lib/module/typescript/codegen/android/api.d.ts +1527 -0
- package/lib/module/typescript/codegen/android/callback.d.ts +91 -0
- package/lib/module/typescript/codegen/android/errorcode.d.ts +26 -0
- package/lib/module/typescript/codegen/android/index.d.ts +5 -0
- package/lib/module/typescript/codegen/android/keytype.d.ts +846 -0
- package/lib/module/typescript/codegen/android/types.d.ts +33 -0
- package/lib/module/typescript/codegen/ios/api.d.ts +222 -0
- package/lib/module/typescript/codegen/ios/callback.d.ts +80 -0
- package/lib/module/typescript/codegen/ios/errorcode.d.ts +54 -0
- package/lib/module/typescript/codegen/ios/external.d.ts +1 -0
- package/lib/module/typescript/codegen/ios/index.d.ts +6 -0
- package/lib/module/typescript/codegen/ios/keytype.d.ts +460 -0
- package/lib/module/typescript/codegen/ios/types.d.ts +46 -0
- package/lib/module/typescript/codegen/pack/api.d.ts +1835 -0
- package/lib/module/typescript/codegen/pack/callback.d.ts +400 -0
- package/lib/module/typescript/codegen/pack/errorcode.d.ts +35 -0
- package/lib/module/typescript/codegen/pack/index.d.ts +5 -0
- package/lib/module/typescript/codegen/pack/keytype.d.ts +1392 -0
- package/lib/module/typescript/codegen/pack/types.d.ts +68 -0
- package/lib/module/typescript/codegen/type-shim.d.ts +6 -0
- package/lib/module/typescript/component.d.ts +15 -0
- package/lib/module/typescript/core/api.d.ts +17 -0
- package/lib/module/typescript/core/callback.d.ts +2 -0
- package/lib/module/typescript/core/env.d.ts +29 -0
- package/lib/module/typescript/core/errorcode.d.ts +2 -0
- package/lib/module/typescript/core/index.d.ts +6 -0
- package/lib/module/typescript/core/keytype.d.ts +17 -0
- package/lib/module/typescript/core/mixer.d.ts +26 -0
- package/lib/module/typescript/core/pusher.d.ts +16 -0
- package/lib/module/typescript/index.d.ts +3 -0
- package/lib/module/typescript/ios/extends.d.ts +41 -0
- package/lib/module/typescript/platforms/android/extends.d.ts +8 -0
- package/lib/module/typescript/platforms/android/helper.d.ts +8 -0
- package/lib/module/typescript/platforms/android/mixer.d.ts +8 -0
- package/lib/module/typescript/platforms/ios/extends.d.ts +17 -0
- package/lib/module/typescript/platforms/ios/helper.d.ts +8 -0
- package/lib/module/typescript/platforms/ios/mixer.d.ts +9 -0
- package/lib/module/typescript/runtime.d.ts +1 -0
- package/lib/module/typescript/view/MixView.d.ts +52 -0
- package/lib/module/typescript/view/VeImageView.d.ts +19 -0
- package/lib/module/typescript/view/VeTextView.d.ts +7 -0
- package/lib/module/typescript/view/VeView.d.ts +7 -0
- package/lib/module/typescript/view/VeWebView.d.ts +7 -0
- package/lib/module/typescript/view/index.d.ts +5 -0
- package/lib/typescript/codegen/android/api.d.ts +1 -121
- package/lib/typescript/codegen/ios/api.d.ts +1 -28
- package/lib/typescript/codegen/pack/api.d.ts +1 -133
- package/lib/typescript/core/api.d.ts +17 -2
- package/lib/typescript/core/keytype.d.ts +15 -0
- package/lib/typescript/core/mixer.d.ts +26 -0
- package/lib/typescript/index.d.ts +1 -0
- package/lib/typescript/platforms/android/extends.d.ts +8 -0
- package/lib/typescript/platforms/android/mixer.d.ts +8 -0
- package/lib/typescript/platforms/ios/mixer.d.ts +9 -0
- package/lib/typescript/view/MixView.d.ts +52 -0
- package/lib/typescript/view/VeImageView.d.ts +19 -0
- package/lib/typescript/view/VeTextView.d.ts +7 -0
- package/lib/typescript/view/VeView.d.ts +7 -0
- package/lib/typescript/view/VeWebView.d.ts +7 -0
- package/lib/typescript/view/index.d.ts +5 -0
- package/package.json +1 -1
|
@@ -0,0 +1,846 @@
|
|
|
1
|
+
import { int, double, String, ArrayList, float, long } from './types';
|
|
2
|
+
export declare class VeLiveVideoEncoderConfiguration {
|
|
3
|
+
|
|
4
|
+
/** {en}
|
|
5
|
+
* @detail api
|
|
6
|
+
* @brief Gets the video resolution.
|
|
7
|
+
* @return <br>
|
|
8
|
+
* The video resolution. See VeLiveVideoResolution {@link #VeLiveVideoResolution} for details.
|
|
9
|
+
*
|
|
10
|
+
*/
|
|
11
|
+
getResolution(): VeLiveVideoResolution;
|
|
12
|
+
|
|
13
|
+
/** {en}
|
|
14
|
+
* @detail api
|
|
15
|
+
* @brief Sets the video resolution.
|
|
16
|
+
* @param resolution The video resolution. The default value is `VeLiveVideoResolution720P`. See VeLiveVideoResolution {@link #VeLiveVideoResolution} for details.
|
|
17
|
+
* @return <br>
|
|
18
|
+
* The video encoding configurations. See VeLiveVideoEncoderConfiguration {@link #VeLiveVideoEncoderConfiguration} for details.
|
|
19
|
+
*
|
|
20
|
+
*/
|
|
21
|
+
setResolution(resolution: VeLiveVideoResolution): this;
|
|
22
|
+
|
|
23
|
+
/** {en}
|
|
24
|
+
* @detail api
|
|
25
|
+
* @brief Gets the video codec.
|
|
26
|
+
* @return <br>
|
|
27
|
+
* The video codec. See VeLiveVideoCodec {@link #VeLiveVideoCodec} for details.
|
|
28
|
+
*
|
|
29
|
+
*/
|
|
30
|
+
getCodec(): VeLiveVideoCodec;
|
|
31
|
+
|
|
32
|
+
/** {en}
|
|
33
|
+
* @detail api
|
|
34
|
+
* @brief Sets the video codec.
|
|
35
|
+
* @return The video encoding configurations. See [VeLiveVideoEncoderConfiguration](broadcast-sdk-for-android-type-definition#VeLiveVideoEncoderConfiguration) for details.
|
|
36
|
+
* @param codec <br>The video codec. See [VeLiveVideoCodec](broadcast-sdk-for-android-type-definition#VeLiveVideoCodec) for details.
|
|
37
|
+
*
|
|
38
|
+
*/
|
|
39
|
+
setCodec(codec: VeLiveVideoCodec): this;
|
|
40
|
+
|
|
41
|
+
/** {en}
|
|
42
|
+
* @detail api
|
|
43
|
+
* @brief Get the encoded video bitrate.
|
|
44
|
+
* @return <br>
|
|
45
|
+
* The encoded video bitrate.
|
|
46
|
+
*
|
|
47
|
+
*/
|
|
48
|
+
getBitrate(): int;
|
|
49
|
+
|
|
50
|
+
/** {en}
|
|
51
|
+
* @detail api
|
|
52
|
+
* @brief Sets the encoded video bitrate.
|
|
53
|
+
* @param bitrate The encoded video bitrate, in Kbps. The default value depends on the value of the `resolution` parameter.
|
|
54
|
+
* @return <br>
|
|
55
|
+
* The video encoding configurations. See VeLiveVideoEncoderConfiguration {@link #VeLiveVideoEncoderConfiguration} for details.
|
|
56
|
+
*
|
|
57
|
+
*/
|
|
58
|
+
setBitrate(bitrate: int): this;
|
|
59
|
+
|
|
60
|
+
/** {en}
|
|
61
|
+
* @detail api
|
|
62
|
+
* @brief Gets the minimum encoded video bitrate.
|
|
63
|
+
* @return <br>
|
|
64
|
+
* The minimum encoded video bitrate.
|
|
65
|
+
*
|
|
66
|
+
*/
|
|
67
|
+
getMinBitrate(): int;
|
|
68
|
+
|
|
69
|
+
/** {en}
|
|
70
|
+
* @detail api
|
|
71
|
+
* @brief Sets the minimum encoded video bitrate.
|
|
72
|
+
* @param minBitrate The minimum encoded video bitrate, in Kbps, when the adaptive bitrate (ABR) feature is enabled. The default value depends on the value of the `resolution` parameter.
|
|
73
|
+
* @return <br>
|
|
74
|
+
* The video encoding configurations. See VeLiveVideoEncoderConfiguration {@link #VeLiveVideoEncoderConfiguration} for details.
|
|
75
|
+
*
|
|
76
|
+
*/
|
|
77
|
+
setMinBitrate(minBitrate: int): this;
|
|
78
|
+
|
|
79
|
+
/** {en}
|
|
80
|
+
* @detail api
|
|
81
|
+
* @brief Gets the maximum encoded video bitrate.
|
|
82
|
+
* @return <br>
|
|
83
|
+
* The maximum encoded video bitrate.
|
|
84
|
+
*
|
|
85
|
+
*/
|
|
86
|
+
getMaxBitrate(): int;
|
|
87
|
+
|
|
88
|
+
/** {en}
|
|
89
|
+
* @detail api
|
|
90
|
+
* @brief Sets the maximum encoded video bitrate.
|
|
91
|
+
* @param maxBitrate The maximum video encoding bitrate, in Kbps, when the adaptive bitrate (ABR) feature is enabled. The default value depends on the value of the `resolution` parameter.
|
|
92
|
+
* @return <br>
|
|
93
|
+
* The video encoding configurations. See VeLiveVideoEncoderConfiguration {@link #VeLiveVideoEncoderConfiguration} for details.
|
|
94
|
+
*
|
|
95
|
+
*/
|
|
96
|
+
setMaxBitrate(maxBitrate: int): this;
|
|
97
|
+
|
|
98
|
+
/** {en}
|
|
99
|
+
* @detail api
|
|
100
|
+
* @brief Gets the encoded video GOP size.
|
|
101
|
+
* @return <br>
|
|
102
|
+
* The encoded video GOP size.
|
|
103
|
+
*
|
|
104
|
+
*/
|
|
105
|
+
getGopSize(): int;
|
|
106
|
+
|
|
107
|
+
/** {en}
|
|
108
|
+
* @detail api
|
|
109
|
+
* @brief Sets the encoded video GOP size.
|
|
110
|
+
* @param gopSize The encoded video GOP size, in seconds. The default value is `2`.
|
|
111
|
+
* @return <br>
|
|
112
|
+
* The video encoding configurations. See VeLiveVideoEncoderConfiguration {@link #VeLiveVideoEncoderConfiguration} for details.
|
|
113
|
+
*
|
|
114
|
+
*/
|
|
115
|
+
setGopSize(gopSize: int): this;
|
|
116
|
+
|
|
117
|
+
/** {en}
|
|
118
|
+
* @detail api
|
|
119
|
+
* @brief Gets the encoded frame rate.
|
|
120
|
+
* @return <br>
|
|
121
|
+
* The encoded frame rate.
|
|
122
|
+
*
|
|
123
|
+
*/
|
|
124
|
+
getFps(): int;
|
|
125
|
+
|
|
126
|
+
/** {en}
|
|
127
|
+
* @detail api
|
|
128
|
+
* @brief Sets the encoded frame rate.
|
|
129
|
+
* @param fps The encoded frame rate, in fps. The default value is `15`.
|
|
130
|
+
* @return <br>
|
|
131
|
+
* The video encoding configurations. See VeLiveVideoEncoderConfiguration {@link #VeLiveVideoEncoderConfiguration} for details.
|
|
132
|
+
*
|
|
133
|
+
*/
|
|
134
|
+
setFps(fps: int): this;
|
|
135
|
+
|
|
136
|
+
/** {en}
|
|
137
|
+
* @detail api
|
|
138
|
+
* @brief Gets whether to enable B frames.
|
|
139
|
+
* @return <br>
|
|
140
|
+
* Whether to enable B frames. <br>
|
|
141
|
+
* - true: Enable;
|
|
142
|
+
* - false: Disable.
|
|
143
|
+
*
|
|
144
|
+
*/
|
|
145
|
+
isEnableBFrame(): boolean;
|
|
146
|
+
|
|
147
|
+
/** {en}
|
|
148
|
+
* @detail api
|
|
149
|
+
* @brief Sets whether to enable B frames.
|
|
150
|
+
* @param enableBFrame Whether to enable B frames. <br>
|
|
151
|
+
* - true: Enable;
|
|
152
|
+
* - false: (Default) Disable.
|
|
153
|
+
* @return <br>
|
|
154
|
+
* The video encoding configurations. See VeLiveVideoEncoderConfiguration {@link #VeLiveVideoEncoderConfiguration} for details.
|
|
155
|
+
*
|
|
156
|
+
*/
|
|
157
|
+
setEnableBFrame(enableBFrame: boolean): this;
|
|
158
|
+
|
|
159
|
+
/** {en}
|
|
160
|
+
* @detail api
|
|
161
|
+
* @brief Gets whether to enable hardware encoding.
|
|
162
|
+
* @return <br>
|
|
163
|
+
* Whether to enable hardware encoding. <br>
|
|
164
|
+
* - true: Enable;
|
|
165
|
+
* - false: Disable.
|
|
166
|
+
*
|
|
167
|
+
*/
|
|
168
|
+
isEnableAccelerate(): boolean;
|
|
169
|
+
|
|
170
|
+
/** {en}
|
|
171
|
+
* @detail api
|
|
172
|
+
* @brief Enables hardware encoding.
|
|
173
|
+
* @param enableAccelerate Whether to enable hardware encoding. <br>
|
|
174
|
+
* - true: (Default) Enable;
|
|
175
|
+
* - false: Disable.
|
|
176
|
+
* @return <br>
|
|
177
|
+
* The video encoding configurations. See VeLiveVideoEncoderConfiguration {@link #VeLiveVideoEncoderConfiguration} for details.
|
|
178
|
+
*
|
|
179
|
+
*/
|
|
180
|
+
setEnableAccelerate(enableAccelerate: boolean): this;
|
|
181
|
+
}
|
|
182
|
+
export declare enum VeLiveAudioCodec {
|
|
183
|
+
|
|
184
|
+
VeLiveAudioCodecFdkAAC = 0,
|
|
185
|
+
|
|
186
|
+
VeLiveAudioCodecMediaCodecAAC = 1,
|
|
187
|
+
|
|
188
|
+
VeLiveAudioCodecFFmpegAAC = 2
|
|
189
|
+
}
|
|
190
|
+
export declare enum VeLiveVideoCodec {
|
|
191
|
+
|
|
192
|
+
VeLiveVideoCodecH264 = 0,
|
|
193
|
+
|
|
194
|
+
VeLiveVideoCodecByteVC1 = 1
|
|
195
|
+
}
|
|
196
|
+
export declare class VeLivePusherStatistics {
|
|
197
|
+
|
|
198
|
+
encodeWidth: int;
|
|
199
|
+
|
|
200
|
+
encodeHeight: int;
|
|
201
|
+
|
|
202
|
+
captureWidth: int;
|
|
203
|
+
|
|
204
|
+
captureHeight: int;
|
|
205
|
+
|
|
206
|
+
captureFps: double;
|
|
207
|
+
|
|
208
|
+
encodeFps: double;
|
|
209
|
+
|
|
210
|
+
transportFps: double;
|
|
211
|
+
|
|
212
|
+
fps: int;
|
|
213
|
+
|
|
214
|
+
videoBitrate: int;
|
|
215
|
+
|
|
216
|
+
minVideoBitrate: int;
|
|
217
|
+
|
|
218
|
+
maxVideoBitrate: int;
|
|
219
|
+
|
|
220
|
+
encodeVideoBitrate: double;
|
|
221
|
+
|
|
222
|
+
transportVideoBitrate: double;
|
|
223
|
+
|
|
224
|
+
encodeAudioBitrate: double;
|
|
225
|
+
|
|
226
|
+
url: String;
|
|
227
|
+
|
|
228
|
+
codec: String;
|
|
229
|
+
}
|
|
230
|
+
export declare enum VeLivePusherRenderMode {
|
|
231
|
+
|
|
232
|
+
VeLivePusherRenderModeFill = 0,
|
|
233
|
+
|
|
234
|
+
VeLivePusherRenderModeFit = 1,
|
|
235
|
+
|
|
236
|
+
VeLivePusherRenderModeHidden = 2
|
|
237
|
+
}
|
|
238
|
+
export declare enum VeLiveVideoEffectLicenseType {
|
|
239
|
+
|
|
240
|
+
VeLiveVideoEffectLicenseTypeOffLine = 0,
|
|
241
|
+
|
|
242
|
+
VeLiveVideoEffectLicenseTypeOnLine = 1
|
|
243
|
+
}
|
|
244
|
+
export declare enum VeLiveAudioBufferType {
|
|
245
|
+
|
|
246
|
+
VeLiveAudioBufferTypeUnknown = 0,
|
|
247
|
+
|
|
248
|
+
VeLiveAudioBufferTypeByteBuffer = 1
|
|
249
|
+
}
|
|
250
|
+
export declare enum VeLiveAudioChannel {
|
|
251
|
+
|
|
252
|
+
VeLiveAudioChannelMono = 1,
|
|
253
|
+
|
|
254
|
+
VeLiveAudioChannelStereo = 2
|
|
255
|
+
}
|
|
256
|
+
export declare enum VeLiveFirstFrameType {
|
|
257
|
+
|
|
258
|
+
VeLiveFirstCaptureFrame = 0,
|
|
259
|
+
|
|
260
|
+
VeLiveFirstRenderFrame = 1,
|
|
261
|
+
|
|
262
|
+
VeLiveFirstEncodedFrame = 2,
|
|
263
|
+
|
|
264
|
+
VeLiveFirstSendFrame = 3
|
|
265
|
+
}
|
|
266
|
+
export declare enum VeLiveVideoCaptureType {
|
|
267
|
+
|
|
268
|
+
VeLiveVideoCaptureFrontCamera = 0,
|
|
269
|
+
|
|
270
|
+
VeLiveVideoCaptureBackCamera = 1,
|
|
271
|
+
|
|
272
|
+
VeLiveVideoCaptureDualCamera = 2,
|
|
273
|
+
|
|
274
|
+
VeLiveVideoCaptureScreen = 3,
|
|
275
|
+
|
|
276
|
+
VeLiveVideoCaptureExternal = 4,
|
|
277
|
+
|
|
278
|
+
VeLiveVideoCaptureCustomImage = 5,
|
|
279
|
+
|
|
280
|
+
VeLiveVideoCaptureLastFrame = 6,
|
|
281
|
+
|
|
282
|
+
VeLiveVideoCaptureDummyFrame = 7
|
|
283
|
+
}
|
|
284
|
+
export declare enum VeLiveVideoProfile {
|
|
285
|
+
|
|
286
|
+
VeLiveVideoProfileUnknown = 0,
|
|
287
|
+
|
|
288
|
+
VeLiveVideoProfileH264Baseline = 1,
|
|
289
|
+
|
|
290
|
+
VeLiveVideoProfileH264Main = 2,
|
|
291
|
+
|
|
292
|
+
VeLiveVideoProfileH264High = 3,
|
|
293
|
+
|
|
294
|
+
VeLiveVideoProfileByteVC1Main = 4
|
|
295
|
+
}
|
|
296
|
+
export declare enum VeLiveVideoRotation {
|
|
297
|
+
|
|
298
|
+
VeLiveVideoRotation0 = 0,
|
|
299
|
+
|
|
300
|
+
VeLiveVideoRotation90 = 90,
|
|
301
|
+
|
|
302
|
+
VeLiveVideoRotation180 = 180,
|
|
303
|
+
|
|
304
|
+
VeLiveVideoRotation270 = 270
|
|
305
|
+
}
|
|
306
|
+
export declare enum VeLiveVideoFrameSource {
|
|
307
|
+
|
|
308
|
+
VeLiveVideoFrameSourceCapture = 1,
|
|
309
|
+
|
|
310
|
+
VeLiveVideoFrameSourcePreEncode = "1 << 1"
|
|
311
|
+
}
|
|
312
|
+
export declare enum VeLiveAudioProfile {
|
|
313
|
+
|
|
314
|
+
VeLiveAudioAACProfileLC = 0,
|
|
315
|
+
|
|
316
|
+
VeLiveAudioAACProfileHEv1 = 1,
|
|
317
|
+
|
|
318
|
+
VeLiveAudioAACProfileHEv2 = 2
|
|
319
|
+
}
|
|
320
|
+
export declare enum VeLiveVideoBufferType {
|
|
321
|
+
|
|
322
|
+
VeLiveVideoBufferTypeUnknown = 0,
|
|
323
|
+
|
|
324
|
+
VeLiveVideoBufferTypeTexture = 1,
|
|
325
|
+
|
|
326
|
+
VeLiveVideoBufferTypeByteBuffer = 2,
|
|
327
|
+
|
|
328
|
+
VeLiveVideoBufferTypeByteArray = 3
|
|
329
|
+
}
|
|
330
|
+
export declare class VeLiveAudioCaptureConfiguration {
|
|
331
|
+
|
|
332
|
+
/** {en}
|
|
333
|
+
* @detail api
|
|
334
|
+
* @brief Gets the sample rate.
|
|
335
|
+
* @return <br>
|
|
336
|
+
* The sample rate. See VeLiveAudioSampleRate {@link #VeLiveAudioSampleRate} for details.
|
|
337
|
+
*
|
|
338
|
+
*/
|
|
339
|
+
getSampleRate(): VeLiveAudioSampleRate;
|
|
340
|
+
|
|
341
|
+
/** {en}
|
|
342
|
+
* @detail api
|
|
343
|
+
* @brief Sets the sample rate.
|
|
344
|
+
* @return <br>The audio capture configurations. See VeLiveAudioCaptureConfiguration for details.
|
|
345
|
+
* @param sampleRate The sample rate. The default value is `VeLiveAudioSampleRate44100`. See VeLiveAudioSampleRate {@link #VeLiveAudioSampleRate} for details.
|
|
346
|
+
*
|
|
347
|
+
*/
|
|
348
|
+
setSampleRate(sampleRate: VeLiveAudioSampleRate): this;
|
|
349
|
+
|
|
350
|
+
/** {en}
|
|
351
|
+
* @detail api
|
|
352
|
+
* @brief Gets the number of audio channels.
|
|
353
|
+
* @return <br>
|
|
354
|
+
* The number of audio channels. See VeLiveAudioChannel {@link #VeLiveAudioChannel} for details.
|
|
355
|
+
*
|
|
356
|
+
*/
|
|
357
|
+
getChannel(): VeLiveAudioChannel;
|
|
358
|
+
|
|
359
|
+
/** {en}
|
|
360
|
+
* @detail api
|
|
361
|
+
* @brief Sets the number of audio channels.
|
|
362
|
+
* @return <br>The audio capture configurations. See VeLiveAudioCaptureConfiguration for details.
|
|
363
|
+
* @param channel The number of audio channels. The default value is `VeLiveAudioChannelStereo`. See VeLiveAudioChannel {@link #VeLiveAudioChannel} for details.
|
|
364
|
+
*
|
|
365
|
+
*/
|
|
366
|
+
setChannel(channel: VeLiveAudioChannel): this;
|
|
367
|
+
}
|
|
368
|
+
export declare class VeLiveStreamMixDescription {
|
|
369
|
+
|
|
370
|
+
mixVideoStreams: ArrayList<VeLiveMixVideoLayout>;
|
|
371
|
+
|
|
372
|
+
mixAudioStreams: ArrayList<VeLiveMixAudioLayout>;
|
|
373
|
+
|
|
374
|
+
backgroundColor: String;
|
|
375
|
+
}
|
|
376
|
+
export declare enum VeLiveAudioSampleRate {
|
|
377
|
+
|
|
378
|
+
VeLiveAudioSampleRate8000 = 8000,
|
|
379
|
+
|
|
380
|
+
VeLiveAudioSampleRate16000 = 16000,
|
|
381
|
+
|
|
382
|
+
VeLiveAudioSampleRate32000 = 32000,
|
|
383
|
+
|
|
384
|
+
VeLiveAudioSampleRate44100 = 44100,
|
|
385
|
+
|
|
386
|
+
VeLiveAudioSampleRate48000 = 48000
|
|
387
|
+
}
|
|
388
|
+
export declare enum VeLiveAudioPowerLevel {
|
|
389
|
+
|
|
390
|
+
VeLiveAudioPowerLevelSilent = 0,
|
|
391
|
+
|
|
392
|
+
VeLiveAudioPowerLevelQuiet = 1,
|
|
393
|
+
|
|
394
|
+
VeLiveAudioPowerLevelLight = 2,
|
|
395
|
+
|
|
396
|
+
VeLiveAudioPowerLevelNormal = 3,
|
|
397
|
+
|
|
398
|
+
VeLiveAudioPowerLevelLoud = 4,
|
|
399
|
+
|
|
400
|
+
VeLiveAudioPowerLevelNoise = 5
|
|
401
|
+
}
|
|
402
|
+
export declare class VeLiveVideoCaptureConfiguration {
|
|
403
|
+
|
|
404
|
+
/** {en}
|
|
405
|
+
* @detail api
|
|
406
|
+
* @brief Gets the width of the captured video.
|
|
407
|
+
* @return <br>
|
|
408
|
+
* The width of the captured video.
|
|
409
|
+
*
|
|
410
|
+
*/
|
|
411
|
+
getWidth(): int;
|
|
412
|
+
|
|
413
|
+
/** {en}
|
|
414
|
+
* @detail api
|
|
415
|
+
* @brief Sets the width of the captured video.
|
|
416
|
+
* @return <br>The video capture configurations. See VeLiveVideoCaptureConfiguration for details.
|
|
417
|
+
* @param width The width of the captured video. The default value is `720`.
|
|
418
|
+
*
|
|
419
|
+
*/
|
|
420
|
+
setWidth(width: int): this;
|
|
421
|
+
|
|
422
|
+
/** {en}
|
|
423
|
+
* @detail api
|
|
424
|
+
* @brief Gets the height of the captured video.
|
|
425
|
+
* @return <br>
|
|
426
|
+
* The height of the captured video.
|
|
427
|
+
*
|
|
428
|
+
*/
|
|
429
|
+
getHeight(): int;
|
|
430
|
+
|
|
431
|
+
/** {en}
|
|
432
|
+
* @detail api
|
|
433
|
+
* @brief Sets the height of the captured video.
|
|
434
|
+
* @return <br>The video capture configurations. See VeLiveVideoCaptureConfiguration for details.
|
|
435
|
+
* @param height The height of the captured video. The default value is `1280`.
|
|
436
|
+
*
|
|
437
|
+
*/
|
|
438
|
+
setHeight(height: int): this;
|
|
439
|
+
|
|
440
|
+
/** {en}
|
|
441
|
+
* @detail api
|
|
442
|
+
* @brief Gets the captured frame rate.
|
|
443
|
+
* @return <br>
|
|
444
|
+
* The captured frame rate.
|
|
445
|
+
*
|
|
446
|
+
*/
|
|
447
|
+
getFps(): int;
|
|
448
|
+
|
|
449
|
+
/** {en}
|
|
450
|
+
* @detail api
|
|
451
|
+
* @brief Sets the captured frame rate.
|
|
452
|
+
* @return <br>The video capture configurations. See VeLiveVideoCaptureConfiguration for details.
|
|
453
|
+
* @param fps The captured frame rate. The default value is `15`.
|
|
454
|
+
*
|
|
455
|
+
*/
|
|
456
|
+
setFps(fps: int): this;
|
|
457
|
+
}
|
|
458
|
+
export declare enum VeLivePixelFormat {
|
|
459
|
+
|
|
460
|
+
VeLivePixelFormatUnknown = 0,
|
|
461
|
+
|
|
462
|
+
VeLivePixelFormatI420 = 1,
|
|
463
|
+
|
|
464
|
+
VeLivePixelFormatNV12 = 2,
|
|
465
|
+
|
|
466
|
+
VeLivePixelFormatNV21 = 3,
|
|
467
|
+
|
|
468
|
+
VeLivePixelFormat2DTexture = 4,
|
|
469
|
+
|
|
470
|
+
VeLivePixelFormatOesTexture = 5
|
|
471
|
+
}
|
|
472
|
+
export declare enum VeLivePusherStatus {
|
|
473
|
+
|
|
474
|
+
VeLivePushStatusNone = 0,
|
|
475
|
+
|
|
476
|
+
VeLivePushStatusConnecting = 1,
|
|
477
|
+
|
|
478
|
+
VeLivePushStatusConnectSuccess = 2,
|
|
479
|
+
|
|
480
|
+
VeLivePushStatusReconnecting = 3,
|
|
481
|
+
|
|
482
|
+
VeLivePushStatusConnectStop = 4,
|
|
483
|
+
|
|
484
|
+
VeLivePushStatusConnectError = 5,
|
|
485
|
+
|
|
486
|
+
VeLivePushStatusDisconnected = 6
|
|
487
|
+
}
|
|
488
|
+
export declare enum VeLiveVideoResolution {
|
|
489
|
+
|
|
490
|
+
VeLiveVideoResolution360P = "VeLiveVideoResolution360P",
|
|
491
|
+
|
|
492
|
+
VeLiveVideoResolution480P = "VeLiveVideoResolution480P",
|
|
493
|
+
|
|
494
|
+
VeLiveVideoResolution540P = "VeLiveVideoResolution540P",
|
|
495
|
+
|
|
496
|
+
VeLiveVideoResolution720P = "VeLiveVideoResolution720P",
|
|
497
|
+
|
|
498
|
+
VeLiveVideoResolution1080P = "VeLiveVideoResolution1080P"
|
|
499
|
+
}
|
|
500
|
+
export declare enum VeLiveNetworkQuality {
|
|
501
|
+
|
|
502
|
+
VeLiveNetworkQualityUnknown = 0,
|
|
503
|
+
|
|
504
|
+
VeLiveNetworkQualityBad = 1,
|
|
505
|
+
|
|
506
|
+
VeLiveNetworkQualityPoor = 2,
|
|
507
|
+
|
|
508
|
+
VeLiveNetworkQualityGood = 3
|
|
509
|
+
}
|
|
510
|
+
export declare enum VeLivePusherLogLevel {
|
|
511
|
+
|
|
512
|
+
VeLiveLogLevelVerbose = 0,
|
|
513
|
+
|
|
514
|
+
VeLiveLogLevelDebug = 1,
|
|
515
|
+
|
|
516
|
+
VeLiveLogLevelInfo = 2,
|
|
517
|
+
|
|
518
|
+
VeLiveLogLevelWarn = 3,
|
|
519
|
+
|
|
520
|
+
VeLiveLogLevelError = 4,
|
|
521
|
+
|
|
522
|
+
VeLiveLogLevelNone = 5
|
|
523
|
+
}
|
|
524
|
+
export declare enum VeLiveAudioBitDepth {
|
|
525
|
+
|
|
526
|
+
VeLiveAudioBitDepth16 = 16
|
|
527
|
+
}
|
|
528
|
+
export declare class VeLiveMixAudioLayout {
|
|
529
|
+
|
|
530
|
+
streamId: int;
|
|
531
|
+
|
|
532
|
+
volume: float;
|
|
533
|
+
|
|
534
|
+
/** {en}
|
|
535
|
+
* @detail api
|
|
536
|
+
* @brief Updates audio mixing configurations.
|
|
537
|
+
* @param other New audio mixing configurations. See VeLiveMixAudioLayout for details.
|
|
538
|
+
*
|
|
539
|
+
*/
|
|
540
|
+
update(other: VeLiveMixAudioLayout): void;
|
|
541
|
+
}
|
|
542
|
+
export declare enum VeLiveOrientation {
|
|
543
|
+
|
|
544
|
+
VeLiveOrientationLandscape = 0,
|
|
545
|
+
|
|
546
|
+
VeLiveOrientationPortrait = 1
|
|
547
|
+
}
|
|
548
|
+
export declare enum VeLiveVideoMirrorType {
|
|
549
|
+
|
|
550
|
+
VeLiveVideoMirrorCapture = 0,
|
|
551
|
+
|
|
552
|
+
VeLiveVideoMirrorPreview = 1,
|
|
553
|
+
|
|
554
|
+
VeLiveVideoMirrorPushStream = 2
|
|
555
|
+
}
|
|
556
|
+
export declare class VeLivePusherLogConfig {
|
|
557
|
+
|
|
558
|
+
logPath: String;
|
|
559
|
+
|
|
560
|
+
maxLogSizeM: int;
|
|
561
|
+
|
|
562
|
+
singleLogSizeM: int;
|
|
563
|
+
|
|
564
|
+
logExpireTimeS: long;
|
|
565
|
+
|
|
566
|
+
enableThreadLoop: int;
|
|
567
|
+
|
|
568
|
+
enableStdout: int;
|
|
569
|
+
|
|
570
|
+
enableLogFile: int;
|
|
571
|
+
|
|
572
|
+
logLevel: int;
|
|
573
|
+
|
|
574
|
+
intervalMs: long;
|
|
575
|
+
|
|
576
|
+
queryUrl: String;
|
|
577
|
+
|
|
578
|
+
device_id: String;
|
|
579
|
+
|
|
580
|
+
httpTimeoutMS: int;
|
|
581
|
+
|
|
582
|
+
httpUploadFileTimeoutMS: int;
|
|
583
|
+
}
|
|
584
|
+
export declare class VeLiveFileRecorderConfiguration {
|
|
585
|
+
|
|
586
|
+
/** {en}
|
|
587
|
+
* @detail api
|
|
588
|
+
* @brief Gets the width of the recorded video.
|
|
589
|
+
* @return <br>
|
|
590
|
+
* The width of the recorded video.
|
|
591
|
+
*
|
|
592
|
+
*/
|
|
593
|
+
getWidth(): int;
|
|
594
|
+
|
|
595
|
+
/** {en}
|
|
596
|
+
* @detail api
|
|
597
|
+
* @brief Sets the width of the recorded video.
|
|
598
|
+
* @return <br>The local recording configurations. See VeLiveFileRecorderConfiguration for details.
|
|
599
|
+
* @param width The width of the recorded video. The default value is `360`.
|
|
600
|
+
*
|
|
601
|
+
*/
|
|
602
|
+
setWidth(width: int): this;
|
|
603
|
+
|
|
604
|
+
/** {en}
|
|
605
|
+
* @detail api
|
|
606
|
+
* @brief Gets the height of the recorded video.
|
|
607
|
+
* @return <br>
|
|
608
|
+
* The height of the recorded video.
|
|
609
|
+
*
|
|
610
|
+
*/
|
|
611
|
+
getHeight(): int;
|
|
612
|
+
|
|
613
|
+
/** {en}
|
|
614
|
+
* @detail api
|
|
615
|
+
* @brief Sets the height of the recorded video.
|
|
616
|
+
* @return <br>The local recording configurations. See VeLiveFileRecorderConfiguration for details.
|
|
617
|
+
* @param height The height of the recorded video, the default value is `640`.
|
|
618
|
+
*
|
|
619
|
+
*/
|
|
620
|
+
setHeight(height: int): this;
|
|
621
|
+
|
|
622
|
+
/** {en}
|
|
623
|
+
* @detail api
|
|
624
|
+
* @brief Gets the frame rate of the recorded video.
|
|
625
|
+
* @return <br>
|
|
626
|
+
* The frame rate of the recorded video.
|
|
627
|
+
*
|
|
628
|
+
*/
|
|
629
|
+
getFps(): int;
|
|
630
|
+
|
|
631
|
+
/** {en}
|
|
632
|
+
* @detail api
|
|
633
|
+
* @brief Sets the frame rate of the recorded video.
|
|
634
|
+
* @return <br>The local recording configurations. See VeLiveFileRecorderConfiguration for details.
|
|
635
|
+
* @param fps The frame rate of the recorded video. The default value is `15`.
|
|
636
|
+
*
|
|
637
|
+
*/
|
|
638
|
+
setFps(fps: int): this;
|
|
639
|
+
|
|
640
|
+
/** {en}
|
|
641
|
+
* @detail api
|
|
642
|
+
* @brief Gets the bitrate of the recorded video.
|
|
643
|
+
* @return <br>
|
|
644
|
+
* The bitrate of the recorded video.
|
|
645
|
+
*
|
|
646
|
+
*/
|
|
647
|
+
getBitrate(): int;
|
|
648
|
+
|
|
649
|
+
/** {en}
|
|
650
|
+
* @detail api
|
|
651
|
+
* @brief Sets the bitrate of the recorded video.
|
|
652
|
+
* @return <br>The local recording configurations. See VeLiveFileRecorderConfiguration for details.
|
|
653
|
+
* @param bitrate The bitrate of the recorded video, in Kbps. The default value is `2000`.
|
|
654
|
+
*
|
|
655
|
+
*/
|
|
656
|
+
setBitrate(bitrate: int): this;
|
|
657
|
+
}
|
|
658
|
+
export declare class VeLiveMixVideoLayout {
|
|
659
|
+
|
|
660
|
+
streamId: int;
|
|
661
|
+
|
|
662
|
+
x: float;
|
|
663
|
+
|
|
664
|
+
y: float;
|
|
665
|
+
|
|
666
|
+
width: float;
|
|
667
|
+
|
|
668
|
+
height: float;
|
|
669
|
+
|
|
670
|
+
alpha: float;
|
|
671
|
+
|
|
672
|
+
zOrder: int;
|
|
673
|
+
|
|
674
|
+
renderMode: VeLivePusherRenderMode;
|
|
675
|
+
|
|
676
|
+
/** {en}
|
|
677
|
+
* @detail api
|
|
678
|
+
* @brief Updates video mixing configurations.
|
|
679
|
+
* @param other New video mixing configurations. See VeLiveMixVideoLayout {@link #VeLiveMixVideoLayout} for details.
|
|
680
|
+
*
|
|
681
|
+
*/
|
|
682
|
+
update(other: VeLiveMixVideoLayout): void;
|
|
683
|
+
}
|
|
684
|
+
export declare class VeLiveVideoEffectLicenseConfiguration {
|
|
685
|
+
|
|
686
|
+
/** {en}
|
|
687
|
+
* @detail api
|
|
688
|
+
* @brief Initializes the license configurations in local authentication mode.
|
|
689
|
+
* @return <br>A VeLiveVideoEffectLicenseConfiguration object that uses the specified local path for license authentication.
|
|
690
|
+
* @param path The local cache path for the video effects license. You can get the path through the getPath {@link #getPath} property.
|
|
691
|
+
*
|
|
692
|
+
*/
|
|
693
|
+
static create(path: String): VeLiveVideoEffectLicenseConfiguration;
|
|
694
|
+
|
|
695
|
+
/** {en}
|
|
696
|
+
* @detail api
|
|
697
|
+
* @brief Initializes the license configurations in local authentication mode.
|
|
698
|
+
* @return <br>A VeLiveVideoEffectLicenseConfiguration object that uses the specified local path for license authentication.
|
|
699
|
+
* @param path The local cache path for the video effects license. You can get the path through the getPath {@link #getPath} property.
|
|
700
|
+
*
|
|
701
|
+
*/
|
|
702
|
+
static create_key$secret$url(key: String, secret: String, url: String): VeLiveVideoEffectLicenseConfiguration;
|
|
703
|
+
|
|
704
|
+
/** {en}
|
|
705
|
+
* @detail api
|
|
706
|
+
* @brief Gets the special effects license type.
|
|
707
|
+
* @return <br>
|
|
708
|
+
* The special effects license type. See VeLiveVideoEffectLicenseType {@link #VeLiveVideoEffectLicenseType} for details..
|
|
709
|
+
*
|
|
710
|
+
*/
|
|
711
|
+
getType(): VeLiveVideoEffectLicenseType;
|
|
712
|
+
|
|
713
|
+
/** {en}
|
|
714
|
+
* @detail api
|
|
715
|
+
* @brief Gets the local path to the video effects license.
|
|
716
|
+
* @return <br>
|
|
717
|
+
* The local path to the video effects license, when VeLiveVideoEffectLicenseType {@link #VeLiveVideoEffectLicenseType} is `VeLiveVideoEffectLicenseTypeOffLine`.
|
|
718
|
+
*
|
|
719
|
+
*/
|
|
720
|
+
getPath(): String;
|
|
721
|
+
|
|
722
|
+
/** {en}
|
|
723
|
+
* @detail api
|
|
724
|
+
* @brief Gets the online authentication key for the video effects licenses.
|
|
725
|
+
* @return <br>
|
|
726
|
+
* The online authentication key for the video effects license, when VeLiveVideoEffectLicenseType {@link #VeLiveVideoEffectLicenseType} is `VeLiveVideoEffectLicenseTypeOnLine`.
|
|
727
|
+
*
|
|
728
|
+
*/
|
|
729
|
+
getKey(): String;
|
|
730
|
+
|
|
731
|
+
/** {en}
|
|
732
|
+
* @detail api
|
|
733
|
+
* @brief Gets the online authentication secret for the video effects license.
|
|
734
|
+
* @return <br>
|
|
735
|
+
* The online authentication secret for the video effects license, when VeLiveVideoEffectLicenseType {@link #VeLiveVideoEffectLicenseType} is `VeLiveVideoEffectLicenseTypeOnLine`.
|
|
736
|
+
*
|
|
737
|
+
*/
|
|
738
|
+
getSecret(): String;
|
|
739
|
+
|
|
740
|
+
/** {en}
|
|
741
|
+
* @detail api
|
|
742
|
+
* @brief Gets the online authentication address for the video effects license.
|
|
743
|
+
* @return <br>
|
|
744
|
+
* The online authentication address for the video effects license, when VeLiveVideoEffectLicenseType {@link #VeLiveVideoEffectLicenseType} is `VeLiveVideoEffectLicenseTypeOnLine`.
|
|
745
|
+
*
|
|
746
|
+
*/
|
|
747
|
+
getUrl(): String;
|
|
748
|
+
}
|
|
749
|
+
export declare enum VeLiveAudioFrameSource {
|
|
750
|
+
|
|
751
|
+
VeLiveAudioFrameSourceCapture = 1,
|
|
752
|
+
|
|
753
|
+
VeLiveAudioFrameSourcePreEncode = "1 << 1"
|
|
754
|
+
}
|
|
755
|
+
export declare class VeLiveAudioEncoderConfiguration {
|
|
756
|
+
|
|
757
|
+
/** {en}
|
|
758
|
+
* @detail api
|
|
759
|
+
* @brief Gets the audio encoding bitrate.
|
|
760
|
+
* @return <br>
|
|
761
|
+
* The audio encoding bitrate.
|
|
762
|
+
*
|
|
763
|
+
*/
|
|
764
|
+
getBitrate(): int;
|
|
765
|
+
|
|
766
|
+
/** {en}
|
|
767
|
+
* @detail api
|
|
768
|
+
* @brief Sets the audio encoding bitrate.
|
|
769
|
+
* @return <br>The audio encoding configurations. See VeLiveAudioEncoderConfiguration for details.
|
|
770
|
+
* @param bitrate The audio encoding bitrate, in Kbps. The default value is `64`.
|
|
771
|
+
*
|
|
772
|
+
*/
|
|
773
|
+
setBitrate(bitrate: int): this;
|
|
774
|
+
|
|
775
|
+
/** {en}
|
|
776
|
+
* @detail api
|
|
777
|
+
* @brief Gets the encoding sample rate.
|
|
778
|
+
* @return <br>
|
|
779
|
+
* The encoding sample rate. See VeLiveAudioSampleRate {@link #VeLiveAudioSampleRate} for details.
|
|
780
|
+
*
|
|
781
|
+
*/
|
|
782
|
+
getSampleRate(): VeLiveAudioSampleRate;
|
|
783
|
+
|
|
784
|
+
/** {en}
|
|
785
|
+
* @detail api
|
|
786
|
+
* @brief Sets the encoding sample rate.
|
|
787
|
+
* @return <br>The audio encoding configurations. See VeLiveAudioEncoderConfiguration for details.
|
|
788
|
+
* @param sampleRate The encoding sample rate. The default value is `VeLiveAudioSampleRate44100`. See VeLiveAudioSampleRate {@link #VeLiveAudioSampleRate} for details.
|
|
789
|
+
*
|
|
790
|
+
*/
|
|
791
|
+
setSampleRate(sampleRate: VeLiveAudioSampleRate): this;
|
|
792
|
+
|
|
793
|
+
/** {en}
|
|
794
|
+
* @detail api
|
|
795
|
+
* @brief Gets the number of audio channels for streaming.
|
|
796
|
+
* @return <br>
|
|
797
|
+
* The number of audio channels for streaming. See VeLiveAudioChannel {@link #VeLiveAudioChannel} for details.
|
|
798
|
+
*
|
|
799
|
+
*/
|
|
800
|
+
getChannel(): VeLiveAudioChannel;
|
|
801
|
+
|
|
802
|
+
/** {en}
|
|
803
|
+
* @detail api
|
|
804
|
+
* @brief Sets the number of audio channels for streaming.
|
|
805
|
+
* @return <br>The audio encoding configurations. See VeLiveAudioEncoderConfiguration for details.
|
|
806
|
+
* @param channel The number of audio channels for streaming. The default value is `VeLiveAudioChannelStereo`. See VeLiveAudioChannel {@link #VeLiveAudioChannel} for details.
|
|
807
|
+
*
|
|
808
|
+
*/
|
|
809
|
+
setChannel(channel: VeLiveAudioChannel): this;
|
|
810
|
+
|
|
811
|
+
/** {en}
|
|
812
|
+
* @detail api
|
|
813
|
+
* @brief Gets the audio encoding format.
|
|
814
|
+
* @return <br>
|
|
815
|
+
* The audio encoding format. See VeLiveAudioProfile {@link #VeLiveAudioProfile} for details.
|
|
816
|
+
*
|
|
817
|
+
*/
|
|
818
|
+
getProfile(): VeLiveAudioProfile;
|
|
819
|
+
|
|
820
|
+
/** {en}
|
|
821
|
+
* @detail api
|
|
822
|
+
* @brief Sets the audio encoding format.
|
|
823
|
+
* @return <br>The audio encoding configurations. See VeLiveAudioEncoderConfiguration for details.
|
|
824
|
+
* @param profile The audio encoding format. The default value is `VeLiveAudioAACProfileLC`. See VeLiveAudioProfile {@link #VeLiveAudioProfile} for details.
|
|
825
|
+
*
|
|
826
|
+
*/
|
|
827
|
+
setProfile(profile: VeLiveAudioProfile): this;
|
|
828
|
+
}
|
|
829
|
+
export declare enum VeLiveAudioMixType {
|
|
830
|
+
|
|
831
|
+
VeLiveAudioMixPush = 0,
|
|
832
|
+
|
|
833
|
+
VeLiveAudioMixPlayAndPush = 1
|
|
834
|
+
}
|
|
835
|
+
export declare enum VeLiveAudioCaptureType {
|
|
836
|
+
|
|
837
|
+
VeLiveAudioCaptureMicrophone = 0,
|
|
838
|
+
|
|
839
|
+
VeLiveAudioCaptureVoiceCommunication = 1,
|
|
840
|
+
|
|
841
|
+
VeLiveAudioCaptureVoiceRecognition = 2,
|
|
842
|
+
|
|
843
|
+
VeLiveAudioCaptureExternal = 3,
|
|
844
|
+
|
|
845
|
+
VeLiveAudioCaptureMuteFrame = 4
|
|
846
|
+
}
|