@volcengine/react-native-live-push 1.0.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 (54) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +2 -0
  3. package/android/build.gradle +92 -0
  4. package/android/gradle.properties +5 -0
  5. package/android/src/main/AndroidManifest.xml +16 -0
  6. package/android/src/main/AndroidManifestNew.xml +16 -0
  7. package/android/src/main/java/com/volcengine/velive/rn/push/ExternalSourceHelper.java +58 -0
  8. package/android/src/main/java/com/volcengine/velive/rn/push/NativeVariableManager.java +19 -0
  9. package/android/src/main/java/com/volcengine/velive/rn/push/ScreenCaptureHelper.java +73 -0
  10. package/android/src/main/java/com/volcengine/velive/rn/push/VeLivePushModule.java +182 -0
  11. package/android/src/main/java/com/volcengine/velive/rn/push/VeLivePushModuleSpec.java +16 -0
  12. package/android/src/main/java/com/volcengine/velive/rn/push/VeLivePushPackage.java +27 -0
  13. package/android/src/main/java/com/volcengine/velive/rn/push/VeLivePushView.java +45 -0
  14. package/android/src/main/java/com/volcengine/velive/rn/push/VeLivePushViewManager.java +87 -0
  15. package/ios/VeLivePushSDK.h +24 -0
  16. package/ios/VeLivePushSDK.m +109 -0
  17. package/ios/VeLivePushView.h +24 -0
  18. package/ios/VeLivePushView.m +74 -0
  19. package/ios/VeLivePushViewManager.m +59 -0
  20. package/lib/commonjs/index.js +24238 -0
  21. package/lib/module/index.js +24186 -0
  22. package/lib/typescript/android/index.d.ts +44 -0
  23. package/lib/typescript/codegen/android/api.d.ts +1408 -0
  24. package/lib/typescript/codegen/android/callback.d.ts +265 -0
  25. package/lib/typescript/codegen/android/errorcode.d.ts +50 -0
  26. package/lib/typescript/codegen/android/index.d.ts +5 -0
  27. package/lib/typescript/codegen/android/keytype.d.ts +1069 -0
  28. package/lib/typescript/codegen/android/types.d.ts +32 -0
  29. package/lib/typescript/codegen/ios/api.d.ts +1133 -0
  30. package/lib/typescript/codegen/ios/callback.d.ts +251 -0
  31. package/lib/typescript/codegen/ios/errorcode.d.ts +104 -0
  32. package/lib/typescript/codegen/ios/index.d.ts +5 -0
  33. package/lib/typescript/codegen/ios/keytype.d.ts +934 -0
  34. package/lib/typescript/codegen/ios/types.d.ts +35 -0
  35. package/lib/typescript/codegen/pack/api.d.ts +1923 -0
  36. package/lib/typescript/codegen/pack/callback.d.ts +545 -0
  37. package/lib/typescript/codegen/pack/errorcode.d.ts +174 -0
  38. package/lib/typescript/codegen/pack/index.d.ts +5 -0
  39. package/lib/typescript/codegen/pack/keytype.d.ts +1953 -0
  40. package/lib/typescript/codegen/pack/types.d.ts +1 -0
  41. package/lib/typescript/codegen/type-shim.d.ts +6 -0
  42. package/lib/typescript/component.d.ts +8 -0
  43. package/lib/typescript/core/api.d.ts +2 -0
  44. package/lib/typescript/core/callback.d.ts +2 -0
  45. package/lib/typescript/core/env.d.ts +29 -0
  46. package/lib/typescript/core/errorcode.d.ts +2 -0
  47. package/lib/typescript/core/index.d.ts +6 -0
  48. package/lib/typescript/core/keytype.d.ts +7 -0
  49. package/lib/typescript/core/pusher.d.ts +16 -0
  50. package/lib/typescript/index.d.ts +2 -0
  51. package/lib/typescript/ios/extends.d.ts +41 -0
  52. package/lib/typescript/runtime.d.ts +1 -0
  53. package/package.json +31 -0
  54. package/react-native-velive-push.podspec +45 -0
