@volcengine/react-native-live-push 1.0.2 → 1.1.1-rc.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -0
- package/android/build.gradle +1 -1
- package/android/src/main/java/com/volcengine/velive/rn/push/NativeVariableManager.java +1 -1
- package/android/src/main/java/com/volcengine/velive/rn/push/VeLivePushModule.java +5 -3
- package/android/src/main/java/com/volcengine/velive/rn/push/VeLivePushView.java +86 -11
- package/android/src/main/java/com/volcengine/velive/rn/push/VeLivePushViewManager.java +29 -40
- package/ios/VeLivePushView.m +1 -1
- package/ios/VeLivePushViewManager.m +5 -1
- package/lib/commonjs/index.js +21800 -17843
- package/lib/module/index.js +21800 -17836
- package/lib/typescript/android/index.d.ts +3 -0
- package/lib/typescript/codegen/android/api.d.ts +353 -125
- package/lib/typescript/codegen/android/callback.d.ts +36 -5
- package/lib/typescript/codegen/android/errorcode.d.ts +12 -0
- package/lib/typescript/codegen/android/keytype.d.ts +305 -73
- package/lib/typescript/codegen/android/types.d.ts +7 -6
- package/lib/typescript/codegen/ios/api.d.ts +81 -118
- package/lib/typescript/codegen/ios/callback.d.ts +22 -58
- package/lib/typescript/codegen/ios/external.d.ts +1 -0
- package/lib/typescript/codegen/ios/index.d.ts +1 -0
- package/lib/typescript/codegen/ios/keytype.d.ts +40 -98
- package/lib/typescript/codegen/ios/types.d.ts +16 -5
- package/lib/typescript/codegen/pack/api.d.ts +1261 -1195
- package/lib/typescript/codegen/pack/callback.d.ts +166 -270
- package/lib/typescript/codegen/pack/errorcode.d.ts +24 -122
- package/lib/typescript/codegen/pack/index.d.ts +1 -1
- package/lib/typescript/codegen/pack/keytype.d.ts +1095 -1244
- package/lib/typescript/codegen/pack/types.d.ts +67 -0
- package/lib/typescript/component.d.ts +10 -3
- package/lib/typescript/core/api.d.ts +2 -2
- package/lib/typescript/core/callback.d.ts +2 -2
- package/lib/typescript/core/errorcode.d.ts +2 -2
- package/lib/typescript/core/keytype.d.ts +2 -7
- package/lib/typescript/platforms/ios/extends.d.ts +17 -0
- package/package.json +7 -4
- package/react-native-velive-push.podspec +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { NSString, BOOL, int, float, CGPoint, NSDictionary, id,
|
|
2
|
-
import { VeLiveFileRecorderConfiguration, VeLiveAudioMixType, VeLiveVideoFrame, VeLiveAudioFrame, VeLiveStreamMixDescription, VeLivePusherConfiguration, VeLivePusherRenderMode, VeLiveVideoMirrorType, VeLiveVideoCaptureType, VeLiveAudioCaptureType, VeLiveVideoEncoderConfiguration, VeLiveAudioEncoderConfiguration, UIInterfaceOrientation, VeLiveVideoEncodeFrame,
|
|
1
|
+
import { NSString, BOOL, int, float, CGPoint, NSDictionary, id, long, NSArray, UIImage } from './types';
|
|
2
|
+
import { VeLiveFileRecorderConfiguration, VeLiveAudioMixType, VeLiveVideoFrame, VeLiveAudioFrame, VeLiveStreamMixDescription, VeLivePusherLogLevel, VeLivePusherConfiguration, VeLivePusherRenderMode, VeLiveVideoMirrorType, VeLiveVideoCaptureType, VeLiveAudioCaptureType, VeLiveVideoEncoderConfiguration, VeLiveAudioEncoderConfiguration, UIInterfaceOrientation, VeLiveVideoEncodeFrame, VeLiveVideoEffectLicenseConfiguration } from './keytype';
|
|
3
3
|
import { VeLiveMediaPlayerListener, VeLiveMediaPlayerFrameListener, VeLivePusherObserver, VeLivePusherStatisticsObserver, VeLiveVideoFrameListener, VeLiveAudioFrameListener, VeLiveScreenCaptureStatusObserver, VeLiveFileRecordingListener, VeLiveVideoFrameFilter, VeLiveAudioFrameFilter, VeLiveSnapshotListener } from './callback';
|
|
4
|
+
import { UIView } from './external';
|
|
4
5
|
export declare class VeLiveFileRecorderManager {
|
|
5
|
-
init(): this;
|
|
6
6
|
/** {zh}
|
|
7
7
|
* @detail api
|
|
8
8
|
* @brief 开始直播录制。
|
|
@@ -25,16 +25,16 @@ export declare class VeLiveFileRecorderManager {
|
|
|
25
25
|
* - 录制出现错误,会触发 [onFileRecordingError:message:](155319#VeLiveFileRecordingListener-onfilerecordingerror-message) 回调消息。
|
|
26
26
|
*/
|
|
27
27
|
stopRecord(): void;
|
|
28
|
+
init(): this;
|
|
28
29
|
}
|
|
29
30
|
export declare class VeLiveCameraDevice {
|
|
30
|
-
init(): this;
|
|
31
31
|
/** {zh}
|
|
32
32
|
* @detail api
|
|
33
33
|
* @brief 是否支持闪光灯。
|
|
34
34
|
* @return <br>
|
|
35
35
|
* - YES:支持;
|
|
36
36
|
* - NO:不支持。
|
|
37
|
-
* @notes <br>需要在调用 {@link #VeLivePusher#startVideoCapture
|
|
37
|
+
* @notes <br>需要在调用 startVideoCapture:{@link #VeLivePusher#startVideoCapture} 启动相机采集后,调用本方法。
|
|
38
38
|
* @order 49
|
|
39
39
|
*/
|
|
40
40
|
isTorchSupported(): BOOL;
|
|
@@ -44,7 +44,7 @@ export declare class VeLiveCameraDevice {
|
|
|
44
44
|
* @return <br>
|
|
45
45
|
* - =0:开启/关闭成功;
|
|
46
46
|
* - ≠0:开启/关闭失败。
|
|
47
|
-
* @notes <br>需要在调用 {@link #VeLivePusher#startVideoCapture
|
|
47
|
+
* @notes <br>需要在调用 startVideoCapture:{@link #VeLivePusher#startVideoCapture} 启动相机采集后,调用本方法。
|
|
48
48
|
* @order 51
|
|
49
49
|
* @param enable 是否开启闪光灯。默认为 NO。 <br>
|
|
50
50
|
* - YES:开启;
|
|
@@ -57,7 +57,7 @@ export declare class VeLiveCameraDevice {
|
|
|
57
57
|
* @return <br>
|
|
58
58
|
* - =0:缩放成功;
|
|
59
59
|
* - ≠0:缩放失败。
|
|
60
|
-
* @notes <br>需要在调用 {@link #VeLivePusher#startVideoCapture
|
|
60
|
+
* @notes <br>需要在调用 startVideoCapture:{@link #VeLivePusher#startVideoCapture} 启动相机采集后,调用本方法。
|
|
61
61
|
* @order 52
|
|
62
62
|
* @param ratio 缩放倍数。默认为原尺寸,缩放倍数的取值范围为 [[getMinZoomRatio,getMaxZoomRatio](155318#VeLiveCameraDevice-getmaxzoomratio)]。
|
|
63
63
|
*/
|
|
@@ -68,7 +68,7 @@ export declare class VeLiveCameraDevice {
|
|
|
68
68
|
* @return <br>
|
|
69
69
|
* - ≤0:表示不支持缩放;
|
|
70
70
|
* - \\>0:支持缩放,数值表示当前缩放倍数。
|
|
71
|
-
* @notes <br>需要在调用 {@link #VeLivePusher#startVideoCapture
|
|
71
|
+
* @notes <br>需要在调用 startVideoCapture:{@link #VeLivePusher#startVideoCapture} 启动相机采集后,调用本方法。
|
|
72
72
|
* @order 53
|
|
73
73
|
*/
|
|
74
74
|
getCurrentZoomRatio(): float;
|
|
@@ -78,7 +78,7 @@ export declare class VeLiveCameraDevice {
|
|
|
78
78
|
* @return <br>
|
|
79
79
|
* - ≤0:表示不支持缩放;
|
|
80
80
|
* - \\>0:支持缩放,数值表示最大缩放倍数。
|
|
81
|
-
* @notes <br>需要在调用 {@link #VeLivePusher#startVideoCapture
|
|
81
|
+
* @notes <br>需要在调用 startVideoCapture:{@link #VeLivePusher#startVideoCapture} 启动相机采集后,调用本方法。
|
|
82
82
|
* @order 54
|
|
83
83
|
*/
|
|
84
84
|
getMaxZoomRatio(): float;
|
|
@@ -88,7 +88,7 @@ export declare class VeLiveCameraDevice {
|
|
|
88
88
|
* @return <br>
|
|
89
89
|
* - ≤0:表示不支持缩放;
|
|
90
90
|
* - \\>0:支持缩放,数值表示最小缩放倍数。
|
|
91
|
-
* @notes <br>需要在调用 {@link #VeLivePusher#startVideoCapture
|
|
91
|
+
* @notes <br>需要在调用 startVideoCapture:{@link #VeLivePusher#startVideoCapture} 启动相机采集后,调用本方法。
|
|
92
92
|
* @order 55
|
|
93
93
|
*/
|
|
94
94
|
getMinZoomRatio(): float;
|
|
@@ -98,7 +98,7 @@ export declare class VeLiveCameraDevice {
|
|
|
98
98
|
* @return <br>
|
|
99
99
|
* - YES:支持;
|
|
100
100
|
* - NO:不支持。
|
|
101
|
-
* @notes <br>需要在调用 {@link #VeLivePusher#startVideoCapture
|
|
101
|
+
* @notes <br>需要在调用 startVideoCapture:{@link #VeLivePusher#startVideoCapture} 启动相机采集后,调用本方法。
|
|
102
102
|
* @order 56
|
|
103
103
|
*/
|
|
104
104
|
isAutoFocusEnabled(): BOOL;
|
|
@@ -108,7 +108,7 @@ export declare class VeLiveCameraDevice {
|
|
|
108
108
|
* @return <br>
|
|
109
109
|
* - =0:开启/关闭成功;
|
|
110
110
|
* - ≠0:开启/关闭失败。
|
|
111
|
-
* @notes <br>需要在调用 {@link #VeLivePusher#startVideoCapture
|
|
111
|
+
* @notes <br>需要在调用 startVideoCapture:{@link #VeLivePusher#startVideoCapture} 启动相机采集后,调用本方法。
|
|
112
112
|
* @order 57
|
|
113
113
|
* @param enable 是否开启自动对焦,默认为 YES。
|
|
114
114
|
* - YES:开启;
|
|
@@ -121,7 +121,7 @@ export declare class VeLiveCameraDevice {
|
|
|
121
121
|
* @return <br>
|
|
122
122
|
* - =0:设置成功;
|
|
123
123
|
* - ≠0:设置失败。
|
|
124
|
-
* @notes <br>需要在调用 {@link #VeLivePusher#startVideoCapture
|
|
124
|
+
* @notes <br>需要在调用 startVideoCapture:{@link #VeLivePusher#startVideoCapture} 启动相机采集后,调用本方法。
|
|
125
125
|
* @order 58
|
|
126
126
|
* @param position 以左上角为原点,对焦点距当前视图的坐标值。
|
|
127
127
|
*/
|
|
@@ -132,7 +132,7 @@ export declare class VeLiveCameraDevice {
|
|
|
132
132
|
* @return <br>
|
|
133
133
|
* - YES: 支持。 <br>
|
|
134
134
|
* - NO: 不支持。
|
|
135
|
-
* @notes 必须已调用 {@link #VeLivePusher#startVideoCapture
|
|
135
|
+
* @notes 必须已调用 startVideoCapture:{@link #VeLivePusher#startVideoCapture} 使用 SDK 内部采集模块进行视频采集时,才能检查曝光点设置能力。
|
|
136
136
|
* @order 59
|
|
137
137
|
*/
|
|
138
138
|
isExposurePositionSupported(): BOOL;
|
|
@@ -144,9 +144,9 @@ export declare class VeLiveCameraDevice {
|
|
|
144
144
|
* - =0: 成功。
|
|
145
145
|
* - ≠0: 失败。
|
|
146
146
|
* @notes <br>
|
|
147
|
-
* - 必须已调用 {@link #VeLivePusher#startVideoCapture
|
|
147
|
+
* - 必须已调用 startVideoCapture:{@link #VeLivePusher#startVideoCapture} 使用 SDK 内部采集模块进行视频采集,并且使用 SDK 内部渲染时,才能设置曝光点。 <br>
|
|
148
148
|
* - 曝光点设置为画布中央(即`x`和`y`均取 0.5)时,恢复系统默认值。 <br>
|
|
149
|
-
* - 调用 {@link #VeLivePusher#stopVideoCapture
|
|
149
|
+
* - 调用 stopVideoCapture:{@link #VeLivePusher#stopVideoCapture} 关闭内部采集后,设置的曝光点失效。
|
|
150
150
|
* @order 60
|
|
151
151
|
*/
|
|
152
152
|
setExposurePosition(position: CGPoint): int;
|
|
@@ -157,8 +157,8 @@ export declare class VeLiveCameraDevice {
|
|
|
157
157
|
* - =0:设置成功;
|
|
158
158
|
* - ≠0:设置失败。
|
|
159
159
|
* @notes <br>
|
|
160
|
-
* - 必须已调用 {@link #VeLivePusher#startVideoCapture
|
|
161
|
-
* - 调用 {@link #VeLivePusher#stopVideoCapture
|
|
160
|
+
* - 必须已调用 startVideoCapture:{@link #VeLivePusher#startVideoCapture} 使用 SDK 内部采集模块进行视频采集时,才能设置曝光补偿。
|
|
161
|
+
* - 调用 stopVideoCapture:{@link #VeLivePusher#stopVideoCapture} 关闭内部采集后,设置的曝光补偿失效。
|
|
162
162
|
* @order 61
|
|
163
163
|
* @param value 曝光补偿值,取值范围 [[getMinExposureCompensation](155318#VeLiveCameraDevice-getminexposurecompensation), [getMaxExposureCompensation](155318#VeLiveCameraDevice-getmaxexposurecompensation)],0 为系统默认值表示没有曝光补偿。
|
|
164
164
|
*/
|
|
@@ -169,7 +169,7 @@ export declare class VeLiveCameraDevice {
|
|
|
169
169
|
* @return <br>
|
|
170
170
|
* - ≤0:表示不支持曝光补偿;
|
|
171
171
|
* - >0:支持曝光补偿,数值表示最小曝光补偿。
|
|
172
|
-
* @notes <br>需要在调用 {@link #VeLivePusher#startVideoCapture
|
|
172
|
+
* @notes <br>需要在调用 startVideoCapture:{@link #VeLivePusher#startVideoCapture} 启动相机采集后,调用本方法。
|
|
173
173
|
* @order 62
|
|
174
174
|
*/
|
|
175
175
|
getMinExposureCompensation(): float;
|
|
@@ -179,14 +179,14 @@ export declare class VeLiveCameraDevice {
|
|
|
179
179
|
* @return <br>
|
|
180
180
|
* - ≤0:表示不支持曝光补偿;
|
|
181
181
|
* - >0:支持曝光补偿,数值表示最大曝光补偿。
|
|
182
|
-
* @notes <br>需要在调用 {@link #VeLivePusher#startVideoCapture
|
|
182
|
+
* @notes <br>需要在调用 startVideoCapture:{@link #VeLivePusher#startVideoCapture} 启动相机采集后,调用本方法。
|
|
183
183
|
* @order 63
|
|
184
184
|
*/
|
|
185
185
|
getMaxExposureCompensation(): float;
|
|
186
186
|
/** {zh}
|
|
187
187
|
* @detail api
|
|
188
188
|
* @brief 设置相机参数。
|
|
189
|
-
* @notes <br>需要在调用 {@link #VeLivePusher#startVideoCapture
|
|
189
|
+
* @notes <br>需要在调用 startVideoCapture:{@link #VeLivePusher#startVideoCapture} 启动相机采集后,调用本方法。
|
|
190
190
|
* @order 64
|
|
191
191
|
* @param parameter 相机参数字典,包含要设置的参数名称(键)和对应的值
|
|
192
192
|
*/
|
|
@@ -196,14 +196,14 @@ export declare class VeLiveCameraDevice {
|
|
|
196
196
|
* @brief 获取相机参数。
|
|
197
197
|
* @return <br>
|
|
198
198
|
* 相机参数的值,具体类型需要根据参数名称确定。
|
|
199
|
-
* @notes <br>需要在调用 {@link #VeLivePusher#startVideoCapture
|
|
199
|
+
* @notes <br>需要在调用 startVideoCapture:{@link #VeLivePusher#startVideoCapture} 启动相机采集后,调用本方法。
|
|
200
200
|
* @order 65
|
|
201
201
|
* @param key 需要获取的相机参数的名称。
|
|
202
202
|
*/
|
|
203
203
|
getParameter(key: NSString): id;
|
|
204
|
+
init(): this;
|
|
204
205
|
}
|
|
205
206
|
export declare class VeLiveMediaPlayer {
|
|
206
|
-
init(): this;
|
|
207
207
|
/** {zh}
|
|
208
208
|
* @detail api
|
|
209
209
|
* @brief 设置文件路径。支持的文件格式包括 MP3、AAC、M4A、WAV。
|
|
@@ -278,8 +278,8 @@ export declare class VeLiveMediaPlayer {
|
|
|
278
278
|
* - 0:成功;
|
|
279
279
|
* - ≠0:失败。
|
|
280
280
|
* @notes <br>
|
|
281
|
-
* - 需要在调用 {@link #VeLiveMediaPlayer#prepare
|
|
282
|
-
* - 此方法为异步操作。当 SDK 收到开始播放 {@link #VeLiveMediaPlayerListener#onStart
|
|
281
|
+
* - 需要在调用 prepare:{@link #VeLiveMediaPlayer#prepare} 设置文件路径后,调用本方法;
|
|
282
|
+
* - 此方法为异步操作。当 SDK 收到开始播放 onStart{@link #VeLiveMediaPlayerListener#onStart} 的回调后,开始播放。
|
|
283
283
|
* @order 94
|
|
284
284
|
*/
|
|
285
285
|
start(): Promise<int>;
|
|
@@ -290,7 +290,7 @@ export declare class VeLiveMediaPlayer {
|
|
|
290
290
|
* - 0:成功;
|
|
291
291
|
* - ≠0:失败。
|
|
292
292
|
* @notes <br>
|
|
293
|
-
* 需要在调用 {@link #start
|
|
293
|
+
* 需要在调用 start{@link #start} 开始播放后,调用本方法。
|
|
294
294
|
* @order 97
|
|
295
295
|
*/
|
|
296
296
|
stop(): Promise<int>;
|
|
@@ -298,7 +298,7 @@ export declare class VeLiveMediaPlayer {
|
|
|
298
298
|
* @detail api
|
|
299
299
|
* @brief 暂停播放。
|
|
300
300
|
* @notes <br>
|
|
301
|
-
* 需要在调用 {@link #start
|
|
301
|
+
* 需要在调用 start{@link #start} 开始播放后,调用本方法。
|
|
302
302
|
* @order 98
|
|
303
303
|
*/
|
|
304
304
|
pause(): Promise<void>;
|
|
@@ -306,7 +306,7 @@ export declare class VeLiveMediaPlayer {
|
|
|
306
306
|
* @detail api
|
|
307
307
|
* @brief 恢复播放。
|
|
308
308
|
* @notes <br>
|
|
309
|
-
* 需要在调用 {@link #pause
|
|
309
|
+
* 需要在调用 pause{@link #pause} 暂停播放后,调用本方法。
|
|
310
310
|
* @order 99
|
|
311
311
|
*/
|
|
312
312
|
resume(): Promise<void>;
|
|
@@ -327,7 +327,7 @@ export declare class VeLiveMediaPlayer {
|
|
|
327
327
|
* - >0:成功,音频文件时长;
|
|
328
328
|
* - ≤0:失败。
|
|
329
329
|
* @notes <br>
|
|
330
|
-
* 需要在调用 {@link #start
|
|
330
|
+
* 需要在调用 start{@link #start} 开始播放后,调用本方法。
|
|
331
331
|
* @order 101
|
|
332
332
|
*/
|
|
333
333
|
getDuration(): long;
|
|
@@ -342,14 +342,14 @@ export declare class VeLiveMediaPlayer {
|
|
|
342
342
|
* @detail api
|
|
343
343
|
* @brief 设置音频采集音量。
|
|
344
344
|
* @notes <br>
|
|
345
|
-
* 需要在调用 {@link #start
|
|
345
|
+
* 需要在调用 start{@link #start} 开始播放背景音乐后,调用本方法。
|
|
346
346
|
* @order 103
|
|
347
347
|
* @param volume 音频采集音量,取值范围为 [0.0,4.0]。
|
|
348
348
|
*/
|
|
349
349
|
setVoiceVolume(volume: float): void;
|
|
350
|
+
init(): this;
|
|
350
351
|
}
|
|
351
352
|
export declare class VeLiveAudioDevice {
|
|
352
|
-
init(): this;
|
|
353
353
|
/** {zh}
|
|
354
354
|
* @detail api
|
|
355
355
|
* @brief 设置音量响度。
|
|
@@ -381,7 +381,7 @@ export declare class VeLiveAudioDevice {
|
|
|
381
381
|
* - YES:开启;
|
|
382
382
|
* - NO:关闭。
|
|
383
383
|
* @notes <br>
|
|
384
|
-
* 需要在调用 {@link #VeLivePusher#startAudioCapture
|
|
384
|
+
* 需要在调用 startAudioCapture:{@link #VeLivePusher#startAudioCapture} 启动音频采集后,调用本方法。
|
|
385
385
|
* @order 64
|
|
386
386
|
*/
|
|
387
387
|
enableEcho(enable: BOOL): void;
|
|
@@ -392,13 +392,13 @@ export declare class VeLiveAudioDevice {
|
|
|
392
392
|
* - YES:开启;
|
|
393
393
|
* - NO:关闭。
|
|
394
394
|
* @notes <br>
|
|
395
|
-
* 需要在调用 {@link #VeLivePusher#startAudioCapture
|
|
395
|
+
* 需要在调用 startAudioCapture:{@link #VeLivePusher#startAudioCapture} 启动音频采集后,调用本方法。
|
|
396
396
|
* @order 65
|
|
397
397
|
*/
|
|
398
398
|
isEnableEcho(): BOOL;
|
|
399
|
+
init(): this;
|
|
399
400
|
}
|
|
400
401
|
export declare class VeLiveMixerManager {
|
|
401
|
-
init(): this;
|
|
402
402
|
/** {zh}
|
|
403
403
|
* @detail api
|
|
404
404
|
* @brief 添加一路需要混流的视频流到混流器中。
|
|
@@ -414,23 +414,15 @@ export declare class VeLiveMixerManager {
|
|
|
414
414
|
* @param streamId 需要移除的非主路视频流 ID。
|
|
415
415
|
*/
|
|
416
416
|
removeVideoStream(streamId: int): void;
|
|
417
|
-
/** {zh}
|
|
418
|
-
* @detail api
|
|
419
|
-
* @brief 添加一路音频流到混流器中。
|
|
420
|
-
* @return <br>
|
|
421
|
-
* 音频流 ID。
|
|
422
|
-
* @order 67
|
|
423
|
-
*/
|
|
424
|
-
addAudioStream(): int;
|
|
425
417
|
/** {zh}
|
|
426
418
|
* @detail api
|
|
427
419
|
* @brief 添加一路音频流到混流器中,并指定混流类型。
|
|
428
|
-
* @param type 混流类型,详情请参见 {@link #VeLiveAudioMixType
|
|
420
|
+
* @param type 混流类型,详情请参见 VeLiveAudioMixType{@link #VeLiveAudioMixType}
|
|
429
421
|
* @return <br>
|
|
430
422
|
* 音频流 ID。
|
|
431
423
|
* @order 68
|
|
432
424
|
*/
|
|
433
|
-
|
|
425
|
+
addAudioStream(type: VeLiveAudioMixType): int;
|
|
434
426
|
/** {zh}
|
|
435
427
|
* @detail api
|
|
436
428
|
* @brief 从混流器中移除一路非主路的音频流。
|
|
@@ -440,7 +432,7 @@ export declare class VeLiveMixerManager {
|
|
|
440
432
|
removeAudioStream(streamId: int): void;
|
|
441
433
|
/** {zh}
|
|
442
434
|
* @detail api
|
|
443
|
-
* @brief 设置指定混流音频的音量。当你将 {@link #VeLiveAudioMixType
|
|
435
|
+
* @brief 设置指定混流音频的音量。当你将 VeLiveAudioMixType{@link #VeLiveAudioMixType} 设置为 `VeLiveAudioMixPlayAndPush` 时,该方法同时控制该路音频在拉流端和本地的播放音量。
|
|
444
436
|
* @order 70
|
|
445
437
|
* @param streamId 非主路音频流 ID。
|
|
446
438
|
* @param volume 音量大小,范围为 [0.0,4.0]。
|
|
@@ -486,24 +478,9 @@ export declare class VeLiveMixerManager {
|
|
|
486
478
|
* @param mixDescription 新的音视频混流布局,详情请参见 [VeLiveStreamMixDescription](155321#VeLiveStreamMixDescription)。
|
|
487
479
|
*/
|
|
488
480
|
updateStreamMixDescription(mixDescription: VeLiveStreamMixDescription): void;
|
|
481
|
+
init(): this;
|
|
489
482
|
}
|
|
490
483
|
export declare class VeLivePusher {
|
|
491
|
-
/** {zh}
|
|
492
|
-
* @detail api
|
|
493
|
-
* @hidden
|
|
494
|
-
* @brief 获取当前 SDK 版本号。
|
|
495
|
-
* @return <br>
|
|
496
|
-
* 当前 SDK 版本号。
|
|
497
|
-
* @order 47
|
|
498
|
-
*/
|
|
499
|
-
static getVersion(): NSString;
|
|
500
|
-
/** {zh}
|
|
501
|
-
* @hidden
|
|
502
|
-
* @detail api
|
|
503
|
-
* @brief 设置打印日志的级别。
|
|
504
|
-
* @param logConfig 日志级别,默认值为 `VeLivePusherLogLevelInfo`。详情请参见 [VeLivePusherLogLevel](155321#VeLivePusherLogLevel)。
|
|
505
|
-
*/
|
|
506
|
-
static setLogConfig(logConfig: VeLivePusherLogConfig): BOOL;
|
|
507
484
|
/** {zh}
|
|
508
485
|
* @detail api
|
|
509
486
|
* @brief 设置输出到控制台的日志等级。
|
|
@@ -522,6 +499,7 @@ export declare class VeLivePusher {
|
|
|
522
499
|
* @brief 关闭屏幕采集。
|
|
523
500
|
*/
|
|
524
501
|
stopScreenCapture(): void;
|
|
502
|
+
init(): this;
|
|
525
503
|
/** {zh}
|
|
526
504
|
* @detail api
|
|
527
505
|
* @brief 初始化推流器。
|
|
@@ -531,7 +509,7 @@ export declare class VeLivePusher {
|
|
|
531
509
|
initWithConfig(config: VeLivePusherConfiguration): this;
|
|
532
510
|
/** {zh}
|
|
533
511
|
* @detail api
|
|
534
|
-
* @brief 停止采集和推流,并销毁推流器。通常在调用 {@link #VeLivePusher#stopPush
|
|
512
|
+
* @brief 停止采集和推流,并销毁推流器。通常在调用 stopPush{@link #VeLivePusher#stopPush} 结束推流后调用此方法进行清理。
|
|
535
513
|
* @order 2
|
|
536
514
|
*/
|
|
537
515
|
destroy(): void;
|
|
@@ -608,7 +586,7 @@ export declare class VeLivePusher {
|
|
|
608
586
|
* - <0:失败。
|
|
609
587
|
* @notes <br>
|
|
610
588
|
* 如果没有添加过此监听回调或者监听回调已被移除,调用此方法将返回失败。
|
|
611
|
-
* @param listener 屏幕采集事件监听回调,详细信息请参见 {@link #VeLiveScreenCaptureStatusObserver
|
|
589
|
+
* @param listener 屏幕采集事件监听回调,详细信息请参见 VeLiveScreenCaptureStatusObserver{@link #VeLiveScreenCaptureStatusObserver}
|
|
612
590
|
* @param observer 录屏推流事件监听器。详情见 [VeLiveScreenCaptureStatusObserver](155319#VeLiveScreenCaptureStatusObserver)。
|
|
613
591
|
*/
|
|
614
592
|
setScreenCaptureObserver(observer: id<VeLiveScreenCaptureStatusObserver>): int;
|
|
@@ -658,7 +636,7 @@ export declare class VeLivePusher {
|
|
|
658
636
|
* @detail api
|
|
659
637
|
* @brief 停止推流。
|
|
660
638
|
* @notes <br>
|
|
661
|
-
* 停止推流后,可以通过调用 {@link #VeLivePusher#startPush
|
|
639
|
+
* 停止推流后,可以通过调用 startPush:{@link #VeLivePusher#startPush} 或 startPushWithUrls:{@link #VeLivePusher#startPushWithUrls} 方法重新开始推流。
|
|
662
640
|
* @order 15
|
|
663
641
|
*/
|
|
664
642
|
stopPush(): void;
|
|
@@ -676,7 +654,7 @@ export declare class VeLivePusher {
|
|
|
676
654
|
* @detail api
|
|
677
655
|
* @brief 开始视频采集。
|
|
678
656
|
* @notes <br>
|
|
679
|
-
* 调用该接口后,可以通过调用接口 {@link #VeLivePusher#stopVideoCapture
|
|
657
|
+
* 调用该接口后,可以通过调用接口 stopVideoCapture{@link #VeLivePusher#stopVideoCapture} 停止视频采集。
|
|
680
658
|
* @order 17
|
|
681
659
|
* @param type 视频采集类型,详细信息请参见 [VeLiveVideoCaptureType](155321#VeLiveVideoCaptureType)。
|
|
682
660
|
*/
|
|
@@ -684,14 +662,14 @@ export declare class VeLivePusher {
|
|
|
684
662
|
/** {zh}
|
|
685
663
|
* @detail api
|
|
686
664
|
* @brief 停止视频采集。
|
|
687
|
-
* @notes <br>调用该接口后,可以通过调用接口 {@link #VeLivePusher#startVideoCapture
|
|
665
|
+
* @notes <br>调用该接口后,可以通过调用接口 startVideoCapture:{@link #VeLivePusher#startVideoCapture} 开始视频采集。
|
|
688
666
|
* @order 18
|
|
689
667
|
*/
|
|
690
668
|
stopVideoCapture(): void;
|
|
691
669
|
/** {zh}
|
|
692
670
|
* @detail api
|
|
693
671
|
* @brief 切换视频采集类型。
|
|
694
|
-
* @notes <br>该接口必须在调用接口 {@link #VeLivePusher#startVideoCapture
|
|
672
|
+
* @notes <br>该接口必须在调用接口 startVideoCapture:{@link #VeLivePusher#startVideoCapture} 后调用才能生效。
|
|
695
673
|
* @order 19
|
|
696
674
|
* @param type 视频采集类型,详细信息请参见 [VeLiveVideoCaptureType](155321#VeLiveVideoCaptureType)。
|
|
697
675
|
*/
|
|
@@ -700,7 +678,7 @@ export declare class VeLivePusher {
|
|
|
700
678
|
* @detail api
|
|
701
679
|
* @brief 开始音频采集。
|
|
702
680
|
* @notes <br>
|
|
703
|
-
* 调用该接口后,可以通过调用接口 {@link #VeLivePusher#stopAudioCapture
|
|
681
|
+
* 调用该接口后,可以通过调用接口 stopAudioCapture{@link #VeLivePusher#stopAudioCapture} 停止音频采集。
|
|
704
682
|
* @order 20
|
|
705
683
|
* @param type 音频采集类型,详细信息请参见 [VeLiveAudioCaptureType](155321#VeLiveAudioCaptureType)。
|
|
706
684
|
*/
|
|
@@ -709,7 +687,7 @@ export declare class VeLivePusher {
|
|
|
709
687
|
* @detail api
|
|
710
688
|
* @brief 停止音频采集。
|
|
711
689
|
* @notes <br>
|
|
712
|
-
* 调用该接口后,可以通过调用接口 {@link #VeLivePusher#startAudioCapture
|
|
690
|
+
* 调用该接口后,可以通过调用接口 startAudioCapture:{@link #VeLivePusher#startAudioCapture} 开始音频采集。
|
|
713
691
|
* @order 21
|
|
714
692
|
*/
|
|
715
693
|
stopAudioCapture(): void;
|
|
@@ -717,7 +695,7 @@ export declare class VeLivePusher {
|
|
|
717
695
|
* @detail api
|
|
718
696
|
* @brief 切换音频采集类型。
|
|
719
697
|
* @notes <br>
|
|
720
|
-
* 该接口必须在调用接口 {@link #VeLivePusher#startAudioCapture
|
|
698
|
+
* 该接口必须在调用接口 startAudioCapture:{@link #VeLivePusher#startAudioCapture} 后调用才能生效。
|
|
721
699
|
* @order 22
|
|
722
700
|
* @param type 音频采集类型,详细信息请参见 [VeLiveAudioCaptureType](155321#VeLiveAudioCaptureType)。
|
|
723
701
|
*/
|
|
@@ -726,7 +704,7 @@ export declare class VeLivePusher {
|
|
|
726
704
|
* @detail api
|
|
727
705
|
* @brief 获取当前视频采集类型。
|
|
728
706
|
* @return <br>
|
|
729
|
-
* 视频采集类型,详细信息请参见 {@link #VeLiveVideoCaptureType
|
|
707
|
+
* 视频采集类型,详细信息请参见 VeLiveVideoCaptureType{@link #VeLiveVideoCaptureType}。
|
|
730
708
|
* @order 20
|
|
731
709
|
*/
|
|
732
710
|
getCurrentVideoCaptureType(): VeLiveVideoCaptureType;
|
|
@@ -734,14 +712,14 @@ export declare class VeLivePusher {
|
|
|
734
712
|
* @detail api
|
|
735
713
|
* @brief 获取当前音频采集类型。
|
|
736
714
|
* @return <br>
|
|
737
|
-
* 音频采集类型,详细信息请参见 {@link #VeLiveAudioCaptureType
|
|
715
|
+
* 音频采集类型,详细信息请参见 VeLiveAudioCaptureType{@link #VeLiveAudioCaptureType}。
|
|
738
716
|
* @order 21
|
|
739
717
|
*/
|
|
740
718
|
getCurrentAudioCaptureType(): VeLiveAudioCaptureType;
|
|
741
719
|
/** {zh}
|
|
742
720
|
* @detail api
|
|
743
721
|
* @brief 自定义静态图,适用于静态图推流采集类型。
|
|
744
|
-
* @notes <br>使用该接口时,需要将视频采集类型设置为 VeLiveVideoCaptureCustomImage,您可调用 {@link #VeLivePusher#startVideoCapture
|
|
722
|
+
* @notes <br>使用该接口时,需要将视频采集类型设置为 VeLiveVideoCaptureCustomImage,您可调用 startVideoCapture:{@link #VeLivePusher#startVideoCapture} 方法,将 [VeLiveVideoCaptureType](155321#VeLiveVideoCaptureType) 设置为 VeLiveVideoCaptureCustomImage。
|
|
745
723
|
* @order 25
|
|
746
724
|
* @param image 静态图片,用于在静态图推流采集类型下设置静态图。
|
|
747
725
|
*/
|
|
@@ -777,7 +755,7 @@ export declare class VeLivePusher {
|
|
|
777
755
|
* @detail api
|
|
778
756
|
* @brief 设置推流音频编码参数。
|
|
779
757
|
* @notes <br>
|
|
780
|
-
* 该接口需要在 {@link #VeLivePusher#startPush
|
|
758
|
+
* 该接口需要在 startPush:{@link #VeLivePusher#startPush} 或 startPushWithUrls:{@link #VeLivePusher#startPushWithUrls} 方法之前调用。
|
|
781
759
|
* @order 29
|
|
782
760
|
* @param config 推流音频编码参数,详情请参见 [VeLiveAudioEncoderConfiguration](155321#VeLiveAudioEncoderConfiguration)。
|
|
783
761
|
*/
|
|
@@ -805,8 +783,8 @@ export declare class VeLivePusher {
|
|
|
805
783
|
* - 设置摄像头缩放比例
|
|
806
784
|
* - 设置自动对焦
|
|
807
785
|
* @return <br>
|
|
808
|
-
* 相机设备管理对象 {@link #VeLiveCameraDevice
|
|
809
|
-
* @notes <br>该接口需要在 {@link #VeLivePusher#startVideoCapture
|
|
786
|
+
* 相机设备管理对象 VeLiveCameraDevice{@link #VeLiveCameraDevice}。
|
|
787
|
+
* @notes <br>该接口需要在 startVideoCapture:{@link #VeLivePusher#startVideoCapture} 方法中设置 [VeLiveVideoCaptureType](155321#VeLiveVideoCaptureType) 为 VeLiveVideoCaptureFrontCamera 或 VeLiveVideoCaptureBackCamera。
|
|
810
788
|
* @order 32
|
|
811
789
|
*/
|
|
812
790
|
getCameraDevice(): VeLiveCameraDevice;
|
|
@@ -814,9 +792,9 @@ export declare class VeLivePusher {
|
|
|
814
792
|
* @detail api
|
|
815
793
|
* @brief 获取音频模块管理对象。
|
|
816
794
|
* @return <br>
|
|
817
|
-
* 音频模块管理对象 {@link #VeLiveAudioDevice
|
|
795
|
+
* 音频模块管理对象 VeLiveAudioDevice{@link #VeLiveAudioDevice}。
|
|
818
796
|
* @notes <br>
|
|
819
|
-
* 该接口需要在 {@link #VeLivePusher#startAudioCapture
|
|
797
|
+
* 该接口需要在 startAudioCapture:{@link #VeLivePusher#startAudioCapture} 方法中设置 VeLiveAudioCaptureType{@link #VeLiveAudioCaptureType} 为 VeLiveAudioCaptureMicrophone。
|
|
820
798
|
* @order 33
|
|
821
799
|
*/
|
|
822
800
|
getAudioDevice(): VeLiveAudioDevice;
|
|
@@ -824,7 +802,7 @@ export declare class VeLivePusher {
|
|
|
824
802
|
* @detail api
|
|
825
803
|
* @brief 获取混流管理对象。
|
|
826
804
|
* @return <br>
|
|
827
|
-
* 混流管理对象 {@link #VeLiveMixerManager
|
|
805
|
+
* 混流管理对象 VeLiveMixerManager{@link #VeLiveMixerManager}。
|
|
828
806
|
* @order 31
|
|
829
807
|
*/
|
|
830
808
|
getMixerManager(): VeLiveMixerManager;
|
|
@@ -837,7 +815,7 @@ export declare class VeLivePusher {
|
|
|
837
815
|
* - 设置贴纸
|
|
838
816
|
* - 设置滤镜
|
|
839
817
|
* @return <br>
|
|
840
|
-
* 视频特效管理对象 {@link #VeLiveVideoEffectManager
|
|
818
|
+
* 视频特效管理对象 VeLiveVideoEffectManager{@link #VeLiveVideoEffectManager}。
|
|
841
819
|
* @notes <br>
|
|
842
820
|
* 该接口需要集成美颜特效 CV SDK 后才能使用。
|
|
843
821
|
* @order 32
|
|
@@ -847,21 +825,21 @@ export declare class VeLivePusher {
|
|
|
847
825
|
* @detail api
|
|
848
826
|
* @brief 创建播放器。
|
|
849
827
|
* @return <br>
|
|
850
|
-
* 播放器管理对象 {@link #VeLiveMediaPlayer
|
|
828
|
+
* 播放器管理对象 VeLiveMediaPlayer{@link #VeLiveMediaPlayer}。
|
|
851
829
|
* @order 33
|
|
852
830
|
*/
|
|
853
831
|
createPlayer(): VeLiveMediaPlayer;
|
|
854
832
|
/** {zh}
|
|
855
833
|
* @detail api
|
|
856
834
|
* @brief 自定义视频处理。
|
|
857
|
-
* @param filter 视频帧滤镜对象 {@link #VeLiveVideoFrameFilter
|
|
835
|
+
* @param filter 视频帧滤镜对象 VeLiveVideoFrameFilter{@link #VeLiveVideoFrameFilter}。
|
|
858
836
|
* @order 34
|
|
859
837
|
*/
|
|
860
838
|
setVideoFrameFilter(filter: id<VeLiveVideoFrameFilter>): void;
|
|
861
839
|
/** {zh}
|
|
862
840
|
* @detail api
|
|
863
841
|
* @brief 自定义音频处理。
|
|
864
|
-
* @param filter 音频帧滤镜对象 {@link #VeLiveAudioFrameFilter
|
|
842
|
+
* @param filter 音频帧滤镜对象 VeLiveAudioFrameFilter{@link #VeLiveAudioFrameFilter}。
|
|
865
843
|
* @order 35
|
|
866
844
|
*/
|
|
867
845
|
setAudioFrameFilter(filter: id<VeLiveAudioFrameFilter>): void;
|
|
@@ -898,7 +876,7 @@ export declare class VeLivePusher {
|
|
|
898
876
|
* - 0:成功;
|
|
899
877
|
* - <0:失败。
|
|
900
878
|
* @notes <br>
|
|
901
|
-
* 该接口需要在调用 {@link #VeLivePusher#startPush
|
|
879
|
+
* 该接口需要在调用 startPush:{@link #VeLivePusher#startPush} 或 startPushWithUrls:{@link #VeLivePusher#startPushWithUrls} 方法之后调用。
|
|
902
880
|
* @order 42
|
|
903
881
|
* @param key SEI 消息为 JSON 格式的字符串。此参数为 JSON 结构中的 Key。
|
|
904
882
|
* @param value SEI 消息为 JSON 格式的字符串。此参数为 JSON 结构中的 Value。
|
|
@@ -917,7 +895,7 @@ export declare class VeLivePusher {
|
|
|
917
895
|
* @return <br>
|
|
918
896
|
* - 0:成功;
|
|
919
897
|
* - <0:失败。
|
|
920
|
-
* @notes <br>该接口需要在 {@link #VeLivePusher#startVideoCapture
|
|
898
|
+
* @notes <br>该接口需要在 startVideoCapture:{@link #VeLivePusher#startVideoCapture} 方法中设置 [VeLiveVideoCaptureType](155321#VeLiveVideoCaptureType) 为 VeLiveVideoCaptureExternal。
|
|
921
899
|
* @order 43
|
|
922
900
|
* @param frame 视频帧的数据信息,详情请参见 [VeLiveVideoFrame](155321#VeLiveVideoFrame)。
|
|
923
901
|
*/
|
|
@@ -928,7 +906,7 @@ export declare class VeLivePusher {
|
|
|
928
906
|
* @return <br>
|
|
929
907
|
* - 0:成功;
|
|
930
908
|
* - <0:失败。
|
|
931
|
-
* @notes <br>该接口需要在 {@link #VeLivePusher#startVideoCapture
|
|
909
|
+
* @notes <br>该接口需要在 startVideoCapture:{@link #VeLivePusher#startVideoCapture} 方法中设置 [VeLiveVideoCaptureType](155321#VeLiveVideoCaptureType) 为 VeLiveVideoCaptureFrontCamera 或 VeLiveVideoCaptureExternal。
|
|
932
910
|
* @order 44
|
|
933
911
|
* @param encodeFrame 视频编码帧的数据信息,详情请参见 [VeLiveVideoEncodeFrame](155321#VeLiveVideoEncodeFrame)。
|
|
934
912
|
*/
|
|
@@ -940,7 +918,7 @@ export declare class VeLivePusher {
|
|
|
940
918
|
* - 0:成功;
|
|
941
919
|
* - <0:失败。
|
|
942
920
|
* @notes <br>
|
|
943
|
-
* 该接口需要在 {@link #VeLivePusher#startAudioCapture
|
|
921
|
+
* 该接口需要在 startAudioCapture:{@link #VeLivePusher#startAudioCapture} 方法中设置 VeLiveAudioCaptureType{@link #VeLiveAudioCaptureType} 为 VeLiveAudioCaptureExternal。
|
|
944
922
|
* @order 45
|
|
945
923
|
* @param frame 外部音频数据。详情请参见 [VeLiveAudioFrame](155321#VeLiveAudioFrame)。
|
|
946
924
|
*/
|
|
@@ -960,28 +938,12 @@ export declare class VeLivePusher {
|
|
|
960
938
|
* @detail api
|
|
961
939
|
* @brief 强制请求 IDR 帧,发起请求以编码一个新的 IDR 帧。
|
|
962
940
|
* @notes <br>
|
|
963
|
-
* 该接口需要在调用 {@link #VeLivePusher#startPush
|
|
941
|
+
* 该接口需要在调用 startPush:{@link #VeLivePusher#startPush} 或 startPushWithUrls:{@link #VeLivePusher#startPushWithUrls} 方法之后调用。
|
|
964
942
|
* @order 47
|
|
965
943
|
*/
|
|
966
944
|
requestIDRFrame(): void;
|
|
967
|
-
/** {zh}
|
|
968
|
-
* @detail api
|
|
969
|
-
* @brief 设置 opengl 的版本号,默认值为 `3`。
|
|
970
|
-
* @param version opengl 版本号,支持的取值包括 `2` 和 `3`,分别对应 OpenGL 2.0 和 3.0 版本。
|
|
971
|
-
* @order 45
|
|
972
|
-
*/
|
|
973
|
-
setEGLVersion(version: int): void;
|
|
974
|
-
/** {zh}
|
|
975
|
-
* @detail api
|
|
976
|
-
* @brief 获取 EAGL 的上下文,这是在多线程环境下用于共享的上下文。
|
|
977
|
-
* @return <br>
|
|
978
|
-
* EAGL 的上下文。
|
|
979
|
-
* @order 46
|
|
980
|
-
*/
|
|
981
|
-
getEGLContext(): EAGLContext;
|
|
982
945
|
}
|
|
983
946
|
export declare class VeLiveVideoEffectManager {
|
|
984
|
-
init(): this;
|
|
985
947
|
/** {zh}
|
|
986
948
|
* @detail api
|
|
987
949
|
* @brief 视频特效许可证配置,用于初始化视频特效管理对象。
|
|
@@ -996,7 +958,7 @@ export declare class VeLiveVideoEffectManager {
|
|
|
996
958
|
* @detail api
|
|
997
959
|
* @brief 更新在线 License。本方法仅对在线 License 有效。
|
|
998
960
|
* @notes <br>
|
|
999
|
-
* - 需要通过调用 {@link #VeLiveVideoEffectManager#setupWithConfig
|
|
961
|
+
* - 需要通过调用 setupWithConfig:{@link #VeLiveVideoEffectManager#setupWithConfig} 设置视频特效许可证后调用;
|
|
1000
962
|
* - 如果您使用在线 License 认证方式,在许可证过期后,可调用该方法更新 License;
|
|
1001
963
|
* - 本方法为异步操作。
|
|
1002
964
|
* @order 76
|
|
@@ -1010,7 +972,7 @@ export declare class VeLiveVideoEffectManager {
|
|
|
1010
972
|
* - 0:调用成功;
|
|
1011
973
|
* - -1:调用失败。
|
|
1012
974
|
* @notes <br>
|
|
1013
|
-
* 需要通过调用 {@link #VeLiveVideoEffectManager#setupWithConfig
|
|
975
|
+
* 需要通过调用 setupWithConfig:{@link #VeLiveVideoEffectManager#setupWithConfig} 设置视频特效许可证后调用。
|
|
1014
976
|
* @order 77
|
|
1015
977
|
* @param path 特效算法模型包的路径。
|
|
1016
978
|
*/
|
|
@@ -1022,8 +984,8 @@ export declare class VeLiveVideoEffectManager {
|
|
|
1022
984
|
* - 0:调用成功;
|
|
1023
985
|
* - -1:调用失败。
|
|
1024
986
|
* @notes <br>
|
|
1025
|
-
* - 该方法需要在调用 {@link #VeLiveVideoEffectManager#setupWithConfig
|
|
1026
|
-
* - 该方法不直接开启/关闭视频特效,您需要在调用该方法后,调用 {@link #VeLiveVideoEffectManager#setComposeNodes
|
|
987
|
+
* - 该方法需要在调用 setupWithConfig:{@link #VeLiveVideoEffectManager#setupWithConfig} 和 setAlgoModelPath:{@link #VeLiveVideoEffectManager#setAlgoModelPath} 后调用;
|
|
988
|
+
* - 该方法不直接开启/关闭视频特效,您需要在调用该方法后,调用 setComposeNodes:{@link #VeLiveVideoEffectManager#setComposeNodes} 开启视频特效;
|
|
1027
989
|
* - 通用场景下,特效引擎会随 EffectManager 销毁而销毁。如果您对性能有较高要求,也可以在不使用特效相关功能时,调用该方法销毁特效引擎;
|
|
1028
990
|
* - 如果重复创建/销毁特效引擎,会产生时间消耗。
|
|
1029
991
|
* @order 78
|
|
@@ -1039,9 +1001,9 @@ export declare class VeLiveVideoEffectManager {
|
|
|
1039
1001
|
* - 0:调用成功;
|
|
1040
1002
|
* - -1:调用失败。
|
|
1041
1003
|
* @notes <br>
|
|
1042
|
-
* - 需要在调用 {@link #VeLiveVideoEffectManager#setEnable
|
|
1004
|
+
* - 需要在调用 setEnable:{@link #VeLiveVideoEffectManager#setEnable} 创建特效引擎后,调用本方法;
|
|
1043
1005
|
* - 重复调用本方法,仅最后一次调用生效;
|
|
1044
|
-
* - 如果需要在当前的视频特效组合中叠加特效,可调用 {@link #VeLiveVideoEffectManager#appendComposeNodes
|
|
1006
|
+
* - 如果需要在当前的视频特效组合中叠加特效,可调用 appendComposeNodes:{@link #VeLiveVideoEffectManager#appendComposeNodes} 方法。
|
|
1045
1007
|
* @order 79
|
|
1046
1008
|
* @param nodes 视频特效素材包路径数组。
|
|
1047
1009
|
*/
|
|
@@ -1053,8 +1015,8 @@ export declare class VeLiveVideoEffectManager {
|
|
|
1053
1015
|
* - 0:调用成功;
|
|
1054
1016
|
* - -1:调用失败。
|
|
1055
1017
|
* @notes <br>
|
|
1056
|
-
* - 需要在调用 {@link #VeLiveVideoEffectManager#setEnable
|
|
1057
|
-
* - 调用本方法,会在 {@link #VeLiveVideoEffectManager#setComposeNodes
|
|
1018
|
+
* - 需要在调用 setEnable:{@link #VeLiveVideoEffectManager#setEnable} 创建特效引擎后,调用本方法。
|
|
1019
|
+
* - 调用本方法,会在 setComposeNodes:{@link #VeLiveVideoEffectManager#setComposeNodes} 设置的视频特效组合的基础上叠加特效。
|
|
1058
1020
|
* @order 80
|
|
1059
1021
|
* @param nodes 视频特效素材包路径数组。
|
|
1060
1022
|
*/
|
|
@@ -1066,8 +1028,8 @@ export declare class VeLiveVideoEffectManager {
|
|
|
1066
1028
|
* - 0:调用成功;
|
|
1067
1029
|
* - -1:调用失败。
|
|
1068
1030
|
* @notes <br>
|
|
1069
|
-
* - 需要在调用 {@link #VeLiveVideoEffectManager#setEnable
|
|
1070
|
-
* - 调用本方法,可移除调用 {@link #VeLiveVideoEffectManager#setComposeNodes
|
|
1031
|
+
* - 需要在调用 setEnable:{@link #VeLiveVideoEffectManager#setEnable} 创建特效引擎后,调用本方法。
|
|
1032
|
+
* - 调用本方法,可移除调用 setComposeNodes:{@link #VeLiveVideoEffectManager#setComposeNodes} 和 appendComposeNodes:{@link #VeLiveVideoEffectManager#appendComposeNodes} 设置的视频特效资源。
|
|
1071
1033
|
* @order 81
|
|
1072
1034
|
* @param nodes 视频特效素材包路径数组。
|
|
1073
1035
|
*/
|
|
@@ -1079,7 +1041,7 @@ export declare class VeLiveVideoEffectManager {
|
|
|
1079
1041
|
* - 0:调用成功;
|
|
1080
1042
|
* - -1:调用失败。
|
|
1081
1043
|
* @notes <br>
|
|
1082
|
-
* - 需要在调用 {@link #VeLiveVideoEffectManager#setComposeNodes
|
|
1044
|
+
* - 需要在调用 setComposeNodes:{@link #VeLiveVideoEffectManager#setComposeNodes} 设置视频特效组合或调用 appendComposeNodes:{@link #VeLiveVideoEffectManager#appendComposeNodes} 叠加视频特效素材包后,调用本方法;
|
|
1083
1045
|
* - 该方法仅适用于同时含有上述三个参数的特效资源,对于没有强度参数的特效(如贴纸),该方法无效。
|
|
1084
1046
|
* @order 82
|
|
1085
1047
|
* @param node 视频特效素材包路径。
|
|
@@ -1093,7 +1055,7 @@ export declare class VeLiveVideoEffectManager {
|
|
|
1093
1055
|
* @return <br>
|
|
1094
1056
|
* - 0:调用成功;
|
|
1095
1057
|
* - -1:调用失败。
|
|
1096
|
-
* @notes <br>请在调用 {@link #VeLiveVideoEffectManager#setEnable
|
|
1058
|
+
* @notes <br>请在调用 setEnable:{@link #VeLiveVideoEffectManager#setEnable} 开启视频特效后,调用该方法。
|
|
1097
1059
|
* @order 83
|
|
1098
1060
|
* @param path 滤镜资源包绝对路径。
|
|
1099
1061
|
*/
|
|
@@ -1105,7 +1067,7 @@ export declare class VeLiveVideoEffectManager {
|
|
|
1105
1067
|
* - 0:调用成功;
|
|
1106
1068
|
* - -1:调用失败。
|
|
1107
1069
|
* @notes <br>
|
|
1108
|
-
* 请在调用 {@link #VeLiveVideoEffectManager#setFilter
|
|
1070
|
+
* 请在调用 setFilter:{@link #VeLiveVideoEffectManager#setFilter} 设置颜色滤镜后调用。
|
|
1109
1071
|
* @order 84
|
|
1110
1072
|
* @param intensity 滤镜强度,取值范围为 [0.0,1.0]。
|
|
1111
1073
|
*/
|
|
@@ -1116,7 +1078,7 @@ export declare class VeLiveVideoEffectManager {
|
|
|
1116
1078
|
* @return <br>
|
|
1117
1079
|
* - 0:调用成功;
|
|
1118
1080
|
* - -1:调用失败。
|
|
1119
|
-
* @notes <br>请在调用 {@link #VeLiveVideoEffectManager#setEnable
|
|
1081
|
+
* @notes <br>请在调用 setEnable:{@link #VeLiveVideoEffectManager#setEnable} 开启视频特效后,调用该方法。
|
|
1120
1082
|
* @order 85
|
|
1121
1083
|
* @param path 贴纸素材包的绝对路径。
|
|
1122
1084
|
*/
|
|
@@ -1130,4 +1092,5 @@ export declare class VeLiveVideoEffectManager {
|
|
|
1130
1092
|
* @param isAsync 是否同步执行 callback。
|
|
1131
1093
|
*/
|
|
1132
1094
|
setAdvancedFeature(callback: (handle: void) => void, isGLThread: BOOL, isAsync: BOOL): void;
|
|
1095
|
+
init(): this;
|
|
1133
1096
|
}
|