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