@volcengine/react-native-live-pull 1.0.2 → 1.0.3-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 (33) hide show
  1. package/README.md +1 -0
  2. package/android/build.gradle +1 -1
  3. package/android/src/main/java/com/volcengine/velive/rn/pull/VolcLiveModule.java +1 -1
  4. package/android/src/main/java/com/volcengine/velive/rn/pull/VolcViewManager.java +1 -1
  5. package/ios/VeLivePullView.m +1 -1
  6. package/ios/VeLivePullViewManager.m +1 -1
  7. package/lib/commonjs/index.js +12227 -8161
  8. package/lib/module/index.js +12228 -8160
  9. package/lib/typescript/codegen/android/api.d.ts +76 -22
  10. package/lib/typescript/codegen/android/callback.d.ts +21 -4
  11. package/lib/typescript/codegen/android/errorcode.d.ts +25 -2
  12. package/lib/typescript/codegen/android/external.d.ts +1 -0
  13. package/lib/typescript/codegen/android/index.d.ts +1 -0
  14. package/lib/typescript/codegen/android/keytype.d.ts +119 -15
  15. package/lib/typescript/codegen/android/types.d.ts +7 -6
  16. package/lib/typescript/codegen/ios/api.d.ts +13 -27
  17. package/lib/typescript/codegen/ios/callback.d.ts +19 -33
  18. package/lib/typescript/codegen/ios/external.d.ts +1 -0
  19. package/lib/typescript/codegen/ios/index.d.ts +1 -0
  20. package/lib/typescript/codegen/ios/keytype.d.ts +0 -56
  21. package/lib/typescript/codegen/ios/types.d.ts +16 -5
  22. package/lib/typescript/codegen/pack/api.d.ts +93 -117
  23. package/lib/typescript/codegen/pack/callback.d.ts +73 -56
  24. package/lib/typescript/codegen/pack/errorcode.d.ts +65 -45
  25. package/lib/typescript/codegen/pack/external.d.ts +1 -0
  26. package/lib/typescript/codegen/pack/index.d.ts +2 -1
  27. package/lib/typescript/codegen/pack/keytype.d.ts +501 -544
  28. package/lib/typescript/codegen/pack/types.d.ts +68 -1
  29. package/lib/typescript/component.d.ts +9 -2
  30. package/lib/typescript/core/keytype.d.ts +1 -1
  31. package/lib/typescript/platforms/ios/extends.d.ts +2 -0
  32. package/package.json +6 -4
  33. package/react-native-velive-pull.podspec +1 -1
@@ -2,22 +2,27 @@ import { int, String, List, long, float, ByteBuffer, EGLContext } from './types'
2
2
  export declare enum VeLivePlayerResolution {
3
3
  /** {zh}
4
4
  * @brief 原始流。
5
+ *
5
6
  */
6
7
  VeLivePlayerResolutionOrigin = 0,
7
8
  /** {zh}
8
9
  * @brief UHD 超高清。
10
+ *
9
11
  */
10
12
  VeLivePlayerResolutionUHD = 1,
11
13
  /** {zh}
12
14
  * @brief HD 高清。
15
+ *
13
16
  */
14
17
  VeLivePlayerResolutionHD = 2,
15
18
  /** {zh}
16
19
  * @brief SD 标清。
20
+ *
17
21
  */
18
22
  VeLivePlayerResolutionSD = 3,
19
23
  /** {zh}
20
24
  * @brief LD 低清。
25
+ *
21
26
  */
22
27
  VeLivePlayerResolutionLD = 4
23
28
  }
