@byteplus/react-native-live-push 1.1.3-rc.4 → 1.2.0-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 (59) hide show
  1. package/android/build.gradle +2 -2
  2. package/android/src/main/java/com/volcengine/velive/rn/push/ClassHelper.java +9 -0
  3. package/android/src/main/java/com/volcengine/velive/rn/push/NativeVariableManager.java +5 -8
  4. package/android/src/main/java/com/volcengine/velive/rn/push/VeLivePushModule.java +1 -0
  5. package/android/src/main/java/com/volcengine/velive/rn/push/mixer/MixerManager.java +1 -3
  6. package/android/src/main/java/com/volcengine/velive/rn/push/mixer/MixerView.java +33 -22
  7. package/ios/VeLiveMixerHelper.h +7 -5
  8. package/ios/VeLiveMixerHelper.m +1 -1
  9. package/ios/VeLiveMixerViewManager.m +2 -2
  10. package/lib/commonjs/index.js +23202 -20302
  11. package/lib/commonjs/typescript/android/index.d.ts +0 -3
  12. package/lib/commonjs/typescript/codegen/android/api.d.ts +190 -644
  13. package/lib/commonjs/typescript/codegen/android/callback.d.ts +234 -2
  14. package/lib/commonjs/typescript/codegen/android/errorcode.d.ts +66 -0
  15. package/lib/commonjs/typescript/codegen/android/keytype.d.ts +1014 -181
  16. package/lib/commonjs/typescript/codegen/ios/api.d.ts +890 -0
  17. package/lib/commonjs/typescript/codegen/ios/callback.d.ts +162 -0
  18. package/lib/commonjs/typescript/codegen/ios/errorcode.d.ts +101 -1
  19. package/lib/commonjs/typescript/codegen/ios/keytype.d.ts +694 -0
  20. package/lib/commonjs/typescript/codegen/pack/api.d.ts +303 -686
  21. package/lib/commonjs/typescript/codegen/pack/callback.d.ts +37 -38
  22. package/lib/commonjs/typescript/codegen/pack/errorcode.d.ts +75 -5
  23. package/lib/commonjs/typescript/codegen/pack/keytype.d.ts +1002 -298
  24. package/lib/commonjs/typescript/core/api.d.ts +2 -1
  25. package/lib/commonjs/typescript/core/pusher.d.ts +0 -3
  26. package/lib/module/index.js +23203 -20302
  27. package/lib/module/typescript/android/index.d.ts +0 -3
  28. package/lib/module/typescript/codegen/android/api.d.ts +190 -644
  29. package/lib/module/typescript/codegen/android/callback.d.ts +234 -2
  30. package/lib/module/typescript/codegen/android/errorcode.d.ts +66 -0
  31. package/lib/module/typescript/codegen/android/keytype.d.ts +1014 -181
  32. package/lib/module/typescript/codegen/ios/api.d.ts +890 -0
  33. package/lib/module/typescript/codegen/ios/callback.d.ts +162 -0
  34. package/lib/module/typescript/codegen/ios/errorcode.d.ts +101 -1
  35. package/lib/module/typescript/codegen/ios/keytype.d.ts +694 -0
  36. package/lib/module/typescript/codegen/pack/api.d.ts +303 -686
  37. package/lib/module/typescript/codegen/pack/callback.d.ts +37 -38
  38. package/lib/module/typescript/codegen/pack/errorcode.d.ts +75 -5
  39. package/lib/module/typescript/codegen/pack/keytype.d.ts +1002 -298
  40. package/lib/module/typescript/core/api.d.ts +2 -1
  41. package/lib/module/typescript/core/pusher.d.ts +0 -3
  42. package/lib/typescript/android/index.d.ts +0 -3
  43. package/lib/typescript/codegen/android/api.d.ts +190 -644
  44. package/lib/typescript/codegen/android/callback.d.ts +234 -2
  45. package/lib/typescript/codegen/android/errorcode.d.ts +66 -0
  46. package/lib/typescript/codegen/android/keytype.d.ts +1014 -181
  47. package/lib/typescript/codegen/ios/api.d.ts +890 -0
  48. package/lib/typescript/codegen/ios/callback.d.ts +162 -0
  49. package/lib/typescript/codegen/ios/errorcode.d.ts +101 -1
  50. package/lib/typescript/codegen/ios/keytype.d.ts +694 -0
  51. package/lib/typescript/codegen/pack/api.d.ts +303 -686
  52. package/lib/typescript/codegen/pack/callback.d.ts +37 -38
  53. package/lib/typescript/codegen/pack/errorcode.d.ts +75 -5
  54. package/lib/typescript/codegen/pack/keytype.d.ts +1002 -298
  55. package/lib/typescript/core/api.d.ts +2 -1
  56. package/lib/typescript/core/pusher.d.ts +0 -3
  57. package/package.json +1 -1
  58. package/react-native-velive-push.podspec +3 -3
  59. package/android/src/main/java/com/volcengine/velive/rn/push/ScreenCaptureHelper.java +0 -73
