@byteplus/react-native-live-pull 1.5.1-rc.2 → 1.5.1-rc.3
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/bin/build/generated/res/pngs/debug/drawable-anydpi-v24/new_window.xml +16 -0
- package/android/bin/build/generated/res/pngs/debug/drawable-hdpi/new_window.png +0 -0
- package/android/bin/build/generated/res/pngs/debug/drawable-ldpi/new_window.png +0 -0
- package/android/bin/build/generated/res/pngs/debug/drawable-mdpi/new_window.png +0 -0
- package/android/bin/build/generated/res/pngs/debug/drawable-xhdpi/new_window.png +0 -0
- package/android/bin/build/generated/res/pngs/debug/drawable-xxhdpi/new_window.png +0 -0
- package/android/bin/build/generated/res/pngs/debug/drawable-xxxhdpi/new_window.png +0 -0
- package/android/bin/build/generated/source/buildConfig/debug/com/volcengine/velive/rn/pull/BuildConfig.class +0 -0
- package/android/bin/build/intermediates/aapt_friendly_merged_manifests/debug/aapt/AndroidManifest.xml +25 -0
- package/android/bin/build/intermediates/aapt_friendly_merged_manifests/debug/aapt/output-metadata.json +18 -0
- package/android/bin/build/intermediates/aar_metadata/debug/aar-metadata.properties +5 -0
- package/android/bin/build/intermediates/annotation_processor_list/debug/annotationProcessors.json +1 -0
- package/android/bin/build/intermediates/compile_library_classes_jar/debug/classes.jar +0 -0
- package/android/bin/build/intermediates/compile_r_class_jar/debug/R.jar +0 -0
- package/android/bin/build/intermediates/compile_symbol_list/debug/R.txt +6 -0
- package/android/bin/build/intermediates/compiled_local_resources/debug/out/drawable-anydpi-v24_new_window.xml.flat +0 -0
- package/android/bin/build/intermediates/compiled_local_resources/debug/out/drawable-hdpi-v4_new_window.png.flat +0 -0
- package/android/bin/build/intermediates/compiled_local_resources/debug/out/drawable-ldpi-v4_new_window.png.flat +0 -0
- package/android/bin/build/intermediates/compiled_local_resources/debug/out/drawable-mdpi-v4_new_window.png.flat +0 -0
- package/android/bin/build/intermediates/compiled_local_resources/debug/out/drawable-xhdpi-v4_new_window.png.flat +0 -0
- package/android/bin/build/intermediates/compiled_local_resources/debug/out/drawable-xxhdpi-v4_new_window.png.flat +0 -0
- package/android/bin/build/intermediates/compiled_local_resources/debug/out/drawable-xxxhdpi-v4_new_window.png.flat +0 -0
- package/android/bin/build/intermediates/compiled_local_resources/debug/out/drawable_button_close.xml.flat +0 -0
- package/android/bin/build/intermediates/compiled_local_resources/debug/out/layout_floating_window_layout.xml.flat +0 -0
- package/android/bin/build/intermediates/incremental/debug/packageDebugResources/compile-file-map.properties +10 -0
- package/android/bin/build/intermediates/incremental/debug/packageDebugResources/merger.xml +2 -0
- package/android/bin/build/intermediates/incremental/mergeDebugJniLibFolders/merger.xml +2 -0
- package/android/bin/build/intermediates/incremental/mergeDebugShaders/merger.xml +2 -0
- package/android/bin/build/intermediates/incremental/packageDebugAssets/merger.xml +2 -0
- package/android/bin/build/intermediates/local_only_symbol_list/debug/R-def.txt +8 -0
- package/android/bin/build/intermediates/manifest_merge_blame_file/debug/manifest-merger-blame-debug-report.txt +44 -0
- package/android/bin/build/intermediates/merged_manifest/debug/AndroidManifest.xml +25 -0
- package/android/bin/build/intermediates/navigation_json/debug/navigation.json +1 -0
- package/android/bin/build/intermediates/packaged_res/debug/drawable/button_close.xml +9 -0
- package/android/bin/build/intermediates/packaged_res/debug/drawable-anydpi-v24/new_window.xml +16 -0
- package/android/bin/build/intermediates/packaged_res/debug/drawable-hdpi-v4/new_window.png +0 -0
- package/android/bin/build/intermediates/packaged_res/debug/drawable-ldpi-v4/new_window.png +0 -0
- package/android/bin/build/intermediates/packaged_res/debug/drawable-mdpi-v4/new_window.png +0 -0
- package/android/bin/build/intermediates/packaged_res/debug/drawable-xhdpi-v4/new_window.png +0 -0
- package/android/bin/build/intermediates/packaged_res/debug/drawable-xxhdpi-v4/new_window.png +0 -0
- package/android/bin/build/intermediates/packaged_res/debug/drawable-xxxhdpi-v4/new_window.png +0 -0
- package/android/bin/build/intermediates/packaged_res/debug/layout/floating_window_layout.xml +29 -0
- package/android/bin/build/intermediates/runtime_library_classes_jar/debug/classes.jar +0 -0
- package/android/bin/build/intermediates/symbol_list_with_package_name/debug/package-aware-r.txt +7 -0
- package/android/bin/build/outputs/logs/manifest-merger-debug-report.txt +54 -0
- package/android/bin/build/tmp/compileDebugJavaWithJavac/previous-compilation-data.bin +0 -0
- package/lib/typescript/codegen/android/api.d.ts +257 -27
- package/lib/typescript/codegen/android/callback.d.ts +162 -19
- package/lib/typescript/codegen/android/errorcode.d.ts +115 -28
- package/lib/typescript/codegen/android/keytype.d.ts +482 -113
- package/lib/typescript/codegen/ios/api.d.ts +225 -29
- package/lib/typescript/codegen/ios/callback.d.ts +134 -18
- package/lib/typescript/codegen/ios/errorcode.d.ts +102 -26
- package/lib/typescript/codegen/ios/keytype.d.ts +424 -113
- package/lib/typescript/codegen/pack/api.d.ts +291 -33
- package/lib/typescript/codegen/pack/callback.d.ts +167 -20
- package/lib/typescript/codegen/pack/errorcode.d.ts +126 -30
- package/lib/typescript/codegen/pack/keytype.d.ts +582 -130
- package/lib/typescript/core/keytype.d.ts +16 -4
- package/lib/typescript/core/logger.d.ts +1 -0
- package/lib/typescript/platforms/android/AppLogWrapper.d.ts +8 -0
- package/lib/typescript/platforms/ios/RangersAppLog.d.ts +4 -0
- package/package.json +1 -1
|
@@ -3,7 +3,14 @@ import { VeLivePlayerError } from './errorcode';
|
|
|
3
3
|
import { long, int, String, Bitmap } from './types';
|
|
4
4
|
import { VeLivePlayerResolution, VeLivePlayerResolutionSwitchReason, VeLivePlayerStreamType, VeLivePlayerStatus, VeLivePlayerStatistics, VeLivePlayerVideoFrame, VeLivePlayerAudioFrame } from './keytype';
|
|
5
5
|
export declare class VeLivePlayerObserver {
|
|
6
|
-
|
|
6
|
+
/** {zh}
|
|
7
|
+
* @detail callback
|
|
8
|
+
* @brief 播放器错误信息回调,播放器出现错误时,触发回调。
|
|
9
|
+
* @order 1
|
|
10
|
+
* @param player 触发该事件回调的播放器对象。
|
|
11
|
+
* @param error 错误信息,详情请参见 [VeLivePlayerError](188113#VeLivePlayerError) 。
|
|
12
|
+
*
|
|
13
|
+
*/
|
|
7
14
|
/** {en}
|
|
8
15
|
* @detail callback
|
|
9
16
|
* @brief Occurs when a player error occurs.
|
|
@@ -13,7 +20,16 @@ export declare class VeLivePlayerObserver {
|
|
|
13
20
|
*
|
|
14
21
|
*/
|
|
15
22
|
onError?(player: VeLivePlayer, error: VeLivePlayerError): void;
|
|
16
|
-
|
|
23
|
+
/** {zh}
|
|
24
|
+
* @detail callback
|
|
25
|
+
* @brief 视频首帧渲染事件回调。视频首帧渲染成功,或播放过程中发生重试,重试后的第一个视频帧渲染成功,均会触发此回调。
|
|
26
|
+
* @order 2
|
|
27
|
+
* @param player 触发该事件回调的播放器对象。
|
|
28
|
+
* @param isFirstFrame 渲染成功的是否为视频首帧。<br>
|
|
29
|
+
* - true:视频首帧;
|
|
30
|
+
* - false:重试后第一个视频帧。
|
|
31
|
+
*
|
|
32
|
+
*/
|
|
17
33
|
/** {en}
|
|
18
34
|
* @detail callback
|
|
19
35
|
* @brief Occurs when the first video frame is rendered at the beginning of playback or after a retry during playback.
|
|
@@ -25,7 +41,16 @@ export declare class VeLivePlayerObserver {
|
|
|
25
41
|
*
|
|
26
42
|
*/
|
|
27
43
|
onFirstVideoFrameRender?(player: VeLivePlayer, isFirstFrame: boolean): void;
|
|
28
|
-
|
|
44
|
+
/** {zh}
|
|
45
|
+
* @detail callback
|
|
46
|
+
* @brief 音频首帧渲染事件回调。音频首帧渲染成功,或播放过程中发生重试,重试后的第一个音频帧渲染成功,均会触发此回调。
|
|
47
|
+
* @order 3
|
|
48
|
+
* @param player 触发该事件回调的播放器对象。
|
|
49
|
+
* @param isFirstFrame 渲染成功的是否为音频首帧。<br>
|
|
50
|
+
* - true:音频首帧;
|
|
51
|
+
* - false:重试后第一个音频帧。
|
|
52
|
+
*
|
|
53
|
+
*/
|
|
29
54
|
/** {en}
|
|
30
55
|
* @detail callback
|
|
31
56
|
* @brief Occurs when the first audio frame is rendered at the beginning of playback or after a retry during playback.
|
|
@@ -37,7 +62,13 @@ export declare class VeLivePlayerObserver {
|
|
|
37
62
|
*
|
|
38
63
|
*/
|
|
39
64
|
onFirstAudioFrameRender?(player: VeLivePlayer, isFirstFrame: boolean): void;
|
|
40
|
-
|
|
65
|
+
/** {zh}
|
|
66
|
+
* @detail callback
|
|
67
|
+
* @brief 播放卡顿开始回调。
|
|
68
|
+
* @order 4
|
|
69
|
+
* @param player 触发该事件回调的播放器对象。
|
|
70
|
+
*
|
|
71
|
+
*/
|
|
41
72
|
/** {en}
|
|
42
73
|
* @detail callback
|
|
43
74
|
* @brief Occurs when a playback stutter starts.
|
|
@@ -46,7 +77,13 @@ export declare class VeLivePlayerObserver {
|
|
|
46
77
|
*
|
|
47
78
|
*/
|
|
48
79
|
onStallStart?(player: VeLivePlayer): void;
|
|
49
|
-
|
|
80
|
+
/** {zh}
|
|
81
|
+
* @detail callback
|
|
82
|
+
* @brief 播放卡顿结束回调。音频缓冲区达到起播条件且开始播放后,触发此回调。
|
|
83
|
+
* @order 5
|
|
84
|
+
* @param player 触发该事件回调的播放器对象。
|
|
85
|
+
*
|
|
86
|
+
*/
|
|
50
87
|
/** {en}
|
|
51
88
|
* @detail callback
|
|
52
89
|
* @brief Occurs when a playback stutter stops, that is, when playback resumes after there is enough audio buffer.
|
|
@@ -55,7 +92,14 @@ export declare class VeLivePlayerObserver {
|
|
|
55
92
|
*
|
|
56
93
|
*/
|
|
57
94
|
onStallEnd?(player: VeLivePlayer): void;
|
|
58
|
-
|
|
95
|
+
/** {zh}
|
|
96
|
+
* @detail callback
|
|
97
|
+
* @brief 视频渲染卡顿回调。视频渲染发生卡顿时,触发此回调。
|
|
98
|
+
* @order 6
|
|
99
|
+
* @param player 触发该事件回调的播放器对象。
|
|
100
|
+
* @param stallTime 视频渲染卡顿时长,单位为 ms。
|
|
101
|
+
*
|
|
102
|
+
*/
|
|
59
103
|
/** {en}
|
|
60
104
|
* @detail callback
|
|
61
105
|
* @brief Occurs when video rendering stutters.
|
|
@@ -65,7 +109,14 @@ export declare class VeLivePlayerObserver {
|
|
|
65
109
|
*
|
|
66
110
|
*/
|
|
67
111
|
onVideoRenderStall?(player: VeLivePlayer, stallTime: long): void;
|
|
68
|
-
|
|
112
|
+
/** {zh}
|
|
113
|
+
* @detail callback
|
|
114
|
+
* @brief 音频渲染卡顿回调。音频渲染发生卡顿时,触发此回调。
|
|
115
|
+
* @order 7
|
|
116
|
+
* @param player 触发该事件回调的播放器对象。
|
|
117
|
+
* @param stallTime 音频渲染卡顿时长,单位为 ms。
|
|
118
|
+
*
|
|
119
|
+
*/
|
|
69
120
|
/** {en}
|
|
70
121
|
* @detail callback
|
|
71
122
|
* @brief Occurs when audio rendering stutters.
|
|
@@ -75,7 +126,16 @@ export declare class VeLivePlayerObserver {
|
|
|
75
126
|
*
|
|
76
127
|
*/
|
|
77
128
|
onAudioRenderStall?(player: VeLivePlayer, stallTime: long): void;
|
|
78
|
-
|
|
129
|
+
/** {zh}
|
|
130
|
+
* @detail callback
|
|
131
|
+
* @brief 清晰度档位变化回调。
|
|
132
|
+
* @order 8
|
|
133
|
+
* @param player 触发该事件回调的播放器对象。
|
|
134
|
+
* @param resolution 切换后的清晰度档位,详情请参见 [VeLivePlayerResolution](188115#VeLivePlayerResolution) 。
|
|
135
|
+
* @param error 切换清晰度档位时,是否发生错误,详情请参见 [VeLivePlayerError](188113#VeLivePlayerError) 。
|
|
136
|
+
* @param reason 清晰度档位切换的原因,详情请参见 [VeLivePlayerResolutionSwitchReason](188115#VeLivePlayerResolutionSwitchReason) 。
|
|
137
|
+
*
|
|
138
|
+
*/
|
|
79
139
|
/** {en}
|
|
80
140
|
* @detail callback
|
|
81
141
|
* @brief Occurs when the video resolution changes.
|
|
@@ -87,7 +147,15 @@ export declare class VeLivePlayerObserver {
|
|
|
87
147
|
*
|
|
88
148
|
*/
|
|
89
149
|
onResolutionSwitch?(player: VeLivePlayer, resolution: VeLivePlayerResolution, error: VeLivePlayerError, reason: VeLivePlayerResolutionSwitchReason): void;
|
|
90
|
-
|
|
150
|
+
/** {zh}
|
|
151
|
+
* @detail callback
|
|
152
|
+
* @brief 视频分辨率变化回调。视频大小发生变化时,触发回调。
|
|
153
|
+
* @order 9
|
|
154
|
+
* @param player 触发该事件回调的播放器对象。
|
|
155
|
+
* @param width 变化后的视频宽度,单位为 px。
|
|
156
|
+
* @param height 变化后的视频高度,单位为 px。
|
|
157
|
+
*
|
|
158
|
+
*/
|
|
91
159
|
/** {en}
|
|
92
160
|
* @detail callback
|
|
93
161
|
* @brief Occurs when the video size changes.
|
|
@@ -98,7 +166,14 @@ export declare class VeLivePlayerObserver {
|
|
|
98
166
|
*
|
|
99
167
|
*/
|
|
100
168
|
onVideoSizeChanged?(player: VeLivePlayer, width: int, height: int): void;
|
|
101
|
-
|
|
169
|
+
/** {zh}
|
|
170
|
+
* @detail callback
|
|
171
|
+
* @brief 字符串 SEI 消息回调,当播放器 SDK 接收到 SEI 消息时,触发该回调。需要开启 VeLivePlayerConfiguration 中 enableSei 属性。当 enableBinarySei 属性开启时,字符串 SEI 消息将不再发送。
|
|
172
|
+
* @order 10
|
|
173
|
+
* @param player 触发该事件回调的播放器对象。
|
|
174
|
+
* @param message SEI 信息。
|
|
175
|
+
*
|
|
176
|
+
*/
|
|
102
177
|
/** {en}
|
|
103
178
|
* @detail callback
|
|
104
179
|
* @brief String SEI message callback. This callback is triggered when the player SDK receives an SEI message. It is necessary to enable the `enableSei` property in `VeLivePlayerConfiguration`. When the `enableBinarySei` property is enabled, the string SEI message will no longer be sent.
|
|
@@ -108,7 +183,14 @@ export declare class VeLivePlayerObserver {
|
|
|
108
183
|
*
|
|
109
184
|
*/
|
|
110
185
|
onReceiveSeiMessage?(player: VeLivePlayer, message: String): void;
|
|
111
|
-
|
|
186
|
+
/** {zh}
|
|
187
|
+
* @detail callback
|
|
188
|
+
* @brief 二级制 SEI 消息回调,当播放器 SDK 接收到 SEI 消息时,触发该回调。需要开启 VeLivePlayerConfiguration 中 enableBinarySei 属性。当 enableBinarySei 属性开启时,字符串 SEI 消息将不再发送。
|
|
189
|
+
* @order 10
|
|
190
|
+
* @param player 触发该事件回调的播放器对象。
|
|
191
|
+
* @param message SEI 信息。
|
|
192
|
+
*
|
|
193
|
+
*/
|
|
112
194
|
/** {en}
|
|
113
195
|
* @detail callback
|
|
114
196
|
* @brief Binary SEI message callback. This callback is triggered when the player SDK receives an SEI message. It is necessary to enable the `enableBinarySei` property in `VeLivePlayerConfiguration`. When the `enableBinarySei` property is enabled, the string SEI message will no longer be sent.
|
|
@@ -118,7 +200,15 @@ export declare class VeLivePlayerObserver {
|
|
|
118
200
|
*
|
|
119
201
|
*/
|
|
120
202
|
onReceiveBinarySeiMessage?(player: VeLivePlayer, message: ArrayBuffer): void;
|
|
121
|
-
|
|
203
|
+
/** {zh}
|
|
204
|
+
* @detail callback
|
|
205
|
+
* @brief 主备流切换回调。
|
|
206
|
+
* @order 11
|
|
207
|
+
* @param player 触发该事件回调的播放器对象。
|
|
208
|
+
* @param streamType 切换后的流类型为主路流或备路流,详情请参见 [VeLivePlayerStreamType](188115#VeLivePlayerStreamType) 。
|
|
209
|
+
* @param error 触发主备流切换的原因,详情请参见 [VeLivePlayerError](188113#VeLivePlayerError) 。
|
|
210
|
+
*
|
|
211
|
+
*/
|
|
122
212
|
/** {en}
|
|
123
213
|
* @detail callback
|
|
124
214
|
* @brief Occurs when the player switches between the primary stream and the backup stream.
|
|
@@ -129,7 +219,14 @@ export declare class VeLivePlayerObserver {
|
|
|
129
219
|
*
|
|
130
220
|
*/
|
|
131
221
|
onMainBackupSwitch?(player: VeLivePlayer, streamType: VeLivePlayerStreamType, error: VeLivePlayerError): void;
|
|
132
|
-
|
|
222
|
+
/** {zh}
|
|
223
|
+
* @detail callback
|
|
224
|
+
* @brief 播放状态发生变化时,触发回调。
|
|
225
|
+
* @order 12
|
|
226
|
+
* @param player 触发该事件回调的播放器对象。
|
|
227
|
+
* @param status 当前播放器的状态,详情请参见 [VeLivePlayerStatus](188115#VeLivePlayerStatus) 。
|
|
228
|
+
*
|
|
229
|
+
*/
|
|
133
230
|
/** {en}
|
|
134
231
|
* @detail callback
|
|
135
232
|
* @brief Occurs when the playback status changes.
|
|
@@ -139,7 +236,14 @@ export declare class VeLivePlayerObserver {
|
|
|
139
236
|
*
|
|
140
237
|
*/
|
|
141
238
|
onPlayerStatusUpdate?(player: VeLivePlayer, status: VeLivePlayerStatus): void;
|
|
142
|
-
|
|
239
|
+
/** {zh}
|
|
240
|
+
* @detail callback
|
|
241
|
+
* @brief 播放信息周期性回调。播放器 SDK 会周期性地回调本方法,您可以通过本方法获取当前播放器的播放地址、码率和帧率等信息。
|
|
242
|
+
* @order 13
|
|
243
|
+
* @param player 触发该事件回调的播放器对象。
|
|
244
|
+
* @param statistics 播放器周期性回调的统计信息,详情请参见 [VeLivePlayerStatistics](188115#VeLivePlayerStatistics) 。
|
|
245
|
+
*
|
|
246
|
+
*/
|
|
143
247
|
/** {en}
|
|
144
248
|
* @detail callback
|
|
145
249
|
* @brief Occurs periodically to report information such as the current pull stream address, bitrate, and frame rate.
|
|
@@ -149,7 +253,14 @@ export declare class VeLivePlayerObserver {
|
|
|
149
253
|
*
|
|
150
254
|
*/
|
|
151
255
|
onStatistics?(player: VeLivePlayer, statistics: VeLivePlayerStatistics): void;
|
|
152
|
-
|
|
256
|
+
/** {zh}
|
|
257
|
+
* @detail callback
|
|
258
|
+
* @brief 截图成功回调。当播放器调用 snapshot{@link #VeLivePlayer#snapshot} 截图成功后,会触发此回调。
|
|
259
|
+
* @order 14
|
|
260
|
+
* @param player 触发该事件回调的播放器对象。
|
|
261
|
+
* @param bitmap 截图的 Bitmap 对象。
|
|
262
|
+
*
|
|
263
|
+
*/
|
|
153
264
|
/** {en}
|
|
154
265
|
* @detail callback
|
|
155
266
|
* @brief Occurs when a screenshot is taken after snapshot{@link #VeLivePlayer#snapshot} is called.
|
|
@@ -159,7 +270,16 @@ export declare class VeLivePlayerObserver {
|
|
|
159
270
|
*
|
|
160
271
|
*/
|
|
161
272
|
onSnapshotComplete?(player: VeLivePlayer, bitmap: Bitmap): void;
|
|
162
|
-
|
|
273
|
+
/** {zh}
|
|
274
|
+
* @detail callback
|
|
275
|
+
* @brief 视频帧回调。调用 enableVideoFrameObserver{@link #VeLivePlayer#enableVideoFrameObserver} 开启视频帧解析回调后,当播放器成功解码视频帧时,会触发此回调。
|
|
276
|
+
* @notes <br>
|
|
277
|
+
* 如果自定义渲染使用纹理格式,建议在视频帧回调线程中执行渲染操作。
|
|
278
|
+
* @order 15
|
|
279
|
+
* @param player 触发该事件回调的播放器对象。
|
|
280
|
+
* @param videoFrame 视频帧数据,包含像素格式、封装格式、视频宽高等信息,详情请参见 [VeLivePlayerVideoFrame](188115#VeLivePlayerVideoFrame) 。
|
|
281
|
+
*
|
|
282
|
+
*/
|
|
163
283
|
/** {en}
|
|
164
284
|
* @detail callback
|
|
165
285
|
* @brief Occurs when the player decodes a video frame. Call [enableVideoFrameObserver](docs-player-android-api-reference#VeLivePlayer-enablevideoframeobserver) to enable video frame callback.
|
|
@@ -171,7 +291,16 @@ export declare class VeLivePlayerObserver {
|
|
|
171
291
|
*
|
|
172
292
|
*/
|
|
173
293
|
onRenderVideoFrame?(player: VeLivePlayer, videoFrame: VeLivePlayerVideoFrame): void;
|
|
174
|
-
|
|
294
|
+
/** {zh}
|
|
295
|
+
* @detail callback
|
|
296
|
+
* @brief 音频帧回调。调用 enableAudioFrameObserver{@link #VeLivePlayer#enableAudioFrameObserver} 开启音频帧解析回调后,当播放器成功解码音频帧时,会触发此回调。
|
|
297
|
+
* @notes <br>
|
|
298
|
+
* 回调的音频帧数据为 float32 格式,大端字节序存储。
|
|
299
|
+
* @order 16
|
|
300
|
+
* @param player 触发该事件回调的播放器对象。
|
|
301
|
+
* @param audioFrame 音频数据,详情请参见 [VeLivePlayerAudioFrame](188115#VeLivePlayerAudioFrame) 。
|
|
302
|
+
*
|
|
303
|
+
*/
|
|
175
304
|
/** {en}
|
|
176
305
|
* @detail callback
|
|
177
306
|
* @brief Occurs when the player decodes an audio frame. Call enableAudioFrameObserver{@link #VeLivePlayer#enableAudioFrameObserver} to enable audio frame callback.
|
|
@@ -183,7 +312,14 @@ export declare class VeLivePlayerObserver {
|
|
|
183
312
|
*
|
|
184
313
|
*/
|
|
185
314
|
onRenderAudioFrame?(player: VeLivePlayer, audioFrame: VeLivePlayerAudioFrame): void;
|
|
186
|
-
|
|
315
|
+
/** {zh}
|
|
316
|
+
* @detail callback
|
|
317
|
+
* @brief 超分开启失败。调用 setEnableSuperResolution{@link #VeLivePlayer#setEnableSuperResolution} 开启超分后,当播放器不支持超分开启或者超分处理出错时,会触发此回调。
|
|
318
|
+
* @order 17
|
|
319
|
+
* @param player 触发该事件回调的播放器对象。
|
|
320
|
+
* @param error 超分开启失败原因,错误码请参见 [VeLivePlayerErrorCode](188113#VeLivePlayerError-VeLivePlayerErrorCode) 。
|
|
321
|
+
*
|
|
322
|
+
*/
|
|
187
323
|
/** {en}
|
|
188
324
|
* @detail callback
|
|
189
325
|
* @brief Occurs when the SDK fails to enable super resolution after setEnableSuperResolution{@link #VeLivePlayer#setEnableSuperResolution} is called.
|
|
@@ -193,7 +329,14 @@ export declare class VeLivePlayerObserver {
|
|
|
193
329
|
*
|
|
194
330
|
*/
|
|
195
331
|
onStreamFailedOpenSuperResolution?(player: VeLivePlayer, error: VeLivePlayerError): void;
|
|
196
|
-
|
|
332
|
+
/** {zh}
|
|
333
|
+
* @detail callback
|
|
334
|
+
* @brief 锐化开启失败。调用 setEnableSharpen{@link #VeLivePlayer#setEnableSharpen} 开启锐化后,当播放器不支持超分开启或者超分处理出错时,会触发此回调。
|
|
335
|
+
* @param player 触发该事件回调的播放器对象。
|
|
336
|
+
* @param error 锐化开启失败原因。错误码请参见 [VeLivePlayerErrorCode](188113#VeLivePlayerErrorCode)。
|
|
337
|
+
* @order 18
|
|
338
|
+
*
|
|
339
|
+
*/
|
|
197
340
|
/** {en}
|
|
198
341
|
* @detail callback
|
|
199
342
|
* @brief Occurs when the SDK fails to enable sharpen after [setEnableSuperResolution](docs-player-android-api-reference#VeLivePlayer-setenablesuperresolution) is called.
|
|
@@ -1,19 +1,28 @@
|
|
|
1
1
|
import { int, String } from './types';
|
|
2
2
|
export declare class VeLivePlayerError {
|
|
3
3
|
constructor(errorCode: int, subCode: int, errorMsg: String);
|
|
4
|
-
|
|
4
|
+
/** {zh}
|
|
5
|
+
* @brief 直播播放错误码。
|
|
6
|
+
*
|
|
7
|
+
*/
|
|
5
8
|
/** {en}
|
|
6
9
|
* @brief The error code.
|
|
7
10
|
*
|
|
8
11
|
*/
|
|
9
12
|
mErrorCode: int;
|
|
10
|
-
|
|
13
|
+
/** {zh}
|
|
14
|
+
* @brief 直播播放错误信息。
|
|
15
|
+
*
|
|
16
|
+
*/
|
|
11
17
|
/** {en}
|
|
12
18
|
* @brief The error message.
|
|
13
19
|
*
|
|
14
20
|
*/
|
|
15
21
|
mErrorMsg: String;
|
|
16
|
-
|
|
22
|
+
/** {zh}
|
|
23
|
+
* @brief 直播播放子错误码。
|
|
24
|
+
*
|
|
25
|
+
*/
|
|
17
26
|
/** {en}
|
|
18
27
|
* @brief The sub error code.
|
|
19
28
|
*
|
|
@@ -21,151 +30,229 @@ export declare class VeLivePlayerError {
|
|
|
21
30
|
mSubCode: int;
|
|
22
31
|
}
|
|
23
32
|
export declare enum VeLivePlayerErrorCode {
|
|
24
|
-
|
|
33
|
+
/** {zh}
|
|
34
|
+
* @brief 没有错误。
|
|
35
|
+
*
|
|
36
|
+
*/
|
|
25
37
|
/** {en}
|
|
26
38
|
* @brief No error.
|
|
27
39
|
*
|
|
28
40
|
*/
|
|
29
41
|
VeLivePlayerNoError = 0,
|
|
30
|
-
|
|
42
|
+
/** {zh}
|
|
43
|
+
* @brief License 无效。可能 License 集成错误或 License 过期,请检查 License 集成方式和有效性。
|
|
44
|
+
*
|
|
45
|
+
*/
|
|
31
46
|
/** {en}
|
|
32
47
|
* @brief The SDK license is invalid. This error may occur due to incorrect integration of the license or if the license has expired. Review how the license was integrated and ensure that it is still valid.
|
|
33
48
|
*
|
|
34
49
|
*/
|
|
35
50
|
VeLivePlayerInvalidLicense = -1,
|
|
36
|
-
|
|
51
|
+
/** {zh}
|
|
52
|
+
* @brief 调用时传入的参数不合法。请检查入参,并重新调用。
|
|
53
|
+
*
|
|
54
|
+
*/
|
|
37
55
|
/** {en}
|
|
38
56
|
* @brief Invalid parameters. Check the input parameter and call the method again.
|
|
39
57
|
*
|
|
40
58
|
*/
|
|
41
59
|
VeLivePlayerInvalidParameter = -2,
|
|
42
|
-
|
|
60
|
+
/** {zh}
|
|
61
|
+
* @brief 调用被拒绝。方法调用时机不合法,请检查调用时机。
|
|
62
|
+
*
|
|
63
|
+
*/
|
|
43
64
|
/** {en}
|
|
44
65
|
* @brief The method call has been rejected. This error occurs when the method is called at an incorrect time.
|
|
45
66
|
*
|
|
46
67
|
*/
|
|
47
68
|
VeLivePlayerErrorRefused = -3,
|
|
48
|
-
|
|
69
|
+
/** {zh}
|
|
70
|
+
* @brief 加载库文件失败。可能是 SDK 集成错误,请检查 SDK 集成方式。
|
|
71
|
+
*
|
|
72
|
+
*/
|
|
49
73
|
/** {en}
|
|
50
74
|
* @brief Failed to load the library file. This error may occur due to incorrect integration of the SDK.
|
|
51
75
|
*
|
|
52
76
|
*/
|
|
53
77
|
VeLivePlayerErrorLibraryLoadFailed = -4,
|
|
54
|
-
|
|
78
|
+
/** {zh}
|
|
79
|
+
* @brief 播放地址不存在或无效。可能是播放地址为空、地址格式不合法或地址长度不合法,请检查播放地址。
|
|
80
|
+
*
|
|
81
|
+
*/
|
|
55
82
|
/** {en}
|
|
56
83
|
* @brief The pull stream address does not exist or is invalid. This error may occur if the pull stream address is empty, or if the format or length of the address is invalid.
|
|
57
84
|
*
|
|
58
85
|
*/
|
|
59
86
|
VeLivePlayerErrorPlayUrl = -100,
|
|
60
|
-
|
|
87
|
+
/** {zh}
|
|
88
|
+
* @brief 无法获取流数据。可能是直播流不存在、直播流中断或直播已结束,请检查直播状态。
|
|
89
|
+
*
|
|
90
|
+
*/
|
|
61
91
|
/** {en}
|
|
62
92
|
* @brief Unable to get the stream data. This error may occur if the live stream does not exist, is interrupted, or has ended. Please check the status of the live stream.
|
|
63
93
|
*
|
|
64
94
|
*/
|
|
65
95
|
VeLivePlayerErrorNoStreamData = -101,
|
|
66
|
-
|
|
96
|
+
/** {zh}
|
|
97
|
+
* @brief 内部播放重试。可能由于播放器内部错误触发了重试。
|
|
98
|
+
*
|
|
99
|
+
*/
|
|
67
100
|
/** {en}
|
|
68
101
|
* @brief An internal retry to play the live stream, which might happen due to an internal player error.
|
|
69
102
|
*
|
|
70
103
|
*/
|
|
71
104
|
VeLivePlayerErrorInternalRetryStart = -102,
|
|
72
|
-
|
|
105
|
+
/** {zh}
|
|
106
|
+
* @brief 内部重试失败。内部重试次数达到最大限制,播放器停止重试,您可以尝试重新播放。
|
|
107
|
+
*
|
|
108
|
+
*/
|
|
73
109
|
/** {en}
|
|
74
110
|
* @brief An internal retry failed and the maximum number of internal retries is reached. The player has stopped retrying. You may attempt a manual retry.
|
|
75
111
|
*
|
|
76
112
|
*/
|
|
77
113
|
VeLivePlayerErrorInternalRetryFailed = -103,
|
|
78
|
-
|
|
114
|
+
/** {zh}
|
|
115
|
+
* @brief DNS 解析失败。可能是播放地址异常或客户端网络异常,请您检查播放地址和网络情况,如果故障未排除,请联系火山引擎[技术支持](https://console.volcengine.com/workorder/create?step=2&SubProductID=P00000076)。
|
|
116
|
+
*
|
|
117
|
+
*/
|
|
79
118
|
/** {en}
|
|
80
119
|
* @brief DNS parsing failed. This error may occur due to an error in the pull stream address or the client's network conditions. If the error persists after you verify the pull stream address and network conditions, [create a ticket](https://console.byteplus.com/workorder/create?step=2&SubProductID=P00000980) to contact BytePlus technical support for assistance.
|
|
81
120
|
*
|
|
82
121
|
*/
|
|
83
122
|
VeLivePlayerErrorDnsParseFailed = -200,
|
|
84
|
-
|
|
123
|
+
/** {zh}
|
|
124
|
+
* @brief 网络请求失败。请检查网络情况,如果故障未排除,请联系火山引擎[技术支持](https://console.volcengine.com/workorder/create?step=2&SubProductID=P00000076)。
|
|
125
|
+
*
|
|
126
|
+
*/
|
|
85
127
|
/** {en}
|
|
86
128
|
* @brief The network request failed. Check the network conditions. If the error persists, [create a ticket](https://console.byteplus.com/workorder/create?step=2&SubProductID=P00000980) to contact BytePlus technical support for assistance.
|
|
87
129
|
*
|
|
88
130
|
*/
|
|
89
131
|
VeLivePlayerErrorNetworkRequestFailed = -201,
|
|
90
|
-
|
|
132
|
+
/** {zh}
|
|
133
|
+
* @brief 直播格式解封装失败。可能是使用了不支持的直播流格式和协议,或音视频流错误;请检查流格式,如果故障未排除,请联系火山引擎[技术支持](https://console.volcengine.com/workorder/create?step=2&SubProductID=P00000076)。
|
|
134
|
+
*
|
|
135
|
+
*/
|
|
91
136
|
/** {en}
|
|
92
137
|
* @brief Video decapsulation failed. This error may occur if the live stream uses an unsupported format or protocol, or if there is an audio or video error. If the error persists, [create a ticket](https://console.byteplus.com/workorder/create?step=2&SubProductID=P00000980) to contact BytePlus technical support for assistance.
|
|
93
138
|
*
|
|
94
139
|
*/
|
|
95
140
|
VeLivePlayerErrorDemuxFailed = -300,
|
|
96
|
-
|
|
141
|
+
/** {zh}
|
|
142
|
+
* @brief 视频解码失败。可能使用了不支持的直播流音视频格式,或解码器出错;请检查音视频格式,如果故障未排除,请联系火山引擎[技术支持](https://console.volcengine.com/workorder/create?step=2&SubProductID=P00000076)。
|
|
143
|
+
*
|
|
144
|
+
*/
|
|
97
145
|
/** {en}
|
|
98
146
|
* @brief Decoding failed. This error may occur if the live stream uses an unsupported audio or video format. If the error persists, [create a ticket](https://console.byteplus.com/workorder/create?step=2&SubProductID=P00000980) to contact BytePlus technical support for assistance.
|
|
99
147
|
*
|
|
100
148
|
*/
|
|
101
149
|
VeLivePlayerErrorDecodeFailed = -301,
|
|
102
|
-
|
|
150
|
+
/** {zh}
|
|
151
|
+
* @brief 渲染失败。可能是音视频输出设备异常,请重试;如果故障未排除,请联系火山引擎[技术支持](https://console.volcengine.com/workorder/create?step=2&SubProductID=P00000076)。
|
|
152
|
+
*
|
|
153
|
+
*/
|
|
103
154
|
/** {en}
|
|
104
155
|
* @brief Rendering failed. This error may occur if there is an issue with the audio or video output devices. If the error persists, [create a ticket](https://console.byteplus.com/workorder/create?step=2&SubProductID=P00000980) to contact BytePlus technical support for assistance.
|
|
105
156
|
*
|
|
106
157
|
*/
|
|
107
158
|
VeLivePlayerErrorAVOutputFailed = -302,
|
|
108
|
-
|
|
159
|
+
/** {zh}
|
|
160
|
+
* @brief 该台设备不支持超分能力,不在超分机型白名单内;如果有疑问,请联系火山引擎[技术支持](https://console.volcengine.com/workorder/create?step=2&SubProductID=P00000076)。
|
|
161
|
+
*
|
|
162
|
+
*/
|
|
109
163
|
/** {en}
|
|
110
164
|
* @brief The device model does not support super resolution. [Create a ticket](https://console.byteplus.com/workorder/create?step=2&SubProductID=P00000980) to contact BytePlus technical support for any assistance you may need.
|
|
111
165
|
*
|
|
112
166
|
*/
|
|
113
167
|
VeLivePlayerErrorSRDeviceUnsupported = -303,
|
|
114
|
-
|
|
168
|
+
/** {zh}
|
|
169
|
+
* @brief 当前分辨率高于超分开启限制的最大分辨率。如果有疑问,请联系火山引擎[技术支持](https://console.volcengine.com/workorder/create?step=2&SubProductID=P00000076)。
|
|
170
|
+
*
|
|
171
|
+
*/
|
|
115
172
|
/** {en}
|
|
116
173
|
* @brief The current resolution exceeds the upper limit allowed for super resolution. [Create a ticket](https://console.byteplus.com/workorder/create?step=2&SubProductID=P00000980) to contact BytePlus technical support for any assistance you may need.
|
|
117
174
|
*
|
|
118
175
|
*/
|
|
119
176
|
VeLivePlayerErrorSRResolutionUnsupported = -304,
|
|
120
|
-
|
|
177
|
+
/** {zh}
|
|
178
|
+
* @brief 当前帧率高于超分开启限制的最大帧率。如果有疑问,请联系火山引擎[技术支持](https://console.volcengine.com/workorder/create?step=2&SubProductID=P00000076)。
|
|
179
|
+
*
|
|
180
|
+
*/
|
|
121
181
|
/** {en}
|
|
122
182
|
* @brief The current frame rate exceeds the upper limit allowed for super resolution. [Create a ticket](https://console.byteplus.com/workorder/create?step=2&SubProductID=P00000980) to contact BytePlus technical support for any assistance you may need.
|
|
123
183
|
*
|
|
124
184
|
*/
|
|
125
185
|
VeLivePlayerErrorSRFpsUnsupported = -305,
|
|
126
|
-
|
|
186
|
+
/** {zh}
|
|
187
|
+
* @brief 超分初始化失败。可能超分参数配置错误,或版本不兼容;如果故障未排除,请联系火山引擎[技术支持](https://console.volcengine.com/workorder/create?step=2&SubProductID=P00000076)。
|
|
188
|
+
*
|
|
189
|
+
*/
|
|
127
190
|
/** {en}
|
|
128
191
|
* @brief Fails to initialize super resolution. [Create a ticket](https://console.byteplus.com/workorder/create?step=2&SubProductID=P00000980) to contact BytePlus technical support if the error persists.
|
|
129
192
|
*
|
|
130
193
|
*/
|
|
131
194
|
VeLivePlayerErrorSRInitFail = -306,
|
|
132
|
-
|
|
195
|
+
/** {zh}
|
|
196
|
+
* @brief 超分执行失败,可能超分参数配置错误,或版本不兼容;如果故障未排除,请联系火山引擎[技术支持](https://console.volcengine.com/workorder/create?step=2&SubProductID=P00000076)。
|
|
197
|
+
*
|
|
198
|
+
*/
|
|
133
199
|
/** {en}
|
|
134
200
|
* @brief Fails to apply super resolution to the video. [Create a ticket](https://console.byteplus.com/workorder/create?step=2&SubProductID=P00000980) to contact BytePlus technical support if the error persists.
|
|
135
201
|
*
|
|
136
202
|
*/
|
|
137
203
|
VeLivePlayerErrorSRExecuteFail = -307,
|
|
138
|
-
|
|
204
|
+
/** {zh}
|
|
205
|
+
* @brief 您使用的基础版 License 暂不支持 H.265 硬件解码。
|
|
206
|
+
*
|
|
207
|
+
*/
|
|
139
208
|
/** {en}
|
|
140
209
|
* @brief The current SDK license does not provide support for the H.265 feature.
|
|
141
210
|
*
|
|
142
211
|
*/
|
|
143
212
|
VeLivePlayerLicenseUnsupportedH265 = -308,
|
|
144
|
-
|
|
213
|
+
/** {zh}
|
|
214
|
+
* @brief 该台设备系统版本不支持锐化能力;如果有疑问,请联系火山引擎[技术支持](https://console.volcengine.com/workorder/create?step=3&SubProductID=P00000076&FlowKey=owVvVTNjDkRmjctcsyNW)。
|
|
215
|
+
*
|
|
216
|
+
*/
|
|
145
217
|
/** {en}
|
|
146
218
|
* @brief The device model does not support sharpen. [Create a ticket](https://console.byteplus.com/workorder/create?step=2&SubProductID=P00000980) to contact BytePlus technical support for any assistance you may need.
|
|
147
219
|
*
|
|
148
220
|
*/
|
|
149
221
|
VeLivePlayerErrorSharpenDeviceUnsupported = -309,
|
|
150
|
-
|
|
222
|
+
/** {zh}
|
|
223
|
+
* @hidden (Android)
|
|
224
|
+
* @brief 当前不支持离屏渲染;如果故障未排除,请联系火山引擎技术支持。
|
|
225
|
+
*
|
|
226
|
+
*/
|
|
151
227
|
/** {en}
|
|
152
228
|
* @hidden (Android)
|
|
153
229
|
*
|
|
154
230
|
*/
|
|
155
231
|
VeLivePlayerErrorNotSupportTextureRender = -508,
|
|
156
|
-
|
|
232
|
+
/** {zh}
|
|
233
|
+
* @brief Effect 初始化失败;如果故障未排除,请联系火山引擎技术支持。
|
|
234
|
+
* @hidden (Android)
|
|
235
|
+
*
|
|
236
|
+
*/
|
|
157
237
|
/** {en}
|
|
158
238
|
* @hidden (Android)
|
|
159
239
|
*
|
|
160
240
|
*/
|
|
161
241
|
VeLivePlayerErrorInitICEffectFail = -509,
|
|
162
|
-
|
|
242
|
+
/** {zh}
|
|
243
|
+
* @brief 分辨率档位切换不支持;如果故障未排除,请联系火山引擎技术支持。
|
|
244
|
+
* @hidden (Android)
|
|
245
|
+
*
|
|
246
|
+
*/
|
|
163
247
|
/** {en}
|
|
164
248
|
* @hidden (Android)
|
|
165
249
|
*
|
|
166
250
|
*/
|
|
167
251
|
VeLivePlayerErrorNotSupportResolutionSwitch = -510,
|
|
168
|
-
|
|
252
|
+
/** {zh}
|
|
253
|
+
* @brief 内部错误。请联系火山引擎[技术支持](https://console.volcengine.com/workorder/create?step=2&SubProductID=P00000076)。
|
|
254
|
+
*
|
|
255
|
+
*/
|
|
169
256
|
/** {en}
|
|
170
257
|
* @brief Internal error. Please [create a ticket](https://console.byteplus.com/workorder/create?step=2&SubProductID=P00000980) to contact BytePlus technical support for assistance.
|
|
171
258
|
*
|