@@ -26,186 +31,220 @@ export declare class VeLivePlayerConfiguration {
26
31
  * @brief 是否开启 SEI 消息的解析,默认值为 false。<br>
27
32
  * - true:开启;
28
33
  * - false:关闭。
34
+ *
29
35
  */
30
36
  enableSei: boolean;
31
37
  /** {zh}
32
38
  * @brief 是否开启硬件解码功能,默认值为 true。开启硬件解码后,如果出现硬件解码启动失败或硬件解码失败的情况,播放器内部会自动切换为软解。<br>
33
39
  * - true:开启;
34
40
  * - false:关闭。
41
+ *
35
42
  */
36
43
  enableHardwareDecode: boolean;
37
44
  /** {zh}
38
45
  * @brief 网络超时时间,单位为 ms,默认值为 5000。播放器发起网络请求,如果超过了该时间仍未收到服务器响应,则认为网络请求失败。
46
+ *
39
47
  */
40
48
  networkTimeoutMs: int;
41
49
  /** {zh}
42
50
  * @brief 重试时间间隔,单位为 ms,默认值为 5000,仅在无备流时生效。<br>
43
51
  * - 在无备流的场景下,若遇到网络异常等问题导致播放中断,播放器会立即进行重试,前三次重试为立即执行,第四次及之后的重试将按照设置的重试时间间隔执行;
44
52
  * - 在有备流的场景下,重试时间间隔将不生效,所有重试均会立即执行。
53
+ *
45
54
  */
46
55
  retryIntervalTimeMs: int;
47
56
  /** {zh}
48
57
  * @brief 在网络连接错误的情况下,播放器最大重试次数,默认值为 5。如果取值为 0,表示关闭播放器内部重试。<br>
49
58
  * - 在无备流的场景下,每次重试,会消耗一次重试次数;
50
59
  * - 在有备流的场景下,每次主备流切换,会消耗一次重试次数。
60
+ *
51
61
  */
52
62
  retryMaxCount: int;
53
63
  /** {zh}
54
64
  * @brief 是否开启本地 DNS 预解析,默认值为 false。开启本地 DNS 预解析可以缩短启播时间。如果本地 DNS 预解析出现异常,可能会影响播放器的正常使用。<br>
55
65
  * - true:开启;
56
66
  * - false:关闭。
67
+ *
57
68
  */
58
69
  enableLiveDNS: boolean;
59
70
  /** {zh}
60
71
  * @brief 是否开启播放信息周期性回调。默认值为 false。周期性回调参数详细说明请参见 [VeLivePlayerStatistics](188115#VeLivePlayerStatistics) 。当 `enableStatisticsCallback` 为 `true`,且 [statisticsCallbackInterval](188115#VeLivePlayerConfiguration-statisticscallbackinterval) 大于 0 时,播放器会在指定的时间间隔内,周期性地回调播放器状态信息。<br>
61
72
  * - true:开启;
62
73
  * - false:关闭。
74
+ *
63
75
  */
64
76
  enableStatisticsCallback: boolean;
65
77
  /** {zh}
66
78
  * @brief 播放信息周期性回调的时间间隔,单位为 s,默认值为 5。当 [enableStatisticsCallback](188115#VeLivePlayerConfiguration-enablestatisticscallback) 为 `true`,且 `statisticsCallbackInterval` 大于 0 时,播放器会在指定的时间间隔内,周期性地回调播放器状态信息。
79
+ *
67
80
  */
68
81
  statisticsCallbackInterval: int;
69
82
  }
70
83
  export declare enum VeLivePlayerFormat {
71
84
  /** {zh}
72
85
  * @brief FLV 格式。
86
+ *
73
87
  */
74
88
  VeLivePlayerFormatFLV = 0,
75
89
  /** {zh}
76
90
  * @brief HLS 格式。
91
+ *
77
92
  */
78
93
  VeLivePlayerFormatHLS = 1,
79
94
  /** {zh}
80
95
  * @brief RTM 格式。
96
+ *
81
97
  */
82
98
  VeLivePlayerFormatRTM = 2
83
99
  }
