@byteplus/react-native-live-push 1.5.1-rc.2 → 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/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
|
@@ -3,7 +3,17 @@ import { VeLiveFileRecorderConfiguration, VeLivePusherLogLevel, VeLivePusherConf
|
|
|
3
3
|
import { VeLiveMediaPlayerListener, VeLiveMediaPlayerFrameListener, VeLivePusherObserver, VeLivePusherStatisticsObserver, VeLiveVideoFrameListener, VeLiveAudioFrameListener, VeLiveScreenCaptureStatusObserver, VeLiveFileRecordingListener, VeLiveVideoFrameFilter, VeLiveAudioFrameFilter, VeLiveSnapshotListener } from './callback';
|
|
4
4
|
import { UIView } from './external';
|
|
5
5
|
export declare class VeLiveFileRecorderManager {
|
|
6
|
-
|
|
6
|
+
/** {zh}
|
|
7
|
+
* @detail api
|
|
8
|
+
* @brief 开始直播录制。
|
|
9
|
+
* @notes - 请在调用 [startPush:](#VeLivePusher-startpush) 推流成功之后,调用该方法,直播过程中的音视频数据将保存到本地;
|
|
10
|
+
* - 本方法为异步操作;
|
|
11
|
+
* - 开始录制后,会触发 [onFileRecordingStarted](155319#VeLiveFileRecordingListener-onfilerecordingstarted) 回调消息;
|
|
12
|
+
* - 录制出现错误,会触发 [onFileRecordingError:message:](155319#VeLiveFileRecordingListener-onfilerecordingerror-message) 回调消息。
|
|
13
|
+
* @param path 录制文件保存路径,不能为空。
|
|
14
|
+
* @param config 直播录制配置。详情请参见 [VeLiveFileRecorderConfiguration](155321#VeLiveFileRecorderConfiguration)。
|
|
15
|
+
* @order 43
|
|
16
|
+
*/
|
|
7
17
|
/** {en}
|
|
8
18
|
* @detail api
|
|
9
19
|
* @brief Start live recording.
|
|
@@ -16,7 +26,15 @@ export declare class VeLiveFileRecorderManager {
|
|
|
16
26
|
* @order 43
|
|
17
27
|
*/
|
|
18
28
|
startRecord(path: NSString, config: VeLiveFileRecorderConfiguration): void;
|
|
19
|
-
|
|
29
|
+
/** {zh}
|
|
30
|
+
* @detail api
|
|
31
|
+
* @brief 停止本地直播录制。
|
|
32
|
+
* @notes - 请在调用 [startRecord:config:](#VeLiveFileRecorderManager-startrecord-config) 成功开始录制之后,调用该方法;
|
|
33
|
+
* - 本方法为异步操作;
|
|
34
|
+
* - 停止录制,会触发 [onFileRecordingStopped](155319#VeLiveFileRecordingListener-onfilerecordingstopped) 回调消息;
|
|
35
|
+
* - 录制出现错误,会触发 [onFileRecordingError:message:](155319#VeLiveFileRecordingListener-onfilerecordingerror-message) 回调消息。
|
|
36
|
+
* @order 45
|
|
37
|
+
*/
|
|
20
38
|
/** {en}
|
|
21
39
|
* @detail api
|
|
22
40
|
* @brief Stop local live recording.
|
|
@@ -30,7 +48,15 @@ export declare class VeLiveFileRecorderManager {
|
|
|
30
48
|
init(): this;
|
|
31
49
|
}
|
|
32
50
|
export declare class VeLiveCameraDevice {
|
|
33
|
-
|
|
51
|
+
/** {zh}
|
|
52
|
+
* @detail api
|
|
53
|
+
* @brief 是否支持闪光灯。
|
|
54
|
+
* @notes 需要在调用 [startVideoCapture:](#VeLivePusher-startvideocapture) 启动相机采集后,调用本方法。
|
|
55
|
+
* @order 49
|
|
56
|
+
* @return <br>
|
|
57
|
+
* - YES:支持;
|
|
58
|
+
* - NO:不支持。
|
|
59
|
+
*/
|
|
34
60
|
/** {en}
|
|
35
61
|
* @detail api
|
|
36
62
|
* @brief Checks whether flashlight is supported.
|
|
@@ -40,7 +66,17 @@ export declare class VeLiveCameraDevice {
|
|
|
40
66
|
* - NO: Not supported.
|
|
41
67
|
*/
|
|
42
68
|
isTorchSupported(): BOOL;
|
|
43
|
-
|
|
69
|
+
/** {zh}
|
|
70
|
+
* @detail api
|
|
71
|
+
* @brief 开启/关闭闪光灯。
|
|
72
|
+
* @notes 需要在调用 [startVideoCapture:](#VeLivePusher-startvideocapture) 启动相机采集后,调用本方法。
|
|
73
|
+
* @order 51
|
|
74
|
+
* @param enable 是否开启闪光灯。默认为 NO。 <br>
|
|
75
|
+
* - YES:开启;
|
|
76
|
+
* - NO:关闭。
|
|
77
|
+
* @return - =0:开启/关闭成功;
|
|
78
|
+
* - ≠0:开启/关闭失败。
|
|
79
|
+
*/
|
|
44
80
|
/** {en}
|
|
45
81
|
* @detail api
|
|
46
82
|
* @brief Enables or disables the flashlight.
|
|
@@ -53,7 +89,16 @@ export declare class VeLiveCameraDevice {
|
|
|
53
89
|
* - ≠ 0: Failure.
|
|
54
90
|
*/
|
|
55
91
|
enableTorch(enable: BOOL): int;
|
|
56
|
-
|
|
92
|
+
/** {zh}
|
|
93
|
+
* @detail api
|
|
94
|
+
* @brief 设置摄像头的缩放倍数。
|
|
95
|
+
* @notes 需要在调用 [startVideoCapture:](#VeLivePusher-startvideocapture) 启动相机采集后,调用本方法。
|
|
96
|
+
* @order 52
|
|
97
|
+
* @param ratio 缩放倍数。默认为原尺寸,缩放倍数的取值范围为 [[getMinZoomRatio](#VeLiveCameraDevice-getminzoomratio),[getMaxZoomRatio](#VeLiveCameraDevice-getmaxzoomratio)]。
|
|
98
|
+
* @return <br>
|
|
99
|
+
* - =0:缩放成功;
|
|
100
|
+
* - ≠0:缩放失败。
|
|
101
|
+
*/
|
|
57
102
|
/** {en}
|
|
58
103
|
* @detail api
|
|
59
104
|
* @brief Sets the zoom factor of the camera.
|
|
@@ -64,7 +109,14 @@ export declare class VeLiveCameraDevice {
|
|
|
64
109
|
* - ≠ 0: Failure.
|
|
65
110
|
*/
|
|
66
111
|
setZoomRatio(ratio: float): int;
|
|
67
|
-
|
|
112
|
+
/** {zh}
|
|
113
|
+
* @detail api
|
|
114
|
+
* @brief 获取摄像头当前的缩放倍数。
|
|
115
|
+
* @notes 需要在调用 [startVideoCapture:](#VeLivePusher-startvideocapture) 启动相机采集后,调用本方法。
|
|
116
|
+
* @order 53
|
|
117
|
+
* @return - ≤0:表示不支持缩放;
|
|
118
|
+
* - >0:支持缩放,数值表示当前缩放倍数。
|
|
119
|
+
*/
|
|
68
120
|
/** {en}
|
|
69
121
|
* @detail api
|
|
70
122
|
* @brief Gets the current zoom factor of the camera.
|
|
@@ -74,7 +126,15 @@ export declare class VeLiveCameraDevice {
|
|
|
74
126
|
* - >0: The zoom factor.
|
|
75
127
|
*/
|
|
76
128
|
getCurrentZoomRatio(): float;
|
|
77
|
-
|
|
129
|
+
/** {zh}
|
|
130
|
+
* @detail api
|
|
131
|
+
* @brief 获取摄像头的最大缩放倍数。
|
|
132
|
+
* @notes 需要在调用 [startVideoCapture:](#VeLivePusher-startvideocapture) 启动相机采集后,调用本方法。
|
|
133
|
+
* @order 54
|
|
134
|
+
* @return <br>
|
|
135
|
+
* - ≤0:表示不支持缩放;
|
|
136
|
+
* - >0:支持缩放,数值表示最大缩放倍数。
|
|
137
|
+
*/
|
|
78
138
|
/** {en}
|
|
79
139
|
* @detail api
|
|
80
140
|
* @brief Gets the maximum zoom factor of the camera.
|
|
@@ -84,7 +144,15 @@ export declare class VeLiveCameraDevice {
|
|
|
84
144
|
* - >0: The maximum zoom factor.
|
|
85
145
|
*/
|
|
86
146
|
getMaxZoomRatio(): float;
|
|
87
|
-
|
|
147
|
+
/** {zh}
|
|
148
|
+
* @detail api
|
|
149
|
+
* @brief 获取摄像头的最小缩放倍数。
|
|
150
|
+
* @notes 需要在调用 [startVideoCapture:](#VeLivePusher-startvideocapture) 启动相机采集后,调用本方法。
|
|
151
|
+
* @order 55
|
|
152
|
+
* @return <br>
|
|
153
|
+
* - ≤0:表示不支持缩放;
|
|
154
|
+
* - >0:支持缩放,数值表示最小缩放倍数。
|
|
155
|
+
*/
|
|
88
156
|
/** {en}
|
|
89
157
|
* @detail api
|
|
90
158
|
* @brief Gets the minimum zoom factor of the camera.
|
|
@@ -94,7 +162,15 @@ export declare class VeLiveCameraDevice {
|
|
|
94
162
|
* - >0: The minimum zoom factor.
|
|
95
163
|
*/
|
|
96
164
|
getMinZoomRatio(): float;
|
|
97
|
-
|
|
165
|
+
/** {zh}
|
|
166
|
+
* @detail api
|
|
167
|
+
* @brief 是否支持自动对焦。
|
|
168
|
+
* @notes 需要在调用 [startVideoCapture:](#VeLivePusher-startvideocapture) 启动相机采集后,调用本方法。
|
|
169
|
+
* @order 56
|
|
170
|
+
* @return <br>
|
|
171
|
+
* - YES:支持;
|
|
172
|
+
* - NO:不支持。
|
|
173
|
+
*/
|
|
98
174
|
/** {en}
|
|
99
175
|
* @detail api
|
|
100
176
|
* @brief Checks whether autofocus is supported.
|
|
@@ -104,7 +180,18 @@ export declare class VeLiveCameraDevice {
|
|
|
104
180
|
* - NO: Not supported.
|
|
105
181
|
*/
|
|
106
182
|
isAutoFocusEnabled(): BOOL;
|
|
107
|
-
|
|
183
|
+
/** {zh}
|
|
184
|
+
* @detail api
|
|
185
|
+
* @brief 开启/关闭自动对焦功能。
|
|
186
|
+
* @notes 需要在调用 [startVideoCapture:](#VeLivePusher-startvideocapture) 启动相机采集后,调用本方法。
|
|
187
|
+
* @order 57
|
|
188
|
+
* @param enable 是否开启自动对焦,默认为 YES。
|
|
189
|
+
* - YES:开启;
|
|
190
|
+
* - NO:关闭。
|
|
191
|
+
* @return <br>
|
|
192
|
+
* - =0:开启/关闭成功;
|
|
193
|
+
* - ≠0:开启/关闭失败。
|
|
194
|
+
*/
|
|
108
195
|
/** {en}
|
|
109
196
|
* @detail api
|
|
110
197
|
* @brief Enables or disables autofocus.
|
|
@@ -117,7 +204,16 @@ export declare class VeLiveCameraDevice {
|
|
|
117
204
|
* - ≠0: Failure.
|
|
118
205
|
*/
|
|
119
206
|
enableAutoFocus(enable: BOOL): int;
|
|
120
|
-
|
|
207
|
+
/** {zh}
|
|
208
|
+
* @detail api
|
|
209
|
+
* @brief 设置摄像头的对焦位置。
|
|
210
|
+
* @notes 需要在调用 [startVideoCapture:](#VeLivePusher-startvideocapture) 启动相机采集后,调用本方法。
|
|
211
|
+
* @order 58
|
|
212
|
+
* @param position 以左上角为原点,对焦点距当前视图的坐标值。
|
|
213
|
+
* @return <br>
|
|
214
|
+
* - =0:设置成功;
|
|
215
|
+
* - ≠0:设置失败。
|
|
216
|
+
*/
|
|
121
217
|
/** {en}
|
|
122
218
|
* @detail api
|
|
123
219
|
* @brief Sets the focus position of the camera.
|
|
@@ -129,7 +225,15 @@ export declare class VeLiveCameraDevice {
|
|
|
129
225
|
* - ≠0: Failure.
|
|
130
226
|
*/
|
|
131
227
|
setFocusPosition(position: CGPoint): int;
|
|
132
|
-
|
|
228
|
+
/** {zh}
|
|
229
|
+
* @detail api
|
|
230
|
+
* @brief 检查当前使用的摄像头是否支持手动设置曝光点。
|
|
231
|
+
* @notes 必须已调用 [startVideoCapture:](#VeLivePusher-startvideocapture) 使用 SDK 内部采集模块进行视频采集时,才能检查曝光点设置能力。
|
|
232
|
+
* @order 59
|
|
233
|
+
* @return <br>
|
|
234
|
+
* - YES: 支持。 <br>
|
|
235
|
+
* - NO: 不支持。
|
|
236
|
+
*/
|
|
133
237
|
/** {en}
|
|
134
238
|
* @detail api
|
|
135
239
|
* @brief Checks if manual exposure setting is available for the currently used camera.
|
|
@@ -139,7 +243,18 @@ export declare class VeLiveCameraDevice {
|
|
|
139
243
|
* - NO: Unavailable.
|
|
140
244
|
*/
|
|
141
245
|
isExposurePositionSupported(): BOOL;
|
|
142
|
-
|
|
246
|
+
/** {zh}
|
|
247
|
+
* @detail api
|
|
248
|
+
* @brief 设置当前使用的摄像头的曝光点。
|
|
249
|
+
* @param position 曝光点坐标。以本地预览画布的左上为坐标原点,`position`的`x`字段为曝光点水平方向归一化坐标,`y`字段为曝光点垂直方向归一化坐标,取值范围为 [0, 1]。
|
|
250
|
+
* @notes - 必须已调用 [startVideoCapture:](#VeLivePusher-startvideocapture) 使用 SDK 内部采集模块进行视频采集,并且使用 SDK 内部渲染时,才能设置曝光点。
|
|
251
|
+
* - 曝光点设置为画布中央(即`x`和`y`均取 0.5)时,恢复系统默认值。
|
|
252
|
+
* - 调用 [stopVideoCapture:](155318#VeLivePusher-stopvideocapture) 关闭内部采集后,设置的曝光点失效。
|
|
253
|
+
* @order 60
|
|
254
|
+
* @return <br>
|
|
255
|
+
* - =0: 成功。
|
|
256
|
+
* - ≠0: 失败。
|
|
257
|
+
*/
|
|
143
258
|
/** {en}
|
|
144
259
|
* @detail api
|
|
145
260
|
* @brief Sets the manual exposure position for the currently used camera.
|
|
@@ -152,7 +267,16 @@ export declare class VeLiveCameraDevice {
|
|
|
152
267
|
* - ≠0: Failure.
|
|
153
268
|
*/
|
|
154
269
|
setExposurePosition(position: CGPoint): int;
|
|
155
|
-
|
|
270
|
+
/** {zh}
|
|
271
|
+
* @detail api
|
|
272
|
+
* @brief 设置当前使用的摄像头的曝光补偿。
|
|
273
|
+
* @notes - 必须已调用 [startVideoCapture:](#VeLivePusher-startvideocapture) 使用 SDK 内部采集模块进行视频采集时,才能设置曝光补偿。
|
|
274
|
+
* - 调用 [stopVideoCapture:](#VeLivePusher-stopvideocapture) 关闭内部采集后,设置的曝光补偿失效。
|
|
275
|
+
* @order 61
|
|
276
|
+
* @param value 曝光补偿值,取值范围 [[getMinExposureCompensation](#VeLiveCameraDevice-getminexposurecompensation), [getMaxExposureCompensation](#VeLiveCameraDevice-getmaxexposurecompensation)],0 为系统默认值表示没有曝光补偿。
|
|
277
|
+
* @return - =0:设置成功;
|
|
278
|
+
* - ≠0:设置失败。
|
|
279
|
+
*/
|
|
156
280
|
/** {en}
|
|
157
281
|
* @detail api
|
|
158
282
|
* @brief Sets the exposure compensation for the currently used camera.
|
|
@@ -164,7 +288,15 @@ export declare class VeLiveCameraDevice {
|
|
|
164
288
|
* - ≠0: Failure.
|
|
165
289
|
*/
|
|
166
290
|
setExposureCompensation(value: float): int;
|
|
167
|
-
|
|
291
|
+
/** {zh}
|
|
292
|
+
* @detail api
|
|
293
|
+
* @brief 获取摄像头的最小曝光补偿。
|
|
294
|
+
* @notes 需要在调用 [startVideoCapture:](#VeLivePusher-startvideocapture) 启动相机采集后,调用本方法。
|
|
295
|
+
* @order 62
|
|
296
|
+
* @return <br>
|
|
297
|
+
* - ≤0:表示不支持曝光补偿;
|
|
298
|
+
* - >0:支持曝光补偿,数值表示最小曝光补偿。
|
|
299
|
+
*/
|
|
168
300
|
/** {en}
|
|
169
301
|
* @detail api
|
|
170
302
|
* @brief Gets the minimum exposure compensation of the camera.
|
|
@@ -174,7 +306,15 @@ export declare class VeLiveCameraDevice {
|
|
|
174
306
|
* - >0: The minimum exposure compensation.
|
|
175
307
|
*/
|
|
176
308
|
getMinExposureCompensation(): float;
|
|
177
|
-
|
|
309
|
+
/** {zh}
|
|
310
|
+
* @detail api
|
|
311
|
+
* @brief 获取摄像头的最大曝光补偿。
|
|
312
|
+
* @notes 需要在调用 [startVideoCapture:](#VeLivePusher-startvideocapture) 启动相机采集后,调用本方法。
|
|
313
|
+
* @order 63
|
|
314
|
+
* @return <br>
|
|
315
|
+
* - ≤0:表示不支持曝光补偿;
|
|
316
|
+
* - >0:支持曝光补偿,数值表示最大曝光补偿。
|
|
317
|
+
*/
|
|
178
318
|
/** {en}
|
|
179
319
|
* @detail api
|
|
180
320
|
* @brief Gets the maximum exposure compensation of the camera.
|
|
@@ -185,7 +325,13 @@ export declare class VeLiveCameraDevice {
|
|
|
185
325
|
* - >0: The maximum exposure compensation.
|
|
186
326
|
*/
|
|
187
327
|
getMaxExposureCompensation(): float;
|
|
188
|
-
|
|
328
|
+
/** {zh}
|
|
329
|
+
* @detail api
|
|
330
|
+
* @brief 设置相机参数。
|
|
331
|
+
* @notes 需要在调用 [startVideoCapture:](#VeLivePusher-startvideocapture) 启动相机采集后,调用本方法。
|
|
332
|
+
* @order 64
|
|
333
|
+
* @param parameter 相机参数字典,包含要设置的参数名称(键)和对应的值
|
|
334
|
+
*/
|
|
189
335
|
/** {en}
|
|
190
336
|
* @detail api
|
|
191
337
|
* @brief Sets camera parameters.
|
|
@@ -194,7 +340,15 @@ export declare class VeLiveCameraDevice {
|
|
|
194
340
|
* @param parameter The parameter name (key) and the corresponding value.
|
|
195
341
|
*/
|
|
196
342
|
setParameter(parameter: NSDictionary): void;
|
|
197
|
-
|
|
343
|
+
/** {zh}
|
|
344
|
+
* @detail api
|
|
345
|
+
* @brief 获取相机参数。
|
|
346
|
+
* @notes 需要在调用 [startVideoCapture:](#VeLivePusher-startvideocapture) 启动相机采集后,调用本方法。
|
|
347
|
+
* @order 65
|
|
348
|
+
* @param key 需要获取的相机参数的名称。
|
|
349
|
+
* @return <br>
|
|
350
|
+
* 相机参数的值,具体类型需要根据参数名称确定。
|
|
351
|
+
*/
|
|
198
352
|
/** {en}
|
|
199
353
|
* @detail api
|
|
200
354
|
* @brief Gets camera parameters.
|
|
@@ -208,7 +362,15 @@ export declare class VeLiveCameraDevice {
|
|
|
208
362
|
init(): this;
|
|
209
363
|
}
|
|
210
364
|
export declare class VeLiveMediaPlayer {
|
|
211
|
-
|
|
365
|
+
/** {zh}
|
|
366
|
+
* @detail api
|
|
367
|
+
* @brief 设置文件路径。支持的文件格式包括 MP3、AAC、M4A、WAV。
|
|
368
|
+
* @order 1
|
|
369
|
+
* @param url 文件路径。
|
|
370
|
+
* @return <br>
|
|
371
|
+
* - 0:成功;
|
|
372
|
+
* - ≠0:失败。
|
|
373
|
+
*/
|
|
212
374
|
/** {en}
|
|
213
375
|
* @detail api
|
|
214
376
|
* @brief Sets the file path. Supported file formats include MP3, AAC, M4A, and WAV.
|
|
@@ -218,14 +380,24 @@ export declare class VeLiveMediaPlayer {
|
|
|
218
380
|
* - ≠ 0: Failure.
|
|
219
381
|
*/
|
|
220
382
|
prepare(url: NSString): int;
|
|
221
|
-
|
|
383
|
+
/** {zh}
|
|
384
|
+
* @detail api
|
|
385
|
+
* @brief 销毁播放器实例。
|
|
386
|
+
* @order 3
|
|
387
|
+
*/
|
|
222
388
|
/** {en}
|
|
223
389
|
* @detail api
|
|
224
390
|
* @brief Destroys the media player instance.
|
|
225
391
|
* @order 3
|
|
226
392
|
*/
|
|
227
393
|
destroy(): void;
|
|
228
|
-
|
|
394
|
+
/** {zh}
|
|
395
|
+
* @detail api
|
|
396
|
+
* @brief 设置播放状态的监听。
|
|
397
|
+
* @notes 重复调用本方法,仅最后一次调用生效。
|
|
398
|
+
* @order 4
|
|
399
|
+
* @param listener 播放状态监听。详情请参见 [VeLiveMediaPlayerListener](155319#VeLiveMediaPlayerListener)。
|
|
400
|
+
*/
|
|
229
401
|
/** {en}
|
|
230
402
|
* @detail api
|
|
231
403
|
* @brief Sets the observer for playback statuses.
|
|
@@ -234,7 +406,14 @@ export declare class VeLiveMediaPlayer {
|
|
|
234
406
|
* @order 4
|
|
235
407
|
*/
|
|
236
408
|
setListener(listener: id<VeLiveMediaPlayerListener>): void;
|
|
237
|
-
|
|
409
|
+
/** {zh}
|
|
410
|
+
* @detail api
|
|
411
|
+
* @brief 设置音视频帧回调的监听。
|
|
412
|
+
* @notes <br>
|
|
413
|
+
* 重复调用本方法,仅最后一次调用生效。
|
|
414
|
+
* @order 5
|
|
415
|
+
* @param listener 音视频帧回调监听。详情请参见 [VeLiveMediaPlayerFrameListener](155319#VeLiveMediaPlayerFrameListener)。
|
|
416
|
+
*/
|
|
238
417
|
/** {en}
|
|
239
418
|
* @detail api
|
|
240
419
|
* @brief Sets the observer for audio and video frames.
|
|
@@ -244,7 +423,14 @@ export declare class VeLiveMediaPlayer {
|
|
|
244
423
|
* @order 5
|
|
245
424
|
*/
|
|
246
425
|
setFrameListener(listener: id<VeLiveMediaPlayerFrameListener>): void;
|
|
247
|
-
|
|
426
|
+
/** {zh}
|
|
427
|
+
* @detail api
|
|
428
|
+
* @brief 开启/关闭音频是否混音到直播流。
|
|
429
|
+
* @param enable 开启/关闭,默认为 NO。 <br>
|
|
430
|
+
* - YES:开启;
|
|
431
|
+
* - NO:关闭。
|
|
432
|
+
* @order 6
|
|
433
|
+
*/
|
|
248
434
|
/** {en}
|
|
249
435
|
* @detail api
|
|
250
436
|
* @brief Enables or disables mixing the audio to the live stream.
|
|
@@ -254,7 +440,13 @@ export declare class VeLiveMediaPlayer {
|
|
|
254
440
|
* @order 6
|
|
255
441
|
*/
|
|
256
442
|
enableMixer(enable: BOOL): void;
|
|
257
|
-
|
|
443
|
+
/** {zh}
|
|
444
|
+
* @detail api
|
|
445
|
+
* @brief 开启/关闭自动音量均衡。
|
|
446
|
+
* @order 7
|
|
447
|
+
* @param sourceLufs 源响度。
|
|
448
|
+
* @param targetLufs 目标响度。
|
|
449
|
+
*/
|
|
258
450
|
/** {en}
|
|
259
451
|
* @detail api
|
|
260
452
|
* @brief Enables or disables automatic volume equalization.
|
|
@@ -264,7 +456,12 @@ export declare class VeLiveMediaPlayer {
|
|
|
264
456
|
* @param targetLufs The target volume.
|
|
265
457
|
*/
|
|
266
458
|
enableAutoEq(sourceLufs: float, targetLufs: float): void;
|
|
267
|
-
|
|
459
|
+
/** {zh}
|
|
460
|
+
* @detail api
|
|
461
|
+
* @brief 支持 MP4 格式的视频渲染。
|
|
462
|
+
* @param view 渲染视图。
|
|
463
|
+
* @order 93
|
|
464
|
+
*/
|
|
268
465
|
/** {en}
|
|
269
466
|
* @detail api
|
|
270
467
|
* @brief Sets the view for rendering the video. Supports MP4 format.
|
|
@@ -272,7 +469,14 @@ export declare class VeLiveMediaPlayer {
|
|
|
272
469
|
* @order 93
|
|
273
470
|
*/
|
|
274
471
|
setRenderView(view: UIView): void;
|
|
275
|
-
|
|
472
|
+
/** {zh}
|
|
473
|
+
* @detail api
|
|
474
|
+
* @brief 设置是否循环播放。
|
|
475
|
+
* @param enable 是否循环播放。默认为 NO。<br>
|
|
476
|
+
* - YES:循环播放;
|
|
477
|
+
* - NO:不循环播放。
|
|
478
|
+
* @order 8
|
|
479
|
+
*/
|
|
276
480
|
/** {en}
|
|
277
481
|
* @detail api
|
|
278
482
|
* @brief Sets whether to loop the media file.
|
|
@@ -282,7 +486,17 @@ export declare class VeLiveMediaPlayer {
|
|
|
282
486
|
* @order 8
|
|
283
487
|
*/
|
|
284
488
|
enableBGMLoop(enable: BOOL): void;
|
|
285
|
-
|
|
489
|
+
/** {zh}
|
|
490
|
+
* @detail api
|
|
491
|
+
* @brief 开始播放。
|
|
492
|
+
* @notes
|
|
493
|
+
* - 需要在调用 [prepare:](#VeLiveMediaPlayer-prepare) 设置文件路径后,调用本方法;
|
|
494
|
+
* - 此方法为异步操作。当 SDK 收到开始播放 [onStart](155319#VeLiveMediaPlayerListener-onstart) 的回调后,开始播放。
|
|
495
|
+
* @order 9
|
|
496
|
+
* @return <br>
|
|
497
|
+
* - 0:成功;
|
|
498
|
+
* - ≠0:失败。
|
|
499
|
+
*/
|
|
286
500
|
/** {en}
|
|
287
501
|
* @detail api
|
|
288
502
|
* @brief Starts playback.
|
|
@@ -295,7 +509,16 @@ export declare class VeLiveMediaPlayer {
|
|
|
295
509
|
* - ≠ 0: Failure.
|
|
296
510
|
*/
|
|
297
511
|
start(): Promise<int>;
|
|
298
|
-
|
|
512
|
+
/** {zh}
|
|
513
|
+
* @detail api
|
|
514
|
+
* @brief 停止播放。
|
|
515
|
+
* @notes
|
|
516
|
+
* 需要在调用 [start](#VeLiveMediaPlayer-start) 开始播放后,调用本方法。
|
|
517
|
+
* @order 10
|
|
518
|
+
* @return <br>
|
|
519
|
+
* - 0:成功;
|
|
520
|
+
* - ≠0:失败。
|
|
521
|
+
*/
|
|
299
522
|
/** {en}
|
|
300
523
|
* @detail api
|
|
301
524
|
* @brief Stops playback.
|
|
@@ -307,7 +530,13 @@ export declare class VeLiveMediaPlayer {
|
|
|
307
530
|
* - ≠ 0: Failure.
|
|
308
531
|
*/
|
|
309
532
|
stop(): Promise<int>;
|
|
310
|
-
|
|
533
|
+
/** {zh}
|
|
534
|
+
* @detail api
|
|
535
|
+
* @brief 暂停播放。
|
|
536
|
+
* @notes
|
|
537
|
+
* 需要在调用 [start](#VeLiveMediaPlayer-start) 开始播放后,调用本方法。
|
|
538
|
+
* @order 11
|
|
539
|
+
*/
|
|
311
540
|
/** {en}
|
|
312
541
|
* @detail api
|
|
313
542
|
* @brief Pauses playback.
|
|
@@ -316,7 +545,13 @@ export declare class VeLiveMediaPlayer {
|
|
|
316
545
|
* @order 11
|
|
317
546
|
*/
|
|
318
547
|
pause(): Promise<void>;
|
|
319
|
-
|
|
548
|
+
/** {zh}
|
|
549
|
+
* @detail api
|
|
550
|
+
* @brief 恢复播放。
|
|
551
|
+
* @notes
|
|
552
|
+
* 需要在调用 [pause](#VeLiveMediaPlayer-pause) 暂停播放后,调用本方法。
|
|
553
|
+
* @order 12
|
|
554
|
+
*/
|
|
320
555
|
/** {en}
|
|
321
556
|
* @detail api
|
|
322
557
|
* @brief Resumes playback.
|
|
@@ -325,7 +560,15 @@ export declare class VeLiveMediaPlayer {
|
|
|
325
560
|
* @order 12
|
|
326
561
|
*/
|
|
327
562
|
resume(): Promise<void>;
|
|
328
|
-
|
|
563
|
+
/** {zh}
|
|
564
|
+
* @detail api
|
|
565
|
+
* @brief 设置播放进度。
|
|
566
|
+
* @order 13
|
|
567
|
+
* @param pos 播放时间,单位为 ms。
|
|
568
|
+
* @return <br>
|
|
569
|
+
* - 0:成功;
|
|
570
|
+
* - ≠0:失败。
|
|
571
|
+
*/
|
|
329
572
|
/** {en}
|
|
330
573
|
* @detail api
|
|
331
574
|
* @brief Sets the playback progress.
|
|
@@ -336,7 +579,16 @@ export declare class VeLiveMediaPlayer {
|
|
|
336
579
|
* - ≠ 0: Failure.
|
|
337
580
|
*/
|
|
338
581
|
seek(pos: long): int;
|
|
339
|
-
|
|
582
|
+
/** {zh}
|
|
583
|
+
* @detail api
|
|
584
|
+
* @brief 获取文件的总时长,单位为 ms。
|
|
585
|
+
* @notes
|
|
586
|
+
* 需要在调用 [start](#VeLiveMediaPlayer-start) 开始播放后,调用本方法。
|
|
587
|
+
* @order 2
|
|
588
|
+
* @return <br>
|
|
589
|
+
* - >0:成功,音频文件时长;
|
|
590
|
+
* - ≤0:失败。
|
|
591
|
+
*/
|
|
340
592
|
/** {en}
|
|
341
593
|
* @detail api
|
|
342
594
|
* @brief Gets the duration of the media file.
|
|
@@ -348,7 +600,12 @@ export declare class VeLiveMediaPlayer {
|
|
|
348
600
|
* - ≤ 0: Failure.
|
|
349
601
|
*/
|
|
350
602
|
getDuration(): long;
|
|
351
|
-
|
|
603
|
+
/** {zh}
|
|
604
|
+
* @detail api
|
|
605
|
+
* @brief 设置播放音频的音量。
|
|
606
|
+
* @order 14
|
|
607
|
+
* @param volume 播放音频音量,取值范围为 [0.0,4.0]。
|
|
608
|
+
*/
|
|
352
609
|
/** {en}
|
|
353
610
|
* @detail api
|
|
354
611
|
* @brief Sets the playback volume.
|
|
@@ -356,7 +613,14 @@ export declare class VeLiveMediaPlayer {
|
|
|
356
613
|
* @order 14
|
|
357
614
|
*/
|
|
358
615
|
setBGMVolume(volume: float): void;
|
|
359
|
-
|
|
616
|
+
/** {zh}
|
|
617
|
+
* @detail api
|
|
618
|
+
* @brief 设置音频采集音量。
|
|
619
|
+
* @notes
|
|
620
|
+
* 需要在调用 [start](#VeLiveMediaPlayer-start) 开始播放背景音乐后,调用本方法。
|
|
621
|
+
* @order 15
|
|
622
|
+
* @param volume 音频采集音量,取值范围为 [0.0,4.0]。
|
|
623
|
+
*/
|
|
360
624
|
/** {en}
|
|
361
625
|
* @detail api
|
|
362
626
|
* @brief Sets the audio capture volume.
|
|
@@ -369,7 +633,12 @@ export declare class VeLiveMediaPlayer {
|
|
|
369
633
|
init(): this;
|
|
370
634
|
}
|
|
371
635
|
export declare class VeLiveAudioDevice {
|
|
372
|
-
|
|
636
|
+
/** {zh}
|
|
637
|
+
* @detail api
|
|
638
|
+
* @brief 设置音量响度。
|
|
639
|
+
* @order 60
|
|
640
|
+
* @param level 音量响度等级,取值范围为 [0.0,4.0]。
|
|
641
|
+
*/
|
|
373
642
|
/** {en}
|
|
374
643
|
* @detail api
|
|
375
644
|
* @brief Sets the volume.
|
|
@@ -377,7 +646,13 @@ export declare class VeLiveAudioDevice {
|
|
|
377
646
|
* @order 60
|
|
378
647
|
*/
|
|
379
648
|
setVoiceLoudness(level: float): void;
|
|
380
|
-
|
|
649
|
+
/** {zh}
|
|
650
|
+
* @detail api
|
|
651
|
+
* @brief 获取当前音量响度。
|
|
652
|
+
* @order 61
|
|
653
|
+
* @return <br>
|
|
654
|
+
* 当前音量响度等级。
|
|
655
|
+
*/
|
|
381
656
|
/** {en}
|
|
382
657
|
* @detail api
|
|
383
658
|
* @brief Gets the current volume.
|
|
@@ -386,7 +661,14 @@ export declare class VeLiveAudioDevice {
|
|
|
386
661
|
* The current volume.
|
|
387
662
|
*/
|
|
388
663
|
getVoiceLoudness(): float;
|
|
389
|
-
|
|
664
|
+
/** {zh}
|
|
665
|
+
* @detail api
|
|
666
|
+
* @brief 查询是否支持硬件耳返。
|
|
667
|
+
* @return <br>
|
|
668
|
+
* - YES:支持;
|
|
669
|
+
* - NO:不支持。
|
|
670
|
+
* @order 62
|
|
671
|
+
*/
|
|
390
672
|
/** {en}
|
|
391
673
|
* @detail api
|
|
392
674
|
* @brief Checks whether in-ear monitoring is supported.
|
|
@@ -396,7 +678,16 @@ export declare class VeLiveAudioDevice {
|
|
|
396
678
|
* @order 62
|
|
397
679
|
*/
|
|
398
680
|
isSupportHardwareEcho(): BOOL;
|
|
399
|
-
|
|
681
|
+
/** {zh}
|
|
682
|
+
* @detail api
|
|
683
|
+
* @brief 是否开启耳返功能。
|
|
684
|
+
* @param enable 耳返功能开关。默认值为 NO。<br>
|
|
685
|
+
* - YES:开启;
|
|
686
|
+
* - NO:关闭。
|
|
687
|
+
* @notes
|
|
688
|
+
* 需要在调用 [startAudioCapture:](#VeLivePusher-startaudiocapture) 启动音频采集后,调用本方法。
|
|
689
|
+
* @order 64
|
|
690
|
+
*/
|
|
400
691
|
/** {en}
|
|
401
692
|
* @detail api
|
|
402
693
|
* @brief Enables or disables in-ear monitoring.
|
|
@@ -408,7 +699,16 @@ export declare class VeLiveAudioDevice {
|
|
|
408
699
|
* @order 64
|
|
409
700
|
*/
|
|
410
701
|
enableEcho(enable: BOOL): void;
|
|
411
|
-
|
|
702
|
+
/** {zh}
|
|
703
|
+
* @detail api
|
|
704
|
+
* @brief 获取当前耳返开启状态。
|
|
705
|
+
* @notes
|
|
706
|
+
* 需要在调用 [startAudioCapture:](#VeLivePusher-startaudiocapture) 启动音频采集后,调用本方法。
|
|
707
|
+
* @order 65
|
|
708
|
+
* @return <br>
|
|
709
|
+
* - YES:开启;
|
|
710
|
+
* - NO:关闭。
|
|
711
|
+
*/
|
|
412
712
|
/** {en}
|
|
413
713
|
* @detail api
|
|
414
714
|
* @brief Checks whether in-ear monitoring is enabled.
|
|
@@ -423,7 +723,12 @@ export declare class VeLiveAudioDevice {
|
|
|
423
723
|
init(): this;
|
|
424
724
|
}
|
|
425
725
|
export declare class VeLivePusher {
|
|
426
|
-
|
|
726
|
+
/** {zh}
|
|
727
|
+
* @detail api
|
|
728
|
+
* @brief 设置输出到控制台的日志等级。
|
|
729
|
+
* @order 50
|
|
730
|
+
* @param level 输出的日志级别,默认值为 `VeLivePusherLogLevelNone`,表示关闭日志。级别详情请参见 [VeLivePusherLogLevel](155321#VeLivePusherLogLevel)。
|
|
731
|
+
*/
|
|
427
732
|
/** {en}
|
|
428
733
|
* @detail api
|
|
429
734
|
* @brief Sets the log level sent to the console.
|
|
@@ -431,7 +736,12 @@ export declare class VeLivePusher {
|
|
|
431
736
|
* @order 50
|
|
432
737
|
*/
|
|
433
738
|
static setLogLevel(level: VeLivePusherLogLevel): void;
|
|
434
|
-
|
|
739
|
+
/** {zh}
|
|
740
|
+
* @detail api
|
|
741
|
+
* @param applicationGroupIdentifier iOS app group 标识符。
|
|
742
|
+
* @brief 开启屏幕采集。
|
|
743
|
+
* @order 20
|
|
744
|
+
*/
|
|
435
745
|
/** {en}
|
|
436
746
|
* @detail api
|
|
437
747
|
* @param applicationGroupIdentifier iOS app group identifier.
|
|
@@ -439,7 +749,13 @@ export declare class VeLivePusher {
|
|
|
439
749
|
* @order 20
|
|
440
750
|
*/
|
|
441
751
|
startScreenCapture(applicationGroupIdentifier: NSString): void;
|
|
442
|
-
|
|
752
|
+
/** {zh}
|
|
753
|
+
* @detail api
|
|
754
|
+
* @brief 停止屏幕采集。
|
|
755
|
+
* @notes <br>
|
|
756
|
+
* 该方法用于结束当前屏幕采集流程,并释放相关资源。调用本方法后,`pauseScreenCapture` 和 `resumeScreenCapture` 将不再生效。
|
|
757
|
+
* @order 21
|
|
758
|
+
*/
|
|
443
759
|
/** {en}
|
|
444
760
|
* @detail api
|
|
445
761
|
* @brief Stops the screen capturing process.
|
|
@@ -448,7 +764,13 @@ export declare class VeLivePusher {
|
|
|
448
764
|
* @order 21
|
|
449
765
|
*/
|
|
450
766
|
stopScreenCapture(): void;
|
|
451
|
-
|
|
767
|
+
/** {zh}
|
|
768
|
+
* @detail api
|
|
769
|
+
* @brief 暂停屏幕采集。
|
|
770
|
+
* @notes <br>
|
|
771
|
+
* 调用该方法后,屏幕采集将暂停输出数据,但不会销毁内部资源。您可通过 `resumeScreenCapture` 来恢复采集。如果当前采集已经停止或尚未开始,调用本方法不会产生任何效果。
|
|
772
|
+
* @order 22
|
|
773
|
+
*/
|
|
452
774
|
/** {en}
|
|
453
775
|
* @detail api
|
|
454
776
|
* @brief Pauses the screen capturing process.
|
|
@@ -457,7 +779,13 @@ export declare class VeLivePusher {
|
|
|
457
779
|
* @order 22
|
|
458
780
|
*/
|
|
459
781
|
pauseScreenCapture(): void;
|
|
460
|
-
|
|
782
|
+
/** {zh}
|
|
783
|
+
* @detail api
|
|
784
|
+
* @brief 恢复屏幕采集。
|
|
785
|
+
* @notes <br>
|
|
786
|
+
* 在调用 `pauseScreenCapture` 暂停后,通过本方法可以恢复屏幕采集输出。如果屏幕采集已经停止或尚未开始,调用本方法不会产生任何效果。
|
|
787
|
+
* @order 23
|
|
788
|
+
*/
|
|
461
789
|
/** {en}
|
|
462
790
|
* @detail api
|
|
463
791
|
* @brief Resumes the screen capturing process.
|
|
@@ -467,7 +795,12 @@ export declare class VeLivePusher {
|
|
|
467
795
|
*/
|
|
468
796
|
resumeScreenCapture(): void;
|
|
469
797
|
init(): this;
|
|
470
|
-
|
|
798
|
+
/** {zh}
|
|
799
|
+
* @detail api
|
|
800
|
+
* @brief 初始化推流器。
|
|
801
|
+
* @order 0
|
|
802
|
+
* @param config 推流配置类。详细信息请参见 [VeLivePusherConfiguration](155321#VeLivePusherConfiguration)。
|
|
803
|
+
*/
|
|
471
804
|
/** {en}
|
|
472
805
|
* @detail api
|
|
473
806
|
* @brief Initializes the live pusher.
|
|
@@ -475,14 +808,26 @@ export declare class VeLivePusher {
|
|
|
475
808
|
* @order 0
|
|
476
809
|
*/
|
|
477
810
|
initWithConfig(config: VeLivePusherConfiguration): this;
|
|
478
|
-
|
|
811
|
+
/** {zh}
|
|
812
|
+
* @detail api
|
|
813
|
+
* @brief 停止采集和推流,并销毁推流器。通常在调用 [stopPush](#VeLivePusher-stoppush) 结束推流后调用此方法进行清理。
|
|
814
|
+
* @order 2
|
|
815
|
+
*/
|
|
479
816
|
/** {en}
|
|
480
817
|
* @detail api
|
|
481
818
|
* @brief Stops capturing and pushing streams and destroys the live pusher. Call this method after [stopPush](#VeLivePusher-stoppush) is called.
|
|
482
819
|
* @order 2
|
|
483
820
|
*/
|
|
484
821
|
destroy(): void;
|
|
485
|
-
|
|
822
|
+
/** {zh}
|
|
823
|
+
* @detail api
|
|
824
|
+
* @brief 设置推流器回调,通过设置回调,监听推流器的推流错误、状态、网络质量、设备、首帧等回调事件。
|
|
825
|
+
* @notes <br>
|
|
826
|
+
* - 需要在创建推流引擎后,调用本方法;
|
|
827
|
+
* - 重复调用本方法,仅最后一次调用生效。
|
|
828
|
+
* @order 4
|
|
829
|
+
* @param observer 推流器回调对象,详细信息请参见 [VeLivePusherObserver](155319#VeLivePusherObserver)。
|
|
830
|
+
*/
|
|
486
831
|
/** {en}
|
|
487
832
|
* @detail api
|
|
488
833
|
* @brief Sets an observer to listen for live pusher events, including errors, statuses, network quality, device information, and first frame rendering.
|
|
@@ -493,7 +838,16 @@ export declare class VeLivePusher {
|
|
|
493
838
|
* @order 4
|
|
494
839
|
*/
|
|
495
840
|
setObserver(observer: id<VeLivePusherObserver>): void;
|
|
496
|
-
|
|
841
|
+
/** {zh}
|
|
842
|
+
* @detail api
|
|
843
|
+
* @brief 设置推流器周期性回调,用于定期获取推流状态信息。
|
|
844
|
+
* @notes <br>
|
|
845
|
+
* - 需要在创建推流引擎后,调用本方法;
|
|
846
|
+
* - 重复调用本方法,仅最后一次调用生效。
|
|
847
|
+
* @order 6
|
|
848
|
+
* @param observer 推流器周期性回调对象,详细信息请参见 [VeLivePusherStatisticsObserver](155319#VeLivePusherStatisticsObserver)。
|
|
849
|
+
* @param interval 周期性回调的时间间隔,单位为 s,默认值为 5。
|
|
850
|
+
*/
|
|
497
851
|
/** {en}
|
|
498
852
|
* @detail api
|
|
499
853
|
* @brief Sets an observer to periodically report push-stream statistics.
|
|
@@ -505,7 +859,15 @@ export declare class VeLivePusher {
|
|
|
505
859
|
* @order 6
|
|
506
860
|
*/
|
|
507
861
|
setStatisticsObserver(observer: id<VeLivePusherStatisticsObserver>, interval: int): void;
|
|
508
|
-
|
|
862
|
+
/** {zh}
|
|
863
|
+
* @detail api
|
|
864
|
+
* @brief 添加视频帧的监听回调,用于获取推流器输出的视频帧。
|
|
865
|
+
* @order 51
|
|
866
|
+
* @param listener 视频帧的监听回调,详细信息请参见 [VeLiveVideoFrameListener](155319#VeLiveVideoFrameListener)。
|
|
867
|
+
* @return <br>
|
|
868
|
+
* - 0:成功;
|
|
869
|
+
* - ≠0:失败。
|
|
870
|
+
*/
|
|
509
871
|
/** {en}
|
|
510
872
|
* @detail api
|
|
511
873
|
* @brief Adds a video frame listener.
|
|
@@ -516,7 +878,17 @@ export declare class VeLivePusher {
|
|
|
516
878
|
* - ≠ 0: Failure.
|
|
517
879
|
*/
|
|
518
880
|
addVideoFrameListener(listener: id<VeLiveVideoFrameListener>): int;
|
|
519
|
-
|
|
881
|
+
/** {zh}
|
|
882
|
+
* @detail api
|
|
883
|
+
* @brief 移除已添加的视频帧监听回调。
|
|
884
|
+
* @notes <br>
|
|
885
|
+
* 如果没有添加过此监听回调或者监听回调已被移除,调用此方法将返回失败。
|
|
886
|
+
* @order 52
|
|
887
|
+
* @param listener 视频帧的监听回调,详细信息请参见 [VeLiveVideoFrameListener](155319#VeLiveVideoFrameListener)。
|
|
888
|
+
* @return <br>
|
|
889
|
+
* - 0:成功;
|
|
890
|
+
* - <0:失败。
|
|
891
|
+
*/
|
|
520
892
|
/** {en}
|
|
521
893
|
* @detail api
|
|
522
894
|
* @brief Removes the video frame listener.
|
|
@@ -529,7 +901,15 @@ export declare class VeLivePusher {
|
|
|
529
901
|
* - <0: Failure.
|
|
530
902
|
*/
|
|
531
903
|
removeVideoFrameListener(listener: id<VeLiveVideoFrameListener>): int;
|
|
532
|
-
|
|
904
|
+
/** {zh}
|
|
905
|
+
* @detail api
|
|
906
|
+
* @brief 添加音频帧的监听回调,用于获取推流器输出的音频帧。
|
|
907
|
+
* @order 53
|
|
908
|
+
* @param listener 音频帧监听回调,详细信息请参见 [VeLiveAudioFrameListener](155319#VeLiveAudioFrameListener)。
|
|
909
|
+
* @return <br>
|
|
910
|
+
* - 0:成功;
|
|
911
|
+
* - <0:失败。
|
|
912
|
+
*/
|
|
533
913
|
/** {en}
|
|
534
914
|
* @detail api
|
|
535
915
|
* @brief Adds an audio frame listener.
|
|
@@ -540,7 +920,17 @@ export declare class VeLivePusher {
|
|
|
540
920
|
* - <0: Failure.
|
|
541
921
|
*/
|
|
542
922
|
addAudioFrameListener(listener: id<VeLiveAudioFrameListener>): int;
|
|
543
|
-
|
|
923
|
+
/** {zh}
|
|
924
|
+
* @detail api
|
|
925
|
+
* @brief 移除已添加的音频帧监听回调。
|
|
926
|
+
* @notes <br>
|
|
927
|
+
* 如果没有添加过此监听回调或者监听回调已被移除,调用此方法将返回失败。
|
|
928
|
+
* @order 54
|
|
929
|
+
* @param listener 音频帧的监听回调,详细信息请参见 [VeLiveAudioFrameListener](155319#VeLiveAudioFrameListener)。
|
|
930
|
+
* @return <br>
|
|
931
|
+
* - 0:成功;
|
|
932
|
+
* - <0:失败。
|
|
933
|
+
*/
|
|
544
934
|
/** {en}
|
|
545
935
|
* @detail api
|
|
546
936
|
* @brief Removes the audio frame listener.
|
|
@@ -553,7 +943,18 @@ export declare class VeLivePusher {
|
|
|
553
943
|
* - <0: Failure.
|
|
554
944
|
*/
|
|
555
945
|
removeAudioFrameListener(listener: id<VeLiveAudioFrameListener>): int;
|
|
556
|
-
|
|
946
|
+
/** {zh}
|
|
947
|
+
* @detail api
|
|
948
|
+
* @brief 添加屏幕采集的监听。
|
|
949
|
+
* @notes <br>
|
|
950
|
+
* 如果没有添加过此监听回调或者监听回调已被移除,调用此方法将返回失败。
|
|
951
|
+
* @param listener 屏幕采集事件监听回调,详细信息请参见 VeLiveScreenCaptureStatusObserver{@link #VeLiveScreenCaptureStatusObserver}
|
|
952
|
+
* @param observer 录屏推流事件监听器。详情见 [VeLiveScreenCaptureStatusObserver](155319#VeLiveScreenCaptureStatusObserver)。
|
|
953
|
+
* @order 5
|
|
954
|
+
* @return <br>
|
|
955
|
+
* - 0:成功;
|
|
956
|
+
* - <0:失败。
|
|
957
|
+
*/
|
|
557
958
|
/** {en}
|
|
558
959
|
* @brief Sets the observer for screen capturing events.
|
|
559
960
|
* @notes Calling this method will return a failure if the listener has not been added or has been removed.
|
|
@@ -563,7 +964,12 @@ export declare class VeLivePusher {
|
|
|
563
964
|
* - <0: Failure.
|
|
564
965
|
*/
|
|
565
966
|
setScreenCaptureObserver(observer: id<VeLiveScreenCaptureStatusObserver>): int;
|
|
566
|
-
|
|
967
|
+
/** {zh}
|
|
968
|
+
* @detail api
|
|
969
|
+
* @brief 设置本地预览视图。如您对采集到的画面进行了美颜等处理,View 中显示的是美颜后的画面。
|
|
970
|
+
* @order 7
|
|
971
|
+
* @param view 本地预览视图。
|
|
972
|
+
*/
|
|
567
973
|
/** {en}
|
|
568
974
|
* @detail api
|
|
569
975
|
* @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.
|
|
@@ -571,7 +977,12 @@ export declare class VeLivePusher {
|
|
|
571
977
|
* @order 7
|
|
572
978
|
*/
|
|
573
979
|
setRenderView(view: UIView): Promise<void>;
|
|
574
|
-
|
|
980
|
+
/** {zh}
|
|
981
|
+
* @detail api
|
|
982
|
+
* @order 10
|
|
983
|
+
* @brief 设置本地预览填充模式。
|
|
984
|
+
* @param fillMode 本地预览填充模式,默认值为 VeLivePusherRenderModeFill,即视频帧自适应画布的填充模式,详细信息请参见 [VeLivePusherRenderMode](155321#VeLivePusherRenderMode)。
|
|
985
|
+
*/
|
|
575
986
|
/** {en}
|
|
576
987
|
* @detail api
|
|
577
988
|
* @order 10
|
|
@@ -579,7 +990,15 @@ export declare class VeLivePusher {
|
|
|
579
990
|
* @param fillMode The fill mode. See VeLivePusherRenderMode {@link #VeLivePusherRenderMode} for details.
|
|
580
991
|
*/
|
|
581
992
|
setRenderFillMode(fillMode: VeLivePusherRenderMode): void;
|
|
582
|
-
|
|
993
|
+
/** {zh}
|
|
994
|
+
* @detail api
|
|
995
|
+
* @brief 开启/关闭镜像。该方法可用于配置预览和推流画面是否镜像。
|
|
996
|
+
* @order 8
|
|
997
|
+
* @param type 镜像类型,详细信息请参见 [VeLiveVideoMirrorType](155321#VeLiveVideoMirrorType)。
|
|
998
|
+
* @param enable 是否开启镜像。<br>
|
|
999
|
+
* - YES:开启;
|
|
1000
|
+
* - NO:关闭。
|
|
1001
|
+
*/
|
|
583
1002
|
/** {en}
|
|
584
1003
|
* @detail api
|
|
585
1004
|
* @brief Enables or disables mirroring for the local preview and the streamed video.
|
|
@@ -590,7 +1009,12 @@ export declare class VeLivePusher {
|
|
|
590
1009
|
* - NO: Disable.
|
|
591
1010
|
*/
|
|
592
1011
|
setVideoMirror(type: VeLiveVideoMirrorType, enable: BOOL): void;
|
|
593
|
-
|
|
1012
|
+
/** {zh}
|
|
1013
|
+
* @detail api
|
|
1014
|
+
* @brief 开始推流。
|
|
1015
|
+
* @order 24
|
|
1016
|
+
* @param url 推流地址,用于将直播流推送到目标服务器。
|
|
1017
|
+
*/
|
|
594
1018
|
/** {en}
|
|
595
1019
|
* @detail api
|
|
596
1020
|
* @brief Starts streaming.
|
|
@@ -598,7 +1022,14 @@ export declare class VeLivePusher {
|
|
|
598
1022
|
* @order 24
|
|
599
1023
|
*/
|
|
600
1024
|
startPush(url: NSString): void;
|
|
601
|
-
|
|
1025
|
+
/** {zh}
|
|
1026
|
+
* @detail api
|
|
1027
|
+
* @brief 开始推流,支持备用推流地址。
|
|
1028
|
+
* @notes <br>
|
|
1029
|
+
* 当数组中第一个推流地址不可用时,会自动切换到后面的备用推流地址继续推流。
|
|
1030
|
+
* @order 25
|
|
1031
|
+
* @param urls 推流地址列表,包含一个或多个推流地址。
|
|
1032
|
+
*/
|
|
602
1033
|
/** {en}
|
|
603
1034
|
* @detail api
|
|
604
1035
|
* @brief Starts streaming with one or more push stream addresses.
|
|
@@ -608,7 +1039,13 @@ export declare class VeLivePusher {
|
|
|
608
1039
|
* @order 25
|
|
609
1040
|
*/
|
|
610
1041
|
startPushWithUrls(urls: NSArray<NSString>): void;
|
|
611
|
-
|
|
1042
|
+
/** {zh}
|
|
1043
|
+
* @detail api
|
|
1044
|
+
* @brief 停止推流。
|
|
1045
|
+
* @notes
|
|
1046
|
+
* 停止推流后,可以通过调用 [startPush:](#VeLivePusher-startpush) 或 [startPushWithUrls:](#VeLivePusher-startpushwithurls) 方法重新开始推流。
|
|
1047
|
+
* @order 26
|
|
1048
|
+
*/
|
|
612
1049
|
/** {en}
|
|
613
1050
|
* @detail api
|
|
614
1051
|
* @brief Stops streaming.
|
|
@@ -617,7 +1054,15 @@ export declare class VeLivePusher {
|
|
|
617
1054
|
* @order 26
|
|
618
1055
|
*/
|
|
619
1056
|
stopPush(): void;
|
|
620
|
-
|
|
1057
|
+
/** {zh}
|
|
1058
|
+
* @detail api
|
|
1059
|
+
* @brief 当前是否正在推流中,可用来查询推流器的当前状态。
|
|
1060
|
+
* @order 27
|
|
1061
|
+
* @return <br>
|
|
1062
|
+
* 是否正在推流。<br>
|
|
1063
|
+
* - YES:正在推流中;
|
|
1064
|
+
* - NO:已经停止推流。
|
|
1065
|
+
*/
|
|
621
1066
|
/** {en}
|
|
622
1067
|
* @detail api
|
|
623
1068
|
* @brief Checks whether the streaming is currently ongoing. You can use this method to query the status of the live pusher.
|
|
@@ -628,7 +1073,14 @@ export declare class VeLivePusher {
|
|
|
628
1073
|
* - NO: The streaming has stopped.
|
|
629
1074
|
*/
|
|
630
1075
|
isPushing(): BOOL;
|
|
631
|
-
|
|
1076
|
+
/** {zh}
|
|
1077
|
+
* @detail api
|
|
1078
|
+
* @brief 开始视频采集。
|
|
1079
|
+
* @notes
|
|
1080
|
+
* 调用该接口后,可以通过调用接口 [stopVideoCapture](#VeLivePusher-stopvideocapture) 停止视频采集。
|
|
1081
|
+
* @order 11
|
|
1082
|
+
* @param type 视频采集类型,详细信息请参见 [VeLiveVideoCaptureType](155321#VeLiveVideoCaptureType)。
|
|
1083
|
+
*/
|
|
632
1084
|
/** {en}
|
|
633
1085
|
* @detail api
|
|
634
1086
|
* @brief Starts video capture.
|
|
@@ -638,7 +1090,13 @@ export declare class VeLivePusher {
|
|
|
638
1090
|
* @order 11
|
|
639
1091
|
*/
|
|
640
1092
|
startVideoCapture(type: VeLiveVideoCaptureType): void;
|
|
641
|
-
|
|
1093
|
+
/** {zh}
|
|
1094
|
+
* @detail api
|
|
1095
|
+
* @brief 停止视频采集。
|
|
1096
|
+
* @notes
|
|
1097
|
+
* 调用该接口后,可以通过调用接口 [startVideoCapture:](#VeLivePusher-startvideocapture) 开始视频采集。
|
|
1098
|
+
* @order 12
|
|
1099
|
+
*/
|
|
642
1100
|
/** {en}
|
|
643
1101
|
* @detail api
|
|
644
1102
|
* @brief Stops video capture.
|
|
@@ -647,7 +1105,14 @@ export declare class VeLivePusher {
|
|
|
647
1105
|
* @order 12
|
|
648
1106
|
*/
|
|
649
1107
|
stopVideoCapture(): void;
|
|
650
|
-
|
|
1108
|
+
/** {zh}
|
|
1109
|
+
* @detail api
|
|
1110
|
+
* @brief 切换视频采集类型。
|
|
1111
|
+
* @notes
|
|
1112
|
+
* 该接口必须在调用接口 [startVideoCapture:](#VeLivePusher-startvideocapture) 后调用才能生效。
|
|
1113
|
+
* @order 13
|
|
1114
|
+
* @param type 视频采集类型,详细信息请参见 [VeLiveVideoCaptureType](155321#VeLiveVideoCaptureType)。
|
|
1115
|
+
*/
|
|
651
1116
|
/** {en}
|
|
652
1117
|
* @detail api
|
|
653
1118
|
* @brief Switches the video capture type.
|
|
@@ -657,7 +1122,14 @@ export declare class VeLivePusher {
|
|
|
657
1122
|
* @param type The video capture type. See VeLiveVideoCaptureType{@link #VeLiveVideoCaptureType} for details.
|
|
658
1123
|
*/
|
|
659
1124
|
switchVideoCapture(type: VeLiveVideoCaptureType): void;
|
|
660
|
-
|
|
1125
|
+
/** {zh}
|
|
1126
|
+
* @detail api
|
|
1127
|
+
* @brief 开始音频采集。
|
|
1128
|
+
* @notes
|
|
1129
|
+
* 调用该接口后,可以通过调用接口 [[stopAudioCapture](#VeLivePusher-stopaudiocapture) 停止音频采集。
|
|
1130
|
+
* @order 15
|
|
1131
|
+
* @param type 音频采集类型,详细信息请参见 [VeLiveAudioCaptureType](155321#VeLiveAudioCaptureType)。
|
|
1132
|
+
*/
|
|
661
1133
|
/** {en}
|
|
662
1134
|
* @detail api
|
|
663
1135
|
* @brief Starts audio capture.
|
|
@@ -667,7 +1139,13 @@ export declare class VeLivePusher {
|
|
|
667
1139
|
* @order 15
|
|
668
1140
|
*/
|
|
669
1141
|
startAudioCapture(type: VeLiveAudioCaptureType): void;
|
|
670
|
-
|
|
1142
|
+
/** {zh}
|
|
1143
|
+
* @detail api
|
|
1144
|
+
* @brief 停止音频采集。
|
|
1145
|
+
* @notes
|
|
1146
|
+
* 调用该接口后,可以通过调用接口 [startAudioCapture:](#VeLivePusher-startaudiocapture) 开始音频采集。
|
|
1147
|
+
* @order 16
|
|
1148
|
+
*/
|
|
671
1149
|
/** {en}
|
|
672
1150
|
* @detail api
|
|
673
1151
|
* @brief Stops audio capture.
|
|
@@ -676,7 +1154,14 @@ export declare class VeLivePusher {
|
|
|
676
1154
|
* @order 16
|
|
677
1155
|
*/
|
|
678
1156
|
stopAudioCapture(): void;
|
|
679
|
-
|
|
1157
|
+
/** {zh}
|
|
1158
|
+
* @detail api
|
|
1159
|
+
* @brief 切换音频采集类型。
|
|
1160
|
+
* @notes
|
|
1161
|
+
* 该接口必须在调用接口 [startAudioCapture:](#VeLivePusher-startaudiocapture) 后调用才能生效。
|
|
1162
|
+
* @order 17
|
|
1163
|
+
* @param type 音频采集类型,详细信息请参见 [VeLiveAudioCaptureType](155321#VeLiveAudioCaptureType)。
|
|
1164
|
+
*/
|
|
680
1165
|
/** {en}
|
|
681
1166
|
* @detail api
|
|
682
1167
|
* @brief Switches audio capture type.
|
|
@@ -686,7 +1171,13 @@ export declare class VeLivePusher {
|
|
|
686
1171
|
* @order 17
|
|
687
1172
|
*/
|
|
688
1173
|
switchAudioCapture(type: VeLiveAudioCaptureType): void;
|
|
689
|
-
|
|
1174
|
+
/** {zh}
|
|
1175
|
+
* @detail api
|
|
1176
|
+
* @brief 获取当前视频采集类型。
|
|
1177
|
+
* @order 14
|
|
1178
|
+
* @return <br>
|
|
1179
|
+
* 视频采集类型,详细信息请参见 VeLiveVideoCaptureType{@link #VeLiveVideoCaptureType}。
|
|
1180
|
+
*/
|
|
690
1181
|
/** {en}
|
|
691
1182
|
* @detail api
|
|
692
1183
|
* @brief Gets the current video capture type.
|
|
@@ -695,7 +1186,13 @@ export declare class VeLivePusher {
|
|
|
695
1186
|
* The video capture type. See [VeLiveVideoCaptureType](docs-broadcast-sdk-for-ios-type-definition#VeLiveVideoCaptureType) for details.
|
|
696
1187
|
*/
|
|
697
1188
|
getCurrentVideoCaptureType(): VeLiveVideoCaptureType;
|
|
698
|
-
|
|
1189
|
+
/** {zh}
|
|
1190
|
+
* @detail api
|
|
1191
|
+
* @brief 获取当前音频采集类型。
|
|
1192
|
+
* @order 18
|
|
1193
|
+
* @return <br>
|
|
1194
|
+
* 音频采集类型,详细信息请参见 VeLiveAudioCaptureType{@link #VeLiveAudioCaptureType}。
|
|
1195
|
+
*/
|
|
699
1196
|
/** {en}
|
|
700
1197
|
* @detail api
|
|
701
1198
|
* @brief Gets the current audio capture type.
|
|
@@ -704,7 +1201,12 @@ export declare class VeLivePusher {
|
|
|
704
1201
|
* The audio capture type. See [VeLiveAudioCaptureType](docs-broadcast-sdk-for-ios-type-definition#VeLiveAudioCaptureType) for details.
|
|
705
1202
|
*/
|
|
706
1203
|
getCurrentAudioCaptureType(): VeLiveAudioCaptureType;
|
|
707
|
-
|
|
1204
|
+
/** {zh}
|
|
1205
|
+
* @detail api
|
|
1206
|
+
* @brief 自定义静态图,适用于静态图推流采集类型。使用该接口时,需要将视频采集类型设置为 VeLiveVideoCaptureCustomImage,您可调用 [startVideoCapture:](#VeLivePusher-startvideocapture) 方法,将 [VeLiveVideoCaptureType](155321#VeLiveVideoCaptureType) 设置为 VeLiveVideoCaptureCustomImage。
|
|
1207
|
+
* @order 19
|
|
1208
|
+
* @param image 静态图片,用于在静态图推流采集类型下设置静态图。
|
|
1209
|
+
*/
|
|
708
1210
|
/** {en}
|
|
709
1211
|
* @detail api
|
|
710
1212
|
* @brief Sets a static image to push. When using this method, you must call [startVideoCapture:](#VeLivePusher-startvideocapture) and set [VeLiveVideoCaptureType](docs-broadcast-sdk-for-ios-type-definition#VeLiveVideoCaptureType) to `VeLiveVideoCaptureCustomImage`.
|
|
@@ -712,7 +1214,14 @@ export declare class VeLivePusher {
|
|
|
712
1214
|
* @param image The static image to push.
|
|
713
1215
|
*/
|
|
714
1216
|
updateCustomImage(image: UIImage): Promise<void>;
|
|
715
|
-
|
|
1217
|
+
/** {zh}
|
|
1218
|
+
* @detail api
|
|
1219
|
+
* @brief 设置静音。
|
|
1220
|
+
* @param mute 是否设置为静音。默认为 NO。<br>
|
|
1221
|
+
* - YES:静音推流;
|
|
1222
|
+
* - NO:正常推流。
|
|
1223
|
+
* @order 22
|
|
1224
|
+
*/
|
|
716
1225
|
/** {en}
|
|
717
1226
|
* @detail api
|
|
718
1227
|
* @brief Sets whether to mute the stream.
|
|
@@ -722,7 +1231,14 @@ export declare class VeLivePusher {
|
|
|
722
1231
|
* @order 22
|
|
723
1232
|
*/
|
|
724
1233
|
setMute(mute: BOOL): void;
|
|
725
|
-
|
|
1234
|
+
/** {zh}
|
|
1235
|
+
* @detail api
|
|
1236
|
+
* @brief 当前是否是静音状态。
|
|
1237
|
+
* @order 23
|
|
1238
|
+
* @return <br>
|
|
1239
|
+
* - YES:当前是静音状态;
|
|
1240
|
+
* - NO:当前非静音状态。
|
|
1241
|
+
*/
|
|
726
1242
|
/** {en}
|
|
727
1243
|
* @detail api
|
|
728
1244
|
* @brief Checks whether the stream is muted.
|
|
@@ -732,7 +1248,14 @@ export declare class VeLivePusher {
|
|
|
732
1248
|
* - NO: The stream is not muted.
|
|
733
1249
|
*/
|
|
734
1250
|
isMute(): BOOL;
|
|
735
|
-
|
|
1251
|
+
/** {zh}
|
|
1252
|
+
* @detail api
|
|
1253
|
+
* @brief 设置推流视频编码参数。
|
|
1254
|
+
* @notes <br>
|
|
1255
|
+
* 该接口可在推流开始前或开始后调用。
|
|
1256
|
+
* @order 29
|
|
1257
|
+
* @param config 推流视频参数,支持设置推流视频分辨率、编码格式、目标码率和视频 GOP 大小等信息。详情请参见 [VeLiveVideoEncoderConfiguration](155321#VeLiveVideoEncoderConfiguration)。
|
|
1258
|
+
*/
|
|
736
1259
|
/** {en}
|
|
737
1260
|
* @detail api
|
|
738
1261
|
* @brief Sets video encoding parameters for the pushed stream.
|
|
@@ -742,7 +1265,14 @@ export declare class VeLivePusher {
|
|
|
742
1265
|
* @order 29
|
|
743
1266
|
*/
|
|
744
1267
|
setVideoEncoderConfiguration(config: VeLiveVideoEncoderConfiguration): void;
|
|
745
|
-
|
|
1268
|
+
/** {zh}
|
|
1269
|
+
* @detail api
|
|
1270
|
+
* @brief 设置推流音频编码参数。
|
|
1271
|
+
* @notes
|
|
1272
|
+
* 该接口需要在 [startPush:](#VeLivePusher-startpush) 或 [startPushWithUrls:](#VeLivePusher-startpushwithurls) 方法之前调用。
|
|
1273
|
+
* @order 28
|
|
1274
|
+
* @param config 推流音频编码参数,详情请参见 [VeLiveAudioEncoderConfiguration](155321#VeLiveAudioEncoderConfiguration)。
|
|
1275
|
+
*/
|
|
746
1276
|
/** {en}
|
|
747
1277
|
* @detail api
|
|
748
1278
|
* @brief Sets audio encoding parameters for the pushed stream.
|
|
@@ -752,7 +1282,14 @@ export declare class VeLivePusher {
|
|
|
752
1282
|
* @order 28
|
|
753
1283
|
*/
|
|
754
1284
|
setAudioEncoderConfiguration(config: VeLiveAudioEncoderConfiguration): void;
|
|
755
|
-
|
|
1285
|
+
/** {zh}
|
|
1286
|
+
* @detail api
|
|
1287
|
+
* @brief 开始本地文件录制。
|
|
1288
|
+
* @order 44
|
|
1289
|
+
* @param path 录制文件保存路径,不能为空。
|
|
1290
|
+
* @param config 文件录制设置,详情请参见 [VeLiveFileRecorderConfiguration](155321#VeLiveFileRecorderConfiguration)。
|
|
1291
|
+
* @param listener 本地文件录制的监听,详情请参见 [VeLiveFileRecordingListener](155319#VeLiveFileRecordingListener)。
|
|
1292
|
+
*/
|
|
756
1293
|
/** {en}
|
|
757
1294
|
* @detail api
|
|
758
1295
|
* @brief Starts local recording.
|
|
@@ -762,7 +1299,13 @@ export declare class VeLivePusher {
|
|
|
762
1299
|
* @order 44
|
|
763
1300
|
*/
|
|
764
1301
|
startFileRecording(path: NSString, config: VeLiveFileRecorderConfiguration, listener: id<VeLiveFileRecordingListener>): void;
|
|
765
|
-
|
|
1302
|
+
/** {zh}
|
|
1303
|
+
* @detail api
|
|
1304
|
+
* @brief 停止本地文件录制。
|
|
1305
|
+
* @notes
|
|
1306
|
+
* 该接口需要在 [startFileRecording](#VeLivePusher-startfilerecording-config-listener) 方法之后调用。
|
|
1307
|
+
* @order 46
|
|
1308
|
+
*/
|
|
766
1309
|
/** {en}
|
|
767
1310
|
* @detail api
|
|
768
1311
|
* @brief Stops local recording.
|
|
@@ -771,7 +1314,18 @@ export declare class VeLivePusher {
|
|
|
771
1314
|
* @order 46
|
|
772
1315
|
*/
|
|
773
1316
|
stopFileRecording(): void;
|
|
774
|
-
|
|
1317
|
+
/** {zh}
|
|
1318
|
+
* @detail api
|
|
1319
|
+
* @brief 获取相机设备管理对象 `VeLiveCameraDevice`。通过设备管理,您可以使用以下功能。
|
|
1320
|
+
* - 控制闪光灯开关
|
|
1321
|
+
* - 设置摄像头缩放比例
|
|
1322
|
+
* - 设置自动对焦
|
|
1323
|
+
* @notes
|
|
1324
|
+
* 该接口需要在 [startVideoCapture:](#VeLivePusher-startvideocapture) 方法中设置 [VeLiveVideoCaptureType](155321#VeLiveVideoCaptureType) 为 VeLiveVideoCaptureFrontCamera 或 VeLiveVideoCaptureBackCamera。
|
|
1325
|
+
* @order 32
|
|
1326
|
+
* @return
|
|
1327
|
+
* 相机设备管理对象 [VeLiveCameraDevice](#VeLiveCameraDevice)。
|
|
1328
|
+
*/
|
|
775
1329
|
/** {en}
|
|
776
1330
|
* @detail api
|
|
777
1331
|
* @brief Gets the camera manager. With the camera manager, you can do the following:
|
|
@@ -785,7 +1339,15 @@ export declare class VeLivePusher {
|
|
|
785
1339
|
* The camera manager. See [VeLiveCameraDevice](#VeLiveCameraDevice) for details.
|
|
786
1340
|
*/
|
|
787
1341
|
getCameraDevice(): VeLiveCameraDevice;
|
|
788
|
-
|
|
1342
|
+
/** {zh}
|
|
1343
|
+
* @detail api
|
|
1344
|
+
* @brief 获取音频模块管理对象。
|
|
1345
|
+
* @notes
|
|
1346
|
+
* 该接口需要在 [startAudioCapture:](#VeLivePusher-startaudiocapture) 方法中设置 [VeLiveAudioCaptureType](155321#VeLiveAudioCaptureType) 为 VeLiveAudioCaptureMicrophone。
|
|
1347
|
+
* @order 33
|
|
1348
|
+
* @return
|
|
1349
|
+
* 音频模块管理对象 [VeLiveAudioDevice](#VeLiveAudioDevice)。
|
|
1350
|
+
*/
|
|
789
1351
|
/** {en}
|
|
790
1352
|
* @detail api
|
|
791
1353
|
* @brief Gets the audio device manager.
|
|
@@ -796,7 +1358,20 @@ export declare class VeLivePusher {
|
|
|
796
1358
|
* The audio device manager. See [VeLiveAudioDevice](#VeLiveAudioDevice) for details.
|
|
797
1359
|
*/
|
|
798
1360
|
getAudioDevice(): VeLiveAudioDevice;
|
|
799
|
-
|
|
1361
|
+
/** {zh}
|
|
1362
|
+
* @detail api
|
|
1363
|
+
* @brief 获取视频特效管理对象 `VeLiveVideoEffectManager`。通过视频特效管理,您可以使用以下功能。
|
|
1364
|
+
* - 设置美颜
|
|
1365
|
+
* - 设置特效
|
|
1366
|
+
* - 设置素材
|
|
1367
|
+
* - 设置贴纸
|
|
1368
|
+
* - 设置滤镜
|
|
1369
|
+
* @notes
|
|
1370
|
+
* 该接口需要集成智能美化特效 SDK 后才能使用。
|
|
1371
|
+
* @order 31
|
|
1372
|
+
* @return
|
|
1373
|
+
* 视频特效管理对象 [VeLiveVideoEffectManager](#VeLiveVideoEffectManager)。
|
|
1374
|
+
*/
|
|
800
1375
|
/** {en}
|
|
801
1376
|
* @detail api
|
|
802
1377
|
* @brief Gets the special effects manager. With the special effects manager, you can do the following:
|
|
@@ -812,7 +1387,13 @@ export declare class VeLivePusher {
|
|
|
812
1387
|
* The special effects manager. See [VeLiveVideoEffectManager](#VeLiveVideoEffectManager) for details.
|
|
813
1388
|
*/
|
|
814
1389
|
getVideoEffectManager(): VeLiveVideoEffectManager;
|
|
815
|
-
|
|
1390
|
+
/** {zh}
|
|
1391
|
+
* @detail api
|
|
1392
|
+
* @brief 创建播放器。
|
|
1393
|
+
* @order 3
|
|
1394
|
+
* @return
|
|
1395
|
+
* 播放器管理对象 [VeLiveMediaPlayer](#VeLiveMediaPlayer)。
|
|
1396
|
+
*/
|
|
816
1397
|
/** {en}
|
|
817
1398
|
* @detail api
|
|
818
1399
|
* @brief Creates the media player.
|
|
@@ -821,7 +1402,12 @@ export declare class VeLivePusher {
|
|
|
821
1402
|
* The media player. See [VeLiveMediaPlayer](#VeLiveMediaPlayer) for details.
|
|
822
1403
|
*/
|
|
823
1404
|
createPlayer(): VeLiveMediaPlayer;
|
|
824
|
-
|
|
1405
|
+
/** {zh}
|
|
1406
|
+
* @detail api
|
|
1407
|
+
* @brief 自定义视频处理。
|
|
1408
|
+
* @param filter 视频帧滤镜对象 VeLiveVideoFrameFilter{@link #VeLiveVideoFrameFilter}。
|
|
1409
|
+
* @order 36
|
|
1410
|
+
*/
|
|
825
1411
|
/** {en}
|
|
826
1412
|
* @detail api
|
|
827
1413
|
* @brief Sets a protocol for custom video processing.
|
|
@@ -829,7 +1415,12 @@ export declare class VeLivePusher {
|
|
|
829
1415
|
* @order 36
|
|
830
1416
|
*/
|
|
831
1417
|
setVideoFrameFilter(filter: id<VeLiveVideoFrameFilter>): void;
|
|
832
|
-
|
|
1418
|
+
/** {zh}
|
|
1419
|
+
* @detail api
|
|
1420
|
+
* @brief 自定义音频处理。
|
|
1421
|
+
* @param filter 音频帧滤镜对象 VeLiveAudioFrameFilter{@link #VeLiveAudioFrameFilter}。
|
|
1422
|
+
* @order 40
|
|
1423
|
+
*/
|
|
833
1424
|
/** {en}
|
|
834
1425
|
* @detail api
|
|
835
1426
|
* @brief Sets custom audio processing.
|
|
@@ -837,7 +1428,12 @@ export declare class VeLivePusher {
|
|
|
837
1428
|
* @order 40
|
|
838
1429
|
*/
|
|
839
1430
|
setAudioFrameFilter(filter: id<VeLiveAudioFrameFilter>): void;
|
|
840
|
-
|
|
1431
|
+
/** {zh}
|
|
1432
|
+
* @detail api
|
|
1433
|
+
* @brief 设置推流视频帧朝向。默认为竖屏推流。
|
|
1434
|
+
* @param orientation 视频帧朝向。
|
|
1435
|
+
* @order 9
|
|
1436
|
+
*/
|
|
841
1437
|
/** {en}
|
|
842
1438
|
* @detail api
|
|
843
1439
|
* @brief Sets the orientation of the pushed video frame. The default orientation is portrait.
|
|
@@ -845,7 +1441,18 @@ export declare class VeLivePusher {
|
|
|
845
1441
|
* @order 9
|
|
846
1442
|
*/
|
|
847
1443
|
setOrientation(orientation: UIInterfaceOrientation): void;
|
|
848
|
-
|
|
1444
|
+
/** {zh}
|
|
1445
|
+
* @detail api
|
|
1446
|
+
* @brief 设置推流水印。
|
|
1447
|
+
* @order 35
|
|
1448
|
+
* @param image 水印图片。取值为 null 时,表示禁用水印。
|
|
1449
|
+
* @param x 水印的水平偏移量,即水印图片相对视频流左上角的横向偏移与视频流宽度的比值,取值范围为 [0.0,1.0]。
|
|
1450
|
+
* @param y 水印的垂直偏移量,即水印图片相对视频流左上角的纵向偏移与视频流高度的比值,取值范围为 [0.0,1.0]。
|
|
1451
|
+
* @param scale 水印图片的缩放比例,取值范围为 [0.0,1.0]。
|
|
1452
|
+
* @return <br>
|
|
1453
|
+
* - 0:水印设置成功;
|
|
1454
|
+
* - <0:水印设置失败。
|
|
1455
|
+
*/
|
|
849
1456
|
/** {en}
|
|
850
1457
|
* @detail api
|
|
851
1458
|
* @brief Sets a watermark for the pushed stream.
|
|
@@ -859,7 +1466,12 @@ export declare class VeLivePusher {
|
|
|
859
1466
|
* - <0: Failure.
|
|
860
1467
|
*/
|
|
861
1468
|
setWatermark(image: UIImage, x: float, y: float, scale: float): Promise<int>;
|
|
862
|
-
|
|
1469
|
+
/** {zh}
|
|
1470
|
+
* @detail api
|
|
1471
|
+
* @brief 视频截图。
|
|
1472
|
+
* @order 34
|
|
1473
|
+
* @param listener 截图监听对象,详情请参见 [VeLiveSnapshotListener](155319#VeLiveSnapshotListener)。
|
|
1474
|
+
*/
|
|
863
1475
|
/** {en}
|
|
864
1476
|
* @detail api
|
|
865
1477
|
* @brief Takes a screenshot.
|
|
@@ -867,7 +1479,25 @@ export declare class VeLivePusher {
|
|
|
867
1479
|
* @order 34
|
|
868
1480
|
*/
|
|
869
1481
|
snapshot(listener: id<VeLiveSnapshotListener>): void;
|
|
870
|
-
|
|
1482
|
+
/** {zh}
|
|
1483
|
+
* @detail api
|
|
1484
|
+
* @brief 通过视频帧发送 SEI 消息。
|
|
1485
|
+
* @notes
|
|
1486
|
+
* 该接口需要在调用 [startPush:](#VeLivePusher-startpush) 或 [startPushWithUrls:](#VeLivePusher-startpushwithurls) 方法之后调用。
|
|
1487
|
+
* @order 41
|
|
1488
|
+
* @param key SEI 消息为 JSON 格式的字符串。此参数为 JSON 结构中的 Key。
|
|
1489
|
+
* @param value SEI 消息为 JSON 格式的字符串。此参数为 JSON 结构中的 Value。
|
|
1490
|
+
* @param repeat 消息发送重复的次数。例如,`repeat` 取值为 20,`isKeyFrame` 取值为 YES,则会在调用该方法后连续 20 个关键帧中添加 SEI 消息。
|
|
1491
|
+
* @param isKeyFrame 是否仅在关键帧中包含 SEI 消息。<br>
|
|
1492
|
+
* - YES:仅在关键帧中包含;
|
|
1493
|
+
* - NO:所有帧中均包含。
|
|
1494
|
+
* @param allowsCovered 是否允许覆盖。<br>
|
|
1495
|
+
* - YES:允许;
|
|
1496
|
+
* - NO:不允许。
|
|
1497
|
+
* @return <br>
|
|
1498
|
+
* - 0:成功;
|
|
1499
|
+
* - <0:失败。
|
|
1500
|
+
*/
|
|
871
1501
|
/** {en}
|
|
872
1502
|
* @detail api
|
|
873
1503
|
* @brief Sends an SEI message through the video frame. The SEI messages are strings in JSON format.
|
|
@@ -888,7 +1518,17 @@ export declare class VeLivePusher {
|
|
|
888
1518
|
* - <0: Failure.
|
|
889
1519
|
*/
|
|
890
1520
|
sendSeiMessage(key: NSString, value: id, repeat: int, isKeyFrame: BOOL, allowsCovered: BOOL): int;
|
|
891
|
-
|
|
1521
|
+
/** {zh}
|
|
1522
|
+
* @detail api
|
|
1523
|
+
* @brief 推送外部视频帧数据。
|
|
1524
|
+
* @notes
|
|
1525
|
+
* 该接口需要在 [startVideoCapture:](#VeLivePusher-startvideocapture) 方法中设置 [VeLiveVideoCaptureType](155321#VeLiveVideoCaptureType) 为 VeLiveVideoCaptureExternal。
|
|
1526
|
+
* @order 37
|
|
1527
|
+
* @param frame 视频帧的数据信息,详情请参见 [VeLiveVideoFrame](155321#VeLiveVideoFrame)。
|
|
1528
|
+
* @return <br>
|
|
1529
|
+
* - 0:成功;
|
|
1530
|
+
* - <0:失败。
|
|
1531
|
+
*/
|
|
892
1532
|
/** {en}
|
|
893
1533
|
* @detail api
|
|
894
1534
|
* @brief Pushes an external video frame.
|
|
@@ -901,7 +1541,17 @@ export declare class VeLivePusher {
|
|
|
901
1541
|
* - <0: Failure.
|
|
902
1542
|
*/
|
|
903
1543
|
pushExternalVideoFrame(frame: VeLiveVideoFrame): int;
|
|
904
|
-
|
|
1544
|
+
/** {zh}
|
|
1545
|
+
* @detail api
|
|
1546
|
+
* @brief 推送外部视频编码数据。
|
|
1547
|
+
* @notes
|
|
1548
|
+
* 该接口需要在 [startVideoCapture:](#VeLivePusher-startvideocapture) 方法中设置 [VeLiveVideoCaptureType](155321#VeLiveVideoCaptureType) 为 VeLiveVideoCaptureFrontCamera 或 VeLiveVideoCaptureExternal。
|
|
1549
|
+
* @order 38
|
|
1550
|
+
* @param encodeFrame 视频编码帧的数据信息,详情请参见 [VeLiveVideoEncodeFrame](155321#VeLiveVideoEncodeFrame)。
|
|
1551
|
+
* @return <br>
|
|
1552
|
+
* - 0:成功;
|
|
1553
|
+
* - <0:失败。
|
|
1554
|
+
*/
|
|
905
1555
|
/** {en}
|
|
906
1556
|
* @detail api
|
|
907
1557
|
* @brief Pushes an external encoded video frame.
|
|
@@ -914,7 +1564,17 @@ export declare class VeLivePusher {
|
|
|
914
1564
|
* - <0: Failure.
|
|
915
1565
|
*/
|
|
916
1566
|
pushExternalVideoEncodeFrame(encodeFrame: VeLiveVideoEncodeFrame): int;
|
|
917
|
-
|
|
1567
|
+
/** {zh}
|
|
1568
|
+
* @detail api
|
|
1569
|
+
* @brief 推送外部音频帧数据。
|
|
1570
|
+
* @notes
|
|
1571
|
+
* 该接口需要在 [startAudioCapture:](#VeLivePusher-startaudiocapture) 方法中设置 [VeLiveAudioCaptureType](155321#VeLiveAudioCaptureType) 为 VeLiveAudioCaptureExternal。
|
|
1572
|
+
* @order 39
|
|
1573
|
+
* @param frame 外部音频数据。详情请参见 [VeLiveAudioFrame](155321#VeLiveAudioFrame)。
|
|
1574
|
+
* @return <br>
|
|
1575
|
+
* - 0:成功;
|
|
1576
|
+
* - <0:失败。
|
|
1577
|
+
*/
|
|
918
1578
|
/** {en}
|
|
919
1579
|
* @detail api
|
|
920
1580
|
* @brief Pushes an external audio frame.
|
|
@@ -927,7 +1587,16 @@ export declare class VeLivePusher {
|
|
|
927
1587
|
* - <0: Failure.
|
|
928
1588
|
*/
|
|
929
1589
|
pushExternalAudioFrame(frame: VeLiveAudioFrame): int;
|
|
930
|
-
|
|
1590
|
+
/** {zh}
|
|
1591
|
+
* @detail api
|
|
1592
|
+
* @brief 高级配置。您可通过提交工单联系[技术支持](https://console.volcengine.com/workorder/create?step=3&SubProductID=P00000076),了解配置方法。
|
|
1593
|
+
* @order 42
|
|
1594
|
+
* @param key 推流高级配置为 JSON 格式的字符串,此参数为 JSON 结构中的 Key。
|
|
1595
|
+
* @param value 推流高级配置为 JSON 格式的字符串,此参数为 JSON 结构中的 Value。建议传入 NSDictionary 或者 NSString 对象。
|
|
1596
|
+
* @return <br>
|
|
1597
|
+
* - 0:成功;
|
|
1598
|
+
* - -1:失败,参数错误。
|
|
1599
|
+
*/
|
|
931
1600
|
/** {en}
|
|
932
1601
|
* @detail api
|
|
933
1602
|
* @brief Set advanced configurations. You can [create a ticket](https://console.byteplus.com/workorder/create?step=2&SubProductID=P00000980) to contact BytePlus technical support for more information about how to use this method.
|
|
@@ -939,7 +1608,13 @@ export declare class VeLivePusher {
|
|
|
939
1608
|
* - -1: Failure.
|
|
940
1609
|
*/
|
|
941
1610
|
setProperty(key: NSString, value: id): int;
|
|
942
|
-
|
|
1611
|
+
/** {zh}
|
|
1612
|
+
* @detail api
|
|
1613
|
+
* @brief 强制请求 IDR 帧,发起请求以编码一个新的 IDR 帧。
|
|
1614
|
+
* @notes
|
|
1615
|
+
* 该接口需要在调用 [startPush:](#VeLivePusher-startpush) 或 [startPushWithUrls:](#VeLivePusher-startpushwithurls) 方法之后调用。
|
|
1616
|
+
* @order 49
|
|
1617
|
+
*/
|
|
943
1618
|
/** {en}
|
|
944
1619
|
* @detail api
|
|
945
1620
|
* @brief Request to encode a new IDR frame.
|
|
@@ -950,7 +1625,15 @@ export declare class VeLivePusher {
|
|
|
950
1625
|
requestIDRFrame(): void;
|
|
951
1626
|
}
|
|
952
1627
|
export declare class VeLiveVideoEffectManager {
|
|
953
|
-
|
|
1628
|
+
/** {zh}
|
|
1629
|
+
* @detail api
|
|
1630
|
+
* @brief 视频特效许可证配置,用于初始化视频特效管理对象。
|
|
1631
|
+
* @order 2
|
|
1632
|
+
* @param config 特效初始化配置,详情请参见 [VeLiveVideoEffectLicenseConfiguration](155321#VeLiveVideoEffectLicenseConfiguration)。
|
|
1633
|
+
* @return <br>
|
|
1634
|
+
* - 0:调用成功;
|
|
1635
|
+
* - -1:调用失败。
|
|
1636
|
+
*/
|
|
954
1637
|
/** {en}
|
|
955
1638
|
* @detail api
|
|
956
1639
|
* @brief Initializes the special effects manager.
|
|
@@ -961,7 +1644,15 @@ export declare class VeLiveVideoEffectManager {
|
|
|
961
1644
|
* - -1: Failure.
|
|
962
1645
|
*/
|
|
963
1646
|
setupWithConfig(config: VeLiveVideoEffectLicenseConfiguration): int;
|
|
964
|
-
|
|
1647
|
+
/** {zh}
|
|
1648
|
+
* @detail api
|
|
1649
|
+
* @brief 在许可证过期后,可调用该方法更新 License,本方法仅对在线 License 有效。
|
|
1650
|
+
* @notes
|
|
1651
|
+
* - 需要通过调用 [setupWithConfig:](155318#VeLiveVideoEffectManager-setupwithconfig) 设置视频特效许可证后调用;
|
|
1652
|
+
* - 本方法为异步操作。
|
|
1653
|
+
* @order 3
|
|
1654
|
+
* @param completion 结果回调信息。
|
|
1655
|
+
*/
|
|
965
1656
|
/** {en}
|
|
966
1657
|
* @detail api
|
|
967
1658
|
* @brief Updates the special effects license after the existing license expires. This method is effective only if you authenticate the license online.
|
|
@@ -972,7 +1663,17 @@ export declare class VeLiveVideoEffectManager {
|
|
|
972
1663
|
* @order 76
|
|
973
1664
|
*/
|
|
974
1665
|
updateLicense(completion: (result: number, message: string) => void): void;
|
|
975
|
-
|
|
1666
|
+
/** {zh}
|
|
1667
|
+
* @detail api
|
|
1668
|
+
* @brief 设置特效算法模型包的路径。
|
|
1669
|
+
* @notes <br>
|
|
1670
|
+
* 需要通过调用 setupWithConfig:{@link #VeLiveVideoEffectManager#setupWithConfig} 设置视频特效许可证后调用。
|
|
1671
|
+
* @order 4
|
|
1672
|
+
* @param path 特效算法模型包的路径。
|
|
1673
|
+
* @return <br>
|
|
1674
|
+
* - 0:调用成功;
|
|
1675
|
+
* - -1:调用失败。
|
|
1676
|
+
*/
|
|
976
1677
|
/** {en}
|
|
977
1678
|
* @detail api
|
|
978
1679
|
* @brief Sets the path to the algorithm models of the special effects.
|
|
@@ -985,7 +1686,22 @@ export declare class VeLiveVideoEffectManager {
|
|
|
985
1686
|
* - -1: Failure.
|
|
986
1687
|
*/
|
|
987
1688
|
setAlgoModelPath(path: NSString): int;
|
|
988
|
-
|
|
1689
|
+
/** {zh}
|
|
1690
|
+
* @detail api
|
|
1691
|
+
* @brief 创建/销毁特效引擎。
|
|
1692
|
+
* @notes
|
|
1693
|
+
* - 该方法需要在调用 [setupWithConfig:](#VeLiveVideoEffectManager-setupwithconfig) 和 [setAlgoModelPath:](#VeLiveVideoEffectManager-setalgomodelpath) 后调用;
|
|
1694
|
+
* - 该方法不直接开启/关闭视频特效,您需要在调用该方法后,调用 [setComposeNodes:](#VeLiveVideoEffectManager-setcomposenodes) 开启视频特效;
|
|
1695
|
+
* - 通用场景下,特效引擎会随 EffectManager 销毁而销毁。如果您对性能有较高要求,也可以在不使用特效相关功能时,调用该方法销毁特效引擎;
|
|
1696
|
+
* - 如果重复创建/销毁特效引擎,会产生时间消耗。
|
|
1697
|
+
* @order 5
|
|
1698
|
+
* @param enable 是否创建特效引擎。默认为 NO。 <br>
|
|
1699
|
+
* - YES:创建;
|
|
1700
|
+
* - NO:销毁。
|
|
1701
|
+
* @return <br>
|
|
1702
|
+
* - 0:调用成功;
|
|
1703
|
+
* - -1:调用失败。
|
|
1704
|
+
*/
|
|
989
1705
|
/** {en}
|
|
990
1706
|
* @detail api
|
|
991
1707
|
* @brief Creates or destroys the special effects engine.
|
|
@@ -1003,7 +1719,19 @@ export declare class VeLiveVideoEffectManager {
|
|
|
1003
1719
|
* - -1: Failure.
|
|
1004
1720
|
*/
|
|
1005
1721
|
setEnable(enable: BOOL): int;
|
|
1006
|
-
|
|
1722
|
+
/** {zh}
|
|
1723
|
+
* @detail api
|
|
1724
|
+
* @brief 设置视频特效组合。支持设置 ComposeMakeup.bundle 中的功能,包括美颜、美形、美体、美妆等。
|
|
1725
|
+
* @notes
|
|
1726
|
+
* - 需要在调用 [setEnable:](#VeLiveVideoEffectManager-setenable) 创建特效引擎后,调用本方法;
|
|
1727
|
+
* - 重复调用本方法,仅最后一次调用生效;
|
|
1728
|
+
* - 如果需要在当前的视频特效组合中叠加特效,可调用 [appendComposeNodes:](#VeLiveVideoEffectManager-appendcomposenodes) 方法。
|
|
1729
|
+
* @order 6
|
|
1730
|
+
* @param nodes 视频特效素材包路径数组。
|
|
1731
|
+
* @return <br>
|
|
1732
|
+
* - 0:调用成功;
|
|
1733
|
+
* - -1:调用失败。
|
|
1734
|
+
*/
|
|
1007
1735
|
/** {en}
|
|
1008
1736
|
* @detail api
|
|
1009
1737
|
* @brief Sets the special effects you want to apply to the video. You can choose effects from ComposeMakeup.bundle.
|
|
@@ -1018,7 +1746,16 @@ export declare class VeLiveVideoEffectManager {
|
|
|
1018
1746
|
* - -1: Failure.
|
|
1019
1747
|
*/
|
|
1020
1748
|
setComposeNodes(nodes: NSArray<NSString>): int;
|
|
1021
|
-
|
|
1749
|
+
/** {zh}
|
|
1750
|
+
* @detail api
|
|
1751
|
+
* @brief 调用本方法,会在 [setComposeNodes:](#VeLiveVideoEffectManager-setcomposenodes) 设置的视频特效组合的基础上叠加特效。
|
|
1752
|
+
* @notes 需要在调用 [setEnable:](#VeLiveVideoEffectManager-setenable) 创建特效引擎后,调用本方法。
|
|
1753
|
+
* @order 7
|
|
1754
|
+
* @param nodes 视频特效素材包路径数组。
|
|
1755
|
+
* @return <br>
|
|
1756
|
+
* - 0:调用成功;
|
|
1757
|
+
* - -1:调用失败。
|
|
1758
|
+
*/
|
|
1022
1759
|
/** {en}
|
|
1023
1760
|
* @detail api
|
|
1024
1761
|
* @brief Adds one or more effects to the existing effects settings that you have configured with [setComposeNodes:](#VeLiveVideoEffectManager-setcomposenodes).
|
|
@@ -1030,7 +1767,16 @@ export declare class VeLiveVideoEffectManager {
|
|
|
1030
1767
|
* - -1: Failure.
|
|
1031
1768
|
*/
|
|
1032
1769
|
appendComposeNodes(nodes: NSArray<NSString>): int;
|
|
1033
|
-
|
|
1770
|
+
/** {zh}
|
|
1771
|
+
* @detail api
|
|
1772
|
+
* @brief 调用本方法,可移除调用 [setComposeNodes:](#VeLiveVideoEffectManager-setcomposenodes) 和 [ppendComposeNodes:](#VeLiveVideoEffectManager-appendcomposenodes) 设置的视频特效资源。
|
|
1773
|
+
* @notes 需要在调用 [setEnable:](#VeLiveVideoEffectManager-setenable) 创建特效引擎后,调用本方法。
|
|
1774
|
+
* @order 8
|
|
1775
|
+
* @param nodes 视频特效素材包路径数组。
|
|
1776
|
+
* @return <br>
|
|
1777
|
+
* - 0:调用成功;
|
|
1778
|
+
* - -1:调用失败。
|
|
1779
|
+
*/
|
|
1034
1780
|
/** {en}
|
|
1035
1781
|
* @detail api
|
|
1036
1782
|
* @brief Removes one or more special effects resources set by the [setComposeNodes:](#VeLiveVideoEffectManager-setcomposenodes) or [ppendComposeNodes:](#VeLiveVideoEffectManager-appendcomposenodes) methods.
|
|
@@ -1042,7 +1788,20 @@ export declare class VeLiveVideoEffectManager {
|
|
|
1042
1788
|
* - -1: Failure.
|
|
1043
1789
|
*/
|
|
1044
1790
|
removeComposeNodes(nodes: NSArray<NSString>): int;
|
|
1045
|
-
|
|
1791
|
+
/** {zh}
|
|
1792
|
+
* @detail api
|
|
1793
|
+
* @brief 设置视频特效强度。
|
|
1794
|
+
* @notes
|
|
1795
|
+
* - 需要在调用 [setComposeNodes:](#VeLiveVideoEffectManager-setcomposenodes) 设置视频特效组合或调用 [appendComposeNodes:](#VeLiveVideoEffectManager-appendcomposenodes) 叠加视频特效素材包后,调用本方法;
|
|
1796
|
+
* - 该方法仅适用于同时含有上述三个参数的特效资源,对于没有强度参数的特效(如贴纸),该方法无效。
|
|
1797
|
+
* @order 9
|
|
1798
|
+
* @param node 视频特效素材包路径。
|
|
1799
|
+
* @param key 需要设置的素材 key 名称
|
|
1800
|
+
* @param intensity 需要设置的强度值。取值范围为 [0.0,1.0]。
|
|
1801
|
+
* @return <br>
|
|
1802
|
+
* - 0:调用成功;
|
|
1803
|
+
* - -1:调用失败。
|
|
1804
|
+
*/
|
|
1046
1805
|
/** {en}
|
|
1047
1806
|
* @detail api
|
|
1048
1807
|
* @brief Sets the intensity of a special effect.
|
|
@@ -1058,7 +1817,17 @@ export declare class VeLiveVideoEffectManager {
|
|
|
1058
1817
|
* - -1: Failure.
|
|
1059
1818
|
*/
|
|
1060
1819
|
updateComposerNodeIntensity(node: NSString, key: NSString, intensity: float): int;
|
|
1061
|
-
|
|
1820
|
+
/** {zh}
|
|
1821
|
+
* @detail api
|
|
1822
|
+
* @brief 设置颜色滤镜。
|
|
1823
|
+
* @notes
|
|
1824
|
+
* 请在调用 [setEnable:](#VeLiveVideoEffectManager-setenable) 开启视频特效后,调用该方法。
|
|
1825
|
+
* @order 11
|
|
1826
|
+
* @param path 滤镜资源包绝对路径。
|
|
1827
|
+
* @return <br>
|
|
1828
|
+
* - 0:调用成功;
|
|
1829
|
+
* - -1:调用失败。
|
|
1830
|
+
*/
|
|
1062
1831
|
/** {en}
|
|
1063
1832
|
* @detail api
|
|
1064
1833
|
* @brief Sets the color filter.
|
|
@@ -1071,7 +1840,17 @@ export declare class VeLiveVideoEffectManager {
|
|
|
1071
1840
|
* - -1: Failure.
|
|
1072
1841
|
*/
|
|
1073
1842
|
setFilter(path: NSString): int;
|
|
1074
|
-
|
|
1843
|
+
/** {zh}
|
|
1844
|
+
* @detail api
|
|
1845
|
+
* @brief 设置已启用的颜色滤镜强度。
|
|
1846
|
+
* @notes
|
|
1847
|
+
* 请在调用 [setFilter:](#VeLiveVideoEffectManager-setfilter) 设置颜色滤镜后调用。
|
|
1848
|
+
* @order 12
|
|
1849
|
+
* @param intensity 滤镜强度,取值范围为 [0.0,1.0]。
|
|
1850
|
+
* @return <br>
|
|
1851
|
+
* - 0:调用成功;
|
|
1852
|
+
* - -1:调用失败。
|
|
1853
|
+
*/
|
|
1075
1854
|
/** {en}
|
|
1076
1855
|
* @detail api
|
|
1077
1856
|
* @brief Sets the intensity of the color filter.
|
|
@@ -1084,7 +1863,17 @@ export declare class VeLiveVideoEffectManager {
|
|
|
1084
1863
|
* - -1: Failure.
|
|
1085
1864
|
*/
|
|
1086
1865
|
updateFilterIntensity(intensity: float): int;
|
|
1087
|
-
|
|
1866
|
+
/** {zh}
|
|
1867
|
+
* @detail api
|
|
1868
|
+
* @brief 设置贴纸特效。
|
|
1869
|
+
* @notes
|
|
1870
|
+
* 请在调用 [setEnable:](#VeLiveVideoEffectManager-setenable) 开启视频特效后,调用该方法。
|
|
1871
|
+
* @order 10
|
|
1872
|
+
* @param path 贴纸素材包的绝对路径。
|
|
1873
|
+
* @return <br>
|
|
1874
|
+
* - 0:调用成功;
|
|
1875
|
+
* - -1:调用失败。
|
|
1876
|
+
*/
|
|
1088
1877
|
/** {en}
|
|
1089
1878
|
* @detail api
|
|
1090
1879
|
* @brief Sets the sticker.
|
|
@@ -1097,7 +1886,15 @@ export declare class VeLiveVideoEffectManager {
|
|
|
1097
1886
|
* - -1: Failure.
|
|
1098
1887
|
*/
|
|
1099
1888
|
setSticker(path: NSString): int;
|
|
1100
|
-
|
|
1889
|
+
/** {zh}
|
|
1890
|
+
* @detail api
|
|
1891
|
+
* @brief 智能美化特效(简称 CV)高级接口。
|
|
1892
|
+
* @notes
|
|
1893
|
+
* 请在调用 [setEnable:](#VeLiveVideoEffectManager-setenable) 开启视频特效后,调用该方法,不要在主线程中频繁执行同步操作。
|
|
1894
|
+
* @param callback 回调 CV 的 handle。
|
|
1895
|
+
* @param isGLThread 是否在 GL 线程回调 callback。
|
|
1896
|
+
* @param isAsync 是否同步执行 callback。
|
|
1897
|
+
*/
|
|
1101
1898
|
/** {en}
|
|
1102
1899
|
* @detail api
|
|
1103
1900
|
* @brief Advanced settings for special effects.
|