@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
@@ -4,9 +4,19 @@ import { VeLivePlayerResolution, VeLivePlayerFillMode, VeLivePlayerPixelFormat,
4
4
  import { VeLivePlayerObserver } from './callback';
5
5
  import { Map, type String, List } from './types';
6
6
  import { ApplicationContext } from './external';
7
-
7
+ /** {zh}
8
+ * @detail api
9
+ * @brief 直播播放器。
10
+ */
8
11
  export declare class VeLivePlayer {
9
-
12
+ /** {zh}
13
+ * @detail api
14
+ * @brief 获取播放器 SDK 的版本号。
15
+ * @return <br>
16
+ * 播放器 SDK 版本号。
17
+ * @order 4
18
+ *
19
+ */
10
20
  /** {en}
11
21
  * @detail api
12
22
  * @brief Gets the version number of the Player SDK.
@@ -16,7 +26,13 @@ export declare class VeLivePlayer {
16
26
  *
17
27
  */
18
28
  static getVersion(): string;
19
-
29
+ /** {zh}
30
+ * @detail api
31
+ * @brief 设置打印的日志级别。
32
+ * @order 5
33
+ * @param logLevel 日志级别,详情请参见 [VeLivePlayerLogLevel](188115#VeLivePlayerLogLevel) 。
34
+ *
35
+ */
20
36
  /** {en}
21
37
  * @detail api
22
38
  * @brief Sets the level of the output log.
@@ -28,7 +44,11 @@ export declare class VeLivePlayer {
28
44
  constructor(context: ApplicationContext);
29
45
  constructor();
30
46
  protected _instance: any;
31
-
47
+ /** {zh}
48
+ * @platform ios
49
+ * @detail keytype
50
+ * @brief 播放器的回调事件监听器。
51
+ */
32
52
  /** {en}
33
53
  * @platform ios
34
54
  * @detail keytype
@@ -36,7 +56,11 @@ export declare class VeLivePlayer {
36
56
  */
37
57
  get observer(): $p_i.id<$p_i.VeLivePlayerObserver>;
38
58
  set observer(value: $p_i.id<$p_i.VeLivePlayerObserver>);
39
-
59
+ /** {zh}
60
+ * @platform ios
61
+ * @detail keytype
62
+ * @brief 获取播放器内部用于渲染视频画面的视图 view,调用本方法将 playerView 添加到应用的视图层级中,实现视频内容显示。
63
+ */
40
64
  /** {en}
41
65
  * @platform ios
42
66
  * @detail keytype
@@ -44,7 +68,11 @@ export declare class VeLivePlayer {
44
68
  */
45
69
  get playerView(): $p_i.UIView;
46
70
  set playerView(value: $p_i.UIView);
47
-
71
+ /** {zh}
72
+ * @platform ios
73
+ * @detail keytype
74
+ * @brief 设置或获取播放器播放音量,默认值为 1.0。取值范围为 0.0~1.0。
75
+ */
48
76
  /** {en}
49
77
  * @platform ios
50
78
  * @detail keytype
@@ -54,7 +82,13 @@ export declare class VeLivePlayer {
54
82
  set volume(value: $p_i.float);
55
83
  protected __init(...args: any[]): void;
56
84
  protected __new_instance(...args: any[]): any;
57
-
85
+ /** {zh}
86
+ * @detail api
87
+ * @brief 设置播放器音量。
88
+ * @order 8
89
+ * @param volume 音量大小,默认值为 1.0。取值范围为 0.0~1.0。
90
+ *
91
+ */
58
92
  /** {en}
59
93
  * @detail api
60
94
  * @brief Sets the player volume.
@@ -63,7 +97,18 @@ export declare class VeLivePlayer {
63
97
  *
64
98
  */
65
99
  setPlayerVolume(volume: number): void;
66
-
100
+ /** {zh}
101
+ * @detail api
102
+ * @brief 切换播放的清晰度档位。
103
+ * @notes - 需要在调用 [setPlayStreamData](#VeLivePlayer-setplaystreamdata) 设置多档位后,调用本方法切换播放器的清晰度档位。
104
+ * - 调用本方法成功切换档位后,会触发清晰度档位变化 [onResolutionSwitch](188112#VeLivePlayerObserver-onresolutionswitch) 回调。
105
+ * @order 8
106
+ * @param resolution 设置清晰度的目标档位,详情请参见 [VeLivePlayerResolution](188115#VeLivePlayerResolution) 。
107
+ * @return <br>
108
+ * - true:成功;
109
+ * - false:失败。
110
+ *
111
+ */
67
112
  /** {en}
68
113
  * @detail api
69
114
  * @brief Changes the video resolution.
@@ -77,7 +122,15 @@ export declare class VeLivePlayer {
77
122
  *
78
123
  */
79
124
  switchResolution(resolution: VeLivePlayerResolution): void;
80
-
125
+ /** {zh}
126
+ * @detail api
127
+ * @brief 初始化播放器,用于设置是否开启 SEI 消息、是否开启硬件解码和是否开启本地 DNS 预解析等配置信息。
128
+ * @notes
129
+ * 需要在调用 [play](#VeLivePlayer-play) 开始播放之前,调用本方法进行播放器的初始化。
130
+ * @order 1
131
+ * @param config 播放器配置信息,详情请参见 VeLivePlayerConfiguration{@link #VeLivePlayerConfiguration}。
132
+ *
133
+ */
81
134
  /** {en}
82
135
  * @detail api
83
136
  * @brief Initializes the player and configures whether to turn on SEI messaging, hardware decoding, local DNS prefetch, and other configurations.
@@ -87,7 +140,14 @@ export declare class VeLivePlayer {
87
140
  *
88
141
  */
89
142
  setConfig(config: VeLivePlayerConfiguration): void;
90
-
143
+ /** {zh}
144
+ * @detail api
145
+ * @brief 设置播放器回调,用于监听播放器 VeLivePlayer 的播放错误、播放状态、音视频首帧渲染状态和清晰度档位信息等回调事件。
146
+ * @notes <br>需要在调用 [play](#VeLivePlayer-play) 开始播放之前,调用本方法设置回调。
147
+ * @order 2
148
+ * @param observer 播放器的事件回调对象。详情请参见 VeLivePlayerObserver{@link #VeLivePlayerObserver}。
149
+ *
150
+ */
91
151
  /** {en}
92
152
  * @detail api
93
153
  * @brief Sets the player observer to listen to the live player's events, such as playback errors or status updates, rendering of the first audio and video frame, and resolution switching.
@@ -98,7 +158,16 @@ export declare class VeLivePlayer {
98
158
  *
99
159
  */
100
160
  setObserver(observer: VeLivePlayerObserver): void;
101
-
161
+ /** {zh}
162
+ * @detail api
163
+ * @brief 设置播放器画面的填充模式。
164
+ * @notes <br>
165
+ * - 如果用于起播设置,需要在调用 [play](#VeLivePlayer-play) 开始播放之前,调用本方法设置视频的填充模式。
166
+ * - 如果用于调节填充模式,可以在播放过程中调用本方法动态调节视频的填充模式。
167
+ * @order 3
168
+ * @param fillMode 设置 SurfaceView 的填充模式,默认值为 `VeLivePlayerFillModeAspectFill`,详情请参见 [VeLivePlayerFillMode](188115#VeLivePlayerFillMode)。
169
+ *
170
+ */
102
171
  /** {en}
103
172
  * @detail api
104
173
  * @brief Sets the fill mode of the player screen.
@@ -110,7 +179,16 @@ export declare class VeLivePlayer {
110
179
  *
111
180
  */
112
181
  setRenderFillMode(fillMode: VeLivePlayerFillMode): Promise<void>;
113
-
182
+ /** {zh}
183
+ * @platform android
184
+ * @detail api
185
+ * @brief 使用 SurfaceView 播放视频时,通过设置 SurfaceHolder 对象完成视频图像的渲染和播放。
186
+ * @notes
187
+ * 如果同时调用 setSurfaceHolder 和 [setSurface](#VeLivePlayer-setsurface) 设置视频播放画面的 Surface,播放器会优先使用 surfaceHolder 的配置。
188
+ * @order 6
189
+ * @param surfaceHolder SurfaceHolder 对象。
190
+ *
191
+ */
114
192
  /** {en}
115
193
  * @platform android
116
194
  * @detail api
@@ -122,7 +200,16 @@ export declare class VeLivePlayer {
122
200
  *
123
201
  */
124
202
  android_setSurfaceHolder(surfaceHolder: $p_a.SurfaceHolder): void;
125
-
203
+ /** {zh}
204
+ * @platform android
205
+ * @detail api
206
+ * @brief 使用 SurfaceView 或 TextureView 播放视频时,通过设置 Surface 对象完成视频图像的渲染和播放。
207
+ * @notes
208
+ * 如果同时调用 [setSurfaceHolder](#VeLivePlayer-setsurfaceholder) 和 setSurface 设置视频播放画面的 Surface,播放器会优先使用 surfaceHolder 的配置。
209
+ * @order 7
210
+ * @param surface surface 对象的类型。
211
+ *
212
+ */
126
213
  /** {en}
127
214
  * @platform android
128
215
  * @detail api
@@ -134,7 +221,15 @@ export declare class VeLivePlayer {
134
221
  *
135
222
  */
136
223
  android_setSurface(surface: $p_a.Surface): void;
137
-
224
+ /** {zh}
225
+ * @detail api
226
+ * @brief 设置单个直播播放地址。
227
+ * @notes <br>
228
+ * 需要在调用 play{@link #play} 开始播放之前,调用本方法设置单个直播播放地址。
229
+ * @order 8
230
+ * @param url 直播播放地址。
231
+ *
232
+ */
138
233
  /** {en}
139
234
  * @detail api
140
235
  * @brief Sets a pull stream address.
@@ -144,7 +239,15 @@ export declare class VeLivePlayer {
144
239
  *
145
240
  */
146
241
  setPlayUrl(url: string): void;
147
-
242
+ /** {zh}
243
+ * @detail api
244
+ * @brief 多路流信息配置。例如,您需要使用 ABR、手动切档和主备流等依赖多路流的功能,可以调用本方法进行配置。
245
+ * @notes <br>
246
+ * 需要在调用 play{@link #play} 开始播放之前,调用本方法设置多路流信息。
247
+ * @order 8
248
+ * @param streamData 多路流信息配置,详情请参见 [VeLivePlayerStreamData](188115#VeLivePlayerStreamData) 。
249
+ *
250
+ */
148
251
  /** {en}
149
252
  * @detail api
150
253
  * @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.
@@ -154,7 +257,14 @@ export declare class VeLivePlayer {
154
257
  *
155
258
  */
156
259
  setPlayStreamData(streamData: VeLivePlayerStreamData): void;
157
-
260
+ /** {zh}
261
+ * @detail api
262
+ * @brief 开始/恢复播放。
263
+ * @notes <br>
264
+ * 调用本方法,在播放器完成拉流准备和首帧渲染播放后,都会触发 onPlayerStatusUpdate{@link #VeLivePlayerObserver#onPlayerStatusUpdate} 播放器状态回调。
265
+ * @order 8
266
+ *
267
+ */
158
268
  /** {en}
159
269
  * @detail api
160
270
  * @brief Starts or resumes playback.
@@ -164,7 +274,14 @@ export declare class VeLivePlayer {
164
274
  *
165
275
  */
166
276
  play(): Promise<void>;
167
-
277
+ /** {zh}
278
+ * @detail api
279
+ * @brief 暂停播放。
280
+ * @notes <br>
281
+ * 调用本方法暂停播放后,会触发 onPlayerStatusUpdate{@link #VeLivePlayerObserver#onPlayerStatusUpdate} 播放器状态回调。
282
+ * @order 8
283
+ *
284
+ */
168
285
  /** {en}
169
286
  * @detail api
170
287
  * @brief Pauses playback.
@@ -174,7 +291,14 @@ export declare class VeLivePlayer {
174
291
  *
175
292
  */
176
293
  pause(): Promise<void>;
177
-
294
+ /** {zh}
295
+ * @detail api
296
+ * @brief 停止播放,不销毁播放器。
297
+ * @notes <br>
298
+ * 调用本方法停止播放后,会触发 onPlayerStatusUpdate{@link #VeLivePlayerObserver#onPlayerStatusUpdate} 播放器状态回调。
299
+ * @order 8
300
+ *
301
+ */
178
302
  /** {en}
179
303
  * @detail api
180
304
  * @brief Stops playback. This method does not destroy the player.
@@ -184,7 +308,12 @@ export declare class VeLivePlayer {
184
308
  *
185
309
  */
186
310
  stop(): Promise<void>;
187
-
311
+ /** {zh}
312
+ * @detail api
313
+ * @brief 停止播放,并销毁播放器。
314
+ * @order 8
315
+ *
316
+ */
188
317
  /** {en}
189
318
  * @detail api
190
319
  * @brief Stops playback and destroys the player.
@@ -192,7 +321,15 @@ export declare class VeLivePlayer {
192
321
  *
193
322
  */
194
323
  destroy(): void;
195
-
324
+ /** {zh}
325
+ * @detail api
326
+ * @brief 检查播放器是否正在播放。
327
+ * @return 是否正在播放。<br>
328
+ * - true:正在播放;
329
+ * - false:未播放。
330
+ * @order 8
331
+ *
332
+ */
196
333
  /** {en}
197
334
  * @detail api
198
335
  * @brief Checks whether the player is playing.
@@ -203,7 +340,15 @@ export declare class VeLivePlayer {
203
340
  *
204
341
  */
205
342
  isPlaying(): boolean;
206
-
343
+ /** {zh}
344
+ * @detail api
345
+ * @brief 设置是否静音播放。
346
+ * @param mute 是否开启静音播放,默认值为 false。<br>
347
+ * - true:开启;
348
+ * - false:关闭。
349
+ * @order 9
350
+ *
351
+ */
207
352
  /** {en}
208
353
  * @detail api
209
354
  * @brief Sets whether to mute playback.
@@ -214,7 +359,15 @@ export declare class VeLivePlayer {
214
359
  *
215
360
  */
216
361
  setMute(mute: boolean): void;
217
-
362
+ /** {zh}
363
+ * @detail api
364
+ * @brief 获取是否处于静音状态。
365
+ * @return 是否处于静音状态。<br>
366
+ * - true:静音;
367
+ * - false:未静音。
368
+ * @order 10
369
+ *
370
+ */
218
371
  /** {en}
219
372
  * @detail api
220
373
  * @brief Checks whether playback is muted.
@@ -225,7 +378,15 @@ export declare class VeLivePlayer {
225
378
  *
226
379
  */
227
380
  isMute(): boolean;
228
-
381
+ /** {zh}
382
+ * @detail api
383
+ * @brief 设置域名和服务器的 IP 地址映射关系。
384
+ * @order 11
385
+ * @param hostIpMap 域名和服务器 IP 地址的映射关系列表。其中 `Map` 的 Key 是域名,Value 是 `List` 类型,表示该域名对应的服务器 IP 地址列表。
386
+ * @notes - 使用 setUrlHostIP 对域名和 IP 地址进行映射时,需在初始化配置中关闭 DNS 预解析功能,即 [enableLiveDNS](188115#VeLivePlayerConfiguration-enablelivedns) 设置为 false。
387
+ * - 需要在调用 [play](#VeLivePlayer-play) 开始播放前,调用本方法设置域名和 IP 的映射。
388
+ *
389
+ */
229
390
  /** {en}
230
391
  * @detail api
231
392
  * @brief Sets the mapping of domain names to server IP addresses.
@@ -236,7 +397,14 @@ export declare class VeLivePlayer {
236
397
  *
237
398
  */
238
399
  setUrlHostIP(hostIpMap: Map<String, List<String>>): void;
239
-
400
+ /** {zh}
401
+ * @detail api
402
+ * @brief 设置播放器高级配置。高级配置包括离屏渲染设置、缓冲区最大时长、ABR 码率自适应算法类型等,如需了解详细信息,请联系火山引擎[技术支持](https://console.volcengine.com/workorder/create?step=2&SubProductID=P00000076)。
403
+ * @order 12
404
+ * @param key 高级配置的参数名。
405
+ * @param value 参数对应的参数值。
406
+ *
407
+ */
240
408
  /** {en}
241
409
  * @detail api
242
410
  * @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.
@@ -246,7 +414,18 @@ export declare class VeLivePlayer {
246
414
  *
247
415
  */
248
416
  setProperty(key: string, value: Object): void;
249
-
417
+ /** {zh}
418
+ * @detail api
419
+ * @brief 视频截图。
420
+ * @notes <br>
421
+ * - 本方法仅在视频状态为播放时生效。
422
+ * - 调用本方法截图成功后,会触发 onSnapshotComplete{@link #VeLivePlayerObserver#onSnapshotComplete} 回调,回调消息中包含截图的 Bitmap 对象。
423
+ * @return <br>
424
+ * - 0:当前状态支持截图;
425
+ * - [VeLivePlayerErrorRefused](188113#VeLivePlayerErrorCode-veliveplayererrorrefused) :当前状态不支持截图。
426
+ * @order 13
427
+ *
428
+ */
250
429
  /** {en}
251
430
  * @detail api
252
431
  * @brief Takes a screenshot of the video.
@@ -260,7 +439,21 @@ export declare class VeLivePlayer {
260
439
  *
261
440
  */
262
441
  snapshot(): number;
263
-
442
+ /** {zh}
443
+ * @detail api
444
+ * @brief 设置视频帧回调。
445
+ * @notes <br>
446
+ * - 您可以在使用外部渲染的场景下调用本方法,订阅视频帧的解码数据。
447
+ * - 调用本方法后,会触发 onRenderVideoFrame{@link #VeLivePlayerObserver#onRenderVideoFrame} 回调,回调消息中包含每个视频帧的详细数据。
448
+ * - 如果您使用外部渲染,需要保证音视频同步。
449
+ * @order 14
450
+ * @param enable 是否开启视频帧回调,默认值为 false。 <br>
451
+ * - true:开启;
452
+ * - false:关闭。
453
+ * @param pixelFormat 回调的视频帧像素格式,详情请参见 [VeLivePlayerPixelFormat](188115#VeLivePlayerPixelFormat)。
454
+ * @param bufferType 回调的视频数据封装格式,详情请参见 [VeLivePlayerVideoBufferType](188115#VeLivePlayerVideoBufferType) 。
455
+ *
456
+ */
264
457
  /** {en}
265
458
  * @detail api
266
459
  * @brief Sets the video frame observer.
@@ -277,7 +470,23 @@ export declare class VeLivePlayer {
277
470
  *
278
471
  */
279
472
  enableVideoFrameObserver(enable: boolean, pixelFormat: VeLivePlayerPixelFormat, bufferType: VeLivePlayerVideoBufferType): void;
280
-
473
+ /** {zh}
474
+ * @detail api
475
+ * @brief 设置音频帧回调。
476
+ * @param enable 是否开启音频帧回调,默认值为 false。 <br>
477
+ * - true:开启;
478
+ * - false:关闭。
479
+ * @param enableRendering 是否开启播放器渲染。默认值为 false。<br/>
480
+ * - true:开启;
481
+ * - false:关闭。
482
+ * @param bufferType 音频 buffer 类型,详情请参见 [VeLivePlayerAudioBufferType](188115#VeLivePlayerAudioBufferType)。
483
+ * @notes <br>
484
+ * - 您可以在使用外部渲染的场景下调用本方法,订阅音频帧的解码数据。
485
+ * - 调用本方法后,会触发 onRenderAudioFrame{@link #VeLivePlayerObserver#onRenderAudioFrame} 回调,回调消息中包含每个音频帧的详细数据。
486
+ * - 如果您使用外部渲染,需要保证音视频同步。
487
+ * @order 15
488
+ *
489
+ */
281
490
  /** {en}
282
491
  * @detail api
283
492
  * @brief Sets the audio frame observer.
@@ -297,7 +506,17 @@ export declare class VeLivePlayer {
297
506
  *
298
507
  */
299
508
  enableAudioFrameObserver(enable: boolean, enableRendering: boolean, bufferType: VeLivePlayerAudioBufferType): void;
300
-
509
+ /** {zh}
510
+ * @detail api
511
+ * @brief 设置视频顺时针旋转角度。
512
+ * @notes <br>
513
+ * - 支持在播放前和播放中动态修改视频旋转角度。
514
+ * - 每次调用本方法,播放器都将基于图像的原始角度进行旋转。
515
+ * - 当同时使用旋转和镜像功能,播放器会先进行镜像,再进行旋转。
516
+ * @order 16
517
+ * @param rotation 视频旋转角度,默认关闭旋转,详情请参见 [VeLivePlayerRotation](188115#VeLivePlayerRotation) 。
518
+ *
519
+ */
301
520
  /** {en}
302
521
  * @detail api
303
522
  * @brief Sets the clockwise rotation angle of the video.
@@ -310,7 +529,17 @@ export declare class VeLivePlayer {
310
529
  *
311
530
  */
312
531
  setRenderRotation(rotation: VeLivePlayerRotation): Promise<void>;
313
-
532
+ /** {zh}
533
+ * @detail api
534
+ * @brief 设置视频镜像。
535
+ * @notes <br>
536
+ * - 支持在播放前和播放中动态修改视频镜像方式。
537
+ * - 每次调用本方法,播放器都将基于原始图像进行镜像。
538
+ * - 当同时使用旋转和镜像功能,播放器会先进行镜像,再进行旋转。
539
+ * @order 17
540
+ * @param mirror 视频镜像,默认关闭镜像,详情请参见 [VeLivePlayerMirror](188115#VeLivePlayerMirror) 。
541
+ *
542
+ */
314
543
  /** {en}
315
544
  * @detail api
316
545
  * @brief Configures mirroring settings.
@@ -323,7 +552,19 @@ export declare class VeLivePlayer {
323
552
  *
324
553
  */
325
554
  setRenderMirror(mirror: VeLivePlayerMirror): Promise<void>;
326
-
555
+ /** {zh}
556
+ * @detail api
557
+ * @brief 设置是否开启超分。您需要联系火山引擎[技术支持](https://console.volcengine.com/workorder/create?step=2&SubProductID=P00000076)开通超分功能后才可使用该功能。
558
+ * @notes <br>
559
+ * - 在首帧回调后,调用该接口开启超分。
560
+ * - 支持播放中调用该接口动态开启和关闭超分。
561
+ * - 如果机型、分辨率和帧率不符合限制,将无法开启超分,并触发 onStreamFailedOpenSuperResolution{@link #VeLivePlayerObserver#onStreamFailedOpenSuperResolution} 回调。
562
+ * @order 18
563
+ * @param enable 是否开启超分。默认值为 false。<br>
564
+ * - true:开启;
565
+ * - false:关闭。
566
+ *
567
+ */
327
568
  /** {en}
328
569
  * @detail api
329
570
  * @brief Enables or disables super resolution. You must first contact BytePlus [technical support](https://console.byteplus.com/workorder/create?step=2&SubProductID=P00000980) to activate the feature before using it.
@@ -338,7 +579,14 @@ export declare class VeLivePlayer {
338
579
  *
339
580
  */
340
581
  setEnableSuperResolution(enable: boolean): void;
341
-
582
+ /** {zh}
583
+ * @platform android
584
+ * @brief 设置是否开启视频锐化。
585
+ * @param enable 是否开启视频锐化,默认值为 `false`。
586
+ * - true:开启;
587
+ * - false:关闭。
588
+ *
589
+ */
342
590
  /** {en}
343
591
  * @platform android
344
592
  * @brief Set whether to enable video sharpening.
@@ -348,14 +596,24 @@ export declare class VeLivePlayer {
348
596
  *
349
597
  */
350
598
  android_setEnableSharpen(enable: boolean): void;
351
-
599
+ /** {zh}
600
+ * @platform ios
601
+ * @brief 初始化特定类型的播放器。
602
+ * @param type 播放器类型,详情请参见 [VeLivePlayerType](188121#VeLivePlayerType)。
603
+ */
352
604
  /** {en}
353
605
  * @platform ios
354
606
  * @brief Initializes the specified type of player.
355
607
  * @param type The player type. Refer to [VeLivePlayerType](docs-player-sdk-for-ios-type-definition#VeLivePlayerType) for details.
356
608
  */
357
609
  ios_initWithType(type: $p_i.VeLivePlayerType): this;
358
-
610
+ /** {zh}
611
+ * @platform ios
612
+ * @brief 检查播放器当前是否支持指定的分辨率档位。
613
+ * @param resolution 分辨率档位,详情请参见 [VeLivePlayerResolution](188121#VeLivePlayerResolution)。
614
+ * @return - 0:支持;
615
+ * - 其他:不支持。其他返回值详情请参见 [VeLivePlayerSupportResolutionSwitchError](188121#VeLivePlayerSupportResolutionSwitchError)。
616
+ */
359
617
  /** {en}
360
618
  * @platform ios
361
619
  * @brief Check whether the player currently supports the specified resolution level.