@@ -0,0 +1,545 @@
1
+ import { VeLiveVideoFrame, VeLiveAudioFrame } from './api';
2
+ import * as $p_a from '../android/index';
3
+ import * as $p_i from '../ios/index';
4
+ import { VeLivePusherStatus, VeLiveFirstFrameType, VeLiveNetworkQuality, VeLiveAudioPowerLevel, VeLivePusherStatistics } from './keytype';
5
+ /** {zh}
6
+ * @detail callback
7
+ * @list overview
8
+ * @brief 自定义的视频处理回调。
9
+ */
10
+
11
+ export interface VeLiveVideoFrameFilter {
12
+ /** {zh}
13
+ * @detail callback
14
+ * @group 回调
15
+ * @brief 自定义的视频处理方法。
16
+ * @order 15
17
+ * @param srcFrame 源视频帧,详情请参见 [VeLiveVideoFrame](147517#VeLiveVideoFrame)。
18
+ * @param dstFrame 处理后的视频帧,详情请参见 [VeLiveVideoFrame](147517#VeLiveVideoFrame)。
19
+ * @return
20
+ * - 0:处理成功;
21
+ * - <0:处理失败,该帧会被 SDK 丢弃;
22
+ * - \>0:处理失败,该帧会被 SDK 继续传递到编码器。
23
+ */
24
+
25
+ onVideoProcess?(srcFrame: VeLiveVideoFrame, dstFrame: VeLiveVideoFrame): number;
26
+ }
27
+ export declare class android_VeLiveVideoFrameFilter extends $p_a.VeLiveVideoFrameFilter {
28
+ protected _instance: VeLiveVideoFrameFilter;
29
+ constructor(_instance: VeLiveVideoFrameFilter);
30
+ onVideoProcess(arg_0: $p_a.VeLiveVideoFrame, arg_1: $p_a.VeLiveVideoFrame): number;
31
+ }
32
+ export declare class ios_VeLiveVideoFrameFilter extends $p_i.VeLiveVideoFrameFilter {
33
+ protected _instance: VeLiveVideoFrameFilter;
34
+ constructor(_instance: VeLiveVideoFrameFilter);
35
+ onVideoProcess(arg_0: $p_i.VeLiveVideoFrame, arg_1: $p_i.VeLiveVideoFrame): number;
36
+ }
37
+ /** {zh}
38
+ * @detail callback
39
+ * @list overview
40
+ * @brief 视频帧订阅回调。
41
+ */
42
+
43
+ export interface VeLiveVideoFrameListener {
44
+ /** {zh}
45
+ * @detail callback
46
+ * @group 回调
47
+ * @brief 采集视频帧回调。只有当您通过 {@link #VeLiveVideoFrameListener#getObservedVideoFrameSource getObservedVideoFrameSource} 返回 `VeLiveVideoFrameSourceCapture` 时,才会触发该回调。
48
+ * @order 18
49
+ * @param frame 视频帧数据,详情请参见 [VeLiveVideoFrame](147517#VeLiveVideoFrame)。
50
+ */
51
+
52
+ onCaptureVideoFrame?(frame: VeLiveVideoFrame): void;
53
+ /** {zh}
54
+ * @detail callback
55
+ * @group 回调
56
+ * @brief 编码前视频帧回调。只有当您通过 {@link #VeLiveVideoFrameListener#getObservedVideoFrameSource getObservedVideoFrameSource} 返回 `VeLiveVideoFrameSourcePreEncode` 时,才会触发该回调。
57
+ * @order 19
58
+ * @param frame 视频帧数据,详情请参见 [VeLiveVideoFrame](147517#VeLiveVideoFrame)。
59
+ */
60
+
61
+ onPreEncodeVideoFrame?(frame: VeLiveVideoFrame): void;
62
+ }
63
+ export declare class android_VeLiveVideoFrameListener extends $p_a.VeLiveVideoFrameListener {
64
+ protected _instance: VeLiveVideoFrameListener;
65
+ constructor(_instance: VeLiveVideoFrameListener);
66
+ onCaptureVideoFrame(arg_0: $p_a.VeLiveVideoFrame): void;
67
+ onPreEncodeVideoFrame(arg_0: $p_a.VeLiveVideoFrame): void;
68
+ }
69
+ export declare class ios_VeLiveVideoFrameListener extends $p_i.VeLiveVideoFrameListener {
70
+ protected _instance: VeLiveVideoFrameListener;
71
+ constructor(_instance: VeLiveVideoFrameListener);
72
+ onCaptureVideoFrame(arg_0: $p_i.VeLiveVideoFrame): void;
73
+ onPreEncodeVideoFrame(arg_0: $p_i.VeLiveVideoFrame): void;
74
+ }
75
+ /** {zh}
76
+ * @platform android
77
+ * @detail callback
78
+ * @list overview
79
+ * @brief 视频特效回调。
80
+ */
81
+
82
+ export interface VeLiveVideoEffectCallback {
83
+ /** {zh}
84
+ * @platform android
85
+ * @detail callback
86
+ * @group 回调
87
+ * @brief 视频特效处理结果回调。
88
+ * @param result 处理结果。
89
+ * @param msg 消息。
90
+ * @order 1
91
+ */
92
+
93
+ android_onResult?(result: number, msg: string): void;
94
+ }
95
+ export declare class android_VeLiveVideoEffectCallback extends $p_a.VeLiveVideoEffectCallback {
96
+ protected _instance: VeLiveVideoEffectCallback;
97
+ constructor(_instance: VeLiveVideoEffectCallback);
98
+ onResult(arg_0: $p_a.int, arg_1: string): void;
99
+ }
100
+ /** {zh}
101
+ * @detail callback
102
+ * @list overview
103
+ * @brief 播放器播放回调。通过该回调,您可以获取与播放相关的事件和通知。
104
+ */
105
+
106
+ export interface VeLiveMediaPlayerListener {
107
+ /** {zh}
108
+ * @detail callback
109
+ * @group 回调
110
+ * @brief 开始播放的回调。
111
+ * @param info \-
112
+ * @order 1
113
+ */
114
+
115
+ onStart?(info: $p_a.Bundle): void;
116
+ /** {zh}
117
+ * @detail callback
118
+ * @group 回调
119
+ * @brief 播放进度的回调,每 100ms 触发一次。
120
+ * @param timeMs 播放进度,单位为 ms。
121
+ */
122
+
123
+ onProgress?(timeMs: number): void;
124
+ /** {zh}
125
+ * @detail callback
126
+ * @group 回调
127
+ * @brief 停止播放的回调。
128
+ */
129
+
130
+ onStop?(): void;
131
+ /** {zh}
132
+ * @detail callback
133
+ * @group 回调
134
+ * @brief 返错误状态的回调。
135
+ * @param code 错误码,详情请参见 [VeLivePusherErrorCode](147520#VeLivePusherErrorCode)。
136
+ * @param msg 错误消息。
137
+ */
138
+
139
+ onError?(code: number, msg: string): void;
140
+ }
141
+ export declare class android_VeLiveMediaPlayerListener extends $p_a.VeLiveMediaPlayerListener {
142
+ protected _instance: VeLiveMediaPlayerListener;
143
+ constructor(_instance: VeLiveMediaPlayerListener);
144
+ onStart(arg_0: $p_a.Bundle): void;
145
+ onProgress(arg_0: $p_a.long): void;
146
+ onStop(): void;
147
+ onError(arg_0: $p_a.int, arg_1: string): void;
148
+ }
149
+ export declare class ios_VeLiveMediaPlayerListener extends $p_i.VeLiveMediaPlayerListener {
150
+ protected _instance: VeLiveMediaPlayerListener;
151
+ constructor(_instance: VeLiveMediaPlayerListener);
152
+ onStart(): void;
153
+ onProgress(arg_0: $p_i.long): void;
154
+ onStop(): void;
155
+ onError(arg_0: $p_i.NSError): void;
156
+ }
157
+ /** {zh}
158
+ * @detail callback
159
+ * @list overview
160
+ * @brief 音频帧订阅回调。
161
+ */
162
+
163
+ export interface VeLiveAudioFrameListener {
164
+ /** {zh}
165
+ * @detail callback
166
+ * @group 回调
167
+ * @brief 采集音频帧回调。只有当您通过 {@link #VeLiveAudioFrameListener#getObservedAudioFrameSource getObservedAudioFrameSource} 返回 `VeLiveAudioFrameSourceCapture` 时,才会触发该回调。
168
+ * @order 21
169
+ * @param frame 音频帧数据,详情请参见 [VeLiveAudioFrame](147517#VeLiveAudioFrame)。
170
+ */
171
+
172
+ onCaptureAudioFrame?(frame: VeLiveAudioFrame): void;
173
+ /** {zh}
174
+ * @detail callback
175
+ * @group 回调
176
+ * @brief 编码前音频帧回调。只有当您通过 {@link #VeLiveAudioFrameListener#getObservedAudioFrameSource getObservedAudioFrameSource} 返回 `VeLiveAudioFrameSourcePreEncode` 时,才会触发该回调。
177
+ * @order 22
178
+ * @param frame 音频帧数据,详情请参见 [VeLiveAudioFrame](147517#VeLiveAudioFrame)。
179
+ */
180
+
181
+ onPreEncodeAudioFrame?(frame: VeLiveAudioFrame): void;
182
+ }
183
+ export declare class android_VeLiveAudioFrameListener extends $p_a.VeLiveAudioFrameListener {
184
+ protected _instance: VeLiveAudioFrameListener;
185
+ constructor(_instance: VeLiveAudioFrameListener);
186
+ onCaptureAudioFrame(arg_0: $p_a.VeLiveAudioFrame): void;
187
+ onPreEncodeAudioFrame(arg_0: $p_a.VeLiveAudioFrame): void;
188
+ }
189
+ export declare class ios_VeLiveAudioFrameListener extends $p_i.VeLiveAudioFrameListener {
190
+ protected _instance: VeLiveAudioFrameListener;
191
+ constructor(_instance: VeLiveAudioFrameListener);
192
+ onCaptureAudioFrame(arg_0: $p_i.VeLiveAudioFrame): void;
193
+ onPreEncodeAudioFrame(arg_0: $p_i.VeLiveAudioFrame): void;
194
+ }
195
+ /** {zh}
196
+ * @detail callback
197
+ * @list overview
198
+ * @brief 播放器音视频帧回调。通过该回调,您可以获取音频和视频帧的数据。
199
+ */
200
+
201
+ export interface VeLiveMediaPlayerFrameListener {
202
+ /** {zh}
203
+ * @detail callback
204
+ * @group 回调
205
+ * @brief 播放器音频帧回调。
206
+ * @param frame 音频帧,详情请参见 [VeLiveAudioFrame](147517#VeLiveAudioFrame)。
207
+ */
208
+
209
+ onAudioFrame?(frame: VeLiveAudioFrame): void;
210
+ /** {zh}
211
+ * @detail callback
212
+ * @group 回调
213
+ * @brief 播放器视频帧回调。当完成一个新的视频帧的解码后,触发该回调。
214
+ * @param frame 视频帧数据,包含了帧的时间戳和格式等信息,详情请参见 [VeLiveVideoFrame](147517#VeLiveVideoFrame)。
215
+ */
216
+
217
+ onVideoFrame?(frame: VeLiveVideoFrame): void;
218
+ }
219
+ export declare class android_VeLiveMediaPlayerFrameListener extends $p_a.VeLiveMediaPlayerFrameListener {
220
+ protected _instance: VeLiveMediaPlayerFrameListener;
221
+ constructor(_instance: VeLiveMediaPlayerFrameListener);
222
+ onAudioFrame(arg_0: $p_a.VeLiveAudioFrame): void;
223
+ onVideoFrame(arg_0: $p_a.VeLiveVideoFrame): void;
224
+ }
225
+ export declare class ios_VeLiveMediaPlayerFrameListener extends $p_i.VeLiveMediaPlayerFrameListener {
226
+ protected _instance: VeLiveMediaPlayerFrameListener;
227
+ constructor(_instance: VeLiveMediaPlayerFrameListener);
228
+ onAudioFrame(arg_0: $p_i.VeLiveAudioFrame): void;
229
+ onVideoFrame(arg_0: $p_i.VeLiveVideoFrame): void;
230
+ }
231
+ /** {zh}
232
+ * @detail callback
233
+ * @list overview
234
+ * @brief 直播截图回调。
235
+ */
236
+
237
+ export interface VeLiveSnapshotListener {
238
+ /** {zh}
239
+ * @detail callback
240
+ * @group 回调
241
+ * @brief 截图成功回调。
242
+ * @notes <br>
243
+ * 调用 {@link #VeLivePusher#snapshot snapshot} 截图成功后,会收到这个回调。
244
+ * @order 15
245
+ * @param image 视频的截图。
246
+ */
247
+
248
+ onSnapshotComplete?(image: any): void;
249
+ }
250
+ export declare class android_VeLiveSnapshotListener extends $p_a.VeLiveSnapshotListener {
251
+ protected _instance: VeLiveSnapshotListener;
252
+ constructor(_instance: VeLiveSnapshotListener);
253
+ onSnapshotComplete(arg_0: $p_a.Bitmap): void;
254
+ }
255
+ export declare class ios_VeLiveSnapshotListener extends $p_i.VeLiveSnapshotListener {
256
+ protected _instance: VeLiveSnapshotListener;
257
+ constructor(_instance: VeLiveSnapshotListener);
258
+ onSnapshotComplete(arg_0: $p_i.UIImage): void;
259
+ }
260
+ /** {zh}
261
+ * @detail callback
262
+ * @list overview
263
+ * @brief 自定义的音频处理回调。
264
+ */
265
+
266
+ export interface VeLiveAudioFrameFilter {
267
+ /** {zh}
268
+ * @detail callback
269
+ * @group 回调
270
+ * @brief 自定义的音频处理方法。
271
+ * @order 16
272
+ * @param srcFrame 源音频帧,详情请参见 [VeLiveAudioFrame](147517#VeLiveAudioFrame)。
273
+ * @param dstFrame 处理后的音频帧,详情请参见 [VeLiveAudioFrame](147517#VeLiveAudioFrame)。
274
+ * - 0:处理成功;
275
+ * - ≠0:处理失败,该帧会被 SDK 继续传递到编码器;
276
+ */
277
+
278
+ onAudioProcess?(srcFrame: VeLiveAudioFrame, dstFrame: VeLiveAudioFrame): number;
279
+ }
280
+ export declare class android_VeLiveAudioFrameFilter extends $p_a.VeLiveAudioFrameFilter {
281
+ protected _instance: VeLiveAudioFrameFilter;
282
+ constructor(_instance: VeLiveAudioFrameFilter);
283
+ onAudioProcess(arg_0: $p_a.VeLiveAudioFrame, arg_1: $p_a.VeLiveAudioFrame): number;
284
+ }
285
+ export declare class ios_VeLiveAudioFrameFilter extends $p_i.VeLiveAudioFrameFilter {
286
+ protected _instance: VeLiveAudioFrameFilter;
287
+ constructor(_instance: VeLiveAudioFrameFilter);
288
+ onAudioProcess(arg_0: $p_i.VeLiveAudioFrame, arg_1: $p_i.VeLiveAudioFrame): number;
289
+ }
290
+ /** {zh}
291
+ * @detail callback
292
+ * @list overview
293
+ * @brief 回调协议,用于监听推流器的推流错误、状态、网络质量、设备、首帧等回调事件等。
294
+ */
295
+
296
+ export interface VeLivePusherObserver {
297
+ /** {zh}
298
+ * @detail callback
299
+ * @group 回调
300
+ * @brief 推流错误回调。
301
+ * @order 1
302
+ * @param code 错误码。详情请参见 [VeLivePusherErrorCode](147520#VeLivePusherErrorCode)。
303
+ * @param subCode 子错误码。
304
+ * @param msg 错误信息。
305
+ */
306
+
307
+ onError?(code: number, subCode: number, msg: string): void;
308
+ /** {zh}
309
+ * @detail callback
310
+ * @group 回调
311
+ * @brief 推流状态变化回调。
312
+ * @order 2
313
+ * @param status 变化后的推流状态。详情请参见 [VeLivePusherStatus](147521#VeLivePusherStatus)。
314
+ */
315
+
316
+ onStatusChange?(status: VeLivePusherStatus): void;
317
+ /** {zh}
318
+ * @detail callback
319
+ * @group 回调
320
+ * @brief 首帧视频回调,当推流器发送出第一帧视频时,触发该回调。
321
+ * @order 3
322
+ * @param type 首帧的类型,详情请参见 [VeLiveFirstFrameType](147521#VeLiveFirstFrameType)。
323
+ * @param timestampMs 时间戳,单位为 ms。
324
+ */
325
+
326
+ onFirstVideoFrame?(type: VeLiveFirstFrameType, timestampMs: number): void;
327
+ /** {zh}
328
+ * @detail callback
329
+ * @group 回调
330
+ * @brief 首帧音频回调,当推流器发送出第一帧音频时,触发该回调。
331
+ * @order 4
332
+ * @param type 首帧的类型,详情请参见 [VeLiveFirstFrameType](147521#VeLiveFirstFrameType)。
333
+ * @param timestampMs 时间戳,单位为 ms。
334
+ */
335
+
336
+ onFirstAudioFrame?(type: VeLiveFirstFrameType, timestampMs: number): void;
337
+ /** {zh}
338
+ * @detail callback
339
+ * @group 回调
340
+ * @brief 摄像头开启/关闭回调,当推流器的摄像头开启或关闭时,触发该回调。
341
+ * @param open 摄像头的新状态是否为开启。
342
+ * - true:摄像头开启;
343
+ * - false:摄像头关闭。
344
+ * @order 5
345
+ */
346
+
347
+ onCameraOpened?(open: boolean): void;
348
+ /** {zh}
349
+ * @detail callback
350
+ * @group 回调
351
+ * @brief 麦克风开启/关闭回调,当推流器的麦克风开启或关闭时,触发该回调。
352
+ * @param open 麦克风的新状态是否为开启。
353
+ * - true:麦克风开启;
354
+ * - false:麦克风关闭。
355
+ * @order 6
356
+ */
357
+
358
+ onMicrophoneOpened?(open: boolean): void;
359
+ /** {zh}
360
+ * @platform android
361
+ * @detail callback
362
+ * @group 回调
363
+ * @brief 屏幕采集开启/关闭回调,当推流器的屏幕采集开启或关闭时,触发该回调。
364
+ * @param open 屏幕采集的新状态是否为开启。
365
+ * - true:屏幕采集开启;
366
+ * - false:屏幕采集关闭。
367
+ * @order 7
368
+ */
369
+
370
+ android_onScreenRecording?(open: boolean): void;
371
+ /** {zh}
372
+ * @detail callback
373
+ * @group 回调
374
+ * @brief 网络质量状态回调,当推流器检测到网络质量发生变化时,触发该回调。
375
+ * @order 8
376
+ * @param quality 变化后的网络质量。详情请参见 [VeLiveNetworkQuality](147521#VeLiveNetworkQuality)。
377
+ */
378
+
379
+ onNetworkQuality?(quality: VeLiveNetworkQuality): void;
380
+ /** {zh}
381
+ * @detail callback
382
+ * @group 回调
383
+ * @brief 音量等级回调,当推流器的音频音量等级发生变化时,触发该回调。
384
+ * @order 9
385
+ * @param level 变化后的音量等级。详情请参见 [VeLiveAudioPowerLevel](147521#VeLiveAudioPowerLevel)。
386
+ * @param value 当前音量的分贝值(dB)。
387
+ * - \\\\-1 表示当前没有获取到对应的音量分贝值。
388
+ * - 分贝数小于 1,对应 VeLiveAudioPowerLevelSilent 级别
389
+ * - 分贝数大于 1 小于等于 15,对应 VeLiveAudioPowerLevelQuiet 级别
390
+ * - 分贝数大于 15 小于等于 30,对应 VeLiveAudioPowerLevelLight 级别
391
+ * - 分贝数大于 30 小于等于 60,对应 VeLiveAudioPowerLevelNormal 级别
392
+ * - 分贝数大于 60 小于等于 85,对应 VeLiveAudioPowerLevelLoud
393
+ * - 分贝数大于 85,对应 VeLiveAudioPowerLevelNoisy 级别
394
+ */
395
+
396
+ onAudioPowerQuality?(level: VeLiveAudioPowerLevel, value: number): void;
397
+ }
398
+ export declare class android_VeLivePusherObserver extends $p_a.VeLivePusherObserver {
399
+ protected _instance: VeLivePusherObserver;
400
+ constructor(_instance: VeLivePusherObserver);
401
+ onError(arg_0: $p_a.int, arg_1: $p_a.int, arg_2: string): void;
402
+ onStatusChange(arg_0: $p_a.VeLivePusherStatus): void;
403
+ onFirstVideoFrame(arg_0: $p_a.VeLiveFirstFrameType, arg_1: $p_a.long): void;
404
+ onFirstAudioFrame(arg_0: $p_a.VeLiveFirstFrameType, arg_1: $p_a.long): void;
405
+ onCameraOpened(arg_0: boolean): void;
406
+ onMicrophoneOpened(arg_0: boolean): void;
407
+ onScreenRecording(arg_0: boolean): void;
408
+ onNetworkQuality(arg_0: $p_a.VeLiveNetworkQuality): void;
409
+ onAudioPowerQuality(arg_0: $p_a.VeLiveAudioPowerLevel, arg_1: $p_a.float): void;
410
+ }
411
+ export declare class ios_VeLivePusherObserver extends $p_i.VeLivePusherObserver {
412
+ protected _instance: VeLivePusherObserver;
413
+ constructor(_instance: VeLivePusherObserver);
414
+ onError(arg_0: $p_i.int, arg_1: $p_i.int, arg_2: $p_i.NSString): void;
415
+ onStatusChange(arg_0: $p_i.VeLivePushStatus): void;
416
+ onFirstVideoFrame(arg_0: $p_i.VeLiveFirstFrameType, arg_1: $p_i.int64_t): void;
417
+ onFirstAudioFrame(arg_0: $p_i.VeLiveFirstFrameType, arg_1: $p_i.int64_t): void;
418
+ onCameraOpened(arg_0: $p_i.BOOL): void;
419
+ onMicrophoneOpened(arg_0: $p_i.BOOL): void;
420
+ onNetworkQuality(arg_0: $p_i.VeLiveNetworkQuality): void;
421
+ onAudioPowerQuality(arg_0: $p_i.VeLiveAudioPowerLevel, arg_1: $p_i.float): void;
422
+ }
423
+ /** {zh}
424
+ * @detail callback
425
+ * @list overview
426
+ * @brief 推流器周期性回调。
427
+ */
428
+
429
+ export interface VeLivePusherStatisticsObserver {
430
+ /** {zh}
431
+ * @detail callback
432
+ * @group 回调
433
+ * @brief 推流周期性统计信息回调。
434
+ * @order 10
435
+ * @param statistics 周期性统计信息,默认每 5s 回调一次。详情请参见 [VeLivePusherStatistics](147521#VeLivePusherStatistics)。
436
+ */
437
+
438
+ onStatistics?(statistics: VeLivePusherStatistics): void;
439
+ /** {zh}
440
+ * @detail callback
441
+ * @group 回调
442
+ * @brief 周期性日志信息回调。
443
+ * @order 11
444
+ * @param logInfo 周期性日志信息。
445
+ */
446
+
447
+ onLogMonitor?(logInfo: object): void;
448
+ }
449
+ export declare class android_VeLivePusherStatisticsObserver extends $p_a.VeLivePusherStatisticsObserver {
450
+ protected _instance: VeLivePusherStatisticsObserver;
451
+ constructor(_instance: VeLivePusherStatisticsObserver);
452
+ onStatistics(arg_0: $p_a.VeLivePusherStatistics): void;
453
+ onLogMonitor(arg_0: $p_a.JSONObject): void;
454
+ }
455
+ export declare class ios_VeLivePusherStatisticsObserver extends $p_i.VeLivePusherStatisticsObserver {
456
+ protected _instance: VeLivePusherStatisticsObserver;
457
+ constructor(_instance: VeLivePusherStatisticsObserver);
458
+ onStatistics(arg_0: $p_i.VeLivePusherStatistics): void;
459
+ onLogMonitor(arg_0: $p_i.NSDictionary): void;
460
+ }
461
+ export declare class VeLivePusherDef extends $p_a.VeLivePusherDef {
462
+ }
463
+ /** {zh}
464
+ * @detail callback
465
+ * @list overview
466
+ * @brief 直播录制回调。
467
+ */
468
+
469
+ export interface VeLiveFileRecordingListener {
470
+ /** {zh}
471
+ * @detail callback
472
+ * @group 回调
473
+ * @brief 直播录制开始回调。
474
+ * @order 12
475
+ */
476
+
477
+ onFileRecordingStarted?(): void;
478
+ /** {zh}
479
+ * @detail callback
480
+ * @group 回调
481
+ * @brief 直播录制停止回调。
482
+ * @order 13
483
+ */
484
+
485
+ onFileRecordingStopped?(): void;
486
+ /** {zh}
487
+ * @detail callback
488
+ * @group 回调
489
+ * @brief 直播录制错误回调。
490
+ * @order 14
491
+ * @param errorCode 错误码,详情请参见 [VeLivePusherErrorCode](147520#VeLivePusherErrorCode)。
492
+ * @param message 错误信息。
493
+ */
494
+
495
+ onFileRecordingError?(errorCode: number, message: string): void;
496
+ }
497
+ export declare class android_VeLiveFileRecordingListener extends $p_a.VeLiveFileRecordingListener {
498
+ protected _instance: VeLiveFileRecordingListener;
499
+ constructor(_instance: VeLiveFileRecordingListener);
500
+ onFileRecordingStarted(): void;
501
+ onFileRecordingStopped(): void;
502
+ onFileRecordingError(arg_0: $p_a.int, arg_1: string): void;
503
+ }
504
+ export declare class ios_VeLiveFileRecordingListener extends $p_i.VeLiveFileRecordingListener {
505
+ protected _instance: VeLiveFileRecordingListener;
506
+ constructor(_instance: VeLiveFileRecordingListener);
507
+ onFileRecordingStarted(): void;
508
+ onFileRecordingStopped(): void;
509
+ onFileRecordingError(arg_0: $p_i.int, arg_1: $p_i.NSString): void;
510
+ }
511
+ /** {zh}
512
+ * @platform android
513
+ * @detail callback
514
+ * @list overview
515
+ * @brief 视频特效对象回调。
516
+ */
517
+
518
+ export interface VeLiveVideoEffectHandleCallback {
519
+ /** {zh}
520
+ * @platform android
521
+ * @detail callback
522
+ * @group 回调
523
+ * @brief 视频特效对象回调,调用 [setAdvancedFeature](147517#VeLiveVideoEffectManager-setadvancedfeature) 接口时触发此回调,如需使用请联系[技术支持](https://console.volcengine.com/workorder/create?step=3&SubProductID=P00000076)。
524
+ * @param handle 视频特效对象。
525
+ */
526
+
527
+ android_onEffectHandle?(handle: Object): void;
528
+ }
529
+ export declare class android_VeLiveVideoEffectHandleCallback extends $p_a.VeLiveVideoEffectHandleCallback {
530
+ protected _instance: VeLiveVideoEffectHandleCallback;
531
+ constructor(_instance: VeLiveVideoEffectHandleCallback);
532
+ onEffectHandle(arg_0: object): void;
533
+ }
534
+ /** {zh}
535
+ * @platform ios
536
+ * @list overview
537
+ * @detail callback
538
+ */
539
+
540
+ export interface VeLiveScreenCaptureStatusObserver {
541
+ }
542
+ export declare class ios_VeLiveScreenCaptureStatusObserver extends $p_i.VeLiveScreenCaptureStatusObserver {
543
+ protected _instance: VeLiveScreenCaptureStatusObserver;
544
+ constructor(_instance: VeLiveScreenCaptureStatusObserver);
545
+ }