@@ -1,8 +1,7 @@
1
1
  import * as $p_a from '../android/index';
2
2
  import * as $p_i from '../ios/index';
3
- import { VeLiveVideoFrame, VeLiveAudioFrame } from './api';
4
- import { Bitmap, JSONObject } from './types';
5
- import { VeLivePusherStatus, VeLiveFirstFrameType, VeLiveNetworkQuality, VeLiveAudioPowerLevel, VeLivePusherStatistics } from './keytype';
3
+ import { VeLiveVideoFrame, VeLiveAudioFrame, VeLivePusherStatus, VeLiveFirstFrameType, VeLiveNetworkQuality, VeLiveAudioPowerLevel, VeLivePusherStatistics } from './keytype';
4
+ import { int, Bitmap, NSString, BOOL, JSONObject, NSDictionary } from './types';
6
5
 
7
6
  export interface VeLiveVideoFrameFilter {
8
7
  }
@@ -11,8 +10,8 @@ export interface VeLiveVideoFrameListener {
11
10
 
12
11
  /** {en}
13
12
  * @detail callback
14
- * @brief Occurs when a video frame is captured. This callback will be triggered only if you return `VeLiveVideoFrameSourceCapture` when implementing the getObservedVideoFrameSource{@link #VeLiveVideoFrameListener#getObservedVideoFrameSource} callback method.
15
- * @param frame The captured video frame. See VeLiveVideoFrame {@link #VeLiveVideoFrame} for details.
13
+ * @brief Occurs when a video frame is captured. This callback will be triggered only if you return `VeLiveVideoFrameSourceCapture` when implementing the [getObservedVideoFrameSource](#VeLiveVideoFrameListener-getobservedvideoframesource) callback method.
14
+ * @param frame The captured video frame. See [VeLiveVideoFrame](#VeLivePusherDef-VeLiveVideoFrameFilter) for details.
16
15
  * @order 18
17
16
  *
18
17
  */
@@ -20,8 +19,8 @@ export interface VeLiveVideoFrameListener {
20
19
 
21
20
  /** {en}
22
21
  * @detail callback
23
- * @brief Occurs when a video frame is to be encoded. This callback will be triggered only if you return `VeLiveVideoFrameSourcePreEncode` when implementing the getObservedVideoFrameSource{@link #VeLiveVideoFrameListener#getObservedVideoFrameSource} callback method.
24
- * @param frame The video frame to be encoded. See VeLiveVideoFrame {@link #VeLiveVideoFrame} for details.
22
+ * @brief Occurs when a video frame is to be encoded. This callback will be triggered only if you return `VeLiveVideoFrameSourcePreEncode` when implementing the [getObservedVideoFrameSource](#VeLiveVideoFrameListener-getobservedvideoframesource) callback method.
23
+ * @param frame The video frame to be encoded. See [VeLiveVideoFrame](docs-broadcast-sdk-for-android-type-definition#VeLiveVideoFrame) for details.
25
24
  * @order 19
26
25
  *
27
26
  */
@@ -55,7 +54,7 @@ export interface VeLiveMediaPlayerListener {
55
54
  /** {en}
56
55
  * @detail callback
57
56
  * @brief Occurs when an error occurs in the media player.
58
- * @param code The error code. See VeLivePusherErrorCode {@link #VeLivePusherErrorCode} for details.
57
+ * @param code The error code. See [VeLivePusherErrorCode](broadcast-sdk-for-android-api-error-code#VeLivePusherErrorCode) for details.
59
58
  * @param msg The error message.
60
59
  *
61
60
  */
@@ -66,8 +65,8 @@ export interface VeLiveAudioFrameListener {
66
65
 
67
66
  /** {en}
68
67
  * @detail callback
69
- * @brief Occurs when an audio frame is captured. This callback will be triggered only if you return `VeLiveAudioFrameSourceCapture` when implementing the getObservedAudioFrameSource{@link #VeLiveAudioFrameListener#getObservedAudioFrameSource} callback method.
70
- * @param frame The captured audio frame data. See VeLiveAudioFrame {@link #VeLiveAudioFrame} for details.
68
+ * @brief Occurs when an audio frame is captured. This callback will be triggered only if you return `VeLiveAudioFrameSourceCapture` when implementing the [getObservedAudioFrameSource](#VeLiveAudioFrameListener-getobservedaudioframesource) callback method.
69
+ * @param frame The captured audio frame data. See [VeLiveAudioFrame](docs-broadcast-sdk-for-android-type-definition#VeLiveAudioFrame).
71
70
  * @order 21
72
71
  *
73
72
  */
@@ -75,8 +74,8 @@ export interface VeLiveAudioFrameListener {
75
74
 
76
75
  /** {en}
77
76
  * @detail callback
78
- * @brief Occurs when an audio frame is to be encoded. This callback will be triggered only if you return `VeLiveAudioFrameSourcePreEncode` when implementing the getObservedAudioFrameSource{@link #VeLiveAudioFrameListener#getObservedAudioFrameSource} callback method.
79
- * @param frame The audio frame to be encoded. See VeLiveAudioFrame {@link #VeLiveAudioFrame} for details.
77
+ * @brief Occurs when an audio frame is to be encoded. This callback will be triggered only if you return `VeLiveAudioFrameSourcePreEncode` when implementing the [getObservedAudioFrameSource](#VeLiveAudioFrameListener-getobservedaudioframesource) callback method.
78
+ * @param frame The audio frame to be encoded. See [VeLiveAudioFrame](docs-broadcast-sdk-for-android-type-definition#VeLiveAudioFrame) for details.
80
79
  * @order 22
81
80
  *
82
81
  */
@@ -88,7 +87,7 @@ export interface VeLiveMediaPlayerFrameListener {
88
87
  /** {en}
89
88
  * @detail callback
90
89
  * @brief Occurs when the media player decodes an audio frame.
91
- * @param frame The audio frame. See VeLiveAudioFrame {@link #VeLiveAudioFrame} for details.
90
+ * @param frame The audio frame. See [VeLiveAudioFrame](docs-broadcast-sdk-for-android-type-definition#VeLiveAudioFrame) for details.
92
91
  *
93
92
  */
94
93
  onAudioFrame?(frame: VeLiveAudioFrame): void;
@@ -96,7 +95,7 @@ export interface VeLiveMediaPlayerFrameListener {
96
95
  /** {en}
97
96
  * @detail callback
98
97
  * @brief Occurs when the media player decodes a video frame.
99
- * @param frame The video frame, including the timestamp, pixel format, and other information. See VeLiveVideoFrame {@link #VeLiveVideoFrame} for details.
98
+ * @param frame The video frame, including the timestamp, pixel format, and other information. See [VeLiveVideoFrame](docs-broadcast-sdk-for-android-type-definition#VeLiveVideoFrame) for details.
100
99
  *
101
100
  */
102
101
  onVideoFrame?(frame: VeLiveVideoFrame): void;
@@ -106,7 +105,7 @@ export interface VeLiveSnapshotListener {
106
105
 
107
106
  /** {en}
108
107
  * @detail callback
109
- * @brief Occurs when a screenshot is successfully taken after snapshot {@link #VeLivePusher#snapshot} is called.
108
+ * @brief Screenshot success callback.
110
109
  * @param image The screenshot image.
111
110
  * @order 15
112
111
  *
@@ -122,7 +121,7 @@ export interface VeLivePusherObserver {
122
121
  /** {en}
123
122
  * @detail callback
124
123
  * @brief Occurs when a streaming error occurs.
125
- * @param code The error code. See VeLivePusherErrorCode {@link #VeLivePusherErrorCode} for details.
124
+ * @param code The error code. See [VeLivePusherErrorCode](broadcast-sdk-for-android-api-error-code#VeLivePusherErrorCode) for details.
126
125
  * @param subCode The subcode.
127
126
  * @param msg The error message.
128
127
  * @order 1
@@ -133,7 +132,7 @@ export interface VeLivePusherObserver {
133
132
  /** {en}
134
133
  * @detail callback
135
134
  * @brief Occurs when the streaming status changes.
136
- * @param status The updated streaming status. See VeLivePusherStatus {@link #VeLivePusherStatus} for details.
135
+ * @param status The updated streaming status. See [VeLivePusherStatus](broadcast-sdk-for-android-type-definition#VeLivePusherStatus) for details.
137
136
  * @order 2
138
137
  *
139
138
  */
@@ -142,7 +141,7 @@ export interface VeLivePusherObserver {
142
141
  /** {en}
143
142
  * @detail callback
144
143
  * @brief Occurs when the live pusher sends the first video frame.
145
- * @param type The type of the first frame. See VeLiveFirstFrameType {@link #VeLiveFirstFrameType} for details.
144
+ * @param type The type of the first frame. See [VeLiveFirstFrameType](broadcast-sdk-for-android-type-definition#VeLiveFirstFrameType) for details.
146
145
  * @param timestampMs The timestamp, in milliseconds.
147
146
  * @order 3
148
147
  *
@@ -152,7 +151,7 @@ export interface VeLivePusherObserver {
152
151
  /** {en}
153
152
  * @detail callback
154
153
  * @brief Occurs when the live pusher sends the first audio frame.
155
- * @param type The type of the first audio frame. See VeLiveFirstFrameType {@link #VeLiveFirstFrameType} for details.
154
+ * @param type The type of the first audio frame. See [VeLiveFirstFrameType](broadcast-sdk-for-android-type-definition#VeLiveFirstFrameType) for details.
156
155
  * @param timestampMs The timestamp, in milliseconds.
157
156
  * @order 4
158
157
  *
@@ -191,12 +190,12 @@ export interface VeLivePusherObserver {
191
190
  * @order 7
192
191
  *
193
192
  */
194
- android_onScreenRecording?(open: boolean): void;
193
+ onScreenRecording?(): void;
195
194
 
196
195
  /** {en}
197
196
  * @detail callback
198
197
  * @brief Occurs when the network quality changes.
199
- * @param quality The updated network quality. See VeLiveNetworkQuality {@link #VeLiveNetworkQuality} for details.
198
+ * @param quality The updated network quality. See [VeLiveNetworkQuality](broadcast-sdk-for-android-type-definition#VeLiveNetworkQuality) for details.
200
199
  * @order 8
201
200
  *
202
201
  */
@@ -206,7 +205,7 @@ export interface VeLivePusherObserver {
206
205
  * @detail callback
207
206
  * @brief Occurs when the audio volume level changes.
208
207
  * @order 9
209
- * @param level The updated volume level. See [VeLiveAudioPowerLevel](broadcast-sdk-for-android-type-definition\\#VeLiveAudioPowerLevel) for details.
208
+ * @param level The updated volume level. See [VeLiveAudioPowerLevel](broadcast-sdk-for-android-type-definition#VeLiveAudioPowerLevel) for details.
210
209
  * @param value The current volume measured in decibel value (dB).
211
210
  * - A value of -1 indicates that the corresponding volume decibel value is not available.
212
211
  * - Decibel values less than 1 correspond to the VeLiveAudioPowerLevelSilent level.
@@ -224,9 +223,9 @@ export interface VeLivePusherStatisticsObserver {
224
223
 
225
224
  /** {en}
226
225
  * @detail callback
227
- * @brief Occurs periodically to report streaming statistics. By default, the callback is triggered every 5 seconds.
226
+ * @brief Occurs periodically to report streaming statistics. By default, the callback is triggered every 5 seconds. You can call [setStatisticsObserver](docs-broadcast-sdk-for-android-api#VeLivePusher-setstatisticsobserver) to modify the callback time interval.
228
227
  * @order 10
229
- * @param statistics The streaming statistics. See VeLivePusherStatistics for details.
228
+ * @param statistics The streaming statistics. See [VeLivePusherStatistics](docs-broadcast-sdk-for-android-type-definition#VeLivePusherDef-VeLivePusherStatistics) for details.
230
229
  *
231
230
  */
232
231
  onStatistics?(statistics: VeLivePusherStatistics): void;
@@ -262,7 +261,7 @@ export interface VeLiveFileRecordingListener {
262
261
  /** {en}
263
262
  * @detail callback
264
263
  * @brief Occurs when an error occurs during recording.
265
- * @param errorCode The error code. See VeLivePusherErrorCode {@link #VeLivePusherErrorCode} for details.
264
+ * @param errorCode The error code. See [VeLivePusherErrorCode](broadcast-sdk-for-android-api-error-code#VeLivePusherErrorCode) for details.
266
265
  * @param message The error message.
267
266
  * @order 14
268
267
  *
@@ -293,15 +292,15 @@ export declare class android_VeLiveMediaPlayerListener extends $p_a.VeLiveMediaP
293
292
  protected _instance: VeLiveMediaPlayerListener;
294
293
  constructor(_instance: VeLiveMediaPlayerListener);
295
294
  onStart(info: $p_a.Bundle): void;
296
- onProgress(timeMs: $p_a.long): void;
295
+ onProgress(timeMs: int): void;
297
296
  onStop(): void;
298
- onError(code: $p_a.int, msg: string): void;
297
+ onError(code: int, msg: string): void;
299
298
  }
300
299
  export declare class ios_VeLiveMediaPlayerListener extends $p_i.VeLiveMediaPlayerListener {
301
300
  protected _instance: VeLiveMediaPlayerListener;
302
301
  constructor(_instance: VeLiveMediaPlayerListener);
303
302
  onStart(): void;
304
- onProgress(timeMS: $p_i.long): void;
303
+ onProgress(timeMS: int): void;
305
304
  onStop(): void;
306
305
  onError(error: $p_i.NSError): void;
307
306
  }
@@ -350,10 +349,10 @@ export declare class ios_VeLiveAudioFrameFilter extends $p_i.VeLiveAudioFrameFil
350
349
  export declare class android_VeLivePusherObserver extends $p_a.VeLivePusherObserver {
351
350
  protected _instance: VeLivePusherObserver;
352
351
  constructor(_instance: VeLivePusherObserver);
353
- onError(code: $p_a.int, subCode: $p_a.int, msg: string): void;
352
+ onError(code: int, subCode: int, msg: string): void;
354
353
  onStatusChange(status: $p_a.VeLivePusherStatus): void;
355
- onFirstVideoFrame(type: $p_a.VeLiveFirstFrameType, timestampMs: $p_a.long): void;
356
- onFirstAudioFrame(type: $p_a.VeLiveFirstFrameType, timestampMs: $p_a.long): void;
354
+ onFirstVideoFrame(type: $p_a.VeLiveFirstFrameType, timestampMs: int): void;
355
+ onFirstAudioFrame(type: $p_a.VeLiveFirstFrameType, timestampMs: int): void;
357
356
  onCameraOpened(open: boolean): void;
358
357
  onMicrophoneOpened(open: boolean): void;
359
358
  onScreenRecording(open: boolean): void;
@@ -363,12 +362,12 @@ export declare class android_VeLivePusherObserver extends $p_a.VeLivePusherObser
363
362
  export declare class ios_VeLivePusherObserver extends $p_i.VeLivePusherObserver {
364
363
  protected _instance: VeLivePusherObserver;
365
364
  constructor(_instance: VeLivePusherObserver);
366
- onError$subcode$message(code: $p_i.int, subcode: $p_i.int, msg: $p_i.NSString): void;
365
+ onError$subcode$message(code: int, subcode: int, msg: NSString): void;
367
366
  onStatusChange(status: $p_i.VeLivePushStatus): void;
368
367
  onFirstVideoFrame$timestampMs(type: $p_i.VeLiveFirstFrameType, timestampMs: $p_i.int64_t): void;
369
368
  onFirstAudioFrame$timestampMs(type: $p_i.VeLiveFirstFrameType, timestampMs: $p_i.int64_t): void;
370
- onCameraOpened(open: $p_i.BOOL): void;
371
- onMicrophoneOpened(open: $p_i.BOOL): void;
369
+ onCameraOpened(open: BOOL): void;
370
+ onMicrophoneOpened(open: BOOL): void;
372
371
  onNetworkQuality(quality: $p_i.VeLiveNetworkQuality): void;
373
372
  onAudioPowerQuality$value(level: $p_i.VeLiveAudioPowerLevel, value: $p_i.float): void;
374
373
  }
@@ -376,25 +375,25 @@ export declare class android_VeLivePusherStatisticsObserver extends $p_a.VeLiveP
376
375
  protected _instance: VeLivePusherStatisticsObserver;
377
376
  constructor(_instance: VeLivePusherStatisticsObserver);
378
377
  onStatistics(statistics: $p_a.VeLivePusherStatistics): void;
379
- onLogMonitor(logInfo: $p_a.JSONObject): void;
378
+ onLogMonitor(logInfo: JSONObject): void;
380
379
  }
381
380
  export declare class ios_VeLivePusherStatisticsObserver extends $p_i.VeLivePusherStatisticsObserver {
382
381
  protected _instance: VeLivePusherStatisticsObserver;
383
382
  constructor(_instance: VeLivePusherStatisticsObserver);
384
383
  onStatistics(statistics: $p_i.VeLivePusherStatistics): void;
385
- onLogMonitor(logInfo: $p_i.NSDictionary): void;
384
+ onLogMonitor(logInfo: NSDictionary): void;
386
385
  }
387
386
  export declare class android_VeLiveFileRecordingListener extends $p_a.VeLiveFileRecordingListener {
388
387
  protected _instance: VeLiveFileRecordingListener;
389
388
  constructor(_instance: VeLiveFileRecordingListener);
390
389
  onFileRecordingStarted(): void;
391
390
  onFileRecordingStopped(): void;
392
- onFileRecordingError(errorCode: $p_a.int, message: string): void;
391
+ onFileRecordingError(errorCode: int, message: string): void;
393
392
  }
394
393
  export declare class ios_VeLiveFileRecordingListener extends $p_i.VeLiveFileRecordingListener {
395
394
  protected _instance: VeLiveFileRecordingListener;
396
395
  constructor(_instance: VeLiveFileRecordingListener);
397
396
  onFileRecordingStarted(): void;
398
397
  onFileRecordingStopped(): void;
399
- onFileRecordingError$message(errorCode: $p_i.int, msg: $p_i.NSString): void;
398
+ onFileRecordingError$message(errorCode: int, msg: NSString): void;
400
399
  }
@@ -3,33 +3,103 @@ import * as $p_i from '../ios/index';
3
3
 
4
4
  export declare enum VeLivePusherErrorCode {
5
5
 
6
+ /** {en}
7
+ * @brief No error.
8
+ *
9
+ */
6
10
  VeLivePusherSuccess = 0,
7
11
 
12
+ /** {en}
13
+ * @brief SDK license error, possibly caused by an invalid or expired certificate.
14
+ *
15
+ */
8
16
  VeLivePusherInvalidLicense = -1,
9
17
 
18
+ /** {en}
19
+ * @brief Parameter error, possibly caused by an invalid parameter value or parameter type.
20
+ *
21
+ */
10
22
  VeLivePusherInvalidParameter = -2,
11
23
 
24
+ /** {en}
25
+ * @brief Video capture error, possibly caused by the lack of access to the video device.
26
+ *
27
+ */
12
28
  VeLivePusherVideoCaptureError = -3,
13
29
 
30
+ /** {en}
31
+ * @brief Audio capture error, possibly caused by the lack of access to the audio device.
32
+ *
33
+ */
14
34
  VeLivePusherAudioCaptureError = -4,
15
35
 
36
+ /** {en}
37
+ * @brief Video encoding error, possibly caused by a configuration issue with the video encoder. If the error is not eliminated, please [create a ticket](https://console.byteplus.com/workorder/create?step=2&SubProductID=P00000980) to contact BytePlus technical support for assistance when using this callback method.
38
+ *
39
+ */
16
40
  VeLivePusherVideoEncoderError = -5,
17
41
 
42
+ /** {en}
43
+ * @brief Audio encoding error, possibly caused by a configuration issue with the audio encoder. If the error is not eliminated, please [create a ticket](https://console.byteplus.com/workorder/create?step=2&SubProductID=P00000980) to contact BytePlus technical support for assistance when using this callback method.
44
+ *
45
+ */
18
46
  VeLivePusherAudioEncoderError = -6,
19
47
 
48
+ /** {en}
49
+ * @brief Network error, which might be caused by network connection issues such as network instability or high latency. If the error is not eliminated, please [create a ticket](https://console.byteplus.com/workorder/create?step=2&SubProductID=P00000980) to contact BytePlus technical support for assistance when using this callback method.
50
+ *
51
+ */
20
52
  VeLivePusherTransportError = -7,
21
53
 
54
+ /** {en}
55
+ * @brief Special effects error. Please check if the Effects SDK has been integrated and initialized, and if the path of the effects resources is correctly set. If the error is not eliminated, please [create a ticket](https://console.byteplus.com/workorder/create?step=2&SubProductID=P00000980) to contact BytePlus technical support for assistance when using this callback method.
56
+ *
57
+ */
22
58
  VeLivePusherVideoEffectError = -8,
23
59
 
60
+ /** {en}
61
+ * @brief Audio device error. Please [create a ticket](https://console.byteplus.com/workorder/create?step=2&SubProductID=P00000980) to contact BytePlus technical support for assistance when using this callback method.
62
+ *
63
+ */
24
64
  VeLivePusherAudioDeviceError = -9,
25
65
 
66
+ /** {en}
67
+ * @platform android
68
+ * @brief The license does not support H265.
69
+ *
70
+ */
26
71
  VeLivePusherLicenseUnsupportedH265 = -10,
27
72
 
28
- VeLivePusherError = -100
73
+ /** {en}
74
+ * @brief Internal error. Please [create a ticket](https://console.byteplus.com/workorder/create?step=2&SubProductID=P00000980) to contact BytePlus technical support for assistance when using this callback method.
75
+ *
76
+ */
77
+ VeLivePusherError = -100,
78
+
79
+ /** {en}
80
+ * @platform android
81
+ * @brief
82
+ *
83
+ */
84
+ VeLivePusherScreenCaptureNotSupportError = -99,
85
+
86
+ /** {en}
87
+ * @platform android
88
+ * @brief
89
+ *
90
+ */
91
+ VeLivePusherScreenCaptureStartError = -98,
92
+
93
+ /** {en}
94
+ * @platform android
95
+ * @brief
96
+ *
97
+ */
98
+ VeLivePusherScreenCaptureInterruptedError = -97
29
99
  }
30
100
  export declare class t_VeLivePusherErrorCode {
31
- static ts_to_android(value: VeLivePusherErrorCode): $p_a.VeLivePusherErrorCode;
32
- static android_to_ts(value: $p_a.VeLivePusherErrorCode): VeLivePusherErrorCode;
33
- static ts_to_ios(value: VeLivePusherErrorCode): $p_i.VeLivePusherCode;
34
- static ios_to_ts(value: $p_i.VeLivePusherCode): VeLivePusherErrorCode;
101
+ static code_to_android(value: VeLivePusherErrorCode): $p_a.VeLivePusherErrorCode;
102
+ static android_to_code(value: $p_a.VeLivePusherErrorCode): VeLivePusherErrorCode;
103
+ static code_to_ios(value: VeLivePusherErrorCode): $p_i.VeLivePusherCode;
104
+ static ios_to_code(value: $p_i.VeLivePusherCode): VeLivePusherErrorCode;
35
105
  }