@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.
Files changed (36) hide show
  1. package/README.md +1 -0
  2. package/android/build.gradle +1 -1
  3. package/android/src/main/java/com/volcengine/velive/rn/push/NativeVariableManager.java +1 -1
  4. package/android/src/main/java/com/volcengine/velive/rn/push/VeLivePushModule.java +5 -3
  5. package/android/src/main/java/com/volcengine/velive/rn/push/VeLivePushView.java +86 -11
  6. package/android/src/main/java/com/volcengine/velive/rn/push/VeLivePushViewManager.java +29 -40
  7. package/ios/VeLivePushView.m +1 -1
  8. package/ios/VeLivePushViewManager.m +5 -1
  9. package/lib/commonjs/index.js +21800 -17843
  10. package/lib/module/index.js +21800 -17836
  11. package/lib/typescript/android/index.d.ts +3 -0
  12. package/lib/typescript/codegen/android/api.d.ts +353 -125
  13. package/lib/typescript/codegen/android/callback.d.ts +36 -5
  14. package/lib/typescript/codegen/android/errorcode.d.ts +12 -0
  15. package/lib/typescript/codegen/android/keytype.d.ts +305 -73
  16. package/lib/typescript/codegen/android/types.d.ts +7 -6
  17. package/lib/typescript/codegen/ios/api.d.ts +81 -118
  18. package/lib/typescript/codegen/ios/callback.d.ts +22 -58
  19. package/lib/typescript/codegen/ios/external.d.ts +1 -0
  20. package/lib/typescript/codegen/ios/index.d.ts +1 -0
  21. package/lib/typescript/codegen/ios/keytype.d.ts +40 -98
  22. package/lib/typescript/codegen/ios/types.d.ts +16 -5
  23. package/lib/typescript/codegen/pack/api.d.ts +1261 -1195
  24. package/lib/typescript/codegen/pack/callback.d.ts +166 -270
  25. package/lib/typescript/codegen/pack/errorcode.d.ts +24 -122
  26. package/lib/typescript/codegen/pack/index.d.ts +1 -1
  27. package/lib/typescript/codegen/pack/keytype.d.ts +1095 -1244
  28. package/lib/typescript/codegen/pack/types.d.ts +67 -0
  29. package/lib/typescript/component.d.ts +10 -3
  30. package/lib/typescript/core/api.d.ts +2 -2
  31. package/lib/typescript/core/callback.d.ts +2 -2
  32. package/lib/typescript/core/errorcode.d.ts +2 -2
  33. package/lib/typescript/core/keytype.d.ts +2 -7
  34. package/lib/typescript/platforms/ios/extends.d.ts +17 -0
  35. package/package.json +7 -4
  36. package/react-native-velive-push.podspec +1 -1
@@ -1,187 +1,188 @@
1
- import { int, long, Matrix, ByteBuffer, Runnable, float, String, View, Bitmap, Intent, EGLContext, Context, LiveSdkSetting } from './types';
2
- import { VeLiveVideoBufferType, VeLivePixelFormat, VeLiveVideoRotation, VeLiveVideoEffectLicenseConfiguration, VeLivePusherRenderMode, VeLiveVideoMirrorType, VeLiveVideoCaptureType, VeLiveAudioCaptureType, VeLiveVideoEncoderConfiguration, VeLiveAudioEncoderConfiguration, VeLiveFileRecorderConfiguration, VeLiveOrientation, VeLivePusherLogLevel, VeLivePusherLogConfig, VeLiveAudioMixType, VeLiveStreamMixDescription, VeLiveAudioSampleRate, VeLiveAudioChannel, VeLiveAudioBufferType, VeLiveVideoCaptureConfiguration, VeLiveAudioCaptureConfiguration } from './keytype';
1
+ import { VeLiveVideoBufferType, VeLivePixelFormat, VeLiveVideoRotation, VeLiveVideoEffectLicenseConfiguration, VeLivePusherLogLevel, VeLivePusherLogConfig, VeLivePusherRenderMode, VeLiveVideoMirrorType, VeLiveVideoCaptureType, VeLiveAudioCaptureType, VeLiveVideoEncoderConfiguration, VeLiveAudioEncoderConfiguration, VeLiveFileRecorderConfiguration, VeLiveOrientation, VeLiveAudioMixType, VeLiveStreamMixDescription, VeLiveAudioBufferType, VeLiveAudioSampleRate, VeLiveAudioChannel, VeLiveVideoCaptureConfiguration, VeLiveAudioCaptureConfiguration } from './keytype';
2
+ import { int, long, Matrix, ByteBuffer, Runnable, float, String, EGLContext, View, Bitmap, Intent, Context, LiveSdkSetting } from './types';
3
3
  import { VeLiveVideoEffectCallback, VeLiveVideoEffectHandleCallback, VeLivePusherObserver, VeLivePusherStatisticsObserver, VeLiveFileRecordingListener, VeLiveVideoFrameFilter, VeLiveAudioFrameFilter, VeLiveVideoFrameListener, VeLiveAudioFrameListener, VeLiveSnapshotListener, VeLiveMediaPlayerListener, VeLiveMediaPlayerFrameListener } from './callback';
4
4
  export declare class VeLiveVideoFrame {
5
+ constructor(width: int, height: int, pts: long, texId: int, isOes: boolean, matrix: Matrix);
6
+ constructor(width: int, height: int, pts: long, byteBuffer: ByteBuffer);
7
+ constructor(width: int, height: int, pts: long, data: ArrayBuffer);
8
+ constructor();
5
9
  width: number;
6
10
  height: number;
7
11
  ptsUs: number;
8
12
  textureId: number;
9
13
  data: any;
10
- static new_VeLiveVideoFrame(): VeLiveVideoFrame;
11
- static new_VeLiveVideoFrame_int$int$long$int$boolean$Matrix(width: int, height: int, pts: long, texId: int, isOes: boolean, matrix: Matrix): VeLiveVideoFrame;
12
- static new_VeLiveVideoFrame_int$int$long$ByteBuffer(width: int, height: int, pts: long, byteBuffer: ByteBuffer): VeLiveVideoFrame;
13
- static new_VeLiveVideoFrame_int$int$long$byte(width: int, height: int, pts: long, data: ArrayBuffer): VeLiveVideoFrame;
14
14
  /** {zh}
15
15
  * @detail api
16
16
  * @brief 增加 VeLiveVideoFrame 对象的引用计数。当您需要继续使用 VeLiveVideoFrame 对象时,请调用此方法将引用计数增加 1。
17
+ *
17
18
  */
19
+
18
20
  retain(): void;
19
21
  /** {zh}
20
22
  * @detail api
21
23
  * @brief 释放对 VeLiveVideoFrame 对象的引用。在您不再需要使用 VeLiveVideoFrame 对象时,应调用此方法将引用计数减少 1。当引用计数减少到零,表示不再有引用指向该对象,可以安全地释放或销毁该对象。
24
+ *
22
25
  */
26
+
23
27
  release(): void;
24
28
  /** {zh}
25
29
  * @detail api
26
30
  * @brief 获取视频数据类型。
27
31
  * @return 视频数据类型,详情请参见 [VeLiveVideoBufferType](147521#VeLiveVideoBufferType)。
32
+ *
28
33
  */
34
+
29
35
  getBufferType(): VeLiveVideoBufferType;
30
36
  /** {zh}
31
37
  * @detail api
32
38
  * @brief 设置视频数据类型。
33
- * @param bufferType 视频数据类型,详情请参见 {@link #VeLiveVideoBufferType VeLiveVideoBufferType}
39
+ * @param bufferType 视频数据类型,详情请参见 VeLiveVideoBufferType{@link #VeLiveVideoBufferType}
34
40
  * @return <br>
35
- * 视频帧对象,详情请参见 {@link #VeLiveVideoFrame VeLiveVideoFrame}。
41
+ * 视频帧对象,详情请参见 VeLiveVideoFrame{@link #VeLiveVideoFrame}。
42
+ *
36
43
  */
37
- setBufferType(bufferType: VeLiveVideoBufferType): VeLiveVideoFrame;
44
+
45
+ setBufferType(bufferType: VeLiveVideoBufferType): this;
38
46
  /** {zh}
39
47
  * @detail api
40
48
  * @brief 获取视频像素格式。
41
49
  * @return <br>
42
- * 视频像素格式,详情请参见 {@link #VeLivePixelFormat VeLivePixelFormat}。
50
+ * 视频像素格式,详情请参见 VeLivePixelFormat{@link #VeLivePixelFormat}。
51
+ *
43
52
  */
53
+
44
54
  getPixelFormat(): VeLivePixelFormat;
45
55
  /** {zh}
46
56
  * @detail api
47
57
  * @brief 设置视频像素格式。
48
- * @param pixelFormat 视频像素格式,详情请参见 {@link #VeLivePixelFormat VeLivePixelFormat}
58
+ * @param pixelFormat 视频像素格式,详情请参见 VeLivePixelFormat{@link #VeLivePixelFormat}
49
59
  * @return <br>
50
- * 视频帧对象,详情请参见 {@link #VeLiveVideoFrame VeLiveVideoFrame}。
60
+ * 视频帧对象,详情请参见 VeLiveVideoFrame{@link #VeLiveVideoFrame}。
61
+ *
51
62
  */
52
- setPixelFormat(pixelFormat: VeLivePixelFormat): VeLiveVideoFrame;
63
+
64
+ setPixelFormat(pixelFormat: VeLivePixelFormat): this;
53
65
  /** {zh}
54
66
  * @detail api
55
67
  * @brief 获取视频帧旋转角度。
56
68
  * @return <br>
57
- * 视频帧旋转角度,详情请参见 {@link #VeLiveVideoRotation VeLiveVideoRotation}。
69
+ * 视频帧旋转角度,详情请参见 VeLiveVideoRotation{@link #VeLiveVideoRotation}。
70
+ *
58
71
  */
72
+
59
73
  getRotation(): VeLiveVideoRotation;
60
74
  /** {zh}
61
75
  * @detail api
62
76
  * @brief 设置视频帧旋转角度。
63
- * @param rotation 视频帧旋转角度,详情请参见 {@link #VeLiveVideoRotation VeLiveVideoRotation}
77
+ * @param rotation 视频帧旋转角度,详情请参见 VeLiveVideoRotation{@link #VeLiveVideoRotation}
64
78
  * @return <br>
65
- * 视频帧对象,详情请参见 {@link #VeLiveVideoFrame VeLiveVideoFrame}。
79
+ * 视频帧对象,详情请参见 VeLiveVideoFrame{@link #VeLiveVideoFrame}。
80
+ *
66
81
  */
67
- setRotation(rotation: VeLiveVideoRotation): VeLiveVideoFrame;
82
+
83
+ setRotation(rotation: VeLiveVideoRotation): this;
68
84
  /** {zh}
69
85
  * @detail api
70
86
  * @brief 获取视频帧宽度。
71
87
  * @return <br>
72
88
  * 视频帧宽度。
89
+ *
73
90
  */
91
+
74
92
  getWidth(): int;
75
93
  /** {zh}
76
94
  * @detail api
77
95
  * @brief 获取视频帧高度。
78
96
  * @return <br>
79
97
  * 视频帧高度。
98
+ *
80
99
  */
100
+
81
101
  getHeight(): int;
82
102
  /** {zh}
83
103
  * @detail api
84
104
  * @brief 获取带旋转角度的视频帧宽度。
85
105
  * @return <br>
86
106
  * 带旋转角度的视频帧宽度。
107
+ *
87
108
  */
109
+
88
110
  getRotatedWidth(): int;
89
111
  /** {zh}
90
112
  * @detail api
91
113
  * @brief 获取带旋转角度的视频帧高度。
92
114
  * @return <br>
93
115
  * 带旋转角度的视频帧高度。
116
+ *
94
117
  */
118
+
95
119
  getRotatedHeight(): int;
96
120
  /** {zh}
97
121
  * @detail api
98
122
  * @brief 获取视频帧时间戳。
99
123
  * @return <br>
100
124
  * 视频帧时间戳,单位为 μs。
125
+ *
101
126
  */
127
+
102
128
  getPts(): long;
103
129
  /** {zh}
104
130
  * @detail api
105
131
  * @brief 获取视频帧纹理 ID。
106
132
  * @return <br>
107
133
  * 视频帧纹理 ID。
134
+ *
108
135
  */
136
+
109
137
  getTextureId(): int;
110
138
  /** {zh}
111
139
  * @detail api
112
140
  * @brief 获取视频帧纹理矩阵。
113
141
  * @return <br>
114
142
  * 视频帧纹理矩阵。
143
+ *
115
144
  */
145
+
116
146
  getTextureMatrix(): Matrix;
117
147
  /** {zh}
118
148
  * @detail api
119
149
  * @brief 获取 ByteBuffer 格式的视频数据。
120
150
  * @return <br>
121
151
  * ByteBuffer 格式的视频数据。
152
+ *
122
153
  */
154
+
123
155
  getBuffer(): ByteBuffer;
124
156
  /** {zh}
125
157
  * @detail api
126
158
  * @brief 获取 byte[] 格式的视频数据。
127
159
  * @return <br>
128
160
  * byte[] 格式的视频数据。
161
+ *
129
162
  */
163
+
130
164
  getData(): ArrayBuffer;
131
165
  /** {zh}
132
166
  * @detail api
133
167
  * @brief 获取视频帧内部销毁回调。
134
168
  * @return <br>
135
169
  * 视频帧内部销毁回调。
170
+ *
136
171
  */
172
+
137
173
  getReleaseCallback(): Runnable;
138
174
  /** {zh}
139
175
  * @detail api
140
176
  * @brief 设置视频帧内部销毁回调。
141
177
  * @param releaseCallback 视频帧内部销毁回调
142
178
  * @return <br>
143
- * 视频帧对象,详情请参见 {@link #VeLiveVideoFrame VeLiveVideoFrame}。
179
+ * 视频帧对象,详情请参见 VeLiveVideoFrame{@link #VeLiveVideoFrame}。
180
+ *
144
181
  */
145
- setReleaseCallback(releaseCallback: Runnable): VeLiveVideoFrame;
182
+
183
+ setReleaseCallback(releaseCallback: Runnable): this;
146
184
  }
