@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.
Files changed (66) hide show
  1. package/ios/VeLivePullView.m +12 -21
  2. package/lib/commonjs/index.js +2 -2
  3. package/lib/module/index.js +2 -2
  4. package/lib/typescript/codegen/android/api.d.ts +27 -257
  5. package/lib/typescript/codegen/android/callback.d.ts +19 -162
  6. package/lib/typescript/codegen/android/errorcode.d.ts +28 -115
  7. package/lib/typescript/codegen/android/keytype.d.ts +113 -482
  8. package/lib/typescript/codegen/ios/api.d.ts +29 -225
  9. package/lib/typescript/codegen/ios/callback.d.ts +18 -134
  10. package/lib/typescript/codegen/ios/errorcode.d.ts +26 -102
  11. package/lib/typescript/codegen/ios/keytype.d.ts +113 -424
  12. package/lib/typescript/codegen/pack/api.d.ts +33 -291
  13. package/lib/typescript/codegen/pack/callback.d.ts +20 -167
  14. package/lib/typescript/codegen/pack/errorcode.d.ts +30 -126
  15. package/lib/typescript/codegen/pack/keytype.d.ts +130 -582
  16. package/lib/typescript/core/keytype.d.ts +4 -16
  17. package/package.json +1 -1
  18. package/android/bin/build/generated/res/pngs/debug/drawable-anydpi-v24/new_window.xml +0 -16
  19. package/android/bin/build/generated/res/pngs/debug/drawable-hdpi/new_window.png +0 -0
  20. package/android/bin/build/generated/res/pngs/debug/drawable-ldpi/new_window.png +0 -0
  21. package/android/bin/build/generated/res/pngs/debug/drawable-mdpi/new_window.png +0 -0
  22. package/android/bin/build/generated/res/pngs/debug/drawable-xhdpi/new_window.png +0 -0
  23. package/android/bin/build/generated/res/pngs/debug/drawable-xxhdpi/new_window.png +0 -0
  24. package/android/bin/build/generated/res/pngs/debug/drawable-xxxhdpi/new_window.png +0 -0
  25. package/android/bin/build/generated/source/buildConfig/debug/com/volcengine/velive/rn/pull/BuildConfig.class +0 -0
  26. package/android/bin/build/intermediates/aapt_friendly_merged_manifests/debug/aapt/AndroidManifest.xml +0 -25
  27. package/android/bin/build/intermediates/aapt_friendly_merged_manifests/debug/aapt/output-metadata.json +0 -18
  28. package/android/bin/build/intermediates/aar_metadata/debug/aar-metadata.properties +0 -5
  29. package/android/bin/build/intermediates/annotation_processor_list/debug/annotationProcessors.json +0 -1
  30. package/android/bin/build/intermediates/compile_library_classes_jar/debug/classes.jar +0 -0
  31. package/android/bin/build/intermediates/compile_r_class_jar/debug/R.jar +0 -0
  32. package/android/bin/build/intermediates/compile_symbol_list/debug/R.txt +0 -6
  33. package/android/bin/build/intermediates/compiled_local_resources/debug/out/drawable-anydpi-v24_new_window.xml.flat +0 -0
  34. package/android/bin/build/intermediates/compiled_local_resources/debug/out/drawable-hdpi-v4_new_window.png.flat +0 -0
  35. package/android/bin/build/intermediates/compiled_local_resources/debug/out/drawable-ldpi-v4_new_window.png.flat +0 -0
  36. package/android/bin/build/intermediates/compiled_local_resources/debug/out/drawable-mdpi-v4_new_window.png.flat +0 -0
  37. package/android/bin/build/intermediates/compiled_local_resources/debug/out/drawable-xhdpi-v4_new_window.png.flat +0 -0
  38. package/android/bin/build/intermediates/compiled_local_resources/debug/out/drawable-xxhdpi-v4_new_window.png.flat +0 -0
  39. package/android/bin/build/intermediates/compiled_local_resources/debug/out/drawable-xxxhdpi-v4_new_window.png.flat +0 -0
  40. package/android/bin/build/intermediates/compiled_local_resources/debug/out/drawable_button_close.xml.flat +0 -0
  41. package/android/bin/build/intermediates/compiled_local_resources/debug/out/layout_floating_window_layout.xml.flat +0 -0
  42. package/android/bin/build/intermediates/incremental/debug/packageDebugResources/compile-file-map.properties +0 -10
  43. package/android/bin/build/intermediates/incremental/debug/packageDebugResources/merger.xml +0 -2
  44. package/android/bin/build/intermediates/incremental/mergeDebugJniLibFolders/merger.xml +0 -2
  45. package/android/bin/build/intermediates/incremental/mergeDebugShaders/merger.xml +0 -2
  46. package/android/bin/build/intermediates/incremental/packageDebugAssets/merger.xml +0 -2
  47. package/android/bin/build/intermediates/local_only_symbol_list/debug/R-def.txt +0 -8
  48. package/android/bin/build/intermediates/manifest_merge_blame_file/debug/manifest-merger-blame-debug-report.txt +0 -44
  49. package/android/bin/build/intermediates/merged_manifest/debug/AndroidManifest.xml +0 -25
  50. package/android/bin/build/intermediates/navigation_json/debug/navigation.json +0 -1
  51. package/android/bin/build/intermediates/packaged_res/debug/drawable/button_close.xml +0 -9
  52. package/android/bin/build/intermediates/packaged_res/debug/drawable-anydpi-v24/new_window.xml +0 -16
  53. package/android/bin/build/intermediates/packaged_res/debug/drawable-hdpi-v4/new_window.png +0 -0
  54. package/android/bin/build/intermediates/packaged_res/debug/drawable-ldpi-v4/new_window.png +0 -0
  55. package/android/bin/build/intermediates/packaged_res/debug/drawable-mdpi-v4/new_window.png +0 -0
  56. package/android/bin/build/intermediates/packaged_res/debug/drawable-xhdpi-v4/new_window.png +0 -0
  57. package/android/bin/build/intermediates/packaged_res/debug/drawable-xxhdpi-v4/new_window.png +0 -0
  58. package/android/bin/build/intermediates/packaged_res/debug/drawable-xxxhdpi-v4/new_window.png +0 -0
  59. package/android/bin/build/intermediates/packaged_res/debug/layout/floating_window_layout.xml +0 -29
  60. package/android/bin/build/intermediates/runtime_library_classes_jar/debug/classes.jar +0 -0
  61. package/android/bin/build/intermediates/symbol_list_with_package_name/debug/package-aware-r.txt +0 -7
  62. package/android/bin/build/outputs/logs/manifest-merger-debug-report.txt +0 -54
  63. package/android/bin/build/tmp/compileDebugJavaWithJavac/previous-compilation-data.bin +0 -0
  64. package/lib/typescript/core/logger.d.ts +0 -1
  65. package/lib/typescript/platforms/android/AppLogWrapper.d.ts +0 -8
  66. package/lib/typescript/platforms/ios/RangersAppLog.d.ts +0 -4
