@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.
- package/android/bin/build/generated/res/pngs/debug/drawable-anydpi-v24/new_window.xml +16 -0
- 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 +25 -0
- package/android/bin/build/intermediates/aapt_friendly_merged_manifests/debug/aapt/output-metadata.json +18 -0
- package/android/bin/build/intermediates/aar_metadata/debug/aar-metadata.properties +5 -0
- package/android/bin/build/intermediates/annotation_processor_list/debug/annotationProcessors.json +1 -0
- 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 +6 -0
- 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 +10 -0
- package/android/bin/build/intermediates/incremental/debug/packageDebugResources/merger.xml +2 -0
- package/android/bin/build/intermediates/incremental/mergeDebugJniLibFolders/merger.xml +2 -0
- package/android/bin/build/intermediates/incremental/mergeDebugShaders/merger.xml +2 -0
- package/android/bin/build/intermediates/incremental/packageDebugAssets/merger.xml +2 -0
- package/android/bin/build/intermediates/local_only_symbol_list/debug/R-def.txt +8 -0
- package/android/bin/build/intermediates/manifest_merge_blame_file/debug/manifest-merger-blame-debug-report.txt +44 -0
- package/android/bin/build/intermediates/merged_manifest/debug/AndroidManifest.xml +25 -0
- package/android/bin/build/intermediates/navigation_json/debug/navigation.json +1 -0
- package/android/bin/build/intermediates/packaged_res/debug/drawable/button_close.xml +9 -0
- package/android/bin/build/intermediates/packaged_res/debug/drawable-anydpi-v24/new_window.xml +16 -0
- 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 +29 -0
- 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 +7 -0
- package/android/bin/build/outputs/logs/manifest-merger-debug-report.txt +54 -0
- package/android/bin/build/tmp/compileDebugJavaWithJavac/previous-compilation-data.bin +0 -0
- package/lib/typescript/codegen/android/api.d.ts +257 -27
- package/lib/typescript/codegen/android/callback.d.ts +162 -19
- package/lib/typescript/codegen/android/errorcode.d.ts +115 -28
- package/lib/typescript/codegen/android/keytype.d.ts +482 -113
- package/lib/typescript/codegen/ios/api.d.ts +225 -29
- package/lib/typescript/codegen/ios/callback.d.ts +134 -18
- package/lib/typescript/codegen/ios/errorcode.d.ts +102 -26
- package/lib/typescript/codegen/ios/keytype.d.ts +424 -113
- package/lib/typescript/codegen/pack/api.d.ts +291 -33
- package/lib/typescript/codegen/pack/callback.d.ts +167 -20
- package/lib/typescript/codegen/pack/errorcode.d.ts +126 -30
- package/lib/typescript/codegen/pack/keytype.d.ts +582 -130
- package/lib/typescript/core/keytype.d.ts +16 -4
- package/lib/typescript/core/logger.d.ts +1 -0
- package/lib/typescript/platforms/android/AppLogWrapper.d.ts +8 -0
- package/lib/typescript/platforms/ios/RangersAppLog.d.ts +4 -0
- package/package.json +1 -1
|
@@ -1,36 +1,55 @@
|
|
|
1
1
|
import { int, String, List, long, float, ByteBuffer, EGLContext } from './types';
|
|
2
2
|
export declare enum VeLivePlayerResolution {
|
|
3
|
-
|
|
3
|
+
/** {zh}
|
|
4
|
+
* @brief 原始流。
|
|
5
|
+
*
|
|
6
|
+
*/
|
|
4
7
|
/** {en}
|
|
5
8
|
* @brief Original.
|
|
6
9
|
*
|
|
7
10
|
*/
|
|
8
11
|
VeLivePlayerResolutionOrigin = "origin",
|
|
9
|
-
|
|
12
|
+
/** {zh}
|
|
13
|
+
* @brief UHD 超高清。
|
|
14
|
+
*
|
|
15
|
+
*/
|
|
10
16
|
/** {en}
|
|
11
17
|
* @brief Ultra high definition (UHD).
|
|
12
18
|
*
|
|
13
19
|
*/
|
|
14
20
|
VeLivePlayerResolutionUHD = "uhd",
|
|
15
|
-
|
|
21
|
+
/** {zh}
|
|
22
|
+
* @brief HD 高清。
|
|
23
|
+
*
|
|
24
|
+
*/
|
|
16
25
|
/** {en}
|
|
17
26
|
* @brief High definition (HD).
|
|
18
27
|
*
|
|
19
28
|
*/
|
|
20
29
|
VeLivePlayerResolutionHD = "hd",
|
|
21
|
-
|
|
30
|
+
/** {zh}
|
|
31
|
+
* @brief SD 标清。
|
|
32
|
+
*
|
|
33
|
+
*/
|
|
22
34
|
/** {en}
|
|
23
35
|
* @brief Standard definition (SD).
|
|
24
36
|
*
|
|
25
37
|
*/
|
|
26
38
|
VeLivePlayerResolutionSD = "sd",
|
|
27
|
-
|
|
39
|
+
/** {zh}
|
|
40
|
+
* @brief LD 低清。
|
|
41
|
+
*
|
|
42
|
+
*/
|
|
28
43
|
/** {en}
|
|
29
44
|
* @brief Low definition (LD).
|
|
30
45
|
*
|
|
31
46
|
*/
|
|
32
47
|
VeLivePlayerResolutionLD = "ld",
|
|
33
|
-
|
|
48
|
+
/** {zh}
|
|
49
|
+
* @brief AO 纯音频流。
|
|
50
|
+
* @hidden (Android)
|
|
51
|
+
*
|
|
52
|
+
*/
|
|
34
53
|
/** {en}
|
|
35
54
|
* @brief AO pure audio stream.
|
|
36
55
|
* @hidden (Android)
|
|
@@ -39,7 +58,12 @@ export declare enum VeLivePlayerResolution {
|
|
|
39
58
|
VeLivePlayerResolutionAO = "ao"
|
|
40
59
|
}
|
|
41
60
|
export declare class VeLivePlayerConfiguration {
|
|
42
|
-
|
|
61
|
+
/** {zh}
|
|
62
|
+
* @brief 是否开启字符串 SEI 消息的解析,默认值为 false。<br/>
|
|
63
|
+
* - true:开启;
|
|
64
|
+
* - false:关闭。
|
|
65
|
+
*
|
|
66
|
+
*/
|
|
43
67
|
/** {en}
|
|
44
68
|
* @brief Whether to enable the parsing of string SEI messages. The default value is `false`.<br/>
|
|
45
69
|
* - true: Enable;
|
|
@@ -47,7 +71,13 @@ export declare class VeLivePlayerConfiguration {
|
|
|
47
71
|
*
|
|
48
72
|
*/
|
|
49
73
|
enableSei: boolean;
|
|
50
|
-
|
|
74
|
+
/** {zh}
|
|
75
|
+
* @brief 是否开启二进制 SEI 消息的解析,默认值为 false。<br/>
|
|
76
|
+
* - true:开启;
|
|
77
|
+
* - false:关闭。
|
|
78
|
+
* @notes 二进制 SEI 开启后,字符串 SEI 的回调将不再发送。
|
|
79
|
+
*
|
|
80
|
+
*/
|
|
51
81
|
/** {en}
|
|
52
82
|
* @brief Whether to enable the parsing of binary SEI messages. The default value is `false`. <br>
|
|
53
83
|
* - true: Enable;
|
|
@@ -56,7 +86,12 @@ export declare class VeLivePlayerConfiguration {
|
|
|
56
86
|
*
|
|
57
87
|
*/
|
|
58
88
|
enableBinarySei: boolean;
|
|
59
|
-
|
|
89
|
+
/** {zh}
|
|
90
|
+
* @brief 是否开启硬件解码功能,默认值为 true。开启硬件解码后,如果出现硬件解码启动失败或硬件解码失败的情况,播放器内部会自动切换为软解。<br>
|
|
91
|
+
* - true:开启;
|
|
92
|
+
* - false:关闭。
|
|
93
|
+
*
|
|
94
|
+
*/
|
|
60
95
|
/** {en}
|
|
61
96
|
* @brief Whether to turn on hardware decoding. The default value is `true`. When hardware decoding is enabled, if the player fails to start hardware decoding or if hardware decoding fails, the player automatically switches to software decoding. <br>
|
|
62
97
|
* - true: Enable;
|
|
@@ -64,13 +99,21 @@ export declare class VeLivePlayerConfiguration {
|
|
|
64
99
|
*
|
|
65
100
|
*/
|
|
66
101
|
enableHardwareDecode: boolean;
|
|
67
|
-
|
|
102
|
+
/** {zh}
|
|
103
|
+
* @brief 网络超时时间,单位为 ms,默认值为 5000。播放器发起网络请求,如果超过了该时间仍未收到服务器响应,则认为网络请求失败。
|
|
104
|
+
*
|
|
105
|
+
*/
|
|
68
106
|
/** {en}
|
|
69
107
|
* @brief Network timeout duration, in milliseconds. The default value is `5000`. Once the player sends a network request, if the player does not receive a response from the server after the timeout duration, the network request is considered failed.
|
|
70
108
|
*
|
|
71
109
|
*/
|
|
72
110
|
networkTimeoutMs: int;
|
|
73
|
-
|
|
111
|
+
/** {zh}
|
|
112
|
+
* @brief 重试时间间隔,单位为 ms,默认值为 5000,仅在无备流时生效。<br>
|
|
113
|
+
* - 在无备流的场景下,若遇到网络异常等问题导致播放中断,播放器会立即进行重试,前三次重试为立即执行,第四次及之后的重试将按照设置的重试时间间隔执行;
|
|
114
|
+
* - 在有备流的场景下,重试时间间隔将不生效,所有重试均会立即执行。
|
|
115
|
+
*
|
|
116
|
+
*/
|
|
74
117
|
/** {en}
|
|
75
118
|
* @brief The retry time interval, in milliseconds. The default value is `5000`. This variable takes effect only when there is no backup stream.<br>
|
|
76
119
|
* - In the absence of a backup stream, if playback is interrupted due to network issues or other anomalies, the player will immediately initiate a retry. The player will make the first three retries immediately without any waiting time. However, for subsequent retries starting from the fourth attempt, the player will wait for the specified time interval between each attempt.
|
|
@@ -78,7 +121,12 @@ export declare class VeLivePlayerConfiguration {
|
|
|
78
121
|
*
|
|
79
122
|
*/
|
|
80
123
|
retryIntervalTimeMs: int;
|
|
81
|
-
|
|
124
|
+
/** {zh}
|
|
125
|
+
* @brief 在网络连接错误的情况下,播放器最大重试次数,默认值为 5。如果取值为 0,表示关闭播放器内部重试。<br>
|
|
126
|
+
* - 在无备流的场景下,每次重试,会消耗一次重试次数;
|
|
127
|
+
* - 在有备流的场景下,每次主备流切换,会消耗一次重试次数。
|
|
128
|
+
*
|
|
129
|
+
*/
|
|
82
130
|
/** {en}
|
|
83
131
|
* @brief In the case of a network connection error, the maximum number of automatic retries of the player. The default value is `5`. If the value is `0`, the player will not automatically retry.<br>
|
|
84
132
|
* - In the absence of a backup stream, each retry will count as one retry attempt.
|
|
@@ -86,7 +134,12 @@ export declare class VeLivePlayerConfiguration {
|
|
|
86
134
|
*
|
|
87
135
|
*/
|
|
88
136
|
retryMaxCount: int;
|
|
89
|
-
|
|
137
|
+
/** {zh}
|
|
138
|
+
* @brief 是否开启本地 DNS 预解析,默认值为 false。开启本地 DNS 预解析可以缩短启播时间。如果本地 DNS 预解析出现异常,可能会影响播放器的正常使用。<br>
|
|
139
|
+
* - true:开启;
|
|
140
|
+
* - false:关闭。
|
|
141
|
+
*
|
|
142
|
+
*/
|
|
90
143
|
/** {en}
|
|
91
144
|
* @brief Whether to enable local DNS prefetch. The default value is `false`. Enabling local DNS prefetch can reduce the time required to start playback. If an abnormality occurs with local DNS prefetch, the player may not function properly. <br>
|
|
92
145
|
* - true: Enable;
|
|
@@ -94,7 +147,12 @@ export declare class VeLivePlayerConfiguration {
|
|
|
94
147
|
*
|
|
95
148
|
*/
|
|
96
149
|
enableLiveDNS: boolean;
|
|
97
|
-
|
|
150
|
+
/** {zh}
|
|
151
|
+
* @brief 是否开启播放信息周期性回调。默认值为 false。周期性回调参数详细说明请参见 [VeLivePlayerStatistics](188115#VeLivePlayerStatistics) 。当 `enableStatisticsCallback` 为 `true`,且 [statisticsCallbackInterval](188115#VeLivePlayerConfiguration-statisticscallbackinterval) 大于 0 时,播放器会在指定的时间间隔内,周期性地回调播放器状态信息。<br>
|
|
152
|
+
* - true:开启;
|
|
153
|
+
* - false:关闭。
|
|
154
|
+
*
|
|
155
|
+
*/
|
|
98
156
|
/** {en}
|
|
99
157
|
* @brief Whether to enable periodic callbacks for playback information. The default value is `false`. Refer to [VeLivePlayerStatistics](#VeLivePlayerStatistics) for more information on callback statistics. If `enableStatisticsCallback` is `true` and [statisticsCallbackInterval](#VeLivePlayerConfiguration-statisticscallbackinterval) is greater than `0`, the player will periodically report the player status information after the specified time interval.<br/>
|
|
100
158
|
* - true: Enable;
|
|
@@ -102,7 +160,10 @@ export declare class VeLivePlayerConfiguration {
|
|
|
102
160
|
*
|
|
103
161
|
*/
|
|
104
162
|
enableStatisticsCallback: boolean;
|
|
105
|
-
|
|
163
|
+
/** {zh}
|
|
164
|
+
* @brief 播放信息周期性回调的时间间隔,单位为 s,默认值为 5。当 [enableStatisticsCallback](188115#VeLivePlayerConfiguration-enablestatisticscallback) 为 `true`,且 `statisticsCallbackInterval` 大于 0 时,播放器会在指定的时间间隔内,周期性地回调播放器状态信息。
|
|
165
|
+
*
|
|
166
|
+
*/
|
|
106
167
|
/** {en}
|
|
107
168
|
* @brief The time interval for periodic callbacks that provide playback information, in seconds. The default value is `5`. If [enableStatisticsCallback](#VeLivePlayerConfiguration-enablestatisticscallback) is `true` and `statisticsCallbackInterval` is greater than `0`, the player will periodically report the player status information after the specified time interval.
|
|
108
169
|
*
|
|
@@ -110,25 +171,37 @@ export declare class VeLivePlayerConfiguration {
|
|
|
110
171
|
statisticsCallbackInterval: int;
|
|
111
172
|
}
|
|
112
173
|
export declare enum VeLivePlayerFormat {
|
|
113
|
-
|
|
174
|
+
/** {zh}
|
|
175
|
+
* @brief FLV 格式。
|
|
176
|
+
*
|
|
177
|
+
*/
|
|
114
178
|
/** {en}
|
|
115
179
|
* @brief FLV.
|
|
116
180
|
*
|
|
117
181
|
*/
|
|
118
182
|
VeLivePlayerFormatFLV = 0,
|
|
119
|
-
|
|
183
|
+
/** {zh}
|
|
184
|
+
* @brief HLS 格式。
|
|
185
|
+
*
|
|
186
|
+
*/
|
|
120
187
|
/** {en}
|
|
121
188
|
* @brief HLS.
|
|
122
189
|
*
|
|
123
190
|
*/
|
|
124
191
|
VeLivePlayerFormatHLS = 1,
|
|
125
|
-
|
|
192
|
+
/** {zh}
|
|
193
|
+
* @brief RTM 格式。
|
|
194
|
+
*
|
|
195
|
+
*/
|
|
126
196
|
/** {en}
|
|
127
197
|
* @brief Real Time Media (RTM).
|
|
128
198
|
*
|
|
129
199
|
*/
|
|
130
200
|
VeLivePlayerFormatRTM = 2,
|
|
131
|
-
|
|
201
|
+
/** {zh}
|
|
202
|
+
* @brief CMAF 格式
|
|
203
|
+
*
|
|
204
|
+
*/
|
|
132
205
|
/** {en}
|
|
133
206
|
* @brief CMAF format
|
|
134
207
|
*
|
|
@@ -136,25 +209,37 @@ export declare enum VeLivePlayerFormat {
|
|
|
136
209
|
VeLivePlayerFormatCMAF = 3
|
|
137
210
|
}
|
|
138
211
|
export declare enum VeLivePlayerProtocol {
|
|
139
|
-
|
|
212
|
+
/** {zh}
|
|
213
|
+
* @brief TCP 协议。
|
|
214
|
+
*
|
|
215
|
+
*/
|
|
140
216
|
/** {en}
|
|
141
217
|
* @brief TCP.
|
|
142
218
|
*
|
|
143
219
|
*/
|
|
144
220
|
VeLivePlayerProtocolTCP = 0,
|
|
145
|
-
|
|
221
|
+
/** {zh}
|
|
222
|
+
* @brief QUIC 协议。
|
|
223
|
+
*
|
|
224
|
+
*/
|
|
146
225
|
/** {en}
|
|
147
226
|
* @brief QUIC.
|
|
148
227
|
*
|
|
149
228
|
*/
|
|
150
229
|
VeLivePlayerProtocolQUIC = 1,
|
|
151
|
-
|
|
230
|
+
/** {zh}
|
|
231
|
+
* @brief TLS 协议。
|
|
232
|
+
*
|
|
233
|
+
*/
|
|
152
234
|
/** {en}
|
|
153
235
|
* @brief TLS.
|
|
154
236
|
*
|
|
155
237
|
*/
|
|
156
238
|
VeLivePlayerProtocolTLS = 2,
|
|
157
|
-
|
|
239
|
+
/** {zh}
|
|
240
|
+
* @brief HTTP2.0 协议。
|
|
241
|
+
*
|
|
242
|
+
*/
|
|
158
243
|
/** {en}
|
|
159
244
|
* @brief HTTP2.0 protocol
|
|
160
245
|
*
|
|
@@ -162,19 +247,28 @@ export declare enum VeLivePlayerProtocol {
|
|
|
162
247
|
VeLivePlayerProtocolHTTP2 = 3
|
|
163
248
|
}
|
|
164
249
|
export declare enum VeLivePlayerMirror {
|
|
165
|
-
|
|
250
|
+
/** {zh}
|
|
251
|
+
* @brief 关闭镜像。
|
|
252
|
+
*
|
|
253
|
+
*/
|
|
166
254
|
/** {en}
|
|
167
255
|
* @brief No mirroring.
|
|
168
256
|
*
|
|
169
257
|
*/
|
|
170
258
|
VeLivePlayerMirrorNone = 0,
|
|
171
|
-
|
|
259
|
+
/** {zh}
|
|
260
|
+
* @brief 水平镜像。
|
|
261
|
+
*
|
|
262
|
+
*/
|
|
172
263
|
/** {en}
|
|
173
264
|
* @brief Horizontal mirroring.
|
|
174
265
|
*
|
|
175
266
|
*/
|
|
176
267
|
VeLivePlayerMirrorHorizontal = 1,
|
|
177
|
-
|
|
268
|
+
/** {zh}
|
|
269
|
+
* @brief 垂直镜像。
|
|
270
|
+
*
|
|
271
|
+
*/
|
|
178
272
|
/** {en}
|
|
179
273
|
* @brief Vertical mirroring.
|
|
180
274
|
*
|
|
@@ -182,25 +276,37 @@ export declare enum VeLivePlayerMirror {
|
|
|
182
276
|
VeLivePlayerMirrorVertical = 2
|
|
183
277
|
}
|
|
184
278
|
export declare enum VeLivePlayerVideoBufferType {
|
|
185
|
-
|
|
279
|
+
/** {zh}
|
|
280
|
+
* @brief 未知格式。
|
|
281
|
+
*
|
|
282
|
+
*/
|
|
186
283
|
/** {en}
|
|
187
284
|
* @brief Unknown format.
|
|
188
285
|
*
|
|
189
286
|
*/
|
|
190
287
|
VeLivePlayerVideoBufferTypeUnknown = 0,
|
|
191
|
-
|
|
288
|
+
/** {zh}
|
|
289
|
+
* @brief ByteBuffer 格式。
|
|
290
|
+
*
|
|
291
|
+
*/
|
|
192
292
|
/** {en}
|
|
193
293
|
* @brief ByteBuffer.
|
|
194
294
|
*
|
|
195
295
|
*/
|
|
196
296
|
VeLivePlayerVideoBufferTypeByteBuffer = 1,
|
|
197
|
-
|
|
297
|
+
/** {zh}
|
|
298
|
+
* @brief ByteArray 格式。
|
|
299
|
+
*
|
|
300
|
+
*/
|
|
198
301
|
/** {en}
|
|
199
302
|
* @brief ByteArray.
|
|
200
303
|
*
|
|
201
304
|
*/
|
|
202
305
|
VeLivePlayerVideoBufferTypeByteArray = 2,
|
|
203
|
-
|
|
306
|
+
/** {zh}
|
|
307
|
+
* @brief 纹理格式。
|
|
308
|
+
*
|
|
309
|
+
*/
|
|
204
310
|
/** {en}
|
|
205
311
|
* @brief Texture.
|
|
206
312
|
*
|
|
@@ -208,31 +314,46 @@ export declare enum VeLivePlayerVideoBufferType {
|
|
|
208
314
|
VeLivePlayerVideoBufferTypeTexture = 3
|
|
209
315
|
}
|
|
210
316
|
export declare enum VeLivePlayerStatus {
|
|
211
|
-
|
|
317
|
+
/** {zh}
|
|
318
|
+
* @brief 停止播放状态。
|
|
319
|
+
*
|
|
320
|
+
*/
|
|
212
321
|
/** {en}
|
|
213
322
|
* @brief The playback is stopped.
|
|
214
323
|
*
|
|
215
324
|
*/
|
|
216
325
|
VeLivePlayerStatusStopped = 0,
|
|
217
|
-
|
|
326
|
+
/** {zh}
|
|
327
|
+
* @brief 暂停播放状态。
|
|
328
|
+
*
|
|
329
|
+
*/
|
|
218
330
|
/** {en}
|
|
219
331
|
* @brief The playback is paused.
|
|
220
332
|
*
|
|
221
333
|
*/
|
|
222
334
|
VeLivePlayerStatusPaused = 1,
|
|
223
|
-
|
|
335
|
+
/** {zh}
|
|
336
|
+
* @brief 播放器准备完成,等待渲染。
|
|
337
|
+
*
|
|
338
|
+
*/
|
|
224
339
|
/** {en}
|
|
225
340
|
* @brief The player finishes preparing and is waiting to render the video.
|
|
226
341
|
*
|
|
227
342
|
*/
|
|
228
343
|
VeLivePlayerStatusPrepared = 2,
|
|
229
|
-
|
|
344
|
+
/** {zh}
|
|
345
|
+
* @brief 正在播放,即首帧渲染完成且播放器未发生错误。
|
|
346
|
+
*
|
|
347
|
+
*/
|
|
230
348
|
/** {en}
|
|
231
349
|
* @brief Playback is currently in progress, meaning that the first frame has been rendered and no errors have occurred to the player.
|
|
232
350
|
*
|
|
233
351
|
*/
|
|
234
352
|
VeLivePlayerStatusPlaying = 3,
|
|
235
|
-
|
|
353
|
+
/** {zh}
|
|
354
|
+
* @brief 播放器发生错误。
|
|
355
|
+
*
|
|
356
|
+
*/
|
|
236
357
|
/** {en}
|
|
237
358
|
* @brief An error has occurred to the player.
|
|
238
359
|
*
|
|
@@ -240,49 +361,79 @@ export declare enum VeLivePlayerStatus {
|
|
|
240
361
|
VeLivePlayerStatusError = 4
|
|
241
362
|
}
|
|
242
363
|
export declare class VeLivePlayerLogConfig {
|
|
243
|
-
|
|
364
|
+
/** {zh}
|
|
365
|
+
* @brief 日志文件保存路径。缺省情况下,使用默认路径 `/cache/Log`。
|
|
366
|
+
*
|
|
367
|
+
*/
|
|
244
368
|
/** {en}
|
|
245
369
|
* @brief The log file directory path. The default value is `/cache/Log`.
|
|
246
370
|
*
|
|
247
371
|
*/
|
|
248
372
|
logPath: String;
|
|
249
|
-
|
|
373
|
+
/** {zh}
|
|
374
|
+
* @brief 日志文件整体最大尺寸,单位为 M,默认值为 100。
|
|
375
|
+
*
|
|
376
|
+
*/
|
|
250
377
|
/** {en}
|
|
251
378
|
* @brief The maximum size of log files, in MB. The default value is `100`.
|
|
252
379
|
*
|
|
253
380
|
*/
|
|
254
381
|
maxLogSizeM: int;
|
|
255
|
-
|
|
382
|
+
/** {zh}
|
|
383
|
+
* @brief 单个日志文件最大尺寸,单位为 M,默认值为 2。
|
|
384
|
+
*
|
|
385
|
+
*/
|
|
256
386
|
/** {en}
|
|
257
387
|
* @brief The size of a single log file, in MB. The default value is `2`.
|
|
258
388
|
*
|
|
259
389
|
*/
|
|
260
390
|
singleLogSizeM: int;
|
|
261
|
-
|
|
391
|
+
/** {zh}
|
|
392
|
+
* @brief 日志文件有效期,过期后下次创建日志文件时会删除之前的文件。单位为 s,默认值为 604,800,即 7 天。
|
|
393
|
+
*
|
|
394
|
+
*/
|
|
262
395
|
/** {en}
|
|
263
396
|
* @brief The log expiration time, in seconds. Once a log file expires, a new log file will be created and the existing file will be deleted. The default value is `604800`, or seven days.
|
|
264
397
|
*
|
|
265
398
|
*/
|
|
266
399
|
logExpireTimeS: int;
|
|
267
|
-
|
|
400
|
+
/** {zh}
|
|
401
|
+
* @brief 日志是否打印到控制台输出,默认值为 true。<br>
|
|
402
|
+
* - true:打印;
|
|
403
|
+
* - false:不打印。
|
|
404
|
+
*
|
|
405
|
+
*/
|
|
268
406
|
/** {en}
|
|
269
407
|
* @brief Whether to print log in the console. The default value is `true`.
|
|
270
408
|
*
|
|
271
409
|
*/
|
|
272
410
|
enableConsole: boolean;
|
|
273
|
-
|
|
411
|
+
/** {zh}
|
|
412
|
+
* @brief 日志是否打印到文件,默认值为 true。<br>
|
|
413
|
+
* - true:打印;
|
|
414
|
+
* - false:不打印。
|
|
415
|
+
*
|
|
416
|
+
*/
|
|
274
417
|
/** {en}
|
|
275
418
|
* @brief Whether to save log to a file. The default value is `true`.
|
|
276
419
|
*
|
|
277
420
|
*/
|
|
278
421
|
enableLogFile: boolean;
|
|
279
|
-
|
|
422
|
+
/** {zh}
|
|
423
|
+
* @brief 日志上报路径。
|
|
424
|
+
*
|
|
425
|
+
*/
|
|
280
426
|
/** {en}
|
|
281
427
|
* @brief The upload URL of the log file.
|
|
282
428
|
*
|
|
283
429
|
*/
|
|
284
430
|
queryUrl: String;
|
|
285
|
-
|
|
431
|
+
/** {zh}
|
|
432
|
+
* @brief 是否轮询。<br>
|
|
433
|
+
* - `true`:开启;
|
|
434
|
+
* - `false`:关闭。
|
|
435
|
+
*
|
|
436
|
+
*/
|
|
286
437
|
/** {en}
|
|
287
438
|
* @brief Whether to enable thread polling. <br>
|
|
288
439
|
* - `true`: Enable
|
|
@@ -290,25 +441,37 @@ export declare class VeLivePlayerLogConfig {
|
|
|
290
441
|
*
|
|
291
442
|
*/
|
|
292
443
|
enableThreadLoop: boolean;
|
|
293
|
-
|
|
444
|
+
/** {zh}
|
|
445
|
+
* @brief 轮询间隔时间, 单位为 ms。取值范围:大于 0。
|
|
446
|
+
*
|
|
447
|
+
*/
|
|
294
448
|
/** {en}
|
|
295
449
|
* @brief The polling interval, in milliseconds. The value should be greater than 0.
|
|
296
450
|
*
|
|
297
451
|
*/
|
|
298
452
|
intervalMS: int;
|
|
299
|
-
|
|
453
|
+
/** {zh}
|
|
454
|
+
* @brief HTTP 请求超时时间。取值范围:大于 0。
|
|
455
|
+
*
|
|
456
|
+
*/
|
|
300
457
|
/** {en}
|
|
301
458
|
* @brief The timeout for an HTTP request. Value range: > 0.
|
|
302
459
|
*
|
|
303
460
|
*/
|
|
304
461
|
httpTimeoutMS: int;
|
|
305
|
-
|
|
462
|
+
/** {zh}
|
|
463
|
+
* @brief 文件上传超时时间。取值范围:大于 0。
|
|
464
|
+
*
|
|
465
|
+
*/
|
|
306
466
|
/** {en}
|
|
307
467
|
* @brief The timeout for an HTTP request to upload a file. Value range: > 0.
|
|
308
468
|
*
|
|
309
469
|
*/
|
|
310
470
|
httpUploadFileTimeoutMS: int;
|
|
311
|
-
|
|
471
|
+
/** {zh}
|
|
472
|
+
* @brief 允许写入的日志等级,默认为 VeLivePlayerLogLevelDebug,详情请参见 [VeLivePlayerLogLevel](#VeLivePlayerLogLevel)。
|
|
473
|
+
*
|
|
474
|
+
*/
|
|
312
475
|
/** {en}
|
|
313
476
|
* @brief The output log level. The default value is `VeLivePlayerLogLevelDebug`. For details, see [VeLivePlayerLogLevel](#VeLivePlayerLogLevel).
|
|
314
477
|
*
|
|
@@ -316,7 +479,12 @@ export declare class VeLivePlayerLogConfig {
|
|
|
316
479
|
logLevel: VeLivePlayerLogLevel;
|
|
317
480
|
}
|
|
318
481
|
export declare class VeLivePlayerStreamData {
|
|
319
|
-
|
|
482
|
+
/** {zh}
|
|
483
|
+
* @brief 是否打开 ABR 平滑切档功能,默认为 false。<br>
|
|
484
|
+
* - true:开启;
|
|
485
|
+
* - false:关闭。
|
|
486
|
+
*
|
|
487
|
+
*/
|
|
320
488
|
/** {en}
|
|
321
489
|
* @brief Whether to enable adaptive bitrate (ABR). The default value is `false`. <br>
|
|
322
490
|
* - true: Enable;
|
|
@@ -324,7 +492,12 @@ export declare class VeLivePlayerStreamData {
|
|
|
324
492
|
*
|
|
325
493
|
*/
|
|
326
494
|
enableABR: boolean;
|
|
327
|
-
|
|
495
|
+
/** {zh}
|
|
496
|
+
* @brief 是否打开主备切换,默认为 false。<br>
|
|
497
|
+
* - true:开启;
|
|
498
|
+
* - false:关闭。
|
|
499
|
+
*
|
|
500
|
+
*/
|
|
328
501
|
/** {en}
|
|
329
502
|
* @brief Whether to enable switching between primary and backup streams. The default value is `false`. <br>
|
|
330
503
|
* - true: Enable;
|
|
@@ -332,31 +505,46 @@ export declare class VeLivePlayerStreamData {
|
|
|
332
505
|
*
|
|
333
506
|
*/
|
|
334
507
|
enableMainBackupSwitch: boolean;
|
|
335
|
-
|
|
508
|
+
/** {zh}
|
|
509
|
+
* @brief 播放器的默认清晰度档位,默认使用原始流清晰度。详情请参见 [VeLivePlayerResolution](#VeLivePlayerResolution)。
|
|
510
|
+
*
|
|
511
|
+
*/
|
|
336
512
|
/** {en}
|
|
337
513
|
* @brief The default resolution. The default value is `VeLivePlayerResolutionOrigin`, which indicates the original resolution. See [VeLivePlayerResolution](#VeLivePlayerResolution) for details.
|
|
338
514
|
*
|
|
339
515
|
*/
|
|
340
516
|
defaultResolution: VeLivePlayerResolution;
|
|
341
|
-
|
|
517
|
+
/** {zh}
|
|
518
|
+
* @brief 播放器的默认播放格式,默认值为 FLV。详情请参见 [VeLivePlayerFormat](#VeLivePlayerFormat)。
|
|
519
|
+
*
|
|
520
|
+
*/
|
|
342
521
|
/** {en}
|
|
343
522
|
* @brief The default video format. The default value is `VeLivePlayerFormatFLV`. See [VeLivePlayerFormat](#VeLivePlayerFormat) for details.
|
|
344
523
|
*
|
|
345
524
|
*/
|
|
346
525
|
defaultFormat: VeLivePlayerFormat;
|
|
347
|
-
|
|
526
|
+
/** {zh}
|
|
527
|
+
* @brief 播放器的默认播放传输层协议,默认值为 TCP。详情请参见 [VeLivePlayerProtocol](#VeLivePlayerProtocol)。
|
|
528
|
+
*
|
|
529
|
+
*/
|
|
348
530
|
/** {en}
|
|
349
531
|
* @brief The default transmission protocol. The default value is `VeLivePlayerProtocolTCP`. See [VeLivePlayerProtocol](#VeLivePlayerProtocol) for details.
|
|
350
532
|
*
|
|
351
533
|
*/
|
|
352
534
|
defaultProtocol: VeLivePlayerProtocol;
|
|
353
|
-
|
|
535
|
+
/** {zh}
|
|
536
|
+
* @brief 主路流地址列表,详情请参见 [[VeLivePlayerStream](#VeLivePlayerStreamData-VeLivePlayerStream)。
|
|
537
|
+
*
|
|
538
|
+
*/
|
|
354
539
|
/** {en}
|
|
355
540
|
* @brief A list of main stream addresses. See [VeLivePlayerStream](#VeLivePlayerStreamData-VeLivePlayerStream) for details.
|
|
356
541
|
*
|
|
357
542
|
*/
|
|
358
543
|
mainStreamList: List<VeLivePlayerStream>;
|
|
359
|
-
|
|
544
|
+
/** {zh}
|
|
545
|
+
* @brief 备路流地址列表。详情请参见 [VeLivePlayerStream](#VeLivePlayerStreamData-VeLivePlayerStream)。
|
|
546
|
+
*
|
|
547
|
+
*/
|
|
360
548
|
/** {en}
|
|
361
549
|
* @brief A list of backup stream addresses. See [VeLivePlayerStream](#VeLivePlayerStreamData-VeLivePlayerStream) for details.
|
|
362
550
|
*
|
|
@@ -364,13 +552,19 @@ export declare class VeLivePlayerStreamData {
|
|
|
364
552
|
backupStreamList: List<VeLivePlayerStream>;
|
|
365
553
|
}
|
|
366
554
|
export declare enum VeLivePlayerResolutionSwitchReason {
|
|
367
|
-
|
|
555
|
+
/** {zh}
|
|
556
|
+
* @brief ABR 自动切档。
|
|
557
|
+
*
|
|
558
|
+
*/
|
|
368
559
|
/** {en}
|
|
369
560
|
* @brief The resolution is switched automatically through the adaptive bitrate (ABR) feature.
|
|
370
561
|
*
|
|
371
562
|
*/
|
|
372
563
|
VeLiveplayerResolutionSwitchByAuto = 0,
|
|
373
|
-
|
|
564
|
+
/** {zh}
|
|
565
|
+
* @brief 调用 [switchResolution](188111#VeLivePlayer-switchresolution) 手动切换档位导致的分辨率变化。
|
|
566
|
+
*
|
|
567
|
+
*/
|
|
374
568
|
/** {en}
|
|
375
569
|
* @brief The resolution is changed after switchResolution{@link #VeLivePlayer#switchResolution} is called.
|
|
376
570
|
*
|
|
@@ -379,31 +573,46 @@ export declare enum VeLivePlayerResolutionSwitchReason {
|
|
|
379
573
|
}
|
|
380
574
|
export declare class VeLivePlayerStream {
|
|
381
575
|
constructor();
|
|
382
|
-
|
|
576
|
+
/** {zh}
|
|
577
|
+
* @brief 播放地址。
|
|
578
|
+
*
|
|
579
|
+
*/
|
|
383
580
|
/** {en}
|
|
384
581
|
* @brief The pull stream address.
|
|
385
582
|
*
|
|
386
583
|
*/
|
|
387
584
|
url: String;
|
|
388
|
-
|
|
585
|
+
/** {zh}
|
|
586
|
+
* @brief 清晰度档位。详情请参见 [VeLivePlayerResolution](#VeLivePlayerResolution)。
|
|
587
|
+
*
|
|
588
|
+
*/
|
|
389
589
|
/** {en}
|
|
390
590
|
* @brief The playback resolution. For details, see [VeLivePlayerResolution](#VeLivePlayerResolution).
|
|
391
591
|
*
|
|
392
592
|
*/
|
|
393
593
|
resolution: VeLivePlayerResolution;
|
|
394
|
-
|
|
594
|
+
/** {zh}
|
|
595
|
+
* @brief 播放码率,单位为 kbps。
|
|
596
|
+
*
|
|
597
|
+
*/
|
|
395
598
|
/** {en}
|
|
396
599
|
* @brief The playback bitrate, in Kbps.
|
|
397
600
|
*
|
|
398
601
|
*/
|
|
399
602
|
bitrate: long;
|
|
400
|
-
|
|
603
|
+
/** {zh}
|
|
604
|
+
* @brief 播放格式。详情请参见 [VeLivePlayerFormat](#VeLivePlayerFormat)。
|
|
605
|
+
*
|
|
606
|
+
*/
|
|
401
607
|
/** {en}
|
|
402
608
|
* @brief The format of the live stream. See [VeLivePlayerFormat](#VeLivePlayerFormat) for details.
|
|
403
609
|
*
|
|
404
610
|
*/
|
|
405
611
|
format: VeLivePlayerFormat;
|
|
406
|
-
|
|
612
|
+
/** {zh}
|
|
613
|
+
* @brief 播放流类型为主路或备路。详情请参见 [VeLivePlayerStreamType](#VeLivePlayerStreamType)。
|
|
614
|
+
*
|
|
615
|
+
*/
|
|
407
616
|
/** {en}
|
|
408
617
|
* @brief Whether the stream is a main or backup stream. See [VeLivePlayerStreamType](#VeLivePlayerStreamType) for details.
|
|
409
618
|
*
|
|
@@ -411,19 +620,28 @@ export declare class VeLivePlayerStream {
|
|
|
411
620
|
streamType: VeLivePlayerStreamType;
|
|
412
621
|
}
|
|
413
622
|
export declare enum VeLivePlayerFillMode {
|
|
414
|
-
|
|
623
|
+
/** {zh}
|
|
624
|
+
* @brief 显示完整的视频帧。视频帧等比缩放,直至视频帧恰好在画布上全部显示。如果视频帧长宽比例与画布不同,视窗上未被视频帧填满区域将填充为黑色。
|
|
625
|
+
*
|
|
626
|
+
*/
|
|
415
627
|
/** {en}
|
|
416
628
|
* @brief Display the full video. The video is uniformly scaled until one dimension of the video hits the boundary of the screen. Any remaining space on the screen will be filled with black.
|
|
417
629
|
*
|
|
418
630
|
*/
|
|
419
631
|
VeLivePlayerFillModeAspectFit = 0,
|
|
420
|
-
|
|
632
|
+
/** {zh}
|
|
633
|
+
* @brief 视频帧自适应画布。视频帧非等比缩放,直至填满画布。在此过程中,视频帧的长宽比例可能会发生变化。
|
|
634
|
+
*
|
|
635
|
+
*/
|
|
421
636
|
/** {en}
|
|
422
637
|
* @brief Stretch the video to fill the screen. The aspect ratio of the video might change.
|
|
423
638
|
*
|
|
424
639
|
*/
|
|
425
640
|
VeLivePlayerFillModeFullFill = 1,
|
|
426
|
-
|
|
641
|
+
/** {zh}
|
|
642
|
+
* @brief 视频填满画布。视频帧等比缩放,直至填满画布,超出屏幕的部分将被裁剪,画面可能不完整。
|
|
643
|
+
*
|
|
644
|
+
*/
|
|
427
645
|
/** {en}
|
|
428
646
|
* @brief Uniformly scale the video until the screen is completely filled. Part of the video may be cropped.
|
|
429
647
|
*
|
|
@@ -431,19 +649,28 @@ export declare enum VeLivePlayerFillMode {
|
|
|
431
649
|
VeLivePlayerFillModeAspectFill = 2
|
|
432
650
|
}
|
|
433
651
|
export declare enum VeLivePlayerPixelFormat {
|
|
434
|
-
|
|
652
|
+
/** {zh}
|
|
653
|
+
* @brief 未知格式。
|
|
654
|
+
*
|
|
655
|
+
*/
|
|
435
656
|
/** {en}
|
|
436
657
|
* @brief Unknown format.
|
|
437
658
|
*
|
|
438
659
|
*/
|
|
439
660
|
VeLivePlayerPixelFormatUnknown = 0,
|
|
440
|
-
|
|
661
|
+
/** {zh}
|
|
662
|
+
* @brief RGBA8888 格式。
|
|
663
|
+
*
|
|
664
|
+
*/
|
|
441
665
|
/** {en}
|
|
442
666
|
* @brief RGBA8888.
|
|
443
667
|
*
|
|
444
668
|
*/
|
|
445
669
|
VeLivePlayerPixelFormatRGBA32 = 1,
|
|
446
|
-
|
|
670
|
+
/** {zh}
|
|
671
|
+
* @brief 纹理格式。
|
|
672
|
+
*
|
|
673
|
+
*/
|
|
447
674
|
/** {en}
|
|
448
675
|
* @brief Texture.
|
|
449
676
|
*
|
|
@@ -452,13 +679,21 @@ export declare enum VeLivePlayerPixelFormat {
|
|
|
452
679
|
}
|
|
453
680
|
export declare class VeLivePlayerStatistics {
|
|
454
681
|
constructor();
|
|
455
|
-
|
|
682
|
+
/** {zh}
|
|
683
|
+
* @brief 当前直播的播放地址。
|
|
684
|
+
*
|
|
685
|
+
*/
|
|
456
686
|
/** {en}
|
|
457
687
|
* @brief The current pull stream address.
|
|
458
688
|
*
|
|
459
689
|
*/
|
|
460
690
|
url: String;
|
|
461
|
-
|
|
691
|
+
/** {zh}
|
|
692
|
+
* @brief 是否使用硬件解码。<br>
|
|
693
|
+
* - true:硬解;
|
|
694
|
+
* - false:非硬解。
|
|
695
|
+
*
|
|
696
|
+
*/
|
|
462
697
|
/** {en}
|
|
463
698
|
* @brief Whether hardware decoding is used. <br>
|
|
464
699
|
* - true: Hardware decoding is used;
|
|
@@ -466,73 +701,109 @@ export declare class VeLivePlayerStatistics {
|
|
|
466
701
|
*
|
|
467
702
|
*/
|
|
468
703
|
isHardwareDecode: boolean;
|
|
469
|
-
|
|
704
|
+
/** {zh}
|
|
705
|
+
* @brief 视频的编码类型。
|
|
706
|
+
*
|
|
707
|
+
*/
|
|
470
708
|
/** {en}
|
|
471
709
|
* @brief The encoding format of the video.
|
|
472
710
|
*
|
|
473
711
|
*/
|
|
474
712
|
videoCodec: String;
|
|
475
|
-
|
|
713
|
+
/** {zh}
|
|
714
|
+
* @brief 从当前视频开始播放起,累计的卡顿时长,单位为 ms。
|
|
715
|
+
*
|
|
716
|
+
*/
|
|
476
717
|
/** {en}
|
|
477
718
|
* @brief The cumulative duration of stutters that occurred since the beginning of playback, in milliseconds.
|
|
478
719
|
*
|
|
479
720
|
*/
|
|
480
721
|
stallTimeMs: long;
|
|
481
|
-
|
|
722
|
+
/** {zh}
|
|
723
|
+
* @brief 带宽预测 ,单位为 kbps
|
|
724
|
+
*
|
|
725
|
+
*/
|
|
482
726
|
/** {en}
|
|
483
727
|
* @brief Bandwidth estimation, unit is kbps.
|
|
484
728
|
*
|
|
485
729
|
*/
|
|
486
730
|
bandwidthEstimation: long;
|
|
487
|
-
|
|
731
|
+
/** {zh}
|
|
732
|
+
* @brief 当前播放延时,单位为 ms。仅在使用了火山引擎视频直播推流 SDK 时,支持统计播放延时。
|
|
733
|
+
*
|
|
734
|
+
*/
|
|
488
735
|
/** {en}
|
|
489
736
|
* @brief The current playback latency, in milliseconds. The latency data is available only if you use the BytePlus MediaLive Broadcast SDK to push the live stream.
|
|
490
737
|
*
|
|
491
738
|
*/
|
|
492
739
|
delayMs: long;
|
|
493
|
-
|
|
740
|
+
/** {zh}
|
|
741
|
+
* @brief 当前播放视频的宽度,单位为 px。
|
|
742
|
+
*
|
|
743
|
+
*/
|
|
494
744
|
/** {en}
|
|
495
745
|
* @brief The width of the video, in pixels.
|
|
496
746
|
*
|
|
497
747
|
*/
|
|
498
748
|
width: int;
|
|
499
|
-
|
|
749
|
+
/** {zh}
|
|
750
|
+
* @brief 当前播放视频的高度,单位为 px。
|
|
751
|
+
*
|
|
752
|
+
*/
|
|
500
753
|
/** {en}
|
|
501
754
|
* @brief The height of the video, in pixels.
|
|
502
755
|
*
|
|
503
756
|
*/
|
|
504
757
|
height: int;
|
|
505
|
-
|
|
758
|
+
/** {zh}
|
|
759
|
+
* @brief 当前播放视频的帧率,单位为 fps。
|
|
760
|
+
*
|
|
761
|
+
*/
|
|
506
762
|
/** {en}
|
|
507
763
|
* @brief The frame rate of the video, in fps.
|
|
508
764
|
*
|
|
509
765
|
*/
|
|
510
766
|
fps: float;
|
|
511
|
-
|
|
767
|
+
/** {zh}
|
|
768
|
+
* @brief 实时下载的码率,单位为 kbps。
|
|
769
|
+
*
|
|
770
|
+
*/
|
|
512
771
|
/** {en}
|
|
513
772
|
* @brief The downlink bitrate, in Kbps.
|
|
514
773
|
*
|
|
515
774
|
*/
|
|
516
775
|
bitrate: long;
|
|
517
|
-
|
|
776
|
+
/** {zh}
|
|
777
|
+
* @brief 视频播放的缓冲区 buffer 大小,单位为 ms。
|
|
778
|
+
*
|
|
779
|
+
*/
|
|
518
780
|
/** {en}
|
|
519
781
|
* @brief The video buffer, in milliseconds.
|
|
520
782
|
*
|
|
521
783
|
*/
|
|
522
784
|
videoBufferMs: long;
|
|
523
|
-
|
|
785
|
+
/** {zh}
|
|
786
|
+
* @brief 音频播放的缓冲区 buffer 大小,单位为 ms。
|
|
787
|
+
*
|
|
788
|
+
*/
|
|
524
789
|
/** {en}
|
|
525
790
|
* @brief The audio buffer, in milliseconds.
|
|
526
791
|
*
|
|
527
792
|
*/
|
|
528
793
|
audioBufferMs: long;
|
|
529
|
-
|
|
794
|
+
/** {zh}
|
|
795
|
+
* @brief 当前播放的视频格式。
|
|
796
|
+
*
|
|
797
|
+
*/
|
|
530
798
|
/** {en}
|
|
531
799
|
* @brief The video format.
|
|
532
800
|
*
|
|
533
801
|
*/
|
|
534
802
|
format: String;
|
|
535
|
-
|
|
803
|
+
/** {zh}
|
|
804
|
+
* @brief 当前播放的传输协议。
|
|
805
|
+
*
|
|
806
|
+
*/
|
|
536
807
|
/** {en}
|
|
537
808
|
* @brief The transmission protocol of the live stream.
|
|
538
809
|
*
|
|
@@ -540,49 +811,73 @@ export declare class VeLivePlayerStatistics {
|
|
|
540
811
|
protocol: String;
|
|
541
812
|
}
|
|
542
813
|
export declare class VeLivePlayerVideoFrame {
|
|
543
|
-
|
|
814
|
+
/** {zh}
|
|
815
|
+
* @brief 视频帧数据封装格式。详情请参见 [VeLivePlayerVideoBufferType](#VeLivePlayerVideoBufferType)。
|
|
816
|
+
*
|
|
817
|
+
*/
|
|
544
818
|
/** {en}
|
|
545
819
|
* @brief The encapsulation format. See [VeLivePlayerVideoBufferType](#VeLivePlayerVideoBufferType) for details.
|
|
546
820
|
*
|
|
547
821
|
*/
|
|
548
822
|
bufferType: VeLivePlayerVideoBufferType;
|
|
549
|
-
|
|
823
|
+
/** {zh}
|
|
824
|
+
* @brief 视频帧像素格式。详情请参见 [VeLivePlayerPixelFormat](#VeLivePlayerPixelFormat)。
|
|
825
|
+
*
|
|
826
|
+
*/
|
|
550
827
|
/** {en}
|
|
551
828
|
* @brief The pixel format. See [VeLivePlayerPixelFormat](#VeLivePlayerPixelFormat) for details.
|
|
552
829
|
*
|
|
553
830
|
*/
|
|
554
831
|
pixelFormat: VeLivePlayerPixelFormat;
|
|
555
|
-
|
|
832
|
+
/** {zh}
|
|
833
|
+
* @brief 视频宽度,单位为 px。
|
|
834
|
+
*
|
|
835
|
+
*/
|
|
556
836
|
/** {en}
|
|
557
837
|
* @brief The video width, in pixels.
|
|
558
838
|
*
|
|
559
839
|
*/
|
|
560
840
|
width: int;
|
|
561
|
-
|
|
841
|
+
/** {zh}
|
|
842
|
+
* @brief 视频高度,单位为 px。
|
|
843
|
+
*
|
|
844
|
+
*/
|
|
562
845
|
/** {en}
|
|
563
846
|
* @brief The video height, in pixels.
|
|
564
847
|
*
|
|
565
848
|
*/
|
|
566
849
|
height: int;
|
|
567
|
-
|
|
850
|
+
/** {zh}
|
|
851
|
+
* @brief 视频帧的渲染时间戳。单位为 ms。
|
|
852
|
+
*
|
|
853
|
+
*/
|
|
568
854
|
/** {en}
|
|
569
855
|
* @brief The timestamp indicating the time when the video frame is rendered, in milliseconds.
|
|
570
856
|
*
|
|
571
857
|
*/
|
|
572
858
|
pts: long;
|
|
573
|
-
|
|
859
|
+
/** {zh}
|
|
860
|
+
* @brief OpenGL 渲染的视频纹理数据。如果将 [VeLivePlayerPixelFormat](#VeLivePlayerPixelFormat) 设置为`VeLivePlayerPixelFormatTexture`,并将 [VeLivePlayerVideoBufferType](#VeLivePlayerVideoBufferType) 设置为`VeLivePlayerVideoBufferTypeTexture`,SDK 会返回此视频数据类型。有关详细信息,请参阅[VeLivePlayerVideoTexture](#VeLivePlayerVideoTexture)。
|
|
861
|
+
*
|
|
862
|
+
*/
|
|
574
863
|
/** {en}
|
|
575
864
|
* @brief The texture data for OpenGL rendering. The SDK returns this video data type if you set [VeLivePlayerPixelFormat](#VeLivePlayerPixelFormat) to `VeLivePlayerPixelFormatTexture` and set [VeLivePlayerVideoBufferType](#VeLivePlayerVideoBufferType) to `VeLivePlayerVideoBufferTypeTexture`. See [VeLivePlayerVideoTexture](#VeLivePlayerVideoTexture) for details.
|
|
576
865
|
*
|
|
577
866
|
*/
|
|
578
867
|
texture: VeLivePlayerVideoTexture;
|
|
579
|
-
|
|
868
|
+
/** {zh}
|
|
869
|
+
* @brief ByteBuffer 格式的视频数据。如果将 [VeLivePlayerPixelFormat](#VeLivePlayerPixelFormat)设置为`VeLivePlayerPixelFormatRGBA32`,并将 [VeLivePlayerVideoBufferType](#VeLivePlayerVideoBufferType) 设置为`VeLivePlayerVideoBufferTypeByteBuffer`,则 SDK 会返回此视频数据类型。
|
|
870
|
+
*
|
|
871
|
+
*/
|
|
580
872
|
/** {en}
|
|
581
873
|
* @brief The video data in ByteBuffer format. The SDK returns this video data type if you set [VeLivePlayerPixelFormat](#VeLivePlayerPixelFormat) to `VeLivePlayerPixelFormatRGBA32` and set [VeLivePlayerVideoBufferType](#VeLivePlayerVideoBufferType) to `VeLivePlayerVideoBufferTypeByteBuffer`.
|
|
582
874
|
*
|
|
583
875
|
*/
|
|
584
876
|
buffer: ByteBuffer;
|
|
585
|
-
|
|
877
|
+
/** {zh}
|
|
878
|
+
* @brief ByteArray 格式的视频数据。如果将 [VeLivePlayerPixelFormat](#VeLivePlayerPixelFormat) 设置为“VeLivePlayerPixelFormatRGBA32”,并将 [VeLivePlayerVideoBufferType](#VeLivePlayerVideoBufferType) 设置为“VeLivePlayerVideoBufferTypeByteArray”,则 SDK 会返回这种视频数据类型。
|
|
879
|
+
*
|
|
880
|
+
*/
|
|
586
881
|
/** {en}
|
|
587
882
|
* @brief The video data in ByteArray format. The SDK returns this video data type if you set [VeLivePlayerPixelFormat](#VeLivePlayerPixelFormat) to `VeLivePlayerPixelFormatRGBA32` and set [VeLivePlayerVideoBufferType](#VeLivePlayerVideoBufferType) to `VeLivePlayerVideoBufferTypeByteArray`.
|
|
588
883
|
*
|
|
@@ -590,13 +885,19 @@ export declare class VeLivePlayerVideoFrame {
|
|
|
590
885
|
data: ArrayBuffer;
|
|
591
886
|
}
|
|
592
887
|
export declare class VeLivePlayerVideoTexture {
|
|
593
|
-
|
|
888
|
+
/** {zh}
|
|
889
|
+
* @brief 视频纹理 ID。
|
|
890
|
+
*
|
|
891
|
+
*/
|
|
594
892
|
/** {en}
|
|
595
893
|
* @brief The video texture ID.
|
|
596
894
|
*
|
|
597
895
|
*/
|
|
598
896
|
texId: int;
|
|
599
|
-
|
|
897
|
+
/** {zh}
|
|
898
|
+
* @brief OpenGL ES 图形上下文环境,用于自定义渲染。将 EGLContext 绑定到 GLSurfaceView 或 TextureView 上,您可以在被绑定的 View 上进行自定义的 OpenGL ES 渲染。
|
|
899
|
+
*
|
|
900
|
+
*/
|
|
600
901
|
/** {en}
|
|
601
902
|
* @brief OpenGL ES context for custom rendering. After you bind EGLContext to GLSurfaceView or TextureView, you can perform custom OpenGL ES rendering on the bound View.
|
|
602
903
|
*
|
|
@@ -604,13 +905,19 @@ export declare class VeLivePlayerVideoTexture {
|
|
|
604
905
|
eglContext: EGLContext;
|
|
605
906
|
}
|
|
606
907
|
export declare enum VeLivePlayerStreamType {
|
|
607
|
-
|
|
908
|
+
/** {zh}
|
|
909
|
+
* @brief 主路流。
|
|
910
|
+
*
|
|
911
|
+
*/
|
|
608
912
|
/** {en}
|
|
609
913
|
* @brief The primary stream.
|
|
610
914
|
*
|
|
611
915
|
*/
|
|
612
916
|
VeLivePlayerStreamTypeMain = 0,
|
|
613
|
-
|
|
917
|
+
/** {zh}
|
|
918
|
+
* @brief 备路流。
|
|
919
|
+
*
|
|
920
|
+
*/
|
|
614
921
|
/** {en}
|
|
615
922
|
* @brief The backup stream.
|
|
616
923
|
*
|
|
@@ -618,37 +925,55 @@ export declare enum VeLivePlayerStreamType {
|
|
|
618
925
|
VeLivePlayerStreamTypeBackup = 1
|
|
619
926
|
}
|
|
620
927
|
export declare enum VeLivePlayerLogLevel {
|
|
621
|
-
|
|
928
|
+
/** {zh}
|
|
929
|
+
* @brief 输出 VERBOSE、DEBUG、INFO、WARNING 和 ERROR 级别的日志。
|
|
930
|
+
*
|
|
931
|
+
*/
|
|
622
932
|
/** {en}
|
|
623
933
|
* @brief Output logs at the VERBOSE, DEBUG, INFO, WARNING, and ERROR levels.
|
|
624
934
|
*
|
|
625
935
|
*/
|
|
626
936
|
VeLivePlayerLogLevelVerbose = 0,
|
|
627
|
-
|
|
937
|
+
/** {zh}
|
|
938
|
+
* @brief 输出 DEBUG、INFO、WARNING 和 ERROR 级别的日志。
|
|
939
|
+
*
|
|
940
|
+
*/
|
|
628
941
|
/** {en}
|
|
629
942
|
* @brief Output logs at the DEBUG, INFO, WARNING, and ERROR levels.
|
|
630
943
|
*
|
|
631
944
|
*/
|
|
632
945
|
VeLivePlayerLogLevelDebug = 1,
|
|
633
|
-
|
|
946
|
+
/** {zh}
|
|
947
|
+
* @brief 输出 INFO、WARNING 和 ERROR 级别的日志。
|
|
948
|
+
*
|
|
949
|
+
*/
|
|
634
950
|
/** {en}
|
|
635
951
|
* @brief Output logs at the INFO, WARNING, and ERROR levels.
|
|
636
952
|
*
|
|
637
953
|
*/
|
|
638
954
|
VeLivePlayerLogLevelInfo = 2,
|
|
639
|
-
|
|
955
|
+
/** {zh}
|
|
956
|
+
* @brief 输出 WARNING 和 ERROR 级别的日志。
|
|
957
|
+
*
|
|
958
|
+
*/
|
|
640
959
|
/** {en}
|
|
641
960
|
* @brief Output logs at the WARNING and ERROR levels.
|
|
642
961
|
*
|
|
643
962
|
*/
|
|
644
963
|
VeLivePlayerLogLevelWarn = 3,
|
|
645
|
-
|
|
964
|
+
/** {zh}
|
|
965
|
+
* @brief 输出 ERROR 级别的日志。
|
|
966
|
+
*
|
|
967
|
+
*/
|
|
646
968
|
/** {en}
|
|
647
969
|
* @brief Output logs at the ERROR level.
|
|
648
970
|
*
|
|
649
971
|
*/
|
|
650
972
|
VeLivePlayerLogLevelError = 4,
|
|
651
|
-
|
|
973
|
+
/** {zh}
|
|
974
|
+
* @brief 关闭日志打印。
|
|
975
|
+
*
|
|
976
|
+
*/
|
|
652
977
|
/** {en}
|
|
653
978
|
* @brief Disable log printing.
|
|
654
979
|
*
|
|
@@ -656,19 +981,30 @@ export declare enum VeLivePlayerLogLevel {
|
|
|
656
981
|
VeLivePlayerLogLevelNone = 5
|
|
657
982
|
}
|
|
658
983
|
export declare class VeLivePlayerAudioFrame {
|
|
659
|
-
|
|
984
|
+
/** {zh}
|
|
985
|
+
* @brief 音频帧数据封装格式,详情请参见 [VeLivePlayerAudioBufferType](#VeLivePlayerAudioBufferType)。
|
|
986
|
+
*
|
|
987
|
+
*/
|
|
660
988
|
/** {en}
|
|
661
989
|
* @brief The encapsulation format of the audio data. See [VeLivePlayerAudioBufferType](#VeLivePlayerAudioBufferType) for details.
|
|
662
990
|
*
|
|
663
991
|
*/
|
|
664
992
|
bufferType: VeLivePlayerAudioBufferType;
|
|
665
|
-
|
|
993
|
+
/** {zh}
|
|
994
|
+
* @brief 音频采样率,单位为 Hz。
|
|
995
|
+
*
|
|
996
|
+
*/
|
|
666
997
|
/** {en}
|
|
667
998
|
* @brief The audio sample rate, in Hz.
|
|
668
999
|
*
|
|
669
1000
|
*/
|
|
670
1001
|
sampleRate: int;
|
|
671
|
-
|
|
1002
|
+
/** {zh}
|
|
1003
|
+
* @brief 声道数。<br>
|
|
1004
|
+
* - 1:单声道;
|
|
1005
|
+
* - 2:双声道。
|
|
1006
|
+
*
|
|
1007
|
+
*/
|
|
672
1008
|
/** {en}
|
|
673
1009
|
* @brief The number of audio channels. <br>
|
|
674
1010
|
* - 1: Mono;
|
|
@@ -676,31 +1012,46 @@ export declare class VeLivePlayerAudioFrame {
|
|
|
676
1012
|
*
|
|
677
1013
|
*/
|
|
678
1014
|
channels: int;
|
|
679
|
-
|
|
1015
|
+
/** {zh}
|
|
1016
|
+
* @brief 音频位深度。
|
|
1017
|
+
*
|
|
1018
|
+
*/
|
|
680
1019
|
/** {en}
|
|
681
1020
|
* @brief The audio bit depth.
|
|
682
1021
|
*
|
|
683
1022
|
*/
|
|
684
1023
|
bitDepth: int;
|
|
685
|
-
|
|
1024
|
+
/** {zh}
|
|
1025
|
+
* @brief 音频渲染时间戳。单位为 ms。
|
|
1026
|
+
*
|
|
1027
|
+
*/
|
|
686
1028
|
/** {en}
|
|
687
1029
|
* @brief The timestamp indicating the time when the audio is rendered, in milliseconds.
|
|
688
1030
|
*
|
|
689
1031
|
*/
|
|
690
1032
|
pts: long;
|
|
691
|
-
|
|
1033
|
+
/** {zh}
|
|
1034
|
+
* @brief PCM 音频数据。byte[]类型
|
|
1035
|
+
*
|
|
1036
|
+
*/
|
|
692
1037
|
/** {en}
|
|
693
1038
|
* @brief The PCM audio data. byte[] type.
|
|
694
1039
|
*
|
|
695
1040
|
*/
|
|
696
1041
|
bufferArray: ArrayBuffer;
|
|
697
|
-
|
|
1042
|
+
/** {zh}
|
|
1043
|
+
* @brief PCM 音频数据。ByteBuffer[]类型
|
|
1044
|
+
*
|
|
1045
|
+
*/
|
|
698
1046
|
/** {en}
|
|
699
1047
|
* @brief The PCM audio data. ByteBuffer[] type.
|
|
700
1048
|
*
|
|
701
1049
|
*/
|
|
702
1050
|
buffer: Array<ByteBuffer>;
|
|
703
|
-
|
|
1051
|
+
/** {zh}
|
|
1052
|
+
* @brief 音频采样点个数。
|
|
1053
|
+
*
|
|
1054
|
+
*/
|
|
704
1055
|
/** {en}
|
|
705
1056
|
* @brief The number of audio samples.
|
|
706
1057
|
*
|
|
@@ -708,13 +1059,19 @@ export declare class VeLivePlayerAudioFrame {
|
|
|
708
1059
|
samples: int;
|
|
709
1060
|
}
|
|
710
1061
|
export declare enum VeLivePlayerAudioBufferType {
|
|
711
|
-
|
|
1062
|
+
/** {zh}
|
|
1063
|
+
* @brief 未知格式。
|
|
1064
|
+
*
|
|
1065
|
+
*/
|
|
712
1066
|
/** {en}
|
|
713
1067
|
* @brief Unknown format.
|
|
714
1068
|
*
|
|
715
1069
|
*/
|
|
716
1070
|
VeLivePlayerAudioBufferTypeUnknown = 0,
|
|
717
|
-
|
|
1071
|
+
/** {zh}
|
|
1072
|
+
* @brief ByteArray 格式。
|
|
1073
|
+
*
|
|
1074
|
+
*/
|
|
718
1075
|
/** {en}
|
|
719
1076
|
* @brief ByteArray.
|
|
720
1077
|
*
|
|
@@ -722,25 +1079,37 @@ export declare enum VeLivePlayerAudioBufferType {
|
|
|
722
1079
|
VeLivePlayerAudioBufferTypeByteArray = 1
|
|
723
1080
|
}
|
|
724
1081
|
export declare enum VeLivePlayerRotation {
|
|
725
|
-
|
|
1082
|
+
/** {zh}
|
|
1083
|
+
* @brief 关闭旋转。
|
|
1084
|
+
*
|
|
1085
|
+
*/
|
|
726
1086
|
/** {en}
|
|
727
1087
|
* @brief No rotation.
|
|
728
1088
|
*
|
|
729
1089
|
*/
|
|
730
1090
|
VeLivePlayerRotation0 = 0,
|
|
731
|
-
|
|
1091
|
+
/** {zh}
|
|
1092
|
+
* @brief 顺时针旋转 90 度。
|
|
1093
|
+
*
|
|
1094
|
+
*/
|
|
732
1095
|
/** {en}
|
|
733
1096
|
* @brief Rotate 90 degrees clockwise.
|
|
734
1097
|
*
|
|
735
1098
|
*/
|
|
736
1099
|
VeLivePlayerRotation90 = 1,
|
|
737
|
-
|
|
1100
|
+
/** {zh}
|
|
1101
|
+
* @brief 顺时针旋转 180 度。
|
|
1102
|
+
*
|
|
1103
|
+
*/
|
|
738
1104
|
/** {en}
|
|
739
1105
|
* @brief Rotate 180 degrees clockwise.
|
|
740
1106
|
*
|
|
741
1107
|
*/
|
|
742
1108
|
VeLivePlayerRotation180 = 2,
|
|
743
|
-
|
|
1109
|
+
/** {zh}
|
|
1110
|
+
* @brief 顺时针旋转 270 度。
|
|
1111
|
+
*
|
|
1112
|
+
*/
|
|
744
1113
|
/** {en}
|
|
745
1114
|
* @brief Rotate 270 degrees clockwise.
|
|
746
1115
|
*
|