@byteplus/react-native-live-push 1.5.1-rc.3 → 1.5.2-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 (54) hide show
  1. package/lib/commonjs/index.js +2 -2
  2. package/lib/commonjs/typescript/codegen/android/api.d.ts +93 -869
  3. package/lib/commonjs/typescript/codegen/android/callback.d.ts +31 -243
  4. package/lib/commonjs/typescript/codegen/android/errorcode.d.ts +15 -60
  5. package/lib/commonjs/typescript/codegen/android/keytype.d.ts +219 -1173
  6. package/lib/commonjs/typescript/codegen/ios/api.d.ts +102 -899
  7. package/lib/commonjs/typescript/codegen/ios/callback.d.ts +28 -162
  8. package/lib/commonjs/typescript/codegen/ios/errorcode.d.ts +25 -100
  9. package/lib/commonjs/typescript/codegen/ios/keytype.d.ts +180 -692
  10. package/lib/commonjs/typescript/codegen/pack/api.d.ts +133 -1180
  11. package/lib/commonjs/typescript/codegen/pack/callback.d.ts +35 -243
  12. package/lib/commonjs/typescript/codegen/pack/errorcode.d.ts +16 -69
  13. package/lib/commonjs/typescript/codegen/pack/keytype.d.ts +271 -1460
  14. package/lib/commonjs/typescript/core/api.d.ts +1 -8
  15. package/lib/commonjs/typescript/core/effect.d.ts +1 -5
  16. package/lib/module/index.js +2 -2
  17. package/lib/module/typescript/codegen/android/api.d.ts +93 -869
  18. package/lib/module/typescript/codegen/android/callback.d.ts +31 -243
  19. package/lib/module/typescript/codegen/android/errorcode.d.ts +15 -60
  20. package/lib/module/typescript/codegen/android/keytype.d.ts +219 -1173
  21. package/lib/module/typescript/codegen/ios/api.d.ts +102 -899
  22. package/lib/module/typescript/codegen/ios/callback.d.ts +28 -162
  23. package/lib/module/typescript/codegen/ios/errorcode.d.ts +25 -100
  24. package/lib/module/typescript/codegen/ios/keytype.d.ts +180 -692
  25. package/lib/module/typescript/codegen/pack/api.d.ts +133 -1180
  26. package/lib/module/typescript/codegen/pack/callback.d.ts +35 -243
  27. package/lib/module/typescript/codegen/pack/errorcode.d.ts +16 -69
  28. package/lib/module/typescript/codegen/pack/keytype.d.ts +271 -1460
  29. package/lib/module/typescript/core/api.d.ts +1 -8
  30. package/lib/module/typescript/core/effect.d.ts +1 -5
  31. package/lib/typescript/codegen/android/api.d.ts +93 -869
  32. package/lib/typescript/codegen/android/callback.d.ts +31 -243
  33. package/lib/typescript/codegen/android/errorcode.d.ts +15 -60
  34. package/lib/typescript/codegen/android/keytype.d.ts +219 -1173
  35. package/lib/typescript/codegen/ios/api.d.ts +102 -899
  36. package/lib/typescript/codegen/ios/callback.d.ts +28 -162
  37. package/lib/typescript/codegen/ios/errorcode.d.ts +25 -100
  38. package/lib/typescript/codegen/ios/keytype.d.ts +180 -692
  39. package/lib/typescript/codegen/pack/api.d.ts +133 -1180
  40. package/lib/typescript/codegen/pack/callback.d.ts +35 -243
  41. package/lib/typescript/codegen/pack/errorcode.d.ts +16 -69
  42. package/lib/typescript/codegen/pack/keytype.d.ts +271 -1460
  43. package/lib/typescript/core/api.d.ts +1 -8
  44. package/lib/typescript/core/effect.d.ts +1 -5
  45. package/package.json +1 -1
  46. package/lib/commonjs/typescript/core/logger.d.ts +0 -1
  47. package/lib/commonjs/typescript/platforms/android/AppLogWrapper.d.ts +0 -8
  48. package/lib/commonjs/typescript/platforms/ios/RangersAppLog.d.ts +0 -4
  49. package/lib/module/typescript/core/logger.d.ts +0 -1
  50. package/lib/module/typescript/platforms/android/AppLogWrapper.d.ts +0 -8
  51. package/lib/module/typescript/platforms/ios/RangersAppLog.d.ts +0 -4
  52. package/lib/typescript/core/logger.d.ts +0 -1
  53. package/lib/typescript/platforms/android/AppLogWrapper.d.ts +0 -8
  54. package/lib/typescript/platforms/ios/RangersAppLog.d.ts +0 -4
