@byteplus/react-native-live-pull 1.5.1-rc.1 → 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/ios/RCTVeLivePull/RCTVeLivePull.mm +1 -1
- 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
|
@@ -4,9 +4,19 @@ import { VeLivePlayerResolution, VeLivePlayerResolutionSwitchReason, VeLivePlaye
|
|
|
4
4
|
import { VeLivePlayer } from './api';
|
|
5
5
|
import { VeLivePlayerError } from './errorcode';
|
|
6
6
|
import { Bitmap, int, BOOL, NSString } from './types';
|
|
7
|
-
|
|
7
|
+
/** {zh}
|
|
8
|
+
* @detail callback
|
|
9
|
+
* @brief 播放器事件回调。
|
|
10
|
+
*/
|
|
8
11
|
export interface VeLivePlayerObserver {
|
|
9
|
-
|
|
12
|
+
/** {zh}
|
|
13
|
+
* @detail callback
|
|
14
|
+
* @brief 播放器错误信息回调,播放器出现错误时,触发回调。
|
|
15
|
+
* @order 1
|
|
16
|
+
* @param player 触发该事件回调的播放器对象。
|
|
17
|
+
* @param error 错误信息,详情请参见 [VeLivePlayerError](188113#VeLivePlayerError) 。
|
|
18
|
+
*
|
|
19
|
+
*/
|
|
10
20
|
/** {en}
|
|
11
21
|
* @detail callback
|
|
12
22
|
* @brief Occurs when a player error occurs.
|
|
@@ -16,7 +26,16 @@ export interface VeLivePlayerObserver {
|
|
|
16
26
|
*
|
|
17
27
|
*/
|
|
18
28
|
onError?(player: VeLivePlayer, error: VeLivePlayerError): void;
|
|
19
|
-
|
|
29
|
+
/** {zh}
|
|
30
|
+
* @detail callback
|
|
31
|
+
* @brief 视频首帧渲染事件回调。视频首帧渲染成功,或播放过程中发生重试,重试后的第一个视频帧渲染成功,均会触发此回调。
|
|
32
|
+
* @order 2
|
|
33
|
+
* @param player 触发该事件回调的播放器对象。
|
|
34
|
+
* @param isFirstFrame 渲染成功的是否为视频首帧。<br>
|
|
35
|
+
* - true:视频首帧;
|
|
36
|
+
* - false:重试后第一个视频帧。
|
|
37
|
+
*
|
|
38
|
+
*/
|
|
20
39
|
/** {en}
|
|
21
40
|
* @detail callback
|
|
22
41
|
* @brief Occurs when the first video frame is rendered at the beginning of playback or after a retry during playback.
|
|
@@ -28,7 +47,16 @@ export interface VeLivePlayerObserver {
|
|
|
28
47
|
*
|
|
29
48
|
*/
|
|
30
49
|
onFirstVideoFrameRender?(player: VeLivePlayer, isFirstFrame: boolean): void;
|
|
31
|
-
|
|
50
|
+
/** {zh}
|
|
51
|
+
* @detail callback
|
|
52
|
+
* @brief 音频首帧渲染事件回调。音频首帧渲染成功,或播放过程中发生重试,重试后的第一个音频帧渲染成功,均会触发此回调。
|
|
53
|
+
* @order 3
|
|
54
|
+
* @param player 触发该事件回调的播放器对象。
|
|
55
|
+
* @param isFirstFrame 渲染成功的是否为音频首帧。<br>
|
|
56
|
+
* - true:音频首帧;
|
|
57
|
+
* - false:重试后第一个音频帧。
|
|
58
|
+
*
|
|
59
|
+
*/
|
|
32
60
|
/** {en}
|
|
33
61
|
* @detail callback
|
|
34
62
|
* @brief Occurs when the first audio frame is rendered at the beginning of playback or after a retry during playback.
|
|
@@ -40,7 +68,13 @@ export interface VeLivePlayerObserver {
|
|
|
40
68
|
*
|
|
41
69
|
*/
|
|
42
70
|
onFirstAudioFrameRender?(player: VeLivePlayer, isFirstFrame: boolean): void;
|
|
43
|
-
|
|
71
|
+
/** {zh}
|
|
72
|
+
* @detail callback
|
|
73
|
+
* @brief 播放卡顿开始回调。
|
|
74
|
+
* @order 4
|
|
75
|
+
* @param player 触发该事件回调的播放器对象。
|
|
76
|
+
*
|
|
77
|
+
*/
|
|
44
78
|
/** {en}
|
|
45
79
|
* @detail callback
|
|
46
80
|
* @brief Occurs when a playback stutter starts.
|
|
@@ -49,7 +83,13 @@ export interface VeLivePlayerObserver {
|
|
|
49
83
|
*
|
|
50
84
|
*/
|
|
51
85
|
onStallStart?(player: VeLivePlayer): void;
|
|
52
|
-
|
|
86
|
+
/** {zh}
|
|
87
|
+
* @detail callback
|
|
88
|
+
* @brief 播放卡顿结束回调。音频缓冲区达到起播条件且开始播放后,触发此回调。
|
|
89
|
+
* @order 5
|
|
90
|
+
* @param player 触发该事件回调的播放器对象。
|
|
91
|
+
*
|
|
92
|
+
*/
|
|
53
93
|
/** {en}
|
|
54
94
|
* @detail callback
|
|
55
95
|
* @brief Occurs when a playback stutter stops, that is, when playback resumes after there is enough audio buffer.
|
|
@@ -58,7 +98,14 @@ export interface VeLivePlayerObserver {
|
|
|
58
98
|
*
|
|
59
99
|
*/
|
|
60
100
|
onStallEnd?(player: VeLivePlayer): void;
|
|
61
|
-
|
|
101
|
+
/** {zh}
|
|
102
|
+
* @detail callback
|
|
103
|
+
* @brief 视频渲染卡顿回调。视频渲染发生卡顿时,触发此回调。
|
|
104
|
+
* @order 6
|
|
105
|
+
* @param player 触发该事件回调的播放器对象。
|
|
106
|
+
* @param stallTime 视频渲染卡顿时长,单位为 ms。
|
|
107
|
+
*
|
|
108
|
+
*/
|
|
62
109
|
/** {en}
|
|
63
110
|
* @detail callback
|
|
64
111
|
* @brief Occurs when video rendering stutters.
|
|
@@ -68,7 +115,14 @@ export interface VeLivePlayerObserver {
|
|
|
68
115
|
*
|
|
69
116
|
*/
|
|
70
117
|
onVideoRenderStall?(player: VeLivePlayer, stallTime: number): void;
|
|
71
|
-
|
|
118
|
+
/** {zh}
|
|
119
|
+
* @detail callback
|
|
120
|
+
* @brief 音频渲染卡顿回调。音频渲染发生卡顿时,触发此回调。
|
|
121
|
+
* @order 7
|
|
122
|
+
* @param player 触发该事件回调的播放器对象。
|
|
123
|
+
* @param stallTime 音频渲染卡顿时长,单位为 ms。
|
|
124
|
+
*
|
|
125
|
+
*/
|
|
72
126
|
/** {en}
|
|
73
127
|
* @detail callback
|
|
74
128
|
* @brief Occurs when audio rendering stutters.
|
|
@@ -78,7 +132,16 @@ export interface VeLivePlayerObserver {
|
|
|
78
132
|
*
|
|
79
133
|
*/
|
|
80
134
|
onAudioRenderStall?(player: VeLivePlayer, stallTime: number): void;
|
|
81
|
-
|
|
135
|
+
/** {zh}
|
|
136
|
+
* @detail callback
|
|
137
|
+
* @brief 清晰度档位变化回调。
|
|
138
|
+
* @order 8
|
|
139
|
+
* @param player 触发该事件回调的播放器对象。
|
|
140
|
+
* @param resolution 切换后的清晰度档位,详情请参见 [VeLivePlayerResolution](188115#VeLivePlayerResolution) 。
|
|
141
|
+
* @param error 切换清晰度档位时,是否发生错误,详情请参见 [VeLivePlayerError](188113#VeLivePlayerError) 。
|
|
142
|
+
* @param reason 清晰度档位切换的原因,详情请参见 [VeLivePlayerResolutionSwitchReason](188115#VeLivePlayerResolutionSwitchReason) 。
|
|
143
|
+
*
|
|
144
|
+
*/
|
|
82
145
|
/** {en}
|
|
83
146
|
* @detail callback
|
|
84
147
|
* @brief Occurs when the video resolution changes.
|
|
@@ -90,7 +153,15 @@ export interface VeLivePlayerObserver {
|
|
|
90
153
|
*
|
|
91
154
|
*/
|
|
92
155
|
onResolutionSwitch?(player: VeLivePlayer, resolution: VeLivePlayerResolution, error: VeLivePlayerError, reason: VeLivePlayerResolutionSwitchReason): void;
|
|
93
|
-
|
|
156
|
+
/** {zh}
|
|
157
|
+
* @detail callback
|
|
158
|
+
* @brief 视频分辨率变化回调。视频大小发生变化时,触发回调。
|
|
159
|
+
* @order 9
|
|
160
|
+
* @param player 触发该事件回调的播放器对象。
|
|
161
|
+
* @param width 变化后的视频宽度,单位为 px。
|
|
162
|
+
* @param height 变化后的视频高度,单位为 px。
|
|
163
|
+
*
|
|
164
|
+
*/
|
|
94
165
|
/** {en}
|
|
95
166
|
* @detail callback
|
|
96
167
|
* @brief Occurs when the video size changes.
|
|
@@ -101,7 +172,14 @@ export interface VeLivePlayerObserver {
|
|
|
101
172
|
*
|
|
102
173
|
*/
|
|
103
174
|
onVideoSizeChanged?(player: VeLivePlayer, width: number, height: number): void;
|
|
104
|
-
|
|
175
|
+
/** {zh}
|
|
176
|
+
* @detail callback
|
|
177
|
+
* @brief 字符串 SEI 消息回调,当播放器 SDK 接收到 SEI 消息时,触发该回调。需要开启 VeLivePlayerConfiguration 中 enableSei 属性。当 enableBinarySei 属性开启时,字符串 SEI 消息将不再发送。
|
|
178
|
+
* @order 10
|
|
179
|
+
* @param player 触发该事件回调的播放器对象。
|
|
180
|
+
* @param message SEI 信息。
|
|
181
|
+
*
|
|
182
|
+
*/
|
|
105
183
|
/** {en}
|
|
106
184
|
* @detail callback
|
|
107
185
|
* @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.
|
|
@@ -111,7 +189,14 @@ export interface VeLivePlayerObserver {
|
|
|
111
189
|
*
|
|
112
190
|
*/
|
|
113
191
|
onReceiveSeiMessage?(player: VeLivePlayer, message: string): void;
|
|
114
|
-
|
|
192
|
+
/** {zh}
|
|
193
|
+
* @detail callback
|
|
194
|
+
* @brief 二级制 SEI 消息回调,当播放器 SDK 接收到 SEI 消息时,触发该回调。需要开启 VeLivePlayerConfiguration 中 enableBinarySei 属性。当 enableBinarySei 属性开启时,字符串 SEI 消息将不再发送。
|
|
195
|
+
* @order 10
|
|
196
|
+
* @param player 触发该事件回调的播放器对象。
|
|
197
|
+
* @param message SEI 信息。
|
|
198
|
+
*
|
|
199
|
+
*/
|
|
115
200
|
/** {en}
|
|
116
201
|
* @detail callback
|
|
117
202
|
* @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.
|
|
@@ -121,7 +206,15 @@ export interface VeLivePlayerObserver {
|
|
|
121
206
|
*
|
|
122
207
|
*/
|
|
123
208
|
onReceiveBinarySeiMessage?(player: VeLivePlayer, message: ArrayBuffer): void;
|
|
124
|
-
|
|
209
|
+
/** {zh}
|
|
210
|
+
* @detail callback
|
|
211
|
+
* @brief 主备流切换回调。
|
|
212
|
+
* @order 11
|
|
213
|
+
* @param player 触发该事件回调的播放器对象。
|
|
214
|
+
* @param streamType 切换后的流类型为主路流或备路流,详情请参见 [VeLivePlayerStreamType](188115#VeLivePlayerStreamType) 。
|
|
215
|
+
* @param error 触发主备流切换的原因,详情请参见 [VeLivePlayerError](188113#VeLivePlayerError) 。
|
|
216
|
+
*
|
|
217
|
+
*/
|
|
125
218
|
/** {en}
|
|
126
219
|
* @detail callback
|
|
127
220
|
* @brief Occurs when the player switches between the primary stream and the backup stream.
|
|
@@ -132,7 +225,14 @@ export interface VeLivePlayerObserver {
|
|
|
132
225
|
*
|
|
133
226
|
*/
|
|
134
227
|
onMainBackupSwitch?(player: VeLivePlayer, streamType: VeLivePlayerStreamType, error: VeLivePlayerError): void;
|
|
135
|
-
|
|
228
|
+
/** {zh}
|
|
229
|
+
* @detail callback
|
|
230
|
+
* @brief 播放状态发生变化时,触发回调。
|
|
231
|
+
* @order 12
|
|
232
|
+
* @param player 触发该事件回调的播放器对象。
|
|
233
|
+
* @param status 当前播放器的状态,详情请参见 [VeLivePlayerStatus](188115#VeLivePlayerStatus) 。
|
|
234
|
+
*
|
|
235
|
+
*/
|
|
136
236
|
/** {en}
|
|
137
237
|
* @detail callback
|
|
138
238
|
* @brief Occurs when the playback status changes.
|
|
@@ -142,7 +242,14 @@ export interface VeLivePlayerObserver {
|
|
|
142
242
|
*
|
|
143
243
|
*/
|
|
144
244
|
onPlayerStatusUpdate?(player: VeLivePlayer, status: VeLivePlayerStatus): void;
|
|
145
|
-
|
|
245
|
+
/** {zh}
|
|
246
|
+
* @detail callback
|
|
247
|
+
* @brief 播放信息周期性回调。播放器 SDK 会周期性地回调本方法,您可以通过本方法获取当前播放器的播放地址、码率和帧率等信息。
|
|
248
|
+
* @order 13
|
|
249
|
+
* @param player 触发该事件回调的播放器对象。
|
|
250
|
+
* @param statistics 播放器周期性回调的统计信息,详情请参见 [VeLivePlayerStatistics](188115#VeLivePlayerStatistics) 。
|
|
251
|
+
*
|
|
252
|
+
*/
|
|
146
253
|
/** {en}
|
|
147
254
|
* @detail callback
|
|
148
255
|
* @brief Occurs periodically to report information such as the current pull stream address, bitrate, and frame rate.
|
|
@@ -152,7 +259,14 @@ export interface VeLivePlayerObserver {
|
|
|
152
259
|
*
|
|
153
260
|
*/
|
|
154
261
|
onStatistics?(player: VeLivePlayer, statistics: VeLivePlayerStatistics): void;
|
|
155
|
-
|
|
262
|
+
/** {zh}
|
|
263
|
+
* @detail callback
|
|
264
|
+
* @brief 截图成功回调。当播放器调用 snapshot{@link #VeLivePlayer#snapshot} 截图成功后,会触发此回调。
|
|
265
|
+
* @order 14
|
|
266
|
+
* @param player 触发该事件回调的播放器对象。
|
|
267
|
+
* @param bitmap 截图的 Bitmap 对象。
|
|
268
|
+
*
|
|
269
|
+
*/
|
|
156
270
|
/** {en}
|
|
157
271
|
* @detail callback
|
|
158
272
|
* @brief Occurs when a screenshot is taken after snapshot{@link #VeLivePlayer#snapshot} is called.
|
|
@@ -162,7 +276,16 @@ export interface VeLivePlayerObserver {
|
|
|
162
276
|
*
|
|
163
277
|
*/
|
|
164
278
|
onSnapshotComplete?(player: VeLivePlayer, bitmap: Bitmap): void;
|
|
165
|
-
|
|
279
|
+
/** {zh}
|
|
280
|
+
* @detail callback
|
|
281
|
+
* @brief 视频帧回调。调用 enableVideoFrameObserver{@link #VeLivePlayer#enableVideoFrameObserver} 开启视频帧解析回调后,当播放器成功解码视频帧时,会触发此回调。
|
|
282
|
+
* @notes <br>
|
|
283
|
+
* 如果自定义渲染使用纹理格式,建议在视频帧回调线程中执行渲染操作。
|
|
284
|
+
* @order 15
|
|
285
|
+
* @param player 触发该事件回调的播放器对象。
|
|
286
|
+
* @param videoFrame 视频帧数据,包含像素格式、封装格式、视频宽高等信息,详情请参见 [VeLivePlayerVideoFrame](188115#VeLivePlayerVideoFrame) 。
|
|
287
|
+
*
|
|
288
|
+
*/
|
|
166
289
|
/** {en}
|
|
167
290
|
* @detail callback
|
|
168
291
|
* @brief Occurs when the player decodes a video frame. Call [enableVideoFrameObserver](docs-player-android-api-reference#VeLivePlayer-enablevideoframeobserver) to enable video frame callback.
|
|
@@ -174,7 +297,16 @@ export interface VeLivePlayerObserver {
|
|
|
174
297
|
*
|
|
175
298
|
*/
|
|
176
299
|
onRenderVideoFrame?(player: VeLivePlayer, videoFrame: VeLivePlayerVideoFrame): void;
|
|
177
|
-
|
|
300
|
+
/** {zh}
|
|
301
|
+
* @detail callback
|
|
302
|
+
* @brief 音频帧回调。调用 enableAudioFrameObserver{@link #VeLivePlayer#enableAudioFrameObserver} 开启音频帧解析回调后,当播放器成功解码音频帧时,会触发此回调。
|
|
303
|
+
* @notes <br>
|
|
304
|
+
* 回调的音频帧数据为 float32 格式,大端字节序存储。
|
|
305
|
+
* @order 16
|
|
306
|
+
* @param player 触发该事件回调的播放器对象。
|
|
307
|
+
* @param audioFrame 音频数据,详情请参见 [VeLivePlayerAudioFrame](188115#VeLivePlayerAudioFrame) 。
|
|
308
|
+
*
|
|
309
|
+
*/
|
|
178
310
|
/** {en}
|
|
179
311
|
* @detail callback
|
|
180
312
|
* @brief Occurs when the player decodes an audio frame. Call enableAudioFrameObserver{@link #VeLivePlayer#enableAudioFrameObserver} to enable audio frame callback.
|
|
@@ -186,7 +318,14 @@ export interface VeLivePlayerObserver {
|
|
|
186
318
|
*
|
|
187
319
|
*/
|
|
188
320
|
onRenderAudioFrame?(player: VeLivePlayer, audioFrame: VeLivePlayerAudioFrame): void;
|
|
189
|
-
|
|
321
|
+
/** {zh}
|
|
322
|
+
* @detail callback
|
|
323
|
+
* @brief 超分开启失败。调用 setEnableSuperResolution{@link #VeLivePlayer#setEnableSuperResolution} 开启超分后,当播放器不支持超分开启或者超分处理出错时,会触发此回调。
|
|
324
|
+
* @order 17
|
|
325
|
+
* @param player 触发该事件回调的播放器对象。
|
|
326
|
+
* @param error 超分开启失败原因,错误码请参见 [VeLivePlayerErrorCode](188113#VeLivePlayerError-VeLivePlayerErrorCode) 。
|
|
327
|
+
*
|
|
328
|
+
*/
|
|
190
329
|
/** {en}
|
|
191
330
|
* @detail callback
|
|
192
331
|
* @brief Occurs when the SDK fails to enable super resolution after setEnableSuperResolution{@link #VeLivePlayer#setEnableSuperResolution} is called.
|
|
@@ -196,7 +335,15 @@ export interface VeLivePlayerObserver {
|
|
|
196
335
|
*
|
|
197
336
|
*/
|
|
198
337
|
onStreamFailedOpenSuperResolution?(player: VeLivePlayer, error: VeLivePlayerError): void;
|
|
199
|
-
|
|
338
|
+
/** {zh}
|
|
339
|
+
* @platform android
|
|
340
|
+
* @detail callback
|
|
341
|
+
* @brief 锐化开启失败。调用 setEnableSharpen{@link #VeLivePlayer#setEnableSharpen} 开启锐化后,当播放器不支持超分开启或者超分处理出错时,会触发此回调。
|
|
342
|
+
* @param player 触发该事件回调的播放器对象。
|
|
343
|
+
* @param error 锐化开启失败原因。错误码请参见 [VeLivePlayerErrorCode](188113#VeLivePlayerErrorCode)。
|
|
344
|
+
* @order 18
|
|
345
|
+
*
|
|
346
|
+
*/
|
|
200
347
|
/** {en}
|
|
201
348
|
* @platform android
|
|
202
349
|
* @detail callback
|
|
@@ -1,177 +1,273 @@
|
|
|
1
1
|
import * as $p_a from '../android/index';
|
|
2
2
|
import * as $p_i from '../ios/index';
|
|
3
|
-
|
|
3
|
+
/** {zh}
|
|
4
|
+
* @detail errorcode
|
|
5
|
+
* @brief 直播播放错误码。
|
|
6
|
+
*
|
|
7
|
+
*/
|
|
4
8
|
export declare enum VeLivePlayerErrorCode {
|
|
5
|
-
|
|
9
|
+
/** {zh}
|
|
10
|
+
* @brief 没有错误。
|
|
11
|
+
*
|
|
12
|
+
*/
|
|
6
13
|
/** {en}
|
|
7
14
|
* @brief No error.
|
|
8
15
|
*
|
|
9
16
|
*/
|
|
10
17
|
VeLivePlayerNoError = 0,
|
|
11
|
-
|
|
18
|
+
/** {zh}
|
|
19
|
+
* @brief License 无效。可能 License 集成错误或 License 过期,请检查 License 集成方式和有效性。
|
|
20
|
+
*
|
|
21
|
+
*/
|
|
12
22
|
/** {en}
|
|
13
23
|
* @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.
|
|
14
24
|
*
|
|
15
25
|
*/
|
|
16
26
|
VeLivePlayerInvalidLicense = -1,
|
|
17
|
-
|
|
27
|
+
/** {zh}
|
|
28
|
+
* @brief 调用时传入的参数不合法。请检查入参,并重新调用。
|
|
29
|
+
*
|
|
30
|
+
*/
|
|
18
31
|
/** {en}
|
|
19
32
|
* @brief Invalid parameters. Check the input parameter and call the method again.
|
|
20
33
|
*
|
|
21
34
|
*/
|
|
22
35
|
VeLivePlayerInvalidParameter = -2,
|
|
23
|
-
|
|
36
|
+
/** {zh}
|
|
37
|
+
* @brief 调用被拒绝。方法调用时机不合法,请检查调用时机。
|
|
38
|
+
*
|
|
39
|
+
*/
|
|
24
40
|
/** {en}
|
|
25
41
|
* @brief The method call has been rejected. This error occurs when the method is called at an incorrect time.
|
|
26
42
|
*
|
|
27
43
|
*/
|
|
28
44
|
VeLivePlayerErrorRefused = -3,
|
|
29
|
-
|
|
45
|
+
/** {zh}
|
|
46
|
+
* @brief 加载库文件失败。可能是 SDK 集成错误,请检查 SDK 集成方式。
|
|
47
|
+
*
|
|
48
|
+
*/
|
|
30
49
|
/** {en}
|
|
31
50
|
* @brief Failed to load the library file. This error may occur due to incorrect integration of the SDK.
|
|
32
51
|
*
|
|
33
52
|
*/
|
|
34
53
|
VeLivePlayerErrorLibraryLoadFailed = -4,
|
|
35
|
-
|
|
54
|
+
/** {zh}
|
|
55
|
+
* @brief 播放地址不存在或无效。可能是播放地址为空、地址格式不合法或地址长度不合法,请检查播放地址。
|
|
56
|
+
*
|
|
57
|
+
*/
|
|
36
58
|
/** {en}
|
|
37
59
|
* @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.
|
|
38
60
|
*
|
|
39
61
|
*/
|
|
40
62
|
VeLivePlayerErrorPlayUrl = -100,
|
|
41
|
-
|
|
63
|
+
/** {zh}
|
|
64
|
+
* @brief 无法获取流数据。可能是直播流不存在、直播流中断或直播已结束,请检查直播状态。
|
|
65
|
+
*
|
|
66
|
+
*/
|
|
42
67
|
/** {en}
|
|
43
68
|
* @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.
|
|
44
69
|
*
|
|
45
70
|
*/
|
|
46
71
|
VeLivePlayerErrorNoStreamData = -101,
|
|
47
|
-
|
|
72
|
+
/** {zh}
|
|
73
|
+
* @brief 内部播放重试。可能由于播放器内部错误触发了重试。
|
|
74
|
+
*
|
|
75
|
+
*/
|
|
48
76
|
/** {en}
|
|
49
77
|
* @brief An internal retry to play the live stream, which might happen due to an internal player error.
|
|
50
78
|
*
|
|
51
79
|
*/
|
|
52
80
|
VeLivePlayerErrorInternalRetryStart = -102,
|
|
53
|
-
|
|
81
|
+
/** {zh}
|
|
82
|
+
* @brief 内部重试失败。内部重试次数达到最大限制,播放器停止重试,您可以尝试重新播放。
|
|
83
|
+
*
|
|
84
|
+
*/
|
|
54
85
|
/** {en}
|
|
55
86
|
* @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.
|
|
56
87
|
*
|
|
57
88
|
*/
|
|
58
89
|
VeLivePlayerErrorInternalRetryFailed = -103,
|
|
59
|
-
|
|
90
|
+
/** {zh}
|
|
91
|
+
* @brief DNS 解析失败。可能是播放地址异常或客户端网络异常,请您检查播放地址和网络情况,如果故障未排除,请联系火山引擎[技术支持](https://console.volcengine.com/workorder/create?step=2&SubProductID=P00000076)。
|
|
92
|
+
*
|
|
93
|
+
*/
|
|
60
94
|
/** {en}
|
|
61
95
|
* @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.
|
|
62
96
|
*
|
|
63
97
|
*/
|
|
64
98
|
VeLivePlayerErrorDnsParseFailed = -200,
|
|
65
|
-
|
|
99
|
+
/** {zh}
|
|
100
|
+
* @brief 网络请求失败。请检查网络情况,如果故障未排除,请联系火山引擎[技术支持](https://console.volcengine.com/workorder/create?step=2&SubProductID=P00000076)。
|
|
101
|
+
*
|
|
102
|
+
*/
|
|
66
103
|
/** {en}
|
|
67
104
|
* @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.
|
|
68
105
|
*
|
|
69
106
|
*/
|
|
70
107
|
VeLivePlayerErrorNetworkRequestFailed = -201,
|
|
71
|
-
|
|
108
|
+
/** {zh}
|
|
109
|
+
* @brief 直播格式解封装失败。可能是使用了不支持的直播流格式和协议,或音视频流错误;请检查流格式,如果故障未排除,请联系火山引擎[技术支持](https://console.volcengine.com/workorder/create?step=2&SubProductID=P00000076)。
|
|
110
|
+
*
|
|
111
|
+
*/
|
|
72
112
|
/** {en}
|
|
73
113
|
* @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.
|
|
74
114
|
*
|
|
75
115
|
*/
|
|
76
116
|
VeLivePlayerErrorDemuxFailed = -300,
|
|
77
|
-
|
|
117
|
+
/** {zh}
|
|
118
|
+
* @brief 视频解码失败。可能使用了不支持的直播流音视频格式,或解码器出错;请检查音视频格式,如果故障未排除,请联系火山引擎[技术支持](https://console.volcengine.com/workorder/create?step=2&SubProductID=P00000076)。
|
|
119
|
+
*
|
|
120
|
+
*/
|
|
78
121
|
/** {en}
|
|
79
122
|
* @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.
|
|
80
123
|
*
|
|
81
124
|
*/
|
|
82
125
|
VeLivePlayerErrorDecodeFailed = -301,
|
|
83
|
-
|
|
126
|
+
/** {zh}
|
|
127
|
+
* @brief 渲染失败。可能是音视频输出设备异常,请重试;如果故障未排除,请联系火山引擎[技术支持](https://console.volcengine.com/workorder/create?step=2&SubProductID=P00000076)。
|
|
128
|
+
*
|
|
129
|
+
*/
|
|
84
130
|
/** {en}
|
|
85
131
|
* @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.
|
|
86
132
|
*
|
|
87
133
|
*/
|
|
88
134
|
VeLivePlayerErrorAVOutputFailed = -302,
|
|
89
|
-
|
|
135
|
+
/** {zh}
|
|
136
|
+
* @brief 该台设备不支持超分能力,不在超分机型白名单内;如果有疑问,请联系火山引擎[技术支持](https://console.volcengine.com/workorder/create?step=2&SubProductID=P00000076)。
|
|
137
|
+
*
|
|
138
|
+
*/
|
|
90
139
|
/** {en}
|
|
91
140
|
* @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.
|
|
92
141
|
*
|
|
93
142
|
*/
|
|
94
143
|
VeLivePlayerErrorSRDeviceUnsupported = -303,
|
|
95
|
-
|
|
144
|
+
/** {zh}
|
|
145
|
+
* @brief 当前分辨率高于超分开启限制的最大分辨率。如果有疑问,请联系火山引擎[技术支持](https://console.volcengine.com/workorder/create?step=2&SubProductID=P00000076)。
|
|
146
|
+
*
|
|
147
|
+
*/
|
|
96
148
|
/** {en}
|
|
97
149
|
* @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.
|
|
98
150
|
*
|
|
99
151
|
*/
|
|
100
152
|
VeLivePlayerErrorSRResolutionUnsupported = -304,
|
|
101
|
-
|
|
153
|
+
/** {zh}
|
|
154
|
+
* @brief 当前帧率高于超分开启限制的最大帧率。如果有疑问,请联系火山引擎[技术支持](https://console.volcengine.com/workorder/create?step=2&SubProductID=P00000076)。
|
|
155
|
+
*
|
|
156
|
+
*/
|
|
102
157
|
/** {en}
|
|
103
158
|
* @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.
|
|
104
159
|
*
|
|
105
160
|
*/
|
|
106
161
|
VeLivePlayerErrorSRFpsUnsupported = -305,
|
|
107
|
-
|
|
162
|
+
/** {zh}
|
|
163
|
+
* @brief 超分初始化失败。可能超分参数配置错误,或版本不兼容;如果故障未排除,请联系火山引擎[技术支持](https://console.volcengine.com/workorder/create?step=2&SubProductID=P00000076)。
|
|
164
|
+
*
|
|
165
|
+
*/
|
|
108
166
|
/** {en}
|
|
109
167
|
* @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.
|
|
110
168
|
*
|
|
111
169
|
*/
|
|
112
170
|
VeLivePlayerErrorSRInitFail = -306,
|
|
113
|
-
|
|
171
|
+
/** {zh}
|
|
172
|
+
* @brief 超分执行失败,可能超分参数配置错误,或版本不兼容;如果故障未排除,请联系火山引擎[技术支持](https://console.volcengine.com/workorder/create?step=2&SubProductID=P00000076)。
|
|
173
|
+
*
|
|
174
|
+
*/
|
|
114
175
|
/** {en}
|
|
115
176
|
* @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.
|
|
116
177
|
*
|
|
117
178
|
*/
|
|
118
179
|
VeLivePlayerErrorSRExecuteFail = -307,
|
|
119
|
-
|
|
180
|
+
/** {zh}
|
|
181
|
+
* @brief 您使用的基础版 License 暂不支持 H.265 硬件解码。
|
|
182
|
+
*
|
|
183
|
+
*/
|
|
120
184
|
/** {en}
|
|
121
185
|
* @brief The current SDK license does not provide support for the H.265 feature.
|
|
122
186
|
*
|
|
123
187
|
*/
|
|
124
188
|
VeLivePlayerLicenseUnsupportedH265 = -308,
|
|
125
|
-
|
|
189
|
+
/** {zh}
|
|
190
|
+
* @platform android
|
|
191
|
+
* @brief 该台设备系统版本不支持锐化能力;如果有疑问,请联系火山引擎[技术支持](https://console.volcengine.com/workorder/create?step=3&SubProductID=P00000076&FlowKey=owVvVTNjDkRmjctcsyNW)。
|
|
192
|
+
*
|
|
193
|
+
*/
|
|
126
194
|
/** {en}
|
|
127
195
|
* @platform android
|
|
128
196
|
* @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.
|
|
129
197
|
*
|
|
130
198
|
*/
|
|
131
199
|
VeLivePlayerErrorSharpenDeviceUnsupported = -309,
|
|
132
|
-
|
|
200
|
+
/** {zh}
|
|
201
|
+
* @brief 分辨率档位切换不支持;如果故障未排除,请联系火山引擎技术支持。
|
|
202
|
+
* @hidden (Android)
|
|
203
|
+
*
|
|
204
|
+
*/
|
|
133
205
|
/** {en}
|
|
134
206
|
* @hidden (Android)
|
|
135
207
|
*
|
|
136
208
|
*/
|
|
137
209
|
VeLivePlayerErrorNotSupportResolutionSwitch = -310,
|
|
138
|
-
|
|
210
|
+
/** {zh}
|
|
211
|
+
* @platform ios
|
|
212
|
+
* @brief DRM 鉴权失败。
|
|
213
|
+
*
|
|
214
|
+
*/
|
|
139
215
|
/** {en}
|
|
140
216
|
* @platform ios
|
|
141
217
|
* @brief DRM authentication fails
|
|
142
218
|
*
|
|
143
219
|
*/
|
|
144
220
|
VeLivePlayerDRMFetchCKCFailed = -400,
|
|
145
|
-
|
|
221
|
+
/** {zh}
|
|
222
|
+
* @platform ios
|
|
223
|
+
* @brief 服务器播放上下文(SPC)生成失败。
|
|
224
|
+
*
|
|
225
|
+
*/
|
|
146
226
|
/** {en}
|
|
147
227
|
* @platform ios
|
|
148
228
|
* @brief Fails to generate Server Playback Context (SPC)
|
|
149
229
|
*
|
|
150
230
|
*/
|
|
151
231
|
VeLivePlayerDRMFetchSPCFailed = -401,
|
|
152
|
-
|
|
232
|
+
/** {zh}
|
|
233
|
+
* @brief 内部错误。请联系火山引擎[技术支持](https://console.volcengine.com/workorder/create?step=2&SubProductID=P00000076)。
|
|
234
|
+
*
|
|
235
|
+
*/
|
|
153
236
|
/** {en}
|
|
154
237
|
* @brief Internal error. Please [create a ticket](https://console.byteplus.com/workorder/create?step=2&SubProductID=P00000980) to contact BytePlus technical support for assistance.
|
|
155
238
|
*
|
|
156
239
|
*/
|
|
157
240
|
VeLivePlayerErrorInternal = -999
|
|
158
241
|
}
|
|
159
|
-
|
|
242
|
+
/** {zh}
|
|
243
|
+
* @detail errorcode
|
|
244
|
+
* @brief 直播播放错误。
|
|
245
|
+
*/
|
|
160
246
|
export declare class VeLivePlayerError {
|
|
161
247
|
protected _instance: any;
|
|
162
|
-
|
|
248
|
+
/** {zh}
|
|
249
|
+
* @brief 直播播放错误码。
|
|
250
|
+
*
|
|
251
|
+
*/
|
|
163
252
|
/** {en}
|
|
164
253
|
* @brief The error code.
|
|
165
254
|
*
|
|
166
255
|
*/
|
|
167
256
|
get errorCode(): number;
|
|
168
|
-
|
|
257
|
+
/** {zh}
|
|
258
|
+
* @brief 直播播放错误信息。
|
|
259
|
+
*
|
|
260
|
+
*/
|
|
169
261
|
/** {en}
|
|
170
262
|
* @brief The error message.
|
|
171
263
|
*
|
|
172
264
|
*/
|
|
173
265
|
get errorMsg(): string;
|
|
174
|
-
|
|
266
|
+
/** {zh}
|
|
267
|
+
* @platform android
|
|
268
|
+
* @brief 直播播放子错误码。
|
|
269
|
+
*
|
|
270
|
+
*/
|
|
175
271
|
/** {en}
|
|
176
272
|
* @platform android
|
|
177
273
|
* @brief The sub error code.
|