84
100
  export declare enum VeLivePlayerProtocol {
85
101
  /** {zh}
86
102
  * @brief TCP 协议。
103
+ *
87
104
  */
88
105
  VeLivePlayerProtocolTCP = 0,
89
106
  /** {zh}
90
107
  * @brief QUIC 协议。
108
+ *
91
109
  */
92
110
  VeLivePlayerProtocolQUIC = 1,
93
111
  /** {zh}
94
112
  * @brief TLS 协议。
113
+ *
95
114
  */
96
115
  VeLivePlayerProtocolTLS = 2
97
116
  }
98
117
  export declare enum VeLivePlayerMirror {
99
118
  /** {zh}
100
119
  * @brief 关闭镜像。
120
+ *
101
121
  */
102
122
  VeLivePlayerMirrorNone = 0,
103
123
  /** {zh}
104
124
  * @brief 水平镜像。
125
+ *
105
126
  */
106
127
  VeLivePlayerMirrorHorizontal = 1,
107
128
  /** {zh}
108
129
  * @brief 垂直镜像。
130
+ *
109
131
  */
110
132
  VeLivePlayerMirrorVertical = 2
111
133
  }
112
134
  export declare enum VeLivePlayerVideoBufferType {
113
135
  /** {zh}
114
136
  * @brief 未知格式。
137
+ *
115
138
  */
116
139
  VeLivePlayerVideoBufferTypeUnknown = 0,
117
140
  /** {zh}
118
141
  * @brief ByteBuffer 格式。
142
+ *
119
143
  */
120
144
  VeLivePlayerVideoBufferTypeByteBuffer = 1,
121
145
  /** {zh}
122
146
  * @brief ByteArray 格式。
147
+ *
123
148
  */
124
149
  VeLivePlayerVideoBufferTypeByteArray = 2,
125
150
  /** {zh}
126
151
  * @brief 纹理格式。
152
+ *
127
153
  */
128
154
  VeLivePlayerVideoBufferTypeTexture = 3
129
155
  }
130
156
  export declare enum VeLivePlayerStatus {
131
157
  /** {zh}
132
158
  * @brief 停止播放状态。
159
+ *
133
160
  */
134
161
  VeLivePlayerStatusStopped = 0,
135
162
  /** {zh}
136
163
  * @brief 暂停播放状态。
164
+ *
137
165
  */
138
166
  VeLivePlayerStatusPaused = 1,
139
167
  /** {zh}
140
168
  * @brief 播放器准备完成,等待渲染。
169
+ *
141
170
  */
142
171
  VeLivePlayerStatusPrepared = 2,
143
172
  /** {zh}
144
173
  * @brief 正在播放,即首帧渲染完成且播放器未发生错误。
174
+ *
145
175
  */
146
176
  VeLivePlayerStatusPlaying = 3,
147
177
  /** {zh}
148
178
  * @brief 播放器发生错误。
179
+ *
149
180
  */
150
181
  VeLivePlayerStatusError = 4
151
182
  }