@@ -1,12 +1,7 @@
1
1
  import { VeLivePusherStatistics, VeLiveVideoFrame, VeLiveAudioFrame, VeLivePushStatus, VeLiveFirstFrameType, VeLiveNetworkQuality, VeLiveAudioPowerLevel } from './keytype';
2
2
  import { NSDictionary, int, NSString, long, NSError, UIImage, int64_t, BOOL, float } from './types';
3
3
  export declare class VeLivePusherStatisticsObserver {
4
- /** {zh}
5
- * @detail callback
6
- * @brief 推流周期性统计信息回调。
7
- * @order 8
8
- * @param statistics 周期性统计信息,默认每 5s 回调一次,详情请参见 [VeLivePusherStatistics](155321#VeLivePusherStatistics)。
9
- */
4
+
10
5
  /** {en}
11
6
  * @detail callback
12
7
  * @brief Occurs periodically to report streaming statistics. By default, the callback is triggered every 5 seconds.
@@ -14,12 +9,7 @@ export declare class VeLivePusherStatisticsObserver {
14
9
  * @order 8
15
10
  */
16
11
  onStatistics?(statistics: VeLivePusherStatistics): void;
17
- /** {zh}
18
- * @detail callback
19
- * @brief 周期性日志信息回调。
20
- * @order 9
21
- * @param logInfo 周期性日志信息。
22
- */
12
+
23
13
  /** {en}
24
14
  * @detail callback
25
15
  * @brief Occurs periodically to return log information.
@@ -29,22 +19,14 @@ export declare class VeLivePusherStatisticsObserver {
29
19
  onLogMonitor?(logInfo: NSDictionary): void;
30
20
  }
31
21
  export declare class VeLiveMediaPlayerFrameListener {
32
- /** {zh}
33
- * @detail callback
34
- * @brief 播放器视频帧回调。当完成一个新的视频帧的解码后,触发该回调。
35
- * @param videoFrame 视频帧数据,包含了帧的时间戳和格式等信息,详情请参见 [VeLiveVideoFrame](155321#VeLiveVideoFrame)。
36
- */
22
+
37
23
  /** {en}
38
24
  * @detail callback
39
25
  * @brief Occurs when the media player decodes a video frame.
40
26
  * @param videoFrame The video frame data, including the timestamp, pixel format, and other information. See [VeLiveVideoFrame](broadcast-sdk-for-ios-type-definition#VeLiveVideoFrame) for details.
41
27
  */
42
28
  onVideoFrame?(videoFrame: VeLiveVideoFrame): void;
43
- /** {zh}
44
- * @detail callback
45
- * @brief 播放器音频帧回调。
46
- * @param audioFrame 音频帧,详情请参见 [VeLiveAudioFrame](155321#VeLiveAudioFrame)。
47
- */
29
+
48
30
  /** {en}
49
31
  * @detail callback
50
32
  * @brief Occurs when the media player decodes an audio frame.
@@ -53,35 +35,21 @@ export declare class VeLiveMediaPlayerFrameListener {
53
35
  onAudioFrame?(audioFrame: VeLiveAudioFrame): void;
54
36
  }
55
37
  export declare class VeLiveFileRecordingListener {
56
- /** {zh}
57
- * @detail callback
58
- * @brief 直播录制开始回调。
59
- * @order 10
60
- */
38
+
61
39
  /** {en}
62
40
  * @detail callback
63
41
  * @brief Occurs when recording starts.
64
42
  * @order 10
65
43
  */
66
44
  onFileRecordingStarted?(): void;
67
- /** {zh}
68
- * @detail callback
69
- * @brief 直播录制停止回调。
70
- * @order 11
71
- */
45
+
72
46
  /** {en}
73
47
  * @detail callback
74
48
  * @brief Occurs when recording stops.
75
49
  * @order 11
76
50
  */
77
51
  onFileRecordingStopped?(): void;
78
- /** {zh}
79
- * @detail callback
80
- * @brief 直播录制错误回调。
81
- * @order 12
82
- * @param errorCode 错误码,详情请参见 [VeLivePusherCode](155320#VeLivePusherCode)。
83
- * @param msg 错误信息。
84
- */
52
+
85
53
  /** {en}
86
54
  * @detail callback
87
55
  * @brief Occurs when an error occurs during recording.
@@ -92,37 +60,25 @@ export declare class VeLiveFileRecordingListener {
92
60
  onFileRecordingError$message?(errorCode: int, msg: NSString): void;
93
61
  }
94
62
  export declare class VeLiveScreenCaptureStatusObserver {
95
- /** {zh}
96
- * @detail callback
97
- * @brief 录屏推流开始的回调。当 `[RPBroadcastSampleHandler startBroadcast]` 回调被触发时,会同时触发该回调。
98
- */
63
+
99
64
  /** {en}
100
65
  * @detail callback
101
66
  * @brief Triggered when screen streaming starts. This callback is triggered once the `[RPBroadcastSampleHandler startBroadcast]` callback is triggered.
102
67
  */
103
68
  broadcastStarted?(): void;
104
- /** {zh}
105
- * @detail callback
106
- * @brief 屏幕推流暂停的回调。当 `[RPBroadcastSampleHandler pauseBroadcast]` 回调被触发时,会同时触发该回调。
107
- */
69
+
108
70
  /** {en}
109
71
  * @detail callback
110
72
  * @brief Triggered when screen streaming pauses. This callback is triggered once the `[RPBroadcastSampleHandler pauseBroadcast]` callback is triggered.
111
73
  */
112
74
  broadcastPaused?(): void;
113
- /** {zh}
114
- * @detail callback
115
- * @brief 屏幕推流恢复的回调。当 `[RPBroadcastSampleHandler resumeBroadcast]` 回调被触发时,会同时触发该回调。
116
- */
75
+
117
76
  /** {en}
118
77
  * @detail callback
119
78
  * @brief Triggered when screen streaming resumes. This callback is triggered once the `[RPBroadcastSampleHandler resumeBroadcast]` callback is triggered.
120
79
  */
121
80
  broadcastResumed?(): void;
122
- /** {zh}
123
- * @detail callback
124
- * @brief 屏幕推流结束的回调。当 `[RPBroadcastSampleHandler finishBroadcast]` 回调被触发时,会同时触发该回调。
125
- */
81
+
126
82
  /** {en}
127
83
  * @detail callback
128
84
  * @brief Triggered when screen streaming stops. This callback is triggered once the `[RPBroadcastSampleHandler finishBroadcast]` callback is triggered.
@@ -132,22 +88,14 @@ export declare class VeLiveScreenCaptureStatusObserver {
132
88
  export declare class VeLiveVideoFrameFilter {
133
89
  }
134
90
  export declare class VeLiveVideoFrameListener {
135
- /** {zh}
136
- * @detail callback
137
- * @brief 采集视频帧回调。只有当您通过 [getObservedVideoFrameSource](#VeLiveVideoFrameListener-getobservedvideoframesource) 返回 `VeLiveVideoFrameSourceCapture` 时,才会触发该回调。
138
- * @param frame 视频帧数据,详情请参见 [VeLiveVideoFrame](155321#VeLiveVideoFrame)。
139
- */
91
+
140
92
  /** {en}
141
93
  * @detail callback
142
94
  * @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.
143
95
  * @param frame The captured video frame. See VeLiveVideoFrame{@link #VeLiveVideoFrame} for details.
144
96
  */
145
97
  onCaptureVideoFrame?(frame: VeLiveVideoFrame): void;
146
- /** {zh}
147
- * @detail callback
148
- * @brief 编码前视频帧回调。只有当您通过 [getObservedVideoFrameSource](#VeLiveVideoFrameListener-getobservedvideoframesource) 返回 `VeLiveVideoFrameSourcePreEncode` 时,才会触发该回调。
149
- * @param frame 视频帧数据,详情请参见 [VeLiveVideoFrame](155321#VeLiveVideoFrame)。
150
- */
98
+
151
99
  /** {en}
152
100
  * @detail callback
153
101
  * @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.
@@ -156,22 +104,14 @@ export declare class VeLiveVideoFrameListener {
156
104
  onPreEncodeVideoFrame?(frame: VeLiveVideoFrame): void;
157
105
  }
158
106
  export declare class VeLiveAudioFrameListener {
159
- /** {zh}
160
- * @detail callback
161
- * @brief 采集音频帧回调。只有当您通过 [getObservedAudioFrameSource](#VeLiveAudioFrameListener-getobservedaudioframesource) 返回 `VeLiveAudioFrameSourceCapture` 时,才会触发该回调。
162
- * @param frame 音频帧数据,详情请参见 [VeLiveAudioFrame](155321#VeLiveAudioFrame)。
163
- */
107
+
164
108
  /** {en}
165
109
  * @detail callback
166
110
  * @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.
167
111
  * @param frame The captured audio frame data. See VeLiveAudioFrame {@link #VeLiveAudioFrame} for details.
168
112
  */
169
113
  onCaptureAudioFrame?(frame: VeLiveAudioFrame): void;
170
- /** {zh}
171
- * @detail callback
172
- * @brief 编码前音频帧回调。只有当您通过 [getObservedAudioFrameSource](#VeLiveAudioFrameListener-getobservedaudioframesource) 返回 `VeLiveAudioFrameSourcePreEncode` 时,才会触发该回调。
173
- * @param frame 音频帧数据,详情请参见 [VeLiveAudioFrame](155321#VeLiveAudioFrame)。
174
- */
114
+
175
115
  /** {en}
176
116
  * @detail callback
177
117
  * @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.
@@ -180,40 +120,26 @@ export declare class VeLiveAudioFrameListener {
180
120
  onPreEncodeAudioFrame?(frame: VeLiveAudioFrame): void;
181
121
  }
182
122
  export declare class VeLiveMediaPlayerListener {
183
- /** {zh}
184
- * @detail callback
185
- * @brief 开始播放的回调。
186
- */
123
+
187
124
  /** {en}
188
125
  * @detail callback
189
126
  * @brief Occurs when the playback starts.
190
127
  */
191
128
  onStart?(): void;
192
- /** {zh}
193
- * @detail callback
194
- * @brief 播放进度的回调,每 100ms 触发一次。
195
- * @param timeMS 播放进度,单位为 ms。
196
- */
129
+
197
130
  /** {en}
198
131
  * @detail callback
199
132
  * @brief Occurs every 100 ms to report the playback progress.
200
133
  * @param timeMS The playback progress, in milliseconds.
201
134
  */
202
135
  onProgress?(timeMS: long): void;
203
- /** {zh}
204
- * @detail callback
205
- * @brief 停止播放的回调。
206
- */
136
+
207
137
  /** {en}
208
138
  * @detail callback
209
139
  * @brief Occurs when the playback stops.
210
140
  */
211
141
  onStop?(): void;
212
- /** {zh}
213
- * @detail callback
214
- * @brief 返错误状态的回调。
215
- * @param error 错误消息。
216
- */
142
+
217
143
  /** {en}
218
144
  * @detail callback
219
145
  * @brief Occurs when an error occurs in the media player.
@@ -224,11 +150,7 @@ export declare class VeLiveMediaPlayerListener {
224
150
  export declare class VeLiveAudioFrameFilter {
225
151
  }
226
152
  export declare class VeLiveSnapshotListener {
227
- /** {zh}
228
- * @detail callback
229
- * @brief 截图成功回调。调用 [snapshot:](155318#VeLivePusher-snapshot) 截图成功后,会收到这个回调。
230
- * @param image 视频的截图。
231
- */
153
+
232
154
  /** {en}
233
155
  * @detail callback
234
156
  * @brief Occurs when a screenshot is successfully taken after snapshot:{@link #VeLivePusher#snapshot} is called.
@@ -237,14 +159,7 @@ export declare class VeLiveSnapshotListener {
237
159
  onSnapshotComplete?(image: UIImage): void;
238
160
  }
239
161
  export declare class VeLivePusherObserver {
240
- /** {zh}
241
- * @detail callback
242
- * @brief 推流错误回调。
243
- * @order 0
244
- * @param code 错误码,详情请参见 [VeLivePusherCode](155320#VeLivePusherCode)。
245
- * @param subcode 子错误码,详情请参见 [VeLivePusherErrorCode](155320#VeLivePusherErrorCode)。
246
- * @param msg 错误信息。
247
- */
162
+
248
163
  /** {en}
249
164
  * @detail callback
250
165
  * @brief Occurs when a streaming error occurs.
@@ -254,12 +169,7 @@ export declare class VeLivePusherObserver {
254
169
  * @order 0
255
170
  */
256
171
  onError$subcode$message?(code: int, subcode: int, msg: NSString): void;
257
- /** {zh}
258
- * @detail callback
259
- * @brief 推流状态变化回调。
260
- * @order 1
261
- * @param status 变化后的推流状态,详情请参见 [VeLivePushStatus](155321#VeLivePushStatus)。
262
- */
172
+
263
173
  /** {en}
264
174
  * @detail callback
265
175
  * @brief Occurs when the streaming status changes.
@@ -267,13 +177,7 @@ export declare class VeLivePusherObserver {
267
177
  * @order 1
268
178
  */
269
179
  onStatusChange?(status: VeLivePushStatus): void;
270
- /** {zh}
271
- * @detail callback
272
- * @brief 首帧视频回调,当推流器发送出第一帧视频时,触发该回调。
273
- * @order 2
274
- * @param type 首帧的类型,详情请参见 [VeLiveFirstFrameType](155321#VeLiveFirstFrameType)。
275
- * @param timestampMs 时间戳,单位为 ms。
276
- */
180
+
277
181
  /** {en}
278
182
  * @detail callback
279
183
  * @brief Occurs when the live pusher sends the first video frame.
@@ -282,13 +186,7 @@ export declare class VeLivePusherObserver {
282
186
  * @order 2
283
187
  */
284
188
  onFirstVideoFrame$timestampMs?(type: VeLiveFirstFrameType, timestampMs: int64_t): void;
285
- /** {zh}
286
- * @detail callback
287
- * @brief 首帧音频回调,当推流器发送出第一帧音频时,触发该回调。
288
- * @order 3
289
- * @param type 首帧的类型,详情请参见 [VeLiveFirstFrameType](155321#VeLiveFirstFrameType)。
290
- * @param timestampMs 时间戳,单位为 ms。
291
- */
189
+
292
190
  /** {en}
293
191
  * @detail callback
294
192
  * @brief Occurs when the live pusher sends the first audio frame.
@@ -297,14 +195,7 @@ export declare class VeLivePusherObserver {
297
195
  * @order 3
298
196
  */
299
197
  onFirstAudioFrame$timestampMs?(type: VeLiveFirstFrameType, timestampMs: int64_t): void;
300
- /** {zh}
301
- * @detail callback
302
- * @brief 摄像头开启/关闭回调,当推流器的摄像头开启或关闭时,触发该回调。
303
- * @param open 摄像头的新状态是否为开启。<br>
304
- * - YES:摄像头开启;
305
- * - NO:摄像头关闭。
306
- * @order 4
307
- */
198
+
308
199
  /** {en}
309
200
  * @detail callback
310
201
  * @brief Occurs when the camera is turned on or turned off.
@@ -314,14 +205,7 @@ export declare class VeLivePusherObserver {
314
205
  * @order 4
315
206
  */
316
207
  onCameraOpened?(open: BOOL): void;
317
- /** {zh}
318
- * @detail callback
319
- * @brief 麦克风开启/关闭回调,当推流器的麦克风开启或关闭时,触发该回调。
320
- * @param open 麦克风的新状态是否为开启。<br>
321
- * - YES:麦克风开启;
322
- * - NO:麦克风关闭。
323
- * @order 5
324
- */
208
+
325
209
  /** {en}
326
210
  * @detail callback
327
211
  * @brief Occurs when the microphone is turned on or turned off.
@@ -331,12 +215,7 @@ export declare class VeLivePusherObserver {
331
215
  * @order 5
332
216
  */
333
217
  onMicrophoneOpened?(open: BOOL): void;
334
- /** {zh}
335
- * @detail callback
336
- * @brief 网络质量状态回调,当推流器检测到网络质量发生变化时,触发该回调。
337
- * @order 6
338
- * @param quality 变化后的网络质量。详情请参见 [VeLiveNetworkQuality](155321#VeLiveNetworkQuality)。
339
- */
218
+
340
219
  /** {en}
341
220
  * @detail callback
342
221
  * @brief Occurs when the network quality changes.
@@ -344,20 +223,7 @@ export declare class VeLivePusherObserver {
344
223
  * @order 6
345
224
  */
346
225
  onNetworkQuality?(quality: VeLiveNetworkQuality): void;
347
- /** {zh}
348
- * @detail callback
349
- * @brief 音量等级回调,当推流器采集的音频音量等级发生变化时,触发该回调。
350
- * @order 7
351
- * @param level 变化后的音量等级。详情请参见 [VeLiveAudioPowerLevel](155321#VeLiveAudioPowerLevel)。
352
- * @param value 当前音量的分贝值(dB)。
353
- * - -1 表示当前没有获取到对应的音量分贝值;
354
- * - 分贝数小于 1,对应 VeLiveAudioPowerLevelSilent 级别;
355
- * - 分贝数大于 1 小于等于 15,对应 VeLiveAudioPowerLevelQuiet 级别;
356
- * - 分贝数大于 15 小于等于 30,对应 VeLiveAudioPowerLevelLight 级别;
357
- * - 分贝数大于 30 小于等于 60,对应 VeLiveAudioPowerLevelNormal 级别;
358
- * - 分贝数大于 60 小于等于 85,对应 VeLiveAudioPowerLevelLoud 级别;
359
- * - 分贝数大于 85,对应 VeLiveAudioPowerLevelNoisy 级别。
360
- */
226
+
361
227
  /** {en}
362
228
  * @detail callback
363
229
  * @brief Occurs when the audio volume level changes.
@@ -1,125 +1,83 @@
1
1
  export declare enum VeLivePusherErrorCode {
2
- /** {zh}
3
- * @brief License 验证错误,可能是由于 License 无效或过期。
4
- *
5
- */
2
+
6
3
  /** {en}
7
4
  * @brief SDK license error, possibly caused by an invalid or expired certificate.
8
5
  *
9
6
  */
10
7
  VeLivePusherInvalidLicenseSubErrorCode = -100,
11
- /** {zh}
12
- * @brief 您使用的基础版 License 暂不支持 H.265 硬件编码,请登录火山引擎控制台获取高级版 License。
13
- *
14
- */
8
+
15
9
  /** {en}
16
10
  * @brief The current SDK license does not support H.265.
17
11
  *
18
12
  */
19
13
  VeLivePusherInvalidLicenseUnsupportH265 = -101,
20
- /** {zh}
21
- * @brief 参数错误,可能是由于传入的参数类型或值不符合预期。
22
- *
23
- */
14
+
24
15
  /** {en}
25
16
  * @brief Parameter error, possibly caused by an invalid parameter value or parameter type.
26
17
  *
27
18
  */
28
19
  VeLivePusherInvalidParameterSubErrorCode = -200,
29
- /** {zh}
30
- * @brief 参数错误,屏幕推流传入的 AppGroupIdentifier 错误。
31
- *
32
- */
20
+
33
21
  /** {en}
34
22
  * @brief Parameter error, screen capture AppGroupIdentifier parameter error.
35
23
  *
36
24
  */
37
25
  VeLivePusherInvalidParameterScreenCaptureAppGroupIdentifierSubErrorCode = -201,
38
- /** {zh}
39
- * @brief 视频采集类型错误,可能是由于不支持的视频采集类型或者设备不兼容。
40
- *
41
- */
26
+
42
27
  /** {en}
43
28
  * @brief Video capture type error, possibly caused by an unsupported video capture type or capture device.
44
29
  *
45
30
  */
46
31
  VeLivePusherVideoCaptureTypeError = -301,
47
- /** {zh}
48
- * @brief 视频采集权限错误,可能是由于应用没有获取到视频设备的访问权限。
49
- *
50
- */
32
+
51
33
  /** {en}
52
34
  * @brief Video capture permission error, possibly caused by the lack of access to the video device.
53
35
  *
54
36
  */
55
37
  VeLivePusherVideoCapturePermissionError = -302,
56
- /** {zh}
57
- * @brief 音频采集类型错误,可能是由于不支持的音频采集类型或者设备不兼容。
58
- *
59
- */
38
+
60
39
  /** {en}
61
40
  * @brief Audio capture type error, possibly caused by an unsupported audio capture type or capture device.
62
41
  *
63
42
  */
64
43
  VeLivePusherAudioCaptureTypeError = -401,
65
- /** {zh}
66
- * @brief 音频采集权限错误,可能是由于应用没有获取到音频设备的访问权限。
67
- *
68
- */
44
+
69
45
  /** {en}
70
46
  * @brief Audio capture permission error, possibly caused by the lack of access to the audio device.
71
47
  *
72
48
  */
73
49
  VeLivePusherAudioCapturePermissionError = -402,
74
- /** {zh}
75
- * @brief 视频编码错误,可能是由于视频编码器的配置问题或者编码过程中出现错误。
76
- *
77
- */
50
+
78
51
  /** {en}
79
52
  * @brief Video encoding error, possibly caused by a configuration issue with the video encoder or an error during encoding.
80
53
  *
81
54
  */
82
55
  VeLivePusherVideoEncoderSubErrorCode = -500,
83
- /** {zh}
84
- * @brief 音频编码错误,可能是由于音频编码器的配置问题或者编码过程中出现错误。
85
- *
86
- */
56
+
87
57
  /** {en}
88
58
  * @brief Audio encoding error, possibly caused by a configuration issue with the audio encoder or an error during encoding.
89
59
  *
90
60
  */
91
61
  VeLivePusherAudioEncoderSubErrorCode = -600,
92
- /** {zh}
93
- * @brief 网络错误,可能是由于网络连接的问题,如网络不稳定、网络延迟过高等。
94
- *
95
- */
62
+
96
63
  /** {en}
97
64
  * @brief Network error, which might be caused by network connection issues such as network instability or high latency.
98
65
  *
99
66
  */
100
67
  VeLivePusherTransportSubErrorCode = -700,
101
- /** {zh}
102
- * @brief 视频特效错误,可能是由于视频特效处理中出现的问题。
103
- *
104
- */
68
+
105
69
  /** {en}
106
70
  * @brief Special effects error, possibly caused by issues with video processing.
107
71
  *
108
72
  */
109
73
  VeLivePusherVideoEffectSubErrorCode = -800,
110
- /** {zh}
111
- * @brief 音频模块错误,可能是由于音频模块处理过程中出现的问题。
112
- *
113
- */
74
+
114
75
  /** {en}
115
76
  * @brief Audio device error.
116
77
  *
117
78
  */
118
79
  VeLivePusherAudioDeviceSubErrorCode = -900,
119
- /** {zh}
120
- * @brief 内部错误,请通过提交工单联系[技术支持](https://console.volcengine.com/workorder/create?step=2&SubProductID=P00000076),获取帮助。
121
- *
122
- */
80
+
123
81
  /** {en}
124
82
  * @brief Internal error. You can [create a ticket](https://console.byteplus.com/workorder/create?step=2&SubProductID=P00000980) to contact the BytePlus technical support for help.
125
83
  *
@@ -127,100 +85,67 @@ export declare enum VeLivePusherErrorCode {
127
85
  VeLivePusherInternalError = -10001
128
86
  }
129
87
  export declare enum VeLivePusherCode {
130
- /** {zh}
131
- * @brief 无错误。
132
- *
133
- */
88
+
134
89
  /** {en}
135
90
  * @brief No error.
136
91
  *
137
92
  */
138
93
  VeLivePusherSuccess = 0,
139
- /** {zh}
140
- * @brief License 错误,可能 License 集成错误或 License 过期,请检查 License 集成方式和有效性。
141
- *
142
- */
94
+
143
95
  /** {en}
144
96
  * @brief SDK license error.
145
97
  *
146
98
  */
147
99
  VeLivePusherInvalidLicense = -1,
148
- /** {zh}
149
- * @brief 参数错误,请检查入参,并重新调用。
150
- *
151
- */
100
+
152
101
  /** {en}
153
102
  * @brief Parameter error.
154
103
  *
155
104
  */
156
105
  VeLivePusherInvalidParameter = -2,
157
- /** {zh}
158
- * @brief 视频采集错误,可能未开启设备视频采集权限,请检查权限是否获取。
159
- *
160
- */
106
+
161
107
  /** {en}
162
108
  * @brief Video capture error.
163
109
  *
164
110
  */
165
111
  VeLivePusherVideoCaptureError = -3,
166
- /** {zh}
167
- * @brief 音频采集错误,可能未开启设备麦克风采集权限,请检查权限是否获取。
168
- *
169
- */
112
+
170
113
  /** {en}
171
114
  * @brief Audio capture error.
172
115
  *
173
116
  */
174
117
  VeLivePusherAudioCaptureError = -4,
175
- /** {zh}
176
- * @brief 视频编码错误,可能配置了当前设备不支持的视频编码方式,请检查编码参数,并重新调用。如果故障未排除,请联系火山引擎[技术支持](https://console.volcengine.com/workorder/create?step=3&SubProductID=P00000076&FlowKey=iNcpuNlwBHbovcjeWlKP)。
177
- *
178
- */
118
+
179
119
  /** {en}
180
120
  * @brief Video encoding error.
181
121
  *
182
122
  */
183
123
  VeLivePusherVideoEncoderError = -5,
184
- /** {zh}
185
- * @brief 音频编码错误,可能配置了当前设备不支持的音频编码方式,请检查编码参数,并重新调用。如果故障未排除,请联系火山引擎[技术支持](https://console.volcengine.com/workorder/create?step=3&SubProductID=P00000076&FlowKey=iNcpuNlwBHbovcjeWlKP)。
186
- *
187
- */
124
+
188
125
  /** {en}
189
126
  * @brief Audio encoding error.
190
127
  *
191
128
  */
192
129
  VeLivePusherAudioEncoderError = -6,
193
- /** {zh}
194
- * @brief 网络发送错误,可能当前网络链路不通,或者开启了代理和关闭了网络权限,请检查网络后重新调用。如果故障未排除,请联系火山引擎[技术支持](https://console.volcengine.com/workorder/create?step=3&SubProductID=P00000076&FlowKey=iNcpuNlwBHbovcjeWlKP)。
195
- *
196
- */
130
+
197
131
  /** {en}
198
132
  * @brief Network transmission error.
199
133
  *
200
134
  */
201
135
  VeLivePusherTransportError = -7,
202
- /** {zh}
203
- * @brief 视频特效错误,请检查视频特效 SDK 是否已经集成并且初试化成功。检查特效资源路径是否配置正确。如果故障未排除,请联系火山引擎[技术支持](https://console.volcengine.com/workorder/create?step=3&SubProductID=P00000076&FlowKey=iNcpuNlwBHbovcjeWlKP)。
204
- *
205
- */
136
+
206
137
  /** {en}
207
138
  * @brief Special effects error.
208
139
  *
209
140
  */
210
141
  VeLivePusherVideoEffectError = -8,
211
- /** {zh}
212
- * @brief 音频模块错误,请联系火山引擎[技术支持](https://console.volcengine.com/workorder/create?step=3&SubProductID=P00000076&FlowKey=iNcpuNlwBHbovcjeWlKP)。
213
- *
214
- */
142
+
215
143
  /** {en}
216
144
  * @brief Audio error.
217
145
  *
218
146
  */
219
147
  VeLivePusherAudioDeviceError = -9,
220
- /** {zh}
221
- * @brief 其他错误类型,请联系火山引擎[技术支持](https://console.volcengine.com/workorder/create?step=3&SubProductID=P00000076&FlowKey=iNcpuNlwBHbovcjeWlKP)。
222
- *
223
- */
148
+
224
149
  /** {en}
225
150
  * @brief Other error.
226
151
  *