147
185
  export declare class VeLiveCameraDevice {
148
- /** {zh}
149
- * @hidden
150
- */
151
- CAMERA_DEVICE_CODE_OK: int;
152
- /** {zh}
153
- * @hidden
154
- */
155
- CAMERA_DEVICE_CODE_NOT_LIVE: int;
156
- /** {zh}
157
- * @hidden
158
- */
159
- CAMERA_DEVICE_CODE_NOT_SUPPORT: int;
160
- /** {zh}
161
- * @hidden
162
- */
163
- CAMERA_DEVICE_CODE_PARAM_ILLEGAL: int;
164
- /** {zh}
165
- * @hidden
166
- */
167
- CAMERA_DEVICE_CODE_ERROR_BASE: int;
168
- /** {zh}
169
- * @detail api
170
- * @brief 设置相机参数。
171
- * @notes <br>需要在调用 [startVideoCapture](#VeLivePusher-startvideocapture) 启动相机采集后,调用本方法。
172
- * @order 64
173
- * @param parameter 相机参数对象,用于指定要设置的相机参数。
174
- */
175
- setParameter(parameter: Parameter): int;
176
- /** {zh}
177
- * @detail api
178
- * @brief 获取相机参数。
179
- * @return <br>
180
- * 相机参数的值,具体类型需要根据参数名称确定。
181
- * @notes <br>需要在调用 [startVideoCapture](#VeLivePusher-startvideocapture) 启动相机采集后,调用本方法。
182
- * @order 65
183
- */
184
- getParameter(): Parameter;
185
186
  /** {zh}
186
187
  * @detail api
187
188
  * @brief 获取相机支持帧率范围。
@@ -189,8 +190,10 @@ export declare class VeLiveCameraDevice {
189
190
  * 相机支持帧率范围。
190
191
  * @notes <br>需要在调用 [startVideoCapture](#VeLivePusher-startvideocapture) 启动相机采集后,调用本方法。
191
192
  * @order 66
193
+ *
192
194
  */
193
- getRealFpsRange(): int[];
195
+
196
+ getRealFpsRange(): Array<int>;
194
197
  /** {zh}
195
198
  * @detail api
196
199
  * @brief 开启/关闭闪光灯。
@@ -202,7 +205,9 @@ export declare class VeLiveCameraDevice {
202
205
  * @param enable 是否开启闪光灯。默认为 false。 <br>
203
206
  * - true:开启;
204
207
  * - false:关闭。
208
+ *
205
209
  */
210
+
206
211
  enableTorch(enable: boolean): int;
207
212
  /** {zh}
208
213
  * @detail api
@@ -213,7 +218,9 @@ export declare class VeLiveCameraDevice {
213
218
  * @notes <br>需要在调用 [startVideoCapture](#VeLivePusher-startvideocapture) 启动相机采集后,调用本方法。
214
219
  * @order 68
215
220
  * @param ratio 缩放倍数。默认为原尺寸。缩放倍数的取值范围为 [[getMinZoomRatio](#VeLiveCameraDevice-getminzoomratio),[getMaxZoomRatio](#VeLiveCameraDevice-getmaxzoomratio)]。
221
+ *
216
222
  */
223
+
217
224
  setZoomRatio(ratio: float): int;
218
225
  /** {zh}
219
226
  * @detail api
@@ -223,7 +230,9 @@ export declare class VeLiveCameraDevice {
223
230
  * - \\>0:支持缩放,数值表示当前缩放倍数。
224
231
  * @notes <br>需要在调用 [startVideoCapture](#VeLivePusher-startvideocapture) 启动相机采集后,调用本方法。
225
232
  * @order 68
233
+ *
226
234
  */
235
+
227
236
  getCurrentZoomRatio(): float;
228
237
  /** {zh}
229
238
  * @detail api
@@ -233,7 +242,9 @@ export declare class VeLiveCameraDevice {
233
242
  * - \\>0:支持缩放,数值表示最大缩放倍数。
234
243
  * @notes <br>需要在调用 [startVideoCapture](#VeLivePusher-startvideocapture) 启动相机采集后,调用本方法。
235
244
  * @order 69
245
+ *
236
246
  */
247
+
237
248
  getMaxZoomRatio(): float;
238
249
  /** {zh}
239
250
  * @detail api
@@ -243,7 +254,9 @@ export declare class VeLiveCameraDevice {
243
254
  * - \\>0:支持缩放,数值表示最小缩放倍数。
244
255
  * @notes <br>需要在调用 [startVideoCapture](#VeLivePusher-startvideocapture) 启动相机采集后,调用本方法。
245
256
  * @order 70
257
+ *
246
258
  */
259
+
247
260
  getMinZoomRatio(): float;
248
261
  /** {zh}
249
262
  * @detail api
@@ -253,7 +266,9 @@ export declare class VeLiveCameraDevice {
253
266
  * - false:不支持。
254
267
  * @notes <br>需要在调用 [startVideoCapture](#VeLivePusher-startvideocapture) 启动相机采集后,调用本方法。
255
268
  * @order 71
269
+ *
256
270
  */
271
+
257
272
  isAutoFocusEnabled(): boolean;
258
273
  /** {zh}
259
274
  * @detail api
@@ -266,7 +281,9 @@ export declare class VeLiveCameraDevice {
266
281
  * @param enable 是否开启自动对焦,默认为 true。
267
282
  * - true:开启;
268
283
  * - false:关闭。
284
+ *
269
285
  */
286
+
270
287
  enableAutoFocus(enable: boolean): int;
271
288
  /** {zh}
272
289
  * @detail api
@@ -280,7 +297,9 @@ export declare class VeLiveCameraDevice {
280
297
  * @param viewH 当前视图高度。
281
298
  * @param x 以左上角为原点,对焦点距当前视图的横向坐标值。
282
299
  * @param y 以左上角为原点,对焦点距当前视图的纵向坐标值。
300
+ *
283
301
  */
302
+
284
303
  setFocusPosition(viewW: int, viewH: int, x: int, y: int): int;
285
304
  /** {zh}
286
305
  * @detail api
@@ -289,7 +308,9 @@ export declare class VeLiveCameraDevice {
289
308
  * - NO:不支持。
290
309
  * @notes 必须已调用 [startVideoCapture](#VeLivePusher-startvideocapture) 使用 SDK 内部采集模块进行视频采集时,才能检查曝光点设置能力。
291
310
  * @order 74
311
+ *
292
312
  */
313
+
293
314
  isExposurePositionSupported(): boolean;
294
315
  /** {zh}
295
316
  * @detail api
@@ -303,7 +324,9 @@ export declare class VeLiveCameraDevice {
303
324
  * @param viewH 当前视图高度。
304
325
  * @param x 以左上角为原点,对焦点距当前视图的横向坐标值。
305
326
  * @param y 以左上角为原点,对焦点距当前视图的纵向坐标值。
327
+ *
306
328
  */
329
+
307
330
  setExposurePosition(viewW: int, viewH: int, x: int, y: int): int;
308
331
  /** {zh}
309
332
  * @detail api
@@ -312,7 +335,9 @@ export declare class VeLiveCameraDevice {
312
335
  * - \\>0:支持曝光补偿,数值表示最小曝光补偿。
313
336
  * @notes 需要在调用 [startVideoCapture](#VeLivePusher-startvideocapture) 启动相机采集后,调用本方法。
314
337
  * @order 76
338
+ *
315
339
  */
340
+
316
341
  getMinExposureCompensation(): float;
317
342
  /** {zh}
318
343
  * @detail api
@@ -321,7 +346,9 @@ export declare class VeLiveCameraDevice {
321
346
  * - \\>0:支持曝光补偿,数值表示最大曝光补偿。
322
347
  * @notes 需要在调用 [startVideoCapture](#VeLivePusher-startvideocapture) 启动相机采集后,调用本方法。
323
348
  * @order 77
349
+ *
324
350
  */
351
+
325
352
  getMaxExposureCompensation(): float;
326
353
  /** {zh}
327
354
  * @detail api
@@ -332,7 +359,9 @@ export declare class VeLiveCameraDevice {
332
359
  * - 调用 [stopVideoCapture](#VeLivePusher-stopvideocapture) 关闭内部采集后,设置的曝光补偿失效。
333
360
  * @order 78
334
361
  * @param value 曝光补偿值,取值范围 [[getMinExposureCompensation](#VeLiveCameraDevice-getminexposurecompensation),[getMaxExposureCompensation](#VeLiveCameraDevice-getmaxexposurecompensation)],0 为系统默认值,表示没有曝光补偿。
362
+ *
335
363
  */
364
+
336
365
  setExposureCompensation(value: float): int;
337
366
  }