152
183
  export declare class VeLivePlayerLogConfig {
153
- /** {zh}
154
- * @hidden (Android)
155
- */
156
- deviceID: String;
157
184
  /** {zh}
158
185
  * @brief 日志文件保存路径。缺省情况下,使用默认路径 `/cache/Log`。
186
+ *
159
187
  */
160
188
  logPath: String;
161
189
  /** {zh}
162
190
  * @brief 日志文件整体最大尺寸,单位为 M,默认值为 100。
191
+ *
163
192
  */
164
193
  maxLogSizeM: int;
165
194
  /** {zh}
166
195
  * @brief 单个日志文件最大尺寸,单位为 M,默认值为 2。
196
+ *
167
197
  */
168
198
  singleLogSizeM: int;
169
199
  /** {zh}
170
200
  * @brief 日志文件有效期,过期后下次创建日志文件时会删除之前的文件。单位为 s,默认值为 604,800,即 7 天。
201
+ *
171
202
  */
172
203
  logExpireTimeS: int;
173
204
  /** {zh}
174
205
  * @brief 日志是否打印到控制台输出,默认值为 true。<br>
175
206
  * - true:打印;
176
207
  * - false:不打印。
208
+ *
177
209
  */
178
210
  enableConsole: boolean;
179
211
  /** {zh}
180
212
  * @brief 日志是否打印到文件,默认值为 true。<br>
181
213
  * - true:打印;
182
214
  * - false:不打印。
215
+ *
183
216
  */
184
217
  enableLogFile: boolean;
185
218
  /** {zh}
186
219
  * @brief 日志上报路径。
220
+ *
187
221
  */
188
222
  queryUrl: String;
189
223
  /** {zh}
190
224
  * @brief 是否轮询。<br>
191
225
  * - `true`:开启;
192
226
  * - `false`:关闭。
227
+ *
193
228
  */
194
229
  enableThreadLoop: boolean;
195
230
  /** {zh}
196
231
  * @brief 轮询间隔时间, 单位为 ms。取值范围:大于 0。
232
+ *
197
233
  */
198
234
  intervalMS: int;
199
235
  /** {zh}
200
236
  * @brief HTTP 请求超时时间。取值范围:大于 0。
237
+ *
201
238
  */
202
239
  httpTimeoutMS: int;
203
240
  /** {zh}
204
241
  * @brief 文件上传超时时间。取值范围:大于 0。
242
+ *
205
243
  */
206
244
  httpUploadFileTimeoutMS: int;
207
245
  /** {zh}
208
246
  * @brief 允许写入的日志等级,默认为 VeLivePlayerLogLevelDebug,详情请参见 [VeLivePlayerLogLevel](#VeLivePlayerLogLevel)。
247
+ *
209
248
  */
210
249
  logLevel: VeLivePlayerLogLevel;
211
250
  }
@@ -214,294 +253,359 @@ export declare class VeLivePlayerStreamData {
214
253
  * @brief 是否打开 ABR 平滑切档功能,默认为 false。<br>
215
254
  * - true:开启;
216
255
  * - false:关闭。
256
+ *
217
257
  */
218
258
  enableABR: boolean;
219
259
  /** {zh}
220
260
  * @brief 是否打开主备切换,默认为 false。<br>
221
261
  * - true:开启;
222
262
  * - false:关闭。
263
+ *
223
264
  */
224
265
  enableMainBackupSwitch: boolean;
225
266
  /** {zh}
226
- * @brief 播放器的默认清晰度档位,默认使用原始流清晰度。详情请参见 {@link #VeLivePlayerResolution VeLivePlayerResolution}。
267
+ * @brief 播放器的默认清晰度档位,默认使用原始流清晰度。详情请参见 VeLivePlayerResolution{@link #VeLivePlayerResolution}。
268
+ *
227
269
  */
228
270
  defaultResolution: VeLivePlayerResolution;
229
271
  /** {zh}
230
- * @brief 播放器的默认播放格式,默认值为 FLV。详情请参见 {@link #VeLivePlayerFormat VeLivePlayerFormat}。
272
+ * @brief 播放器的默认播放格式,默认值为 FLV。详情请参见 VeLivePlayerFormat{@link #VeLivePlayerFormat}。
273
+ *
231
274
  */
232
275
  defaultFormat: VeLivePlayerFormat;
233
276
  /** {zh}
234
- * @brief 播放器的默认播放传输层协议,默认值为 TCP。详情请参见 {@link #VeLivePlayerProtocol VeLivePlayerProtocol}。
277
+ * @brief 播放器的默认播放传输层协议,默认值为 TCP。详情请参见 VeLivePlayerProtocol{@link #VeLivePlayerProtocol}。
278
+ *
235
279
  */
236
280
  defaultProtocol: VeLivePlayerProtocol;
237
281
  /** {zh}
238
282
  * @brief 主路流地址列表,详情请参见 [VeLivePlayerStream](#VeLivePlayerStreamData-VeLivePlayerStream)。
283
+ *
239
284
  */
240
285
  mainStreamList: List<VeLivePlayerStream>;
241
286
  /** {zh}
242
287
  * @brief 备路流地址列表。详情请参见 [VeLivePlayerStream](#VeLivePlayerStreamData-VeLivePlayerStream)。
288
+ *
243
289
  */
244
290
  backupStreamList: List<VeLivePlayerStream>;
245
291
  }