@@ -44,31 +44,22 @@
44
44
  }
45
45
 
46
46
  - (void) insertSubview:(UIView *)view atIndex:(NSInteger)index {
47
- // NSLog(@"insert playview, self bounds=%f x %f", self.bounds.size.width, self.bounds.size.height);
48
- // NSLog(@"insert playview, view frame=%f x %f", view.frame.size.width, view.frame.size.height);
49
-
50
- dispatch_async(dispatch_get_main_queue(), ^{
51
- [super insertSubview:view atIndex:index];
52
- [self setSubViewLayout:view];
53
- });
47
+ [super insertSubview:view atIndex:index];
48
+ // 不需要在这里设置约束
54
49
  }
55
50
 
56
51
  - (void) addSubview:(UIView *)view {
57
- dispatch_async(dispatch_get_main_queue(), ^{
58
- [super addSubview:view];
59
- [self setSubViewLayout:view];
60
- });
52
+ [super addSubview:view];
61
53
  }
62
54
 
63
- // 设置 Auto Layout,确保 subView 始终匹配 view 尺寸
64
- - (void) setSubViewLayout:(UIView *)view {
65
- view.translatesAutoresizingMaskIntoConstraints = NO;
66
- [NSLayoutConstraint activateConstraints:@[
67
- [view.leadingAnchor constraintEqualToAnchor:self.leadingAnchor],
68
- [view.trailingAnchor constraintEqualToAnchor:self.trailingAnchor],
69
- [view.topAnchor constraintEqualToAnchor:self.topAnchor],
70
- [view.bottomAnchor constraintEqualToAnchor:self.bottomAnchor]
71
- ]];
55
+ - (void)layoutSubviews {
56
+ [super layoutSubviews];
57
+ // 遍历子视图,强制对齐 frame
58
+ for (UIView *subview in self.subviews) {
59
+ if (!CGRectEqualToRect(subview.frame, self.bounds)) {
60
+ subview.frame = self.bounds;
61
+ }
62
+ }
72
63
  }
73
64
 
74
- @end
65
+ @end
@@ -14558,7 +14558,7 @@ function initAndroidEnv(config) {
14558
14558
  .setLicenseUri(config.LicenseUri.android);
14559
14559
  androidEnv = builder.build();
14560
14560
  EnvHelper.init(androidEnv, {
14561
- hybrid_ua: "rn|pull|".concat("1.5.0"),
14561
+ hybrid_ua: "rn|pull|".concat("1.5.1"),
14562
14562
  });
14563
14563
  Env.openAppLog(config.openLog);
14564
14564
  return [2 /*return*/];
@@ -14569,7 +14569,7 @@ function initAndroidEnv(config) {
14569
14569
  function initIOSEnv(config) {
14570
14570
  return __awaiter(this, void 0, void 0, function () {
14571
14571
  return __generator(this, function (_a) {
14572
- VeLivePlayerHelper.startWithConfiguration(__assign(__assign({}, config), { LicenseUri: config.LicenseUri.ios, appLogAid: '500808' , hybrid_ua: "rn|pull|".concat("1.5.0") }));
14572
+ VeLivePlayerHelper.startWithConfiguration(__assign(__assign({}, config), { LicenseUri: config.LicenseUri.ios, appLogAid: '500808' , hybrid_ua: "rn|pull|".concat("1.5.1") }));
14573
14573
  return [2 /*return*/];
14574
14574
  });
14575
14575
  });
@@ -14556,7 +14556,7 @@ function initAndroidEnv(config) {
14556
14556
  .setLicenseUri(config.LicenseUri.android);
14557
14557
  androidEnv = builder.build();
14558
14558
  EnvHelper.init(androidEnv, {
14559
- hybrid_ua: "rn|pull|".concat("1.5.0"),
14559
+ hybrid_ua: "rn|pull|".concat("1.5.1"),
14560
14560
  });
14561
14561
  Env.openAppLog(config.openLog);
14562
14562
  return [2 /*return*/];
@@ -14567,7 +14567,7 @@ function initAndroidEnv(config) {
14567
14567
  function initIOSEnv(config) {
14568
14568
  return __awaiter(this, void 0, void 0, function () {
14569
14569
  return __generator(this, function (_a) {
14570
- VeLivePlayerHelper.startWithConfiguration(__assign(__assign({}, config), { LicenseUri: config.LicenseUri.ios, appLogAid: '500808' , hybrid_ua: "rn|pull|".concat("1.5.0") }));
14570
+ VeLivePlayerHelper.startWithConfiguration(__assign(__assign({}, config), { LicenseUri: config.LicenseUri.ios, appLogAid: '500808' , hybrid_ua: "rn|pull|".concat("1.5.1") }));
14571
14571
  return [2 /*return*/];
14572
14572
  });
14573
14573
  });
@@ -3,14 +3,7 @@ import { VeLivePlayerLogLevel, VeLivePlayerConfiguration, VeLivePlayerFillMode,
3
3
  import { VeLivePlayerObserver } from './callback';
4
4
  import { ApplicationContext } from './external';
5
5
  export declare class VeLivePlayer {
6
- /** {zh}
7
- * @detail api
8
- * @brief 获取播放器 SDK 的版本号。
9
- * @return <br>
10
- * 播放器 SDK 版本号。
11
- * @order 4
12
- *
13
- */
6
+
14
7
  /** {en}
15
8
  * @detail api
16
9
  * @brief Gets the version number of the Player SDK.
@@ -20,13 +13,7 @@ export declare class VeLivePlayer {
20
13
  *
21
14
  */
22
15
  static getVersion(): String;
23
- /** {zh}
24
- * @detail api
25
- * @brief 设置打印的日志级别。
26
- * @order 5
27
- * @param logLevel 日志级别,详情请参见 [VeLivePlayerLogLevel](188115#VeLivePlayerLogLevel) 。
28
- *
29
- */
16
+
30
17
  /** {en}
31
18
  * @detail api
32
19
  * @brief Sets the level of the output log.
@@ -36,15 +23,7 @@ export declare class VeLivePlayer {
36
23
  */
37
24
  static setLogLevel(logLevel: VeLivePlayerLogLevel): void;
38
25
  constructor(context: ApplicationContext);
39
- /** {zh}
40
- * @detail api
41
- * @brief 初始化播放器,用于设置是否开启 SEI 消息、是否开启硬件解码和是否开启本地 DNS 预解析等配置信息。
42
- * @notes
43
- * 需要在调用 [play](#VeLivePlayer-play) 开始播放之前,调用本方法进行播放器的初始化。
44
- * @order 1
45
- * @param config 播放器配置信息,详情请参见 VeLivePlayerConfiguration{@link #VeLivePlayerConfiguration}。
46
- *
47
- */
26
+
48
27
  /** {en}
49
28
  * @detail api
50
29
  * @brief Initializes the player and configures whether to turn on SEI messaging, hardware decoding, local DNS prefetch, and other configurations.
@@ -54,14 +33,7 @@ export declare class VeLivePlayer {
54
33
  *
55
34
  */
56
35
  setConfig(config: VeLivePlayerConfiguration): void;
57
- /** {zh}
58
- * @detail api
59
- * @brief 设置播放器回调,用于监听播放器 VeLivePlayer 的播放错误、播放状态、音视频首帧渲染状态和清晰度档位信息等回调事件。
60
- * @notes <br>需要在调用 [play](#VeLivePlayer-play) 开始播放之前,调用本方法设置回调。
61
- * @order 2
62
- * @param observer 播放器的事件回调对象。详情请参见 VeLivePlayerObserver{@link #VeLivePlayerObserver}。
63
- *
64
- */
36
+
65
37
  /** {en}
66
38
  * @detail api
67
39
  * @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.
@@ -72,16 +44,7 @@ export declare class VeLivePlayer {
72
44
  *
73
45
  */
74
46
  setObserver(observer: VeLivePlayerObserver): void;
75
- /** {zh}
76
- * @detail api
77
- * @brief 设置播放器画面的填充模式。
78
- * @notes <br>
79
- * - 如果用于起播设置,需要在调用 [play](#VeLivePlayer-play) 开始播放之前,调用本方法设置视频的填充模式。
80
- * - 如果用于调节填充模式,可以在播放过程中调用本方法动态调节视频的填充模式。
81
- * @order 3
82
- * @param fillMode 设置 SurfaceView 的填充模式,默认值为 `VeLivePlayerFillModeAspectFill`,详情请参见 [VeLivePlayerFillMode](188115#VeLivePlayerFillMode)。
83
- *
84
- */
47
+
85
48
  /** {en}
86
49
  * @detail api
87
50
  * @brief Sets the fill mode of the player screen.
@@ -93,15 +56,7 @@ export declare class VeLivePlayer {
93
56
  *
94
57
  */
95
58
  setRenderFillMode(fillMode: VeLivePlayerFillMode): Promise<void>;
96
- /** {zh}
97
- * @detail api
98
- * @brief 使用 SurfaceView 播放视频时,通过设置 SurfaceHolder 对象完成视频图像的渲染和播放。
99
- * @notes
100
- * 如果同时调用 setSurfaceHolder 和 [setSurface](#VeLivePlayer-setsurface) 设置视频播放画面的 Surface,播放器会优先使用 surfaceHolder 的配置。
101
- * @order 6
102
- * @param surfaceHolder SurfaceHolder 对象。
103
- *
104
- */
59
+
105
60
  /** {en}
106
61
  * @detail api
107
62
  * @brief Sets the `SurfaceHolder` object for video rendering and playback. Use this method if you use `SurfaceView` for playback.
@@ -112,15 +67,7 @@ export declare class VeLivePlayer {
112
67
  *
113
68
  */
114
69
  setSurfaceHolder(surfaceHolder: SurfaceHolder): void;
115
- /** {zh}
116
- * @detail api
117
- * @brief 使用 SurfaceView 或 TextureView 播放视频时,通过设置 Surface 对象完成视频图像的渲染和播放。
118
- * @notes
119
- * 如果同时调用 [setSurfaceHolder](#VeLivePlayer-setsurfaceholder) 和 setSurface 设置视频播放画面的 Surface,播放器会优先使用 surfaceHolder 的配置。
120
- * @order 7
121
- * @param surface surface 对象的类型。
122
- *
123
- */
70
+
124
71
  /** {en}
125
72
  * @detail api
126
73
  * @brief Sets the `Surface` object for video rendering and playback. Use this method if you use `SurfaceView` or `TextureView` for playback.
@@ -131,15 +78,7 @@ export declare class VeLivePlayer {
131
78
  *
132
79
  */
133
80
  setSurface(surface: Surface): void;
134
- /** {zh}
135
- * @detail api
136
- * @brief 设置单个直播播放地址。
137
- * @notes <br>
138
- * 需要在调用 play{@link #play} 开始播放之前,调用本方法设置单个直播播放地址。
139
- * @order 8
140
- * @param url 直播播放地址。
141
- *
142
- */
81
+
143
82
  /** {en}
144
83
  * @detail api
145
84
  * @brief Sets a pull stream address.
@@ -149,15 +88,7 @@ export declare class VeLivePlayer {
149
88
  *
150
89
  */
151
90
  setPlayUrl(url: String): void;
152
- /** {zh}
153
- * @detail api
154
- * @brief 多路流信息配置。例如,您需要使用 ABR、手动切档和主备流等依赖多路流的功能,可以调用本方法进行配置。
155
- * @notes <br>
156
- * 需要在调用 play{@link #play} 开始播放之前,调用本方法设置多路流信息。
157
- * @order 8
158
- * @param streamData 多路流信息配置,详情请参见 [VeLivePlayerStreamData](188115#VeLivePlayerStreamData) 。
159
- *
160
- */
91
+
161
92
  /** {en}
162
93
  * @detail api
163
94
  * @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.
@@ -167,14 +98,7 @@ export declare class VeLivePlayer {
167
98
  *
168
99
  */
169
100
  setPlayStreamData(streamData: VeLivePlayerStreamData): void;
170
- /** {zh}
171
- * @detail api
172
- * @brief 开始/恢复播放。
173
- * @notes <br>
174
- * 调用本方法,在播放器完成拉流准备和首帧渲染播放后,都会触发 onPlayerStatusUpdate{@link #VeLivePlayerObserver#onPlayerStatusUpdate} 播放器状态回调。
175
- * @order 8
176
- *
177
- */
101
+
178
102
  /** {en}
179
103
  * @detail api
180
104
  * @brief Starts or resumes playback.
@@ -184,14 +108,7 @@ export declare class VeLivePlayer {
184
108
  *
185
109
  */
186
110
  play(): void;
187
- /** {zh}
188
- * @detail api
189
- * @brief 暂停播放。
190
- * @notes <br>
191
- * 调用本方法暂停播放后,会触发 onPlayerStatusUpdate{@link #VeLivePlayerObserver#onPlayerStatusUpdate} 播放器状态回调。
192
- * @order 8
193
- *
194
- */
111
+
195
112
  /** {en}
196
113
  * @detail api
197
114
  * @brief Pauses playback.
@@ -201,14 +118,7 @@ export declare class VeLivePlayer {
201
118
  *
202
119
  */
203
120
  pause(): void;
204
- /** {zh}
205
- * @detail api
206
- * @brief 停止播放,不销毁播放器。
207
- * @notes <br>
208
- * 调用本方法停止播放后,会触发 onPlayerStatusUpdate{@link #VeLivePlayerObserver#onPlayerStatusUpdate} 播放器状态回调。
209
- * @order 8
210
- *
211
- */
121
+
212
122
  /** {en}
213
123
  * @detail api
214
124
  * @brief Stops playback. This method does not destroy the player.
@@ -218,12 +128,7 @@ export declare class VeLivePlayer {
218
128
  *
219
129
  */
220
130
  stop(): void;
221
- /** {zh}
222
- * @detail api
223
- * @brief 停止播放,并销毁播放器。
224
- * @order 8
225
- *
226
- */
131
+
227
132
  /** {en}
228
133
  * @detail api
229
134
  * @brief Stops playback and destroys the player.
@@ -231,18 +136,7 @@ export declare class VeLivePlayer {
231
136
  *
232
137
  */
233
138
  destroy(): void;
234
- /** {zh}
235
- * @detail api
236
- * @brief 切换播放的清晰度档位。
237
- * @notes - 需要在调用 [setPlayStreamData](#VeLivePlayer-setplaystreamdata) 设置多档位后,调用本方法切换播放器的清晰度档位。
238
- * - 调用本方法成功切换档位后,会触发清晰度档位变化 [onResolutionSwitch](188112#VeLivePlayerObserver-onresolutionswitch) 回调。
239
- * @order 8
240
- * @param resolution 设置清晰度的目标档位,详情请参见 [VeLivePlayerResolution](188115#VeLivePlayerResolution) 。
241
- * @return <br>
242
- * - true:成功;
243
- * - false:失败。
244
- *
245
- */
139
+
246
140
  /** {en}
247
141
  * @detail api
248
142
  * @brief Changes the video resolution.
@@ -256,15 +150,7 @@ export declare class VeLivePlayer {
256
150
  *
257
151
  */
258
152
  switchResolution(resolution: VeLivePlayerResolution): boolean;
259
- /** {zh}
260
- * @detail api
261
- * @brief 检查播放器是否正在播放。
262
- * @return 是否正在播放。<br>
263
- * - true:正在播放;
264
- * - false:未播放。
265
- * @order 8
266
- *
267
- */
153
+
268
154
  /** {en}
269
155
  * @detail api
270
156
  * @brief Checks whether the player is playing.
@@ -275,13 +161,7 @@ export declare class VeLivePlayer {
275
161
  *
276
162
  */
277
163
  isPlaying(): boolean;
278
- /** {zh}
279
- * @detail api
280
- * @brief 设置播放器音量。
281
- * @order 8
282
- * @param volume 音量大小,默认值为 1.0。取值范围为 0.0~1.0。
283
- *
284
- */
164
+
285
165
  /** {en}
286
166
  * @detail api
287
167
  * @brief Sets the player volume.
@@ -290,15 +170,7 @@ export declare class VeLivePlayer {
290
170
  *
291
171
  */
292
172
  setPlayerVolume(volume: float): void;
293
- /** {zh}
294
- * @detail api
295
- * @brief 设置是否静音播放。
296
- * @param mute 是否开启静音播放,默认值为 false。<br>
297
- * - true:开启;
298
- * - false:关闭。
299
- * @order 9
300
- *
301
- */
173
+
302
174
  /** {en}
303
175
  * @detail api
304
176
  * @brief Sets whether to mute playback.
@@ -309,15 +181,7 @@ export declare class VeLivePlayer {
309
181
  *
310
182
  */
311
183
  setMute(mute: boolean): void;
312
- /** {zh}
313
- * @detail api
314
- * @brief 获取是否处于静音状态。
315
- * @return 是否处于静音状态。<br>
316
- * - true:静音;
317
- * - false:未静音。
318
- * @order 10
319
- *
320
- */
184
+
321
185
  /** {en}
322
186
  * @detail api
323
187
  * @brief Checks whether playback is muted.
@@ -328,15 +192,7 @@ export declare class VeLivePlayer {
328
192
  *
329
193
  */
330
194
  isMute(): boolean;
331
- /** {zh}
332
- * @detail api
333
- * @brief 设置域名和服务器的 IP 地址映射关系。
334
- * @order 11
335
- * @param hostIpMap 域名和服务器 IP 地址的映射关系列表。其中 `Map` 的 Key 是域名,Value 是 `List` 类型,表示该域名对应的服务器 IP 地址列表。
336
- * @notes - 使用 setUrlHostIP 对域名和 IP 地址进行映射时,需在初始化配置中关闭 DNS 预解析功能,即 [enableLiveDNS](188115#VeLivePlayerConfiguration-enablelivedns) 设置为 false。
337
- * - 需要在调用 [play](#VeLivePlayer-play) 开始播放前,调用本方法设置域名和 IP 的映射。
338
- *
339
- */
195
+
340
196
  /** {en}
341
197
  * @detail api
342
198
  * @brief Sets the mapping of domain names to server IP addresses.
@@ -347,14 +203,7 @@ export declare class VeLivePlayer {
347
203
  *
348
204
  */
349
205
  setUrlHostIP(hostIpMap: Map<String, List<String>>): void;
350
- /** {zh}
351
- * @detail api
352
- * @brief 设置播放器高级配置。高级配置包括离屏渲染设置、缓冲区最大时长、ABR 码率自适应算法类型等,如需了解详细信息,请联系火山引擎[技术支持](https://console.volcengine.com/workorder/create?step=2&SubProductID=P00000076)。
353
- * @order 12
354
- * @param key 高级配置的参数名。
355
- * @param value 参数对应的参数值。
356
- *
357
- */
206
+
358
207
  /** {en}
359
208
  * @detail api
360
209
  * @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.
@@ -364,18 +213,7 @@ export declare class VeLivePlayer {
364
213
  *
365
214
  */
366
215
  setProperty(key: String, value: Object): void;
367
- /** {zh}
368
- * @detail api
369
- * @brief 视频截图。
370
- * @notes <br>
371
- * - 本方法仅在视频状态为播放时生效。
372
- * - 调用本方法截图成功后,会触发 onSnapshotComplete{@link #VeLivePlayerObserver#onSnapshotComplete} 回调,回调消息中包含截图的 Bitmap 对象。
373
- * @return <br>
374
- * - 0:当前状态支持截图;
375
- * - [VeLivePlayerErrorRefused](188113#VeLivePlayerErrorCode-veliveplayererrorrefused) :当前状态不支持截图。
376
- * @order 13
377
- *
378
- */
216
+
379
217
  /** {en}
380
218
  * @detail api
381
219
  * @brief Takes a screenshot of the video.
@@ -389,21 +227,7 @@ export declare class VeLivePlayer {
389
227
  *
390
228
  */
391
229
  snapshot(): int;
392
- /** {zh}
393
- * @detail api
394
- * @brief 设置视频帧回调。
395
- * @notes <br>
396
- * - 您可以在使用外部渲染的场景下调用本方法,订阅视频帧的解码数据。
397
- * - 调用本方法后,会触发 onRenderVideoFrame{@link #VeLivePlayerObserver#onRenderVideoFrame} 回调,回调消息中包含每个视频帧的详细数据。
398
- * - 如果您使用外部渲染,需要保证音视频同步。
399
- * @order 14
400
- * @param enable 是否开启视频帧回调,默认值为 false。 <br>
401
- * - true:开启;
402
- * - false:关闭。
403
- * @param pixelFormat 回调的视频帧像素格式,详情请参见 [VeLivePlayerPixelFormat](188115#VeLivePlayerPixelFormat)。
404
- * @param bufferType 回调的视频数据封装格式,详情请参见 [VeLivePlayerVideoBufferType](188115#VeLivePlayerVideoBufferType) 。
405
- *
406
- */
230
+
407
231
  /** {en}
408
232
  * @detail api
409
233
  * @brief Sets the video frame observer.
@@ -420,23 +244,7 @@ export declare class VeLivePlayer {
420
244
  *
421
245
  */
422
246
  enableVideoFrameObserver(enable: boolean, pixelFormat: VeLivePlayerPixelFormat, bufferType: VeLivePlayerVideoBufferType): void;
423
- /** {zh}
424
- * @detail api
425
- * @brief 设置音频帧回调。
426
- * @param enable 是否开启音频帧回调,默认值为 false。 <br>
427
- * - true:开启;
428
- * - false:关闭。
429
- * @param enableRendering 是否开启播放器渲染。默认值为 false。<br/>
430
- * - true:开启;
431
- * - false:关闭。
432
- * @param bufferType 音频 buffer 类型,详情请参见 [VeLivePlayerAudioBufferType](188115#VeLivePlayerAudioBufferType)。
433
- * @notes <br>
434
- * - 您可以在使用外部渲染的场景下调用本方法,订阅音频帧的解码数据。
435
- * - 调用本方法后,会触发 onRenderAudioFrame{@link #VeLivePlayerObserver#onRenderAudioFrame} 回调,回调消息中包含每个音频帧的详细数据。
436
- * - 如果您使用外部渲染,需要保证音视频同步。
437
- * @order 15
438
- *
439
- */
247
+
440
248
  /** {en}
441
249
  * @detail api
442
250
  * @brief Sets the audio frame observer.
@@ -456,17 +264,7 @@ export declare class VeLivePlayer {
456
264
  *
457
265
  */
458
266
  enableAudioFrameObserver(enable: boolean, enableRendering: boolean, bufferType: VeLivePlayerAudioBufferType): void;
459
- /** {zh}
460
- * @detail api
461
- * @brief 设置视频顺时针旋转角度。
462
- * @notes <br>
463
- * - 支持在播放前和播放中动态修改视频旋转角度。
464
- * - 每次调用本方法,播放器都将基于图像的原始角度进行旋转。
465
- * - 当同时使用旋转和镜像功能,播放器会先进行镜像,再进行旋转。
466
- * @order 16
467
- * @param rotation 视频旋转角度,默认关闭旋转,详情请参见 [VeLivePlayerRotation](188115#VeLivePlayerRotation) 。
468
- *
469
- */
267
+
470
268
  /** {en}
471
269
  * @detail api
472
270
  * @brief Sets the clockwise rotation angle of the video.
@@ -479,17 +277,7 @@ export declare class VeLivePlayer {
479
277
  *
480
278
  */
481
279
  setRenderRotation(rotation: VeLivePlayerRotation): Promise<void>;
482
- /** {zh}
483
- * @detail api
484
- * @brief 设置视频镜像。
485
- * @notes <br>
486
- * - 支持在播放前和播放中动态修改视频镜像方式。
487
- * - 每次调用本方法,播放器都将基于原始图像进行镜像。
488
- * - 当同时使用旋转和镜像功能,播放器会先进行镜像,再进行旋转。
489
- * @order 17
490
- * @param mirror 视频镜像,默认关闭镜像,详情请参见 [VeLivePlayerMirror](188115#VeLivePlayerMirror) 。
491
- *
492
- */
280
+
493
281
  /** {en}
494
282
  * @detail api
495
283
  * @brief Configures mirroring settings.
@@ -502,19 +290,7 @@ export declare class VeLivePlayer {
502
290
  *
503
291
  */
504
292
  setRenderMirror(mirror: VeLivePlayerMirror): Promise<void>;
505
- /** {zh}
506
- * @detail api
507
- * @brief 设置是否开启超分。您需要联系火山引擎[技术支持](https://console.volcengine.com/workorder/create?step=2&SubProductID=P00000076)开通超分功能后才可使用该功能。
508
- * @notes <br>
509
- * - 在首帧回调后,调用该接口开启超分。
510
- * - 支持播放中调用该接口动态开启和关闭超分。
511
- * - 如果机型、分辨率和帧率不符合限制,将无法开启超分,并触发 onStreamFailedOpenSuperResolution{@link #VeLivePlayerObserver#onStreamFailedOpenSuperResolution} 回调。
512
- * @order 18
513
- * @param enable 是否开启超分。默认值为 false。<br>
514
- * - true:开启;
515
- * - false:关闭。
516
- *
517
- */
293
+
518
294
  /** {en}
519
295
  * @detail api
520
296
  * @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.
@@ -529,13 +305,7 @@ export declare class VeLivePlayer {
529
305
  *
530
306
  */
531
307
  setEnableSuperResolution(enable: boolean): void;
532
- /** {zh}
533
- * @brief 设置是否开启视频锐化。
534
- * @param enable 是否开启视频锐化,默认值为 `false`。
535
- * - true:开启;
536
- * - false:关闭。
537
- *
538
- */
308
+
539
309
  /** {en}
540
310
  * @brief Set whether to enable video sharpening.
541
311
  * @param enable Set whether to enable video sharpening. The default value is `false`.