@byteplus/react-native-live-pull 1.5.1-rc.2 → 1.5.1-rc.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (63) hide show
  1. package/android/bin/build/generated/res/pngs/debug/drawable-anydpi-v24/new_window.xml +16 -0
  2. package/android/bin/build/generated/res/pngs/debug/drawable-hdpi/new_window.png +0 -0
  3. package/android/bin/build/generated/res/pngs/debug/drawable-ldpi/new_window.png +0 -0
  4. package/android/bin/build/generated/res/pngs/debug/drawable-mdpi/new_window.png +0 -0
  5. package/android/bin/build/generated/res/pngs/debug/drawable-xhdpi/new_window.png +0 -0
  6. package/android/bin/build/generated/res/pngs/debug/drawable-xxhdpi/new_window.png +0 -0
  7. package/android/bin/build/generated/res/pngs/debug/drawable-xxxhdpi/new_window.png +0 -0
  8. package/android/bin/build/generated/source/buildConfig/debug/com/volcengine/velive/rn/pull/BuildConfig.class +0 -0
  9. package/android/bin/build/intermediates/aapt_friendly_merged_manifests/debug/aapt/AndroidManifest.xml +25 -0
  10. package/android/bin/build/intermediates/aapt_friendly_merged_manifests/debug/aapt/output-metadata.json +18 -0
  11. package/android/bin/build/intermediates/aar_metadata/debug/aar-metadata.properties +5 -0
  12. package/android/bin/build/intermediates/annotation_processor_list/debug/annotationProcessors.json +1 -0
  13. package/android/bin/build/intermediates/compile_library_classes_jar/debug/classes.jar +0 -0
  14. package/android/bin/build/intermediates/compile_r_class_jar/debug/R.jar +0 -0
  15. package/android/bin/build/intermediates/compile_symbol_list/debug/R.txt +6 -0
  16. package/android/bin/build/intermediates/compiled_local_resources/debug/out/drawable-anydpi-v24_new_window.xml.flat +0 -0
  17. package/android/bin/build/intermediates/compiled_local_resources/debug/out/drawable-hdpi-v4_new_window.png.flat +0 -0
  18. package/android/bin/build/intermediates/compiled_local_resources/debug/out/drawable-ldpi-v4_new_window.png.flat +0 -0
  19. package/android/bin/build/intermediates/compiled_local_resources/debug/out/drawable-mdpi-v4_new_window.png.flat +0 -0
  20. package/android/bin/build/intermediates/compiled_local_resources/debug/out/drawable-xhdpi-v4_new_window.png.flat +0 -0
  21. package/android/bin/build/intermediates/compiled_local_resources/debug/out/drawable-xxhdpi-v4_new_window.png.flat +0 -0
  22. package/android/bin/build/intermediates/compiled_local_resources/debug/out/drawable-xxxhdpi-v4_new_window.png.flat +0 -0
  23. package/android/bin/build/intermediates/compiled_local_resources/debug/out/drawable_button_close.xml.flat +0 -0
  24. package/android/bin/build/intermediates/compiled_local_resources/debug/out/layout_floating_window_layout.xml.flat +0 -0
  25. package/android/bin/build/intermediates/incremental/debug/packageDebugResources/compile-file-map.properties +10 -0
  26. package/android/bin/build/intermediates/incremental/debug/packageDebugResources/merger.xml +2 -0
  27. package/android/bin/build/intermediates/incremental/mergeDebugJniLibFolders/merger.xml +2 -0
  28. package/android/bin/build/intermediates/incremental/mergeDebugShaders/merger.xml +2 -0
  29. package/android/bin/build/intermediates/incremental/packageDebugAssets/merger.xml +2 -0
  30. package/android/bin/build/intermediates/local_only_symbol_list/debug/R-def.txt +8 -0
  31. package/android/bin/build/intermediates/manifest_merge_blame_file/debug/manifest-merger-blame-debug-report.txt +44 -0
  32. package/android/bin/build/intermediates/merged_manifest/debug/AndroidManifest.xml +25 -0
  33. package/android/bin/build/intermediates/navigation_json/debug/navigation.json +1 -0
  34. package/android/bin/build/intermediates/packaged_res/debug/drawable/button_close.xml +9 -0
  35. package/android/bin/build/intermediates/packaged_res/debug/drawable-anydpi-v24/new_window.xml +16 -0
  36. package/android/bin/build/intermediates/packaged_res/debug/drawable-hdpi-v4/new_window.png +0 -0
  37. package/android/bin/build/intermediates/packaged_res/debug/drawable-ldpi-v4/new_window.png +0 -0
  38. package/android/bin/build/intermediates/packaged_res/debug/drawable-mdpi-v4/new_window.png +0 -0
  39. package/android/bin/build/intermediates/packaged_res/debug/drawable-xhdpi-v4/new_window.png +0 -0
  40. package/android/bin/build/intermediates/packaged_res/debug/drawable-xxhdpi-v4/new_window.png +0 -0
  41. package/android/bin/build/intermediates/packaged_res/debug/drawable-xxxhdpi-v4/new_window.png +0 -0
  42. package/android/bin/build/intermediates/packaged_res/debug/layout/floating_window_layout.xml +29 -0
  43. package/android/bin/build/intermediates/runtime_library_classes_jar/debug/classes.jar +0 -0
  44. package/android/bin/build/intermediates/symbol_list_with_package_name/debug/package-aware-r.txt +7 -0
  45. package/android/bin/build/outputs/logs/manifest-merger-debug-report.txt +54 -0
  46. package/android/bin/build/tmp/compileDebugJavaWithJavac/previous-compilation-data.bin +0 -0
  47. package/lib/typescript/codegen/android/api.d.ts +257 -27
  48. package/lib/typescript/codegen/android/callback.d.ts +162 -19
  49. package/lib/typescript/codegen/android/errorcode.d.ts +115 -28
  50. package/lib/typescript/codegen/android/keytype.d.ts +482 -113
  51. package/lib/typescript/codegen/ios/api.d.ts +225 -29
  52. package/lib/typescript/codegen/ios/callback.d.ts +134 -18
  53. package/lib/typescript/codegen/ios/errorcode.d.ts +102 -26
  54. package/lib/typescript/codegen/ios/keytype.d.ts +424 -113
  55. package/lib/typescript/codegen/pack/api.d.ts +291 -33
  56. package/lib/typescript/codegen/pack/callback.d.ts +167 -20
  57. package/lib/typescript/codegen/pack/errorcode.d.ts +126 -30
  58. package/lib/typescript/codegen/pack/keytype.d.ts +582 -130
  59. package/lib/typescript/core/keytype.d.ts +16 -4
  60. package/lib/typescript/core/logger.d.ts +1 -0
  61. package/lib/typescript/platforms/android/AppLogWrapper.d.ts +8 -0
  62. package/lib/typescript/platforms/ios/RangersAppLog.d.ts +4 -0
  63. package/package.json +1 -1