338
367
  export declare class VeLiveVideoEffectManager {
@@ -344,7 +373,9 @@ export declare class VeLiveVideoEffectManager {
344
373
  * - -1:调用失败。
345
374
  * @order 89
346
375
  * @param config 特效初始化配置,详情请参见 [VeLiveVideoEffectLicenseConfiguration](147521#VeLiveVideoEffectLicenseConfiguration)。
376
+ *
347
377
  */
378
+
348
379
  setupWithConfig(config: VeLiveVideoEffectLicenseConfiguration): int;
349
380
  /** {zh}
350
381
  * @detail api
@@ -354,7 +385,9 @@ export declare class VeLiveVideoEffectManager {
354
385
  * - 本方法为异步操作。
355
386
  * @order 90
356
387
  * @param callback 结果回调信息
388
+ *
357
389
  */
390
+
358
391
  updateLicense(callback: VeLiveVideoEffectCallback): void;
359
392
  /** {zh}
360
393
  * @detail api
@@ -372,7 +405,9 @@ export declare class VeLiveVideoEffectManager {
372
405
  * - true:创建;
373
406
  * - false:销毁。
374
407
  * @param callback 视频特效回调 [VeLiveVideoEffectCallback](147519#velivevideoeffectcallback)。
408
+ *
375
409
  */
410
+
376
411
  setEnable(enable: boolean, callback: VeLiveVideoEffectCallback): void;
377
412
  /** {zh}
378
413
  * @detail api
@@ -383,7 +418,9 @@ export declare class VeLiveVideoEffectManager {
383
418
  * @notes <br>需要通过调用 [setupWithConfig](#VeLiveVideoEffectManager-setupwithconfig) 设置视频特效许可证后调用。
384
419
  * @order 91
385
420
  * @param path 特效算法模型包的路径
421
+ *
386
422
  */
423
+
387
424
  setAlgorithmModelPath(path: String): int;
388
425
  /** {zh}
389
426
  * @detail api
@@ -397,8 +434,10 @@ export declare class VeLiveVideoEffectManager {
397
434
  * - 如果需要在当前的视频特效组合中叠加特效,可调用 [appendComposeNodes](#VeLiveVideoEffectManager-appendcomposenodes) 方法。
398
435
  * @order 93
399
436
  * @param nodes 视频特效素材包路径数组
437
+ *
400
438
  */
401
- setComposeNodes(nodes: String[]): int;
439
+
440
+ setComposeNodes(nodes: Array<String>): int;
402
441
  /** {zh}
403
442
  * @detail api
404
443
  * @brief 在已有的视频特效组合上,叠加视频特效素材包。
@@ -410,8 +449,10 @@ export declare class VeLiveVideoEffectManager {
410
449
  * - 调用本方法,会在 [setComposeNodes](#VeLiveVideoEffectManager-setcomposenodes) 设置的视频特效组合的基础上叠加特效。
411
450
  * @order 94
412
451
  * @param nodes 视频特效素材包路径数组
452
+ *
413
453
  */
414
- appendComposeNodes(nodes: String[]): int;
454
+
455
+ appendComposeNodes(nodes: Array<String>): int;
415
456
  /** {zh}
416
457
  * @detail api
417
458
  * @brief 移除指定的视频特效资源。
@@ -423,8 +464,10 @@ export declare class VeLiveVideoEffectManager {
423
464
  * - 调用本方法,可移除调用 [setComposeNodes](#VeLiveVideoEffectManager-setcomposenodes) 和 [appendComposeNodes](#VeLiveVideoEffectManager-appendcomposenodes) 设置的视频特效资源。
424
465
  * @order 94
425
466
  * @param nodes 视频特效素材包路径数组
467
+ *
426
468
  */
427
- removeComposeNodes(nodes: String[]): int;
469
+
470
+ removeComposeNodes(nodes: Array<String>): int;
428
471
  /** {zh}
429
472
  * @detail api
430
473
  * @brief 设置视频特效强度。
@@ -438,7 +481,9 @@ export declare class VeLiveVideoEffectManager {
438
481
  * @param node 视频特效素材包路径
439
482
  * @param key 需要设置的素材 key 名称
440
483
  * @param intensity 需要设置的强度值。取值范围为 [0.0,1.0]
484
+ *
441
485
  */
486
+
442
487
  updateComposerNodeIntensity(node: String, key: String, intensity: float): int;
443
488
  /** {zh}
444
489
  * @detail api
@@ -449,7 +494,9 @@ export declare class VeLiveVideoEffectManager {
449
494
  * @notes <br>请在调用 [setEnable](#VeLiveVideoEffectManager-setenable) 开启视频特效后,调用该方法。
450
495
  * @order 96
451
496
  * @param path 滤镜资源包绝对路径
497
+ *
452
498
  */
499
+
453
500
  setFilter(path: String): int;
454
501
  /** {zh}
455
502
  * @detail api
@@ -460,7 +507,9 @@ export declare class VeLiveVideoEffectManager {
460
507
  * @notes <br>请在调用 [setFilter](#VeLiveVideoEffectManager-setfilter) 设置颜色滤镜后调用。
461
508
  * @order 97
462
509
  * @param intensity 滤镜强度,取值范围为 [0.0,1.0]。
510
+ *
463
511
  */
512
+
464
513
  updateFilterIntensity(intensity: float): int;
465
514
  /** {zh}
466
515
  * @detail api
@@ -471,7 +520,9 @@ export declare class VeLiveVideoEffectManager {
471
520
  * @notes <br>请在调用 [setEnable](#VeLiveVideoEffectManager-setenable) 开启视频特效后,调用该方法。
472
521
  * @order 98
473
522
  * @param path 贴纸素材包的绝对路径
523
+ *
474
524
  */
525
+
475
526
  setSticker(path: String): int;
476
527
  /** {zh}
477
528
  * @detail api
@@ -481,15 +532,11 @@ export declare class VeLiveVideoEffectManager {
481
532
  * @param callback 回调 CV 的 handle。
482
533
  * @param isGLThread 是否在 GL 线程回调 callback。
483
534
  * @param isAsync 是否同步执行 callback。
535
+ *
484
536
  */
537
+
485
538
  setAdvancedFeature(callback: VeLiveVideoEffectHandleCallback, isGLThread: boolean, isAsync: boolean): int;
486
539
  }
487
- export declare class WrappedI420BufferFrame {
488
- constructor(width: int, height: int, pts: long, rotation: VeLiveVideoRotation);
489
- getDataY(): ByteBuffer;
490
- getDataU(): ByteBuffer;
491
- getDataV(): ByteBuffer;
492
- }
493
540
  export declare class VeLivePusher {
494
541
  /** {zh}
495
542
  * @detail api
@@ -497,49 +544,44 @@ export declare class VeLivePusher {
497
544
  * @brief 获取当前 SDK 版本号。
498
545
  * @return <br>
499
546
  * 当前 SDK 版本号。
547
+ *
500
548
  */
549
+
501
550
  static getVersion(): String;
502
551
  /** {zh}
503
552
  * @detail api
504
553
  * @brief 设置输出到控制台的日志等级。
505
554
  * @order 60
506
555
  * @param logLevel 输出的日志级别。级别详情请参见 [VeLivePusherLogLevel](147521#VeLivePusherLogLevel)。
556
+ *
507
557
  */
558
+
508
559
  static setLogLevel(logLevel: VeLivePusherLogLevel): void;
509
560
  /** {zh}
510
561
  * @detail api
511
562
  * @hidden
512
563
  * @brief 设置日志控制。
513
564
  * @param config 输出的日志控制,详情请参见 [VeLivePusherLogConfig](147521#VeLivePusherLogConfig)。
565
+ *
514
566
  */
567
+
515
568
  static setLogConfig(config: VeLivePusherLogConfig): void;
516
- /** {zh}
517
- * @detail api
518
- * @brief 设置 OpenGL 的版本号,默认值为 `3`。
519
- * @param version OpenGL 版本号,支持的取值包括 `2` 和 `3`,分别对应 OpenGL 2.0 和 3.0 版本。
520
- * @order 62
521
- */
522
- static setEGLVersion(version: int): void;
523
569
  /** {zh}
524
570
  * @detail api
525
571
  * @brief 设置 OpenGL 的上下文。
526
572
  * @order 61
527
573
  * @param context OpenGL 上下文。
574
+ *
528
575
  */
576
+
529
577
  static setEGLContext(context: EGLContext): void;
530
- /** {zh}
531
- * @detail api
532
- * @brief 获取 OpenGL 的上下文。
533
- * @return <br>
534
- * 当前 OpenGL 的上下文。
535
- * @order 63
536
- */
537
- static getEGLContext(): EGLContext;
538
578
  /** {zh}
539
579
  * @detail api
540
580
  * @brief 停止采集和推流,并销毁推流器。通常在调用 [stopPush](#VeLivePusher-stoppush) 结束推流后调用此方法进行清理。
541
581
  * @order 13
582
+ *
542
583
  */
584
+
543
585
  release(): void;
544
586
  /** {zh}
545
587
  * @detail api
@@ -549,7 +591,9 @@ export declare class VeLivePusher {
549
591
  * - 重复调用本方法,仅最后一次调用生效。
550
592
  * @order 14
551
593
  * @param observer 推流器回调对象,详细信息请参见 [VeLivePusherObserver](147519#VeLivePusherObserver)。
594
+ *
552
595
  */
596
+
553
597
  setObserver(observer: VeLivePusherObserver): void;
554
598
  /** {zh}
555
599
  * @detail api
@@ -560,20 +604,26 @@ export declare class VeLivePusher {
560
604
  * @order 15
561
605
  * @param observer 推流器周期性回调对象,详细信息请参见 [VeLivePusherStatisticsObserver](147519#VeLivePusherStatisticsObserver)。
562
606
  * @param interval 周期性回调的时间间隔,单位为 s,默认值为 5。
607
+ *
563
608
  */
609
+
564
610
  setStatisticsObserver(observer: VeLivePusherStatisticsObserver, interval: int): void;
565
611
  /** {zh}
566
612
  * @detail api
567
613
  * @brief 设置本地摄像头预览视图。摄像头采集到的画面,经过美颜、脸形调整、滤镜等多种效果叠加之后,最终会显示到传入的 View 上。
568
614
  * @param view 摄像头预览视图
569
615
  * @order 16
616
+ *
570
617
  */
618
+
571
619
  setRenderView(view: View): Promise<void>;
572
620
  /** {zh}
573
621
  * @detail api
574
622
  * @brief 设置本地预览画面的填充模式。
575
623
  * @param mode 填充模式。
624
+ *
576
625
  */
626
+
577
627
  setRenderFillMode(mode: VeLivePusherRenderMode): void;
578
628
  /** {zh}
579
629
  * @detail api
@@ -585,23 +635,29 @@ export declare class VeLivePusher {
585
635
  * @param mirror 是否开启镜像。<br>
586
636
  * - true:开启;
587
637
  * - false:关闭。
638
+ *
588
639
  */
640
+
589
641
  setVideoMirror(type: VeLiveVideoMirrorType, mirror: boolean): void;
590
642
  /** {zh}
591
643
  * @detail api
592
644
  * @brief 开始视频采集。
593
645
  * @notes <br>调用该接口后,可以通过调用接口 [stopVideoCapture](#VeLivePusher-stopvideocapture) 停止视频采集。
594
646
  * @order 18
595
- * @param type 视频采集类型,详细信息请参见 {@link #VeLiveVideoCaptureType VeLiveVideoCaptureType}
647
+ * @param type 视频采集类型,详细信息请参见 VeLiveVideoCaptureType{@link #VeLiveVideoCaptureType}
648
+ *
596
649
  *
597
650
  */
651
+
598
652
  startVideoCapture(type: VeLiveVideoCaptureType): void;
599
653
  /** {zh}
600
654
  * @detail api
601
655
  * @brief 停止视频采集。
602
656
  * @notes <br>调用该接口后,可以通过调用接口 [startVideoCapture](#VeLivePusher-startvideocapture) 开始视频采集。
603
657
  * @order 19
658
+ *
604
659
  */
660
+
605
661
  stopVideoCapture(): void;
606
662
  /** {zh}
607
663
  * @detail api
@@ -609,14 +665,18 @@ export declare class VeLivePusher {
609
665
  * @notes <br>调用该接口后,可以通过调用接口 [stopAudioCapture](#VeLivePusher-stopaudiocapture) 停止音频采集。
610
666
  * @order 20
611
667
  * @param type 音频采集类型,详细信息请参见 [VeLiveAudioCaptureType](147521#VeLiveAudioCaptureType)。
668
+ *
612
669
  */
670
+
613
671
  startAudioCapture(type: VeLiveAudioCaptureType): void;
614
672
  /** {zh}
615
673
  * @detail api
616
674
  * @brief 停止音频采集。
617
675
  * @notes <br>调用该接口后,可以通过调用接口 [startAudioCapture](#VeLivePusher-startaudiocapture) 开始音频采集。
618
676
  * @order 21
677
+ *
619
678
  */
679
+
620
680
  stopAudioCapture(): void;
621
681
  /** {zh}
622
682
  * @detail api
@@ -624,7 +684,9 @@ export declare class VeLivePusher {
624
684
  * @notes <br>该接口必须在调用接口 [startVideoCapture](#VeLivePusher-startvideocapture) 后调用才能生效。
625
685
  * @order 22
626
686
  * @param type 视频采集类型,详细信息请参见 [VeLiveVideoCaptureType](147521#VeLiveVideoCaptureType)。
687
+ *
627
688
  */
689
+
628
690
  switchVideoCapture(type: VeLiveVideoCaptureType): void;
629
691
  /** {zh}
630
692
  * @detail api
@@ -632,21 +694,27 @@ export declare class VeLivePusher {
632
694
  * @notes <br>该接口必须在调用接口 [startVideoCapture](#VeLivePusher-startvideocapture) 后调用才能生效。
633
695
  * @order 23
634
696
  * @param type 音频采集类型,详细信息请参见 [VeLiveAudioCaptureType](147521#VeLiveAudioCaptureType)。
697
+ *
635
698
  */
699
+
636
700
  switchAudioCapture(type: VeLiveAudioCaptureType): void;
637
701
  /** {zh}
638
702
  * @detail api
639
703
  * @brief 获取当前视频采集类型。
640
704
  * @return <br>视频采集类型,详细信息请参见 [VeLiveVideoCaptureType](147521#VeLiveVideoCaptureType)。
641
705
  * @order 24
706
+ *
642
707
  */
708
+
643
709
  getCurrentVideoCaptureType(): VeLiveVideoCaptureType;
644
710
  /** {zh}
645
711
  * @detail api
646
712
  * @brief 获取当前音频采集类型。
647
713
  * @return <br>音频采集类型,详细信息请参见 [VeLiveAudioCaptureType](147521#VeLiveAudioCaptureType)。
648
714
  * @order 25
715
+ *
649
716
  */
717
+
650
718
  getCurrentAudioCaptureType(): VeLiveAudioCaptureType;
651
719
  /** {zh}
652
720
  * @detail api
@@ -654,7 +722,9 @@ export declare class VeLivePusher {
654
722
  * @notes <br>使用该接口时,需要将视频采集类型设置为 VeLiveVideoCaptureCustomImage,您可调用 [startVideoCapture](#VeLivePusher-startvideocapture) 方法,将 [VeLiveVideoCaptureType](147521#VeLiveVideoCaptureType) 设置为 VeLiveVideoCaptureCustomImage。
655
723
  * @order 26
656
724
  * @param image 静态图片,用于在静态图推流采集类型下设置静态图。
725
+ *
657
726
  */
727
+
658
728
  updateCustomImage(image: Bitmap): Promise<void>;
659
729
  /** {zh}
660
730
  * @detail api
@@ -663,27 +733,33 @@ export declare class VeLivePusher {
663
733
  * - 设置摄像头缩放比例
664
734
  * - 设置自动对焦
665
735
  * @return <br>
666
- * 相机设备管理对象 {@link #VeLiveCameraDevice VeLiveCameraDevice}。
736
+ * 相机设备管理对象 VeLiveCameraDevice{@link #VeLiveCameraDevice}。
667
737
  * @notes <br>
668
- * 该接口需要在 {@link #startVideoCapture startVideoCapture} 方法中设置 {@link #VeLiveVideoCaptureType VeLiveVideoCaptureType} 为 VeLiveVideoCaptureFrontCamera 或 VeLiveVideoCaptureBackCamera。
738
+ * 该接口需要在 startVideoCapture{@link #startVideoCapture} 方法中设置 VeLiveVideoCaptureType{@link #VeLiveVideoCaptureType} 为 VeLiveVideoCaptureFrontCamera 或 VeLiveVideoCaptureBackCamera。
669
739
  * @order 27
740
+ *
670
741
  */
742
+
671
743
  getCameraDevice(): VeLiveCameraDevice;
672
744
  /** {zh}
673
745
  * @detail api
674
746
  * @brief 设置推流视频编码参数。
675
747
  * @notes 该接口可在推流开始前或开始后调用。
676
748
  * @order 28
677
- * @param config 推流视频参数,支持设置推流视频分辨率、编码格式、目标码率和视频 GOP 大小等信息。详情请参见 {@link #VeLiveVideoEncoderConfiguration VeLiveVideoEncoderConfiguration}
749
+ * @param config 推流视频参数,支持设置推流视频分辨率、编码格式、目标码率和视频 GOP 大小等信息。详情请参见 VeLiveVideoEncoderConfiguration{@link #VeLiveVideoEncoderConfiguration}
750
+ *
678
751
  */
752
+
679
753
  setVideoEncoderConfiguration(config: VeLiveVideoEncoderConfiguration): void;
680
754
  /** {zh}
681
755
  * @detail api
682
756
  * @brief 获取推流视频编码参数。
683
757
  * @return <br>
684
- * 推流视频参数,支持设置推流视频分辨率、编码格式、目标码率和视频 GOP 大小等信息。详情请参见 {@link #VeLiveVideoEncoderConfiguration VeLiveVideoEncoderConfiguration}
758
+ * 推流视频参数,支持设置推流视频分辨率、编码格式、目标码率和视频 GOP 大小等信息。详情请参见 VeLiveVideoEncoderConfiguration{@link #VeLiveVideoEncoderConfiguration}
685
759
  * @order 29
760
+ *
686
761
  */
762
+
687
763
  getVideoEncoderConfiguration(): VeLiveVideoEncoderConfiguration;
688
764
  /** {zh}
689
765
  * @detail api
@@ -691,21 +767,27 @@ export declare class VeLivePusher {
691
767
  * @notes <br>该接口需要在 [startPush](#VeLivePusher-startpush) 或 [startPushWithUrls](#VeLivePusher-startpushwithurls) 方法之前调用。
692
768
  * @order 30
693
769
  * @param config 推流音频编码参数,详情请参见 [VeLiveAudioEncoderConfiguration](147521#VeLiveAudioEncoderConfiguration)。
770
+ *
694
771
  */
772
+
695
773
  setAudioEncoderConfiguration(config: VeLiveAudioEncoderConfiguration): void;
696
774
  /** {zh}
697
775
  * @detail api
698
776
  * @brief 获取推流音频编码参数。
699
777
  * @return <br>推流音频编码参数,详情请参见 [VeLiveAudioEncoderConfiguration](147521#VeLiveAudioEncoderConfiguration)。
700
778
  * @order 31
779
+ *
701
780
  */
781
+
702
782
  getAudioEncoderConfiguration(): VeLiveAudioEncoderConfiguration;
703
783
  /** {zh}
704
784
  * @detail api
705
785
  * @brief 开始推流。
706
786
  * @order 32
707
787
  * @param url 推流地址,用于将直播流推送到目标服务器。
788
+ *
708
789
  */
790
+
709
791
  startPush(url: String): void;
710
792
  /** {zh}
711
793
  * @detail api
@@ -714,14 +796,18 @@ export declare class VeLivePusher {
714
796
  * 当主推流地址不可用时,会自动切换到备用推流地址继续推流。
715
797
  * @order 33
716
798
  * @param urls 推流地址列表,包含一个或多个推流地址。
799
+ *
717
800
  */
718
- startPushWithUrls(urls: String[]): void;
801
+
802
+ startPushWithUrls(urls: Array<String>): void;
719
803
  /** {zh}
720
804
  * @detail api
721
805
  * @brief 停止推流。
722
806
  * @notes <br>停止推流后,可以通过调用 [startPush](#VeLivePusher-startpush) 或 [startPushWithUrls](#VeLivePusher-startpushwithurls) 方法重新开始推流。
723
807
  * @order 34
808
+ *
724
809
  */
810
+
725
811
  stopPush(): void;
726
812
  /** {zh}
727
813
  * @detail api
@@ -731,7 +817,9 @@ export declare class VeLivePusher {
731
817
  * - true:正在推流中;
732
818
  * - false:已经停止推流。
733
819
  * @order 35
820
+ *
734
821
  */
822
+
735
823
  isPushing(): boolean;
736
824
  /** {zh}
737
825
  * @detail api
@@ -744,7 +832,9 @@ export declare class VeLivePusher {
744
832
  * @param x 水印的水平偏移量,即水印图片相对视频流左上角的横向偏移与视频流宽度的比值,取值范围为 [0.0,1.0]。
745
833
  * @param y 水印的垂直偏移量,即水印图片相对视频流左上角的纵向偏移与视频流高度的比值,取值范围为 [0.0,1.0]。
746
834
  * @param scale 水印图片的缩放比例,取值范围为 [0.0,1.0]。
835
+ *
747
836
  */
837
+
748
838
  setWatermark(image: Bitmap, x: float, y: float, scale: float): Promise<int>;
749
839
  /** {zh}
750
840
  * @detail api
@@ -753,14 +843,18 @@ export declare class VeLivePusher {
753
843
  * @param path 录制文件保存路径,不能为空。
754
844
  * @param config 文件录制设置,详情请参见 [VeLiveFileRecorderConfiguration](147521#VeLiveFileRecorderConfiguration)。
755
845
  * @param listener 本地文件录制的监听,详情请参见 [VeLiveFileRecordingListener](147519#VeLiveFileRecordingListener) 。
846
+ *
756
847
  */
848
+
757
849
  startFileRecording(path: String, config: VeLiveFileRecorderConfiguration, listener: VeLiveFileRecordingListener): void;
758
850
  /** {zh}
759
851
  * @detail api
760
852
  * @brief 停止本地文件录制。
761
853
  * @notes <br>该接口需要在 [startFileRecording](#VeLivePusher-startfilerecording) 方法之后调用。
762
854
  * @order 38
855
+ *
763
856
  */
857
+
764
858
  stopFileRecording(): void;
765
859
  /** {zh}
766
860
  * @detail api
@@ -771,7 +865,9 @@ export declare class VeLivePusher {
771
865
  * @order 39
772
866
  * @param key 推流高级配置为 JSON 格式的字符串,此参数为 JSON 结构中的 Key。您可通过提交工单联系[技术支持](https://console.volcengine.com/workorder/create?step=3&SubProductID=P00000076),了解配置方法。
773
867
  * @param value 推流高级配置为 JSON 格式的字符串,此参数为 JSON 结构中的 Value。您可通过提交工单联系[技术支持](https://console.volcengine.com/workorder/create?step=3&SubProductID=P00000076),了解配置方法。
868
+ *
774
869
  */
870
+
775
871
  setProperty(key: String, value: Object): int;
776
872
  /** {zh}
777
873
  * @detail api
@@ -780,10 +876,12 @@ export declare class VeLivePusher {
780
876
  * - 0:成功;
781
877
  * - <0:失败。
782
878
  * @notes <br>
783
- * 调用该接口时,需要将视频采集类型设置为 VeLiveVideoCaptureExternal,您可调用 {@link #startVideoCapture startVideoCapture} 方法,将 {@link #VeLiveVideoCaptureType VeLiveVideoCaptureType} 设置为 VeLiveVideoCaptureExternal。
879
+ * 调用该接口时,需要将视频采集类型设置为 VeLiveVideoCaptureExternal,您可调用 startVideoCapture{@link #startVideoCapture} 方法,将 VeLiveVideoCaptureType{@link #VeLiveVideoCaptureType} 设置为 VeLiveVideoCaptureExternal。
784
880
  * @order 40
785
881
  * @param frame 视频帧的数据信息,详情请参见 [VeLiveVideoFrame](147517#VeLiveVideoFrame)。
882
+ *
786
883
  */
884
+
787
885
  pushExternalVideoFrame(frame: VeLiveVideoFrame): int;
788
886
  /** {zh}
789
887
  * @detail api
@@ -792,17 +890,21 @@ export declare class VeLivePusher {
792
890
  * - 0:成功;
793
891
  * - <0:失败。
794
892
  * @notes <br>
795
- * 该接口需要在 {@link #startAudioCapture startAudioCapture} 方法中设置 {@link #VeLiveAudioCaptureType VeLiveAudioCaptureType} 为 VeLiveAudioCaptureExternal。
893
+ * 该接口需要在 startAudioCapture{@link #startAudioCapture} 方法中设置 VeLiveAudioCaptureType{@link #VeLiveAudioCaptureType} 为 VeLiveAudioCaptureExternal。
796
894
  * @order 41
797
895
  * @param frame 外部音频数据。详情请参见 [VeLiveAudioFrame](147517#VeLiveAudioFrame)。
896
+ *
798
897
  */
898
+
799
899
  pushExternalAudioFrame(frame: VeLiveAudioFrame): int;
800
900
  /** {zh}
801
901
  * @detail api
802
902
  * @brief 设置推流视频帧朝向。默认为竖屏推流。
803
903
  * @order 42
804
904
  * @param orientation 视频帧朝向,详情请参见 [VeLiveOrientation](147521#VeLiveOrientation)。
905
+ *
805
906
  */
907
+
806
908
  setOrientation(orientation: VeLiveOrientation): void;
807
909
  /** {zh}
808
910
  * @detail api
@@ -821,7 +923,9 @@ export declare class VeLivePusher {
821
923
  * @param allowsCovered 是否允许覆盖。<br>
822
924
  * - true:允许;
823
925
  * - false:不允许。
926
+ *
824
927
  */
928
+
825
929
  sendSeiMessage(key: String, value: Object, repeat: int, isKeyFrame: boolean, allowsCovered: boolean): int;
826
930
  /** {zh}
827
931
  * @detail api
@@ -830,7 +934,9 @@ export declare class VeLivePusher {
830
934
  * - true:静音推流;
831
935
  * - false:正常推流。
832
936
  * @order 44
937
+ *
833
938
  */
939
+
834
940
  setMute(mute: boolean): void;
835
941
  /** {zh}
836
942
  * @detail api
@@ -839,7 +945,9 @@ export declare class VeLivePusher {
839
945
  * - true:当前是静音状态;
840
946
  * - false:当前非静音状态。
841
947
  * @order 45
948
+ *
842
949
  */
950
+
843
951
  isMute(): boolean;
844
952
  /** {zh}
845
953
  * @detail api
@@ -850,51 +958,63 @@ export declare class VeLivePusher {
850
958
  * - 设置贴图
851
959
  * - 设置滤镜
852
960
  * @return <br>
853
- * 视频特效管理对象 {@link #VeLiveVideoEffectManager VeLiveVideoEffectManager}。
961
+ * 视频特效管理对象 VeLiveVideoEffectManager{@link #VeLiveVideoEffectManager}。
854
962
  * @notes <br>
855
963
  * 该接口需要集成美颜特效 CV SDK 后才能使用。
856
964
  * @order 46
965
+ *
857
966
  */
967
+
858
968
  getVideoEffectManager(): VeLiveVideoEffectManager;
859
969
  /** {zh}
860
970
  * @detail api
861
971
  * @brief 自定义视频处理。
862
972
  * @order 47
863
973
  * @param filter 视频数据处理回调,详情请参见 [VeLiveVideoFrameFilter](147519#VeLiveVideoFrameFilter)。
974
+ *
864
975
  */
976
+
865
977
  setVideoFrameFilter(filter: VeLiveVideoFrameFilter): void;
866
978
  /** {zh}
867
979
  * @detail api
868
980
  * @brief 获取音频模块管理对象。
869
981
  * @return <br>
870
- * 音频模块管理对象 {@link #VeLiveAudioDevice VeLiveAudioDevice}。
982
+ * 音频模块管理对象 VeLiveAudioDevice{@link #VeLiveAudioDevice}。
871
983
  * @notes <br>
872
- * 该接口需要在 {@link #startAudioCapture startAudioCapture} 方法中设置 {@link #VeLiveAudioCaptureType VeLiveAudioCaptureType} 为 VeLiveAudioCaptureMicrophone。
984
+ * 该接口需要在 startAudioCapture{@link #startAudioCapture} 方法中设置 VeLiveAudioCaptureType{@link #VeLiveAudioCaptureType} 为 VeLiveAudioCaptureMicrophone。
873
985
  * @order 48
986
+ *
874
987
  */
988
+
875
989
  getAudioDevice(): VeLiveAudioDevice;
876
990
  /** {zh}
877
991
  * @detail api
878
992
  * @brief 自定义音频处理。
879
993
  * @order 49
880
994
  * @param filter 音频帧滤镜对象 VeLiveAudioFrameFilter 。
995
+ *
881
996
  */
997
+
882
998
  setAudioFrameFilter(filter: VeLiveAudioFrameFilter): void;
883
999
  /** {zh}
884
1000
  * @detail api
885
1001
  * @brief 创建播放器。
886
1002
  * @return <br>
887
- * 播放器管理对象 {@link #VeLiveMediaPlayer VeLiveMediaPlayer}。
1003
+ * 播放器管理对象 VeLiveMediaPlayer{@link #VeLiveMediaPlayer}。
888
1004
  * @order 50
1005
+ *
889
1006
  */
1007
+
890
1008
  createPlayer(): VeLiveMediaPlayer;
891
1009
  /** {zh}
892
1010
  * @detail api
893
1011
  * @brief 获取混流管理对象。
894
1012
  * @return <br>
895
- * 混流管理对象 {@link #VeLiveMixerManager VeLiveMixerManager}。
1013
+ * 混流管理对象 VeLiveMixerManager{@link #VeLiveMixerManager}。
896
1014
  * @order 51
1015
+ *
897
1016
  */
1017
+
898
1018
  getMixerManager(): VeLiveMixerManager;
899
1019
  /** {zh}
900
1020
  * @detail api
@@ -902,19 +1022,25 @@ export declare class VeLivePusher {
902
1022
  * @order 52
903
1023
  * @param enableAppAudio 是否支持应用内音频数据,默认为 true,该参数暂不支持修改。
904
1024
  * @param screenIntent 系统屏幕录制权限。
1025
+ *
905
1026
  */
1027
+
906
1028
  startScreenRecording(enableAppAudio: boolean, screenIntent: Intent): void;
907
1029
  /** {zh}
908
1030
  * @detail api
909
1031
  * @brief 停止屏幕采集。
910
1032
  * @order 53
1033
+ *
911
1034
  */
1035
+
912
1036
  stopScreenRecording(): void;
913
1037
  /** {zh}
914
1038
  * @detail api
915
1039
  * @brief 获取当前是否处于屏幕采集状态。
916
1040
  * @order 54
1041
+ *
917
1042
  */
1043
+
918
1044
  isScreenRecording(): boolean;
919
1045
  /** {zh}
920
1046
  * @detail api
@@ -924,7 +1050,9 @@ export declare class VeLivePusher {
924
1050
  * - <0:失败。
925
1051
  * @order 55
926
1052
  * @param listener 视频帧的监听回调,详细信息请参见 [VeLiveVideoFrameListener](147519#VeLiveVideoFrameListener)。
1053
+ *
927
1054
  */
1055
+
928
1056
  addVideoFrameListener(listener: VeLiveVideoFrameListener): int;
929
1057
  /** {zh}
930
1058
  * @detail api
@@ -936,7 +1064,9 @@ export declare class VeLivePusher {
936
1064
  * 如果没有添加过此监听回调或者监听回调已被移除,调用此方法将返回失败。
937
1065
  * @order 56
938
1066
  * @param listener 视频帧的监听回调,详细信息请参见 [VeLiveVideoFrameListener](147519#VeLiveVideoFrameListener)。
1067
+ *
939
1068
  */
1069
+
940
1070
  removeVideoFrameListener(listener: VeLiveVideoFrameListener): int;
941
1071
  /** {zh}
942
1072
  * @detail api
@@ -946,7 +1076,9 @@ export declare class VeLivePusher {
946
1076
  * - <0:失败。
947
1077
  * @order 57
948
1078
  * @param listener 音频帧监听回调,详细信息请参见 [VeLiveAudioFrameListener](147519#VeLiveAudioFrameListener)。
1079
+ *
949
1080
  */
1081
+
950
1082
  addAudioFrameListener(listener: VeLiveAudioFrameListener): int;
951
1083
  /** {zh}
952
1084
  * @detail api
@@ -958,29 +1090,20 @@ export declare class VeLivePusher {
958
1090
  * 如果没有添加过此监听回调或者监听回调已被移除,调用此方法将返回失败。
959
1091
  * @order 58
960
1092
  * @param listener 音频帧的监听回调,详细信息请参见 [VeLiveAudioFrameListener](147519#VeLiveAudioFrameListener) 。
1093
+ *
961
1094
  */
1095
+
962
1096
  removeAudioFrameListener(listener: VeLiveAudioFrameListener): int;
963
1097
  /** {zh}
964
1098
  * @detail api
965
1099
  * @brief 视频截图。
966
1100
  * @order 59
967
1101
  * @param listener 截图监听对象,详情请参见 [VeLiveSnapshotListener](147519#VeLiveSnapshotListener)。
1102
+ *
968
1103
  */
1104
+
969
1105
  snapshot(listener: VeLiveSnapshotListener): void;
970
1106
  }
971
- export declare class Parameter {
972
- static readonly WIDTH: String;
973
- static readonly HEIGHT: String;
974
- static readonly FPS: String;
975
- static readonly ZOOM: String;
976
- static readonly FOCUS_MODE: String;
977
- static readonly FOCUS_MODE_AUTO: String;
978
- static readonly CURRENT_ISO: String;
979
- setInt(key: String, value: int): int;
980
- getInt(key: String): int;
981
- setFloat(key: String, value: float): int;
982
- getFloat(key: String): float;
983
- }
984
1107
  export declare class VeLiveMixerManager {
985
1108
  /** {zh}
986
1109
  * @detail api
@@ -988,7 +1111,9 @@ export declare class VeLiveMixerManager {
988
1111
  * @return <br>
989
1112
  * 视频流 ID。
990
1113
  * @order 79
1114
+ *
991
1115
  */
1116
+
992
1117
  addVideoStream(): int;
993
1118
  /** {zh}
994
1119
  * @detail api
@@ -996,7 +1121,9 @@ export declare class VeLiveMixerManager {
996
1121
  * @return <br>
997
1122
  * 音频流 ID。
998
1123
  * @order 80
1124
+ *
999
1125
  */
1126
+
1000
1127
  addAudioStream(): int;
1001
1128
  /** {zh}
1002
1129
  * @detail api
@@ -1005,31 +1132,41 @@ export declare class VeLiveMixerManager {
1005
1132
  * 音频流 ID。
1006
1133
  * @order 81
1007
1134
  * @param type 混流类型,详情请参见 [VeLiveAudioMixType](147521#VeLiveAudioMixType) 。
1135
+ *
1008
1136
  */
1009
- addAudioStream_VeLiveAudioMixType(type: VeLiveAudioMixType): int;
1137
+
1138
+ addAudioStream_type(type: VeLiveAudioMixType): int;
1010
1139
  /** {zh}
1011
1140
  * @detail api
1012
1141
  * @brief 获取主路视频流 ID。
1013
1142
  * @order 83
1143
+ *
1014
1144
  */
1145
+
1015
1146
  getOriginVideoStream(): int;
1016
1147
  /** {zh}
1017
1148
  * @detail api
1018
1149
  * @brief 获取主路音频流 ID。
1019
1150
  * @order 84
1151
+ *
1020
1152
  */
1153
+
1021
1154
  getOriginAudioStream(): int;
1022
1155
  /** {zh}
1023
1156
  * @detail api
1024
1157
  * @brief 获取主路屏幕流 ID。
1025
1158
  * @order 85
1159
+ *
1026
1160
  */
1161
+
1027
1162
  getOriginScreenStream(): int;
1028
1163
  /** {zh}
1029
1164
  * @detail api
1030
1165
  * @brief 获取主路系统音频流 ID。
1031
1166
  * @order 86
1167
+ *
1032
1168
  */
1169
+
1033
1170
  getOriginSystemAudioStream(): int;
1034
1171
  /** {zh}
1035
1172
  * @detail api
@@ -1037,7 +1174,9 @@ export declare class VeLiveMixerManager {
1037
1174
  * @order 87
1038
1175
  * @param frame 自定义的视频帧,详情请参见 [VeLiveVideoFrame](147517#VeLiveVideoFrame) 。
1039
1176
  * @param streamId 需要混流的视频流 ID。
1177
+ *
1040
1178
  */
1179
+
1041
1180
  sendCustomVideoFrame(frame: VeLiveVideoFrame, streamId: int): void;
1042
1181
  /** {zh}
1043
1182
  * @detail api
@@ -1045,27 +1184,35 @@ export declare class VeLiveMixerManager {
1045
1184
  * @order 88
1046
1185
  * @param frame 自定义的音频帧,详情请参见 [VeLiveAudioFrame](147517#VeLiveAudioFrame) 。
1047
1186
  * @param streamId 混流的音频流 ID。
1187
+ *
1048
1188
  */
1189
+
1049
1190
  sendCustomAudioFrame(frame: VeLiveAudioFrame, streamId: int): void;
1050
1191
  /** {zh}
1051
1192
  * @detail api
1052
1193
  * @brief 更新音视频混流的布局。
1053
1194
  * @param mixDescription 新的音视频混流布局,详情请参见 [VeLiveStreamMixDescription](147521#VeLiveStreamMixDescription)。
1195
+ *
1054
1196
  */
1197
+
1055
1198
  updateStreamMixDescription(mixDescription: VeLiveStreamMixDescription): void;
1056
1199
  /** {zh}
1057
1200
  * @detail api
1058
1201
  * @brief 从混流器中移除一路非主路的视频流。
1059
1202
  * @order 80
1060
1203
  * @param streamId 需要移除的非主路视频流 ID。
1204
+ *
1061
1205
  */
1206
+
1062
1207
  removeVideoStream(streamId: int): void;
1063
1208
  /** {zh}
1064
1209
  * @detail api
1065
1210
  * @brief 从混流器中移除一路非主路的音频流。
1066
1211
  * @order 82
1067
1212
  * @param streamId 需要移除的非主路音频流 ID。
1213
+ *
1068
1214
  */
1215
+
1069
1216
  removeAudioStream(streamId: int): void;
1070
1217
  }
1071
1218
  export declare class VeLiveMediaPlayer {
@@ -1073,7 +1220,9 @@ export declare class VeLiveMediaPlayer {
1073
1220
  * @detail api
1074
1221
  * @brief 销毁播放器实例。
1075
1222
  * @order 100
1223
+ *
1076
1224
  */
1225
+
1077
1226
  release(): void;
1078
1227
  /** {zh}
1079
1228
  * @detail api
@@ -1082,7 +1231,9 @@ export declare class VeLiveMediaPlayer {
1082
1231
  * 重复调用本方法,仅最后一次调用生效。
1083
1232
  * @order 101
1084
1233
  * @param listener 播放状态监听。详情请参见 [VeLiveMediaPlayerListener](147519#VeLiveMediaPlayerListener)。
1234
+ *
1085
1235
  */
1236
+
1086
1237
  setListener(listener: VeLiveMediaPlayerListener): void;
1087
1238
  /** {zh}
1088
1239
  * @detail api
@@ -1092,15 +1243,19 @@ export declare class VeLiveMediaPlayer {
1092
1243
  * - ≠0:失败。
1093
1244
  * @order 102
1094
1245
  * @param url 文件路径。
1246
+ *
1095
1247
  */
1248
+
1096
1249
  prepare(url: String): int;
1097
1250
  /** {zh}
1098
1251
  * @detail api
1099
1252
  * @brief 暂停播放。
1100
1253
  * @notes <br>
1101
- * 需要在调用 {@link #start start} 开始播放后,调用本方法。
1254
+ * 需要在调用 start{@link #start} 开始播放后,调用本方法。
1102
1255
  * @order 103
1256
+ *
1103
1257
  */
1258
+
1104
1259
  start(): int;
1105
1260
  /** {zh}
1106
1261
  * @detail api
@@ -1109,23 +1264,29 @@ export declare class VeLiveMediaPlayer {
1109
1264
  * - 0:成功;
1110
1265
  * - ≠0:失败。
1111
1266
  * @notes <br>
1112
- * 需要在调用 {@link #start start} 开始播放后,调用本方法。
1267
+ * 需要在调用 start{@link #start} 开始播放后,调用本方法。
1113
1268
  * @order 104
1269
+ *
1114
1270
  */
1271
+
1115
1272
  stop(): int;
1116
1273
  /** {zh}
1117
1274
  * @detail api
1118
1275
  * @brief 暂停播放。
1119
1276
  * @notes <br>需要在调用 [start](#VeLiveMediaPlayer-start)[start](#VeLiveMediaPlayer-start) 开始播放后,调用本方法。
1120
1277
  * @order 105
1278
+ *
1121
1279
  */
1280
+
1122
1281
  pause(): void;
1123
1282
  /** {zh}
1124
1283
  * @detail api
1125
1284
  * @brief 恢复播放。
1126
1285
  * @notes <br>需要在调用 [pause](#VeLiveMediaPlayer-pause) 暂停播放后,调用本方法。
1127
1286
  * @order 106
1287
+ *
1128
1288
  */
1289
+
1129
1290
  resume(): void;
1130
1291
  /** {zh}
1131
1292
  * @detail api
@@ -1135,7 +1296,9 @@ export declare class VeLiveMediaPlayer {
1135
1296
  * - ≤0:失败。
1136
1297
  * @notes <br>需要在调用 [start](#VeLiveMediaPlayer-start) 开始播放后,调用本方法。
1137
1298
  * @order 107
1299
+ *
1138
1300
  */
1301
+
1139
1302
  getDuration(): long;
1140
1303
  /** {zh}
1141
1304
  * @detail api
@@ -1145,7 +1308,9 @@ export declare class VeLiveMediaPlayer {
1145
1308
  * - ≠0:失败。
1146
1309
  * @order 108
1147
1310
  * @param posMs 播放时间,单位为 ms。
1311
+ *
1148
1312
  */
1313
+
1149
1314
  seek(posMs: long): int;
1150
1315
  /** {zh}
1151
1316
  * @detail api
@@ -1154,7 +1319,9 @@ export declare class VeLiveMediaPlayer {
1154
1319
  * - ture:开启;
1155
1320
  * - false:关闭。
1156
1321
  * @order 109
1322
+ *
1157
1323
  */
1324
+
1158
1325
  enableMixer(enable: boolean): void;
1159
1326
  /** {zh}
1160
1327
  * @detail api
@@ -1162,14 +1329,18 @@ export declare class VeLiveMediaPlayer {
1162
1329
  * @order 110
1163
1330
  * @param sourceLufs 源响度。
1164
1331
  * @param targetLufs 目标响度。
1332
+ *
1165
1333
  */
1334
+
1166
1335
  enableAutoEq(sourceLufs: float, targetLufs: float): void;
1167
1336
  /** {zh}
1168
1337
  * @detail api
1169
1338
  * @brief 支持 MP4 格式的视频渲染。
1170
1339
  * @order 111
1171
1340
  * @param view 渲染视图。
1341
+ *
1172
1342
  */
1343
+
1173
1344
  setRenderView(view: View): void;
1174
1345
  /** {zh}
1175
1346
  * @detail api
@@ -1178,14 +1349,18 @@ export declare class VeLiveMediaPlayer {
1178
1349
  * 重复调用本方法,仅最后一次调用生效。
1179
1350
  * @order 112
1180
1351
  * @param listener 音视频帧回调监听。详情请参见 [VeLiveMediaPlayerFrameListener](147519#VeLiveMediaPlayerFrameListener)。
1352
+ *
1181
1353
  */
1354
+
1182
1355
  setFrameListener(listener: VeLiveMediaPlayerFrameListener): void;
1183
1356
  /** {zh}
1184
1357
  * @detail api
1185
1358
  * @brief 设置播放音频的音量。
1186
1359
  * @order 113
1187
1360
  * @param volume 播放音频音量,取值范围为 [0.0,4.0]。
1361
+ *
1188
1362
  */
1363
+
1189
1364
  setBGMVolume(volume: float): void;
1190
1365
  /** {zh}
1191
1366
  * @detail api
@@ -1193,7 +1368,9 @@ export declare class VeLiveMediaPlayer {
1193
1368
  * @notes <br>需要在调用 [start](#VeLiveMediaPlayer-start) 开始播放背景音乐后,调用本方法。
1194
1369
  * @order 114
1195
1370
  * @param volume 音频采集音量,取值范围为 [0.0,4.0]。
1371
+ *
1196
1372
  */
1373
+
1197
1374
  setVoiceVolume(volume: float): void;
1198
1375
  /** {zh}
1199
1376
  * @detail api
@@ -1202,58 +1379,73 @@ export declare class VeLiveMediaPlayer {
1202
1379
  * - true:循环播放;
1203
1380
  * - false:不循环播放。
1204
1381
  * @order 115
1382
+ *
1205
1383
  */
1384
+
1206
1385
  enableBGMLoop(loop: boolean): void;
1207
1386
  }
1208
1387
  export declare class VeLiveAudioFrame {
1388
+ constructor();
1389
+ constructor(sampleRate: VeLiveAudioSampleRate, channel: VeLiveAudioChannel, pts: long, buffer: ByteBuffer);
1209
1390
  bufferType: any;
1210
1391
  sampleRate: any;
1211
1392
  channels: any;
1212
1393
  ptsUs: any;
1213
1394
  buffer: any;
1214
1395
  samplesPerChannel: any;
1215
- static new_VeLiveAudioFrame_VeLiveAudioSampleRate$VeLiveAudioChannel$long$ByteBuffer(sampleRate: VeLiveAudioSampleRate, channel: VeLiveAudioChannel, pts: long, buffer: ByteBuffer): VeLiveAudioFrame;
1216
1396
  /** {zh}
1217
1397
  * @detail api
1218
1398
  * @brief 获取音频数据类型。
1219
1399
  * @return <br>
1220
- * 音频数据类型,详情请参见 {@link #VeLiveAudioBufferType VeLiveAudioBufferType}。
1400
+ * 音频数据类型,详情请参见 VeLiveAudioBufferType{@link #VeLiveAudioBufferType}。
1401
+ *
1221
1402
  */
1403
+
1222
1404
  getBufferType(): VeLiveAudioBufferType;
1223
1405
  /** {zh}
1224
1406
  * @detail api
1225
1407
  * @brief 获取音频采样率。
1226
1408
  * @return <br>
1227
- * 音频采样率,详情请参见 {@link #VeLiveAudioSampleRate VeLiveAudioSampleRate}。
1409
+ * 音频采样率,详情请参见 VeLiveAudioSampleRate{@link #VeLiveAudioSampleRate}。
1410
+ *
1228
1411
  */
1412
+
1229
1413
  getSampleRate(): VeLiveAudioSampleRate;
1230
1414
  /** {zh}
1231
1415
  * @detail api
1232
1416
  * @brief 获取音频声道数。
1233
1417
  * @return <br>
1234
- * 音频声道数,详情请参见 {@link #VeLiveAudioChannel VeLiveAudioChannel}。
1418
+ * 音频声道数,详情请参见 VeLiveAudioChannel{@link #VeLiveAudioChannel}。
1419
+ *
1235
1420
  */
1421
+
1236
1422
  getChannels(): VeLiveAudioChannel;
1237
1423
  /** {zh}
1238
1424
  * @detail api
1239
1425
  * @brief 获取音频位深度。
1240
1426
  * @return <br>
1241
1427
  * 音频位深度。
1428
+ *
1242
1429
  */
1430
+
1243
1431
  getSamplesPerChannel(): int;
1244
1432
  /** {zh}
1245
1433
  * @detail api
1246
1434
  * @brief 获取音频时间戳,单位为 μs。
1247
1435
  * @return <br>
1248
1436
  * 音频时间戳,单位为 μs。
1437
+ *
1249
1438
  */
1439
+
1250
1440
  getPts(): long;
1251
1441
  /** {zh}
1252
1442
  * @detail api
1253
1443
  * @brief 获取音频数据。音频帧数据为 float32 格式小端字节序存储。
1254
1444
  * @return <br>
1255
1445
  * 格式为 ByteBuffer 的音频数据。
1446
+ *
1256
1447
  */
1448
+
1257
1449
  getBuffer(): ByteBuffer;
1258
1450
  }
1259
1451
  export declare class VeLiveAudioDevice {
@@ -1262,7 +1454,9 @@ export declare class VeLiveAudioDevice {
1262
1454
  * @brief 设置音量响度。
1263
1455
  * @order 74
1264
1456
  * @param level 音量响度等级,取值范围为 [0.0,4.0]。
1457
+ *
1265
1458
  */
1459
+
1266
1460
  setVoiceLoudness(level: float): void;
1267
1461
  /** {zh}
1268
1462
  * @detail api
@@ -1270,7 +1464,9 @@ export declare class VeLiveAudioDevice {
1270
1464
  * @return <br>
1271
1465
  * 当前音量响度等级。
1272
1466
  * @order 75
1467
+ *
1273
1468
  */
1469
+
1274
1470
  getVoiceLoudness(): float;
1275
1471
  /** {zh}
1276
1472
  * @detail api
@@ -1279,7 +1475,9 @@ export declare class VeLiveAudioDevice {
1279
1475
  * - true:支持;
1280
1476
  * - false:不支持。
1281
1477
  * @order 76
1478
+ *
1282
1479
  */
1480
+
1283
1481
  isSupportHardwareEcho(): boolean;
1284
1482
  /** {zh}
1285
1483
  * @detail api
@@ -1288,7 +1486,9 @@ export declare class VeLiveAudioDevice {
1288
1486
  * - true:开启;
1289
1487
  * - false:关闭。
1290
1488
  * @order 77
1489
+ *
1291
1490
  */
1491
+
1292
1492
  enableEcho(enable: boolean): void;
1293
1493
  /** {zh}
1294
1494
  * @detail api
@@ -1297,7 +1497,9 @@ export declare class VeLiveAudioDevice {
1297
1497
  * - true:开启;
1298
1498
  * - false:关闭。
1299
1499
  * @order 78
1500
+ *
1300
1501
  */
1502
+
1301
1503
  isEnableEcho(): boolean;
1302
1504
  }
1303
1505
  export declare class VeLivePusherConfiguration {
@@ -1306,103 +1508,129 @@ export declare class VeLivePusherConfiguration {
1306
1508
  * @brief 设置推流器推流失败后尝试重连的时间间隔。
1307
1509
  * @param interval 时间间隔,单位为 s,默认值为 5
1308
1510
  * @order 2
1511
+ *
1309
1512
  */
1310
- setReconnectIntervalSeconds(interval: int): VeLivePusherConfiguration;
1513
+
1514
+ setReconnectIntervalSeconds(interval: int): this;
1311
1515
  /** {zh}
1312
1516
  * @detail api
1313
1517
  * @brief 获取推流器推流失败后尝试重连的时间间隔。
1314
1518
  * @return <br>
1315
1519
  * 时间间隔,单位为 s。
1316
1520
  * @order 3
1521
+ *
1317
1522
  */
1523
+
1318
1524
  getReconnectIntervalSeconds(): int;
1319
1525
  /** {zh}
1320
1526
  * @detail api
1321
1527
  * @brief 设置推流器推流失败后尝试重连的次数。
1322
1528
  * @param maxCount 重连次数,默认值为 3
1323
1529
  * @order 4
1530
+ *
1324
1531
  */
1325
- setReconnectCount(maxCount: int): VeLivePusherConfiguration;
1532
+
1533
+ setReconnectCount(maxCount: int): this;
1326
1534
  /** {zh}
1327
1535
  * @detail api
1328
1536
  * @brief 获取推流器推流失败后尝试重连的次数。
1329
1537
  * @return <br>
1330
1538
  * 重连次数。
1331
1539
  * @order 5
1540
+ *
1332
1541
  */
1542
+
1333
1543
  getReconnectCount(): int;
1334
1544
  /** {zh}
1335
1545
  * @detail api
1336
1546
  * @brief 设置视频采集参数,用于调整和设置视频采集相关的参数。
1337
1547
  * @return <br>
1338
- * 推流引擎初始化配置对象,详情请参见 {@link #VeLivePusherConfiguration VeLivePusherConfiguration}。
1548
+ * 推流引擎初始化配置对象,详情请参见 VeLivePusherConfiguration{@link #VeLivePusherConfiguration}。
1339
1549
  * @order 6
1340
1550
  * @param config 视频采集参数,详情请参见 [VeLiveVideoCaptureConfiguration](147521#VeLiveVideoCaptureConfiguration)。
1551
+ *
1341
1552
  */
1342
- setVideoCaptureConfig(config: VeLiveVideoCaptureConfiguration): VeLivePusherConfiguration;
1553
+
1554
+ setVideoCaptureConfig(config: VeLiveVideoCaptureConfiguration): this;
1343
1555
  /** {zh}
1344
1556
  * @detail api
1345
1557
  * @brief 获取视频采集参数,用于调整和设置视频采集相关的参数。
1346
1558
  * @return <br>视频采集参数配置对象,详情请参见 [VeLiveVideoCaptureConfiguration](147521#VeLiveVideoCaptureConfiguration)。
1347
1559
  * @order 7
1560
+ *
1348
1561
  */
1562
+
1349
1563
  getVideoCaptureConfig(): VeLiveVideoCaptureConfiguration;
1350
1564
  /** {zh}
1351
1565
  * @detail api
1352
1566
  * @brief 设置音频采集参数,用于调整和设置音频采集相关的参数。
1353
1567
  * @return <br>
1354
- * 推流引擎初始化配置对象,详情请参见 {@link #VeLivePusherConfiguration VeLivePusherConfiguration}。
1568
+ * 推流引擎初始化配置对象,详情请参见 VeLivePusherConfiguration{@link #VeLivePusherConfiguration}。
1355
1569
  * @order 7
1356
1570
  * @param config 音频采集参数,详情请参见 [VeLiveAudioCaptureConfiguration](147521#VeLiveAudioCaptureConfiguration)。
1571
+ *
1357
1572
  */
1358
- setAudioCaptureConfig(config: VeLiveAudioCaptureConfiguration): VeLivePusherConfiguration;
1573
+
1574
+ setAudioCaptureConfig(config: VeLiveAudioCaptureConfiguration): this;
1359
1575
  /** {zh}
1360
1576
  * @detail api
1361
1577
  * @brief 获取音频采集参数,用于调整和设置音频采集相关的参数。
1362
1578
  * @return <br>音频采集参数配置对象,详情请参见 [VeLiveAudioCaptureConfiguration](147521#VeLiveAudioCaptureConfiguration)。
1363
1579
  * @order 8
1580
+ *
1364
1581
  */
1582
+
1365
1583
  getAudioCaptureConfig(): VeLiveAudioCaptureConfiguration;
1366
1584
  /** {zh}
1367
1585
  * @detail api
1368
1586
  * @brief 设置应用上下文。
1369
1587
  * @return <br>
1370
- * 推流引擎初始化配置对象,详情请参见 {@link #VeLivePusherConfiguration VeLivePusherConfiguration}。
1588
+ * 推流引擎初始化配置对象,详情请参见 VeLivePusherConfiguration{@link #VeLivePusherConfiguration}。
1371
1589
  * @order 9
1372
1590
  * @param context 应用上下文。
1591
+ *
1373
1592
  */
1374
- setContext(context: Context): VeLivePusherConfiguration;
1593
+
1594
+ setContext(context: Context): this;
1375
1595
  /** {zh}
1376
1596
  * @detail api
1377
1597
  * @brief 获取应用上下文。
1378
1598
  * @return <br>
1379
1599
  * 应用上下文。
1380
1600
  * @order 10
1601
+ *
1381
1602
  */
1603
+
1382
1604
  getContext(): Context;
1383
1605
  /** {zh}
1384
1606
  * @detail api
1385
1607
  * @brief 设置扩展参数,默认不需要设置。如果需要使用,您可通过提交工单联系[技术支持](https://console.volcengine.com/workorder/create?step=3&SubProductID=P00000076)。
1386
1608
  * @return <br>
1387
- * 推流引擎初始化配置对象,详情请参见 {@link #VeLivePusherConfiguration VeLivePusherConfiguration}。
1609
+ * 推流引擎初始化配置对象,详情请参见 VeLivePusherConfiguration{@link #VeLivePusherConfiguration}。
1388
1610
  * @order 11
1389
1611
  * @param params 扩展参数
1612
+ *
1390
1613
  */
1391
- setExtraParameters(params: String): VeLivePusherConfiguration;
1614
+
1615
+ setExtraParameters(params: String): this;
1392
1616
  /** {zh}
1393
1617
  * @detail api
1394
1618
  * @brief 获取扩展参数。
1395
1619
  * @return <br>
1396
1620
  * 扩展参数。
1397
1621
  * @order 12
1622
+ *
1398
1623
  */
1624
+
1399
1625
  getExtraParams(): LiveSdkSetting;
1400
1626
  /** {zh}
1401
1627
  * @detail api
1402
1628
  * @brief 构造推流引擎。
1403
1629
  * @return <br>
1404
- * 推流引擎,详情请参见 {@link #VeLivePusher VeLivePusher}。
1630
+ * 推流引擎,详情请参见 VeLivePusher{@link #VeLivePusher}。
1405
1631
  * @order 1
1632
+ *
1406
1633
  */
1634
+
1407
1635
  build(): VeLivePusher;
1408
1636
  }