@byteplus/react-native-live-pull 1.5.1-rc.3 → 1.5.2-rc.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ios/VeLivePullView.m +12 -21
- package/lib/commonjs/index.js +2 -2
- package/lib/module/index.js +2 -2
- package/lib/typescript/codegen/android/api.d.ts +27 -257
- package/lib/typescript/codegen/android/callback.d.ts +19 -162
- package/lib/typescript/codegen/android/errorcode.d.ts +28 -115
- package/lib/typescript/codegen/android/keytype.d.ts +113 -482
- package/lib/typescript/codegen/ios/api.d.ts +29 -225
- package/lib/typescript/codegen/ios/callback.d.ts +18 -134
- package/lib/typescript/codegen/ios/errorcode.d.ts +26 -102
- package/lib/typescript/codegen/ios/keytype.d.ts +113 -424
- package/lib/typescript/codegen/pack/api.d.ts +33 -291
- package/lib/typescript/codegen/pack/callback.d.ts +20 -167
- package/lib/typescript/codegen/pack/errorcode.d.ts +30 -126
- package/lib/typescript/codegen/pack/keytype.d.ts +130 -582
- package/lib/typescript/core/keytype.d.ts +4 -16
- package/package.json +1 -1
- package/android/bin/build/generated/res/pngs/debug/drawable-anydpi-v24/new_window.xml +0 -16
- package/android/bin/build/generated/res/pngs/debug/drawable-hdpi/new_window.png +0 -0
- package/android/bin/build/generated/res/pngs/debug/drawable-ldpi/new_window.png +0 -0
- package/android/bin/build/generated/res/pngs/debug/drawable-mdpi/new_window.png +0 -0
- package/android/bin/build/generated/res/pngs/debug/drawable-xhdpi/new_window.png +0 -0
- package/android/bin/build/generated/res/pngs/debug/drawable-xxhdpi/new_window.png +0 -0
- package/android/bin/build/generated/res/pngs/debug/drawable-xxxhdpi/new_window.png +0 -0
- package/android/bin/build/generated/source/buildConfig/debug/com/volcengine/velive/rn/pull/BuildConfig.class +0 -0
- package/android/bin/build/intermediates/aapt_friendly_merged_manifests/debug/aapt/AndroidManifest.xml +0 -25
- package/android/bin/build/intermediates/aapt_friendly_merged_manifests/debug/aapt/output-metadata.json +0 -18
- package/android/bin/build/intermediates/aar_metadata/debug/aar-metadata.properties +0 -5
- package/android/bin/build/intermediates/annotation_processor_list/debug/annotationProcessors.json +0 -1
- package/android/bin/build/intermediates/compile_library_classes_jar/debug/classes.jar +0 -0
- package/android/bin/build/intermediates/compile_r_class_jar/debug/R.jar +0 -0
- package/android/bin/build/intermediates/compile_symbol_list/debug/R.txt +0 -6
- package/android/bin/build/intermediates/compiled_local_resources/debug/out/drawable-anydpi-v24_new_window.xml.flat +0 -0
- package/android/bin/build/intermediates/compiled_local_resources/debug/out/drawable-hdpi-v4_new_window.png.flat +0 -0
- package/android/bin/build/intermediates/compiled_local_resources/debug/out/drawable-ldpi-v4_new_window.png.flat +0 -0
- package/android/bin/build/intermediates/compiled_local_resources/debug/out/drawable-mdpi-v4_new_window.png.flat +0 -0
- package/android/bin/build/intermediates/compiled_local_resources/debug/out/drawable-xhdpi-v4_new_window.png.flat +0 -0
- package/android/bin/build/intermediates/compiled_local_resources/debug/out/drawable-xxhdpi-v4_new_window.png.flat +0 -0
- package/android/bin/build/intermediates/compiled_local_resources/debug/out/drawable-xxxhdpi-v4_new_window.png.flat +0 -0
- package/android/bin/build/intermediates/compiled_local_resources/debug/out/drawable_button_close.xml.flat +0 -0
- package/android/bin/build/intermediates/compiled_local_resources/debug/out/layout_floating_window_layout.xml.flat +0 -0
- package/android/bin/build/intermediates/incremental/debug/packageDebugResources/compile-file-map.properties +0 -10
- package/android/bin/build/intermediates/incremental/debug/packageDebugResources/merger.xml +0 -2
- package/android/bin/build/intermediates/incremental/mergeDebugJniLibFolders/merger.xml +0 -2
- package/android/bin/build/intermediates/incremental/mergeDebugShaders/merger.xml +0 -2
- package/android/bin/build/intermediates/incremental/packageDebugAssets/merger.xml +0 -2
- package/android/bin/build/intermediates/local_only_symbol_list/debug/R-def.txt +0 -8
- package/android/bin/build/intermediates/manifest_merge_blame_file/debug/manifest-merger-blame-debug-report.txt +0 -44
- package/android/bin/build/intermediates/merged_manifest/debug/AndroidManifest.xml +0 -25
- package/android/bin/build/intermediates/navigation_json/debug/navigation.json +0 -1
- package/android/bin/build/intermediates/packaged_res/debug/drawable/button_close.xml +0 -9
- package/android/bin/build/intermediates/packaged_res/debug/drawable-anydpi-v24/new_window.xml +0 -16
- package/android/bin/build/intermediates/packaged_res/debug/drawable-hdpi-v4/new_window.png +0 -0
- package/android/bin/build/intermediates/packaged_res/debug/drawable-ldpi-v4/new_window.png +0 -0
- package/android/bin/build/intermediates/packaged_res/debug/drawable-mdpi-v4/new_window.png +0 -0
- package/android/bin/build/intermediates/packaged_res/debug/drawable-xhdpi-v4/new_window.png +0 -0
- package/android/bin/build/intermediates/packaged_res/debug/drawable-xxhdpi-v4/new_window.png +0 -0
- package/android/bin/build/intermediates/packaged_res/debug/drawable-xxxhdpi-v4/new_window.png +0 -0
- package/android/bin/build/intermediates/packaged_res/debug/layout/floating_window_layout.xml +0 -29
- package/android/bin/build/intermediates/runtime_library_classes_jar/debug/classes.jar +0 -0
- package/android/bin/build/intermediates/symbol_list_with_package_name/debug/package-aware-r.txt +0 -7
- package/android/bin/build/outputs/logs/manifest-merger-debug-report.txt +0 -54
- package/android/bin/build/tmp/compileDebugJavaWithJavac/previous-compilation-data.bin +0 -0
- package/lib/typescript/core/logger.d.ts +0 -1
- package/lib/typescript/platforms/android/AppLogWrapper.d.ts +0 -8
- package/lib/typescript/platforms/ios/RangersAppLog.d.ts +0 -4
|
@@ -4,19 +4,9 @@ import { VeLivePlayerResolution, VeLivePlayerFillMode, VeLivePlayerPixelFormat,
|
|
|
4
4
|
import { VeLivePlayerObserver } from './callback';
|
|
5
5
|
import { Map, type String, List } from './types';
|
|
6
6
|
import { ApplicationContext } from './external';
|
|
7
|
-
|
|
8
|
-
* @detail api
|
|
9
|
-
* @brief 直播播放器。
|
|
10
|
-
*/
|
|
7
|
+
|
|
11
8
|
export declare class VeLivePlayer {
|
|
12
|
-
|
|
13
|
-
* @detail api
|
|
14
|
-
* @brief 获取播放器 SDK 的版本号。
|
|
15
|
-
* @return <br>
|
|
16
|
-
* 播放器 SDK 版本号。
|
|
17
|
-
* @order 4
|
|
18
|
-
*
|
|
19
|
-
*/
|
|
9
|
+
|
|
20
10
|
/** {en}
|
|
21
11
|
* @detail api
|
|
22
12
|
* @brief Gets the version number of the Player SDK.
|
|
@@ -26,13 +16,7 @@ export declare class VeLivePlayer {
|
|
|
26
16
|
*
|
|
27
17
|
*/
|
|
28
18
|
static getVersion(): string;
|
|
29
|
-
|
|
30
|
-
* @detail api
|
|
31
|
-
* @brief 设置打印的日志级别。
|
|
32
|
-
* @order 5
|
|
33
|
-
* @param logLevel 日志级别,详情请参见 [VeLivePlayerLogLevel](188115#VeLivePlayerLogLevel) 。
|
|
34
|
-
*
|
|
35
|
-
*/
|
|
19
|
+
|
|
36
20
|
/** {en}
|
|
37
21
|
* @detail api
|
|
38
22
|
* @brief Sets the level of the output log.
|
|
@@ -44,11 +28,7 @@ export declare class VeLivePlayer {
|
|
|
44
28
|
constructor(context: ApplicationContext);
|
|
45
29
|
constructor();
|
|
46
30
|
protected _instance: any;
|
|
47
|
-
|
|
48
|
-
* @platform ios
|
|
49
|
-
* @detail keytype
|
|
50
|
-
* @brief 播放器的回调事件监听器。
|
|
51
|
-
*/
|
|
31
|
+
|
|
52
32
|
/** {en}
|
|
53
33
|
* @platform ios
|
|
54
34
|
* @detail keytype
|
|
@@ -56,11 +36,7 @@ export declare class VeLivePlayer {
|
|
|
56
36
|
*/
|
|
57
37
|
get observer(): $p_i.id<$p_i.VeLivePlayerObserver>;
|
|
58
38
|
set observer(value: $p_i.id<$p_i.VeLivePlayerObserver>);
|
|
59
|
-
|
|
60
|
-
* @platform ios
|
|
61
|
-
* @detail keytype
|
|
62
|
-
* @brief 获取播放器内部用于渲染视频画面的视图 view,调用本方法将 playerView 添加到应用的视图层级中,实现视频内容显示。
|
|
63
|
-
*/
|
|
39
|
+
|
|
64
40
|
/** {en}
|
|
65
41
|
* @platform ios
|
|
66
42
|
* @detail keytype
|
|
@@ -68,11 +44,7 @@ export declare class VeLivePlayer {
|
|
|
68
44
|
*/
|
|
69
45
|
get playerView(): $p_i.UIView;
|
|
70
46
|
set playerView(value: $p_i.UIView);
|
|
71
|
-
|
|
72
|
-
* @platform ios
|
|
73
|
-
* @detail keytype
|
|
74
|
-
* @brief 设置或获取播放器播放音量,默认值为 1.0。取值范围为 0.0~1.0。
|
|
75
|
-
*/
|
|
47
|
+
|
|
76
48
|
/** {en}
|
|
77
49
|
* @platform ios
|
|
78
50
|
* @detail keytype
|
|
@@ -82,13 +54,7 @@ export declare class VeLivePlayer {
|
|
|
82
54
|
set volume(value: $p_i.float);
|
|
83
55
|
protected __init(...args: any[]): void;
|
|
84
56
|
protected __new_instance(...args: any[]): any;
|
|
85
|
-
|
|
86
|
-
* @detail api
|
|
87
|
-
* @brief 设置播放器音量。
|
|
88
|
-
* @order 8
|
|
89
|
-
* @param volume 音量大小,默认值为 1.0。取值范围为 0.0~1.0。
|
|
90
|
-
*
|
|
91
|
-
*/
|
|
57
|
+
|
|
92
58
|
/** {en}
|
|
93
59
|
* @detail api
|
|
94
60
|
* @brief Sets the player volume.
|
|
@@ -97,18 +63,7 @@ export declare class VeLivePlayer {
|
|
|
97
63
|
*
|
|
98
64
|
*/
|
|
99
65
|
setPlayerVolume(volume: number): void;
|
|
100
|
-
|
|
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
|
-
*/
|
|
66
|
+
|
|
112
67
|
/** {en}
|
|
113
68
|
* @detail api
|
|
114
69
|
* @brief Changes the video resolution.
|
|
@@ -122,15 +77,7 @@ export declare class VeLivePlayer {
|
|
|
122
77
|
*
|
|
123
78
|
*/
|
|
124
79
|
switchResolution(resolution: VeLivePlayerResolution): void;
|
|
125
|
-
|
|
126
|
-
* @detail api
|
|
127
|
-
* @brief 初始化播放器,用于设置是否开启 SEI 消息、是否开启硬件解码和是否开启本地 DNS 预解析等配置信息。
|
|
128
|
-
* @notes
|
|
129
|
-
* 需要在调用 [play](#VeLivePlayer-play) 开始播放之前,调用本方法进行播放器的初始化。
|
|
130
|
-
* @order 1
|
|
131
|
-
* @param config 播放器配置信息,详情请参见 VeLivePlayerConfiguration{@link #VeLivePlayerConfiguration}。
|
|
132
|
-
*
|
|
133
|
-
*/
|
|
80
|
+
|
|
134
81
|
/** {en}
|
|
135
82
|
* @detail api
|
|
136
83
|
* @brief Initializes the player and configures whether to turn on SEI messaging, hardware decoding, local DNS prefetch, and other configurations.
|
|
@@ -140,14 +87,7 @@ export declare class VeLivePlayer {
|
|
|
140
87
|
*
|
|
141
88
|
*/
|
|
142
89
|
setConfig(config: VeLivePlayerConfiguration): void;
|
|
143
|
-
|
|
144
|
-
* @detail api
|
|
145
|
-
* @brief 设置播放器回调,用于监听播放器 VeLivePlayer 的播放错误、播放状态、音视频首帧渲染状态和清晰度档位信息等回调事件。
|
|
146
|
-
* @notes <br>需要在调用 [play](#VeLivePlayer-play) 开始播放之前,调用本方法设置回调。
|
|
147
|
-
* @order 2
|
|
148
|
-
* @param observer 播放器的事件回调对象。详情请参见 VeLivePlayerObserver{@link #VeLivePlayerObserver}。
|
|
149
|
-
*
|
|
150
|
-
*/
|
|
90
|
+
|
|
151
91
|
/** {en}
|
|
152
92
|
* @detail api
|
|
153
93
|
* @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.
|
|
@@ -158,16 +98,7 @@ export declare class VeLivePlayer {
|
|
|
158
98
|
*
|
|
159
99
|
*/
|
|
160
100
|
setObserver(observer: VeLivePlayerObserver): void;
|
|
161
|
-
|
|
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
|
-
*/
|
|
101
|
+
|
|
171
102
|
/** {en}
|
|
172
103
|
* @detail api
|
|
173
104
|
* @brief Sets the fill mode of the player screen.
|
|
@@ -179,16 +110,7 @@ export declare class VeLivePlayer {
|
|
|
179
110
|
*
|
|
180
111
|
*/
|
|
181
112
|
setRenderFillMode(fillMode: VeLivePlayerFillMode): Promise<void>;
|
|
182
|
-
|
|
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
|
-
*/
|
|
113
|
+
|
|
192
114
|
/** {en}
|
|
193
115
|
* @platform android
|
|
194
116
|
* @detail api
|
|
@@ -200,16 +122,7 @@ export declare class VeLivePlayer {
|
|
|
200
122
|
*
|
|
201
123
|
*/
|
|
202
124
|
android_setSurfaceHolder(surfaceHolder: $p_a.SurfaceHolder): void;
|
|
203
|
-
|
|
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
|
-
*/
|
|
125
|
+
|
|
213
126
|
/** {en}
|
|
214
127
|
* @platform android
|
|
215
128
|
* @detail api
|
|
@@ -221,15 +134,7 @@ export declare class VeLivePlayer {
|
|
|
221
134
|
*
|
|
222
135
|
*/
|
|
223
136
|
android_setSurface(surface: $p_a.Surface): void;
|
|
224
|
-
|
|
225
|
-
* @detail api
|
|
226
|
-
* @brief 设置单个直播播放地址。
|
|
227
|
-
* @notes <br>
|
|
228
|
-
* 需要在调用 play{@link #play} 开始播放之前,调用本方法设置单个直播播放地址。
|
|
229
|
-
* @order 8
|
|
230
|
-
* @param url 直播播放地址。
|
|
231
|
-
*
|
|
232
|
-
*/
|
|
137
|
+
|
|
233
138
|
/** {en}
|
|
234
139
|
* @detail api
|
|
235
140
|
* @brief Sets a pull stream address.
|
|
@@ -239,15 +144,7 @@ export declare class VeLivePlayer {
|
|
|
239
144
|
*
|
|
240
145
|
*/
|
|
241
146
|
setPlayUrl(url: string): void;
|
|
242
|
-
|
|
243
|
-
* @detail api
|
|
244
|
-
* @brief 多路流信息配置。例如,您需要使用 ABR、手动切档和主备流等依赖多路流的功能,可以调用本方法进行配置。
|
|
245
|
-
* @notes <br>
|
|
246
|
-
* 需要在调用 play{@link #play} 开始播放之前,调用本方法设置多路流信息。
|
|
247
|
-
* @order 8
|
|
248
|
-
* @param streamData 多路流信息配置,详情请参见 [VeLivePlayerStreamData](188115#VeLivePlayerStreamData) 。
|
|
249
|
-
*
|
|
250
|
-
*/
|
|
147
|
+
|
|
251
148
|
/** {en}
|
|
252
149
|
* @detail api
|
|
253
150
|
* @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.
|
|
@@ -257,14 +154,7 @@ export declare class VeLivePlayer {
|
|
|
257
154
|
*
|
|
258
155
|
*/
|
|
259
156
|
setPlayStreamData(streamData: VeLivePlayerStreamData): void;
|
|
260
|
-
|
|
261
|
-
* @detail api
|
|
262
|
-
* @brief 开始/恢复播放。
|
|
263
|
-
* @notes <br>
|
|
264
|
-
* 调用本方法,在播放器完成拉流准备和首帧渲染播放后,都会触发 onPlayerStatusUpdate{@link #VeLivePlayerObserver#onPlayerStatusUpdate} 播放器状态回调。
|
|
265
|
-
* @order 8
|
|
266
|
-
*
|
|
267
|
-
*/
|
|
157
|
+
|
|
268
158
|
/** {en}
|
|
269
159
|
* @detail api
|
|
270
160
|
* @brief Starts or resumes playback.
|
|
@@ -274,14 +164,7 @@ export declare class VeLivePlayer {
|
|
|
274
164
|
*
|
|
275
165
|
*/
|
|
276
166
|
play(): Promise<void>;
|
|
277
|
-
|
|
278
|
-
* @detail api
|
|
279
|
-
* @brief 暂停播放。
|
|
280
|
-
* @notes <br>
|
|
281
|
-
* 调用本方法暂停播放后,会触发 onPlayerStatusUpdate{@link #VeLivePlayerObserver#onPlayerStatusUpdate} 播放器状态回调。
|
|
282
|
-
* @order 8
|
|
283
|
-
*
|
|
284
|
-
*/
|
|
167
|
+
|
|
285
168
|
/** {en}
|
|
286
169
|
* @detail api
|
|
287
170
|
* @brief Pauses playback.
|
|
@@ -291,14 +174,7 @@ export declare class VeLivePlayer {
|
|
|
291
174
|
*
|
|
292
175
|
*/
|
|
293
176
|
pause(): Promise<void>;
|
|
294
|
-
|
|
295
|
-
* @detail api
|
|
296
|
-
* @brief 停止播放,不销毁播放器。
|
|
297
|
-
* @notes <br>
|
|
298
|
-
* 调用本方法停止播放后,会触发 onPlayerStatusUpdate{@link #VeLivePlayerObserver#onPlayerStatusUpdate} 播放器状态回调。
|
|
299
|
-
* @order 8
|
|
300
|
-
*
|
|
301
|
-
*/
|
|
177
|
+
|
|
302
178
|
/** {en}
|
|
303
179
|
* @detail api
|
|
304
180
|
* @brief Stops playback. This method does not destroy the player.
|
|
@@ -308,12 +184,7 @@ export declare class VeLivePlayer {
|
|
|
308
184
|
*
|
|
309
185
|
*/
|
|
310
186
|
stop(): Promise<void>;
|
|
311
|
-
|
|
312
|
-
* @detail api
|
|
313
|
-
* @brief 停止播放,并销毁播放器。
|
|
314
|
-
* @order 8
|
|
315
|
-
*
|
|
316
|
-
*/
|
|
187
|
+
|
|
317
188
|
/** {en}
|
|
318
189
|
* @detail api
|
|
319
190
|
* @brief Stops playback and destroys the player.
|
|
@@ -321,15 +192,7 @@ export declare class VeLivePlayer {
|
|
|
321
192
|
*
|
|
322
193
|
*/
|
|
323
194
|
destroy(): void;
|
|
324
|
-
|
|
325
|
-
* @detail api
|
|
326
|
-
* @brief 检查播放器是否正在播放。
|
|
327
|
-
* @return 是否正在播放。<br>
|
|
328
|
-
* - true:正在播放;
|
|
329
|
-
* - false:未播放。
|
|
330
|
-
* @order 8
|
|
331
|
-
*
|
|
332
|
-
*/
|
|
195
|
+
|
|
333
196
|
/** {en}
|
|
334
197
|
* @detail api
|
|
335
198
|
* @brief Checks whether the player is playing.
|
|
@@ -340,15 +203,7 @@ export declare class VeLivePlayer {
|
|
|
340
203
|
*
|
|
341
204
|
*/
|
|
342
205
|
isPlaying(): boolean;
|
|
343
|
-
|
|
344
|
-
* @detail api
|
|
345
|
-
* @brief 设置是否静音播放。
|
|
346
|
-
* @param mute 是否开启静音播放,默认值为 false。<br>
|
|
347
|
-
* - true:开启;
|
|
348
|
-
* - false:关闭。
|
|
349
|
-
* @order 9
|
|
350
|
-
*
|
|
351
|
-
*/
|
|
206
|
+
|
|
352
207
|
/** {en}
|
|
353
208
|
* @detail api
|
|
354
209
|
* @brief Sets whether to mute playback.
|
|
@@ -359,15 +214,7 @@ export declare class VeLivePlayer {
|
|
|
359
214
|
*
|
|
360
215
|
*/
|
|
361
216
|
setMute(mute: boolean): void;
|
|
362
|
-
|
|
363
|
-
* @detail api
|
|
364
|
-
* @brief 获取是否处于静音状态。
|
|
365
|
-
* @return 是否处于静音状态。<br>
|
|
366
|
-
* - true:静音;
|
|
367
|
-
* - false:未静音。
|
|
368
|
-
* @order 10
|
|
369
|
-
*
|
|
370
|
-
*/
|
|
217
|
+
|
|
371
218
|
/** {en}
|
|
372
219
|
* @detail api
|
|
373
220
|
* @brief Checks whether playback is muted.
|
|
@@ -378,15 +225,7 @@ export declare class VeLivePlayer {
|
|
|
378
225
|
*
|
|
379
226
|
*/
|
|
380
227
|
isMute(): boolean;
|
|
381
|
-
|
|
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
|
-
*/
|
|
228
|
+
|
|
390
229
|
/** {en}
|
|
391
230
|
* @detail api
|
|
392
231
|
* @brief Sets the mapping of domain names to server IP addresses.
|
|
@@ -397,14 +236,7 @@ export declare class VeLivePlayer {
|
|
|
397
236
|
*
|
|
398
237
|
*/
|
|
399
238
|
setUrlHostIP(hostIpMap: Map<String, List<String>>): void;
|
|
400
|
-
|
|
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
|
-
*/
|
|
239
|
+
|
|
408
240
|
/** {en}
|
|
409
241
|
* @detail api
|
|
410
242
|
* @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.
|
|
@@ -414,18 +246,7 @@ export declare class VeLivePlayer {
|
|
|
414
246
|
*
|
|
415
247
|
*/
|
|
416
248
|
setProperty(key: string, value: Object): void;
|
|
417
|
-
|
|
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
|
-
*/
|
|
249
|
+
|
|
429
250
|
/** {en}
|
|
430
251
|
* @detail api
|
|
431
252
|
* @brief Takes a screenshot of the video.
|
|
@@ -439,21 +260,7 @@ export declare class VeLivePlayer {
|
|
|
439
260
|
*
|
|
440
261
|
*/
|
|
441
262
|
snapshot(): number;
|
|
442
|
-
|
|
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
|
-
*/
|
|
263
|
+
|
|
457
264
|
/** {en}
|
|
458
265
|
* @detail api
|
|
459
266
|
* @brief Sets the video frame observer.
|
|
@@ -470,23 +277,7 @@ export declare class VeLivePlayer {
|
|
|
470
277
|
*
|
|
471
278
|
*/
|
|
472
279
|
enableVideoFrameObserver(enable: boolean, pixelFormat: VeLivePlayerPixelFormat, bufferType: VeLivePlayerVideoBufferType): void;
|
|
473
|
-
|
|
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
|
-
*/
|
|
280
|
+
|
|
490
281
|
/** {en}
|
|
491
282
|
* @detail api
|
|
492
283
|
* @brief Sets the audio frame observer.
|
|
@@ -506,17 +297,7 @@ export declare class VeLivePlayer {
|
|
|
506
297
|
*
|
|
507
298
|
*/
|
|
508
299
|
enableAudioFrameObserver(enable: boolean, enableRendering: boolean, bufferType: VeLivePlayerAudioBufferType): void;
|
|
509
|
-
|
|
510
|
-
* @detail api
|
|
511
|
-
* @brief 设置视频顺时针旋转角度。
|
|
512
|
-
* @notes <br>
|
|
513
|
-
* - 支持在播放前和播放中动态修改视频旋转角度。
|
|
514
|
-
* - 每次调用本方法,播放器都将基于图像的原始角度进行旋转。
|
|
515
|
-
* - 当同时使用旋转和镜像功能,播放器会先进行镜像,再进行旋转。
|
|
516
|
-
* @order 16
|
|
517
|
-
* @param rotation 视频旋转角度,默认关闭旋转,详情请参见 [VeLivePlayerRotation](188115#VeLivePlayerRotation) 。
|
|
518
|
-
*
|
|
519
|
-
*/
|
|
300
|
+
|
|
520
301
|
/** {en}
|
|
521
302
|
* @detail api
|
|
522
303
|
* @brief Sets the clockwise rotation angle of the video.
|
|
@@ -529,17 +310,7 @@ export declare class VeLivePlayer {
|
|
|
529
310
|
*
|
|
530
311
|
*/
|
|
531
312
|
setRenderRotation(rotation: VeLivePlayerRotation): Promise<void>;
|
|
532
|
-
|
|
533
|
-
* @detail api
|
|
534
|
-
* @brief 设置视频镜像。
|
|
535
|
-
* @notes <br>
|
|
536
|
-
* - 支持在播放前和播放中动态修改视频镜像方式。
|
|
537
|
-
* - 每次调用本方法,播放器都将基于原始图像进行镜像。
|
|
538
|
-
* - 当同时使用旋转和镜像功能,播放器会先进行镜像,再进行旋转。
|
|
539
|
-
* @order 17
|
|
540
|
-
* @param mirror 视频镜像,默认关闭镜像,详情请参见 [VeLivePlayerMirror](188115#VeLivePlayerMirror) 。
|
|
541
|
-
*
|
|
542
|
-
*/
|
|
313
|
+
|
|
543
314
|
/** {en}
|
|
544
315
|
* @detail api
|
|
545
316
|
* @brief Configures mirroring settings.
|
|
@@ -552,19 +323,7 @@ export declare class VeLivePlayer {
|
|
|
552
323
|
*
|
|
553
324
|
*/
|
|
554
325
|
setRenderMirror(mirror: VeLivePlayerMirror): Promise<void>;
|
|
555
|
-
|
|
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
|
-
*/
|
|
326
|
+
|
|
568
327
|
/** {en}
|
|
569
328
|
* @detail api
|
|
570
329
|
* @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.
|
|
@@ -579,14 +338,7 @@ export declare class VeLivePlayer {
|
|
|
579
338
|
*
|
|
580
339
|
*/
|
|
581
340
|
setEnableSuperResolution(enable: boolean): void;
|
|
582
|
-
|
|
583
|
-
* @platform android
|
|
584
|
-
* @brief 设置是否开启视频锐化。
|
|
585
|
-
* @param enable 是否开启视频锐化,默认值为 `false`。
|
|
586
|
-
* - true:开启;
|
|
587
|
-
* - false:关闭。
|
|
588
|
-
*
|
|
589
|
-
*/
|
|
341
|
+
|
|
590
342
|
/** {en}
|
|
591
343
|
* @platform android
|
|
592
344
|
* @brief Set whether to enable video sharpening.
|
|
@@ -596,24 +348,14 @@ export declare class VeLivePlayer {
|
|
|
596
348
|
*
|
|
597
349
|
*/
|
|
598
350
|
android_setEnableSharpen(enable: boolean): void;
|
|
599
|
-
|
|
600
|
-
* @platform ios
|
|
601
|
-
* @brief 初始化特定类型的播放器。
|
|
602
|
-
* @param type 播放器类型,详情请参见 [VeLivePlayerType](188121#VeLivePlayerType)。
|
|
603
|
-
*/
|
|
351
|
+
|
|
604
352
|
/** {en}
|
|
605
353
|
* @platform ios
|
|
606
354
|
* @brief Initializes the specified type of player.
|
|
607
355
|
* @param type The player type. Refer to [VeLivePlayerType](docs-player-sdk-for-ios-type-definition#VeLivePlayerType) for details.
|
|
608
356
|
*/
|
|
609
357
|
ios_initWithType(type: $p_i.VeLivePlayerType): this;
|
|
610
|
-
|
|
611
|
-
* @platform ios
|
|
612
|
-
* @brief 检查播放器当前是否支持指定的分辨率档位。
|
|
613
|
-
* @param resolution 分辨率档位,详情请参见 [VeLivePlayerResolution](188121#VeLivePlayerResolution)。
|
|
614
|
-
* @return - 0:支持;
|
|
615
|
-
* - 其他:不支持。其他返回值详情请参见 [VeLivePlayerSupportResolutionSwitchError](188121#VeLivePlayerSupportResolutionSwitchError)。
|
|
616
|
-
*/
|
|
358
|
+
|
|
617
359
|
/** {en}
|
|
618
360
|
* @platform ios
|
|
619
361
|
* @brief Check whether the player currently supports the specified resolution level.
|