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