246
292
  export declare enum VeLivePlayerResolutionSwitchReason {
247
293
  /** {zh}
248
294
  * @brief ABR 自动切档。
295
+ *
249
296
  */
250
297
  VeLiveplayerResolutionSwitchByAuto = 0,
251
298
  /** {zh}
252
299
  * @brief 手动切换档位。
300
+ *
253
301
  */
254
302
  VeLiveplayerResolutionSwitchByManual = 1
255
303
  }
256
304
  export declare class VeLivePlayerStream {
305
+ constructor();
257
306
  /** {zh}
258
307
  * @brief 播放地址。
308
+ *
259
309
  */
260
310
  url: String;
261
311
  /** {zh}
262
- * @brief 清晰度档位。详情请参见 {@link #VeLivePlayerResolution VeLivePlayerResolution}。
312
+ * @brief 清晰度档位。详情请参见 VeLivePlayerResolution{@link #VeLivePlayerResolution}。
313
+ *
263
314
  */
264
315
  resolution: VeLivePlayerResolution;
265
316
  /** {zh}
266
317
  * @brief 播放码率,单位为 kbps。
318
+ *
267
319
  */
268
320
  bitrate: long;
269
321
  /** {zh}
270
- * @brief 播放格式。详情请参见 {@link #VeLivePlayerFormat VeLivePlayerFormat}。
322
+ * @brief 播放格式。详情请参见 VeLivePlayerFormat{@link #VeLivePlayerFormat}。
323
+ *
271
324
  */
272
325
  format: VeLivePlayerFormat;
273
326
  /** {zh}
274
- * @brief 播放流类型为主路或备路。详情请参见 {@link #VeLivePlayerStreamType VeLivePlayerStreamType}。
327
+ * @brief 播放流类型为主路或备路。详情请参见 VeLivePlayerStreamType{@link #VeLivePlayerStreamType}。
328
+ *
275
329
  */
276
330
  streamType: VeLivePlayerStreamType;
277
- constructor();
278
331
  }
279
332
  export declare enum VeLivePlayerFillMode {
280
333
  /** {zh}
281
334
  * @brief 显示完整的视频帧。视频帧等比缩放,直至视频帧恰好在画布上全部显示。如果视频帧长宽比例与画布不同,视窗上未被视频帧填满区域将填充为黑色。
335
+ *
282
336
  */
283
337
  VeLivePlayerFillModeAspectFit = 0,
284
338
  /** {zh}
285
339
  * @brief 视频帧自适应画布。视频帧非等比缩放,直至填满画布。在此过程中,视频帧的长宽比例可能会发生变化。
340
+ *
286
341
  */
287
342
  VeLivePlayerFillModeFullFill = 1,
288
343
  /** {zh}
289
344
  * @brief 视频填满画布。视频帧等比缩放,直至填满画布,超出屏幕的部分将被裁剪,画面可能不完整。
345
+ *
290
346
  */
291
347
  VeLivePlayerFillModeAspectFill = 2
292
348
  }
293
349
  export declare enum VeLivePlayerPixelFormat {
294
350
  /** {zh}
295
351
  * @brief 未知格式。
352
+ *
296
353
  */
297
354
  VeLivePlayerPixelFormatUnknown = 0,
298
355
  /** {zh}
299
356
  * @brief RGBA8888 格式。
357
+ *
300
358
  */
301
359
  VeLivePlayerPixelFormatRGBA32 = 1,
302
360
  /** {zh}
303
361
  * @brief 纹理格式。
362
+ *
304
363
  */
305
364
  VeLivePlayerPixelFormatTexture = 2
306
365
  }
