@byteplus/react-native-live-push 1.5.1-rc.1 → 1.5.1-rc.3
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/ios/RCTVeLivePush/RCTVeLivePush.mm +1 -1
- package/ios/VeLiveMixerView.m +5 -15
- package/lib/commonjs/typescript/codegen/android/api.d.ts +869 -93
- package/lib/commonjs/typescript/codegen/android/callback.d.ts +243 -31
- package/lib/commonjs/typescript/codegen/android/errorcode.d.ts +60 -15
- package/lib/commonjs/typescript/codegen/android/keytype.d.ts +1173 -219
- package/lib/commonjs/typescript/codegen/ios/api.d.ts +899 -102
- package/lib/commonjs/typescript/codegen/ios/callback.d.ts +162 -28
- package/lib/commonjs/typescript/codegen/ios/errorcode.d.ts +100 -25
- package/lib/commonjs/typescript/codegen/ios/keytype.d.ts +692 -180
- package/lib/commonjs/typescript/codegen/pack/api.d.ts +1180 -133
- package/lib/commonjs/typescript/codegen/pack/callback.d.ts +243 -35
- package/lib/commonjs/typescript/codegen/pack/errorcode.d.ts +69 -16
- package/lib/commonjs/typescript/codegen/pack/keytype.d.ts +1459 -270
- package/lib/commonjs/typescript/core/api.d.ts +8 -1
- package/lib/commonjs/typescript/core/effect.d.ts +5 -1
- package/lib/commonjs/typescript/core/logger.d.ts +1 -0
- package/lib/commonjs/typescript/platforms/android/AppLogWrapper.d.ts +8 -0
- package/lib/commonjs/typescript/platforms/ios/RangersAppLog.d.ts +4 -0
- package/lib/module/typescript/codegen/android/api.d.ts +869 -93
- package/lib/module/typescript/codegen/android/callback.d.ts +243 -31
- package/lib/module/typescript/codegen/android/errorcode.d.ts +60 -15
- package/lib/module/typescript/codegen/android/keytype.d.ts +1173 -219
- package/lib/module/typescript/codegen/ios/api.d.ts +899 -102
- package/lib/module/typescript/codegen/ios/callback.d.ts +162 -28
- package/lib/module/typescript/codegen/ios/errorcode.d.ts +100 -25
- package/lib/module/typescript/codegen/ios/keytype.d.ts +692 -180
- package/lib/module/typescript/codegen/pack/api.d.ts +1180 -133
- package/lib/module/typescript/codegen/pack/callback.d.ts +243 -35
- package/lib/module/typescript/codegen/pack/errorcode.d.ts +69 -16
- package/lib/module/typescript/codegen/pack/keytype.d.ts +1459 -270
- package/lib/module/typescript/core/api.d.ts +8 -1
- package/lib/module/typescript/core/effect.d.ts +5 -1
- package/lib/module/typescript/core/logger.d.ts +1 -0
- package/lib/module/typescript/platforms/android/AppLogWrapper.d.ts +8 -0
- package/lib/module/typescript/platforms/ios/RangersAppLog.d.ts +4 -0
- package/lib/typescript/codegen/android/api.d.ts +869 -93
- package/lib/typescript/codegen/android/callback.d.ts +243 -31
- package/lib/typescript/codegen/android/errorcode.d.ts +60 -15
- package/lib/typescript/codegen/android/keytype.d.ts +1173 -219
- package/lib/typescript/codegen/ios/api.d.ts +899 -102
- package/lib/typescript/codegen/ios/callback.d.ts +162 -28
- package/lib/typescript/codegen/ios/errorcode.d.ts +100 -25
- package/lib/typescript/codegen/ios/keytype.d.ts +692 -180
- package/lib/typescript/codegen/pack/api.d.ts +1180 -133
- package/lib/typescript/codegen/pack/callback.d.ts +243 -35
- package/lib/typescript/codegen/pack/errorcode.d.ts +69 -16
- package/lib/typescript/codegen/pack/keytype.d.ts +1459 -270
- package/lib/typescript/core/api.d.ts +8 -1
- package/lib/typescript/core/effect.d.ts +5 -1
- package/lib/typescript/core/logger.d.ts +1 -0
- package/lib/typescript/platforms/android/AppLogWrapper.d.ts +8 -0
- package/lib/typescript/platforms/ios/RangersAppLog.d.ts +4 -0
- package/package.json +1 -1
|
@@ -2,7 +2,15 @@ import { int, float, String, EGLContext, View, Bitmap, long } from './types';
|
|
|
2
2
|
import { VeLiveVideoEffectLicenseConfiguration, VeLivePusherLogLevel, VeLivePusherRenderMode, VeLiveVideoMirrorType, VeLiveVideoCaptureType, VeLiveAudioCaptureType, VeLiveVideoEncoderConfiguration, VeLiveAudioEncoderConfiguration, VeLiveFileRecorderConfiguration, VeLiveVideoFrame, VeLiveAudioFrame, VeLiveOrientation } from './keytype';
|
|
3
3
|
import { VeLiveVideoEffectCallback, VeLiveVideoEffectHandleCallback, VeLivePusherObserver, VeLivePusherStatisticsObserver, VeLiveFileRecordingListener, VeLiveVideoFrameFilter, VeLiveAudioFrameFilter, VeLiveVideoFrameListener, VeLiveAudioFrameListener, VeLiveSnapshotListener, VeLiveMediaPlayerListener, VeLiveMediaPlayerFrameListener } from './callback';
|
|
4
4
|
export declare class VeLiveCameraDevice {
|
|
5
|
-
|
|
5
|
+
/** {zh}
|
|
6
|
+
* @detail api
|
|
7
|
+
* @brief 获取相机支持帧率范围。
|
|
8
|
+
* @notes <br>需要在调用 [startVideoCapture](#VeLivePusher-startvideocapture) 启动相机采集后,调用本方法。
|
|
9
|
+
* @order 3
|
|
10
|
+
* @return <br>
|
|
11
|
+
* 相机支持帧率范围。
|
|
12
|
+
*
|
|
13
|
+
*/
|
|
6
14
|
/** {en}
|
|
7
15
|
* @detail api
|
|
8
16
|
* @brief Gets the frame rate range supported by the camera.
|
|
@@ -13,7 +21,19 @@ export declare class VeLiveCameraDevice {
|
|
|
13
21
|
*
|
|
14
22
|
*/
|
|
15
23
|
getRealFpsRange(): Array<int>;
|
|
16
|
-
|
|
24
|
+
/** {zh}
|
|
25
|
+
* @detail api
|
|
26
|
+
* @brief 开启/关闭闪光灯。
|
|
27
|
+
* @notes <br>需要在调用 [startVideoCapture](#VeLivePusher-startvideocapture) 启动相机采集后,调用本方法。
|
|
28
|
+
* @order 8
|
|
29
|
+
* @param enable 是否开启闪光灯。默认为 false。 <br>
|
|
30
|
+
* - true:开启;
|
|
31
|
+
* - false:关闭。
|
|
32
|
+
* @return <br>
|
|
33
|
+
* - 0:开启/关闭成功;
|
|
34
|
+
* - ≠0:开启/关闭失败。
|
|
35
|
+
*
|
|
36
|
+
*/
|
|
17
37
|
/** {en}
|
|
18
38
|
* @detail api
|
|
19
39
|
* @brief Enables or disables the flashlight.
|
|
@@ -28,7 +48,17 @@ export declare class VeLiveCameraDevice {
|
|
|
28
48
|
*
|
|
29
49
|
*/
|
|
30
50
|
enableTorch(enable: boolean): int;
|
|
31
|
-
|
|
51
|
+
/** {zh}
|
|
52
|
+
* @detail api
|
|
53
|
+
* @brief 设置摄像头的缩放倍数。
|
|
54
|
+
* @notes <br>需要在调用 [startVideoCapture](#VeLivePusher-startvideocapture) 启动相机采集后,调用本方法。
|
|
55
|
+
* @order 5
|
|
56
|
+
* @param ratio 缩放倍数。默认为原尺寸。缩放倍数的取值范围为 [[getMinZoomRatio](#VeLiveCameraDevice-getminzoomratio),[getMaxZoomRatio](#VeLiveCameraDevice-getmaxzoomratio)]。
|
|
57
|
+
* @return <br>
|
|
58
|
+
* - 0:缩放成功;
|
|
59
|
+
* - ≠0:缩放失败。
|
|
60
|
+
*
|
|
61
|
+
*/
|
|
32
62
|
/** {en}
|
|
33
63
|
* @detail api
|
|
34
64
|
* @brief Sets the zoom factor of the camera.
|
|
@@ -41,7 +71,16 @@ export declare class VeLiveCameraDevice {
|
|
|
41
71
|
*
|
|
42
72
|
*/
|
|
43
73
|
setZoomRatio(ratio: float): int;
|
|
44
|
-
|
|
74
|
+
/** {zh}
|
|
75
|
+
* @detail api
|
|
76
|
+
* @brief 获取摄像头当前的缩放倍数。
|
|
77
|
+
* @notes <br>需要在调用 [startVideoCapture](#VeLivePusher-startvideocapture) 启动相机采集后,调用本方法。
|
|
78
|
+
* @order 4
|
|
79
|
+
* @return <br>
|
|
80
|
+
* - ≤0:表示不支持缩放;
|
|
81
|
+
* - >0:支持缩放,数值表示当前缩放倍数。
|
|
82
|
+
*
|
|
83
|
+
*/
|
|
45
84
|
/** {en}
|
|
46
85
|
* @detail api
|
|
47
86
|
* @brief Gets the current zoom factor of the camera.
|
|
@@ -53,7 +92,16 @@ export declare class VeLiveCameraDevice {
|
|
|
53
92
|
*
|
|
54
93
|
*/
|
|
55
94
|
getCurrentZoomRatio(): float;
|
|
56
|
-
|
|
95
|
+
/** {zh}
|
|
96
|
+
* @detail api
|
|
97
|
+
* @brief 获取摄像头的最大缩放倍数。
|
|
98
|
+
* @notes <br>需要在调用 [startVideoCapture](#VeLivePusher-startvideocapture) 启动相机采集后,调用本方法。
|
|
99
|
+
* @order 6
|
|
100
|
+
* @return <br>
|
|
101
|
+
* - ≤0:表示不支持缩放;
|
|
102
|
+
* - >0:支持缩放,数值表示最大缩放倍数。
|
|
103
|
+
*
|
|
104
|
+
*/
|
|
57
105
|
/** {en}
|
|
58
106
|
* @detail api
|
|
59
107
|
* @brief Gets the maximum zoom factor of the camera.
|
|
@@ -65,7 +113,16 @@ export declare class VeLiveCameraDevice {
|
|
|
65
113
|
*
|
|
66
114
|
*/
|
|
67
115
|
getMaxZoomRatio(): float;
|
|
68
|
-
|
|
116
|
+
/** {zh}
|
|
117
|
+
* @detail api
|
|
118
|
+
* @brief 获取摄像头的最小缩放倍数。
|
|
119
|
+
* @notes <br>需要在调用 [startVideoCapture](#VeLivePusher-startvideocapture) 启动相机采集后,调用本方法。
|
|
120
|
+
* @order 7
|
|
121
|
+
* @return <br>
|
|
122
|
+
* - ≤0:表示不支持缩放;
|
|
123
|
+
* - >0:支持缩放,数值表示最小缩放倍数。
|
|
124
|
+
*
|
|
125
|
+
*/
|
|
69
126
|
/** {en}
|
|
70
127
|
* @detail api
|
|
71
128
|
* @brief Gets the minimum zoom factor of the camera.
|
|
@@ -77,7 +134,16 @@ export declare class VeLiveCameraDevice {
|
|
|
77
134
|
*
|
|
78
135
|
*/
|
|
79
136
|
getMinZoomRatio(): float;
|
|
80
|
-
|
|
137
|
+
/** {zh}
|
|
138
|
+
* @detail api
|
|
139
|
+
* @brief 是否支持自动对焦。
|
|
140
|
+
* @notes <br>需要在调用 [startVideoCapture](#VeLivePusher-startvideocapture) 启动相机采集后,调用本方法。
|
|
141
|
+
* @order 9
|
|
142
|
+
* @return <br>
|
|
143
|
+
* - true:支持;
|
|
144
|
+
* - false:不支持。
|
|
145
|
+
*
|
|
146
|
+
*/
|
|
81
147
|
/** {en}
|
|
82
148
|
* @detail api
|
|
83
149
|
* @brief Checks whether autofocus is supported.
|
|
@@ -89,7 +155,19 @@ export declare class VeLiveCameraDevice {
|
|
|
89
155
|
*
|
|
90
156
|
*/
|
|
91
157
|
isAutoFocusEnabled(): boolean;
|
|
92
|
-
|
|
158
|
+
/** {zh}
|
|
159
|
+
* @detail api
|
|
160
|
+
* @brief 开启/关闭自动对焦功能。
|
|
161
|
+
* @notes <br>需要在调用 [startVideoCapture](#VeLivePusher-startvideocapture) 启动相机采集后,调用本方法。
|
|
162
|
+
* @order 10
|
|
163
|
+
* @param enable 是否开启自动对焦,默认为 true。
|
|
164
|
+
* - true:开启;
|
|
165
|
+
* - false:关闭。
|
|
166
|
+
* @return <br>
|
|
167
|
+
* - 0:开启/关闭成功;
|
|
168
|
+
* - ≠0:开启/关闭失败。
|
|
169
|
+
*
|
|
170
|
+
*/
|
|
93
171
|
/** {en}
|
|
94
172
|
* @detail api
|
|
95
173
|
* @brief Enables or disables autofocus.
|
|
@@ -104,7 +182,20 @@ export declare class VeLiveCameraDevice {
|
|
|
104
182
|
*
|
|
105
183
|
*/
|
|
106
184
|
enableAutoFocus(enable: boolean): int;
|
|
107
|
-
|
|
185
|
+
/** {zh}
|
|
186
|
+
* @detail api
|
|
187
|
+
* @brief 设置摄像头的对焦位置。
|
|
188
|
+
* @notes 需要在调用 [startVideoCapture](#VeLivePusher-startvideocapture) 启动相机采集后,调用本方法。
|
|
189
|
+
* @order 11
|
|
190
|
+
* @param viewW 当前视图宽度。
|
|
191
|
+
* @param viewH 当前视图高度。
|
|
192
|
+
* @param x 以左上角为原点,对焦点距当前视图的横向坐标值。
|
|
193
|
+
* @param y 以左上角为原点,对焦点距当前视图的纵向坐标值。
|
|
194
|
+
* @return <br>
|
|
195
|
+
* - 0:设置成功;
|
|
196
|
+
* - ≠0:设置失败。
|
|
197
|
+
*
|
|
198
|
+
*/
|
|
108
199
|
/** {en}
|
|
109
200
|
* @detail api
|
|
110
201
|
* @brief Sets the focus position of the camera.
|
|
@@ -120,7 +211,15 @@ export declare class VeLiveCameraDevice {
|
|
|
120
211
|
*
|
|
121
212
|
*/
|
|
122
213
|
setFocusPosition(viewW: int, viewH: int, x: int, y: int): int;
|
|
123
|
-
|
|
214
|
+
/** {zh}
|
|
215
|
+
* @detail api
|
|
216
|
+
* @brief 检查当前使用的摄像头是否支持手动设置曝光点。
|
|
217
|
+
* @notes 必须已调用 [startVideoCapture](#VeLivePusher-startvideocapture) 使用 SDK 内部采集模块进行视频采集时,才能检查曝光点设置能力。
|
|
218
|
+
* @order 12
|
|
219
|
+
* @return - YES:支持;
|
|
220
|
+
* - NO:不支持。
|
|
221
|
+
*
|
|
222
|
+
*/
|
|
124
223
|
/** {en}
|
|
125
224
|
* @detail api
|
|
126
225
|
* @brief Checks if manual exposure setting is available for the currently used camera.
|
|
@@ -131,7 +230,20 @@ export declare class VeLiveCameraDevice {
|
|
|
131
230
|
*
|
|
132
231
|
*/
|
|
133
232
|
isExposurePositionSupported(): boolean;
|
|
134
|
-
|
|
233
|
+
/** {zh}
|
|
234
|
+
* @detail api
|
|
235
|
+
* @brief 设置当前使用的摄像头的曝光点。
|
|
236
|
+
* @notes - 必须已调用 [startVideoCapture](#VeLivePusher-startvideocapture) 使用 SDK 内部采集模块进行视频采集,并且使用 SDK 内部渲染时,才能设置曝光点;
|
|
237
|
+
* - 调用 [stopVideoCapture](#VeLivePusher-stopvideocapture) 关闭内部采集后,设置的曝光点失效。
|
|
238
|
+
* @order 13
|
|
239
|
+
* @param viewW 当前视图宽度。
|
|
240
|
+
* @param viewH 当前视图高度。
|
|
241
|
+
* @param x 以左上角为原点,对焦点距当前视图的横向坐标值。
|
|
242
|
+
* @param y 以左上角为原点,对焦点距当前视图的纵向坐标值。
|
|
243
|
+
* @return - =0:成功;
|
|
244
|
+
* - ≠0:失败。
|
|
245
|
+
*
|
|
246
|
+
*/
|
|
135
247
|
/** {en}
|
|
136
248
|
* @detail api
|
|
137
249
|
* @brief Sets the manual exposure position for the currently used camera.
|
|
@@ -147,7 +259,15 @@ export declare class VeLiveCameraDevice {
|
|
|
147
259
|
*
|
|
148
260
|
*/
|
|
149
261
|
setExposurePosition(viewW: int, viewH: int, x: int, y: int): int;
|
|
150
|
-
|
|
262
|
+
/** {zh}
|
|
263
|
+
* @detail api
|
|
264
|
+
* @brief 获取摄像头的最小曝光补偿值。
|
|
265
|
+
* @notes 需要在调用 [startVideoCapture](#VeLivePusher-startvideocapture) 启动相机采集后,调用本方法。
|
|
266
|
+
* @order 14
|
|
267
|
+
* @return - ≤0:表示不支持曝光补偿;
|
|
268
|
+
* - >0:支持曝光补偿,数值表示最小曝光补偿。
|
|
269
|
+
*
|
|
270
|
+
*/
|
|
151
271
|
/** {en}
|
|
152
272
|
* @detail api
|
|
153
273
|
* @brief Gets the minimum exposure compensation of the camera.
|
|
@@ -158,7 +278,15 @@ export declare class VeLiveCameraDevice {
|
|
|
158
278
|
*
|
|
159
279
|
*/
|
|
160
280
|
getMinExposureCompensation(): float;
|
|
161
|
-
|
|
281
|
+
/** {zh}
|
|
282
|
+
* @detail api
|
|
283
|
+
* @brief 获取摄像头的最大曝光补偿值。
|
|
284
|
+
* @notes 需要在调用 [startVideoCapture](#VeLivePusher-startvideocapture) 启动相机采集后,调用本方法。
|
|
285
|
+
* @order 15
|
|
286
|
+
* @return - ≤0:表示不支持曝光补偿;
|
|
287
|
+
* - >0:支持曝光补偿,数值表示最大曝光补偿。
|
|
288
|
+
*
|
|
289
|
+
*/
|
|
162
290
|
/** {en}
|
|
163
291
|
* @detail api
|
|
164
292
|
* @brief Gets the maximum exposure compensation of the camera.
|
|
@@ -169,7 +297,17 @@ export declare class VeLiveCameraDevice {
|
|
|
169
297
|
*
|
|
170
298
|
*/
|
|
171
299
|
getMaxExposureCompensation(): float;
|
|
172
|
-
|
|
300
|
+
/** {zh}
|
|
301
|
+
* @detail api
|
|
302
|
+
* @brief 设置当前使用的摄像头的曝光补偿。
|
|
303
|
+
* @notes - 必须已调用 [startVideoCapture](#VeLivePusher-startvideocapture) 使用 SDK 内部采集模块进行视频采集时,才能设置曝光补偿。
|
|
304
|
+
* - 调用 [stopVideoCapture](#VeLivePusher-stopvideocapture) 关闭内部采集后,设置的曝光补偿失效。
|
|
305
|
+
* @order 16
|
|
306
|
+
* @param value 曝光补偿值,取值范围 [[getMinExposureCompensation](#VeLiveCameraDevice-getminexposurecompensation),[getMaxExposureCompensation](#VeLiveCameraDevice-getmaxexposurecompensation)],0 为系统默认值,表示没有曝光补偿。
|
|
307
|
+
* @return - =0:设置成功;
|
|
308
|
+
* - ≠0:设置失败。
|
|
309
|
+
*
|
|
310
|
+
*/
|
|
173
311
|
/** {en}
|
|
174
312
|
* @detail api
|
|
175
313
|
* @brief Sets the exposure compensation for the currently used camera.
|
|
@@ -185,7 +323,16 @@ export declare class VeLiveCameraDevice {
|
|
|
185
323
|
setExposureCompensation(value: float): int;
|
|
186
324
|
}
|
|
187
325
|
export declare class VeLiveVideoEffectManager {
|
|
188
|
-
|
|
326
|
+
/** {zh}
|
|
327
|
+
* @detail api
|
|
328
|
+
* @brief 视频特效许可证配置,用于初始化视频特效管理对象。
|
|
329
|
+
* @order 89
|
|
330
|
+
* @param config 特效初始化配置,详情请参见 [VeLiveVideoEffectLicenseConfiguration](147521#VeLivePusherDef-VeLiveVideoEffectLicenseConfiguration)。
|
|
331
|
+
* @return <br>
|
|
332
|
+
* - 0:调用成功;
|
|
333
|
+
* - -1:调用失败。
|
|
334
|
+
*
|
|
335
|
+
*/
|
|
189
336
|
/** {en}
|
|
190
337
|
* @detail api
|
|
191
338
|
* @brief Initializes the special effects manager.
|
|
@@ -197,7 +344,15 @@ export declare class VeLiveVideoEffectManager {
|
|
|
197
344
|
*
|
|
198
345
|
*/
|
|
199
346
|
setupWithConfig(config: VeLiveVideoEffectLicenseConfiguration): int;
|
|
200
|
-
|
|
347
|
+
/** {zh}
|
|
348
|
+
* @detail api
|
|
349
|
+
* @brief 如果您使用在线 License 认证方式,在许可证过期后,可调用该方法更新 License;
|
|
350
|
+
* @notes - 需要通过调用 [setupWithConfig](#VeLiveVideoEffectManager-setupwithconfig) 设置视频特效许可证后调用;
|
|
351
|
+
* - 本方法为异步操作。
|
|
352
|
+
* @order 90
|
|
353
|
+
* @param callback 结果回调信息
|
|
354
|
+
*
|
|
355
|
+
*/
|
|
201
356
|
/** {en}
|
|
202
357
|
* @detail api
|
|
203
358
|
* @brief Updates the special effects license. This method is effective only if you authenticate the license online.
|
|
@@ -209,7 +364,22 @@ export declare class VeLiveVideoEffectManager {
|
|
|
209
364
|
*
|
|
210
365
|
*/
|
|
211
366
|
updateLicense(callback: VeLiveVideoEffectCallback): void;
|
|
212
|
-
|
|
367
|
+
/** {zh}
|
|
368
|
+
* @detail api
|
|
369
|
+
* @brief 创建/销毁特效引擎。
|
|
370
|
+
* @notes - 该方法需要在调用 [setupWithConfig](#VeLiveVideoEffectManager-setupwithconfig) 和 [setAlgorithmModelPath](#VeLiveVideoEffectManager-setalgorithmmodelpath) 后调用;
|
|
371
|
+
* - 该方法不直接开启/关闭视频特效,您需要在调用该方法后,调用 [setComposeNodes](#VeLiveVideoEffectManager-setcomposenodes) 开启视频特效;
|
|
372
|
+
* - 通用场景下,特效引擎会随 EffectManager 销毁而销毁。如果您对性能有较高要求,也可以在不使用特效相关功能时,调用该方法销毁特效引擎;
|
|
373
|
+
* - 如果重复创建/销毁特效引擎,会产生时间消耗。
|
|
374
|
+
* @order 92
|
|
375
|
+
* @param enable 是否创建特效引擎。默认为 false。 <br>
|
|
376
|
+
* - true:创建;
|
|
377
|
+
* - false:销毁。
|
|
378
|
+
* @param callback 视频特效回调 [VeLiveVideoEffectCallback](147519#VeLivePusherDef-VeLiveVideoEffectCallback)。
|
|
379
|
+
* @return - 0:成功;
|
|
380
|
+
* - -1:失败。
|
|
381
|
+
*
|
|
382
|
+
*/
|
|
213
383
|
/** {en}
|
|
214
384
|
* @detail api
|
|
215
385
|
* @brief Creates or destroys the special effects engine.
|
|
@@ -229,7 +399,17 @@ export declare class VeLiveVideoEffectManager {
|
|
|
229
399
|
*
|
|
230
400
|
*/
|
|
231
401
|
setEnable(enable: boolean, callback: VeLiveVideoEffectCallback): void;
|
|
232
|
-
|
|
402
|
+
/** {zh}
|
|
403
|
+
* @detail api
|
|
404
|
+
* @brief 设置特效算法模型包的路径。
|
|
405
|
+
* @notes <br>需要通过调用 [setupWithConfig](#VeLiveVideoEffectManager-setupwithconfig) 设置视频特效许可证后调用。
|
|
406
|
+
* @order 91
|
|
407
|
+
* @param path 特效算法模型包的路径
|
|
408
|
+
* @return <br>
|
|
409
|
+
* - 0:调用成功;
|
|
410
|
+
* - -1:调用失败。
|
|
411
|
+
*
|
|
412
|
+
*/
|
|
233
413
|
/** {en}
|
|
234
414
|
* @detail api
|
|
235
415
|
* @brief Sets the path to the algorithm model package of the special effects.
|
|
@@ -243,7 +423,20 @@ export declare class VeLiveVideoEffectManager {
|
|
|
243
423
|
*
|
|
244
424
|
*/
|
|
245
425
|
setAlgorithmModelPath(path: String): int;
|
|
246
|
-
|
|
426
|
+
/** {zh}
|
|
427
|
+
* @detail api
|
|
428
|
+
* @brief 设置视频特效组合。支持设置 ComposeMakeup.bundle 中的功能,包括美颜、美形、美体、美妆等。
|
|
429
|
+
* @notes <br>
|
|
430
|
+
* - 需要在调用 [setEnable](#VeLiveVideoEffectManager-setenable) 创建特效引擎后,调用本方法;
|
|
431
|
+
* - 重复调用本方法,仅最后一次调用生效;
|
|
432
|
+
* - 如果需要在当前的视频特效组合中叠加特效,可调用 [appendComposeNodes](#VeLiveVideoEffectManager-appendcomposenodes) 方法。
|
|
433
|
+
* @order 93
|
|
434
|
+
* @param nodes 视频特效素材包路径数组
|
|
435
|
+
* @return <br>
|
|
436
|
+
* - 0:调用成功;
|
|
437
|
+
* - -1:调用失败。
|
|
438
|
+
*
|
|
439
|
+
*/
|
|
247
440
|
/** {en}
|
|
248
441
|
* @detail api
|
|
249
442
|
* @brief Sets the special effects you want to apply to the video. You can choose effects from ComposeMakeup.bundle.
|
|
@@ -259,7 +452,17 @@ export declare class VeLiveVideoEffectManager {
|
|
|
259
452
|
*
|
|
260
453
|
*/
|
|
261
454
|
setComposeNodes(nodes: Array<String>): int;
|
|
262
|
-
|
|
455
|
+
/** {zh}
|
|
456
|
+
* @detail api
|
|
457
|
+
* @brief 在已有的视频特效组合上,叠加视频特效素材包,您可以调用 [setComposeNodes](#VeLiveVideoEffectManager-setcomposenodes) 设置视频特效组合。
|
|
458
|
+
* @notes 需要在调用 [setEnable](#VeLiveVideoEffectManager-setenable) 创建特效引擎后,调用本方法。
|
|
459
|
+
* @order 94
|
|
460
|
+
* @param nodes 视频特效素材包路径数组
|
|
461
|
+
* @return <br>
|
|
462
|
+
* - 0:调用成功;
|
|
463
|
+
* - -1:调用失败。
|
|
464
|
+
*
|
|
465
|
+
*/
|
|
263
466
|
/** {en}
|
|
264
467
|
* @detail api
|
|
265
468
|
* @brief Adds one or more effects to the existing effects settings that you have configured by calling setComposeNodes {@link #VeLiveVideoEffectManager#setComposeNodes}.
|
|
@@ -272,7 +475,17 @@ export declare class VeLiveVideoEffectManager {
|
|
|
272
475
|
*
|
|
273
476
|
*/
|
|
274
477
|
appendComposeNodes(nodes: Array<String>): int;
|
|
275
|
-
|
|
478
|
+
/** {zh}
|
|
479
|
+
* @detail api
|
|
480
|
+
* @brief 调用本方法,可移除调用 [setComposeNodes](#VeLiveVideoEffectManager-setcomposenodes) 和 [appendComposeNodes](#VeLiveVideoEffectManager-appendcomposenodes) 设置的视频特效资源。
|
|
481
|
+
* @notes 需要在调用 [setEnable](#VeLiveVideoEffectManager-setenable) 创建特效引擎后,调用本方法。
|
|
482
|
+
* @order 94
|
|
483
|
+
* @param nodes 视频特效素材包路径数组
|
|
484
|
+
* @return <br>
|
|
485
|
+
* - 0:调用成功;
|
|
486
|
+
* - -1:调用失败。
|
|
487
|
+
*
|
|
488
|
+
*/
|
|
276
489
|
/** {en}
|
|
277
490
|
* @detail api
|
|
278
491
|
* @brief Removes one or more special effects resource set by the [setComposeNodes](#VeLiveVideoEffectManager-setcomposenodes) or [appendComposeNodes](#VeLiveVideoEffectManager-appendcomposenodes) methods.
|
|
@@ -285,7 +498,21 @@ export declare class VeLiveVideoEffectManager {
|
|
|
285
498
|
*
|
|
286
499
|
*/
|
|
287
500
|
removeComposeNodes(nodes: Array<String>): int;
|
|
288
|
-
|
|
501
|
+
/** {zh}
|
|
502
|
+
* @detail api
|
|
503
|
+
* @brief 设置视频特效强度。
|
|
504
|
+
* @notes <br>
|
|
505
|
+
* - 需要在调用 [setComposeNodes](#VeLiveVideoEffectManager-setcomposenodes) 设置视频特效组合或调用 [appendComposeNodes](#VeLiveVideoEffectManager-appendcomposenodes) 叠加视频特效素材包后,调用本方法;
|
|
506
|
+
* - 该方法仅适用于同时含有上述三个参数的特效资源,对于没有强度参数的特效(如贴纸),该方法无效。
|
|
507
|
+
* @order 95
|
|
508
|
+
* @param node 视频特效素材包路径
|
|
509
|
+
* @param key 需要设置的素材 key 名称
|
|
510
|
+
* @param intensity 需要设置的强度值。取值范围为 [0.0,1.0]
|
|
511
|
+
* @return <br>
|
|
512
|
+
* - 0:调用成功;
|
|
513
|
+
* - -1:调用失败。
|
|
514
|
+
*
|
|
515
|
+
*/
|
|
289
516
|
/** {en}
|
|
290
517
|
* @detail api
|
|
291
518
|
* @brief Sets the intensity of a special effect.
|
|
@@ -302,7 +529,17 @@ export declare class VeLiveVideoEffectManager {
|
|
|
302
529
|
*
|
|
303
530
|
*/
|
|
304
531
|
updateComposerNodeIntensity(node: String, key: String, intensity: float): int;
|
|
305
|
-
|
|
532
|
+
/** {zh}
|
|
533
|
+
* @detail api
|
|
534
|
+
* @brief 设置颜色滤镜。
|
|
535
|
+
* @notes <br>请在调用 [setEnable](#VeLiveVideoEffectManager-setenable) 开启视频特效后,调用该方法。
|
|
536
|
+
* @order 96
|
|
537
|
+
* @param path 滤镜资源包绝对路径
|
|
538
|
+
* @return <br>
|
|
539
|
+
* - 0:调用成功;
|
|
540
|
+
* - -1:调用失败。
|
|
541
|
+
*
|
|
542
|
+
*/
|
|
306
543
|
/** {en}
|
|
307
544
|
* @detail api
|
|
308
545
|
* @brief Sets the color filter.
|
|
@@ -316,7 +553,16 @@ export declare class VeLiveVideoEffectManager {
|
|
|
316
553
|
*
|
|
317
554
|
*/
|
|
318
555
|
setFilter(path: String): int;
|
|
319
|
-
|
|
556
|
+
/** {zh}
|
|
557
|
+
* @detail api
|
|
558
|
+
* @brief 设置已启用的颜色滤镜强度。
|
|
559
|
+
* @notes <br>请在调用 [setFilter](#VeLiveVideoEffectManager-setfilter) 设置颜色滤镜后调用。
|
|
560
|
+
* @order 97
|
|
561
|
+
* @param intensity 滤镜强度,取值范围为 [0.0,1.0]。
|
|
562
|
+
* @return - 0:调用成功;
|
|
563
|
+
* - -1:调用失败。
|
|
564
|
+
*
|
|
565
|
+
*/
|
|
320
566
|
/** {en}
|
|
321
567
|
* @detail api
|
|
322
568
|
* @brief Sets the intensity of the color filter.
|
|
@@ -329,7 +575,17 @@ export declare class VeLiveVideoEffectManager {
|
|
|
329
575
|
*
|
|
330
576
|
*/
|
|
331
577
|
updateFilterIntensity(intensity: float): int;
|
|
332
|
-
|
|
578
|
+
/** {zh}
|
|
579
|
+
* @detail api
|
|
580
|
+
* @brief 设置贴纸特效。
|
|
581
|
+
* @notes <br>请在调用 [setEnable](#VeLiveVideoEffectManager-setenable) 开启视频特效后,调用该方法。
|
|
582
|
+
* @order 98
|
|
583
|
+
* @param path 贴纸素材包的绝对路径
|
|
584
|
+
* @return <br>
|
|
585
|
+
* - 0:调用成功;
|
|
586
|
+
* - -1:调用失败。
|
|
587
|
+
*
|
|
588
|
+
*/
|
|
333
589
|
/** {en}
|
|
334
590
|
* @detail api
|
|
335
591
|
* @brief Sets the sticker.
|
|
@@ -343,7 +599,16 @@ export declare class VeLiveVideoEffectManager {
|
|
|
343
599
|
*
|
|
344
600
|
*/
|
|
345
601
|
setSticker(path: String): int;
|
|
346
|
-
|
|
602
|
+
/** {zh}
|
|
603
|
+
* @detail api
|
|
604
|
+
* @brief 智能美化特效的高级功能。
|
|
605
|
+
* @notes 请在调用 [setEnable](#VeLiveVideoEffectManager-setenable) 开启视频特效后,调用该方法,不要在主线程中频繁执行同步操作。
|
|
606
|
+
* @order 99
|
|
607
|
+
* @param callback 将 handle 作为参数的回调函数。
|
|
608
|
+
* @param isGLThread 是否在 GL 线程回调 callback。
|
|
609
|
+
* @param isAsync 是否同步执行 callback。
|
|
610
|
+
*
|
|
611
|
+
*/
|
|
347
612
|
/** {en}
|
|
348
613
|
* @detail api
|
|
349
614
|
* @brief Advanced functions of BytePlus Effects.
|
|
@@ -358,7 +623,14 @@ export declare class VeLiveVideoEffectManager {
|
|
|
358
623
|
setAdvancedFeature(callback: VeLiveVideoEffectHandleCallback, isGLThread: boolean, isAsync: boolean): int;
|
|
359
624
|
}
|
|
360
625
|
export declare class VeLivePusher {
|
|
361
|
-
|
|
626
|
+
/** {zh}
|
|
627
|
+
* @detail api
|
|
628
|
+
* @hidden
|
|
629
|
+
* @brief 获取当前 SDK 版本号。
|
|
630
|
+
* @return <br>
|
|
631
|
+
* 当前 SDK 版本号。
|
|
632
|
+
*
|
|
633
|
+
*/
|
|
362
634
|
/** {en}
|
|
363
635
|
* @detail api
|
|
364
636
|
* @hidden
|
|
@@ -368,7 +640,13 @@ export declare class VeLivePusher {
|
|
|
368
640
|
*
|
|
369
641
|
*/
|
|
370
642
|
static getVersion(): String;
|
|
371
|
-
|
|
643
|
+
/** {zh}
|
|
644
|
+
* @detail api
|
|
645
|
+
* @brief 设置输出到控制台的日志等级。
|
|
646
|
+
* @order 49
|
|
647
|
+
* @param logLevel 输出的日志级别。级别详情请参见 [VeLivePusherLogLevel](147521#VeLivePusherLogLevel)。
|
|
648
|
+
*
|
|
649
|
+
*/
|
|
372
650
|
/** {en}
|
|
373
651
|
* @detail api
|
|
374
652
|
* @brief Sets the level of the output log.
|
|
@@ -377,7 +655,13 @@ export declare class VeLivePusher {
|
|
|
377
655
|
*
|
|
378
656
|
*/
|
|
379
657
|
static setLogLevel(logLevel: VeLivePusherLogLevel): void;
|
|
380
|
-
|
|
658
|
+
/** {zh}
|
|
659
|
+
* @detail api
|
|
660
|
+
* @brief 设置 OpenGL 的上下文。
|
|
661
|
+
* @order 50
|
|
662
|
+
* @param context OpenGL 上下文。
|
|
663
|
+
*
|
|
664
|
+
*/
|
|
381
665
|
/** {en}
|
|
382
666
|
* @detail api
|
|
383
667
|
* @brief Sets the context of OpenGL.
|
|
@@ -386,7 +670,12 @@ export declare class VeLivePusher {
|
|
|
386
670
|
*
|
|
387
671
|
*/
|
|
388
672
|
static setEGLContext(context: EGLContext): void;
|
|
389
|
-
|
|
673
|
+
/** {zh}
|
|
674
|
+
* @detail api
|
|
675
|
+
* @brief 停止采集和推流,并销毁推流器。通常在调用 [stopPush](#VeLivePusher-stoppush) 结束推流后调用此方法进行清理。
|
|
676
|
+
* @order 4
|
|
677
|
+
*
|
|
678
|
+
*/
|
|
390
679
|
/** {en}
|
|
391
680
|
* @detail api
|
|
392
681
|
* @brief Stops capturing and pushing streams and destroys the pusher. Call this method after [stopPush](#VeLivePusher-stoppush) is called.
|
|
@@ -394,7 +683,16 @@ export declare class VeLivePusher {
|
|
|
394
683
|
*
|
|
395
684
|
*/
|
|
396
685
|
release(): void;
|
|
397
|
-
|
|
686
|
+
/** {zh}
|
|
687
|
+
* @detail api
|
|
688
|
+
* @brief 设置推流器回调,通过设置回调,监听推流器的推流错误、状态、网络质量、设备、首帧等回调事件。
|
|
689
|
+
* @notes <br>
|
|
690
|
+
* - 需要在创建推流引擎后,调用本方法;
|
|
691
|
+
* - 重复调用本方法,仅最后一次调用生效。
|
|
692
|
+
* @order 2
|
|
693
|
+
* @param observer 推流器回调对象,详细信息请参见 [VeLivePusherObserver](147519#VeLivePusherObserver)。
|
|
694
|
+
*
|
|
695
|
+
*/
|
|
398
696
|
/** {en}
|
|
399
697
|
* @detail api
|
|
400
698
|
* @brief Sets an observer to listen for live pusher events, including errors, statuses, network quality, device information, and first frame rendering.
|
|
@@ -406,7 +704,17 @@ export declare class VeLivePusher {
|
|
|
406
704
|
*
|
|
407
705
|
*/
|
|
408
706
|
setObserver(observer: VeLivePusherObserver): void;
|
|
409
|
-
|
|
707
|
+
/** {zh}
|
|
708
|
+
* @detail api
|
|
709
|
+
* @brief 设置推流器周期性回调,用于定期获取推流状态信息。
|
|
710
|
+
* @notes <br>
|
|
711
|
+
* - 需要在创建推流引擎后,调用本方法;
|
|
712
|
+
* - 重复调用本方法,仅最后一次调用生效。
|
|
713
|
+
* @order 3
|
|
714
|
+
* @param observer 推流器周期性回调对象,详细信息请参见 [VeLivePusherStatisticsObserver](147519#VeLivePusherDef-VeLivePusherStatisticsObserver)。
|
|
715
|
+
* @param interval 周期性回调的时间间隔,单位为 s,默认值为 5。
|
|
716
|
+
*
|
|
717
|
+
*/
|
|
410
718
|
/** {en}
|
|
411
719
|
* @detail api
|
|
412
720
|
* @brief Sets an observer to periodically report push-stream statistics.
|
|
@@ -419,7 +727,13 @@ export declare class VeLivePusher {
|
|
|
419
727
|
*
|
|
420
728
|
*/
|
|
421
729
|
setStatisticsObserver(observer: VeLivePusherStatisticsObserver, interval: int): void;
|
|
422
|
-
|
|
730
|
+
/** {zh}
|
|
731
|
+
* @detail api
|
|
732
|
+
* @brief 设置本地摄像头预览视图。摄像头采集到的画面,经过美颜、脸形调整、滤镜等多种效果叠加之后,最终会显示到传入的 View 上。
|
|
733
|
+
* @param view 摄像头预览视图
|
|
734
|
+
* @order 5
|
|
735
|
+
*
|
|
736
|
+
*/
|
|
423
737
|
/** {en}
|
|
424
738
|
* @detail api
|
|
425
739
|
* @brief Sets the preview for the local camera. If beauty AR is applied to the captured video or if it undergoes any other processing, the preview will display the processed video.
|
|
@@ -428,7 +742,13 @@ export declare class VeLivePusher {
|
|
|
428
742
|
*
|
|
429
743
|
*/
|
|
430
744
|
setRenderView(view: View): Promise<void>;
|
|
431
|
-
|
|
745
|
+
/** {zh}
|
|
746
|
+
* @detail api
|
|
747
|
+
* @brief 设置本地预览画面的填充模式。
|
|
748
|
+
* @param mode 填充模式。
|
|
749
|
+
* @order 6
|
|
750
|
+
*
|
|
751
|
+
*/
|
|
432
752
|
/** {en}
|
|
433
753
|
* @detail api
|
|
434
754
|
* @brief Sets fill mode for the local camera preview.
|
|
@@ -437,7 +757,18 @@ export declare class VeLivePusher {
|
|
|
437
757
|
*
|
|
438
758
|
*/
|
|
439
759
|
setRenderFillMode(mode: VeLivePusherRenderMode): void;
|
|
440
|
-
|
|
760
|
+
/** {zh}
|
|
761
|
+
* @detail api
|
|
762
|
+
* @brief 开启/关闭镜像。
|
|
763
|
+
* @notes <br>
|
|
764
|
+
* 用于配置视频镜像效果,影响采集、预览和推流画面。
|
|
765
|
+
* @order 7
|
|
766
|
+
* @param type 镜像类型,详细信息请参见 [VeLiveVideoMirrorType](147521#VeLiveVideoMirrorType)。
|
|
767
|
+
* @param mirror 是否开启镜像。<br>
|
|
768
|
+
* - true:开启;
|
|
769
|
+
* - false:关闭。
|
|
770
|
+
*
|
|
771
|
+
*/
|
|
441
772
|
/** {en}
|
|
442
773
|
* @detail api
|
|
443
774
|
* @brief Enables or disables mirroring for the local preview and the streamed video.
|
|
@@ -449,7 +780,14 @@ export declare class VeLivePusher {
|
|
|
449
780
|
*
|
|
450
781
|
*/
|
|
451
782
|
setVideoMirror(type: VeLiveVideoMirrorType, mirror: boolean): void;
|
|
452
|
-
|
|
783
|
+
/** {zh}
|
|
784
|
+
* @detail api
|
|
785
|
+
* @brief 开始视频采集。
|
|
786
|
+
* @notes <br>调用该接口后,可以通过调用接口 [stopVideoCapture](#VeLivePusher-stopvideocapture) 停止视频采集。
|
|
787
|
+
* @order 8
|
|
788
|
+
* @param type 视频采集类型,详细信息请参见 VeLiveVideoCaptureType{@link #VeLiveVideoCaptureType}
|
|
789
|
+
*
|
|
790
|
+
*/
|
|
453
791
|
/** {en}
|
|
454
792
|
* @detail api
|
|
455
793
|
* @brief Starts video capture.
|
|
@@ -459,7 +797,13 @@ export declare class VeLivePusher {
|
|
|
459
797
|
*
|
|
460
798
|
*/
|
|
461
799
|
startVideoCapture(type: VeLiveVideoCaptureType): void;
|
|
462
|
-
|
|
800
|
+
/** {zh}
|
|
801
|
+
* @detail api
|
|
802
|
+
* @brief 停止视频采集。
|
|
803
|
+
* @notes <br>调用该接口后,可以通过调用接口 [startVideoCapture](#VeLivePusher-startvideocapture) 开始视频采集。
|
|
804
|
+
* @order 10
|
|
805
|
+
*
|
|
806
|
+
*/
|
|
463
807
|
/** {en}
|
|
464
808
|
* @detail api
|
|
465
809
|
* @brief Stops video capture.
|
|
@@ -468,7 +812,14 @@ export declare class VeLivePusher {
|
|
|
468
812
|
*
|
|
469
813
|
*/
|
|
470
814
|
stopVideoCapture(): void;
|
|
471
|
-
|
|
815
|
+
/** {zh}
|
|
816
|
+
* @detail api
|
|
817
|
+
* @brief 开始音频采集。
|
|
818
|
+
* @notes <br>调用该接口后,可以通过调用接口 [stopAudioCapture](#VeLivePusher-stopaudiocapture) 停止音频采集。
|
|
819
|
+
* @order 9
|
|
820
|
+
* @param type 音频采集类型,详细信息请参见 [VeLiveAudioCaptureType](147521#VeLiveAudioCaptureType)。
|
|
821
|
+
*
|
|
822
|
+
*/
|
|
472
823
|
/** {en}
|
|
473
824
|
* @detail api
|
|
474
825
|
* @brief Starts audio capture.
|
|
@@ -478,7 +829,13 @@ export declare class VeLivePusher {
|
|
|
478
829
|
*
|
|
479
830
|
*/
|
|
480
831
|
startAudioCapture(type: VeLiveAudioCaptureType): void;
|
|
481
|
-
|
|
832
|
+
/** {zh}
|
|
833
|
+
* @detail api
|
|
834
|
+
* @brief 停止音频采集。
|
|
835
|
+
* @notes <br>调用该接口后,可以通过调用接口 [startAudioCapture](#VeLivePusher-startaudiocapture) 开始音频采集。
|
|
836
|
+
* @order 11
|
|
837
|
+
*
|
|
838
|
+
*/
|
|
482
839
|
/** {en}
|
|
483
840
|
* @detail api
|
|
484
841
|
* @brief Stops audio capture.
|
|
@@ -487,7 +844,14 @@ export declare class VeLivePusher {
|
|
|
487
844
|
*
|
|
488
845
|
*/
|
|
489
846
|
stopAudioCapture(): void;
|
|
490
|
-
|
|
847
|
+
/** {zh}
|
|
848
|
+
* @detail api
|
|
849
|
+
* @brief 切换视频采集类型。
|
|
850
|
+
* @notes <br>该接口必须在调用接口 [startVideoCapture](#VeLivePusher-startvideocapture) 后调用才能生效。
|
|
851
|
+
* @order 12
|
|
852
|
+
* @param type 视频采集类型,详细信息请参见 [VeLiveVideoCaptureType](147521#VeLiveVideoCaptureType)。
|
|
853
|
+
*
|
|
854
|
+
*/
|
|
491
855
|
/** {en}
|
|
492
856
|
* @detail api
|
|
493
857
|
* @brief Switches the video capture type.
|
|
@@ -497,7 +861,14 @@ export declare class VeLivePusher {
|
|
|
497
861
|
*
|
|
498
862
|
*/
|
|
499
863
|
switchVideoCapture(type: VeLiveVideoCaptureType): void;
|
|
500
|
-
|
|
864
|
+
/** {zh}
|
|
865
|
+
* @detail api
|
|
866
|
+
* @brief 切换音频采集类型。
|
|
867
|
+
* @notes <br>该接口必须在调用接口 [startVideoCapture](#VeLivePusher-startvideocapture) 后调用才能生效。
|
|
868
|
+
* @order 13
|
|
869
|
+
* @param type 音频采集类型,详细信息请参见 [VeLiveAudioCaptureType](147521#VeLiveAudioCaptureType)。
|
|
870
|
+
*
|
|
871
|
+
*/
|
|
501
872
|
/** {en}
|
|
502
873
|
* @detail api
|
|
503
874
|
* @brief Switches audio capture type.
|
|
@@ -507,7 +878,13 @@ export declare class VeLivePusher {
|
|
|
507
878
|
*
|
|
508
879
|
*/
|
|
509
880
|
switchAudioCapture(type: VeLiveAudioCaptureType): void;
|
|
510
|
-
|
|
881
|
+
/** {zh}
|
|
882
|
+
* @detail api
|
|
883
|
+
* @brief 获取当前视频采集类型。
|
|
884
|
+
* @order 14
|
|
885
|
+
* @return 视频采集类型,详细信息请参见 [VeLiveVideoCaptureType](147521#VeLiveVideoCaptureType)。
|
|
886
|
+
*
|
|
887
|
+
*/
|
|
511
888
|
/** {en}
|
|
512
889
|
* @detail api
|
|
513
890
|
* @brief Gets the current video capture type.
|
|
@@ -516,7 +893,13 @@ export declare class VeLivePusher {
|
|
|
516
893
|
*
|
|
517
894
|
*/
|
|
518
895
|
getCurrentVideoCaptureType(): VeLiveVideoCaptureType;
|
|
519
|
-
|
|
896
|
+
/** {zh}
|
|
897
|
+
* @detail api
|
|
898
|
+
* @brief 获取当前音频采集类型。
|
|
899
|
+
* @order 15
|
|
900
|
+
* @return <br>音频采集类型,详细信息请参见 [VeLiveAudioCaptureType](147521#VeLiveAudioCaptureType)。
|
|
901
|
+
*
|
|
902
|
+
*/
|
|
520
903
|
/** {en}
|
|
521
904
|
* @detail api
|
|
522
905
|
* @brief Gets the current audio capture type.
|
|
@@ -525,7 +908,13 @@ export declare class VeLivePusher {
|
|
|
525
908
|
*
|
|
526
909
|
*/
|
|
527
910
|
getCurrentAudioCaptureType(): VeLiveAudioCaptureType;
|
|
528
|
-
|
|
911
|
+
/** {zh}
|
|
912
|
+
* @detail api
|
|
913
|
+
* @brief 自定义静态图,适用于静态图推流采集类型。使用该接口时,需要将视频采集类型设置为 VeLiveVideoCaptureCustomImage,您可调用 [startVideoCapture](#VeLivePusher-startvideocapture) 方法,将 [VeLiveVideoCaptureType](147521#VeLiveVideoCaptureType) 设置为 VeLiveVideoCaptureCustomImage。
|
|
914
|
+
* @order 16
|
|
915
|
+
* @param image 静态图片,用于在静态图推流采集类型下设置静态图。
|
|
916
|
+
*
|
|
917
|
+
*/
|
|
529
918
|
/** {en}
|
|
530
919
|
* @detail api
|
|
531
920
|
* @brief Sets a static image to push. When using this method, you must call startVideoCapture {@link #VeLivePusher#startVideoCapture} and set VeLiveVideoCaptureType {@link #VeLiveVideoCaptureType} to `VeLiveVideoCaptureCustomImage`.
|
|
@@ -534,7 +923,18 @@ export declare class VeLivePusher {
|
|
|
534
923
|
*
|
|
535
924
|
*/
|
|
536
925
|
updateCustomImage(image: Bitmap): Promise<void>;
|
|
537
|
-
|
|
926
|
+
/** {zh}
|
|
927
|
+
* @detail api
|
|
928
|
+
* @brief 获取相机设备管理对象 `VeLiveCameraDevice`。通过设备管理,您可以使用以下功能。
|
|
929
|
+
* - 控制闪光灯开关
|
|
930
|
+
* - 设置摄像头缩放比例
|
|
931
|
+
* - 设置自动对焦
|
|
932
|
+
* @notes <br>
|
|
933
|
+
* 该接口需要在 startVideoCapture{@link #startVideoCapture} 方法中设置 VeLiveVideoCaptureType{@link #VeLiveVideoCaptureType} 为 VeLiveVideoCaptureFrontCamera 或 VeLiveVideoCaptureBackCamera。
|
|
934
|
+
* @order 17
|
|
935
|
+
* @return 相机设备管理对象 [VeLiveCameraDevice](#VeLiveCameraDevice)。
|
|
936
|
+
*
|
|
937
|
+
*/
|
|
538
938
|
/** {en}
|
|
539
939
|
* @detail api
|
|
540
940
|
* @brief Gets the camera manager. With the camera manager, you can do the following:
|
|
@@ -547,7 +947,14 @@ export declare class VeLivePusher {
|
|
|
547
947
|
*
|
|
548
948
|
*/
|
|
549
949
|
getCameraDevice(): VeLiveCameraDevice;
|
|
550
|
-
|
|
950
|
+
/** {zh}
|
|
951
|
+
* @detail api
|
|
952
|
+
* @brief 设置推流视频编码参数。
|
|
953
|
+
* @notes 该接口可在推流开始前或开始后调用。
|
|
954
|
+
* @order 18
|
|
955
|
+
* @param config 推流视频参数,支持设置推流视频分辨率、编码格式、目标码率和视频 GOP 大小等信息。详情请参见 [VeLiveVideoEncoderConfiguration](147521#VeLivePusherDef-VeLiveVideoEncoderConfiguration)。
|
|
956
|
+
*
|
|
957
|
+
*/
|
|
551
958
|
/** {en}
|
|
552
959
|
* @detail api
|
|
553
960
|
* @brief Sets video encoding parameters for the pushed stream.
|
|
@@ -557,7 +964,13 @@ export declare class VeLivePusher {
|
|
|
557
964
|
*
|
|
558
965
|
*/
|
|
559
966
|
setVideoEncoderConfiguration(config: VeLiveVideoEncoderConfiguration): void;
|
|
560
|
-
|
|
967
|
+
/** {zh}
|
|
968
|
+
* @detail api
|
|
969
|
+
* @brief 获取推流视频编码参数。
|
|
970
|
+
* @order 19
|
|
971
|
+
* @return 推流视频参数,支持设置推流视频分辨率、编码格式、目标码率和视频 GOP 大小等信息。详情请参见 [VeLiveVideoEncoderConfiguration](147521#VeLivePusherDef-VeLiveVideoEncoderConfiguration)。
|
|
972
|
+
*
|
|
973
|
+
*/
|
|
561
974
|
/** {en}
|
|
562
975
|
* @detail api
|
|
563
976
|
* @brief Gets video encoding parameters for the pushed stream.
|
|
@@ -566,7 +979,14 @@ export declare class VeLivePusher {
|
|
|
566
979
|
*
|
|
567
980
|
*/
|
|
568
981
|
getVideoEncoderConfiguration(): VeLiveVideoEncoderConfiguration;
|
|
569
|
-
|
|
982
|
+
/** {zh}
|
|
983
|
+
* @detail api
|
|
984
|
+
* @brief 设置推流音频编码参数。
|
|
985
|
+
* @notes <br>该接口需要在 [startPush](#VeLivePusher-startpush) 或 [startPushWithUrls](#VeLivePusher-startpushwithurls) 方法之前调用。
|
|
986
|
+
* @order 20
|
|
987
|
+
* @param config 推流音频编码参数,详情请参见 [VeLiveAudioEncoderConfiguration](147521#VeLivePusherDef-VeLiveAudioEncoderConfiguration)。
|
|
988
|
+
*
|
|
989
|
+
*/
|
|
570
990
|
/** {en}
|
|
571
991
|
* @detail api
|
|
572
992
|
* @brief Sets audio encoding parameters for the pushed stream.
|
|
@@ -576,7 +996,13 @@ export declare class VeLivePusher {
|
|
|
576
996
|
*
|
|
577
997
|
*/
|
|
578
998
|
setAudioEncoderConfiguration(config: VeLiveAudioEncoderConfiguration): void;
|
|
579
|
-
|
|
999
|
+
/** {zh}
|
|
1000
|
+
* @detail api
|
|
1001
|
+
* @brief 获取推流音频编码参数。
|
|
1002
|
+
* @order 21
|
|
1003
|
+
* @return 推流音频编码参数,详情请参见 [VeLiveAudioEncoderConfiguration](147521#VeLivePusherDef-VeLiveAudioEncoderConfiguration)。
|
|
1004
|
+
*
|
|
1005
|
+
*/
|
|
580
1006
|
/** {en}
|
|
581
1007
|
* @detail api
|
|
582
1008
|
* @brief Gets audio encoding parameters for the pushed stream.
|
|
@@ -585,7 +1011,13 @@ export declare class VeLivePusher {
|
|
|
585
1011
|
*
|
|
586
1012
|
*/
|
|
587
1013
|
getAudioEncoderConfiguration(): VeLiveAudioEncoderConfiguration;
|
|
588
|
-
|
|
1014
|
+
/** {zh}
|
|
1015
|
+
* @detail api
|
|
1016
|
+
* @brief 开始推流。
|
|
1017
|
+
* @order 22
|
|
1018
|
+
* @param url 推流地址,用于将直播流推送到目标服务器。
|
|
1019
|
+
*
|
|
1020
|
+
*/
|
|
589
1021
|
/** {en}
|
|
590
1022
|
* @detail api
|
|
591
1023
|
* @brief Starts streaming.
|
|
@@ -594,7 +1026,15 @@ export declare class VeLivePusher {
|
|
|
594
1026
|
*
|
|
595
1027
|
*/
|
|
596
1028
|
startPush(url: String): void;
|
|
597
|
-
|
|
1029
|
+
/** {zh}
|
|
1030
|
+
* @detail api
|
|
1031
|
+
* @brief 开始推流,支持备用推流地址。
|
|
1032
|
+
* @notes <br>
|
|
1033
|
+
* 当主推流地址不可用时,会自动切换到备用推流地址继续推流。
|
|
1034
|
+
* @order 23
|
|
1035
|
+
* @param urls 推流地址列表,包含一个或多个推流地址。
|
|
1036
|
+
*
|
|
1037
|
+
*/
|
|
598
1038
|
/** {en}
|
|
599
1039
|
* @detail api
|
|
600
1040
|
* @brief Starts streaming with one or more push stream addresses.
|
|
@@ -605,7 +1045,13 @@ export declare class VeLivePusher {
|
|
|
605
1045
|
*
|
|
606
1046
|
*/
|
|
607
1047
|
startPushWithUrls(urls: Array<String>): void;
|
|
608
|
-
|
|
1048
|
+
/** {zh}
|
|
1049
|
+
* @detail api
|
|
1050
|
+
* @brief 停止推流。
|
|
1051
|
+
* @notes <br>停止推流后,可以通过调用 [startPush](#VeLivePusher-startpush) 或 [startPushWithUrls](#VeLivePusher-startpushwithurls) 方法重新开始推流。
|
|
1052
|
+
* @order 24
|
|
1053
|
+
*
|
|
1054
|
+
*/
|
|
609
1055
|
/** {en}
|
|
610
1056
|
* @detail api
|
|
611
1057
|
* @brief Stops streaming.
|
|
@@ -615,7 +1061,16 @@ export declare class VeLivePusher {
|
|
|
615
1061
|
*
|
|
616
1062
|
*/
|
|
617
1063
|
stopPush(): void;
|
|
618
|
-
|
|
1064
|
+
/** {zh}
|
|
1065
|
+
* @detail api
|
|
1066
|
+
* @brief 当前是否正在推流中,可用来查询推流器的当前状态。
|
|
1067
|
+
* @order 25
|
|
1068
|
+
* @return <br>
|
|
1069
|
+
* 是否正在推流。<br>
|
|
1070
|
+
* - true:正在推流中;
|
|
1071
|
+
* - false:已经停止推流。
|
|
1072
|
+
*
|
|
1073
|
+
*/
|
|
619
1074
|
/** {en}
|
|
620
1075
|
* @detail api
|
|
621
1076
|
* @brief Checks whether the streaming is currently ongoing. You can use this method to query the status of the live pusher.
|
|
@@ -627,7 +1082,19 @@ export declare class VeLivePusher {
|
|
|
627
1082
|
*
|
|
628
1083
|
*/
|
|
629
1084
|
isPushing(): boolean;
|
|
630
|
-
|
|
1085
|
+
/** {zh}
|
|
1086
|
+
* @detail api
|
|
1087
|
+
* @brief 设置推流水印。
|
|
1088
|
+
* @order 26
|
|
1089
|
+
* @param image 水印图片。取值为 null 时,表示禁用水印。
|
|
1090
|
+
* @param x 水印的水平偏移量,即水印图片相对视频流左上角的横向偏移与视频流宽度的比值,取值范围为 [0.0,1.0]。
|
|
1091
|
+
* @param y 水印的垂直偏移量,即水印图片相对视频流左上角的纵向偏移与视频流高度的比值,取值范围为 [0.0,1.0]。
|
|
1092
|
+
* @param scale 水印图片的缩放比例,取值范围为 [0.0,1.0]。
|
|
1093
|
+
* @return <br>
|
|
1094
|
+
* - 0:水印设置成功;
|
|
1095
|
+
* - <0:水印设置失败。
|
|
1096
|
+
*
|
|
1097
|
+
*/
|
|
631
1098
|
/** {en}
|
|
632
1099
|
* @detail api
|
|
633
1100
|
* @brief Sets a watermark for the pushed stream.
|
|
@@ -642,7 +1109,15 @@ export declare class VeLivePusher {
|
|
|
642
1109
|
*
|
|
643
1110
|
*/
|
|
644
1111
|
setWatermark(image: Bitmap, x: float, y: float, scale: float): Promise<int>;
|
|
645
|
-
|
|
1112
|
+
/** {zh}
|
|
1113
|
+
* @detail api
|
|
1114
|
+
* @brief 开始本地文件录制。
|
|
1115
|
+
* @order 27
|
|
1116
|
+
* @param path 录制文件保存路径,不能为空。
|
|
1117
|
+
* @param config 文件录制设置,详情请参见 [VeLiveFileRecorderConfiguration](147521#VeLivePusherDef-VeLiveFileRecorderConfiguration)。
|
|
1118
|
+
* @param listener 本地文件录制的监听,详情请参见 [VeLiveFileRecordingListener](147519#VeLivePusherDef-VeLiveFileRecordingListener)。
|
|
1119
|
+
*
|
|
1120
|
+
*/
|
|
646
1121
|
/** {en}
|
|
647
1122
|
* @detail api
|
|
648
1123
|
* @brief Starts local recording.
|
|
@@ -653,7 +1128,13 @@ export declare class VeLivePusher {
|
|
|
653
1128
|
*
|
|
654
1129
|
*/
|
|
655
1130
|
startFileRecording(path: String, config: VeLiveFileRecorderConfiguration, listener: VeLiveFileRecordingListener): void;
|
|
656
|
-
|
|
1131
|
+
/** {zh}
|
|
1132
|
+
* @detail api
|
|
1133
|
+
* @brief 停止本地文件录制。
|
|
1134
|
+
* @notes <br>该接口需要在 [startFileRecording](#VeLivePusher-startfilerecording) 方法之后调用。
|
|
1135
|
+
* @order 28
|
|
1136
|
+
*
|
|
1137
|
+
*/
|
|
657
1138
|
/** {en}
|
|
658
1139
|
* @detail api
|
|
659
1140
|
* @brief Stops local recording.
|
|
@@ -662,7 +1143,17 @@ export declare class VeLivePusher {
|
|
|
662
1143
|
*
|
|
663
1144
|
*/
|
|
664
1145
|
stopFileRecording(): void;
|
|
665
|
-
|
|
1146
|
+
/** {zh}
|
|
1147
|
+
* @detail api
|
|
1148
|
+
* @brief 高级配置。
|
|
1149
|
+
* @order 29
|
|
1150
|
+
* @param key 推流高级配置为 JSON 格式的字符串,此参数为 JSON 结构中的 Key。您可通过提交工单联系[技术支持](https://console.volcengine.com/workorder/create?step=3&SubProductID=P00000076),了解配置方法。
|
|
1151
|
+
* @param value 推流高级配置为 JSON 格式的字符串,此参数为 JSON 结构中的 Value。您可通过提交工单联系[技术支持](https://console.volcengine.com/workorder/create?step=3&SubProductID=P00000076),了解配置方法。
|
|
1152
|
+
* @return <br>
|
|
1153
|
+
* - 0:成功;
|
|
1154
|
+
* - -1:失败,参数错误。
|
|
1155
|
+
*
|
|
1156
|
+
*/
|
|
666
1157
|
/** {en}
|
|
667
1158
|
* @detail api
|
|
668
1159
|
* @brief Set advanced configurations. You can contact BytePlus technical support for more information about how to use this method.
|
|
@@ -675,7 +1166,17 @@ export declare class VeLivePusher {
|
|
|
675
1166
|
*
|
|
676
1167
|
*/
|
|
677
1168
|
setProperty(key: String, value: Object): int;
|
|
678
|
-
|
|
1169
|
+
/** {zh}
|
|
1170
|
+
* @detail api
|
|
1171
|
+
* @brief 推送外部视频帧数据。
|
|
1172
|
+
* @notes <br>
|
|
1173
|
+
* 调用该接口时,需要将视频采集类型设置为 VeLiveVideoCaptureExternal,您可调用 startVideoCapture{@link #startVideoCapture} 方法,将 VeLiveVideoCaptureType{@link #VeLiveVideoCaptureType} 设置为 VeLiveVideoCaptureExternal。
|
|
1174
|
+
* @order 30
|
|
1175
|
+
* @param frame 视频帧的数据信息,详情请参见 [VeLiveVideoFrame](147521#VeLiveVideoFrame)。
|
|
1176
|
+
* @return - 0:成功;
|
|
1177
|
+
* - <0:失败。
|
|
1178
|
+
*
|
|
1179
|
+
*/
|
|
679
1180
|
/** {en}
|
|
680
1181
|
* @detail api
|
|
681
1182
|
* @brief Pushes an external video frame.
|
|
@@ -687,7 +1188,17 @@ export declare class VeLivePusher {
|
|
|
687
1188
|
*
|
|
688
1189
|
*/
|
|
689
1190
|
pushExternalVideoFrame(frame: VeLiveVideoFrame): int;
|
|
690
|
-
|
|
1191
|
+
/** {zh}
|
|
1192
|
+
* @detail api
|
|
1193
|
+
* @brief 推送外部音频帧数据。
|
|
1194
|
+
* @notes 该接口需要在 startAudioCapture 方法中设置 [VeLiveAudioCaptureType](147521#VeLiveAudioCaptureType) 为 VeLiveAudioCaptureExternal。
|
|
1195
|
+
* @order 31
|
|
1196
|
+
* @param frame 外部音频数据。详情请参见 [VeLiveAudioFrame](147521#VeLiveAudioFrame)。
|
|
1197
|
+
* @return <br>
|
|
1198
|
+
* - 0:成功;
|
|
1199
|
+
* - <0:失败。
|
|
1200
|
+
*
|
|
1201
|
+
*/
|
|
691
1202
|
/** {en}
|
|
692
1203
|
* @detail api
|
|
693
1204
|
* @brief Pushes an external audio frame.
|
|
@@ -699,7 +1210,13 @@ export declare class VeLivePusher {
|
|
|
699
1210
|
*
|
|
700
1211
|
*/
|
|
701
1212
|
pushExternalAudioFrame(frame: VeLiveAudioFrame): int;
|
|
702
|
-
|
|
1213
|
+
/** {zh}
|
|
1214
|
+
* @detail api
|
|
1215
|
+
* @brief 设置推流视频帧朝向。默认为竖屏推流。
|
|
1216
|
+
* @order 32
|
|
1217
|
+
* @param orientation 视频帧朝向,详情请参见 [VeLiveOrientation](147521#VeLiveOrientation)。
|
|
1218
|
+
*
|
|
1219
|
+
*/
|
|
703
1220
|
/** {en}
|
|
704
1221
|
* @detail api
|
|
705
1222
|
* @brief Sets the orientation of the pushed video frame. The default orientation is portrait.
|
|
@@ -708,7 +1225,25 @@ export declare class VeLivePusher {
|
|
|
708
1225
|
*
|
|
709
1226
|
*/
|
|
710
1227
|
setOrientation(orientation: VeLiveOrientation): void;
|
|
711
|
-
|
|
1228
|
+
/** {zh}
|
|
1229
|
+
* @detail api
|
|
1230
|
+
* @brief 通过视频帧发送 SEI 消息。
|
|
1231
|
+
* @notes <br>该接口需要在调用 [startPush](#VeLivePusher-startpush) 或 [startPushWithUrls](#VeLivePusher-startpushwithurls) 方法之后调用。
|
|
1232
|
+
* @order 33
|
|
1233
|
+
* @param key SEI 消息为 JSON 格式的字符串。此参数为 JSON 结构中的 Key。
|
|
1234
|
+
* @param value SEI 消息为 JSON 格式的字符串。此参数为 JSON 结构中的 Value。
|
|
1235
|
+
* @param repeat 消息发送重复的次数。例如,`repeat` 取值为 20,`isKeyFrame` 取值为 YES,则会在视频帧开始的连续 20 个关键帧中添加 SEI 消息。
|
|
1236
|
+
* @param isKeyFrame 是否仅在关键帧中包含 SEI 消息。<br>
|
|
1237
|
+
* - true:仅在关键帧中包含;
|
|
1238
|
+
* - false:所有帧中均包含。
|
|
1239
|
+
* @param allowsCovered 是否允许覆盖。<br>
|
|
1240
|
+
* - true:允许;
|
|
1241
|
+
* - false:不允许。
|
|
1242
|
+
* @return <br>
|
|
1243
|
+
* - 0:成功;
|
|
1244
|
+
* - <0:失败。
|
|
1245
|
+
*
|
|
1246
|
+
*/
|
|
712
1247
|
/** {en}
|
|
713
1248
|
* @detail api
|
|
714
1249
|
* @brief Sends an SEI message through the video frame. The SEI messages are strings in JSON format.
|
|
@@ -729,7 +1264,15 @@ export declare class VeLivePusher {
|
|
|
729
1264
|
*
|
|
730
1265
|
*/
|
|
731
1266
|
sendSeiMessage(key: String, value: Object, repeat: int, isKeyFrame: boolean, allowsCovered: boolean): int;
|
|
732
|
-
|
|
1267
|
+
/** {zh}
|
|
1268
|
+
* @detail api
|
|
1269
|
+
* @brief 设置静音。
|
|
1270
|
+
* @param mute 是否设置为静音。默认为正常推流。<br>
|
|
1271
|
+
* - true:静音推流;
|
|
1272
|
+
* - false:正常推流。
|
|
1273
|
+
* @order 34
|
|
1274
|
+
*
|
|
1275
|
+
*/
|
|
733
1276
|
/** {en}
|
|
734
1277
|
* @detail api
|
|
735
1278
|
* @brief Sets whether to mute the stream.
|
|
@@ -740,7 +1283,15 @@ export declare class VeLivePusher {
|
|
|
740
1283
|
*
|
|
741
1284
|
*/
|
|
742
1285
|
setMute(mute: boolean): void;
|
|
743
|
-
|
|
1286
|
+
/** {zh}
|
|
1287
|
+
* @detail api
|
|
1288
|
+
* @brief 当前是否是静音状态。
|
|
1289
|
+
* @order 35
|
|
1290
|
+
* @return <br>
|
|
1291
|
+
* - true:当前是静音状态;
|
|
1292
|
+
* - false:当前非静音状态。
|
|
1293
|
+
*
|
|
1294
|
+
*/
|
|
744
1295
|
/** {en}
|
|
745
1296
|
* @detail api
|
|
746
1297
|
* @brief Checks whether the stream is muted.
|
|
@@ -751,7 +1302,19 @@ export declare class VeLivePusher {
|
|
|
751
1302
|
*
|
|
752
1303
|
*/
|
|
753
1304
|
isMute(): boolean;
|
|
754
|
-
|
|
1305
|
+
/** {zh}
|
|
1306
|
+
* @detail api
|
|
1307
|
+
* @brief 获取视频特效管理对象 `VeLiveVideoEffectManager`。通过视频特效管理,您可以使用以下功能。
|
|
1308
|
+
* - 设置美颜
|
|
1309
|
+
* - 设置特效
|
|
1310
|
+
* - 设置素材
|
|
1311
|
+
* - 设置贴图
|
|
1312
|
+
* - 设置滤镜
|
|
1313
|
+
* @notes 该接口需要集成智能美化特效 SDK 后才能使用。
|
|
1314
|
+
* @order 36
|
|
1315
|
+
* @return 视频特效管理对象 [VeLiveVideoEffectManager](#VeLiveVideoEffectManager)。
|
|
1316
|
+
*
|
|
1317
|
+
*/
|
|
755
1318
|
/** {en}
|
|
756
1319
|
* @detail api
|
|
757
1320
|
* @brief Gets the special effects manager. With the special effects manager, you can do the following:
|
|
@@ -766,7 +1329,13 @@ export declare class VeLivePusher {
|
|
|
766
1329
|
*
|
|
767
1330
|
*/
|
|
768
1331
|
getVideoEffectManager(): VeLiveVideoEffectManager;
|
|
769
|
-
|
|
1332
|
+
/** {zh}
|
|
1333
|
+
* @detail api
|
|
1334
|
+
* @brief 自定义视频处理。
|
|
1335
|
+
* @order 37
|
|
1336
|
+
* @param filter 视频数据处理回调,详情请参见 [VeLiveVideoFrameFilter](147519#VeLivePusherDef-VeLiveVideoFrameFilter)。
|
|
1337
|
+
*
|
|
1338
|
+
*/
|
|
770
1339
|
/** {en}
|
|
771
1340
|
* @detail api
|
|
772
1341
|
* @brief Sets custom video processing.
|
|
@@ -775,7 +1344,15 @@ export declare class VeLivePusher {
|
|
|
775
1344
|
*
|
|
776
1345
|
*/
|
|
777
1346
|
setVideoFrameFilter(filter: VeLiveVideoFrameFilter): void;
|
|
778
|
-
|
|
1347
|
+
/** {zh}
|
|
1348
|
+
* @detail api
|
|
1349
|
+
* @brief 获取音频模块管理对象。
|
|
1350
|
+
* @notes <br>
|
|
1351
|
+
* 该接口需要在 startAudioCapture{@link #startAudioCapture} 方法中设置 VeLiveAudioCaptureType{@link #VeLiveAudioCaptureType} 为 VeLiveAudioCaptureMicrophone。
|
|
1352
|
+
* @order 38
|
|
1353
|
+
* @return 音频模块管理对象 [VeLiveAudioDevice](#VeLiveAudioDevice)。
|
|
1354
|
+
*
|
|
1355
|
+
*/
|
|
779
1356
|
/** {en}
|
|
780
1357
|
* @detail api
|
|
781
1358
|
* @brief Gets the audio device manager.
|
|
@@ -785,7 +1362,13 @@ export declare class VeLivePusher {
|
|
|
785
1362
|
*
|
|
786
1363
|
*/
|
|
787
1364
|
getAudioDevice(): VeLiveAudioDevice;
|
|
788
|
-
|
|
1365
|
+
/** {zh}
|
|
1366
|
+
* @detail api
|
|
1367
|
+
* @brief 自定义音频处理。
|
|
1368
|
+
* @order 39
|
|
1369
|
+
* @param filter 音频帧滤镜对象 VeLiveAudioFrameFilter 。
|
|
1370
|
+
*
|
|
1371
|
+
*/
|
|
789
1372
|
/** {en}
|
|
790
1373
|
* @detail api
|
|
791
1374
|
* @brief Sets custom audio processing.
|
|
@@ -794,7 +1377,13 @@ export declare class VeLivePusher {
|
|
|
794
1377
|
*
|
|
795
1378
|
*/
|
|
796
1379
|
setAudioFrameFilter(filter: VeLiveAudioFrameFilter): void;
|
|
797
|
-
|
|
1380
|
+
/** {zh}
|
|
1381
|
+
* @detail api
|
|
1382
|
+
* @brief 创建播放器。
|
|
1383
|
+
* @order 1
|
|
1384
|
+
* @return 播放器管理对象 [VeLiveMediaPlayer](#VeLiveMediaPlayer)。
|
|
1385
|
+
*
|
|
1386
|
+
*/
|
|
798
1387
|
/** {en}
|
|
799
1388
|
* @detail api
|
|
800
1389
|
* @brief Creates the media player.
|
|
@@ -803,7 +1392,12 @@ export declare class VeLivePusher {
|
|
|
803
1392
|
*
|
|
804
1393
|
*/
|
|
805
1394
|
createPlayer(): VeLiveMediaPlayer;
|
|
806
|
-
|
|
1395
|
+
/** {zh}
|
|
1396
|
+
* @detail api
|
|
1397
|
+
* @brief 开始系统音频采集。
|
|
1398
|
+
* @order 41
|
|
1399
|
+
*
|
|
1400
|
+
*/
|
|
807
1401
|
/** {en}
|
|
808
1402
|
* @detail api
|
|
809
1403
|
* @brief Starts system audio capture.
|
|
@@ -811,7 +1405,12 @@ export declare class VeLivePusher {
|
|
|
811
1405
|
*
|
|
812
1406
|
*/
|
|
813
1407
|
startMixSystemAudio(): void;
|
|
814
|
-
|
|
1408
|
+
/** {zh}
|
|
1409
|
+
* @detail api
|
|
1410
|
+
* @brief 停止系统音频采集。
|
|
1411
|
+
* @order 42
|
|
1412
|
+
*
|
|
1413
|
+
*/
|
|
815
1414
|
/** {en}
|
|
816
1415
|
* @detail api
|
|
817
1416
|
* @brief Stops system audio capture.
|
|
@@ -819,7 +1418,12 @@ export declare class VeLivePusher {
|
|
|
819
1418
|
*
|
|
820
1419
|
*/
|
|
821
1420
|
stopMixSystemAudio(): void;
|
|
822
|
-
|
|
1421
|
+
/** {zh}
|
|
1422
|
+
* @detail api
|
|
1423
|
+
* @brief 获取当前是否处于屏幕采集状态。
|
|
1424
|
+
* @order 43
|
|
1425
|
+
*
|
|
1426
|
+
*/
|
|
823
1427
|
/** {en}
|
|
824
1428
|
* @detail api
|
|
825
1429
|
* @brief Gets whether the SDK is capturing the screen at this moment.
|
|
@@ -827,7 +1431,16 @@ export declare class VeLivePusher {
|
|
|
827
1431
|
*
|
|
828
1432
|
*/
|
|
829
1433
|
isScreenRecording(): boolean;
|
|
830
|
-
|
|
1434
|
+
/** {zh}
|
|
1435
|
+
* @detail api
|
|
1436
|
+
* @brief 添加视频帧的监听回调,用于获取推流器输出的视频帧。
|
|
1437
|
+
* @order 44
|
|
1438
|
+
* @param listener 视频帧的监听回调,详细信息请参见 [VeLiveVideoFrameListener](147519#VeLivePusherDef-VeLiveVideoFrameListener)。
|
|
1439
|
+
* @return <br>
|
|
1440
|
+
* - 0:成功;
|
|
1441
|
+
* - <0:失败。
|
|
1442
|
+
*
|
|
1443
|
+
*/
|
|
831
1444
|
/** {en}
|
|
832
1445
|
* @detail api
|
|
833
1446
|
* @brief Adds a video frame listener.
|
|
@@ -839,7 +1452,18 @@ export declare class VeLivePusher {
|
|
|
839
1452
|
*
|
|
840
1453
|
*/
|
|
841
1454
|
addVideoFrameListener(listener: VeLiveVideoFrameListener): int;
|
|
842
|
-
|
|
1455
|
+
/** {zh}
|
|
1456
|
+
* @detail api
|
|
1457
|
+
* @brief 移除已添加的视频帧监听回调。
|
|
1458
|
+
* @notes <br>
|
|
1459
|
+
* 如果没有添加过此监听回调或者监听回调已被移除,调用此方法将返回失败。
|
|
1460
|
+
* @order 45
|
|
1461
|
+
* @param listener 视频帧的监听回调,详细信息请参见 [VeLiveVideoFrameListener](147519#VeLivePusherDef-VeLiveVideoFrameListener)。
|
|
1462
|
+
* @return <br>
|
|
1463
|
+
* - 0:成功;
|
|
1464
|
+
* - <0:失败。
|
|
1465
|
+
*
|
|
1466
|
+
*/
|
|
843
1467
|
/** {en}
|
|
844
1468
|
* @detail api
|
|
845
1469
|
* @brief Removes the video frame listener.
|
|
@@ -853,7 +1477,16 @@ export declare class VeLivePusher {
|
|
|
853
1477
|
*
|
|
854
1478
|
*/
|
|
855
1479
|
removeVideoFrameListener(listener: VeLiveVideoFrameListener): int;
|
|
856
|
-
|
|
1480
|
+
/** {zh}
|
|
1481
|
+
* @detail api
|
|
1482
|
+
* @brief 添加音频帧的监听回调,用于获取推流器输出的音频帧。
|
|
1483
|
+
* @order 46
|
|
1484
|
+
* @param listener 音频帧监听回调,详细信息请参见 [VeLiveAudioFrameListener](147519#VeLivePusherDef-VeLiveAudioFrameListener)。
|
|
1485
|
+
* @return <br>
|
|
1486
|
+
* - 0:成功;
|
|
1487
|
+
* - <0:失败。
|
|
1488
|
+
*
|
|
1489
|
+
*/
|
|
857
1490
|
/** {en}
|
|
858
1491
|
* @detail api
|
|
859
1492
|
* @brief Adds an audio frame listener.
|
|
@@ -865,7 +1498,18 @@ export declare class VeLivePusher {
|
|
|
865
1498
|
*
|
|
866
1499
|
*/
|
|
867
1500
|
addAudioFrameListener(listener: VeLiveAudioFrameListener): int;
|
|
868
|
-
|
|
1501
|
+
/** {zh}
|
|
1502
|
+
* @detail api
|
|
1503
|
+
* @brief 移除已添加的音频帧监听回调。
|
|
1504
|
+
* @notes <br>
|
|
1505
|
+
* 如果没有添加过此监听回调或者监听回调已被移除,调用此方法将返回失败。
|
|
1506
|
+
* @order 47
|
|
1507
|
+
* @param listener 音频帧的监听回调,详细信息请参见 [VeLiveAudioFrameListener](147519#VeLivePusherDef-VeLiveAudioFrameListener)。
|
|
1508
|
+
* @return <br>
|
|
1509
|
+
* - 0:成功;
|
|
1510
|
+
* - <0:失败。
|
|
1511
|
+
*
|
|
1512
|
+
*/
|
|
869
1513
|
/** {en}
|
|
870
1514
|
* @detail api
|
|
871
1515
|
* @brief Removes the audio frame listener.
|
|
@@ -879,7 +1523,13 @@ export declare class VeLivePusher {
|
|
|
879
1523
|
*
|
|
880
1524
|
*/
|
|
881
1525
|
removeAudioFrameListener(listener: VeLiveAudioFrameListener): int;
|
|
882
|
-
|
|
1526
|
+
/** {zh}
|
|
1527
|
+
* @detail api
|
|
1528
|
+
* @brief 视频截图。
|
|
1529
|
+
* @order 48
|
|
1530
|
+
* @param listener 截图监听对象,详情请参见 [VeLiveSnapshotListener](147519#VeLivePusherDef-VeLiveSnapshotListener)。
|
|
1531
|
+
*
|
|
1532
|
+
*/
|
|
883
1533
|
/** {en}
|
|
884
1534
|
* @detail api
|
|
885
1535
|
* @brief Takes a screenshot.
|
|
@@ -890,7 +1540,12 @@ export declare class VeLivePusher {
|
|
|
890
1540
|
snapshot(listener: VeLiveSnapshotListener): void;
|
|
891
1541
|
}
|
|
892
1542
|
export declare class VeLiveMediaPlayer {
|
|
893
|
-
|
|
1543
|
+
/** {zh}
|
|
1544
|
+
* @detail api
|
|
1545
|
+
* @brief 销毁播放器实例。
|
|
1546
|
+
* @order 1
|
|
1547
|
+
*
|
|
1548
|
+
*/
|
|
894
1549
|
/** {en}
|
|
895
1550
|
* @detail api
|
|
896
1551
|
* @brief Destroys the media player instance.
|
|
@@ -898,7 +1553,15 @@ export declare class VeLiveMediaPlayer {
|
|
|
898
1553
|
*
|
|
899
1554
|
*/
|
|
900
1555
|
release(): void;
|
|
901
|
-
|
|
1556
|
+
/** {zh}
|
|
1557
|
+
* @detail api
|
|
1558
|
+
* @brief 设置播放状态的监听。
|
|
1559
|
+
* @notes <br>
|
|
1560
|
+
* 重复调用本方法,仅最后一次调用生效。
|
|
1561
|
+
* @order 4
|
|
1562
|
+
* @param listener 播放状态监听。详情请参见 [VeLiveMediaPlayerListener](147519#VeLivePusherDef-VeLiveMediaPlayerListener)。
|
|
1563
|
+
*
|
|
1564
|
+
*/
|
|
902
1565
|
/** {en}
|
|
903
1566
|
* @detail api
|
|
904
1567
|
* @brief Sets the observer for playback statuses.
|
|
@@ -909,7 +1572,16 @@ export declare class VeLiveMediaPlayer {
|
|
|
909
1572
|
*
|
|
910
1573
|
*/
|
|
911
1574
|
setListener(listener: VeLiveMediaPlayerListener): void;
|
|
912
|
-
|
|
1575
|
+
/** {zh}
|
|
1576
|
+
* @detail api
|
|
1577
|
+
* @brief 设置文件路径。支持的文件格式包括 MP3、AAC、M4A、WAV。
|
|
1578
|
+
* @order 2
|
|
1579
|
+
* @param url 文件路径。
|
|
1580
|
+
* @return <br>
|
|
1581
|
+
* - 0:成功;
|
|
1582
|
+
* - ≠0:失败。
|
|
1583
|
+
*
|
|
1584
|
+
*/
|
|
913
1585
|
/** {en}
|
|
914
1586
|
* @detail api
|
|
915
1587
|
* @brief Sets the file path. Supported file formats include MP3, AAC, M4A, WAV.
|
|
@@ -921,7 +1593,14 @@ export declare class VeLiveMediaPlayer {
|
|
|
921
1593
|
*
|
|
922
1594
|
*/
|
|
923
1595
|
prepare(url: String): int;
|
|
924
|
-
|
|
1596
|
+
/** {zh}
|
|
1597
|
+
* @detail api
|
|
1598
|
+
* @brief 开始播放。
|
|
1599
|
+
* @notes <br>
|
|
1600
|
+
* 需要在调用 start{@link #start} 开始播放后,调用本方法。
|
|
1601
|
+
* @order 12
|
|
1602
|
+
*
|
|
1603
|
+
*/
|
|
925
1604
|
/** {en}
|
|
926
1605
|
* @detail api
|
|
927
1606
|
* @brief Start playback.
|
|
@@ -931,7 +1610,17 @@ export declare class VeLiveMediaPlayer {
|
|
|
931
1610
|
*
|
|
932
1611
|
*/
|
|
933
1612
|
start(): int;
|
|
934
|
-
|
|
1613
|
+
/** {zh}
|
|
1614
|
+
* @detail api
|
|
1615
|
+
* @brief 停止播放。
|
|
1616
|
+
* @notes <br>
|
|
1617
|
+
* 需要在调用 start{@link #start} 开始播放后,调用本方法。
|
|
1618
|
+
* @order 13
|
|
1619
|
+
* @return <br>
|
|
1620
|
+
* - 0:成功;
|
|
1621
|
+
* - ≠0:失败。
|
|
1622
|
+
*
|
|
1623
|
+
*/
|
|
935
1624
|
/** {en}
|
|
936
1625
|
* @detail api
|
|
937
1626
|
* @brief Stops playback.
|
|
@@ -944,7 +1633,13 @@ export declare class VeLiveMediaPlayer {
|
|
|
944
1633
|
*
|
|
945
1634
|
*/
|
|
946
1635
|
stop(): int;
|
|
947
|
-
|
|
1636
|
+
/** {zh}
|
|
1637
|
+
* @detail api
|
|
1638
|
+
* @brief 暂停播放。
|
|
1639
|
+
* @notes <br>需要在调用 [start](#VeLiveMediaPlayer-start)[start](#VeLiveMediaPlayer-start) 开始播放后,调用本方法。
|
|
1640
|
+
* @order 14
|
|
1641
|
+
*
|
|
1642
|
+
*/
|
|
948
1643
|
/** {en}
|
|
949
1644
|
* @detail api
|
|
950
1645
|
* @brief Pauses playback.
|
|
@@ -954,7 +1649,13 @@ export declare class VeLiveMediaPlayer {
|
|
|
954
1649
|
*
|
|
955
1650
|
*/
|
|
956
1651
|
pause(): void;
|
|
957
|
-
|
|
1652
|
+
/** {zh}
|
|
1653
|
+
* @detail api
|
|
1654
|
+
* @brief 恢复播放。
|
|
1655
|
+
* @notes <br>需要在调用 [pause](#VeLiveMediaPlayer-pause) 暂停播放后,调用本方法。
|
|
1656
|
+
* @order 15
|
|
1657
|
+
*
|
|
1658
|
+
*/
|
|
958
1659
|
/** {en}
|
|
959
1660
|
* @detail api
|
|
960
1661
|
* @brief Resumes playback.
|
|
@@ -963,7 +1664,16 @@ export declare class VeLiveMediaPlayer {
|
|
|
963
1664
|
*
|
|
964
1665
|
*/
|
|
965
1666
|
resume(): void;
|
|
966
|
-
|
|
1667
|
+
/** {zh}
|
|
1668
|
+
* @detail api
|
|
1669
|
+
* @brief 获取文件的总时长,单位为 ms。
|
|
1670
|
+
* @notes <br>需要在调用 [start](#VeLiveMediaPlayer-start) 开始播放后,调用本方法。
|
|
1671
|
+
* @order 3
|
|
1672
|
+
* @return <br>
|
|
1673
|
+
* - >0:成功,音频文件时长;
|
|
1674
|
+
* - ≤0:失败。
|
|
1675
|
+
*
|
|
1676
|
+
*/
|
|
967
1677
|
/** {en}
|
|
968
1678
|
* @detail api
|
|
969
1679
|
* @brief Gets the duration of the media file.
|
|
@@ -975,7 +1685,16 @@ export declare class VeLiveMediaPlayer {
|
|
|
975
1685
|
*
|
|
976
1686
|
*/
|
|
977
1687
|
getDuration(): long;
|
|
978
|
-
|
|
1688
|
+
/** {zh}
|
|
1689
|
+
* @detail api
|
|
1690
|
+
* @brief 设置播放进度。
|
|
1691
|
+
* @order 5
|
|
1692
|
+
* @param posMs 播放时间,单位为 ms。
|
|
1693
|
+
* @return <br>
|
|
1694
|
+
* - 0:成功;
|
|
1695
|
+
* - ≠0:失败。
|
|
1696
|
+
*
|
|
1697
|
+
*/
|
|
979
1698
|
/** {en}
|
|
980
1699
|
* @detail api
|
|
981
1700
|
* @brief Sets the playback progress.
|
|
@@ -987,7 +1706,15 @@ export declare class VeLiveMediaPlayer {
|
|
|
987
1706
|
*
|
|
988
1707
|
*/
|
|
989
1708
|
seek(posMs: long): int;
|
|
990
|
-
|
|
1709
|
+
/** {zh}
|
|
1710
|
+
* @detail api
|
|
1711
|
+
* @brief 开启/关闭音频是否混音到直播流。
|
|
1712
|
+
* @param enable 开启/关闭,默认为 false。 <br>
|
|
1713
|
+
* - ture:开启;
|
|
1714
|
+
* - false:关闭。
|
|
1715
|
+
* @order 6
|
|
1716
|
+
*
|
|
1717
|
+
*/
|
|
991
1718
|
/** {en}
|
|
992
1719
|
* @detail api
|
|
993
1720
|
* @brief Enables or disables mixing the audio to the live stream.
|
|
@@ -998,7 +1725,14 @@ export declare class VeLiveMediaPlayer {
|
|
|
998
1725
|
*
|
|
999
1726
|
*/
|
|
1000
1727
|
enableMixer(enable: boolean): void;
|
|
1001
|
-
|
|
1728
|
+
/** {zh}
|
|
1729
|
+
* @detail api
|
|
1730
|
+
* @brief 开启/关闭自动音量均衡。
|
|
1731
|
+
* @order 7
|
|
1732
|
+
* @param sourceLufs 源响度。
|
|
1733
|
+
* @param targetLufs 目标响度。
|
|
1734
|
+
*
|
|
1735
|
+
*/
|
|
1002
1736
|
/** {en}
|
|
1003
1737
|
* @detail api
|
|
1004
1738
|
* @brief Enables or disables automatic volume equalization.
|
|
@@ -1008,7 +1742,15 @@ export declare class VeLiveMediaPlayer {
|
|
|
1008
1742
|
*
|
|
1009
1743
|
*/
|
|
1010
1744
|
enableAutoEq(sourceLufs: float, targetLufs: float): void;
|
|
1011
|
-
|
|
1745
|
+
/** {zh}
|
|
1746
|
+
* @detail api
|
|
1747
|
+
* @brief 设置音视频帧回调的监听。
|
|
1748
|
+
* @notes <br>
|
|
1749
|
+
* 重复调用本方法,仅最后一次调用生效。
|
|
1750
|
+
* @order 8
|
|
1751
|
+
* @param listener 音视频帧回调监听。详情请参见 [VeLiveMediaPlayerFrameListener](147519#VeLivePusherDef-VeLiveMediaPlayerFrameListener)。
|
|
1752
|
+
*
|
|
1753
|
+
*/
|
|
1012
1754
|
/** {en}
|
|
1013
1755
|
* @detail api
|
|
1014
1756
|
* @brief Sets the observer for audio and video frames.
|
|
@@ -1019,7 +1761,13 @@ export declare class VeLiveMediaPlayer {
|
|
|
1019
1761
|
*
|
|
1020
1762
|
*/
|
|
1021
1763
|
setFrameListener(listener: VeLiveMediaPlayerFrameListener): void;
|
|
1022
|
-
|
|
1764
|
+
/** {zh}
|
|
1765
|
+
* @detail api
|
|
1766
|
+
* @brief 设置播放音频的音量。
|
|
1767
|
+
* @order 9
|
|
1768
|
+
* @param volume 播放音频音量,取值范围为 [0.0,4.0]。
|
|
1769
|
+
*
|
|
1770
|
+
*/
|
|
1023
1771
|
/** {en}
|
|
1024
1772
|
* @detail api
|
|
1025
1773
|
* @brief Sets the playback volume.
|
|
@@ -1028,7 +1776,14 @@ export declare class VeLiveMediaPlayer {
|
|
|
1028
1776
|
*
|
|
1029
1777
|
*/
|
|
1030
1778
|
setBGMVolume(volume: float): void;
|
|
1031
|
-
|
|
1779
|
+
/** {zh}
|
|
1780
|
+
* @detail api
|
|
1781
|
+
* @brief 设置音频采集音量。
|
|
1782
|
+
* @notes <br>需要在调用 [start](#VeLiveMediaPlayer-start) 开始播放背景音乐后,调用本方法。
|
|
1783
|
+
* @order 10
|
|
1784
|
+
* @param volume 音频采集音量,取值范围为 [0.0,4.0]。
|
|
1785
|
+
*
|
|
1786
|
+
*/
|
|
1032
1787
|
/** {en}
|
|
1033
1788
|
* @detail api
|
|
1034
1789
|
* @brief Sets the audio capture volume.
|
|
@@ -1038,7 +1793,15 @@ export declare class VeLiveMediaPlayer {
|
|
|
1038
1793
|
*
|
|
1039
1794
|
*/
|
|
1040
1795
|
setVoiceVolume(volume: float): void;
|
|
1041
|
-
|
|
1796
|
+
/** {zh}
|
|
1797
|
+
* @detail api
|
|
1798
|
+
* @brief 设置是否循环播放。
|
|
1799
|
+
* @param loop 是否循环播放。默认为 false。<br>
|
|
1800
|
+
* - true:循环播放;
|
|
1801
|
+
* - false:不循环播放。
|
|
1802
|
+
* @order 11
|
|
1803
|
+
*
|
|
1804
|
+
*/
|
|
1042
1805
|
/** {en}
|
|
1043
1806
|
* @detail api
|
|
1044
1807
|
* @brief Sets whether to loop the video.
|
|
@@ -1051,7 +1814,13 @@ export declare class VeLiveMediaPlayer {
|
|
|
1051
1814
|
enableBGMLoop(loop: boolean): void;
|
|
1052
1815
|
}
|
|
1053
1816
|
export declare class VeLiveAudioDevice {
|
|
1054
|
-
|
|
1817
|
+
/** {zh}
|
|
1818
|
+
* @detail api
|
|
1819
|
+
* @brief 设置音量响度。
|
|
1820
|
+
* @order 74
|
|
1821
|
+
* @param level 音量响度等级,取值范围为 [0.0,4.0]。
|
|
1822
|
+
*
|
|
1823
|
+
*/
|
|
1055
1824
|
/** {en}
|
|
1056
1825
|
* @detail api
|
|
1057
1826
|
* @brief Sets the volume.
|
|
@@ -1060,7 +1829,14 @@ export declare class VeLiveAudioDevice {
|
|
|
1060
1829
|
*
|
|
1061
1830
|
*/
|
|
1062
1831
|
setVoiceLoudness(level: float): void;
|
|
1063
|
-
|
|
1832
|
+
/** {zh}
|
|
1833
|
+
* @detail api
|
|
1834
|
+
* @brief 获取当前音量响度。
|
|
1835
|
+
* @order 75
|
|
1836
|
+
* @return <br>
|
|
1837
|
+
* 当前音量响度等级。
|
|
1838
|
+
*
|
|
1839
|
+
*/
|
|
1064
1840
|
/** {en}
|
|
1065
1841
|
* @detail api
|
|
1066
1842
|
* @brief Gets the current volume.
|