@@ -3,7 +3,12 @@ import { NSString, id, float, BOOL, NSDictionary, int } from './types';
3
3
  import { VeLivePlayerObserver } from './callback';
4
4
  import { UIView } from './external';
5
5
  export declare class TVLManager {
6
-
6
+ /** {zh}
7
+ * @detail api
8
+ * @brief 设置打印日志的级别。
9
+ * @order 5
10
+ * @param logLevel 日志级别,详情请参见 [VeLivePlayerLogLevel](188121#VeLivePlayerLogLevel) 。
11
+ */
7
12
  /** {en}
8
13
  * @detail api
9
14
  * @brief Sets the level of the output log.
@@ -11,7 +16,13 @@ export declare class TVLManager {
11
16
  * @order 5
12
17
  */
13
18
  static setLogLevel(logLevel: VeLivePlayerLogLevel): void;
14
-
19
+ /** {zh}
20
+ * @detail api
21
+ * @brief 获取播放器 SDK 的版本号。
22
+ * @return
23
+ * 播放器 SDK 版本号。
24
+ * @order 4
25
+ */
15
26
  /** {en}
16
27
  * @detail api
17
28
  * @brief Gets the version number of the Player SDK.
@@ -20,25 +31,40 @@ export declare class TVLManager {
20
31
  * @order 4
21
32
  */
22
33
  static getVersion(): NSString;
23
-
34
+ /** {zh}
35
+ * @detail keytype
36
+ * @brief 播放器的回调事件监听器。
37
+ */
24
38
  /** {en}
25
39
  * @detail keytype
26
40
  * @brief The player observer.
27
41
  */
28
42
  observer: id<VeLivePlayerObserver>;
29
-
43
+ /** {zh}
44
+ * @detail keytype
45
+ * @brief 获取播放器内部用于渲染视频画面的视图 view,调用本方法将 playerView 添加到应用的视图层级中,实现视频内容显示。
46
+ */
30
47
  /** {en}
31
48
  * @detail keytype
32
49
  * @brief The view used by the player to render video. Add `playerView` to the view hierarchy of your app to display the video content.
33
50
  */
34
51
  playerView: UIView;
35
-
52
+ /** {zh}
53
+ * @detail keytype
54
+ * @brief 设置或获取播放器播放音量,默认值为 1.0。取值范围为 0.0~1.0。
55
+ */
36
56
  /** {en}
37
57
  * @detail keytype
38
58
  * @brief The player volume. The default value is `1.0`. The value range is [0.0, 1.0].
39
59
  */
40
60
  volume: float;
41
-
61
+ /** {zh}
62
+ * @detail keytype
63
+ * @brief 检查播放器是否正在播放。
64
+ * @return 是否正在播放。<br>
65
+ * - YES:正在播放;
66
+ * - NO:未播放。
67
+ */
42
68
  /** {en}
43
69
  * @detail keytype
44
70
  * @brief Checks whether the player is playing.
@@ -47,20 +73,34 @@ export declare class TVLManager {
47
73
  * - NO: The player is not playing.
48
74
  */
49
75
  isPlaying: BOOL;
50
-
76
+ /** {zh}
77
+ * @detail api
78
+ * @brief 播放器初始化方法。
79
+ * @order 9
80
+ */
51
81
  /** {en}
52
82
  * @detail api
53
83
  * @brief Initializes the player.
54
84
  * @order 9
55
85
  */
56
86
  init(): this;
57
-
87
+ /** {zh}
88
+ * @brief 初始化特定类型的播放器。
89
+ * @param type 播放器类型,详情请参见 [VeLivePlayerType](188121#VeLivePlayerType)。
90
+ */
58
91
  /** {en}
59
92
  * @brief Initializes the specified type of player.
60
93
  * @param type The player type. Refer to [VeLivePlayerType](docs-player-sdk-for-ios-type-definition#VeLivePlayerType) for details.
61
94
  */
62
95
  initWithType(type: VeLivePlayerType): this;
63
-
96
+ /** {zh}
97
+ * @detail api
98
+ * @brief 初始化播放器,用于设置是否开启 SEI 消息、是否开启硬件解码和是否开启本地 DNS 预解析等配置信息。
99
+ * @notes
100
+ * 需要在调用 play{@link #VeLivePlayer#play} 开始播放之前,调用本方法进行播放器的初始化。
101
+ * @param config 播放器配置信息,详情请参见 VeLivePlayerConfiguration{@link #VeLivePlayerConfiguration}。
102
+ * @order 1
103
+ */
64
104
  /** {en}
65
105
  * @detail api
66
106
  * @brief Configures player settings, including whether to turn on SEI messaging, hardware decoding, and local DNS prefetch.
@@ -70,7 +110,14 @@ export declare class TVLManager {
70
110
  * @order 1
71
111
  */
72
112
  setConfig(config: VeLivePlayerConfiguration): void;
73
-
113
+ /** {zh}
114
+ * @detail api
115
+ * @brief 设置播放器回调,用于监听播放器 VeLivePlayer 的播放错误、播放状态、音视频首帧渲染状态和清晰度档位信息等回调事件。
116
+ * @notes
117
+ * 需要在调用 play{@link #VeLivePlayer#play} 开始播放之前,调用本方法设置回调。
118
+ * @param observer 播放器的事件回调对象。详情请参见 VeLivePlayerObserver{@link #VeLivePlayerObserver}。
119
+ * @order 2
120
+ */
74
121
  /** {en}
75
122
  * @detail api
76
123
  * @brief Sets the player observer to listen to the VeLivePlayer's events, such as playback errors or status updates, rendering of the first audio and video frame, and resolution switching.
@@ -80,7 +127,15 @@ export declare class TVLManager {
80
127
  * @order 2
81
128
  */
82
129
  setObserver(observer: id<VeLivePlayerObserver>): void;
83
-
130
+ /** {zh}
131
+ * @detail api
132
+ * @brief 设置播放器画面的填充模式。
133
+ * @notes
134
+ * - 如果用于起播设置,需要在调用 [play](#TVLManager(VeLivePlayer)-play) 开始播放之前,调用本方法设置视频的填充模式。
135
+ * - 如果用于调节填充模式,可以在播放过程中调用本方法动态调节视频的填充模式。
136
+ * @order 3
137
+ * @param fillMode 设置 SurfaceView 的填充模式,默认值为 `VeLivePlayerFillModeAspectFill`,详情请参见 [VeLivePlayerFillMode](188121#VeLivePlayerFillMode)。
138
+ */
84
139
  /** {en}
85
140
  * @detail api
86
141
  * @brief Sets the fill mode of the player screen.
@@ -91,7 +146,14 @@ export declare class TVLManager {
91
146
  * @param fillMode The fill mode of SurfaceView. The default value is `VeLivePlayerFillModeAspectFill`. See VeLivePlayerFillMode{@link #VeLivePlayerFillMode} for details.
92
147
  */
93
148
  setRenderFillMode(fillMode: VeLivePlayerFillMode): Promise<void>;
94
-
149
+ /** {zh}
150
+ * @detail api
151
+ * @brief 设置单个直播播放地址。
152
+ * @notes
153
+ * 需要在调用 [play](#TVLManager(VeLivePlayer)-play) 开始播放之前,调用本方法设置单个直播播放地址。
154
+ * @order 6
155
+ * @param url 直播播放地址
156
+ */
95
157
  /** {en}
96
158
  * @detail api
97
159
  * @brief Sets a pull stream address.
@@ -101,7 +163,12 @@ export declare class TVLManager {
101
163
  * @param url The pull stream address.
102
164
  */
103
165
  setPlayUrl(url: NSString): void;
104
-
166
+ /** {zh}
167
+ * @detail api
168
+ * @brief 设置域名和服务器的 IP 地址映射关系。
169
+ * @param hostIpMap 域名和服务器 IP 地址的映射关系列表。其中 `Map` 的 Key 是域名,Value 是 `List` 类型,表示该域名对应的服务器 IP 地址列表
170
+ * @order 17
171
+ */
105
172
  /** {en}
106
173
  * @detail api
107
174
  * @brief Sets the mapping of domain names to server IP addresses.
@@ -109,7 +176,13 @@ export declare class TVLManager {
109
176
  * @order 17
110
177
  */
111
178
  setUrlHostIP(hostIpMap: NSDictionary): void;
112
-
179
+ /** {zh}
180
+ * @detail api
181
+ * @brief 设置播放器高级配置。高级配置包括离屏渲染设置、缓冲区最大时长、ABR 码率自适应算法类型等,如需了解详细信息,请联系[技术支持](https://console.volcengine.com/workorder/create?step=2&SubProductID=P00000076)。
182
+ * @order 18
183
+ * @param key 高级配置的参数名。
184
+ * @param value 参数对应的参数值。
185
+ */
113
186
  /** {en}
114
187
  * @detail api
115
188
  * @brief Configures advanced settings for the player, including offscreen rendering, maximum buffer duration, and adaptive bitrate (ABR) algorithms. [Create a ticket](https://console.byteplus.com/workorder/create?step=2&SubProductID=P00000980) to contact BytePlus technical support if you need further information.
@@ -118,7 +191,14 @@ export declare class TVLManager {
118
191
  * @order 18
119
192
  */
120
193
  setProperty(key: NSString, value: id): void;
121
-
194
+ /** {zh}
195
+ * @detail api
196
+ * @brief 多路流信息配置。例如,您需要使用 ABR、手动切档和主备流等依赖多路流的功能,可以调用本方法进行配置。
197
+ * @notes
198
+ * 需要在调用 play{@link #VeLivePlayer#play} 开始播放之前,调用本方法设置多路流信息。
199
+ * @order 7
200
+ * @param streamData 多路流信息配置。详情请参见 [VeLivePlayerStreamData](188121#VeLivePlayerStreamData) 。
201
+ */
122
202
  /** {en}
123
203
  * @detail api
124
204
  * @brief Sets multiple live streams. Call this method if you need to enable features requiring multiple live streams, such as adaptive bitrate (ABR), manual resolution switching, and primary and backup streams.
@@ -128,7 +208,13 @@ export declare class TVLManager {
128
208
  * @order 7
129
209
  */
130
210
  setPlayStreamData(streamData: VeLivePlayerStreamData): void;
131
-
211
+ /** {zh}
212
+ * @detail api
213
+ * @brief 开始/恢复播放。
214
+ * @notes
215
+ * 调用本方法,在播放器完成拉流准备和首帧渲染播放后,都会触发 [onPlayerStatusUpdate:status:](188119#VeLivePlayerObserver-onplayerstatusupdate-status) 播放器状态回调。
216
+ * @order 10
217
+ */
132
218
  /** {en}
133
219
  * @detail api
134
220
  * @brief Starts or resumes playback.
@@ -137,7 +223,12 @@ export declare class TVLManager {
137
223
  * @order 10
138
224
  */
139
225
  play(): Promise<void>;
140
-
226
+ /** {zh}
227
+ * @detail api
228
+ * @brief 暂停播放。
229
+ * @notes 调用本方法暂停播放后,会触发 [onPlayerStatusUpdate:status:](188119#VeLivePlayerObserver-onplayerstatusupdate-status) 播放器状态回调。
230
+ * @order 11
231
+ */
141
232
  /** {en}
142
233
  * @detail api
143
234
  * @brief Pauses playback.
@@ -146,7 +237,12 @@ export declare class TVLManager {
146
237
  * @order 11
147
238
  */
148
239
  pause(): Promise<void>;
149
-
240
+ /** {zh}
241
+ * @detail api
242
+ * @brief 停止播放,不销毁播放器。
243
+ * @notes 调用本方法停止播放后,会触发 [onPlayerStatusUpdate:status:](188119#VeLivePlayerObserver-onplayerstatusupdate-status) 播放器状态回调。
244
+ * @order 12
245
+ */
150
246
  /** {en}
151
247
  * @detail api
152
248
  * @brief Stops playback. This method does not destroy the player.
@@ -155,14 +251,23 @@ export declare class TVLManager {
155
251
  * @order 12
156
252
  */
157
253
  stop(): Promise<void>;
158
-
254
+ /** {zh}
255
+ * @detail api
256
+ * @brief 停止播放,并销毁播放器。
257
+ * @order 13
258
+ */
159
259
  /** {en}
160
260
  * @detail api
161
261
  * @brief Stops playback and destroys the player.
162
262
  * @order 13
163
263
  */
164
264
  destroy(): void;
165
-
265
+ /** {zh}
266
+ * @brief 检查播放器当前是否支持指定的分辨率档位。
267
+ * @param resolution 分辨率档位,详情请参见 [VeLivePlayerResolution](188121#VeLivePlayerResolution)。
268
+ * @return - 0:支持;
269
+ * - 其他:不支持。其他返回值详情请参见 [VeLivePlayerSupportResolutionSwitchError](188121#VeLivePlayerSupportResolutionSwitchError)。
270
+ */
166
271
  /** {en}
167
272
  * @brief Check whether the player currently supports the specified resolution level.
168
273
  * @param resolution Resolution levels. For details, please refer to [VeLivePlayerResolution](docs-player-sdk-for-ios-type-definition#VeLivePlayerResolution).
@@ -170,7 +275,18 @@ export declare class TVLManager {
170
275
  * - Others: Not supported. For details of other return values, please refer to [VeLivePlayerSupportResolutionSwitchError](docs-player-sdk-for-ios-type-definition#VeLivePlayerSupportResolutionSwitchError).
171
276
  */
172
277
  isSupportResolutionSwitch(resolution: VeLivePlayerResolution): int;
173
-
278
+ /** {zh}
279
+ * @detail api
280
+ * @brief 切换播放的清晰度档位。
281
+ * @notes
282
+ * - 需要在调用 [setPlayStreamData:](#TVLManager(VeLivePlayer)-setplaystreamdata) 设置多档位后,调用本方法切换播放器的清晰度档位。
283
+ * - 调用本方法成功切换档位后,会触发清晰度档位变化 [onResolutionSwitch:resolution:error:reason:](188119#VeLivePlayerObserver-onresolutionswitch-resolution-error-reason) 回调。
284
+ * @order 14
285
+ * @param resolution 设置清晰度的目标档位,详情请参见 [VeLivePlayerResolution](188121#VeLivePlayerResolution) 。
286
+ * @return
287
+ * - YES:成功;
288
+ * - NO:失败。
289
+ */
174
290
  /** {en}
175
291
  * @detail api
176
292
  * @brief Changes the video resolution.
@@ -184,7 +300,14 @@ export declare class TVLManager {
184
300
  * - NO: Failure.
185
301
  */
186
302
  switchResolution(resolution: VeLivePlayerResolution): void;
187
-
303
+ /** {zh}
304
+ * @detail api
305
+ * @brief 设置是否静音播放。
306
+ * @param mute 是否开启静音播放,默认值为 NO。<br>
307
+ * - YES:开启;
308
+ * - NO:关闭。
309
+ * @order 15
310
+ */
188
311
  /** {en}
189
312
  * @detail api
190
313
  * @brief Sets whether to mute playback.
@@ -194,7 +317,14 @@ export declare class TVLManager {
194
317
  * @order 15
195
318
  */
196
319
  setMute(mute: BOOL): void;
197
-
320
+ /** {zh}
321
+ * @detail api
322
+ * @brief 获取是否处于静音状态。
323
+ * @return 是否处于静音状态。<br>
324
+ * - YES:静音;
325
+ * - NO:未静音。
326
+ * @order 16
327
+ */
198
328
  /** {en}
199
329
  * @detail api
200
330
  * @brief Checks whether playback is muted.
@@ -204,7 +334,16 @@ export declare class TVLManager {
204
334
  * @order 16
205
335
  */
206
336
  isMute(): BOOL;
207
-
337
+ /** {zh}
338
+ * @detail api
339
+ * @brief 设置视频顺时针旋转角度。
340
+ * @notes
341
+ * - 支持在播放前和播放中动态修改视频旋转角度。
342
+ * - 每次调用本方法,播放器都将基于图像的原始角度进行旋转。
343
+ * - 当同时使用旋转和镜像功能,播放器会先进行镜像,再进行旋转。
344
+ * @order 23
345
+ * @param rotation 视频旋转角度,默认关闭旋转,详情请参见 [VeLivePlayerRotation](188121#VeLivePlayerRotation) 。
346
+ */
208
347
  /** {en}
209
348
  * @detail api
210
349
  * @brief Sets the clockwise rotation angle of the video.
@@ -216,7 +355,16 @@ export declare class TVLManager {
216
355
  * @order 23
217
356
  */
218
357
  setRenderRotation(rotation: VeLivePlayerRotation): Promise<void>;
219
-
358
+ /** {zh}
359
+ * @detail api
360
+ * @brief 设置视频镜像。
361
+ * @notes
362
+ * - 支持在播放前和播放中动态修改视频镜像方式。
363
+ * - 每次调用本方法,播放器都将基于原始图像进行镜像。
364
+ * - 当同时使用旋转和镜像功能,播放器会先进行镜像,再进行旋转。
365
+ * @order 24
366
+ * @param mirror 视频镜像,默认关闭镜像,详情请参见 [VeLivePlayerMirror](188121#VeLivePlayerMirror) 。
367
+ */
220
368
  /** {en}
221
369
  * @detail api
222
370
  * @brief Configures mirroring settings.
@@ -228,7 +376,17 @@ export declare class TVLManager {
228
376
  * @order 24
229
377
  */
230
378
  setRenderMirror(mirror: VeLivePlayerMirror): Promise<void>;
231
-
379
+ /** {zh}
380
+ * @detail api
381
+ * @brief 视频截图。
382
+ * @notes
383
+ * - 本方法仅在视频状态为播放时生效。
384
+ * - 调用本方法截图成功后,会触发 [onSnapshotComplete:image:](188119#VeLivePlayerObserver-onsnapshotcomplete-image) 回调,回调消息中包含截图的 UIImage 对象。
385
+ * @order 19
386
+ * @return
387
+ * - 0:当前状态支持截图;
388
+ * - VeLivePlayerErrorRefused{@link #VeLivePlayerErrorCode#VeLivePlayerErrorRefused}:当前状态不支持截图。
389
+ */
232
390
  /** {en}
233
391
  * @detail api
234
392
  * @brief Takes a screenshot of the video.
@@ -241,7 +399,20 @@ export declare class TVLManager {
241
399
  * - VeLivePlayerErrorRefused{@link #VeLivePlayerErrorCode#VeLivePlayerErrorRefused}: Screenshot capturing is not allowed.
242
400
  */
243
401
  snapshot(): int;
244
-
402
+ /** {zh}
403
+ * @detail api
404
+ * @brief 设置视频帧回调。
405
+ * @notes
406
+ * - 您可以在使用外部渲染的场景下调用本方法,订阅视频帧的解码数据。
407
+ * - 调用本方法后,会触发 onRenderVideoFrame:videoFrame:回调,回调消息中包含每个视频帧的详细数据。
408
+ * - 如果您使用外部渲染,需要保证音视频同步。
409
+ * @order 20
410
+ * @param enable 是否开启视频帧回调,默认值为 NO。 <br>
411
+ * - YES:开启;
412
+ * - NO:关闭。
413
+ * @param pixelFormat 回调的视频帧像素格式,详情请参见 [VeLivePlayerPixelFormat](188121#VeLivePlayerPixelFormat) 。
414
+ * @param bufferType 回调的视频数据封装格式。详情请参见 [VeLivePlayerVideoBufferType](188121#VeLivePlayerVideoBufferType) 。
415
+ */
245
416
  /** {en}
246
417
  * @detail api
247
418
  * @brief Sets the video frame observer.
@@ -257,7 +428,21 @@ export declare class TVLManager {
257
428
  * @param bufferType The encapsulation format of the video data in the callback. See VeLivePlayerVideoBufferType{@link #VeLivePlayerVideoBufferType} for details.
258
429
  */
259
430
  enableVideoFrameObserver(enable: BOOL, pixelFormat: VeLivePlayerPixelFormat, bufferType: VeLivePlayerVideoBufferType): void;
260
-
431
+ /** {zh}
432
+ * @detail api
433
+ * @brief 设置音频帧回调。
434
+ * @notes
435
+ * - 您可以在使用外部渲染的场景下调用本方法,订阅音频帧的解码数据。
436
+ * - 调用本方法后,会触发 [onRenderAudioFrame:audioFrame:](188119#VeLivePlayerObserver-onrenderaudioframe-audioframe) 回调,回调消息中包含每个音频帧的详细数据。
437
+ * - 如果您使用外部渲染,需要保证音视频同步。
438
+ * @order 21
439
+ * @param enable 是否开启音频帧回调,默认值为 NO。 <br>
440
+ * - YES:开启;
441
+ * - NO:关闭。
442
+ * @param enableRendering 是否开启播放器渲染。默认值为 NO。<br>
443
+ * - YES:开启;
444
+ * - NO:关闭。
445
+ */
261
446
  /** {en}
262
447
  * @detail api
263
448
  * @brief Sets the audio frame observer.
@@ -274,7 +459,18 @@ export declare class TVLManager {
274
459
  * - NO: Disable.
275
460
  */
276
461
  enableAudioFrameObserver(enable: BOOL, enableRendering: BOOL): void;
277
-
462
+ /** {zh}
463
+ * @detail api
464
+ * @brief 设置是否开启超分。
465
+ * @notes
466
+ * - 在收到首帧回调后,调用该方法开启超分。
467
+ * - 支持在播放中调用该接口,开启或关闭超分。
468
+ * - 如果机型、分辨率和帧率不符合限制,将无法开启超分,并触发 [onStreamFailedOpenSuperResolution:error:](188119#VeLivePlayerObserver-onstreamfailedopensuperresolution-error) 回调。
469
+ * @order 22
470
+ * @param enable 是否开启,默认值为 NO。<br>
471
+ * - YES:开启;
472
+ * - NO:关闭。
473
+ */
278
474
  /** {en}
279
475
  * @detail api
280
476
  * @brief Enables or disables super resolution.