307
366
  export declare class VeLivePlayerStatistics {
367
+ constructor();
308
368
  /** {zh}
309
369
  * @brief 当前直播的播放地址。
370
+ *
310
371
  */
311
372
  url: String;
312
373
  /** {zh}
313
374
  * @brief 是否使用硬件解码。<br>
314
375
  * - true:硬解;
315
376
  * - false:非硬解。
377
+ *
316
378
  */
317
379
  isHardwareDecode: boolean;
318
380
  /** {zh}
319
381
  * @brief 视频的编码类型。
382
+ *
320
383
  */
321
384
  videoCodec: String;
322
385
  /** {zh}
323
386
  * @brief 从当前视频开始播放起,累计的卡顿时长,单位为 ms。
387
+ *
324
388
  */
325
389
  stallTimeMs: long;
326
390
  /** {zh}
327
391
  * @brief 带宽预测 ,单位为 kbps
392
+ *
328
393
  */
329
394
  bandwidthEstimation: long;
330
395
  /** {zh}
331
396
  * @brief 当前播放延时,单位为 ms。仅在使用了火山引擎视频直播推流 SDK 时,支持统计播放延时。
397
+ *
332
398
  */
333
399
  delayMs: long;
334
400
  /** {zh}
335
401
  * @brief 当前播放视频的宽度,单位为 px。
402
+ *
336
403
  */
337
404
  width: int;
338
405
  /** {zh}
339
406
  * @brief 当前播放视频的高度,单位为 px。
407
+ *
340
408
  */
341
409
  height: int;
342
410
  /** {zh}
343
411
  * @brief 当前播放视频的帧率,单位为 fps。
412
+ *
344
413
  */
345
414
  fps: float;
346
415
  /** {zh}
347
416
  * @brief 实时下载的码率,单位为 kbps。
417
+ *
348
418
  */
349
419
  bitrate: long;
350
420
  /** {zh}
351
421
  * @brief 视频播放的缓冲区 buffer 大小,单位为 ms。
422
+ *
352
423
  */
353
424
  videoBufferMs: long;
354
425
  /** {zh}
355
426
  * @brief 音频播放的缓冲区 buffer 大小,单位为 ms。
427
+ *
356
428
  */
357
429
  audioBufferMs: long;
358
430
  /** {zh}
359
431
  * @brief 当前播放的视频格式。
432
+ *
360
433
  */
361
434
  format: String;
362
435
  /** {zh}
363
436
  * @brief 当前播放的传输协议。
437
+ *
364
438
  */
365
439
  protocol: String;
366
- constructor();
367
440
  }
