@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
|
@@ -3,12 +3,7 @@ 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
|
-
|
|
7
|
-
* @detail api
|
|
8
|
-
* @brief 设置打印日志的级别。
|
|
9
|
-
* @order 5
|
|
10
|
-
* @param logLevel 日志级别,详情请参见 [VeLivePlayerLogLevel](188121#VeLivePlayerLogLevel) 。
|
|
11
|
-
*/
|
|
6
|
+
|
|
12
7
|
/** {en}
|
|
13
8
|
* @detail api
|
|
14
9
|
* @brief Sets the level of the output log.
|
|
@@ -16,13 +11,7 @@ export declare class TVLManager {
|
|
|
16
11
|
* @order 5
|
|
17
12
|
*/
|
|
18
13
|
static setLogLevel(logLevel: VeLivePlayerLogLevel): void;
|
|
19
|
-
|
|
20
|
-
* @detail api
|
|
21
|
-
* @brief 获取播放器 SDK 的版本号。
|
|
22
|
-
* @return
|
|
23
|
-
* 播放器 SDK 版本号。
|
|
24
|
-
* @order 4
|
|
25
|
-
*/
|
|
14
|
+
|
|
26
15
|
/** {en}
|
|
27
16
|
* @detail api
|
|
28
17
|
* @brief Gets the version number of the Player SDK.
|
|
@@ -31,40 +20,25 @@ export declare class TVLManager {
|
|
|
31
20
|
* @order 4
|
|
32
21
|
*/
|
|
33
22
|
static getVersion(): NSString;
|
|
34
|
-
|
|
35
|
-
* @detail keytype
|
|
36
|
-
* @brief 播放器的回调事件监听器。
|
|
37
|
-
*/
|
|
23
|
+
|
|
38
24
|
/** {en}
|
|
39
25
|
* @detail keytype
|
|
40
26
|
* @brief The player observer.
|
|
41
27
|
*/
|
|
42
28
|
observer: id<VeLivePlayerObserver>;
|
|
43
|
-
|
|
44
|
-
* @detail keytype
|
|
45
|
-
* @brief 获取播放器内部用于渲染视频画面的视图 view,调用本方法将 playerView 添加到应用的视图层级中,实现视频内容显示。
|
|
46
|
-
*/
|
|
29
|
+
|
|
47
30
|
/** {en}
|
|
48
31
|
* @detail keytype
|
|
49
32
|
* @brief The view used by the player to render video. Add `playerView` to the view hierarchy of your app to display the video content.
|
|
50
33
|
*/
|
|
51
34
|
playerView: UIView;
|
|
52
|
-
|
|
53
|
-
* @detail keytype
|
|
54
|
-
* @brief 设置或获取播放器播放音量,默认值为 1.0。取值范围为 0.0~1.0。
|
|
55
|
-
*/
|
|
35
|
+
|
|
56
36
|
/** {en}
|
|
57
37
|
* @detail keytype
|
|
58
38
|
* @brief The player volume. The default value is `1.0`. The value range is [0.0, 1.0].
|
|
59
39
|
*/
|
|
60
40
|
volume: float;
|
|
61
|
-
|
|
62
|
-
* @detail keytype
|
|
63
|
-
* @brief 检查播放器是否正在播放。
|
|
64
|
-
* @return 是否正在播放。<br>
|
|
65
|
-
* - YES:正在播放;
|
|
66
|
-
* - NO:未播放。
|
|
67
|
-
*/
|
|
41
|
+
|
|
68
42
|
/** {en}
|
|
69
43
|
* @detail keytype
|
|
70
44
|
* @brief Checks whether the player is playing.
|
|
@@ -73,34 +47,20 @@ export declare class TVLManager {
|
|
|
73
47
|
* - NO: The player is not playing.
|
|
74
48
|
*/
|
|
75
49
|
isPlaying: BOOL;
|
|
76
|
-
|
|
77
|
-
* @detail api
|
|
78
|
-
* @brief 播放器初始化方法。
|
|
79
|
-
* @order 9
|
|
80
|
-
*/
|
|
50
|
+
|
|
81
51
|
/** {en}
|
|
82
52
|
* @detail api
|
|
83
53
|
* @brief Initializes the player.
|
|
84
54
|
* @order 9
|
|
85
55
|
*/
|
|
86
56
|
init(): this;
|
|
87
|
-
|
|
88
|
-
* @brief 初始化特定类型的播放器。
|
|
89
|
-
* @param type 播放器类型,详情请参见 [VeLivePlayerType](188121#VeLivePlayerType)。
|
|
90
|
-
*/
|
|
57
|
+
|
|
91
58
|
/** {en}
|
|
92
59
|
* @brief Initializes the specified type of player.
|
|
93
60
|
* @param type The player type. Refer to [VeLivePlayerType](docs-player-sdk-for-ios-type-definition#VeLivePlayerType) for details.
|
|
94
61
|
*/
|
|
95
62
|
initWithType(type: VeLivePlayerType): this;
|
|
96
|
-
|
|
97
|
-
* @detail api
|
|
98
|
-
* @brief 初始化播放器,用于设置是否开启 SEI 消息、是否开启硬件解码和是否开启本地 DNS 预解析等配置信息。
|
|
99
|
-
* @notes
|
|
100
|
-
* 需要在调用 play{@link #VeLivePlayer#play} 开始播放之前,调用本方法进行播放器的初始化。
|
|
101
|
-
* @param config 播放器配置信息,详情请参见 VeLivePlayerConfiguration{@link #VeLivePlayerConfiguration}。
|
|
102
|
-
* @order 1
|
|
103
|
-
*/
|
|
63
|
+
|
|
104
64
|
/** {en}
|
|
105
65
|
* @detail api
|
|
106
66
|
* @brief Configures player settings, including whether to turn on SEI messaging, hardware decoding, and local DNS prefetch.
|
|
@@ -110,14 +70,7 @@ export declare class TVLManager {
|
|
|
110
70
|
* @order 1
|
|
111
71
|
*/
|
|
112
72
|
setConfig(config: VeLivePlayerConfiguration): void;
|
|
113
|
-
|
|
114
|
-
* @detail api
|
|
115
|
-
* @brief 设置播放器回调,用于监听播放器 VeLivePlayer 的播放错误、播放状态、音视频首帧渲染状态和清晰度档位信息等回调事件。
|
|
116
|
-
* @notes
|
|
117
|
-
* 需要在调用 play{@link #VeLivePlayer#play} 开始播放之前,调用本方法设置回调。
|
|
118
|
-
* @param observer 播放器的事件回调对象。详情请参见 VeLivePlayerObserver{@link #VeLivePlayerObserver}。
|
|
119
|
-
* @order 2
|
|
120
|
-
*/
|
|
73
|
+
|
|
121
74
|
/** {en}
|
|
122
75
|
* @detail api
|
|
123
76
|
* @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.
|
|
@@ -127,15 +80,7 @@ export declare class TVLManager {
|
|
|
127
80
|
* @order 2
|
|
128
81
|
*/
|
|
129
82
|
setObserver(observer: id<VeLivePlayerObserver>): void;
|
|
130
|
-
|
|
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
|
-
*/
|
|
83
|
+
|
|
139
84
|
/** {en}
|
|
140
85
|
* @detail api
|
|
141
86
|
* @brief Sets the fill mode of the player screen.
|
|
@@ -146,14 +91,7 @@ export declare class TVLManager {
|
|
|
146
91
|
* @param fillMode The fill mode of SurfaceView. The default value is `VeLivePlayerFillModeAspectFill`. See VeLivePlayerFillMode{@link #VeLivePlayerFillMode} for details.
|
|
147
92
|
*/
|
|
148
93
|
setRenderFillMode(fillMode: VeLivePlayerFillMode): Promise<void>;
|
|
149
|
-
|
|
150
|
-
* @detail api
|
|
151
|
-
* @brief 设置单个直播播放地址。
|
|
152
|
-
* @notes
|
|
153
|
-
* 需要在调用 [play](#TVLManager(VeLivePlayer)-play) 开始播放之前,调用本方法设置单个直播播放地址。
|
|
154
|
-
* @order 6
|
|
155
|
-
* @param url 直播播放地址
|
|
156
|
-
*/
|
|
94
|
+
|
|
157
95
|
/** {en}
|
|
158
96
|
* @detail api
|
|
159
97
|
* @brief Sets a pull stream address.
|
|
@@ -163,12 +101,7 @@ export declare class TVLManager {
|
|
|
163
101
|
* @param url The pull stream address.
|
|
164
102
|
*/
|
|
165
103
|
setPlayUrl(url: NSString): void;
|
|
166
|
-
|
|
167
|
-
* @detail api
|
|
168
|
-
* @brief 设置域名和服务器的 IP 地址映射关系。
|
|
169
|
-
* @param hostIpMap 域名和服务器 IP 地址的映射关系列表。其中 `Map` 的 Key 是域名,Value 是 `List` 类型,表示该域名对应的服务器 IP 地址列表
|
|
170
|
-
* @order 17
|
|
171
|
-
*/
|
|
104
|
+
|
|
172
105
|
/** {en}
|
|
173
106
|
* @detail api
|
|
174
107
|
* @brief Sets the mapping of domain names to server IP addresses.
|
|
@@ -176,13 +109,7 @@ export declare class TVLManager {
|
|
|
176
109
|
* @order 17
|
|
177
110
|
*/
|
|
178
111
|
setUrlHostIP(hostIpMap: NSDictionary): void;
|
|
179
|
-
|
|
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
|
-
*/
|
|
112
|
+
|
|
186
113
|
/** {en}
|
|
187
114
|
* @detail api
|
|
188
115
|
* @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.
|
|
@@ -191,14 +118,7 @@ export declare class TVLManager {
|
|
|
191
118
|
* @order 18
|
|
192
119
|
*/
|
|
193
120
|
setProperty(key: NSString, value: id): void;
|
|
194
|
-
|
|
195
|
-
* @detail api
|
|
196
|
-
* @brief 多路流信息配置。例如,您需要使用 ABR、手动切档和主备流等依赖多路流的功能,可以调用本方法进行配置。
|
|
197
|
-
* @notes
|
|
198
|
-
* 需要在调用 play{@link #VeLivePlayer#play} 开始播放之前,调用本方法设置多路流信息。
|
|
199
|
-
* @order 7
|
|
200
|
-
* @param streamData 多路流信息配置。详情请参见 [VeLivePlayerStreamData](188121#VeLivePlayerStreamData) 。
|
|
201
|
-
*/
|
|
121
|
+
|
|
202
122
|
/** {en}
|
|
203
123
|
* @detail api
|
|
204
124
|
* @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.
|
|
@@ -208,13 +128,7 @@ export declare class TVLManager {
|
|
|
208
128
|
* @order 7
|
|
209
129
|
*/
|
|
210
130
|
setPlayStreamData(streamData: VeLivePlayerStreamData): void;
|
|
211
|
-
|
|
212
|
-
* @detail api
|
|
213
|
-
* @brief 开始/恢复播放。
|
|
214
|
-
* @notes
|
|
215
|
-
* 调用本方法,在播放器完成拉流准备和首帧渲染播放后,都会触发 [onPlayerStatusUpdate:status:](188119#VeLivePlayerObserver-onplayerstatusupdate-status) 播放器状态回调。
|
|
216
|
-
* @order 10
|
|
217
|
-
*/
|
|
131
|
+
|
|
218
132
|
/** {en}
|
|
219
133
|
* @detail api
|
|
220
134
|
* @brief Starts or resumes playback.
|
|
@@ -223,12 +137,7 @@ export declare class TVLManager {
|
|
|
223
137
|
* @order 10
|
|
224
138
|
*/
|
|
225
139
|
play(): Promise<void>;
|
|
226
|
-
|
|
227
|
-
* @detail api
|
|
228
|
-
* @brief 暂停播放。
|
|
229
|
-
* @notes 调用本方法暂停播放后,会触发 [onPlayerStatusUpdate:status:](188119#VeLivePlayerObserver-onplayerstatusupdate-status) 播放器状态回调。
|
|
230
|
-
* @order 11
|
|
231
|
-
*/
|
|
140
|
+
|
|
232
141
|
/** {en}
|
|
233
142
|
* @detail api
|
|
234
143
|
* @brief Pauses playback.
|
|
@@ -237,12 +146,7 @@ export declare class TVLManager {
|
|
|
237
146
|
* @order 11
|
|
238
147
|
*/
|
|
239
148
|
pause(): Promise<void>;
|
|
240
|
-
|
|
241
|
-
* @detail api
|
|
242
|
-
* @brief 停止播放,不销毁播放器。
|
|
243
|
-
* @notes 调用本方法停止播放后,会触发 [onPlayerStatusUpdate:status:](188119#VeLivePlayerObserver-onplayerstatusupdate-status) 播放器状态回调。
|
|
244
|
-
* @order 12
|
|
245
|
-
*/
|
|
149
|
+
|
|
246
150
|
/** {en}
|
|
247
151
|
* @detail api
|
|
248
152
|
* @brief Stops playback. This method does not destroy the player.
|
|
@@ -251,23 +155,14 @@ export declare class TVLManager {
|
|
|
251
155
|
* @order 12
|
|
252
156
|
*/
|
|
253
157
|
stop(): Promise<void>;
|
|
254
|
-
|
|
255
|
-
* @detail api
|
|
256
|
-
* @brief 停止播放,并销毁播放器。
|
|
257
|
-
* @order 13
|
|
258
|
-
*/
|
|
158
|
+
|
|
259
159
|
/** {en}
|
|
260
160
|
* @detail api
|
|
261
161
|
* @brief Stops playback and destroys the player.
|
|
262
162
|
* @order 13
|
|
263
163
|
*/
|
|
264
164
|
destroy(): void;
|
|
265
|
-
|
|
266
|
-
* @brief 检查播放器当前是否支持指定的分辨率档位。
|
|
267
|
-
* @param resolution 分辨率档位,详情请参见 [VeLivePlayerResolution](188121#VeLivePlayerResolution)。
|
|
268
|
-
* @return - 0:支持;
|
|
269
|
-
* - 其他:不支持。其他返回值详情请参见 [VeLivePlayerSupportResolutionSwitchError](188121#VeLivePlayerSupportResolutionSwitchError)。
|
|
270
|
-
*/
|
|
165
|
+
|
|
271
166
|
/** {en}
|
|
272
167
|
* @brief Check whether the player currently supports the specified resolution level.
|
|
273
168
|
* @param resolution Resolution levels. For details, please refer to [VeLivePlayerResolution](docs-player-sdk-for-ios-type-definition#VeLivePlayerResolution).
|
|
@@ -275,18 +170,7 @@ export declare class TVLManager {
|
|
|
275
170
|
* - Others: Not supported. For details of other return values, please refer to [VeLivePlayerSupportResolutionSwitchError](docs-player-sdk-for-ios-type-definition#VeLivePlayerSupportResolutionSwitchError).
|
|
276
171
|
*/
|
|
277
172
|
isSupportResolutionSwitch(resolution: VeLivePlayerResolution): int;
|
|
278
|
-
|
|
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
|
-
*/
|
|
173
|
+
|
|
290
174
|
/** {en}
|
|
291
175
|
* @detail api
|
|
292
176
|
* @brief Changes the video resolution.
|
|
@@ -300,14 +184,7 @@ export declare class TVLManager {
|
|
|
300
184
|
* - NO: Failure.
|
|
301
185
|
*/
|
|
302
186
|
switchResolution(resolution: VeLivePlayerResolution): void;
|
|
303
|
-
|
|
304
|
-
* @detail api
|
|
305
|
-
* @brief 设置是否静音播放。
|
|
306
|
-
* @param mute 是否开启静音播放,默认值为 NO。<br>
|
|
307
|
-
* - YES:开启;
|
|
308
|
-
* - NO:关闭。
|
|
309
|
-
* @order 15
|
|
310
|
-
*/
|
|
187
|
+
|
|
311
188
|
/** {en}
|
|
312
189
|
* @detail api
|
|
313
190
|
* @brief Sets whether to mute playback.
|
|
@@ -317,14 +194,7 @@ export declare class TVLManager {
|
|
|
317
194
|
* @order 15
|
|
318
195
|
*/
|
|
319
196
|
setMute(mute: BOOL): void;
|
|
320
|
-
|
|
321
|
-
* @detail api
|
|
322
|
-
* @brief 获取是否处于静音状态。
|
|
323
|
-
* @return 是否处于静音状态。<br>
|
|
324
|
-
* - YES:静音;
|
|
325
|
-
* - NO:未静音。
|
|
326
|
-
* @order 16
|
|
327
|
-
*/
|
|
197
|
+
|
|
328
198
|
/** {en}
|
|
329
199
|
* @detail api
|
|
330
200
|
* @brief Checks whether playback is muted.
|
|
@@ -334,16 +204,7 @@ export declare class TVLManager {
|
|
|
334
204
|
* @order 16
|
|
335
205
|
*/
|
|
336
206
|
isMute(): BOOL;
|
|
337
|
-
|
|
338
|
-
* @detail api
|
|
339
|
-
* @brief 设置视频顺时针旋转角度。
|
|
340
|
-
* @notes
|
|
341
|
-
* - 支持在播放前和播放中动态修改视频旋转角度。
|
|
342
|
-
* - 每次调用本方法,播放器都将基于图像的原始角度进行旋转。
|
|
343
|
-
* - 当同时使用旋转和镜像功能,播放器会先进行镜像,再进行旋转。
|
|
344
|
-
* @order 23
|
|
345
|
-
* @param rotation 视频旋转角度,默认关闭旋转,详情请参见 [VeLivePlayerRotation](188121#VeLivePlayerRotation) 。
|
|
346
|
-
*/
|
|
207
|
+
|
|
347
208
|
/** {en}
|
|
348
209
|
* @detail api
|
|
349
210
|
* @brief Sets the clockwise rotation angle of the video.
|
|
@@ -355,16 +216,7 @@ export declare class TVLManager {
|
|
|
355
216
|
* @order 23
|
|
356
217
|
*/
|
|
357
218
|
setRenderRotation(rotation: VeLivePlayerRotation): Promise<void>;
|
|
358
|
-
|
|
359
|
-
* @detail api
|
|
360
|
-
* @brief 设置视频镜像。
|
|
361
|
-
* @notes
|
|
362
|
-
* - 支持在播放前和播放中动态修改视频镜像方式。
|
|
363
|
-
* - 每次调用本方法,播放器都将基于原始图像进行镜像。
|
|
364
|
-
* - 当同时使用旋转和镜像功能,播放器会先进行镜像,再进行旋转。
|
|
365
|
-
* @order 24
|
|
366
|
-
* @param mirror 视频镜像,默认关闭镜像,详情请参见 [VeLivePlayerMirror](188121#VeLivePlayerMirror) 。
|
|
367
|
-
*/
|
|
219
|
+
|
|
368
220
|
/** {en}
|
|
369
221
|
* @detail api
|
|
370
222
|
* @brief Configures mirroring settings.
|
|
@@ -376,17 +228,7 @@ export declare class TVLManager {
|
|
|
376
228
|
* @order 24
|
|
377
229
|
*/
|
|
378
230
|
setRenderMirror(mirror: VeLivePlayerMirror): Promise<void>;
|
|
379
|
-
|
|
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
|
-
*/
|
|
231
|
+
|
|
390
232
|
/** {en}
|
|
391
233
|
* @detail api
|
|
392
234
|
* @brief Takes a screenshot of the video.
|
|
@@ -399,20 +241,7 @@ export declare class TVLManager {
|
|
|
399
241
|
* - VeLivePlayerErrorRefused{@link #VeLivePlayerErrorCode#VeLivePlayerErrorRefused}: Screenshot capturing is not allowed.
|
|
400
242
|
*/
|
|
401
243
|
snapshot(): int;
|
|
402
|
-
|
|
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
|
-
*/
|
|
244
|
+
|
|
416
245
|
/** {en}
|
|
417
246
|
* @detail api
|
|
418
247
|
* @brief Sets the video frame observer.
|
|
@@ -428,21 +257,7 @@ export declare class TVLManager {
|
|
|
428
257
|
* @param bufferType The encapsulation format of the video data in the callback. See VeLivePlayerVideoBufferType{@link #VeLivePlayerVideoBufferType} for details.
|
|
429
258
|
*/
|
|
430
259
|
enableVideoFrameObserver(enable: BOOL, pixelFormat: VeLivePlayerPixelFormat, bufferType: VeLivePlayerVideoBufferType): void;
|
|
431
|
-
|
|
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
|
-
*/
|
|
260
|
+
|
|
446
261
|
/** {en}
|
|
447
262
|
* @detail api
|
|
448
263
|
* @brief Sets the audio frame observer.
|
|
@@ -459,18 +274,7 @@ export declare class TVLManager {
|
|
|
459
274
|
* - NO: Disable.
|
|
460
275
|
*/
|
|
461
276
|
enableAudioFrameObserver(enable: BOOL, enableRendering: BOOL): void;
|
|
462
|
-
|
|
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
|
-
*/
|
|
277
|
+
|
|
474
278
|
/** {en}
|
|
475
279
|
* @detail api
|
|
476
280
|
* @brief Enables or disables super resolution.
|