@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,18 +1,12 @@
|
|
|
1
1
|
import { int, BOOL, NSDictionary, float, CMTime, GLuint, CVPixelBufferRef, CMSampleBufferRef, NSData, NSArray, NSString } from './types';
|
|
2
2
|
export declare enum VeLiveVideoEffectLicenseType {
|
|
3
|
-
|
|
4
|
-
* @brief 离线认证视频特效许可证。
|
|
5
|
-
*
|
|
6
|
-
*/
|
|
3
|
+
|
|
7
4
|
/** {en}
|
|
8
5
|
* @brief Authenticate offline.
|
|
9
6
|
*
|
|
10
7
|
*/
|
|
11
8
|
VeLiveVideoEffectLicenseTypeOffLine = 0,
|
|
12
|
-
|
|
13
|
-
* @brief 在线认证视频特效许可证。
|
|
14
|
-
*
|
|
15
|
-
*/
|
|
9
|
+
|
|
16
10
|
/** {en}
|
|
17
11
|
* @brief Authenticate online.
|
|
18
12
|
*
|
|
@@ -20,37 +14,25 @@ export declare enum VeLiveVideoEffectLicenseType {
|
|
|
20
14
|
VeLiveVideoEffectLicenseTypeOnLine = 1
|
|
21
15
|
}
|
|
22
16
|
export declare enum VeLiveNetworkQuality {
|
|
23
|
-
|
|
24
|
-
* @brief 未查询到网络状态。
|
|
25
|
-
*
|
|
26
|
-
*/
|
|
17
|
+
|
|
27
18
|
/** {en}
|
|
28
19
|
* @brief Network status not found.
|
|
29
20
|
*
|
|
30
21
|
*/
|
|
31
22
|
VeLiveNetworkQualityUnknown = -1,
|
|
32
|
-
|
|
33
|
-
* @brief 网络差。
|
|
34
|
-
*
|
|
35
|
-
*/
|
|
23
|
+
|
|
36
24
|
/** {en}
|
|
37
25
|
* @brief Bad network condition.
|
|
38
26
|
*
|
|
39
27
|
*/
|
|
40
28
|
VeLiveNetworkQualityBad = 0,
|
|
41
|
-
|
|
42
|
-
* @brief 网络一般。
|
|
43
|
-
*
|
|
44
|
-
*/
|
|
29
|
+
|
|
45
30
|
/** {en}
|
|
46
31
|
* @brief Poor network condition.
|
|
47
32
|
*
|
|
48
33
|
*/
|
|
49
34
|
VeLiveNetworkQualityPoor = 1,
|
|
50
|
-
|
|
51
|
-
* @brief 网络状态佳。
|
|
52
|
-
*
|
|
53
|
-
*/
|
|
35
|
+
|
|
54
36
|
/** {en}
|
|
55
37
|
* @brief Good network condition.
|
|
56
38
|
*
|
|
@@ -58,19 +40,13 @@ export declare enum VeLiveNetworkQuality {
|
|
|
58
40
|
VeLiveNetworkQualityGood = 2
|
|
59
41
|
}
|
|
60
42
|
export declare enum VeLiveAudioChannel {
|
|
61
|
-
|
|
62
|
-
* @brief 单声道,适用于语音通信,节省带宽。
|
|
63
|
-
*
|
|
64
|
-
*/
|
|
43
|
+
|
|
65
44
|
/** {en}
|
|
66
45
|
* @brief Mono, which is suitable for voice communication and saves bandwidth.
|
|
67
46
|
*
|
|
68
47
|
*/
|
|
69
48
|
VeLiveAudioChannelMono = 1,
|
|
70
|
-
|
|
71
|
-
* @brief 立体声,适用于音乐播放,提供更丰富的音频体验。
|
|
72
|
-
*
|
|
73
|
-
*/
|
|
49
|
+
|
|
74
50
|
/** {en}
|
|
75
51
|
* @brief Stereo, which provides a richer audio experience and is suitable for music playback.
|
|
76
52
|
*
|
|
@@ -78,37 +54,25 @@ export declare enum VeLiveAudioChannel {
|
|
|
78
54
|
VeLiveAudioChannelStereo = 2
|
|
79
55
|
}
|
|
80
56
|
export declare enum VeLiveVideoEncodeFrameType {
|
|
81
|
-
|
|
82
|
-
* @brief IDR 帧类型,关键帧,帧序列中的第一帧或者在视频切换点的帧。
|
|
83
|
-
*
|
|
84
|
-
*/
|
|
57
|
+
|
|
85
58
|
/** {en}
|
|
86
59
|
* @brief IDR frame.
|
|
87
60
|
*
|
|
88
61
|
*/
|
|
89
62
|
VeLiveVideoEncodeFrameTypeIDR = 1,
|
|
90
|
-
|
|
91
|
-
* @brief SPS/PPS 帧类型,序列参数集 SPS 和图像参数集 PPS 帧,通常与 IDR 帧一起发送。
|
|
92
|
-
*
|
|
93
|
-
*/
|
|
63
|
+
|
|
94
64
|
/** {en}
|
|
95
65
|
* @brief SPS/PPS frame.
|
|
96
66
|
*
|
|
97
67
|
*/
|
|
98
68
|
VeLiveVideoEncodeFrameTypeSPSPPS = 2,
|
|
99
|
-
|
|
100
|
-
* @brief B 帧类型,双向预测内插帧,根据前后帧来预测当前帧的内容。
|
|
101
|
-
*
|
|
102
|
-
*/
|
|
69
|
+
|
|
103
70
|
/** {en}
|
|
104
71
|
* @brief B frame.
|
|
105
72
|
*
|
|
106
73
|
*/
|
|
107
74
|
VeLiveVideoEncodeFrameTypeB = 3,
|
|
108
|
-
|
|
109
|
-
* @brief P 帧类型,向前预测帧,只根据前一帧来预测当前帧的内容。
|
|
110
|
-
*
|
|
111
|
-
*/
|
|
75
|
+
|
|
112
76
|
/** {en}
|
|
113
77
|
* @brief P frame.
|
|
114
78
|
*
|
|
@@ -116,83 +80,56 @@ export declare enum VeLiveVideoEncodeFrameType {
|
|
|
116
80
|
VeLiveVideoEncodeFrameTypeP = 4
|
|
117
81
|
}
|
|
118
82
|
export declare class VeLiveVideoEncoderConfiguration {
|
|
119
|
-
|
|
120
|
-
* @brief 推流视频分辨率,默认值为 VeLiveVideoResolution720P,详情请参见 [VeLiveVideoResolution](#VeLiveVideoResolution)。
|
|
121
|
-
*/
|
|
83
|
+
|
|
122
84
|
/** {en}
|
|
123
85
|
* @brief The video resolution. See [VeLiveVideoResolution](#VeLiveVideoResolution) for details. The default value is `VeLiveVideoResolution720P`.
|
|
124
86
|
*/
|
|
125
87
|
resolution: VeLiveVideoResolution;
|
|
126
|
-
|
|
127
|
-
* @brief 推流视频编码格式,默认值为 VeLiveVideoCodecH264,详情请参见 [VeLiveVideoCodec](#VeLiveVideoCodec)。
|
|
128
|
-
*/
|
|
88
|
+
|
|
129
89
|
/** {en}
|
|
130
90
|
* @brief The video codec. The default value is `VeLiveVideoCodecH264`. See [VeLiveVideoCodec](#VeLiveVideoCodec) for details.
|
|
131
91
|
*/
|
|
132
92
|
codec: VeLiveVideoCodec;
|
|
133
|
-
|
|
134
|
-
* @brief 视频目标编码码率,单位为 kbps,默认值由 `resolution` 参数值决定。
|
|
135
|
-
*/
|
|
93
|
+
|
|
136
94
|
/** {en}
|
|
137
95
|
* @brief The target video encoding bitrate, in Kbps. The default value depends on the value of the `resolution` parameter.
|
|
138
96
|
*/
|
|
139
97
|
bitrate: int;
|
|
140
|
-
|
|
141
|
-
* @brief 视频最小编码码率,单位为 kbps,默认值由 `resolution` 参数值决定;如果开启自适应码率,推流 SDK 根据网络情况进行编码码率自适应调整的最小码率。
|
|
142
|
-
*/
|
|
98
|
+
|
|
143
99
|
/** {en}
|
|
144
100
|
* @brief The minimum video encoding bitrate, in Kbps, when the adaptive bitrate (ABR) feature is enabled. The default value depends on the value of the `resolution` parameter.
|
|
145
101
|
*/
|
|
146
102
|
minBitrate: int;
|
|
147
|
-
|
|
148
|
-
* @brief 视频最大编码码率,单位为 kbps,默认值由 `resolution` 参数值决定;如果开启自适应码率,推流 SDK 根据网络情况进行编码码率自适应调整的最大码率。
|
|
149
|
-
*/
|
|
103
|
+
|
|
150
104
|
/** {en}
|
|
151
105
|
* @brief 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.
|
|
152
106
|
*/
|
|
153
107
|
maxBitrate: int;
|
|
154
|
-
|
|
155
|
-
* @brief 视频 GOP 大小,单位为 s,默认值为 2。
|
|
156
|
-
*/
|
|
108
|
+
|
|
157
109
|
/** {en}
|
|
158
110
|
* @brief The video GOP size, in seconds. The default value is `2`.
|
|
159
111
|
*/
|
|
160
112
|
gopSize: int;
|
|
161
|
-
|
|
162
|
-
* @brief 视频编码帧率,单位为 fps,默认值为 15。
|
|
163
|
-
*/
|
|
113
|
+
|
|
164
114
|
/** {en}
|
|
165
115
|
* @brief The encoded frame rate, in fps. The default value is `15`.
|
|
166
116
|
*/
|
|
167
117
|
fps: int;
|
|
168
|
-
|
|
169
|
-
* @brief 是否启用 B 帧,默认值为 NO,支持的取值包括:<br>
|
|
170
|
-
* - YES:开启;
|
|
171
|
-
* - NO:关闭。
|
|
172
|
-
*/
|
|
118
|
+
|
|
173
119
|
/** {en}
|
|
174
120
|
* @brief Whether to enable B frames. <br>
|
|
175
121
|
* - YES: Enable.
|
|
176
122
|
* - NO: (Default) Disable.
|
|
177
123
|
*/
|
|
178
124
|
enableBFrame: BOOL;
|
|
179
|
-
|
|
180
|
-
* @brief 是否开启硬件编码。
|
|
181
|
-
* - YES:(Default) 开启;
|
|
182
|
-
* - NO:不开启。
|
|
183
|
-
*/
|
|
125
|
+
|
|
184
126
|
/** {en}
|
|
185
127
|
* @brief Whether to enable hardware encoding.<br>
|
|
186
128
|
* - YES: (Default) Enable;
|
|
187
129
|
* - NO: Disable.
|
|
188
130
|
*/
|
|
189
131
|
enableAccelerate: BOOL;
|
|
190
|
-
|
|
191
|
-
* @brief 初始化方法,用于创建一个 VeLiveVideoEncoderConfiguration{@link #VeLiveVideoEncoderConfiguration} 对象,并指定视频的分辨率。
|
|
192
|
-
* @param resolution 视频的分辨率,详情请参见 VeLiveVideoResolution{@link #VeLiveVideoResolution}。
|
|
193
|
-
* @return <br>
|
|
194
|
-
* 创建的 VeLiveVideoEncoderConfiguration{@link #VeLiveVideoEncoderConfiguration} 对象。
|
|
195
|
-
*/
|
|
132
|
+
|
|
196
133
|
/** {en}
|
|
197
134
|
* @brief Creates a VeLiveVideoEncoderConfiguration {@link #VeLiveVideoEncoderConfiguration} object and specifies the video resolution.
|
|
198
135
|
* @param resolution The video resolution. See VeLiveVideoResolution {@link #VeLiveVideoResolution} for details.
|
|
@@ -202,19 +139,13 @@ export declare class VeLiveVideoEncoderConfiguration {
|
|
|
202
139
|
initWithResolution(resolution: VeLiveVideoResolution): this;
|
|
203
140
|
}
|
|
204
141
|
export declare enum VeLiveVideoFrameSource {
|
|
205
|
-
|
|
206
|
-
* @brief 采集到的原始视频帧。这是从设备的摄像头或其他视频输入源获取的视频帧。
|
|
207
|
-
*
|
|
208
|
-
*/
|
|
142
|
+
|
|
209
143
|
/** {en}
|
|
210
144
|
* @brief The original video frame captured by the camera or other video sources.
|
|
211
145
|
*
|
|
212
146
|
*/
|
|
213
147
|
VeLiveVideoFrameSourceCapture = 1,
|
|
214
|
-
|
|
215
|
-
* @brief 编码前的视频帧。这是通过各种处理(例如滤镜、旋转等)后,准备进行编码的视频帧。
|
|
216
|
-
*
|
|
217
|
-
*/
|
|
148
|
+
|
|
218
149
|
/** {en}
|
|
219
150
|
* @brief The video frame prior to encoding after undergoing various processes, such as filtering and rotation.
|
|
220
151
|
*
|
|
@@ -222,28 +153,19 @@ export declare enum VeLiveVideoFrameSource {
|
|
|
222
153
|
VeLiveVideoFrameSourcePreEncode = 2
|
|
223
154
|
}
|
|
224
155
|
export declare enum VeLiveAudioBufferType {
|
|
225
|
-
|
|
226
|
-
* @brief 未知的音频数据类型。
|
|
227
|
-
*
|
|
228
|
-
*/
|
|
156
|
+
|
|
229
157
|
/** {en}
|
|
230
158
|
* @brief Unknown data type.
|
|
231
159
|
*
|
|
232
160
|
*/
|
|
233
161
|
VeLiveAudioBufferTypeUnknown = -1,
|
|
234
|
-
|
|
235
|
-
* @brief 音频数据类型为 CMSampleBufferRef。
|
|
236
|
-
*
|
|
237
|
-
*/
|
|
162
|
+
|
|
238
163
|
/** {en}
|
|
239
164
|
* @brief CMSampleBufferRef.
|
|
240
165
|
*
|
|
241
166
|
*/
|
|
242
167
|
VeLiveAudioBufferTypeSampleBuffer = 0,
|
|
243
|
-
|
|
244
|
-
* @brief 音频数据类型为 NSData。
|
|
245
|
-
*
|
|
246
|
-
*/
|
|
168
|
+
|
|
247
169
|
/** {en}
|
|
248
170
|
* @brief NSData.
|
|
249
171
|
*
|
|
@@ -251,37 +173,27 @@ export declare enum VeLiveAudioBufferType {
|
|
|
251
173
|
VeLiveAudioBufferTypeNSData = 1
|
|
252
174
|
}
|
|
253
175
|
export declare class VeLivePusherConfiguration {
|
|
254
|
-
|
|
255
|
-
* @brief 视频采集参数设置,用于调整和设置视频采集相关的参数。详情请参见 [VeLiveVideoCaptureConfiguration](#VeLiveVideoCaptureConfiguration)。
|
|
256
|
-
*/
|
|
176
|
+
|
|
257
177
|
/** {en}
|
|
258
178
|
* @brief The video capture configurations. See [VeLiveVideoCaptureConfiguration](#VeLiveVideoCaptureConfiguration) for details.
|
|
259
179
|
*/
|
|
260
180
|
videoCaptureConfig: VeLiveVideoCaptureConfiguration;
|
|
261
|
-
|
|
262
|
-
* @brief 音频采集参数设置,用于调整和设置音频采集相关的参数。详情请参见 [VeLiveAudioCaptureConfiguration](#VeLiveAudioCaptureConfiguration)。
|
|
263
|
-
*/
|
|
181
|
+
|
|
264
182
|
/** {en}
|
|
265
183
|
* @brief The audio capture configurations. See [VeLiveAudioCaptureConfiguration](#VeLiveAudioCaptureConfiguration) for details.
|
|
266
184
|
*/
|
|
267
185
|
audioCaptureConfig: VeLiveAudioCaptureConfiguration;
|
|
268
|
-
|
|
269
|
-
* @brief 推流失败后,尝试重连的时间间隔。单位为 s,默认值为 5。
|
|
270
|
-
*/
|
|
186
|
+
|
|
271
187
|
/** {en}
|
|
272
188
|
* @brief The time interval between each attempt to reconnect, in seconds. The default value is `5`.
|
|
273
189
|
*/
|
|
274
190
|
reconnectIntervalSeconds: int;
|
|
275
|
-
|
|
276
|
-
* @brief 推流失败后,尝试重连的次数。默认值为 3。
|
|
277
|
-
*/
|
|
191
|
+
|
|
278
192
|
/** {en}
|
|
279
193
|
* @brief The number of attempts to reconnect after the initial attempt fails. The default value is `3`.
|
|
280
194
|
*/
|
|
281
195
|
reconnectCount: int;
|
|
282
|
-
|
|
283
|
-
* @brief 设置扩展参数,用于实现某些特殊功能或配置,默认不需要设置。
|
|
284
|
-
*/
|
|
196
|
+
|
|
285
197
|
/** {en}
|
|
286
198
|
* @brief Advanced parameters. You can leave this parameter empty.
|
|
287
199
|
*/
|
|
@@ -289,64 +201,43 @@ export declare class VeLivePusherConfiguration {
|
|
|
289
201
|
init(): this;
|
|
290
202
|
}
|
|
291
203
|
export declare enum VeLiveVideoCaptureType {
|
|
292
|
-
|
|
293
|
-
* @brief 使用前置摄像头进行视频采集。
|
|
294
|
-
*
|
|
295
|
-
*/
|
|
204
|
+
|
|
296
205
|
/** {en}
|
|
297
206
|
* @brief Capture the video with the front-facing camera.
|
|
298
207
|
*
|
|
299
208
|
*/
|
|
300
209
|
VeLiveVideoCaptureFrontCamera = 0,
|
|
301
|
-
|
|
302
|
-
* @brief 使用后置摄像头进行视频采集。
|
|
303
|
-
*
|
|
304
|
-
*/
|
|
210
|
+
|
|
305
211
|
/** {en}
|
|
306
212
|
* @brief Capture the video with the rear camera.
|
|
307
213
|
*
|
|
308
214
|
*/
|
|
309
215
|
VeLiveVideoCaptureBackCamera = 1,
|
|
310
|
-
|
|
311
|
-
* @brief 使用设备的双摄进行视频采集。
|
|
312
|
-
*
|
|
313
|
-
*/
|
|
216
|
+
|
|
314
217
|
/** {en}
|
|
315
218
|
* @brief Capture the video with dual cameras.
|
|
316
219
|
*
|
|
317
220
|
*/
|
|
318
221
|
VeLiveVideoCaptureDualCamera = 2,
|
|
319
|
-
|
|
320
|
-
* @brief 使用外部设备或源进行视频采集。
|
|
321
|
-
*
|
|
322
|
-
*/
|
|
222
|
+
|
|
323
223
|
/** {en}
|
|
324
224
|
* @brief Capture the video with an external device or source.
|
|
325
225
|
*
|
|
326
226
|
*/
|
|
327
227
|
VeLiveVideoCaptureExternal = 4,
|
|
328
|
-
|
|
329
|
-
* @brief 使用指定的静态图片作为视频源。
|
|
330
|
-
*
|
|
331
|
-
*/
|
|
228
|
+
|
|
332
229
|
/** {en}
|
|
333
230
|
* @brief Use a static image as the video source.
|
|
334
231
|
*
|
|
335
232
|
*/
|
|
336
233
|
VeLiveVideoCaptureCustomImage = 5,
|
|
337
|
-
|
|
338
|
-
* @brief 使用最近采集的一帧图像重复作为视频源。
|
|
339
|
-
*
|
|
340
|
-
*/
|
|
234
|
+
|
|
341
235
|
/** {en}
|
|
342
236
|
* @brief Use the last frame as the video source.
|
|
343
237
|
*
|
|
344
238
|
*/
|
|
345
239
|
VeLiveVideoCaptureLastFrame = 6,
|
|
346
|
-
|
|
347
|
-
* @brief 使用黑色帧作为视频源,一般用于调试或特殊需求。
|
|
348
|
-
*
|
|
349
|
-
*/
|
|
240
|
+
|
|
350
241
|
/** {en}
|
|
351
242
|
* @brief Use a black frame as the video source. This is usually used for debugging purposes or in special circumstances.
|
|
352
243
|
*
|
|
@@ -354,32 +245,23 @@ export declare enum VeLiveVideoCaptureType {
|
|
|
354
245
|
VeLiveVideoCaptureDummyFrame = 7
|
|
355
246
|
}
|
|
356
247
|
export declare class VeLiveFileRecorderConfiguration {
|
|
357
|
-
|
|
358
|
-
* @brief 录制的视频宽度,单位为 px,默认值为 360。
|
|
359
|
-
*/
|
|
248
|
+
|
|
360
249
|
/** {en}
|
|
361
250
|
* @brief The width of the recorded video, in pixels. The default value is `360`.
|
|
362
251
|
*/
|
|
363
252
|
width: int;
|
|
364
|
-
|
|
365
|
-
* @brief 录制的视频高度,单位为 px,默认值为 640。
|
|
366
|
-
*/
|
|
253
|
+
|
|
367
254
|
/** {en}
|
|
368
255
|
* @brief The height of the recorded video, in pixels. The default value is `640`.
|
|
369
256
|
*/
|
|
370
257
|
height: int;
|
|
371
|
-
|
|
372
|
-
* @deprecated
|
|
373
|
-
* @brief 录制的视频帧率,默认值为 15,取值范围为 [1,15]。
|
|
374
|
-
*/
|
|
258
|
+
|
|
375
259
|
/** {en}
|
|
376
260
|
* @deprecated
|
|
377
261
|
* @brief The frame rate of the recorded video. The default value is `15`. The value range is [1,15].
|
|
378
262
|
*/
|
|
379
263
|
fps: int;
|
|
380
|
-
|
|
381
|
-
* @brief 录制的视频编码码率,单位为 kbps,默认值为 2000。
|
|
382
|
-
*/
|
|
264
|
+
|
|
383
265
|
/** {en}
|
|
384
266
|
* @brief The encoding bitrate of the recorded video, in Kbps. The default value is `2000`.
|
|
385
267
|
*/
|
|
@@ -387,46 +269,31 @@ export declare class VeLiveFileRecorderConfiguration {
|
|
|
387
269
|
init(): this;
|
|
388
270
|
}
|
|
389
271
|
export declare enum VeLiveVideoBufferType {
|
|
390
|
-
|
|
391
|
-
* @brief 未知视频数据类型,当未指定输入视频数据的格式时,会默认为此类型。
|
|
392
|
-
*
|
|
393
|
-
*/
|
|
272
|
+
|
|
394
273
|
/** {en}
|
|
395
274
|
* @brief Unknown data type, which is the default type if you do not specify any type.
|
|
396
275
|
*
|
|
397
276
|
*/
|
|
398
277
|
VeLiveVideoBufferTypeUnKnown = -1,
|
|
399
|
-
|
|
400
|
-
* @brief 视频数据类型为 CVPixelBuffer。
|
|
401
|
-
*
|
|
402
|
-
*/
|
|
278
|
+
|
|
403
279
|
/** {en}
|
|
404
280
|
* @brief CVPixelBuffer.
|
|
405
281
|
*
|
|
406
282
|
*/
|
|
407
283
|
VeLiveVideoBufferTypePixelBuffer = 0,
|
|
408
|
-
|
|
409
|
-
* @brief 视频数据类型为 CMSampleBufferRef。
|
|
410
|
-
*
|
|
411
|
-
*/
|
|
284
|
+
|
|
412
285
|
/** {en}
|
|
413
286
|
* @brief CMSampleBufferRef.
|
|
414
287
|
*
|
|
415
288
|
*/
|
|
416
289
|
VeLiveVideoBufferTypeSampleBuffer = 1,
|
|
417
|
-
|
|
418
|
-
* @brief 视频数据类型为 NSData。
|
|
419
|
-
*
|
|
420
|
-
*/
|
|
290
|
+
|
|
421
291
|
/** {en}
|
|
422
292
|
* @brief NSData.
|
|
423
293
|
*
|
|
424
294
|
*/
|
|
425
295
|
VeLiveVideoBufferTypeNSData = 2,
|
|
426
|
-
|
|
427
|
-
* @brief 视频数据类型为 OpenGL 纹理。
|
|
428
|
-
*
|
|
429
|
-
*/
|
|
296
|
+
|
|
430
297
|
/** {en}
|
|
431
298
|
* @brief OpenGL texture.
|
|
432
299
|
*
|
|
@@ -434,68 +301,47 @@ export declare enum VeLiveVideoBufferType {
|
|
|
434
301
|
VeLiveVideoBufferTypeTexture = 3
|
|
435
302
|
}
|
|
436
303
|
export declare class VeLiveMixVideoLayout {
|
|
437
|
-
|
|
438
|
-
* @brief 视频流 ID,唯一标识,用于区分不同的视频流。
|
|
439
|
-
*/
|
|
304
|
+
|
|
440
305
|
/** {en}
|
|
441
306
|
* @brief The unique identifier for a video stream.
|
|
442
307
|
*/
|
|
443
308
|
streamId: int;
|
|
444
|
-
|
|
445
|
-
* @brief 视频流对应区域左上角的横坐标,该坐标是相对整体画面的归一化比例,取值的范围为 [0.0,1.0]。
|
|
446
|
-
*/
|
|
309
|
+
|
|
447
310
|
/** {en}
|
|
448
311
|
* @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.
|
|
449
312
|
*/
|
|
450
313
|
x: float;
|
|
451
|
-
|
|
452
|
-
* @brief 视频流对应区域左上角的纵坐标,该坐标是相对整体画面的归一化比例,取值的范围为 [0.0,1.0]。
|
|
453
|
-
*/
|
|
314
|
+
|
|
454
315
|
/** {en}
|
|
455
316
|
* @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.
|
|
456
317
|
*/
|
|
457
318
|
y: float;
|
|
458
|
-
|
|
459
|
-
* @brief 视频流对应区域宽度,该宽度是相对整体画面的归一化比例,取值的范围为 [0.0,1.0]。
|
|
460
|
-
*/
|
|
319
|
+
|
|
461
320
|
/** {en}
|
|
462
321
|
* @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.
|
|
463
322
|
*/
|
|
464
323
|
width: float;
|
|
465
|
-
|
|
466
|
-
* @brief 视频流对应区域高度,该高度是相对整体画面的归一化比例,取值的范围为 [0.0,1.0]。
|
|
467
|
-
*/
|
|
324
|
+
|
|
468
325
|
/** {en}
|
|
469
326
|
* @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.
|
|
470
327
|
*/
|
|
471
328
|
height: float;
|
|
472
|
-
|
|
473
|
-
* @brief 视频流在混流中的透明度,取值范围为 [0.0,1.0],取值 0.0 表示全透明,取值 1.0 表示不透明。
|
|
474
|
-
*/
|
|
329
|
+
|
|
475
330
|
/** {en}
|
|
476
331
|
* @brief The video transparency. The value range is [0.0, 1.0], where `0.0` indicates full transparency and `1.0` indicates full opacity.
|
|
477
332
|
*/
|
|
478
333
|
alpha: float;
|
|
479
|
-
|
|
480
|
-
* @brief 视频流在混流中的层级。取值范围为 [0,100],取值 0 表示最底层,取值越大,层级越高。
|
|
481
|
-
*/
|
|
334
|
+
|
|
482
335
|
/** {en}
|
|
483
336
|
* @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.
|
|
484
337
|
*/
|
|
485
338
|
zOrder: int;
|
|
486
|
-
|
|
487
|
-
* @brief 视频流的渲染模式。详情请参见 [VeLivePusherRenderMode](#VeLivePusherRenderMode)。
|
|
488
|
-
*/
|
|
339
|
+
|
|
489
340
|
/** {en}
|
|
490
341
|
* @brief The render mode of the video. See [VeLivePusherRenderMode](#VeLivePusherRenderMode) for details.
|
|
491
342
|
*/
|
|
492
343
|
renderMode: VeLivePusherRenderMode;
|
|
493
|
-
|
|
494
|
-
* @brief 是否保留视频流原 Alpha 通道值,默认为保留,当 [alpha](#VeLiveMixVideoLayout-alpha) 取值在 [0.0, 1.0] 之间时,则忽略该配置。<br/>
|
|
495
|
-
*
|
|
496
|
-
* - YES:保留;
|
|
497
|
-
* - NO:不保留。
|
|
498
|
-
*/
|
|
344
|
+
|
|
499
345
|
/** {en}
|
|
500
346
|
* @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/>
|
|
501
347
|
*
|
|
@@ -506,17 +352,12 @@ export declare class VeLiveMixVideoLayout {
|
|
|
506
352
|
init(): this;
|
|
507
353
|
}
|
|
508
354
|
export declare class VeLiveMixAudioLayout {
|
|
509
|
-
|
|
510
|
-
* @brief 音频流 ID,唯一标识,用于区分不同的音频流。
|
|
511
|
-
*/
|
|
355
|
+
|
|
512
356
|
/** {en}
|
|
513
357
|
* @brief The unique identifier for an audio stream.
|
|
514
358
|
*/
|
|
515
359
|
streamId: int;
|
|
516
|
-
|
|
517
|
-
* @detail api
|
|
518
|
-
* @brief 混流音频的音量,范围为 [0.0,4.0]。当你将 [VeLiveAudioMixType](#VeLiveAudioMixType) 设置为 `VeLiveAudioMixPlayAndPush` 时,该属性同时控制混流音频在拉流端和本地的播放音量。
|
|
519
|
-
*/
|
|
360
|
+
|
|
520
361
|
/** {en}
|
|
521
362
|
* @detail api
|
|
522
363
|
* @brief The volume of the mixed audio stream. The value range is [0.0,4.0]. If you set [VeLiveAudioMixType](#VeLiveAudioMixType) to `VeLiveAudioMixPlayAndPush`, this property takes effect on both the host and the audience sides.
|
|
@@ -525,28 +366,19 @@ export declare class VeLiveMixAudioLayout {
|
|
|
525
366
|
init(): this;
|
|
526
367
|
}
|
|
527
368
|
export declare enum VeLiveAudioProfile {
|
|
528
|
-
|
|
529
|
-
* @brief LC-AAC 编码方式。
|
|
530
|
-
*
|
|
531
|
-
*/
|
|
369
|
+
|
|
532
370
|
/** {en}
|
|
533
371
|
* @brief LC-AAC.
|
|
534
372
|
*
|
|
535
373
|
*/
|
|
536
374
|
VeLiveAudioAACProfileLC = 0,
|
|
537
|
-
|
|
538
|
-
* @brief HEv1-AAC 编码方式。
|
|
539
|
-
*
|
|
540
|
-
*/
|
|
375
|
+
|
|
541
376
|
/** {en}
|
|
542
377
|
* @brief HEv1-AAC.
|
|
543
378
|
*
|
|
544
379
|
*/
|
|
545
380
|
VeLiveAudioAACProfileHEv1 = 1,
|
|
546
|
-
|
|
547
|
-
* @brief HEv2-AAC 编码方式。
|
|
548
|
-
*
|
|
549
|
-
*/
|
|
381
|
+
|
|
550
382
|
/** {en}
|
|
551
383
|
* @brief HEv2-AAC.
|
|
552
384
|
*
|
|
@@ -554,79 +386,57 @@ export declare enum VeLiveAudioProfile {
|
|
|
554
386
|
VeLiveAudioAACProfileHEv2 = 2
|
|
555
387
|
}
|
|
556
388
|
export declare class VeLiveVideoFrame {
|
|
557
|
-
|
|
558
|
-
* @brief 视频数据包装格式。默认值为 VeLiveVideoBufferTypeUnknown,详情请参见 [VeLiveVideoBufferType](#VeLiveVideoBufferType)。
|
|
559
|
-
*/
|
|
389
|
+
|
|
560
390
|
/** {en}
|
|
561
391
|
* @brief The video buffer type. The default value is `VeLiveVideoBufferTypeUnknown`. See [VeLiveVideoBufferType](#VeLiveVideoBufferType) for details.
|
|
562
392
|
*/
|
|
563
393
|
bufferType: VeLiveVideoBufferType;
|
|
564
|
-
|
|
565
|
-
* @brief 视频帧像素格式。bufferType 为 VeLiveVideoBufferTypeNSData 时,需要指定数据格式。详情请参见 [VeLivePixelFormat](#VeLivePixelFormat)。
|
|
566
|
-
*/
|
|
394
|
+
|
|
567
395
|
/** {en}
|
|
568
396
|
* @brief The pixel format. When `bufferType` is `VeLiveVideoBufferTypeNSData`, you must specify `pixelFormat`. See [VeLivePixelFormat](#VeLivePixelFormat) for details.
|
|
569
397
|
*/
|
|
570
398
|
pixelFormat: VeLivePixelFormat;
|
|
571
|
-
|
|
572
|
-
* @brief 视频帧顺时针旋转角度。详情请参见 [VeLiveVideoRotation](#VeLiveVideoRotation)。
|
|
573
|
-
*/
|
|
399
|
+
|
|
574
400
|
/** {en}
|
|
575
401
|
* @brief The rotation angle in a clockwise direction. See [VeLiveVideoRotation](#VeLiveVideoRotation) for details.
|
|
576
402
|
*/
|
|
577
403
|
rotation: VeLiveVideoRotation;
|
|
578
|
-
|
|
579
|
-
* @brief 视频宽度,单位为 px。
|
|
580
|
-
*/
|
|
404
|
+
|
|
581
405
|
/** {en}
|
|
582
406
|
* @brief The width of the video, in pixels.
|
|
583
407
|
*/
|
|
584
408
|
width: int;
|
|
585
|
-
|
|
586
|
-
* @brief 视频高度,单位为 px。
|
|
587
|
-
*/
|
|
409
|
+
|
|
588
410
|
/** {en}
|
|
589
411
|
* @brief The height of the video, in pixels.
|
|
590
412
|
*/
|
|
591
413
|
height: int;
|
|
592
|
-
|
|
593
|
-
* @brief 视频帧时间戳,单位为 μs。
|
|
594
|
-
*/
|
|
414
|
+
|
|
595
415
|
/** {en}
|
|
596
416
|
* @brief The timestamp of the video frame, in μs.
|
|
597
417
|
*/
|
|
598
418
|
pts: CMTime;
|
|
599
|
-
|
|
600
|
-
* @brief `bufferType` 为 `VeLiveVideoBufferTypeTexture` 时的视频数据。
|
|
601
|
-
*/
|
|
419
|
+
|
|
602
420
|
/** {en}
|
|
603
421
|
* @brief The video data, when `bufferType` is `VeLiveVideoBufferTypeTexture`.
|
|
604
422
|
*/
|
|
605
423
|
textureId: GLuint;
|
|
606
|
-
|
|
607
|
-
* @brief `bufferType` 为 `VeLiveVideoBufferTypePixelBuffer` 时的视频数据。
|
|
608
|
-
*/
|
|
424
|
+
|
|
609
425
|
/** {en}
|
|
610
426
|
* @brief The video data, when `bufferType` is `VeLiveVideoBufferTypePixelBuffer`.
|
|
611
427
|
*/
|
|
612
428
|
pixelBuffer: CVPixelBufferRef;
|
|
613
|
-
|
|
614
|
-
* @brief `bufferType` 为 `VeLiveVideoBufferTypeSampleBuffer` 时的视频数据。
|
|
615
|
-
*/
|
|
429
|
+
|
|
616
430
|
/** {en}
|
|
617
431
|
* @brief The video data, when `bufferType` is `VeLiveVideoBufferTypeSampleBuffer`.
|
|
618
432
|
*/
|
|
619
433
|
sampleBuffer: CMSampleBufferRef;
|
|
620
|
-
|
|
621
|
-
* @brief `bufferType` 为 `VeLiveVideoBufferTypeNSData` 时的视频数据。
|
|
622
|
-
*/
|
|
434
|
+
|
|
623
435
|
/** {en}
|
|
624
436
|
* @brief The video data, when `bufferType` is `VeLiveVideoBufferTypeNSData`.
|
|
625
437
|
*/
|
|
626
438
|
data: NSData;
|
|
627
|
-
|
|
628
|
-
* @brief 释放回调函数,用于在 SDK 内部处理完 VideoFrame 后通知外部释放相关资源。此回调主要用于 SDK 外部为 VideoFrame 申请内存,以便 SDK 内部使用。但无法预知内部何时使用完毕。
|
|
629
|
-
*/
|
|
439
|
+
|
|
630
440
|
/** {en}
|
|
631
441
|
* @brief Triggered when the SDK has completed processing the video frame and no longer needs the memory. You can release the memory for the video frame after receiving this callback.
|
|
632
442
|
*/
|
|
@@ -634,37 +444,25 @@ export declare class VeLiveVideoFrame {
|
|
|
634
444
|
init(): this;
|
|
635
445
|
}
|
|
636
446
|
export declare enum VeLiveVideoFluencyLevel {
|
|
637
|
-
|
|
638
|
-
* @brief 流畅,帧率能达到预设的目标帧率。
|
|
639
|
-
*
|
|
640
|
-
*/
|
|
447
|
+
|
|
641
448
|
/** {en}
|
|
642
449
|
* @brief Smooth. The frame rate reaches the expected rate.
|
|
643
450
|
*
|
|
644
451
|
*/
|
|
645
452
|
VeLiveVideoFluencyLevelSmooth = 0,
|
|
646
|
-
|
|
647
|
-
* @brief 一般卡顿,帧率比预设的目标帧率低 1fps~3fps。
|
|
648
|
-
*
|
|
649
|
-
*/
|
|
453
|
+
|
|
650
454
|
/** {en}
|
|
651
455
|
* @brief Minor freeze. The frame rate is 1 to 3 fps lower than the expected rate.
|
|
652
456
|
*
|
|
653
457
|
*/
|
|
654
458
|
VeLiveVideoFluencyLevelSluggish = 1,
|
|
655
|
-
|
|
656
|
-
* @brief 严重卡顿,帧率比预设的目标帧率低 4fps 以上。
|
|
657
|
-
*
|
|
658
|
-
*/
|
|
459
|
+
|
|
659
460
|
/** {en}
|
|
660
461
|
* @brief Severe freeze. The frame rate is 4 fps lower than the expected rate.
|
|
661
462
|
*
|
|
662
463
|
*/
|
|
663
464
|
VeLiveVideoFluencyLevelBlocked = 2,
|
|
664
|
-
|
|
665
|
-
* @brief 完全卡住,帧率低于 2fps。
|
|
666
|
-
*
|
|
667
|
-
*/
|
|
465
|
+
|
|
668
466
|
/** {en}
|
|
669
467
|
* @brief Completely frozen. The frame rate is below 2 fps.
|
|
670
468
|
*
|
|
@@ -672,28 +470,19 @@ export declare enum VeLiveVideoFluencyLevel {
|
|
|
672
470
|
VeLiveVideoFluencyLevelStuck = 3
|
|
673
471
|
}
|
|
674
472
|
export declare enum VeLiveVideoMirrorType {
|
|
675
|
-
|
|
676
|
-
* @brief 对采集画面的镜像控制。开启时,预览和推流画面都会呈现为镜像状态。
|
|
677
|
-
*
|
|
678
|
-
*/
|
|
473
|
+
|
|
679
474
|
/** {en}
|
|
680
475
|
* @brief Mirror the captured video. When turned on, both the preview and the pushed video are mirrored.
|
|
681
476
|
*
|
|
682
477
|
*/
|
|
683
478
|
VeLiveVideoMirrorCapture = 0,
|
|
684
|
-
|
|
685
|
-
* @brief 对预览画面的镜像控制。开启时,只有主播预览画面呈现镜像状态。
|
|
686
|
-
*
|
|
687
|
-
*/
|
|
479
|
+
|
|
688
480
|
/** {en}
|
|
689
481
|
* @brief Mirror the preview. When turned on, only the preview is mirrored.
|
|
690
482
|
*
|
|
691
483
|
*/
|
|
692
484
|
VeLiveVideoMirrorPreview = 1,
|
|
693
|
-
|
|
694
|
-
* @brief 对编码前画面的镜像控制。开启时,主播推流画面呈现镜像状态。
|
|
695
|
-
*
|
|
696
|
-
*/
|
|
485
|
+
|
|
697
486
|
/** {en}
|
|
698
487
|
* @brief Mirror the video before encoding. When turned on, only the pushed video is mirrored.
|
|
699
488
|
*
|
|
@@ -701,16 +490,12 @@ export declare enum VeLiveVideoMirrorType {
|
|
|
701
490
|
VeLiveVideoMirrorPushStream = 2
|
|
702
491
|
}
|
|
703
492
|
export declare class VeLiveAudioCaptureConfiguration {
|
|
704
|
-
|
|
705
|
-
* @brief 音频采样率,默认值为 `VeLiveAudioSampleRate44100`,详情请参见 [VeLiveAudioSampleRate](#VeLiveAudioSampleRate)。
|
|
706
|
-
*/
|
|
493
|
+
|
|
707
494
|
/** {en}
|
|
708
495
|
* @brief The sample rate. See [VeLiveAudioSampleRate](#VeLiveAudioSampleRate) for details. The default value is `VeLiveAudioSampleRate44100`.
|
|
709
496
|
*/
|
|
710
497
|
sampleRate: VeLiveAudioSampleRate;
|
|
711
|
-
|
|
712
|
-
* @brief 音频采集声道数,默认值为 `VeLiveAudioChannelStereo`,详情请参见 [VeLiveAudioChannel](#VeLiveAudioChannel)。
|
|
713
|
-
*/
|
|
498
|
+
|
|
714
499
|
/** {en}
|
|
715
500
|
* @brief The number of audio channels. See [VeLiveAudioChannel](#VeLiveAudioChannel) for details. The default value is `VeLiveAudioChannelStereo`.
|
|
716
501
|
*/
|
|
@@ -718,16 +503,7 @@ export declare class VeLiveAudioCaptureConfiguration {
|
|
|
718
503
|
init(): this;
|
|
719
504
|
}
|
|
720
505
|
export declare enum VeLiveVideoResolution {
|
|
721
|
-
|
|
722
|
-
* @brief 360P 分辨率。档位详细配置如下所示。
|
|
723
|
-
* - 横屏分辨率:640x360
|
|
724
|
-
* - 竖屏分辨率:360x640
|
|
725
|
-
* - 帧率:15fps
|
|
726
|
-
* - 目标码率:500kbps
|
|
727
|
-
* - 最小码率:250kbps
|
|
728
|
-
* - 最大码率:800kbps
|
|
729
|
-
*
|
|
730
|
-
*/
|
|
506
|
+
|
|
731
507
|
/** {en}
|
|
732
508
|
* @brief 360P. The predefined configurations are as follows:
|
|
733
509
|
* - Resolution in landscape mode: 640x360
|
|
@@ -739,16 +515,7 @@ export declare enum VeLiveVideoResolution {
|
|
|
739
515
|
*
|
|
740
516
|
*/
|
|
741
517
|
VeLiveVideoResolution360P = 0,
|
|
742
|
-
|
|
743
|
-
* @brief 480P 分辨率。档位详细配置如下所示。
|
|
744
|
-
* - 横屏分辨率:864x480
|
|
745
|
-
* - 竖屏分辨率:480x864
|
|
746
|
-
* - 帧率:15fps
|
|
747
|
-
* - 目标码率:800kbps
|
|
748
|
-
* - 最小码率:320kbps
|
|
749
|
-
* - 最大码率:1266kbps
|
|
750
|
-
*
|
|
751
|
-
*/
|
|
518
|
+
|
|
752
519
|
/** {en}
|
|
753
520
|
* @brief 480P. The predefined configurations are as follows:
|
|
754
521
|
* - Resolution in landscape mode: 864x480
|
|
@@ -760,16 +527,7 @@ export declare enum VeLiveVideoResolution {
|
|
|
760
527
|
*
|
|
761
528
|
*/
|
|
762
529
|
VeLiveVideoResolution480P = 1,
|
|
763
|
-
|
|
764
|
-
* @brief 540P 分辨率。档位详细配置如下所示。
|
|
765
|
-
* - 横屏 960x540
|
|
766
|
-
* - 竖屏 540x960
|
|
767
|
-
* - 帧率:15fps
|
|
768
|
-
* - 目标码率:1000kbps
|
|
769
|
-
* - 最小码率:500kbps
|
|
770
|
-
* - 最大码率:1520kbps
|
|
771
|
-
*
|
|
772
|
-
*/
|
|
530
|
+
|
|
773
531
|
/** {en}
|
|
774
532
|
* @brief 540P. The predefined configurations are as follows:
|
|
775
533
|
* - Resolution in landscape mode: 960x540
|
|
@@ -781,16 +539,7 @@ export declare enum VeLiveVideoResolution {
|
|
|
781
539
|
*
|
|
782
540
|
*/
|
|
783
541
|
VeLiveVideoResolution540P = 2,
|
|
784
|
-
|
|
785
|
-
* @brief 720P 分辨率。档位详细配置如下所示。
|
|
786
|
-
* - 横屏 1280x720
|
|
787
|
-
* - 竖屏 720x1280
|
|
788
|
-
* - 帧率:15fps
|
|
789
|
-
* - 目标码率:1200kbps
|
|
790
|
-
* - 最小码率:800kbps
|
|
791
|
-
* - 最大码率:1900kbps
|
|
792
|
-
*
|
|
793
|
-
*/
|
|
542
|
+
|
|
794
543
|
/** {en}
|
|
795
544
|
* @brief 720P. The predefined configurations are as follows:
|
|
796
545
|
* - Resolution in landscape mode: 1280x720
|
|
@@ -802,16 +551,7 @@ export declare enum VeLiveVideoResolution {
|
|
|
802
551
|
*
|
|
803
552
|
*/
|
|
804
553
|
VeLiveVideoResolution720P = 3,
|
|
805
|
-
|
|
806
|
-
* @brief 1080P 分辨率。档位详细配置如下所示。
|
|
807
|
-
* - 横屏 1920x1080
|
|
808
|
-
* - 竖屏 1080x1920
|
|
809
|
-
* - 帧率:20 fps
|
|
810
|
-
* - 目标码率:2500kbps
|
|
811
|
-
* - 最小码率:1000kbps
|
|
812
|
-
* - 最大码率:3800kbps
|
|
813
|
-
*
|
|
814
|
-
*/
|
|
554
|
+
|
|
815
555
|
/** {en}
|
|
816
556
|
* @brief 1080P. The predefined configurations are as follows:
|
|
817
557
|
* - Resolution in landscape mode: 1920x1080
|
|
@@ -823,14 +563,7 @@ export declare enum VeLiveVideoResolution {
|
|
|
823
563
|
*
|
|
824
564
|
*/
|
|
825
565
|
VeLiveVideoResolution1080P = 4,
|
|
826
|
-
|
|
827
|
-
* @brief 屏幕推流分辨率。档位详细配置如下所示。
|
|
828
|
-
* - 帧率:15fps
|
|
829
|
-
* - 目标码率:2500kbps
|
|
830
|
-
* - 最小码率:1000kbps
|
|
831
|
-
* - 最大码率:3800kbps
|
|
832
|
-
*
|
|
833
|
-
*/
|
|
566
|
+
|
|
834
567
|
/** {en}
|
|
835
568
|
* @brief The resolution of the streamed screen. The predefined configurations are as follows:
|
|
836
569
|
* - Frame rate: 15 fps
|
|
@@ -842,37 +575,25 @@ export declare enum VeLiveVideoResolution {
|
|
|
842
575
|
VeLiveVideoResolutionScreen = 10
|
|
843
576
|
}
|
|
844
577
|
export declare enum VeLiveVideoRotation {
|
|
845
|
-
|
|
846
|
-
* @brief 不旋转。
|
|
847
|
-
*
|
|
848
|
-
*/
|
|
578
|
+
|
|
849
579
|
/** {en}
|
|
850
580
|
* @brief Do not rotate.
|
|
851
581
|
*
|
|
852
582
|
*/
|
|
853
583
|
VeLiveVideoRotation0 = 0,
|
|
854
|
-
|
|
855
|
-
* @brief 顺时针旋转 90 度。
|
|
856
|
-
*
|
|
857
|
-
*/
|
|
584
|
+
|
|
858
585
|
/** {en}
|
|
859
586
|
* @brief Rotate by 90 degrees clockwise.
|
|
860
587
|
*
|
|
861
588
|
*/
|
|
862
589
|
VeLiveVideoRotation90 = 1,
|
|
863
|
-
|
|
864
|
-
* @brief 顺时针旋转 180 度。
|
|
865
|
-
*
|
|
866
|
-
*/
|
|
590
|
+
|
|
867
591
|
/** {en}
|
|
868
592
|
* @brief Rotate by 180 degrees clockwise.
|
|
869
593
|
*
|
|
870
594
|
*/
|
|
871
595
|
VeLiveVideoRotation180 = 2,
|
|
872
|
-
|
|
873
|
-
* @brief 顺时针旋转 270 度。
|
|
874
|
-
*
|
|
875
|
-
*/
|
|
596
|
+
|
|
876
597
|
/** {en}
|
|
877
598
|
* @brief Rotate by 270 degrees clockwise.
|
|
878
599
|
*
|
|
@@ -880,23 +601,17 @@ export declare enum VeLiveVideoRotation {
|
|
|
880
601
|
VeLiveVideoRotation270 = 3
|
|
881
602
|
}
|
|
882
603
|
export declare class VeLiveStreamMixDescription {
|
|
883
|
-
|
|
884
|
-
* @brief 视频混流布局设置的数组,其中每个元素代表一路视频流的布局。详情请参见 [VeLiveMixVideoLayout](#VeLiveMixVideoLayout)。
|
|
885
|
-
*/
|
|
604
|
+
|
|
886
605
|
/** {en}
|
|
887
606
|
* @brief An array of video mixing configurations, where each array element represents the mixing configurations of a video stream. See [VeLiveMixVideoLayout](#VeLiveMixVideoLayout) for details.
|
|
888
607
|
*/
|
|
889
608
|
mixVideoStreams: NSArray<VeLiveMixVideoLayout>;
|
|
890
|
-
|
|
891
|
-
* @brief 音频混流设置的数组,其中每个元素代表一路音频流的。详情请参见 [VeLiveMixAudioLayout](#VeLiveMixAudioLayout)。
|
|
892
|
-
*/
|
|
609
|
+
|
|
893
610
|
/** {en}
|
|
894
611
|
* @brief An array of audio mixing configurations, where each array element represents the mixing configurations of an audio stream. See [VeLiveMixAudioLayout](#VeLiveMixAudioLayout) for details.
|
|
895
612
|
*/
|
|
896
613
|
mixAudioStreams: NSArray<VeLiveMixAudioLayout>;
|
|
897
|
-
|
|
898
|
-
* @brief 视频混流画布的背景色设置,采用 #RRGGBB 格式。
|
|
899
|
-
*/
|
|
614
|
+
|
|
900
615
|
/** {en}
|
|
901
616
|
* @brief The background color of the mixed video, in #RRGGBB format.
|
|
902
617
|
*/
|
|
@@ -904,37 +619,25 @@ export declare class VeLiveStreamMixDescription {
|
|
|
904
619
|
init(): this;
|
|
905
620
|
}
|
|
906
621
|
export declare enum VeLiveAudioCaptureType {
|
|
907
|
-
|
|
908
|
-
* @brief 使用默认麦克风设备进行音频采集。
|
|
909
|
-
*
|
|
910
|
-
*/
|
|
622
|
+
|
|
911
623
|
/** {en}
|
|
912
624
|
* @brief Capture the audio with the default microphone.
|
|
913
625
|
*
|
|
914
626
|
*/
|
|
915
627
|
VeLiveAudioCaptureMicrophone = 0,
|
|
916
|
-
|
|
917
|
-
* @brief 使用语音通话模式进行音频采集,此模式下会启动硬件的 3A 功能,即自动增益控制、自动频率控制和自动噪声抑制。
|
|
918
|
-
*
|
|
919
|
-
*/
|
|
628
|
+
|
|
920
629
|
/** {en}
|
|
921
630
|
* @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.
|
|
922
631
|
*
|
|
923
632
|
*/
|
|
924
633
|
VeLiveAudioCaptureVoiceCommunication = 1,
|
|
925
|
-
|
|
926
|
-
* @brief 使用外部设备或源进行音频采集。
|
|
927
|
-
*
|
|
928
|
-
*/
|
|
634
|
+
|
|
929
635
|
/** {en}
|
|
930
636
|
* @brief Capture the audio with an external device or source.
|
|
931
637
|
*
|
|
932
638
|
*/
|
|
933
639
|
VeLiveAudioCaptureExternal = 2,
|
|
934
|
-
|
|
935
|
-
* @brief 使用静音帧作为音频源。
|
|
936
|
-
*
|
|
937
|
-
*/
|
|
640
|
+
|
|
938
641
|
/** {en}
|
|
939
642
|
* @brief Use muted frames as the audio source.
|
|
940
643
|
*
|
|
@@ -942,19 +645,13 @@ export declare enum VeLiveAudioCaptureType {
|
|
|
942
645
|
VeLiveAudioCaptureMuteFrame = 3
|
|
943
646
|
}
|
|
944
647
|
export declare enum VeLiveVideoCodec {
|
|
945
|
-
|
|
946
|
-
* @brief 使用 H.264 视频编码。
|
|
947
|
-
*
|
|
948
|
-
*/
|
|
648
|
+
|
|
949
649
|
/** {en}
|
|
950
650
|
* @brief H.264.
|
|
951
651
|
*
|
|
952
652
|
*/
|
|
953
653
|
VeLiveVideoCodecH264 = 0,
|
|
954
|
-
|
|
955
|
-
* @brief 使用火山引擎自研 ByteVC1 视频编码。
|
|
956
|
-
*
|
|
957
|
-
*/
|
|
654
|
+
|
|
958
655
|
/** {en}
|
|
959
656
|
* @brief ByteVC1, an encoding format developed by BytePlus.
|
|
960
657
|
*
|
|
@@ -962,30 +659,22 @@ export declare enum VeLiveVideoCodec {
|
|
|
962
659
|
VeLiveVideoCodecByteVC1 = 1
|
|
963
660
|
}
|
|
964
661
|
export declare class VeLiveVideoEncodeFrame {
|
|
965
|
-
|
|
966
|
-
* @brief 编码帧展示时间戳,单位为 μs。
|
|
967
|
-
*/
|
|
662
|
+
|
|
968
663
|
/** {en}
|
|
969
664
|
* @brief The display timestamp, in μs. The display timestamp indicates when the frame should be rendered.
|
|
970
665
|
*/
|
|
971
666
|
pts: CMTime;
|
|
972
|
-
|
|
973
|
-
* @brief 编码帧 dts 时间,即解码时间戳,单位为 μs。
|
|
974
|
-
*/
|
|
667
|
+
|
|
975
668
|
/** {en}
|
|
976
669
|
* @brief The dts time, or the decoding timestamp, in μs. The decoding timestamp indicates when the frame should be decoded.
|
|
977
670
|
*/
|
|
978
671
|
dts: CMTime;
|
|
979
|
-
|
|
980
|
-
* @brief 编码帧的类型,详细请参见 [VeLiveVideoEncodeFrameType:](#VeLiveVideoEncodeFrameType)。
|
|
981
|
-
*/
|
|
672
|
+
|
|
982
673
|
/** {en}
|
|
983
674
|
* @brief The type of the encoded frame. See [VeLiveVideoEncodeFrameType:](#VeLiveVideoEncodeFrameType) for details.
|
|
984
675
|
*/
|
|
985
676
|
videoEcodeFrameType: VeLiveVideoEncodeFrameType;
|
|
986
|
-
|
|
987
|
-
* @brief 编码帧的数据,使用 NSData 表示。
|
|
988
|
-
*/
|
|
677
|
+
|
|
989
678
|
/** {en}
|
|
990
679
|
* @brief The encoded data of the video frame. The encoded data is represented by an object of type NSData.
|
|
991
680
|
*/
|
|
@@ -993,30 +682,22 @@ export declare class VeLiveVideoEncodeFrame {
|
|
|
993
682
|
init(): this;
|
|
994
683
|
}
|
|
995
684
|
export declare class VeLiveAudioEncoderConfiguration {
|
|
996
|
-
|
|
997
|
-
* @brief 音频编码码率,单位为 kbps,默认值为 64。
|
|
998
|
-
*/
|
|
685
|
+
|
|
999
686
|
/** {en}
|
|
1000
687
|
* @brief The audio encoding bitrate, in Kbps. The default value is `64`.
|
|
1001
688
|
*/
|
|
1002
689
|
bitrate: int;
|
|
1003
|
-
|
|
1004
|
-
* @brief 音频编码采样率,默认值为 VeLiveAudioSampleRate44100,详情请参见 [VeLiveAudioSampleRate](#VeLiveAudioSampleRate)。
|
|
1005
|
-
*/
|
|
690
|
+
|
|
1006
691
|
/** {en}
|
|
1007
692
|
* @brief The encoding sample rate. The default value is `VeLiveAudioSampleRate44100`. See [VeLiveAudioSampleRate](#VeLiveAudioSampleRate) for details.
|
|
1008
693
|
*/
|
|
1009
694
|
sampleRate: VeLiveAudioSampleRate;
|
|
1010
|
-
|
|
1011
|
-
* @brief 音频声道数,默认值为 VeLiveAudioChannelStereo,详情请参见 [VeLiveAudioChannel](#VeLiveAudioChannel)。
|
|
1012
|
-
*/
|
|
695
|
+
|
|
1013
696
|
/** {en}
|
|
1014
697
|
* @brief The number of audio channels. The default value is `VeLiveAudioChannelStereo`. See [VeLiveAudioChannel](#VeLiveAudioChannel) for details.
|
|
1015
698
|
*/
|
|
1016
699
|
channel: VeLiveAudioChannel;
|
|
1017
|
-
|
|
1018
|
-
* @brief AAC 编码类型,默认值为 VeLiveAudioAACProfileLC。详情请参见 [VeLiveAudioProfile](#VeLiveAudioProfile)。
|
|
1019
|
-
*/
|
|
700
|
+
|
|
1020
701
|
/** {en}
|
|
1021
702
|
* @brief The AAC encoding format. The default value is `VeLiveAudioAACProfileLC`. See [VeLiveAudioProfile](#VeLiveAudioProfile) for details.
|
|
1022
703
|
*/
|
|
@@ -1024,55 +705,37 @@ export declare class VeLiveAudioEncoderConfiguration {
|
|
|
1024
705
|
init(): this;
|
|
1025
706
|
}
|
|
1026
707
|
export declare enum VeLivePusherLogLevel {
|
|
1027
|
-
|
|
1028
|
-
* @brief 输出 VERBOSE、DEBUG、INFO、WARNING 和 ERROR 级别的日志。
|
|
1029
|
-
*
|
|
1030
|
-
*/
|
|
708
|
+
|
|
1031
709
|
/** {en}
|
|
1032
710
|
* @brief Output VERBOSE, DEBUG, INFO, WARNING and ERROR.
|
|
1033
711
|
*
|
|
1034
712
|
*/
|
|
1035
713
|
VeLivePusherLogLevelVerbose = 0,
|
|
1036
|
-
|
|
1037
|
-
* @brief 输出 DEBUG、INFO、WARNING 和 ERROR 级别的日志。
|
|
1038
|
-
*
|
|
1039
|
-
*/
|
|
714
|
+
|
|
1040
715
|
/** {en}
|
|
1041
716
|
* @brief Output DEBUG, INFO, WARNING and ERROR.
|
|
1042
717
|
*
|
|
1043
718
|
*/
|
|
1044
719
|
VeLivePusherLogLevelDebug = 1,
|
|
1045
|
-
|
|
1046
|
-
* @brief 输出 INFO、WARNING 和 ERROR 级别的日志。
|
|
1047
|
-
*
|
|
1048
|
-
*/
|
|
720
|
+
|
|
1049
721
|
/** {en}
|
|
1050
722
|
* @brief Output INFO, WARNING and ERROR.
|
|
1051
723
|
*
|
|
1052
724
|
*/
|
|
1053
725
|
VeLivePusherLogLevelInfo = 2,
|
|
1054
|
-
|
|
1055
|
-
* @brief 输出 WARNING 和 ERROR 级别的日志。
|
|
1056
|
-
*
|
|
1057
|
-
*/
|
|
726
|
+
|
|
1058
727
|
/** {en}
|
|
1059
728
|
* @brief Output WARNING and ERROR.
|
|
1060
729
|
*
|
|
1061
730
|
*/
|
|
1062
731
|
VeLivePusherLogLevelWarn = 3,
|
|
1063
|
-
|
|
1064
|
-
* @brief 输出 ERROR 级别的日志。
|
|
1065
|
-
*
|
|
1066
|
-
*/
|
|
732
|
+
|
|
1067
733
|
/** {en}
|
|
1068
734
|
* @brief Output ERROR.
|
|
1069
735
|
*
|
|
1070
736
|
*/
|
|
1071
737
|
VeLivePusherLogLevelError = 4,
|
|
1072
|
-
|
|
1073
|
-
* @brief 关闭日志。
|
|
1074
|
-
*
|
|
1075
|
-
*/
|
|
738
|
+
|
|
1076
739
|
/** {en}
|
|
1077
740
|
* @brief Disable logging.
|
|
1078
741
|
*
|
|
@@ -1080,19 +743,13 @@ export declare enum VeLivePusherLogLevel {
|
|
|
1080
743
|
VeLivePusherLogLevelNone = 5
|
|
1081
744
|
}
|
|
1082
745
|
export declare enum VeLiveAudioMixType {
|
|
1083
|
-
|
|
1084
|
-
* @brief 拉流端可以听到混音效果,本地无法听到。
|
|
1085
|
-
*
|
|
1086
|
-
*/
|
|
746
|
+
|
|
1087
747
|
/** {en}
|
|
1088
748
|
* @brief The audience can hear the mixed audio, but the host cannot.
|
|
1089
749
|
*
|
|
1090
750
|
*/
|
|
1091
751
|
VeLiveAudioMixPush = 0,
|
|
1092
|
-
|
|
1093
|
-
* @brief 拉流端和本地都可以听到混音效果。
|
|
1094
|
-
*
|
|
1095
|
-
*/
|
|
752
|
+
|
|
1096
753
|
/** {en}
|
|
1097
754
|
* @brief Both the host and audience can hear the mixed audio.
|
|
1098
755
|
*
|
|
@@ -1100,28 +757,19 @@ export declare enum VeLiveAudioMixType {
|
|
|
1100
757
|
VeLiveAudioMixPlayAndPush = 1
|
|
1101
758
|
}
|
|
1102
759
|
export declare enum VeLivePusherRenderMode {
|
|
1103
|
-
|
|
1104
|
-
* @brief 视窗填满优先。视频帧等比缩放,直至视窗被视频填满。如果视频帧长宽比例与视窗不同,视频帧的多出部分将无法显示。
|
|
1105
|
-
*
|
|
1106
|
-
*/
|
|
760
|
+
|
|
1107
761
|
/** {en}
|
|
1108
762
|
* @brief Uniformly scale the video until the screen is completely filled. Part of the video may be cropped.
|
|
1109
763
|
*
|
|
1110
764
|
*/
|
|
1111
765
|
VeLivePusherRenderModeHidden = 0,
|
|
1112
|
-
|
|
1113
|
-
* @brief 视频帧内容全部显示优先。视频尺寸等比缩放,优先保证视频内容全部显示。当视频尺寸与显示窗口尺寸不一致时,会把窗口未被填满的区域填充成背景颜色。
|
|
1114
|
-
*
|
|
1115
|
-
*/
|
|
766
|
+
|
|
1116
767
|
/** {en}
|
|
1117
768
|
* @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.
|
|
1118
769
|
*
|
|
1119
770
|
*/
|
|
1120
771
|
VeLivePusherRenderModeFit = 1,
|
|
1121
|
-
|
|
1122
|
-
* @brief 视频帧自适应画布。视频帧非等比缩放,直至画布被填满。在此过程中,视频帧的长宽比例可能会发生变化。
|
|
1123
|
-
*
|
|
1124
|
-
*/
|
|
772
|
+
|
|
1125
773
|
/** {en}
|
|
1126
774
|
* @brief Stretch the video to fill the screen. The aspect ratio of the video might change.
|
|
1127
775
|
*
|
|
@@ -1129,47 +777,32 @@ export declare enum VeLivePusherRenderMode {
|
|
|
1129
777
|
VeLivePusherRenderModeFill = 2
|
|
1130
778
|
}
|
|
1131
779
|
export declare class VeLiveVideoEffectLicenseConfiguration {
|
|
1132
|
-
|
|
1133
|
-
* @brief 获取视频特效许可证类型。许可证类型请参见 [VeLiveVideoEffectLicenseType](#VeLiveVideoEffectLicenseType)。
|
|
1134
|
-
*/
|
|
780
|
+
|
|
1135
781
|
/** {en}
|
|
1136
782
|
* @brief The special effects license type. See [VeLiveVideoEffectLicenseType](#VeLiveVideoEffectLicenseType) for details.
|
|
1137
783
|
*/
|
|
1138
784
|
type: VeLiveVideoEffectLicenseType;
|
|
1139
|
-
|
|
1140
|
-
* @brief 获取视频特效许可证的本地路径。当 [VeLiveVideoEffectLicenseType](#VeLiveVideoEffectLicenseType) 为 `VeLiveVideoEffectLicenseTypeOffLine` 时,该属性返回许可证文件的本地路径。
|
|
1141
|
-
*/
|
|
785
|
+
|
|
1142
786
|
/** {en}
|
|
1143
787
|
* @brief The local path to the video effects license, when [VeLiveVideoEffectLicenseType](#VeLiveVideoEffectLicenseType) is `VeLiveVideoEffectLicenseTypeOffLine`.
|
|
1144
788
|
*/
|
|
1145
789
|
path: NSString;
|
|
1146
|
-
|
|
1147
|
-
* @brief 获取视频特效许可证的在线认证 key。当 [VeLiveVideoEffectLicenseType](#VeLiveVideoEffectLicenseType) 为 `VeLiveVideoEffectLicenseTypeOnLine` 时,该属性返回在线认证的 key。
|
|
1148
|
-
*/
|
|
790
|
+
|
|
1149
791
|
/** {en}
|
|
1150
792
|
* @brief The online authentication key for the video effects license, when [VeLiveVideoEffectLicenseType](#VeLiveVideoEffectLicenseType) is `VeLiveVideoEffectLicenseTypeOnLine`.
|
|
1151
793
|
*/
|
|
1152
794
|
key: NSString;
|
|
1153
|
-
|
|
1154
|
-
* @brief 获取视频特效许可证的在线认证 secret。当 [VeLiveVideoEffectLicenseType](#VeLiveVideoEffectLicenseType) 为 `VeLiveVideoEffectLicenseTypeOnLine` 时,该属性返回在线认证的 secret。
|
|
1155
|
-
*/
|
|
795
|
+
|
|
1156
796
|
/** {en}
|
|
1157
797
|
* @brief The online authentication secret for the video effects license, when [VeLiveVideoEffectLicenseType](#VeLiveVideoEffectLicenseType) is `VeLiveVideoEffectLicenseTypeOnLine`.
|
|
1158
798
|
*/
|
|
1159
799
|
secret: NSString;
|
|
1160
|
-
|
|
1161
|
-
* @brief 获取视频特效许可证的在线认证地址。当 [VeLiveVideoEffectLicenseType](#VeLiveVideoEffectLicenseType) 为 `VeLiveVideoEffectLicenseTypeOnLine` 时,该属性返回在线认证地址。
|
|
1162
|
-
*/
|
|
800
|
+
|
|
1163
801
|
/** {en}
|
|
1164
802
|
* @brief The online authentication address for the video effects license, when [VeLiveVideoEffectLicenseType](#VeLiveVideoEffectLicenseType) is `VeLiveVideoEffectLicenseTypeOnLine`.
|
|
1165
803
|
*/
|
|
1166
804
|
url: NSString;
|
|
1167
|
-
|
|
1168
|
-
* @detail api
|
|
1169
|
-
* @brief 初始化配置为本地验证模式。
|
|
1170
|
-
* @param path 视频特效许可证的本地缓存路径。可通过 [path](#VeLiveVideoEffectLicenseConfiguration-path) 获取
|
|
1171
|
-
* @return 返回 [VeLiveVideoEffectLicenseConfiguration](#VeLiveVideoEffectLicenseConfiguration) 类的实例,该实例使用指定的本地路径进行许可证验证。
|
|
1172
|
-
*/
|
|
805
|
+
|
|
1173
806
|
/** {en}
|
|
1174
807
|
* @detail api
|
|
1175
808
|
* @brief Initializes the license configurations in local authentication mode.
|
|
@@ -1177,14 +810,7 @@ export declare class VeLiveVideoEffectLicenseConfiguration {
|
|
|
1177
810
|
* @return A [VeLiveVideoEffectLicenseConfiguration](#VeLiveVideoEffectLicenseConfiguration) object that uses the specified local path for license authentication.
|
|
1178
811
|
*/
|
|
1179
812
|
initWithPath(path: NSString): this;
|
|
1180
|
-
|
|
1181
|
-
* @detail api
|
|
1182
|
-
* @brief 初始化配置为在线验证模式。
|
|
1183
|
-
* @param key 视频特效许可证的在线认证 key,可通过 [key](#VeLiveVideoEffectLicenseConfiguration-key) 获取。
|
|
1184
|
-
* @param secret 视频特效许可证的在线认证 secret,可通过 [secret](#VeLiveVideoEffectLicenseConfiguration-secret) 获取。
|
|
1185
|
-
* @param url 视频特效许可证的在线认证地址,如果传入 nil,会使用默认 url,可通过 [url](#VeLiveVideoEffectLicenseConfiguration-url) 获取在线认证地址。
|
|
1186
|
-
* @return 返回 [VeLiveVideoEffectLicenseConfiguration](#VeLiveVideoEffectLicenseConfiguration) 类的实例,该实例使用指定的 key、secret 和 url 进行在线许可证验证。
|
|
1187
|
-
*/
|
|
813
|
+
|
|
1188
814
|
/** {en}
|
|
1189
815
|
* @detail api
|
|
1190
816
|
* @brief Initializes the license configurations in online authentication mode.
|
|
@@ -1196,19 +822,13 @@ export declare class VeLiveVideoEffectLicenseConfiguration {
|
|
|
1196
822
|
initWithKey(key: NSString, secret: NSString, url: NSString): this;
|
|
1197
823
|
}
|
|
1198
824
|
export declare enum VeLiveAudioFrameSource {
|
|
1199
|
-
|
|
1200
|
-
* @brief 采集到的原始音频帧。这是从设备的麦克风或其他音频输入源获取的音频帧。
|
|
1201
|
-
*
|
|
1202
|
-
*/
|
|
825
|
+
|
|
1203
826
|
/** {en}
|
|
1204
827
|
* @brief The original audio frame captured by the microphone or other audio sources.
|
|
1205
828
|
*
|
|
1206
829
|
*/
|
|
1207
830
|
VeLiveAudioFrameSourceCapture = 1,
|
|
1208
|
-
|
|
1209
|
-
* @brief 编码前的音频帧。这是通过各种处理(例如噪音消除、回声消除等)后,准备进行编码的音频帧。
|
|
1210
|
-
*
|
|
1211
|
-
*/
|
|
831
|
+
|
|
1212
832
|
/** {en}
|
|
1213
833
|
* @brief The audio frame prior to encoding after undergoing various processes, such as noise cancellation and echo cancellation.
|
|
1214
834
|
*
|
|
@@ -1216,64 +836,43 @@ export declare enum VeLiveAudioFrameSource {
|
|
|
1216
836
|
VeLiveAudioFrameSourcePreEncode = 2
|
|
1217
837
|
}
|
|
1218
838
|
export declare enum VeLivePushStatus {
|
|
1219
|
-
|
|
1220
|
-
* @brief 初始状态。
|
|
1221
|
-
*
|
|
1222
|
-
*/
|
|
839
|
+
|
|
1223
840
|
/** {en}
|
|
1224
841
|
* @brief The initial state.
|
|
1225
842
|
*
|
|
1226
843
|
*/
|
|
1227
844
|
VeLivePushStatusNone = 0,
|
|
1228
|
-
|
|
1229
|
-
* @brief 正在连接服务器。
|
|
1230
|
-
*
|
|
1231
|
-
*/
|
|
845
|
+
|
|
1232
846
|
/** {en}
|
|
1233
847
|
* @brief Connecting to the server.
|
|
1234
848
|
*
|
|
1235
849
|
*/
|
|
1236
850
|
VeLivePushStatusConnecting = 1,
|
|
1237
|
-
|
|
1238
|
-
* @brief 连接服务器成功。
|
|
1239
|
-
*
|
|
1240
|
-
*/
|
|
851
|
+
|
|
1241
852
|
/** {en}
|
|
1242
853
|
* @brief The connection with the server is established.
|
|
1243
854
|
*
|
|
1244
855
|
*/
|
|
1245
856
|
VeLivePushStatusConnectSuccess = 2,
|
|
1246
|
-
|
|
1247
|
-
* @brief 重连服务器中。
|
|
1248
|
-
*
|
|
1249
|
-
*/
|
|
857
|
+
|
|
1250
858
|
/** {en}
|
|
1251
859
|
* @brief Reconnecting to the server.
|
|
1252
860
|
*
|
|
1253
861
|
*/
|
|
1254
862
|
VeLivePushStatusReconnecting = 3,
|
|
1255
|
-
|
|
1256
|
-
* @brief 推流连接被终止。
|
|
1257
|
-
*
|
|
1258
|
-
*/
|
|
863
|
+
|
|
1259
864
|
/** {en}
|
|
1260
865
|
* @brief Stops connecting to the server.
|
|
1261
866
|
*
|
|
1262
867
|
*/
|
|
1263
868
|
VeLivePushStatusConnectStop = 4,
|
|
1264
|
-
|
|
1265
|
-
* @brief 推流连接失败。
|
|
1266
|
-
*
|
|
1267
|
-
*/
|
|
869
|
+
|
|
1268
870
|
/** {en}
|
|
1269
871
|
* @brief Fails to connect to the server.
|
|
1270
872
|
*
|
|
1271
873
|
*/
|
|
1272
874
|
VeLivePushStatusConnectError = 5,
|
|
1273
|
-
|
|
1274
|
-
* @brief 与服务器断开连接。
|
|
1275
|
-
*
|
|
1276
|
-
*/
|
|
875
|
+
|
|
1277
876
|
/** {en}
|
|
1278
877
|
* @brief The connection with the server is lost.
|
|
1279
878
|
*
|
|
@@ -1281,46 +880,31 @@ export declare enum VeLivePushStatus {
|
|
|
1281
880
|
VeLivePushStatusDisconnected = 6
|
|
1282
881
|
}
|
|
1283
882
|
export declare enum VeLiveFirstFrameType {
|
|
1284
|
-
|
|
1285
|
-
* @brief 视频/音频采集首帧,采集首帧是从音频设备或视频设备(如麦克风、摄像头)获取的第一帧数据。
|
|
1286
|
-
*
|
|
1287
|
-
*/
|
|
883
|
+
|
|
1288
884
|
/** {en}
|
|
1289
885
|
* @brief The first audio or video frame captured by the microphone or the camera.
|
|
1290
886
|
*
|
|
1291
887
|
*/
|
|
1292
888
|
VeLiveFirstCaptureFrame = 0,
|
|
1293
|
-
|
|
1294
|
-
* @brief 视频渲染首帧,渲染首帧是在渲染过程中在屏幕上显示的第一帧视频数据。
|
|
1295
|
-
*
|
|
1296
|
-
*/
|
|
889
|
+
|
|
1297
890
|
/** {en}
|
|
1298
891
|
* @brief The first video frame rendered, which is the first frame displayed on the screen.
|
|
1299
892
|
*
|
|
1300
893
|
*/
|
|
1301
894
|
VeLiveFirstRenderFrame = 1,
|
|
1302
|
-
|
|
1303
|
-
* @brief 视频/音频编码完成首帧,编码完成首帧是编码为某种特定格式的第一帧数据。
|
|
1304
|
-
*
|
|
1305
|
-
*/
|
|
895
|
+
|
|
1306
896
|
/** {en}
|
|
1307
897
|
* @brief The first audio or video frame encoded.
|
|
1308
898
|
*
|
|
1309
899
|
*/
|
|
1310
900
|
VeLiveFirstEncodedFrame = 2,
|
|
1311
|
-
|
|
1312
|
-
* @brief 视频/音频发送首帧,发送首帧是在发送过程中,通过网络传输的第一帧数据。
|
|
1313
|
-
*
|
|
1314
|
-
*/
|
|
901
|
+
|
|
1315
902
|
/** {en}
|
|
1316
903
|
* @brief The first audio or video frame transmitted through the network.
|
|
1317
904
|
*
|
|
1318
905
|
*/
|
|
1319
906
|
VeLiveFirstSendFrame = 3,
|
|
1320
|
-
|
|
1321
|
-
* @brief 录屏采集开始后,获得的第一个 app 音频帧。
|
|
1322
|
-
*
|
|
1323
|
-
*/
|
|
907
|
+
|
|
1324
908
|
/** {en}
|
|
1325
909
|
* @brief The first audio frame captured from the app after screen streaming starts.
|
|
1326
910
|
*
|
|
@@ -1328,10 +912,7 @@ export declare enum VeLiveFirstFrameType {
|
|
|
1328
912
|
VeLiveFirstAppAudioCaptureFrame = 4
|
|
1329
913
|
}
|
|
1330
914
|
export declare enum VeLiveAudioSampleRate {
|
|
1331
|
-
|
|
1332
|
-
* @brief 44.1k 采样,适用于大多数音频处理场景,是音乐 CD 的标准采样率。
|
|
1333
|
-
*
|
|
1334
|
-
*/
|
|
915
|
+
|
|
1335
916
|
/** {en}
|
|
1336
917
|
* @brief 44.1K. This sample rate is suitable for most audio processing scenarios, and is the standard sampling rate for music CDs.
|
|
1337
918
|
*
|
|
@@ -1339,114 +920,82 @@ export declare enum VeLiveAudioSampleRate {
|
|
|
1339
920
|
VeLiveAudioSampleRate44100 = 44100
|
|
1340
921
|
}
|
|
1341
922
|
export declare class VeLivePusherStatistics {
|
|
1342
|
-
|
|
1343
|
-
* @brief 视频采集宽度,单位为 px。
|
|
1344
|
-
*/
|
|
923
|
+
|
|
1345
924
|
/** {en}
|
|
1346
925
|
* @brief The width of the captured video, in pixels.
|
|
1347
926
|
*/
|
|
1348
927
|
captureWidth: int;
|
|
1349
|
-
|
|
1350
|
-
* @brief 视频采集高度,单位为 px。
|
|
1351
|
-
*/
|
|
928
|
+
|
|
1352
929
|
/** {en}
|
|
1353
930
|
* @brief The height of the captured video, in pixels.
|
|
1354
931
|
*/
|
|
1355
932
|
captureHeight: int;
|
|
1356
|
-
|
|
1357
|
-
* @brief 视频采集帧率,单位为 fps。
|
|
1358
|
-
*/
|
|
933
|
+
|
|
1359
934
|
/** {en}
|
|
1360
935
|
* @brief The captured frame rate, in fps.
|
|
1361
936
|
*/
|
|
1362
937
|
captureFps: int;
|
|
1363
|
-
|
|
1364
|
-
* @brief 视频编码宽度,单位为 px。
|
|
1365
|
-
*/
|
|
938
|
+
|
|
1366
939
|
/** {en}
|
|
1367
940
|
* @brief The width of the encoded video, in pixels.
|
|
1368
941
|
*/
|
|
1369
942
|
encodeWidth: int;
|
|
1370
|
-
|
|
1371
|
-
* @brief 视频编码高度,单位为 px。
|
|
1372
|
-
*/
|
|
943
|
+
|
|
1373
944
|
/** {en}
|
|
1374
945
|
* @brief The height of the encoded video, in pixels.
|
|
1375
946
|
*/
|
|
1376
947
|
encodeHeight: int;
|
|
1377
|
-
|
|
1378
|
-
* @brief 视频编码帧率,单位为 fps。
|
|
1379
|
-
*/
|
|
948
|
+
|
|
1380
949
|
/** {en}
|
|
1381
950
|
* @brief The encoded frame rate, in fps.
|
|
1382
951
|
*/
|
|
1383
952
|
encodeFps: int;
|
|
1384
|
-
|
|
1385
|
-
* @brief 视频编码码率,单位为 kbps。
|
|
1386
|
-
*/
|
|
953
|
+
|
|
1387
954
|
/** {en}
|
|
1388
955
|
* @brief The encoded video bitrate, in Kbps.
|
|
1389
956
|
*/
|
|
1390
957
|
encodeVideoBitrate: int;
|
|
1391
|
-
|
|
1392
|
-
* @brief 音频编码码率,单位为 kbps。
|
|
1393
|
-
*/
|
|
958
|
+
|
|
1394
959
|
/** {en}
|
|
1395
960
|
* @brief The encoded audio bitrate, in Kbps.
|
|
1396
961
|
*/
|
|
1397
962
|
encodeAudioBitrate: int;
|
|
1398
|
-
|
|
1399
|
-
* @brief 视频发送帧率,可用展示实时帧率,单位为 fps。
|
|
1400
|
-
*/
|
|
963
|
+
|
|
1401
964
|
/** {en}
|
|
1402
965
|
* @brief The transmission frame rate, in fps. You can use this parameter to showcase the real-time frame rate on the user interface.
|
|
1403
966
|
*/
|
|
1404
967
|
transportFps: int;
|
|
1405
|
-
|
|
1406
|
-
* @brief 视频发送码率,可用于展示实时码率,单位为 kbps。
|
|
1407
|
-
*/
|
|
968
|
+
|
|
1408
969
|
/** {en}
|
|
1409
970
|
* @brief The transmission bitrate, in Kbps. You can use this parameter to showcase the real-time bitrate on the user interface.
|
|
1410
971
|
*/
|
|
1411
972
|
transportVideoBitrate: int;
|
|
1412
|
-
|
|
1413
|
-
* @brief 视频推流帧率,即您通过 setVideoEncoderConfiguration:{@link #VeLivePusher#setVideoEncoderConfiguration} 方法设置的帧率,单位为 fps。
|
|
1414
|
-
*/
|
|
973
|
+
|
|
1415
974
|
/** {en}
|
|
1416
975
|
* @brief The encoded frame rate you specify in the setVideoEncoderConfiguration:{@link #VeLivePusher#setVideoEncoderConfiguration} method, in fps.
|
|
1417
976
|
*/
|
|
1418
977
|
fps: int;
|
|
1419
|
-
|
|
1420
|
-
* @brief 视频推流码率,即您通过 [setVideoEncoderConfiguration](155318#VeLivePusher-setvideoencoderconfiguration) 方法设置的码率,单位为 kbps。
|
|
1421
|
-
*/
|
|
978
|
+
|
|
1422
979
|
/** {en}
|
|
1423
980
|
* @brief The encoded bitrate you specify in the [setVideoEncoderConfiguration](docs-broadcast-sdk-for-ios-api#VeLivePusher-setvideoencoderconfiguration) method, in Kbps.
|
|
1424
981
|
*/
|
|
1425
982
|
videoBitrate: int;
|
|
1426
|
-
|
|
1427
|
-
* @brief 视频推流最小码率,即您通过 [etVideoEncoderConfiguration:](155318#VeLivePusher-setvideoencoderconfiguration) 方法设置的最小码率,单位为 kbps。
|
|
1428
|
-
*/
|
|
983
|
+
|
|
1429
984
|
/** {en}
|
|
1430
985
|
* @brief The minimum encoded bitrate you specify in the [etVideoEncoderConfiguration:](docs-broadcast-sdk-for-ios-api#VeLivePusher-setvideoencoderconfiguration) method, in Kbps.
|
|
1431
986
|
*/
|
|
1432
987
|
minVideoBitrate: int;
|
|
1433
|
-
|
|
1434
|
-
* @brief 视频推流最大码率,即您通过 setVideoEncoderConfiguration:{@link #VeLivePusher#setVideoEncoderConfiguration} 方法设置的最大码率,单位为 kbps。
|
|
1435
|
-
*/
|
|
988
|
+
|
|
1436
989
|
/** {en}
|
|
1437
990
|
* @brief The maximum encoded bitrate you specify in the setVideoEncoderConfiguration:{@link #VeLivePusher#setVideoEncoderConfiguration} method, in Kbps.
|
|
1438
991
|
*/
|
|
1439
992
|
maxVideoBitrate: int;
|
|
1440
|
-
|
|
1441
|
-
* @brief 推流地址。
|
|
1442
|
-
*/
|
|
993
|
+
|
|
1443
994
|
/** {en}
|
|
1444
995
|
* @brief The push stream address.
|
|
1445
996
|
*/
|
|
1446
997
|
url: NSString;
|
|
1447
|
-
|
|
1448
|
-
* @brief 视频编码格式。
|
|
1449
|
-
*/
|
|
998
|
+
|
|
1450
999
|
/** {en}
|
|
1451
1000
|
* @brief The video codec.
|
|
1452
1001
|
*/
|
|
@@ -1454,55 +1003,37 @@ export declare class VeLivePusherStatistics {
|
|
|
1454
1003
|
init(): this;
|
|
1455
1004
|
}
|
|
1456
1005
|
export declare enum VeLivePixelFormat {
|
|
1457
|
-
|
|
1458
|
-
* @brief 未知格式。
|
|
1459
|
-
*
|
|
1460
|
-
*/
|
|
1006
|
+
|
|
1461
1007
|
/** {en}
|
|
1462
1008
|
* @brief Unknown format.
|
|
1463
1009
|
*
|
|
1464
1010
|
*/
|
|
1465
1011
|
VeLivePixelFormatUnknown = -1,
|
|
1466
|
-
|
|
1467
|
-
* @brief I420 格式。
|
|
1468
|
-
*
|
|
1469
|
-
*/
|
|
1012
|
+
|
|
1470
1013
|
/** {en}
|
|
1471
1014
|
* @brief I420.
|
|
1472
1015
|
*
|
|
1473
1016
|
*/
|
|
1474
1017
|
VeLivePixelFormatI420 = 0,
|
|
1475
|
-
|
|
1476
|
-
* @brief NV12 格式。
|
|
1477
|
-
*
|
|
1478
|
-
*/
|
|
1018
|
+
|
|
1479
1019
|
/** {en}
|
|
1480
1020
|
* @brief NV12.
|
|
1481
1021
|
*
|
|
1482
1022
|
*/
|
|
1483
1023
|
VeLivePixelFormatNV12 = 1,
|
|
1484
|
-
|
|
1485
|
-
* @brief NV21 格式。
|
|
1486
|
-
*
|
|
1487
|
-
*/
|
|
1024
|
+
|
|
1488
1025
|
/** {en}
|
|
1489
1026
|
* @brief NV21 format.
|
|
1490
1027
|
*
|
|
1491
1028
|
*/
|
|
1492
1029
|
VeLivePixelFormatNV21 = 2,
|
|
1493
|
-
|
|
1494
|
-
* @brief RAGBA 格式。
|
|
1495
|
-
*
|
|
1496
|
-
*/
|
|
1030
|
+
|
|
1497
1031
|
/** {en}
|
|
1498
1032
|
* @brief RAGBA.
|
|
1499
1033
|
*
|
|
1500
1034
|
*/
|
|
1501
1035
|
VeLivePixelFormatBGRA32 = 3,
|
|
1502
|
-
|
|
1503
|
-
* @brief OpenGL 2D 纹理。
|
|
1504
|
-
*
|
|
1505
|
-
*/
|
|
1036
|
+
|
|
1506
1037
|
/** {en}
|
|
1507
1038
|
* @brief OpenGL 2D texture.
|
|
1508
1039
|
*
|
|
@@ -1510,35 +1041,22 @@ export declare enum VeLivePixelFormat {
|
|
|
1510
1041
|
VeLivePixelFormat2DTexture = 4
|
|
1511
1042
|
}
|
|
1512
1043
|
export declare class VeLiveVideoCaptureConfiguration {
|
|
1513
|
-
|
|
1514
|
-
* @brief 视频采集宽度,单位为 px,默认值为 720。
|
|
1515
|
-
*/
|
|
1044
|
+
|
|
1516
1045
|
/** {en}
|
|
1517
1046
|
* @brief The width of the captured video, in pixels. The default value is `720`.
|
|
1518
1047
|
*/
|
|
1519
1048
|
width: int;
|
|
1520
|
-
|
|
1521
|
-
* @brief 视频采集高度,单位为 px,默认值为 1280。
|
|
1522
|
-
*/
|
|
1049
|
+
|
|
1523
1050
|
/** {en}
|
|
1524
1051
|
* @brief The height of the captured video, in pixels. The default value is `1280`.
|
|
1525
1052
|
*/
|
|
1526
1053
|
height: int;
|
|
1527
|
-
|
|
1528
|
-
* @brief 视频采集帧率,单位为 fps,默认值为 15。
|
|
1529
|
-
*/
|
|
1054
|
+
|
|
1530
1055
|
/** {en}
|
|
1531
1056
|
* @brief The captured frame rate, in fps. The default value is `15`.
|
|
1532
1057
|
*/
|
|
1533
1058
|
fps: int;
|
|
1534
|
-
|
|
1535
|
-
* @brief 视频采集帧类型,默认为 kCVPixelFormatType_420YpCbCr8BiPlanarFullRange。
|
|
1536
|
-
* @note 支持以下视频帧类型:
|
|
1537
|
-
* - kCVPixelFormatType_32BGRA
|
|
1538
|
-
* - kCVPixelFormatType_420YpCbCr8BiPlanarFullRange
|
|
1539
|
-
* - kCVPixelFormatType_420YpCbCr8BiPlanarVideoRange
|
|
1540
|
-
* - kCVPixelFormatType_420YpCbCr10BiPlanarVideoRange
|
|
1541
|
-
*/
|
|
1059
|
+
|
|
1542
1060
|
/** {en}
|
|
1543
1061
|
* @brief The pixel format. The default format is kCVPixelFormatType_420YpCbCr8BiPlanarFullRange.
|
|
1544
1062
|
* @note The following formats are supported:
|
|
@@ -1551,44 +1069,32 @@ export declare class VeLiveVideoCaptureConfiguration {
|
|
|
1551
1069
|
init(): this;
|
|
1552
1070
|
}
|
|
1553
1071
|
export declare class VeLiveAudioFrame {
|
|
1554
|
-
|
|
1555
|
-
* @brief 音频数据类型,默认值为 `VeLiveAudioBufferTypeUnknown`,详情请参见 [VeLiveAudioBufferType](#VeLiveAudioBufferType)。
|
|
1556
|
-
*/
|
|
1072
|
+
|
|
1557
1073
|
/** {en}
|
|
1558
1074
|
* @brief The audio data type. The default value is `VeLiveAudioBufferTypeUnknown`. See [VeLiveAudioBufferType](#VeLiveAudioBufferType) for details.
|
|
1559
1075
|
*/
|
|
1560
1076
|
bufferType: VeLiveAudioBufferType;
|
|
1561
|
-
|
|
1562
|
-
* @brief 音频采样率。详情请参见 [VeLiveAudioSampleRate](#VeLiveAudioSampleRate)。
|
|
1563
|
-
*/
|
|
1077
|
+
|
|
1564
1078
|
/** {en}
|
|
1565
1079
|
* @brief The audio sample rate. See [VeLiveAudioSampleRate](#VeLiveAudioSampleRate) for details.
|
|
1566
1080
|
*/
|
|
1567
1081
|
sampleRate: VeLiveAudioSampleRate;
|
|
1568
|
-
|
|
1569
|
-
* @brief 音频声道数。详情请参见 [VeLiveAudioChannel](#VeLiveAudioChannel)。
|
|
1570
|
-
*/
|
|
1082
|
+
|
|
1571
1083
|
/** {en}
|
|
1572
1084
|
* @brief The number of audio channels. See [VeLiveAudioChannel](#VeLiveAudioChannel) for details.
|
|
1573
1085
|
*/
|
|
1574
1086
|
channels: VeLiveAudioChannel;
|
|
1575
|
-
|
|
1576
|
-
* @brief 当 bufferType 取值为 `VeLiveAudioBufferNSData` 时的音频帧时间戳,单位为 μs。
|
|
1577
|
-
*/
|
|
1087
|
+
|
|
1578
1088
|
/** {en}
|
|
1579
1089
|
* @brief The audio frame timestamp, in μs, when `bufferType` is `VeLiveAudioBufferNSData`.
|
|
1580
1090
|
*/
|
|
1581
1091
|
pts: CMTime;
|
|
1582
|
-
|
|
1583
|
-
* @brief 当 bufferType 取值为 `VeLiveAudioBufferTypeSampleBuffer` 时的音频数据。
|
|
1584
|
-
*/
|
|
1092
|
+
|
|
1585
1093
|
/** {en}
|
|
1586
1094
|
* @brief The audio data, when `bufferType` is `VeLiveAudioBufferTypeSampleBuffer`.
|
|
1587
1095
|
*/
|
|
1588
1096
|
sampleBuffer: CMSampleBufferRef;
|
|
1589
|
-
|
|
1590
|
-
* @brief 当 bufferType 取值为 `VeLiveAudioBufferTypeNSData` 时的音频数据。音频帧数据为 float32 格式小端字节序存储。
|
|
1591
|
-
*/
|
|
1097
|
+
|
|
1592
1098
|
/** {en}
|
|
1593
1099
|
* @brief The audio data, when `bufferType` is `VeLiveAudioBufferTypeNSData`. The audio data is of type float32 and is stored in little-endian byte order.
|
|
1594
1100
|
*/
|
|
@@ -1596,55 +1102,37 @@ export declare class VeLiveAudioFrame {
|
|
|
1596
1102
|
init(): this;
|
|
1597
1103
|
}
|
|
1598
1104
|
export declare enum VeLiveAudioPowerLevel {
|
|
1599
|
-
|
|
1600
|
-
* @brief 无声,音量 ≤ 1dB。
|
|
1601
|
-
*
|
|
1602
|
-
*/
|
|
1105
|
+
|
|
1603
1106
|
/** {en}
|
|
1604
1107
|
* @brief Muted. The volume is 1 dB or less.
|
|
1605
1108
|
*
|
|
1606
1109
|
*/
|
|
1607
1110
|
VeLiveAudioPowerLevelSilent = 0,
|
|
1608
|
-
|
|
1609
|
-
* @brief 安静,音量 15dB 以下。
|
|
1610
|
-
*
|
|
1611
|
-
*/
|
|
1111
|
+
|
|
1612
1112
|
/** {en}
|
|
1613
1113
|
* @brief Quiet. The volume is below 15 dB.
|
|
1614
1114
|
*
|
|
1615
1115
|
*/
|
|
1616
1116
|
VeLiveAudioPowerLevelQuiet = 1,
|
|
1617
|
-
|
|
1618
|
-
* @brief 轻声,接近耳语音量,音量为 16dB~30dB 之间。
|
|
1619
|
-
*
|
|
1620
|
-
*/
|
|
1117
|
+
|
|
1621
1118
|
/** {en}
|
|
1622
1119
|
* @brief Soft, close to whisper. The volume is between 16 dB and 30 dB.
|
|
1623
1120
|
*
|
|
1624
1121
|
*/
|
|
1625
1122
|
VeLiveAudioPowerLevelLight = 2,
|
|
1626
|
-
|
|
1627
|
-
* @brief 正常,音量适宜,类似正常对话的音量,音量为 30dB~60dB 之间。
|
|
1628
|
-
*
|
|
1629
|
-
*/
|
|
1123
|
+
|
|
1630
1124
|
/** {en}
|
|
1631
1125
|
* @brief Normal, similar to the volume in a daily conversation. The volume is between 30 dB and 60 dB.
|
|
1632
1126
|
*
|
|
1633
1127
|
*/
|
|
1634
1128
|
VeLiveAudioPowerLevelNormal = 3,
|
|
1635
|
-
|
|
1636
|
-
* @brief 较大,音量较高,类似咖啡馆、餐厅的环境噪音,音量为 61dB~85dB 之间。
|
|
1637
|
-
*
|
|
1638
|
-
*/
|
|
1129
|
+
|
|
1639
1130
|
/** {en}
|
|
1640
1131
|
* @brief Loud, similar to the volume of the noise at cafes. The volume is between 61 dB and 85 dB.
|
|
1641
1132
|
*
|
|
1642
1133
|
*/
|
|
1643
1134
|
VeLiveAudioPowerLevelLoud = 4,
|
|
1644
|
-
|
|
1645
|
-
* @brief 吵闹,音量极高,类似于繁忙的街道或者是音乐会现场,音量超过 85dB。
|
|
1646
|
-
*
|
|
1647
|
-
*/
|
|
1135
|
+
|
|
1648
1136
|
/** {en}
|
|
1649
1137
|
* @brief Noisy, similar to the volume of the noise on a busy street or at a concert. The volume is higher than 85 dB.
|
|
1650
1138
|
*
|