368
441
  export declare class VeLivePlayerVideoFrame {
369
442
  /** {zh}
370
- * @brief 视频帧数据封装格式。详情请参见 {@link #VeLivePlayerVideoBufferType VeLivePlayerVideoBufferType}。
443
+ * @brief 视频帧数据封装格式。详情请参见 VeLivePlayerVideoBufferType{@link #VeLivePlayerVideoBufferType}。
444
+ *
371
445
  */
372
446
  bufferType: VeLivePlayerVideoBufferType;
373
447
  /** {zh}
374
- * @brief 视频帧像素格式。详情请参见 {@link #VeLivePlayerPixelFormat VeLivePlayerPixelFormat}。
448
+ * @brief 视频帧像素格式。详情请参见 VeLivePlayerPixelFormat{@link #VeLivePlayerPixelFormat}。
449
+ *
375
450
  */
376
451
  pixelFormat: VeLivePlayerPixelFormat;
377
452
  /** {zh}
378
453
  * @brief 视频宽度,单位为 px。
454
+ *
379
455
  */
380
456
  width: int;
381
457
  /** {zh}
382
458
  * @brief 视频高度,单位为 px。
459
+ *
383
460
  */
384
461
  height: int;
385
462
  /** {zh}
386
463
  * @brief 视频帧的渲染时间戳。单位为 ms。
464
+ *
387
465
  */
388
466
  pts: long;
389
467
  /** {zh}
390
- * @brief `pixelFormat` 为 `VeLivePlayerPixelFormatTexture` 时的视频数据,承载用于 OpenGL 渲染的纹理数据。详情请参见 {@link #VeLivePlayerVideoTexture VeLivePlayerVideoTexture}。
468
+ * @brief `pixelFormat` 为 `VeLivePlayerPixelFormatTexture` 时的视频数据,承载用于 OpenGL 渲染的纹理数据。详情请参见 VeLivePlayerVideoTexture{@link #VeLivePlayerVideoTexture}。
469
+ *
391
470
  */
392
471
  texture: VeLivePlayerVideoTexture;
393
472
  /** {zh}
394
473
  * @brief `pixelFormat` 为 `VeLivePlayerPixelFormatRGBA32` 时的视频数据,ByteBuffer 格式。
474
+ *
395
475
  */
396
476
  buffer: ByteBuffer;
397
477
  /** {zh}
398
478
  * @brief `pixelFormat` 为 `VeLivePlayerPixelFormatRGBA32` 时的视频数据,ByteArray 格式。
479
+ *
399
480
  */
400
481
  data: ArrayBuffer;
401
482
  }
402
483
  export declare class VeLivePlayerVideoTexture {
403
484
  /** {zh}
404
485
  * @brief 视频纹理 ID。
486
+ *
405
487
  */
406
488
  texId: int;
407
489
  /** {zh}
408
490
  * @brief OpenGL ES 图形上下文环境,用于自定义渲染。将 EGLContext 绑定到 GLSurfaceView 或 TextureView 上,您可以在被绑定的 View 上进行自定义的 OpenGL ES 渲染。
491
+ *
409
492
  */
410
493
  eglContext: EGLContext;
411
494
  }
412
495
  export declare enum VeLivePlayerStreamType {
413
496
  /** {zh}
414
497
  * @brief 主路流。
498
+ *
415
499
  */
416
500
  VeLivePlayerStreamTypeMain = 0,
417
501
  /** {zh}
418
502
  * @brief 备路流。
503
+ *
419
504
  */
420
505
  VeLivePlayerStreamTypeBackup = 1
421
506
  }
422
507
  export declare enum VeLivePlayerLogLevel {
423
508
  /** {zh}
424
509
  * @brief 输出 VERBOSE、DEBUG、INFO、WARNING 和 ERROR 级别的日志。
510
+ *
425
511
  */
426
512
  VeLivePlayerLogLevelVerbose = 0,
427
513
  /** {zh}
428
514
  * @brief 输出 DEBUG、INFO、WARNING 和 ERROR 级别的日志。
515
+ *
429
516
  */
430
517
  VeLivePlayerLogLevelDebug = 1,
431
518
  /** {zh}
432
519
  * @brief 输出 INFO、WARNING 和 ERROR 级别的日志。
520
+ *
433
521
  */
434
522
  VeLivePlayerLogLevelInfo = 2,
435
523
  /** {zh}
436
524
  * @brief 输出 WARNING 和 ERROR 级别的日志。
525
+ *
437
526
  */
438
527
  VeLivePlayerLogLevelWarn = 3,
439
528
  /** {zh}
440
529
  * @brief 输出 ERROR 级别的日志。
530
+ *
441
531
  */
442
532
  VeLivePlayerLogLevelError = 4,
443
533
  /** {zh}
444
534
  * @brief 关闭日志打印。
535
+ *
445
536
  */
446
537
  VeLivePlayerLogLevelNone = 5
447
538
  }
