@byteplus/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 +372 -0
  24. package/lib/typescript/codegen/android/callback.d.ts +91 -0
  25. package/lib/typescript/codegen/android/errorcode.d.ts +26 -0
  26. package/lib/typescript/codegen/android/index.d.ts +5 -0
  27. package/lib/typescript/codegen/android/keytype.d.ts +469 -0
  28. package/lib/typescript/codegen/android/types.d.ts +32 -0
  29. package/lib/typescript/codegen/ios/api.d.ts +257 -0
  30. package/lib/typescript/codegen/ios/callback.d.ts +88 -0
  31. package/lib/typescript/codegen/ios/errorcode.d.ts +54 -0
  32. package/lib/typescript/codegen/ios/index.d.ts +5 -0
  33. package/lib/typescript/codegen/ios/keytype.d.ts +488 -0
  34. package/lib/typescript/codegen/ios/types.d.ts +35 -0
  35. package/lib/typescript/codegen/pack/api.d.ts +1933 -0
  36. package/lib/typescript/codegen/pack/callback.d.ts +542 -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 +1952 -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,542 @@
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
+
6
+ /** {en}
7
+ * @detail callback
8
+ * @list overview
9
+ * @brief A custom video processing callback.
10
+ */
11
+ export interface VeLiveVideoFrameFilter {
12
+
13
+ /** {en}
14
+ * @detail callback
15
+ * @group 回调
16
+ * @brief Occurs when the SDK captures a video frame. You can use the callback to process the frame in a custom way.
17
+ * @param srcFrame The source video frame. See VeLiveVideoFrame {@link #VeLiveVideoFrame} for details.
18
+ * @param dstFrame The processed video frame. See VeLiveVideoFrame {@link #VeLiveVideoFrame} for details.
19
+ * @order 15
20
+ * @return
21
+ * - 0: The video frame is successfully processed;
22
+ * - < 0: The processing has failed. The frame will be discarded by the SDK;
23
+ * - \> 0: The processing has failed. The frame will be passed to the encoder by the SDK.
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
+
38
+ /** {en}
39
+ * @detail callback
40
+ * @list overview
41
+ * @brief The listener for video frames.
42
+ */
43
+ export interface VeLiveVideoFrameListener {
44
+
45
+ /** {en}
46
+ * @detail callback
47
+ * @group 回调
48
+ * @brief Occurs when a video frame is captured. This callback will be triggered only if you return `VeLiveVideoFrameSourceCapture` when implementing the {@link #VeLiveVideoFrameListener#getObservedVideoFrameSource getObservedVideoFrameSource} callback method.
49
+ * @param frame The captured video frame. See VeLiveVideoFrame {@link #VeLiveVideoFrame} for details.
50
+ * @order 18
51
+ */
52
+ onCaptureVideoFrame?(frame: VeLiveVideoFrame): void;
53
+
54
+ /** {en}
55
+ * @detail callback
56
+ * @group 回调
57
+ * @brief Occurs when a video frame is to be encoded. This callback will be triggered only if you return `VeLiveVideoFrameSourcePreEncode` when implementing the {@link #VeLiveVideoFrameListener#getObservedVideoFrameSource getObservedVideoFrameSource} callback method.
58
+ * @param frame The video frame to be encoded. See VeLiveVideoFrame {@link #VeLiveVideoFrame} for details.
59
+ * @order 19
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
+
76
+ /** {en}
77
+ * @platform android
78
+ * @detail callback
79
+ * @list overview
80
+ * @brief The listener for special effect events.
81
+ */
82
+ export interface VeLiveVideoEffectCallback {
83
+
84
+ /** {en}
85
+ * @platform android
86
+ * @detail callback
87
+ * @group 回调
88
+ * @brief Occurs when special effects are processed.
89
+ * @param result The result.
90
+ * @param msg The message.
91
+ */
92
+ android_onResult?(result: number, msg: string): void;
93
+ }
94
+ export declare class android_VeLiveVideoEffectCallback extends $p_a.VeLiveVideoEffectCallback {
95
+ protected _instance: VeLiveVideoEffectCallback;
96
+ constructor(_instance: VeLiveVideoEffectCallback);
97
+ onResult(arg_0: $p_a.int, arg_1: string): void;
98
+ }
99
+
100
+ /** {en}
101
+ * @detail callback
102
+ * @list overview
103
+ * @brief Observer that listens for playback-related events of the media player.
104
+ */
105
+ export interface VeLiveMediaPlayerListener {
106
+
107
+ /** {en}
108
+ * @detail callback
109
+ * @group 回调
110
+ * @brief Occurs when the playback starts.
111
+ * @param info \-
112
+ * @order 1
113
+ */
114
+ onStart?(info: $p_a.Bundle): void;
115
+
116
+ /** {en}
117
+ * @detail callback
118
+ * @group 回调
119
+ * @brief Occurs every 100 ms to report the playback progress.
120
+ * @param timeMs The playback progress, in milliseconds.
121
+ */
122
+ onProgress?(timeMs: number): void;
123
+
124
+ /** {en}
125
+ * @detail callback
126
+ * @group 回调
127
+ * @brief Occurs when the playback stops.
128
+ */
129
+ onStop?(): void;
130
+
131
+ /** {en}
132
+ * @detail callback
133
+ * @group 回调
134
+ * @brief Occurs when an error occurs in the media player.
135
+ * @param code The error code. See VeLivePusherErrorCode {@link #VeLivePusherErrorCode} for details.
136
+ * @param msg The error message.
137
+ */
138
+ onError?(code: number, msg: string): void;
139
+ }
140
+ export declare class android_VeLiveMediaPlayerListener extends $p_a.VeLiveMediaPlayerListener {
141
+ protected _instance: VeLiveMediaPlayerListener;
142
+ constructor(_instance: VeLiveMediaPlayerListener);
143
+ onStart(arg_0: $p_a.Bundle): void;
144
+ onProgress(arg_0: $p_a.long): void;
145
+ onStop(): void;
146
+ onError(arg_0: $p_a.int, arg_1: string): void;
147
+ }
148
+ export declare class ios_VeLiveMediaPlayerListener extends $p_i.VeLiveMediaPlayerListener {
149
+ protected _instance: VeLiveMediaPlayerListener;
150
+ constructor(_instance: VeLiveMediaPlayerListener);
151
+ onStart(): void;
152
+ onProgress(arg_0: $p_i.long): void;
153
+ onStop(): void;
154
+ onError(arg_0: $p_i.NSError): void;
155
+ }
156
+
157
+ /** {en}
158
+ * @detail callback
159
+ * @list overview
160
+ * @brief The listener for audio frames.
161
+ */
162
+ export interface VeLiveAudioFrameListener {
163
+
164
+ /** {en}
165
+ * @detail callback
166
+ * @group 回调
167
+ * @brief Occurs when an audio frame is captured. This callback will be triggered only if you return `VeLiveAudioFrameSourceCapture` when implementing the {@link #VeLiveAudioFrameListener#getObservedAudioFrameSource getObservedAudioFrameSource} callback method.
168
+ * @param frame The captured audio frame data. See VeLiveAudioFrame {@link #VeLiveAudioFrame} for details.
169
+ * @order 21
170
+ */
171
+ onCaptureAudioFrame?(frame: VeLiveAudioFrame): void;
172
+
173
+ /** {en}
174
+ * @detail callback
175
+ * @group 回调
176
+ * @brief Occurs when an audio frame is to be encoded. This callback will be triggered only if you return `VeLiveAudioFrameSourcePreEncode` when implementing the {@link #VeLiveAudioFrameListener#getObservedAudioFrameSource getObservedAudioFrameSource} callback method.
177
+ * @param frame The audio frame to be encoded. See VeLiveAudioFrame {@link #VeLiveAudioFrame} for details.
178
+ * @order 22
179
+ */
180
+ onPreEncodeAudioFrame?(frame: VeLiveAudioFrame): void;
181
+ }
182
+ export declare class android_VeLiveAudioFrameListener extends $p_a.VeLiveAudioFrameListener {
183
+ protected _instance: VeLiveAudioFrameListener;
184
+ constructor(_instance: VeLiveAudioFrameListener);
185
+ onCaptureAudioFrame(arg_0: $p_a.VeLiveAudioFrame): void;
186
+ onPreEncodeAudioFrame(arg_0: $p_a.VeLiveAudioFrame): void;
187
+ }
188
+ export declare class ios_VeLiveAudioFrameListener extends $p_i.VeLiveAudioFrameListener {
189
+ protected _instance: VeLiveAudioFrameListener;
190
+ constructor(_instance: VeLiveAudioFrameListener);
191
+ onCaptureAudioFrame(arg_0: $p_i.VeLiveAudioFrame): void;
192
+ onPreEncodeAudioFrame(arg_0: $p_i.VeLiveAudioFrame): void;
193
+ }
194
+
195
+ /** {en}
196
+ * @detail callback
197
+ * @list overview
198
+ * @brief Observer that listens for audio and video frames of the media player.
199
+ */
200
+ export interface VeLiveMediaPlayerFrameListener {
201
+
202
+ /** {en}
203
+ * @detail callback
204
+ * @group 回调
205
+ * @brief Occurs when the media player decodes an audio frame.
206
+ * @param frame The audio frame. See VeLiveAudioFrame {@link #VeLiveAudioFrame} for details.
207
+ */
208
+ onAudioFrame?(frame: VeLiveAudioFrame): void;
209
+
210
+ /** {en}
211
+ * @detail callback
212
+ * @group 回调
213
+ * @brief Occurs when the media player decodes a video frame.
214
+ * @param frame The video frame, including the timestamp, pixel format, and other information. See VeLiveVideoFrame {@link #VeLiveVideoFrame} for details.
215
+ */
216
+ onVideoFrame?(frame: VeLiveVideoFrame): void;
217
+ }
218
+ export declare class android_VeLiveMediaPlayerFrameListener extends $p_a.VeLiveMediaPlayerFrameListener {
219
+ protected _instance: VeLiveMediaPlayerFrameListener;
220
+ constructor(_instance: VeLiveMediaPlayerFrameListener);
221
+ onAudioFrame(arg_0: $p_a.VeLiveAudioFrame): void;
222
+ onVideoFrame(arg_0: $p_a.VeLiveVideoFrame): void;
223
+ }
224
+ export declare class ios_VeLiveMediaPlayerFrameListener extends $p_i.VeLiveMediaPlayerFrameListener {
225
+ protected _instance: VeLiveMediaPlayerFrameListener;
226
+ constructor(_instance: VeLiveMediaPlayerFrameListener);
227
+ onAudioFrame(arg_0: $p_i.VeLiveAudioFrame): void;
228
+ onVideoFrame(arg_0: $p_i.VeLiveVideoFrame): void;
229
+ }
230
+
231
+ /** {en}
232
+ * @detail callback
233
+ * @list overview
234
+ * @brief The listener for screenshot capturing events.
235
+ */
236
+ export interface VeLiveSnapshotListener {
237
+
238
+ /** {en}
239
+ * @detail callback
240
+ * @group 回调
241
+ * @brief Occurs when a screenshot is successfully taken after snapshot {@link #VeLivePusher#snapshot} is called.
242
+ * @param image The screenshot image.
243
+ * @order 15
244
+ */
245
+ onSnapshotComplete?(image: any): void;
246
+ }
247
+ export declare class android_VeLiveSnapshotListener extends $p_a.VeLiveSnapshotListener {
248
+ protected _instance: VeLiveSnapshotListener;
249
+ constructor(_instance: VeLiveSnapshotListener);
250
+ onSnapshotComplete(arg_0: $p_a.Bitmap): void;
251
+ }
252
+ export declare class ios_VeLiveSnapshotListener extends $p_i.VeLiveSnapshotListener {
253
+ protected _instance: VeLiveSnapshotListener;
254
+ constructor(_instance: VeLiveSnapshotListener);
255
+ onSnapshotComplete(arg_0: $p_i.UIImage): void;
256
+ }
257
+
258
+ /** {en}
259
+ * @detail callback
260
+ * @list overview
261
+ * @brief A custom audio processing callback.
262
+ */
263
+ export interface VeLiveAudioFrameFilter {
264
+
265
+ /** {en}
266
+ * @detail callback
267
+ * @group 回调
268
+ * @brief Occurs when the SDK captures an audio frame. You can use the callback to process the frame in a custom way.
269
+ * @param srcFrame The source audio frame. See VeLiveAudioFrame {@link #VeLiveAudioFrame} for details.
270
+ * @param dstFrame The processed audio frame. See VeLiveAudioFrame {@link #VeLiveAudioFrame} for details.
271
+ * - 0: Success;
272
+ * - ≠ 0: Failure. The frame will be passed to the encoder by the SDK.
273
+ * @order 16
274
+ */
275
+ onAudioProcess?(srcFrame: VeLiveAudioFrame, dstFrame: VeLiveAudioFrame): number;
276
+ }
277
+ export declare class android_VeLiveAudioFrameFilter extends $p_a.VeLiveAudioFrameFilter {
278
+ protected _instance: VeLiveAudioFrameFilter;
279
+ constructor(_instance: VeLiveAudioFrameFilter);
280
+ onAudioProcess(arg_0: $p_a.VeLiveAudioFrame, arg_1: $p_a.VeLiveAudioFrame): number;
281
+ }
282
+ export declare class ios_VeLiveAudioFrameFilter extends $p_i.VeLiveAudioFrameFilter {
283
+ protected _instance: VeLiveAudioFrameFilter;
284
+ constructor(_instance: VeLiveAudioFrameFilter);
285
+ onAudioProcess(arg_0: $p_i.VeLiveAudioFrame, arg_1: $p_i.VeLiveAudioFrame): number;
286
+ }
287
+
288
+ /** {en}
289
+ * @detail callback
290
+ * @list overview
291
+ * @brief The observer for live pusher events, including errors, statuses, network quality, device information, and first frame rendering.
292
+ */
293
+ export interface VeLivePusherObserver {
294
+
295
+ /** {en}
296
+ * @detail callback
297
+ * @group 回调
298
+ * @brief Occurs when a streaming error occurs.
299
+ * @param code The error code. See VeLivePusherErrorCode {@link #VeLivePusherErrorCode} for details.
300
+ * @param subCode The subcode.
301
+ * @param msg The error message.
302
+ * @order 1
303
+ */
304
+ onError?(code: number, subCode: number, msg: string): void;
305
+
306
+ /** {en}
307
+ * @detail callback
308
+ * @group 回调
309
+ * @brief Occurs when the streaming status changes.
310
+ * @param status The updated streaming status. See VeLivePusherStatus {@link #VeLivePusherStatus} for details.
311
+ * @order 2
312
+ */
313
+ onStatusChange?(status: VeLivePusherStatus): void;
314
+
315
+ /** {en}
316
+ * @detail callback
317
+ * @group 回调
318
+ * @brief Occurs when the live pusher sends the first video frame.
319
+ * @param type The type of the first frame. See VeLiveFirstFrameType {@link #VeLiveFirstFrameType} for details.
320
+ * @param timestampMs The timestamp, in milliseconds.
321
+ * @order 3
322
+ */
323
+ onFirstVideoFrame?(type: VeLiveFirstFrameType, timestampMs: number): void;
324
+
325
+ /** {en}
326
+ * @detail callback
327
+ * @group 回调
328
+ * @brief Occurs when the live pusher sends the first audio frame.
329
+ * @param type The type of the first audio frame. See VeLiveFirstFrameType {@link #VeLiveFirstFrameType} for details.
330
+ * @param timestampMs The timestamp, in milliseconds.
331
+ * @order 4
332
+ */
333
+ onFirstAudioFrame?(type: VeLiveFirstFrameType, timestampMs: number): void;
334
+
335
+ /** {en}
336
+ * @detail callback
337
+ * @group 回调
338
+ * @brief Occurs when the camera is turned on or turned off.
339
+ * @param open Whether the updated status of the camera is on. <br>
340
+ * - true: On;
341
+ * - false: Off.
342
+ * @order 5
343
+ */
344
+ onCameraOpened?(open: boolean): void;
345
+
346
+ /** {en}
347
+ * @detail callback
348
+ * @group 回调
349
+ * @brief Occurs when the microphone is turned on or turned off.
350
+ * @param open Whether the updated status of the microphone is on. <br>
351
+ * - true: On;
352
+ * - false: Off.
353
+ * @order 6
354
+ */
355
+ onMicrophoneOpened?(open: boolean): void;
356
+
357
+ /** {en}
358
+ * @platform android
359
+ * @detail callback
360
+ * @group 回调
361
+ * @brief Occurs when screen capture is turned on or turned off.
362
+ * @param open Whether the updated status of screen capture is on. <br>
363
+ * - true: On;
364
+ * - false: Off.
365
+ * @order 7
366
+ */
367
+ android_onScreenRecording?(open: boolean): void;
368
+
369
+ /** {en}
370
+ * @detail callback
371
+ * @group 回调
372
+ * @brief Occurs when the network quality changes.
373
+ * @param quality The updated network quality. See VeLiveNetworkQuality {@link #VeLiveNetworkQuality} for details.
374
+ * @order 8
375
+ */
376
+ onNetworkQuality?(quality: VeLiveNetworkQuality): void;
377
+
378
+ /** {en}
379
+ * @detail callback
380
+ * @group 回调
381
+ * @brief Occurs when the audio volume level changes.
382
+ * @order 9
383
+ * @param level The updated volume level. See [VeLiveAudioPowerLevel](broadcast-sdk-for-android-type-definition\\#VeLiveAudioPowerLevel) for details.
384
+ * @param value The current volume measured in decibel value (dB).
385
+ * - A value of -1 indicates that the corresponding volume decibel value is not available.
386
+ * - Decibel values less than 1 correspond to the VeLiveAudioPowerLevelSilent level.
387
+ * - Decibel values greater than 1 and less than or equal to 15 correspond to the VeLiveAudioPowerLevelQuiet level.
388
+ * - Decibel values greater than 15 and less than or equal to 30 correspond to the VeLiveAudioPowerLevelLight level.
389
+ * - Decibel values greater than 30 and less than or equal to 60 correspond to the VeLiveAudioPowerLevelNormal level.
390
+ * - Decibel values greater than 60 and less than or equal to 85 correspond to the VeLiveAudioPowerLevelLoud level.
391
+ * - Decibel values greater than 85 correspond to the VeLiveAudioPowerLevelNoisy level.
392
+ */
393
+ onAudioPowerQuality?(level: VeLiveAudioPowerLevel, value: number): void;
394
+ }
395
+ export declare class android_VeLivePusherObserver extends $p_a.VeLivePusherObserver {
396
+ protected _instance: VeLivePusherObserver;
397
+ constructor(_instance: VeLivePusherObserver);
398
+ onError(arg_0: $p_a.int, arg_1: $p_a.int, arg_2: string): void;
399
+ onStatusChange(arg_0: $p_a.VeLivePusherStatus): void;
400
+ onFirstVideoFrame(arg_0: $p_a.VeLiveFirstFrameType, arg_1: $p_a.long): void;
401
+ onFirstAudioFrame(arg_0: $p_a.VeLiveFirstFrameType, arg_1: $p_a.long): void;
402
+ onCameraOpened(arg_0: boolean): void;
403
+ onMicrophoneOpened(arg_0: boolean): void;
404
+ onScreenRecording(arg_0: boolean): void;
405
+ onNetworkQuality(arg_0: $p_a.VeLiveNetworkQuality): void;
406
+ onAudioPowerQuality(arg_0: $p_a.VeLiveAudioPowerLevel, arg_1: $p_a.float): void;
407
+ }
408
+ export declare class ios_VeLivePusherObserver extends $p_i.VeLivePusherObserver {
409
+ protected _instance: VeLivePusherObserver;
410
+ constructor(_instance: VeLivePusherObserver);
411
+ onError(arg_0: $p_i.int, arg_1: $p_i.int, arg_2: $p_i.NSString): void;
412
+ onStatusChange(arg_0: $p_i.VeLivePushStatus): void;
413
+ onFirstVideoFrame(arg_0: $p_i.VeLiveFirstFrameType, arg_1: $p_i.int64_t): void;
414
+ onFirstAudioFrame(arg_0: $p_i.VeLiveFirstFrameType, arg_1: $p_i.int64_t): void;
415
+ onCameraOpened(arg_0: $p_i.BOOL): void;
416
+ onMicrophoneOpened(arg_0: $p_i.BOOL): void;
417
+ onNetworkQuality(arg_0: $p_i.VeLiveNetworkQuality): void;
418
+ onAudioPowerQuality(arg_0: $p_i.VeLiveAudioPowerLevel, arg_1: $p_i.float): void;
419
+ }
420
+
421
+ /** {en}
422
+ * @detail callback
423
+ * @list overview
424
+ * @brief The observer that periodically reports streaming statistics.
425
+ */
426
+ export interface VeLivePusherStatisticsObserver {
427
+
428
+ /** {en}
429
+ * @detail callback
430
+ * @group 回调
431
+ * @brief Occurs periodically to report streaming statistics. By default, the callback is triggered every 5 seconds.
432
+ * @order 10
433
+ * @param statistics The streaming statistics. See VeLivePusherStatistics for details.
434
+ */
435
+ onStatistics?(statistics: VeLivePusherStatistics): void;
436
+
437
+ /** {en}
438
+ * @detail callback
439
+ * @group 回调
440
+ * @brief Occurs periodically to return log information.
441
+ * @param logInfo The log information.
442
+ * @order 11
443
+ */
444
+ onLogMonitor?(logInfo: object): void;
445
+ }
446
+ export declare class android_VeLivePusherStatisticsObserver extends $p_a.VeLivePusherStatisticsObserver {
447
+ protected _instance: VeLivePusherStatisticsObserver;
448
+ constructor(_instance: VeLivePusherStatisticsObserver);
449
+ onStatistics(arg_0: $p_a.VeLivePusherStatistics): void;
450
+ onLogMonitor(arg_0: $p_a.JSONObject): void;
451
+ }
452
+ export declare class ios_VeLivePusherStatisticsObserver extends $p_i.VeLivePusherStatisticsObserver {
453
+ protected _instance: VeLivePusherStatisticsObserver;
454
+ constructor(_instance: VeLivePusherStatisticsObserver);
455
+ onStatistics(arg_0: $p_i.VeLivePusherStatistics): void;
456
+ onLogMonitor(arg_0: $p_i.NSDictionary): void;
457
+ }
458
+ export declare class VeLivePusherDef extends $p_a.VeLivePusherDef {
459
+ }
460
+
461
+ /** {en}
462
+ * @detail callback
463
+ * @list overview
464
+ * @brief The observer for recording events.
465
+ */
466
+ export interface VeLiveFileRecordingListener {
467
+
468
+ /** {en}
469
+ * @detail callback
470
+ * @group 回调
471
+ * @brief Occurs when recording starts.
472
+ * @order 12
473
+ */
474
+ onFileRecordingStarted?(): void;
475
+
476
+ /** {en}
477
+ * @detail callback
478
+ * @group 回调
479
+ * @brief Occurs when recording stops.
480
+ * @order 13
481
+ */
482
+ onFileRecordingStopped?(): void;
483
+
484
+ /** {en}
485
+ * @detail callback
486
+ * @group 回调
487
+ * @brief Occurs when an error occurs during recording.
488
+ * @param errorCode The error code. See VeLivePusherErrorCode {@link #VeLivePusherErrorCode} for details.
489
+ * @param message The error message.
490
+ * @order 14
491
+ */
492
+ onFileRecordingError?(errorCode: number, message: string): void;
493
+ }
494
+ export declare class android_VeLiveFileRecordingListener extends $p_a.VeLiveFileRecordingListener {
495
+ protected _instance: VeLiveFileRecordingListener;
496
+ constructor(_instance: VeLiveFileRecordingListener);
497
+ onFileRecordingStarted(): void;
498
+ onFileRecordingStopped(): void;
499
+ onFileRecordingError(arg_0: $p_a.int, arg_1: string): void;
500
+ }
501
+ export declare class ios_VeLiveFileRecordingListener extends $p_i.VeLiveFileRecordingListener {
502
+ protected _instance: VeLiveFileRecordingListener;
503
+ constructor(_instance: VeLiveFileRecordingListener);
504
+ onFileRecordingStarted(): void;
505
+ onFileRecordingStopped(): void;
506
+ onFileRecordingError(arg_0: $p_i.int, arg_1: $p_i.NSString): void;
507
+ }
508
+
509
+ /** {en}
510
+ * @platform android
511
+ * @detail callback
512
+ * @list overview
513
+ * @brief A video effects callback.
514
+ */
515
+ export interface VeLiveVideoEffectHandleCallback {
516
+
517
+ /** {en}
518
+ * @platform android
519
+ * @detail callback
520
+ * @group 回调
521
+ * @brief Occurs when the setAdvancedFeature {@link #VeLiveVideoEffectManager #setAdvancedFeature} method is called. Please contact BytePlus technical support for assistance when using this callback method.
522
+ * @param handle The video effect object.
523
+ */
524
+ android_onEffectHandle?(handle: Object): void;
525
+ }
526
+ export declare class android_VeLiveVideoEffectHandleCallback extends $p_a.VeLiveVideoEffectHandleCallback {
527
+ protected _instance: VeLiveVideoEffectHandleCallback;
528
+ constructor(_instance: VeLiveVideoEffectHandleCallback);
529
+ onEffectHandle(arg_0: object): void;
530
+ }
531
+
532
+ /** {en}
533
+ * @platform ios
534
+ * @list overview
535
+ * @detail callback
536
+ */
537
+ export interface VeLiveScreenCaptureStatusObserver {
538
+ }
539
+ export declare class ios_VeLiveScreenCaptureStatusObserver extends $p_i.VeLiveScreenCaptureStatusObserver {
540
+ protected _instance: VeLiveScreenCaptureStatusObserver;
541
+ constructor(_instance: VeLiveScreenCaptureStatusObserver);
542
+ }