@byteplus/react-native-live-pull 1.5.1-rc.3 → 1.5.2-rc.0

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