448
539
  export declare class VeLivePlayerAudioFrame {
449
540
  /** {zh}
450
541
  * @brief 音频帧数据封装格式,详情请参见 [VeLivePlayerAudioBufferType](188115#VeLivePlayerAudioBufferType)。
542
+ *
451
543
  */
452
544
  bufferType: VeLivePlayerAudioBufferType;
453
545
  /** {zh}
454
546
  * @brief 音频采样率,单位为 Hz。
547
+ *
455
548
  */
456
549
  sampleRate: int;
457
550
  /** {zh}
458
551
  * @brief 声道数。<br>
459
552
  * - 1:单声道;
460
553
  * - 2:双声道。
554
+ *
461
555
  */
462
556
  channels: int;
463
557
  /** {zh}
464
558
  * @brief 音频位深度。
559
+ *
465
560
  */
466
561
  bitDepth: int;
467
562
  /** {zh}
468
563
  * @brief 音频渲染时间戳。单位为 ms。
564
+ *
469
565
  */
470
566
  pts: long;
471
567
  /** {zh}
472
568
  * @brief PCM 音频数据。
569
+ *
473
570
  */
474
571
  buffer: ArrayBuffer;
475
572
  /** {zh}
476
573
  * @brief 音频采样点个数。
574
+ *
477
575
  */
478
576
  samples: int;
479
577
  }
480
578
  export declare enum VeLivePlayerAudioBufferType {
481
579
  /** {zh}
482
580
  * @brief 未知格式。
581
+ *
483
582
  */
484
583
  VeLivePlayerAudioBufferTypeUnknown = 0,
485
584
  /** {zh}
486
585
  * @brief ByteArray 格式。
586
+ *
487
587
  */
488
588
  VeLivePlayerAudioBufferTypeByteArray = 1
489
589
  }
490
590
  export declare enum VeLivePlayerRotation {
491
591
  /** {zh}
492
592
  * @brief 关闭旋转。
593
+ *
493
594
  */
494
595
  VeLivePlayerRotation0 = 0,
495
596
  /** {zh}
496
597
  * @brief 顺时针旋转 90 度。
598
+ *
497
599
  */
498
600
  VeLivePlayerRotation90 = 1,
499
601
  /** {zh}
500
602
  * @brief 顺时针旋转 180 度。
603
+ *
501
604
  */
502
605
  VeLivePlayerRotation180 = 2,
503
606
  /** {zh}
504
607
  * @brief 顺时针旋转 270 度。
608
+ *
505
609
  */
506
610
  VeLivePlayerRotation270 = 3
507
611
  }
@@ -7,11 +7,13 @@ export type double = number;
7
7
  export type long = number;
8
8
  export type Integer = number;
9
9
  export type Double = number;
10
- export type List<T> = Array<T>;
11
- export type list<T> = Array<T>;
12
- export type ArrayList<T> = Array<T>;
13
- export type Map<K extends keyof any, V> = Record<K, V>;
14
- export type set<T> = Set<T>;
10
+ export type List<T = any> = Array<T>;
11
+ export type list<T = any> = Array<T>;
12
+ export type ArrayList<T = any> = Array<T>;
13
+ export type Map<K extends keyof any = any, V = any> = Record<K, V>;
14
+ export type HashMap<K extends keyof any = any, V = any> = Record<K, V>;
15
+ export type Pair<K extends keyof any = any, V = any> = Record<K, V>;
16
+ export type set<T = any> = Set<T>;
15
17
  export type map = Object;
16
18
  export type struct = Object;
17
19
  export type Bitmap = unknown;
@@ -26,5 +28,4 @@ export type View = unknown;
26
28
  export type Intent = unknown;
27
29
  export type Context = unknown;
28
30
  export type Bundle = any;
29
- export type Error = any;
30
31
  export type JSONObject = any;