@byteplus/react-native-live-push 1.1.3-rc.4 → 1.3.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.
- package/android/build.gradle +2 -2
- package/android/src/main/java/com/volcengine/velive/rn/push/ClassHelper.java +9 -0
- package/android/src/main/java/com/volcengine/velive/rn/push/NativeVariableManager.java +5 -8
- package/android/src/main/java/com/volcengine/velive/rn/push/VeLivePushModule.java +1 -0
- package/android/src/main/java/com/volcengine/velive/rn/push/mixer/MixerManager.java +2 -4
- package/android/src/main/java/com/volcengine/velive/rn/push/mixer/MixerView.java +50 -145
- package/android/src/main/java/com/volcengine/velive/rn/push/mixer/MixerViewManager.java +1 -37
- package/ios/VeLiveMixerHelper.h +16 -11
- package/ios/VeLiveMixerHelper.m +39 -13
- package/ios/VeLiveMixerView.h +1 -8
- package/ios/VeLiveMixerView.m +178 -231
- package/ios/VeLiveMixerViewManager.m +2 -38
- package/lib/commonjs/index.js +23205 -20306
- package/lib/commonjs/typescript/android/index.d.ts +0 -3
- package/lib/commonjs/typescript/codegen/android/api.d.ts +190 -644
- package/lib/commonjs/typescript/codegen/android/callback.d.ts +234 -2
- package/lib/commonjs/typescript/codegen/android/errorcode.d.ts +66 -0
- package/lib/commonjs/typescript/codegen/android/keytype.d.ts +1014 -181
- package/lib/commonjs/typescript/codegen/ios/api.d.ts +890 -0
- package/lib/commonjs/typescript/codegen/ios/callback.d.ts +162 -0
- package/lib/commonjs/typescript/codegen/ios/errorcode.d.ts +101 -1
- package/lib/commonjs/typescript/codegen/ios/keytype.d.ts +694 -0
- package/lib/commonjs/typescript/codegen/pack/api.d.ts +303 -686
- package/lib/commonjs/typescript/codegen/pack/callback.d.ts +37 -38
- package/lib/commonjs/typescript/codegen/pack/errorcode.d.ts +75 -5
- package/lib/commonjs/typescript/codegen/pack/keytype.d.ts +1002 -298
- package/lib/commonjs/typescript/core/api.d.ts +2 -1
- package/lib/commonjs/typescript/core/keytype.d.ts +2 -3
- package/lib/commonjs/typescript/core/pusher.d.ts +0 -3
- package/lib/commonjs/typescript/view/MixView.d.ts +1 -9
- package/lib/module/index.js +23206 -20306
- package/lib/module/typescript/android/index.d.ts +0 -3
- package/lib/module/typescript/codegen/android/api.d.ts +190 -644
- package/lib/module/typescript/codegen/android/callback.d.ts +234 -2
- package/lib/module/typescript/codegen/android/errorcode.d.ts +66 -0
- package/lib/module/typescript/codegen/android/keytype.d.ts +1014 -181
- package/lib/module/typescript/codegen/ios/api.d.ts +890 -0
- package/lib/module/typescript/codegen/ios/callback.d.ts +162 -0
- package/lib/module/typescript/codegen/ios/errorcode.d.ts +101 -1
- package/lib/module/typescript/codegen/ios/keytype.d.ts +694 -0
- package/lib/module/typescript/codegen/pack/api.d.ts +303 -686
- package/lib/module/typescript/codegen/pack/callback.d.ts +37 -38
- package/lib/module/typescript/codegen/pack/errorcode.d.ts +75 -5
- package/lib/module/typescript/codegen/pack/keytype.d.ts +1002 -298
- package/lib/module/typescript/core/api.d.ts +2 -1
- package/lib/module/typescript/core/keytype.d.ts +2 -3
- package/lib/module/typescript/core/pusher.d.ts +0 -3
- package/lib/module/typescript/view/MixView.d.ts +1 -9
- package/lib/typescript/android/index.d.ts +0 -3
- package/lib/typescript/codegen/android/api.d.ts +190 -644
- package/lib/typescript/codegen/android/callback.d.ts +234 -2
- package/lib/typescript/codegen/android/errorcode.d.ts +66 -0
- package/lib/typescript/codegen/android/keytype.d.ts +1014 -181
- package/lib/typescript/codegen/ios/api.d.ts +890 -0
- package/lib/typescript/codegen/ios/callback.d.ts +162 -0
- package/lib/typescript/codegen/ios/errorcode.d.ts +101 -1
- package/lib/typescript/codegen/ios/keytype.d.ts +694 -0
- package/lib/typescript/codegen/pack/api.d.ts +303 -686
- package/lib/typescript/codegen/pack/callback.d.ts +37 -38
- package/lib/typescript/codegen/pack/errorcode.d.ts +75 -5
- package/lib/typescript/codegen/pack/keytype.d.ts +1002 -298
- package/lib/typescript/core/api.d.ts +2 -1
- package/lib/typescript/core/keytype.d.ts +2 -3
- package/lib/typescript/core/pusher.d.ts +0 -3
- package/lib/typescript/view/MixView.d.ts +1 -9
- package/package.json +1 -1
- package/react-native-velive-push.podspec +3 -3
- package/android/src/main/java/com/volcengine/velive/rn/push/ScreenCaptureHelper.java +0 -73
|
@@ -1,91 +1,323 @@
|
|
|
1
|
-
import { VeLiveVideoFrame, VeLiveAudioFrame } from './
|
|
1
|
+
import { VeLiveVideoFrame, VeLiveVideoFrameSource, VeLiveAudioFrameSource, VeLiveAudioFrame, VeLivePusherStatus, VeLiveFirstFrameType, VeLiveNetworkQuality, VeLiveAudioPowerLevel, VeLivePusherStatistics } from './keytype';
|
|
2
2
|
import { int, String, Bundle, long, Bitmap, float, JSONObject } from './types';
|
|
3
|
-
import { VeLiveVideoFrameSource, VeLiveAudioFrameSource, VeLivePusherStatus, VeLiveFirstFrameType, VeLiveNetworkQuality, VeLiveAudioPowerLevel, VeLivePusherStatistics } from './keytype';
|
|
4
3
|
export declare class VeLiveVideoFrameFilter {
|
|
5
4
|
|
|
5
|
+
/** {en}
|
|
6
|
+
* @detail callback
|
|
7
|
+
* @brief Occurs when the SDK captures a video frame. You can use the callback to process the frame in a custom way.
|
|
8
|
+
* @param srcFrame The source video frame. See [VeLiveVideoFrame](docs-broadcast-sdk-for-android-type-definition#VeLiveVideoFrame) for details.
|
|
9
|
+
* @param dstFrame The processed video frame. See [VeLiveVideoFrame](docs-broadcast-sdk-for-android-type-definition#VeLiveVideoFrame) for details.
|
|
10
|
+
* @order 15
|
|
11
|
+
* @return - 0: The video frame is successfully processed;
|
|
12
|
+
* - < 0: The processing has failed. The frame will be discarded by the SDK;
|
|
13
|
+
* - > 0: The processing has failed. The frame will be passed to the encoder by the SDK.
|
|
14
|
+
*
|
|
15
|
+
*/
|
|
6
16
|
onVideoProcess?(srcFrame: VeLiveVideoFrame, dstFrame: VeLiveVideoFrame): int;
|
|
7
17
|
}
|
|
8
18
|
export declare class VeLiveVideoFrameListener {
|
|
9
19
|
|
|
20
|
+
/** {en}
|
|
21
|
+
* @detail callback
|
|
22
|
+
* @brief Sets the source of the video frame that the listener needs.
|
|
23
|
+
* @order 17
|
|
24
|
+
* @return The source type of the video frame you want to subscribe to. See [VeLiveVideoFrameSource](docs-broadcast-sdk-for-android-type-definition#VeLivePusherDef-VeLiveVideoFrameSource) for details.
|
|
25
|
+
*
|
|
26
|
+
*/
|
|
10
27
|
getObservedVideoFrameSource?(): VeLiveVideoFrameSource;
|
|
11
28
|
|
|
29
|
+
/** {en}
|
|
30
|
+
* @detail callback
|
|
31
|
+
* @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.
|
|
32
|
+
* @param frame The captured video frame. See [VeLiveVideoFrame](#VeLivePusherDef-VeLiveVideoFrameFilter) for details.
|
|
33
|
+
* @order 18
|
|
34
|
+
*
|
|
35
|
+
*/
|
|
12
36
|
onCaptureVideoFrame?(frame: VeLiveVideoFrame): void;
|
|
13
37
|
|
|
38
|
+
/** {en}
|
|
39
|
+
* @detail callback
|
|
40
|
+
* @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.
|
|
41
|
+
* @param frame The video frame to be encoded. See [VeLiveVideoFrame](docs-broadcast-sdk-for-android-type-definition#VeLiveVideoFrame) for details.
|
|
42
|
+
* @order 19
|
|
43
|
+
*
|
|
44
|
+
*/
|
|
14
45
|
onPreEncodeVideoFrame?(frame: VeLiveVideoFrame): void;
|
|
15
46
|
}
|
|
16
47
|
export declare class VeLiveVideoEffectCallback {
|
|
17
48
|
|
|
49
|
+
/** {en}
|
|
50
|
+
* @detail callback
|
|
51
|
+
* @brief Occurs when special effects are processed.
|
|
52
|
+
* @param result The result.
|
|
53
|
+
* @param msg The message.
|
|
54
|
+
*
|
|
55
|
+
*/
|
|
18
56
|
onResult?(result: int, msg: String): void;
|
|
19
57
|
}
|
|
20
58
|
export declare class VeLiveMediaPlayerListener {
|
|
21
59
|
|
|
60
|
+
/** {en}
|
|
61
|
+
* @detail callback
|
|
62
|
+
* @brief Occurs when the playback starts.
|
|
63
|
+
*
|
|
64
|
+
*/
|
|
22
65
|
onStart?(info: Bundle): void;
|
|
23
66
|
|
|
67
|
+
/** {en}
|
|
68
|
+
* @detail callback
|
|
69
|
+
* @brief Occurs every 100 ms to report the playback progress.
|
|
70
|
+
* @param timeMs The playback progress, in milliseconds.
|
|
71
|
+
*
|
|
72
|
+
*/
|
|
24
73
|
onProgress?(timeMs: long): void;
|
|
25
74
|
|
|
75
|
+
/** {en}
|
|
76
|
+
* @detail callback
|
|
77
|
+
* @brief Occurs when the playback stops.
|
|
78
|
+
*
|
|
79
|
+
*/
|
|
26
80
|
onStop?(): void;
|
|
27
81
|
|
|
82
|
+
/** {en}
|
|
83
|
+
* @detail callback
|
|
84
|
+
* @brief Occurs when an error occurs in the media player.
|
|
85
|
+
* @param code The error code. See [VeLivePusherErrorCode](broadcast-sdk-for-android-api-error-code#VeLivePusherErrorCode) for details.
|
|
86
|
+
* @param msg The error message.
|
|
87
|
+
*
|
|
88
|
+
*/
|
|
28
89
|
onError?(code: int, msg: String): void;
|
|
29
90
|
}
|
|
30
91
|
export declare class VeLiveAudioFrameListener {
|
|
31
92
|
|
|
93
|
+
/** {en}
|
|
94
|
+
* @detail callback
|
|
95
|
+
* @brief Sets the source of the audio frame that the listener needs.
|
|
96
|
+
* @order 20
|
|
97
|
+
* @return The source type of the audio frame. See [VeLiveAudioFrameSource](docs-broadcast-sdk-for-android-type-definition#VeLivePusherDef-VeLiveAudioFrameSource) for details.
|
|
98
|
+
*
|
|
99
|
+
*/
|
|
32
100
|
getObservedAudioFrameSource?(): VeLiveAudioFrameSource;
|
|
33
101
|
|
|
102
|
+
/** {en}
|
|
103
|
+
* @detail callback
|
|
104
|
+
* @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.
|
|
105
|
+
* @param frame The captured audio frame data. See [VeLiveAudioFrame](docs-broadcast-sdk-for-android-type-definition#VeLiveAudioFrame).
|
|
106
|
+
* @order 21
|
|
107
|
+
*
|
|
108
|
+
*/
|
|
34
109
|
onCaptureAudioFrame?(frame: VeLiveAudioFrame): void;
|
|
35
110
|
|
|
111
|
+
/** {en}
|
|
112
|
+
* @detail callback
|
|
113
|
+
* @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.
|
|
114
|
+
* @param frame The audio frame to be encoded. See [VeLiveAudioFrame](docs-broadcast-sdk-for-android-type-definition#VeLiveAudioFrame) for details.
|
|
115
|
+
* @order 22
|
|
116
|
+
*
|
|
117
|
+
*/
|
|
36
118
|
onPreEncodeAudioFrame?(frame: VeLiveAudioFrame): void;
|
|
37
119
|
}
|
|
38
120
|
export declare class VeLiveMediaPlayerFrameListener {
|
|
39
121
|
|
|
122
|
+
/** {en}
|
|
123
|
+
* @detail callback
|
|
124
|
+
* @brief Occurs when the media player decodes an audio frame.
|
|
125
|
+
* @param frame The audio frame. See [VeLiveAudioFrame](docs-broadcast-sdk-for-android-type-definition#VeLiveAudioFrame) for details.
|
|
126
|
+
*
|
|
127
|
+
*/
|
|
40
128
|
onAudioFrame?(frame: VeLiveAudioFrame): void;
|
|
41
129
|
|
|
130
|
+
/** {en}
|
|
131
|
+
* @detail callback
|
|
132
|
+
* @brief Occurs when the media player decodes a video frame.
|
|
133
|
+
* @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.
|
|
134
|
+
*
|
|
135
|
+
*/
|
|
42
136
|
onVideoFrame?(frame: VeLiveVideoFrame): void;
|
|
43
137
|
}
|
|
44
138
|
export declare class VeLiveSnapshotListener {
|
|
45
139
|
|
|
140
|
+
/** {en}
|
|
141
|
+
* @detail callback
|
|
142
|
+
* @brief Screenshot success callback.
|
|
143
|
+
* @param image The screenshot image.
|
|
144
|
+
* @order 15
|
|
145
|
+
*
|
|
146
|
+
*/
|
|
46
147
|
onSnapshotComplete?(image: Bitmap): void;
|
|
47
148
|
}
|
|
48
149
|
export declare class VeLiveAudioFrameFilter {
|
|
49
150
|
|
|
151
|
+
/** {en}
|
|
152
|
+
* @detail callback
|
|
153
|
+
* @brief Occurs when the SDK captures an audio frame. You can use the callback to process the frame in a custom way.
|
|
154
|
+
* @param srcFrame The source audio frame. See [VeLiveAudioFrame](docs-broadcast-sdk-for-android-type-definition#VeLiveAudioFrame) for details.
|
|
155
|
+
* @param dstFrame The processed audio frame. See [VeLiveAudioFrame](docs-broadcast-sdk-for-android-type-definition#VeLiveAudioFrame) for details.
|
|
156
|
+
* - 0: Success;
|
|
157
|
+
* - ≠ 0: Failure. The frame will be passed to the encoder by the SDK.
|
|
158
|
+
* @order 16
|
|
159
|
+
*
|
|
160
|
+
*/
|
|
50
161
|
onAudioProcess?(srcFrame: VeLiveAudioFrame, dstFrame: VeLiveAudioFrame): int;
|
|
51
162
|
}
|
|
52
163
|
export declare class VeLivePusherObserver {
|
|
53
164
|
|
|
165
|
+
/** {en}
|
|
166
|
+
* @detail callback
|
|
167
|
+
* @brief Occurs when a streaming error occurs.
|
|
168
|
+
* @param code The error code. See [VeLivePusherErrorCode](broadcast-sdk-for-android-api-error-code#VeLivePusherErrorCode) for details.
|
|
169
|
+
* @param subCode The subcode.
|
|
170
|
+
* @param msg The error message.
|
|
171
|
+
* @order 1
|
|
172
|
+
*
|
|
173
|
+
*/
|
|
54
174
|
onError?(code: int, subCode: int, msg: String): void;
|
|
55
175
|
|
|
176
|
+
/** {en}
|
|
177
|
+
* @detail callback
|
|
178
|
+
* @brief Occurs when the streaming status changes.
|
|
179
|
+
* @param status The updated streaming status. See [VeLivePusherStatus](broadcast-sdk-for-android-type-definition#VeLivePusherStatus) for details.
|
|
180
|
+
* @order 2
|
|
181
|
+
*
|
|
182
|
+
*/
|
|
56
183
|
onStatusChange?(status: VeLivePusherStatus): void;
|
|
57
184
|
|
|
185
|
+
/** {en}
|
|
186
|
+
* @detail callback
|
|
187
|
+
* @brief Occurs when the live pusher sends the first video frame.
|
|
188
|
+
* @param type The type of the first frame. See [VeLiveFirstFrameType](broadcast-sdk-for-android-type-definition#VeLiveFirstFrameType) for details.
|
|
189
|
+
* @param timestampMs The timestamp, in milliseconds.
|
|
190
|
+
* @order 3
|
|
191
|
+
*
|
|
192
|
+
*/
|
|
58
193
|
onFirstVideoFrame?(type: VeLiveFirstFrameType, timestampMs: long): void;
|
|
59
194
|
|
|
195
|
+
/** {en}
|
|
196
|
+
* @detail callback
|
|
197
|
+
* @brief Occurs when the live pusher sends the first audio frame.
|
|
198
|
+
* @param type The type of the first audio frame. See [VeLiveFirstFrameType](broadcast-sdk-for-android-type-definition#VeLiveFirstFrameType) for details.
|
|
199
|
+
* @param timestampMs The timestamp, in milliseconds.
|
|
200
|
+
* @order 4
|
|
201
|
+
*
|
|
202
|
+
*/
|
|
60
203
|
onFirstAudioFrame?(type: VeLiveFirstFrameType, timestampMs: long): void;
|
|
61
204
|
|
|
205
|
+
/** {en}
|
|
206
|
+
* @detail callback
|
|
207
|
+
* @brief Occurs when the camera is turned on or turned off.
|
|
208
|
+
* @param open Whether the updated status of the camera is on. <br>
|
|
209
|
+
* - true: On;
|
|
210
|
+
* - false: Off.
|
|
211
|
+
* @order 5
|
|
212
|
+
*
|
|
213
|
+
*/
|
|
62
214
|
onCameraOpened?(open: boolean): void;
|
|
63
215
|
|
|
216
|
+
/** {en}
|
|
217
|
+
* @detail callback
|
|
218
|
+
* @brief Occurs when the microphone is turned on or turned off.
|
|
219
|
+
* @param open Whether the updated status of the microphone is on. <br>
|
|
220
|
+
* - true: On;
|
|
221
|
+
* - false: Off.
|
|
222
|
+
* @order 6
|
|
223
|
+
*
|
|
224
|
+
*/
|
|
64
225
|
onMicrophoneOpened?(open: boolean): void;
|
|
65
226
|
|
|
227
|
+
/** {en}
|
|
228
|
+
* @detail callback
|
|
229
|
+
* @brief Occurs when screen capture is turned on or turned off.
|
|
230
|
+
* @param open Whether the updated status of screen capture is on. <br>
|
|
231
|
+
* - true: On;
|
|
232
|
+
* - false: Off.
|
|
233
|
+
* @order 7
|
|
234
|
+
*
|
|
235
|
+
*/
|
|
66
236
|
onScreenRecording?(open: boolean): void;
|
|
67
237
|
|
|
238
|
+
/** {en}
|
|
239
|
+
* @detail callback
|
|
240
|
+
* @brief Occurs when the network quality changes.
|
|
241
|
+
* @param quality The updated network quality. See [VeLiveNetworkQuality](broadcast-sdk-for-android-type-definition#VeLiveNetworkQuality) for details.
|
|
242
|
+
* @order 8
|
|
243
|
+
*
|
|
244
|
+
*/
|
|
68
245
|
onNetworkQuality?(quality: VeLiveNetworkQuality): void;
|
|
69
246
|
|
|
247
|
+
/** {en}
|
|
248
|
+
* @detail callback
|
|
249
|
+
* @brief Occurs when the audio volume level changes.
|
|
250
|
+
* @order 9
|
|
251
|
+
* @param level The updated volume level. See [VeLiveAudioPowerLevel](broadcast-sdk-for-android-type-definition#VeLiveAudioPowerLevel) for details.
|
|
252
|
+
* @param value The current volume measured in decibel value (dB).
|
|
253
|
+
* - A value of -1 indicates that the corresponding volume decibel value is not available.
|
|
254
|
+
* - Decibel values less than 1 correspond to the VeLiveAudioPowerLevelSilent level.
|
|
255
|
+
* - Decibel values greater than 1 and less than or equal to 15 correspond to the VeLiveAudioPowerLevelQuiet level.
|
|
256
|
+
* - Decibel values greater than 15 and less than or equal to 30 correspond to the VeLiveAudioPowerLevelLight level.
|
|
257
|
+
* - Decibel values greater than 30 and less than or equal to 60 correspond to the VeLiveAudioPowerLevelNormal level.
|
|
258
|
+
* - Decibel values greater than 60 and less than or equal to 85 correspond to the VeLiveAudioPowerLevelLoud level.
|
|
259
|
+
* - Decibel values greater than 85 correspond to the VeLiveAudioPowerLevelNoisy level.
|
|
260
|
+
*
|
|
261
|
+
*/
|
|
70
262
|
onAudioPowerQuality?(level: VeLiveAudioPowerLevel, value: float): void;
|
|
71
263
|
}
|
|
72
264
|
export declare class VeLivePusherStatisticsObserver {
|
|
73
265
|
|
|
266
|
+
/** {en}
|
|
267
|
+
* @detail callback
|
|
268
|
+
* @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.
|
|
269
|
+
* @order 10
|
|
270
|
+
* @param statistics The streaming statistics. See [VeLivePusherStatistics](docs-broadcast-sdk-for-android-type-definition#VeLivePusherDef-VeLivePusherStatistics) for details.
|
|
271
|
+
*
|
|
272
|
+
*/
|
|
74
273
|
onStatistics?(statistics: VeLivePusherStatistics): void;
|
|
75
274
|
|
|
275
|
+
/** {en}
|
|
276
|
+
* @detail callback
|
|
277
|
+
* @brief Occurs periodically to return log information.
|
|
278
|
+
* @param logInfo The log information.
|
|
279
|
+
* @order 11
|
|
280
|
+
*
|
|
281
|
+
*/
|
|
76
282
|
onLogMonitor?(logInfo: JSONObject): void;
|
|
77
283
|
}
|
|
78
284
|
export declare class VeLivePusherDef {
|
|
79
285
|
}
|
|
80
286
|
export declare class VeLiveFileRecordingListener {
|
|
81
287
|
|
|
288
|
+
/** {en}
|
|
289
|
+
* @detail callback
|
|
290
|
+
* @brief Occurs when recording starts.
|
|
291
|
+
* @order 12
|
|
292
|
+
*
|
|
293
|
+
*/
|
|
82
294
|
onFileRecordingStarted?(): void;
|
|
83
295
|
|
|
296
|
+
/** {en}
|
|
297
|
+
* @detail callback
|
|
298
|
+
* @brief Occurs when recording stops.
|
|
299
|
+
* @order 13
|
|
300
|
+
*
|
|
301
|
+
*/
|
|
84
302
|
onFileRecordingStopped?(): void;
|
|
85
303
|
|
|
304
|
+
/** {en}
|
|
305
|
+
* @detail callback
|
|
306
|
+
* @brief Occurs when an error occurs during recording.
|
|
307
|
+
* @param errorCode The error code. See [VeLivePusherErrorCode](broadcast-sdk-for-android-api-error-code#VeLivePusherErrorCode) for details.
|
|
308
|
+
* @param message The error message.
|
|
309
|
+
* @order 14
|
|
310
|
+
*
|
|
311
|
+
*/
|
|
86
312
|
onFileRecordingError?(errorCode: int, message: String): void;
|
|
87
313
|
}
|
|
88
314
|
export declare class VeLiveVideoEffectHandleCallback {
|
|
89
315
|
|
|
316
|
+
/** {en}
|
|
317
|
+
* @detail callback
|
|
318
|
+
* @brief Occurs when the [setAdvancedFeature](docs-broadcast-sdk-for-android-api#VeLiveVideoEffectManager-setadvancedfeature) method is called. 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.
|
|
319
|
+
* @param handle The video effect object.
|
|
320
|
+
*
|
|
321
|
+
*/
|
|
90
322
|
onEffectHandle?(handle: Object): void;
|
|
91
323
|
}
|
|
@@ -1,26 +1,92 @@
|
|
|
1
1
|
export declare enum VeLivePusherErrorCode {
|
|
2
2
|
|
|
3
|
+
/** {en}
|
|
4
|
+
* @brief No error.
|
|
5
|
+
*
|
|
6
|
+
*/
|
|
3
7
|
VeLivePusherSuccess = 0,
|
|
4
8
|
|
|
9
|
+
/** {en}
|
|
10
|
+
* @brief SDK license error, possibly caused by an invalid or expired certificate.
|
|
11
|
+
*
|
|
12
|
+
*/
|
|
5
13
|
VeLivePusherInvalidLicense = -1,
|
|
6
14
|
|
|
15
|
+
/** {en}
|
|
16
|
+
* @brief Parameter error, possibly caused by an invalid parameter value or parameter type.
|
|
17
|
+
*
|
|
18
|
+
*/
|
|
7
19
|
VeLivePusherInvalidParameter = -2,
|
|
8
20
|
|
|
21
|
+
/** {en}
|
|
22
|
+
* @brief Video capture error, possibly caused by the lack of access to the video device.
|
|
23
|
+
*
|
|
24
|
+
*/
|
|
9
25
|
VeLivePusherVideoCaptureError = -3,
|
|
10
26
|
|
|
27
|
+
/** {en}
|
|
28
|
+
* @brief Audio capture error, possibly caused by the lack of access to the audio device.
|
|
29
|
+
*
|
|
30
|
+
*/
|
|
11
31
|
VeLivePusherAudioCaptureError = -4,
|
|
12
32
|
|
|
33
|
+
/** {en}
|
|
34
|
+
* @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.
|
|
35
|
+
*
|
|
36
|
+
*/
|
|
13
37
|
VeLivePusherVideoEncoderError = -5,
|
|
14
38
|
|
|
39
|
+
/** {en}
|
|
40
|
+
* @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.
|
|
41
|
+
*
|
|
42
|
+
*/
|
|
15
43
|
VeLivePusherAudioEncoderError = -6,
|
|
16
44
|
|
|
45
|
+
/** {en}
|
|
46
|
+
* @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.
|
|
47
|
+
*
|
|
48
|
+
*/
|
|
17
49
|
VeLivePusherTransportError = -7,
|
|
18
50
|
|
|
51
|
+
/** {en}
|
|
52
|
+
* @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.
|
|
53
|
+
*
|
|
54
|
+
*/
|
|
19
55
|
VeLivePusherVideoEffectError = -8,
|
|
20
56
|
|
|
57
|
+
/** {en}
|
|
58
|
+
* @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.
|
|
59
|
+
*
|
|
60
|
+
*/
|
|
21
61
|
VeLivePusherAudioDeviceError = -9,
|
|
22
62
|
|
|
63
|
+
/** {en}
|
|
64
|
+
* @brief The license does not support H265.
|
|
65
|
+
*
|
|
66
|
+
*/
|
|
23
67
|
VeLivePusherLicenseUnsupportedH265 = -10,
|
|
24
68
|
|
|
69
|
+
/** {en}
|
|
70
|
+
* @brief
|
|
71
|
+
*
|
|
72
|
+
*/
|
|
73
|
+
VeLivePusherScreenCaptureNotSupportError = -11,
|
|
74
|
+
|
|
75
|
+
/** {en}
|
|
76
|
+
* @brief
|
|
77
|
+
*
|
|
78
|
+
*/
|
|
79
|
+
VeLivePusherScreenCaptureStartError = -12,
|
|
80
|
+
|
|
81
|
+
/** {en}
|
|
82
|
+
* @brief
|
|
83
|
+
*
|
|
84
|
+
*/
|
|
85
|
+
VeLivePusherScreenCaptureInterruptedError = -13,
|
|
86
|
+
|
|
87
|
+
/** {en}
|
|
88
|
+
* @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.
|
|
89
|
+
*
|
|
90
|
+
*/
|
|
25
91
|
VeLivePusherError = -100
|
|
26
92
|
}
|