@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,610 +2,656 @@ import * as $p_a from '../android/index';
2
2
  import * as $p_i from '../ios/index';
3
3
  /** {zh}
4
4
  * @detail keytype
5
- * @brief 直播播放器的清晰度档位。
5
+ * @brief 视频顺时针旋转角度。
6
+ *
6
7
  */
7
-
8
- export declare enum VeLivePlayerResolution {
9
- /** {zh}
10
- * @brief 原始流。
11
- */
12
-
13
- VeLivePlayerResolutionOrigin = 0,
8
+ export declare enum VeLivePlayerRotation {
14
9
  /** {zh}
15
- * @brief UHD 超高清。
10
+ * @brief 关闭旋转。
11
+ *
16
12
  */
17
-
18
- VeLivePlayerResolutionUHD = 1,
13
+ VeLivePlayerRotation0 = 0,
19
14
  /** {zh}
20
- * @brief HD 高清。
15
+ * @brief 顺时针旋转 90 度。
16
+ *
21
17
  */
22
-
23
- VeLivePlayerResolutionHD = 2,
18
+ VeLivePlayerRotation90 = 1,
24
19
  /** {zh}
25
- * @brief SD 标清。
20
+ * @brief 顺时针旋转 180 度。
21
+ *
26
22
  */
27
-
28
- VeLivePlayerResolutionSD = 3,
23
+ VeLivePlayerRotation180 = 2,
29
24
  /** {zh}
30
- * @brief LD 低清。
25
+ * @brief 顺时针旋转 270 度。
26
+ *
31
27
  */
32
-
33
- VeLivePlayerResolutionLD = 4
34
- }
35
- export declare class t_VeLivePlayerResolution {
36
- static ts_to_android(value: VeLivePlayerResolution): $p_a.VeLivePlayerResolution;
37
- static android_to_ts(value: $p_a.VeLivePlayerResolution): VeLivePlayerResolution;
38
- static ts_to_ios(value: VeLivePlayerResolution): $p_i.VeLivePlayerResolution;
39
- static ios_to_ts(value: $p_i.VeLivePlayerResolution): VeLivePlayerResolution;
28
+ VeLivePlayerRotation270 = 3
40
29
  }
41
30
  /** {zh}
42
31
  * @detail keytype
43
- * @brief 播放器初始化相关配置。
32
+ * @brief 播放地址相关配置。
44
33
  */
45
-
46
- export declare class VeLivePlayerConfiguration {
34
+ export declare class VeLivePlayerStreamData {
47
35
  protected _instance: any;
48
- protected __init(...args: any[]): void;
49
- protected __new_instance(...args: any[]): $p_a.VeLivePlayerConfiguration | $p_i.VeLivePlayerConfiguration;
50
36
  /** {zh}
51
- * @brief 是否开启 SEI 消息的解析,默认值为 false
52
- * - true:开启;
53
- * - false:关闭。
54
- */
55
-
56
- get enableSei(): boolean;
57
- set enableSei(value: boolean);
58
- /** {zh}
59
- * @brief 是否开启硬件解码功能,默认值为 true。开启硬件解码后,如果出现硬件解码启动失败或硬件解码失败的情况,播放器内部会自动切换为软解。
60
- * - true:开启;
61
- * - false:关闭。
37
+ * @brief 主路流地址列表,详情请参见 [VeLivePlayerStream](#VeLivePlayerStreamData-VeLivePlayerStream)
38
+ *
62
39
  */
63
40
 
64
- get enableHardwareDecode(): boolean;
65
- set enableHardwareDecode(value: boolean);
41
+ get mainStreamList(): VeLivePlayerStream[];
42
+ set mainStreamList(value: VeLivePlayerStream[]);
66
43
  /** {zh}
67
- * @brief 网络超时时间,单位为 ms,默认值为 5000。播放器发起网络请求,如果超过了该时间仍未收到服务器响应,则认为网络请求失败。
44
+ * @brief 备路流地址列表。详情请参见 [VeLivePlayerStream](#VeLivePlayerStreamData-VeLivePlayerStream)。
45
+ *
68
46
  */
69
47
 
70
- get networkTimeoutMs(): number;
71
- set networkTimeoutMs(value: number);
48
+ get backupStreamList(): VeLivePlayerStream[];
49
+ set backupStreamList(value: VeLivePlayerStream[]);
72
50
  /** {zh}
73
- * @brief 重试时间间隔,单位为 ms,默认值为 5000,仅在无备流时生效。
74
- * - 在无备流的场景下,若遇到网络异常等问题导致播放中断,播放器会立即进行重试,前三次重试为立即执行,第四次及之后的重试将按照设置的重试时间间隔执行;
75
- * - 在有备流的场景下,重试时间间隔将不生效,所有重试均会立即执行。
51
+ * @brief 是否打开 ABR 平滑切档功能,默认为 false。<br>
52
+ * - true:开启;
53
+ * - false:关闭。
54
+ *
76
55
  */
77
56
 
78
- get retryIntervalTimeMs(): number;
79
- set retryIntervalTimeMs(value: number);
57
+ get enableABR(): boolean;
58
+ set enableABR(value: boolean);
80
59
  /** {zh}
81
- * @brief 在网络连接错误的情况下,播放器最大重试次数,默认值为 5。如果取值为 0,表示关闭播放器内部重试。
82
- * - 在无备流的场景下,每次重试,会消耗一次重试次数;
83
- * - 在有备流的场景下,每次主备流切换,会消耗一次重试次数。
60
+ * @brief 是否打开主备切换,默认为 false。<br>
61
+ * - true:开启;
62
+ * - false:关闭。
63
+ *
84
64
  */
85
65
 
86
- get retryMaxCount(): number;
87
- set retryMaxCount(value: number);
66
+ get enableMainBackupSwitch(): boolean;
67
+ set enableMainBackupSwitch(value: boolean);
88
68
  /** {zh}
89
- * @brief 是否开启本地 DNS 预解析,默认值为 false。开启本地 DNS 预解析可以缩短启播时间。如果本地 DNS 预解析出现异常,可能会影响播放器的正常使用。
90
- * - true:开启;
91
- * - false:关闭。
69
+ * @brief 播放器的默认清晰度档位,默认使用原始流清晰度。详情请参见 VeLivePlayerResolution{@link #VeLivePlayerResolution}。
70
+ *
92
71
  */
93
72
 
94
- get enableLiveDNS(): boolean;
95
- set enableLiveDNS(value: boolean);
73
+ get defaultResolution(): VeLivePlayerResolution;
74
+ set defaultResolution(value: VeLivePlayerResolution);
96
75
  /** {zh}
97
- * @brief 是否开启播放信息周期性回调。默认值为 false。周期性回调参数详细说明请参见 [VeLivePlayerStatistics](188115#VeLivePlayerStatistics)。当 `enableStatisticsCallback` 为 `true`,且 [statisticsCallbackInterval](188115#VeLivePlayerConfiguration-statisticscallbackinterval) 大于 0 时,播放器会在指定的时间间隔内,周期性地回调播放器状态信息。
98
- * - true:开启;
99
- * - false:关闭。
76
+ * @brief 播放器的默认播放格式,默认值为 FLV。详情请参见 VeLivePlayerFormat{@link #VeLivePlayerFormat}。
77
+ *
100
78
  */
101
79
 
102
- get enableStatisticsCallback(): boolean;
103
- set enableStatisticsCallback(value: boolean);
80
+ get defaultFormat(): VeLivePlayerFormat;
81
+ set defaultFormat(value: VeLivePlayerFormat);
104
82
  /** {zh}
105
- * @brief 播放信息周期性回调的时间间隔,单位为 s,默认值为 5。当 [enableStatisticsCallback](188115#VeLivePlayerConfiguration-enablestatisticscallback) 为 `true`,且 `statisticsCallbackInterval` 大于 0 时,播放器会在指定的时间间隔内,周期性地回调播放器状态信息。
83
+ * @brief 播放器的默认播放传输层协议,默认值为 TCP。详情请参见 VeLivePlayerProtocol{@link #VeLivePlayerProtocol}。
84
+ *
106
85
  */
107
86
 
108
- get statisticsCallbackInterval(): number;
109
- set statisticsCallbackInterval(value: number);
87
+ get defaultProtocol(): VeLivePlayerProtocol;
88
+ set defaultProtocol(value: VeLivePlayerProtocol);
89
+ protected __init(...args: any[]): void;
90
+ protected __new_instance(...args: any[]): any;
110
91
  }
111
92
  /** {zh}
112
93
  * @detail keytype
113
- * @brief 直播播放格式。
94
+ * @brief 直播播放器状态。
95
+ *
114
96
  */
115
-
116
- export declare enum VeLivePlayerFormat {
97
+ export declare enum VeLivePlayerStatus {
117
98
  /** {zh}
118
- * @brief FLV 格式。
99
+ * @brief 播放器准备完成,等待渲染。
100
+ *
119
101
  */
120
-
121
- VeLivePlayerFormatFLV = 0,
102
+ VeLivePlayerStatusPrepared = 0,
122
103
  /** {zh}
123
- * @brief HLS 格式。
104
+ * @brief 正在播放,即首帧渲染完成且播放器未发生错误。
105
+ *
124
106
  */
125
-
126
- VeLivePlayerFormatHLS = 1,
107
+ VeLivePlayerStatusPlaying = 1,
127
108
  /** {zh}
128
- * @brief RTM 格式。
109
+ * @brief 暂停播放状态。
110
+ *
129
111
  */
130
-
131
- VeLivePlayerFormatRTM = 2
112
+ VeLivePlayerStatusPaused = 2,
113
+ /** {zh}
114
+ * @brief 停止播放状态。
115
+ *
116
+ */
117
+ VeLivePlayerStatusStopped = 3,
118
+ /** {zh}
119
+ * @brief 播放器发生错误。
120
+ *
121
+ */
122
+ VeLivePlayerStatusError = 4
132
123
  }
133
- export declare class t_VeLivePlayerFormat {
134
- static ts_to_android(value: VeLivePlayerFormat): $p_a.VeLivePlayerFormat;
135
- static android_to_ts(value: $p_a.VeLivePlayerFormat): VeLivePlayerFormat;
136
- static ts_to_ios(value: VeLivePlayerFormat): $p_i.VeLivePlayerFormat;
137
- static ios_to_ts(value: $p_i.VeLivePlayerFormat): VeLivePlayerFormat;
124
+ /** {zh}
125
+ * @detail keytype
126
+ * @brief 直播播放器清晰度档位变化原因。
127
+ *
128
+ */
129
+ export declare enum VeLivePlayerResolutionSwitchReason {
130
+ /** {zh}
131
+ * @brief ABR 自动切档。
132
+ *
133
+ */
134
+ VeLivePlayerResolutionSwitchByAuto = 0,
135
+ /** {zh}
136
+ * @brief 手动切换档位。
137
+ *
138
+ */
139
+ VeLivePlayerResolutionSwitchByManual = 1
138
140
  }
139
141
  /** {zh}
140
142
  * @detail keytype
141
- * @brief 直播播放传输协议。
143
+ * @brief 直播播放器画面的填充模式。
144
+ *
142
145
  */
143
-
144
- export declare enum VeLivePlayerProtocol {
146
+ export declare enum VeLivePlayerFillMode {
145
147
  /** {zh}
146
- * @brief TCP 协议。
148
+ * @brief 显示完整的视频帧。视频帧等比缩放,直至视频帧恰好在画布上全部显示。如果视频帧长宽比例与画布不同,视窗上未被视频帧填满区域将填充为黑色。
149
+ *
147
150
  */
148
-
149
- VeLivePlayerProtocolTCP = 0,
151
+ VeLivePlayerFillModeAspectFit = 0,
150
152
  /** {zh}
151
- * @brief QUIC 协议。
153
+ * @brief 视频帧自适应画布。视频帧非等比缩放,直至填满画布。在此过程中,视频帧的长宽比例可能会发生变化。
154
+ *
152
155
  */
153
-
154
- VeLivePlayerProtocolQUIC = 1,
156
+ VeLivePlayerFillModeFullFill = 1,
155
157
  /** {zh}
156
- * @brief TLS 协议。
158
+ * @brief 视频填满画布。视频帧等比缩放,直至填满画布,超出屏幕的部分将被裁剪,画面可能不完整。
159
+ *
157
160
  */
158
-
159
- VeLivePlayerProtocolTLS = 2
160
- }
161
- export declare class t_VeLivePlayerProtocol {
162
- static ts_to_android(value: VeLivePlayerProtocol): $p_a.VeLivePlayerProtocol;
163
- static android_to_ts(value: $p_a.VeLivePlayerProtocol): VeLivePlayerProtocol;
164
- static ts_to_ios(value: VeLivePlayerProtocol): $p_i.VeLivePlayerProtocol;
165
- static ios_to_ts(value: $p_i.VeLivePlayerProtocol): VeLivePlayerProtocol;
161
+ VeLivePlayerFillModeAspectFill = 2
166
162
  }
167
163
  /** {zh}
168
164
  * @detail keytype
169
- * @brief 视频镜像。
165
+ * @brief 播放周期性统计信息。
170
166
  */
171
-
172
- export declare enum VeLivePlayerMirror {
167
+ export declare class VeLivePlayerStatistics {
168
+ protected _instance: any;
173
169
  /** {zh}
174
- * @brief 关闭镜像。
170
+ * @brief 是否使用硬件解码。<br>
171
+ * - true:硬解;
172
+ * - false:非硬解。
173
+ *
175
174
  */
176
175
 
177
- VeLivePlayerMirrorNone = 0,
176
+ get isHardwareDecode(): boolean;
178
177
  /** {zh}
179
- * @brief 水平镜像。
178
+ * @brief 当前播放的视频格式。
179
+ *
180
180
  */
181
181
 
182
- VeLivePlayerMirrorHorizontal = 1,
182
+ get format(): void;
183
183
  /** {zh}
184
- * @brief 垂直镜像。
184
+ * @brief 当前播放的传输协议。
185
+ *
185
186
  */
186
187
 
187
- VeLivePlayerMirrorVertical = 2
188
- }
189
- export declare class t_VeLivePlayerMirror {
190
- static ts_to_android(value: VeLivePlayerMirror): $p_a.VeLivePlayerMirror;
191
- static android_to_ts(value: $p_a.VeLivePlayerMirror): VeLivePlayerMirror;
192
- static ts_to_ios(value: VeLivePlayerMirror): $p_i.VeLivePlayerMirror;
193
- static ios_to_ts(value: $p_i.VeLivePlayerMirror): VeLivePlayerMirror;
188
+ get protocol(): void;
189
+ /** {zh}
190
+ * @brief 当前直播的播放地址。
191
+ *
192
+ */
193
+
194
+ get url(): string;
195
+ /** {zh}
196
+ * @brief 视频的编码类型。
197
+ *
198
+ */
199
+
200
+ get videoCodec(): string;
201
+ /** {zh}
202
+ * @brief 从当前视频开始播放起,累计的卡顿时长,单位为 ms。
203
+ *
204
+ */
205
+
206
+ get stallTimeMs(): number;
207
+ /** {zh}
208
+ * @brief 带宽预测 ,单位为 kbps
209
+ *
210
+ */
211
+ get bandwidthEstimation(): number;
212
+ /** {zh}
213
+ * @brief 当前播放延时,单位为 ms。仅在使用了火山引擎视频直播推流 SDK 时,支持统计播放延时。
214
+ *
215
+ */
216
+
217
+ get delayMs(): number;
218
+ /** {zh}
219
+ * @brief 当前播放视频的宽度,单位为 px。
220
+ *
221
+ */
222
+
223
+ get width(): number;
224
+ /** {zh}
225
+ * @brief 当前播放视频的高度,单位为 px。
226
+ *
227
+ */
228
+
229
+ get height(): number;
230
+ /** {zh}
231
+ * @brief 当前播放视频的帧率,单位为 fps。
232
+ *
233
+ */
234
+
235
+ get fps(): number;
236
+ /** {zh}
237
+ * @brief 实时下载的码率,单位为 kbps。
238
+ *
239
+ */
240
+
241
+ get bitrate(): number;
242
+ /** {zh}
243
+ * @brief 视频播放的缓冲区 buffer 大小,单位为 ms。
244
+ *
245
+ */
246
+
247
+ get videoBufferMs(): number;
248
+ /** {zh}
249
+ * @brief 音频播放的缓冲区 buffer 大小,单位为 ms。
250
+ *
251
+ */
252
+
253
+ get audioBufferMs(): number;
194
254
  }
195
255
  /** {zh}
196
256
  * @detail keytype
197
257
  * @brief 视频数据封装格式。
258
+ *
198
259
  */
199
-
200
260
  export declare enum VeLivePlayerVideoBufferType {
201
261
  /** {zh}
202
262
  * @brief 未知格式。
263
+ *
203
264
  */
204
-
205
265
  VeLivePlayerVideoBufferTypeUnknown = 0,
206
266
  /** {zh}
207
267
  * @platform android
208
268
  * @brief ByteBuffer 格式。
269
+ *
209
270
  */
210
-
211
271
  VeLivePlayerVideoBufferTypeByteBuffer = 1,
212
272
  /** {zh}
213
273
  * @platform android
214
274
  * @brief ByteArray 格式。
275
+ *
215
276
  */
216
-
217
277
  VeLivePlayerVideoBufferTypeByteArray = 2,
218
278
  /** {zh}
219
279
  * @platform android
220
280
  * @brief 纹理格式。
281
+ *
221
282
  */
222
-
223
283
  VeLivePlayerVideoBufferTypeTexture = 3,
224
284
  /** {zh}
225
285
  * @platform ios
226
286
  * @brief CVPixelBufferRef 格式。
227
287
  */
228
-
229
- VeLivePlayerVideoBufferTypePixelBuffer = 5,
288
+ VeLivePlayerVideoBufferTypePixelBuffer = 4,
230
289
  /** {zh}
231
290
  * @platform ios
232
291
  * @brief CVSampleBufferRef 格式。
233
292
  */
234
-
235
- VeLivePlayerVideoBufferTypeSampleBuffer = 6,
293
+ VeLivePlayerVideoBufferTypeSampleBuffer = 5,
236
294
  /** {zh}
237
295
  * @platform ios
238
296
  * @brief NSData 格式。
239
297
  */
240
-
241
- VeLivePlayerVideoBufferTypeNSData = 7
242
- }
243
- export declare class t_VeLivePlayerVideoBufferType {
244
- static ts_to_android(value: VeLivePlayerVideoBufferType): $p_a.VeLivePlayerVideoBufferType;
245
- static android_to_ts(value: $p_a.VeLivePlayerVideoBufferType): VeLivePlayerVideoBufferType;
246
- static ts_to_ios(value: VeLivePlayerVideoBufferType): $p_i.VeLivePlayerVideoBufferType;
247
- static ios_to_ts(value: $p_i.VeLivePlayerVideoBufferType): VeLivePlayerVideoBufferType;
298
+ VeLivePlayerVideoBufferTypeNSData = 6
248
299
  }
249
300
  /** {zh}
250
301
  * @detail keytype
251
- * @brief 直播播放器状态。
302
+ * @brief 视频帧像素格式。
303
+ *
252
304
  */
253
-
254
- export declare enum VeLivePlayerStatus {
305
+ export declare enum VeLivePlayerPixelFormat {
255
306
  /** {zh}
256
- * @brief 停止播放状态。
307
+ * @brief 未知格式。
308
+ *
257
309
  */
258
-
259
- VeLivePlayerStatusStopped = 3,
310
+ VeLivePlayerPixelFormatUnknown = 0,
260
311
  /** {zh}
261
- * @brief 暂停播放状态。
312
+ * @platform android
313
+ * @brief RGBA8888 格式。
314
+ *
262
315
  */
263
-
264
- VeLivePlayerStatusPaused = 2,
316
+ VeLivePlayerPixelFormatRGBA32 = 1,
265
317
  /** {zh}
266
- * @brief 播放器准备完成,等待渲染。
318
+ * @platform android
319
+ * @brief 纹理格式。
320
+ *
267
321
  */
268
-
269
- VeLivePlayerStatusPrepared = 0,
322
+ VeLivePlayerPixelFormatTexture = 2,
270
323
  /** {zh}
271
- * @brief 正在播放,即首帧渲染完成且播放器未发生错误。
324
+ * @platform ios
325
+ * @brief NV12 格式。
272
326
  */
273
-
274
- VeLivePlayerStatusPlaying = 1,
327
+ VeLivePlayerPixelFormatNV12 = 3,
275
328
  /** {zh}
276
- * @brief 播放器发生错误。
329
+ * @platform ios
330
+ * @brief YUVI420 格式。
277
331
  */
278
-
279
- VeLivePlayerStatusError = 4
280
- }
281
- export declare class t_VeLivePlayerStatus {
282
- static ts_to_android(value: VeLivePlayerStatus): $p_a.VeLivePlayerStatus;
283
- static android_to_ts(value: $p_a.VeLivePlayerStatus): VeLivePlayerStatus;
284
- static ts_to_ios(value: VeLivePlayerStatus): $p_i.VeLivePlayerStatus;
285
- static ios_to_ts(value: $p_i.VeLivePlayerStatus): VeLivePlayerStatus;
286
- }
287
- export declare class VeLivePlayerLogConfig extends $p_a.VeLivePlayerLogConfig {
332
+ VeLivePlayerPixelFormatI420 = 4,
333
+ /** {zh}
334
+ * @platform ios
335
+ * @brief BGRA 格式。
336
+ */
337
+ VeLivePlayerPixelFormatBGRA32 = 5
288
338
  }
289
339
  /** {zh}
290
340
  * @detail keytype
291
- * @brief 播放地址相关配置。
341
+ * @brief 音频数据封装格式。
342
+ *
292
343
  */
293
-
294
- export declare class VeLivePlayerStreamData {
295
- protected _instance: any;
296
- protected __init(...args: any[]): void;
297
- protected __new_instance(...args: any[]): $p_a.VeLivePlayerStreamData | $p_i.VeLivePlayerStreamData;
298
- /** {zh}
299
- * @brief 是否打开 ABR 平滑切档功能,默认为 false。
300
- * - true:开启;
301
- * - false:关闭。
302
- */
303
-
304
- get enableABR(): boolean;
305
- set enableABR(value: boolean);
306
- /** {zh}
307
- * @brief 是否打开主备切换,默认为 false。
308
- * - true:开启;
309
- * - false:关闭。
310
- */
311
-
312
- get enableMainBackupSwitch(): boolean;
313
- set enableMainBackupSwitch(value: boolean);
344
+ export declare enum VeLivePlayerAudioBufferType {
314
345
  /** {zh}
315
- * @brief 播放器的默认清晰度档位,默认使用原始流清晰度。详情请参见 {@link #VeLivePlayerResolution VeLivePlayerResolution}。
346
+ * @platform android
347
+ * @brief 未知格式。
348
+ *
316
349
  */
317
-
318
- get defaultResolution(): VeLivePlayerResolution;
319
- set defaultResolution(value: VeLivePlayerResolution);
350
+ VeLivePlayerAudioBufferTypeUnknown = 0,
320
351
  /** {zh}
321
- * @brief 播放器的默认播放格式,默认值为 FLV。详情请参见 {@link #VeLivePlayerFormat VeLivePlayerFormat}。
352
+ * @platform android
353
+ * @brief ByteArray 格式。
354
+ *
322
355
  */
323
-
324
- get defaultFormat(): VeLivePlayerFormat;
325
- set defaultFormat(value: VeLivePlayerFormat);
356
+ VeLivePlayerAudioBufferTypeByteArray = 1,
326
357
  /** {zh}
327
- * @brief 播放器的默认播放传输层协议,默认值为 TCP。详情请参见 {@link #VeLivePlayerProtocol VeLivePlayerProtocol}。
358
+ * @platform ios
359
+ * @brief 未知格式。
328
360
  */
329
-
330
- get defaultProtocol(): VeLivePlayerProtocol;
331
- set defaultProtocol(value: VeLivePlayerProtocol);
361
+ VeLivePlayerAudioBufferUnknown = 2,
332
362
  /** {zh}
333
- * @brief 主路流地址列表,详情请参见 [VeLivePlayerStream](#VeLivePlayerStreamData-VeLivePlayerStream)。
363
+ * @platform ios
364
+ * @brief CVSampleBufferRef 格式,音频数据以样本缓冲区 sample buffer 的形式进行处理和渲染。
334
365
  */
335
-
336
- get mainStreamList(): VeLivePlayerStream[];
337
- set mainStreamList(value: VeLivePlayerStream[]);
366
+ VeLivePlayerAudioBufferTypeSampleBuffer = 3,
338
367
  /** {zh}
339
- * @brief 备路流地址列表。详情请参见 [VeLivePlayerStream](#VeLivePlayerStreamData-VeLivePlayerStream)。
368
+ * @platform ios
369
+ * @brief NSData 格式,音频数据以 NSData 对象的形式进行处理和渲染。
340
370
  */
341
-
342
- get backupStreamList(): VeLivePlayerStream[];
343
- set backupStreamList(value: VeLivePlayerStream[]);
371
+ VeLivePlayerAudioBufferTypeNSData = 4
344
372
  }
345
373
  /** {zh}
346
374
  * @detail keytype
347
- * @brief 直播播放器清晰度档位变化原因。
375
+ * @brief 直播播放器的清晰度档位。
376
+ *
348
377
  */
349
-
350
- export declare enum VeLivePlayerResolutionSwitchReason {
378
+ export declare enum VeLivePlayerResolution {
351
379
  /** {zh}
352
- * @brief ABR 自动切档。
380
+ * @brief 原始流。
381
+ *
353
382
  */
354
-
355
- VeLivePlayerResolutionSwitchByAuto = 0,
383
+ VeLivePlayerResolutionOrigin = 0,
356
384
  /** {zh}
357
- * @brief 手动切换档位。
385
+ * @brief UHD 超高清。
386
+ *
358
387
  */
359
-
360
- VeLivePlayerResolutionSwitchByManual = 1
361
- }
362
- export declare class t_VeLivePlayerResolutionSwitchReason {
363
- static ts_to_android(value: VeLivePlayerResolutionSwitchReason): $p_a.VeLivePlayerResolutionSwitchReason;
364
- static android_to_ts(value: $p_a.VeLivePlayerResolutionSwitchReason): VeLivePlayerResolutionSwitchReason;
365
- static ts_to_ios(value: VeLivePlayerResolutionSwitchReason): $p_i.VeLivePlayerResolutionSwitchReason;
366
- static ios_to_ts(value: $p_i.VeLivePlayerResolutionSwitchReason): VeLivePlayerResolutionSwitchReason;
388
+ VeLivePlayerResolutionUHD = 1,
389
+ /** {zh}
390
+ * @brief HD 高清。
391
+ *
392
+ */
393
+ VeLivePlayerResolutionHD = 2,
394
+ /** {zh}
395
+ * @brief SD 标清。
396
+ *
397
+ */
398
+ VeLivePlayerResolutionSD = 3,
399
+ /** {zh}
400
+ * @brief LD 低清。
401
+ *
402
+ */
403
+ VeLivePlayerResolutionLD = 4
367
404
  }
368
405
  /** {zh}
369
406
  * @detail keytype
370
- * @brief 流地址信息。
407
+ * @brief 播放器初始化相关配置。
371
408
  */
372
-
373
- export declare class VeLivePlayerStream {
409
+ export declare class VeLivePlayerConfiguration {
374
410
  protected _instance: any;
375
- protected __init(...args: any[]): void;
376
- protected __new_instance(...args: any[]): $p_a.VeLivePlayerStream | $p_i.VeLivePlayerStream;
377
411
  /** {zh}
378
- * @brief 播放地址。
412
+ * @brief 是否开启 SEI 消息的解析,默认值为 false。<br>
413
+ * - true:开启;
414
+ * - false:关闭。
415
+ *
379
416
  */
380
417
 
381
- get url(): string;
382
- set url(value: string);
418
+ get enableSei(): boolean;
419
+ set enableSei(value: boolean);
383
420
  /** {zh}
384
- * @brief 清晰度档位。详情请参见 {@link #VeLivePlayerResolution VeLivePlayerResolution}。
421
+ * @brief 是否开启硬件解码功能,默认值为 true。开启硬件解码后,如果出现硬件解码启动失败或硬件解码失败的情况,播放器内部会自动切换为软解。<br>
422
+ * - true:开启;
423
+ * - false:关闭。
424
+ *
385
425
  */
386
426
 
387
- get resolution(): VeLivePlayerResolution;
388
- set resolution(value: VeLivePlayerResolution);
427
+ get enableHardwareDecode(): boolean;
428
+ set enableHardwareDecode(value: boolean);
389
429
  /** {zh}
390
- * @brief 播放码率,单位为 kbps。
430
+ * @brief 网络超时时间,单位为 ms,默认值为 5000。播放器发起网络请求,如果超过了该时间仍未收到服务器响应,则认为网络请求失败。
431
+ *
391
432
  */
392
433
 
393
- get bitrate(): number;
394
- set bitrate(value: number);
434
+ get networkTimeoutMs(): number;
435
+ set networkTimeoutMs(value: number);
395
436
  /** {zh}
396
- * @brief 播放格式。详情请参见 {@link #VeLivePlayerFormat VeLivePlayerFormat}。
437
+ * @brief 重试时间间隔,单位为 ms,默认值为 5000,仅在无备流时生效。<br>
438
+ * - 在无备流的场景下,若遇到网络异常等问题导致播放中断,播放器会立即进行重试,前三次重试为立即执行,第四次及之后的重试将按照设置的重试时间间隔执行;
439
+ * - 在有备流的场景下,重试时间间隔将不生效,所有重试均会立即执行。
440
+ *
397
441
  */
398
442
 
399
- get format(): VeLivePlayerFormat;
400
- set format(value: VeLivePlayerFormat);
443
+ get retryIntervalTimeMs(): number;
444
+ set retryIntervalTimeMs(value: number);
401
445
  /** {zh}
402
- * @platform android
403
- * @brief 播放流类型为主路或备路。详情请参见 {@link #VeLivePlayerStreamType VeLivePlayerStreamType}。
446
+ * @brief 在网络连接错误的情况下,播放器最大重试次数,默认值为 5。如果取值为 0,表示关闭播放器内部重试。<br>
447
+ * - 在无备流的场景下,每次重试,会消耗一次重试次数;
448
+ * - 在有备流的场景下,每次主备流切换,会消耗一次重试次数。
449
+ *
404
450
  */
405
451
 
406
- get android_streamType(): $p_a.VeLivePlayerStreamType;
407
- set android_streamType(value: $p_a.VeLivePlayerStreamType);
408
- }
409
- /** {zh}
410
- * @detail keytype
411
- * @brief 直播播放器画面的填充模式。
412
- */
413
-
414
- export declare enum VeLivePlayerFillMode {
452
+ get retryMaxCount(): number;
453
+ set retryMaxCount(value: number);
415
454
  /** {zh}
416
- * @brief 显示完整的视频帧。视频帧等比缩放,直至视频帧恰好在画布上全部显示。如果视频帧长宽比例与画布不同,视窗上未被视频帧填满区域将填充为黑色。
455
+ * @brief 是否开启本地 DNS 预解析,默认值为 false。开启本地 DNS 预解析可以缩短启播时间。如果本地 DNS 预解析出现异常,可能会影响播放器的正常使用。<br>
456
+ * - true:开启;
457
+ * - false:关闭。
458
+ *
417
459
  */
418
460
 
419
- VeLivePlayerFillModeAspectFit = 0,
461
+ get enableLiveDNS(): boolean;
462
+ set enableLiveDNS(value: boolean);
420
463
  /** {zh}
421
- * @brief 视频帧自适应画布。视频帧非等比缩放,直至填满画布。在此过程中,视频帧的长宽比例可能会发生变化。
464
+ * @brief 是否开启播放信息周期性回调。默认值为 false。周期性回调参数详细说明请参见 [VeLivePlayerStatistics](188115#VeLivePlayerStatistics) 。当 `enableStatisticsCallback` 为 `true`,且 [statisticsCallbackInterval](188115#VeLivePlayerConfiguration-statisticscallbackinterval) 大于 0 时,播放器会在指定的时间间隔内,周期性地回调播放器状态信息。<br>
465
+ * - true:开启;
466
+ * - false:关闭。
467
+ *
422
468
  */
423
469
 
424
- VeLivePlayerFillModeFullFill = 1,
470
+ get enableStatisticsCallback(): boolean;
471
+ set enableStatisticsCallback(value: boolean);
425
472
  /** {zh}
426
- * @brief 视频填满画布。视频帧等比缩放,直至填满画布,超出屏幕的部分将被裁剪,画面可能不完整。
473
+ * @brief 播放信息周期性回调的时间间隔,单位为 s,默认值为 5。当 [enableStatisticsCallback](188115#VeLivePlayerConfiguration-enablestatisticscallback) 为 `true`,且 `statisticsCallbackInterval` 大于 0 时,播放器会在指定的时间间隔内,周期性地回调播放器状态信息。
474
+ *
427
475
  */
428
476
 
429
- VeLivePlayerFillModeAspectFill = 2
430
- }
431
- export declare class t_VeLivePlayerFillMode {
432
- static ts_to_android(value: VeLivePlayerFillMode): $p_a.VeLivePlayerFillMode;
433
- static android_to_ts(value: $p_a.VeLivePlayerFillMode): VeLivePlayerFillMode;
434
- static ts_to_ios(value: VeLivePlayerFillMode): $p_i.VeLivePlayerFillMode;
435
- static ios_to_ts(value: $p_i.VeLivePlayerFillMode): VeLivePlayerFillMode;
477
+ get statisticsCallbackInterval(): number;
478
+ set statisticsCallbackInterval(value: number);
479
+ protected __init(...args: any[]): void;
480
+ protected __new_instance(...args: any[]): any;
436
481
  }
437
482
  /** {zh}
438
483
  * @detail keytype
439
- * @brief 视频帧像素格式。
484
+ * @brief 直播播放格式。
485
+ *
440
486
  */
441
-
442
- export declare enum VeLivePlayerPixelFormat {
443
- /** {zh}
444
- * @brief 未知格式。
445
- */
446
-
447
- VeLivePlayerPixelFormatUnknown = 0,
448
- /** {zh}
449
- * @platform android
450
- * @brief RGBA8888 格式。
451
- */
452
-
453
- VeLivePlayerPixelFormatRGBA32 = 1,
454
- /** {zh}
455
- * @platform android
456
- * @brief 纹理格式。
457
- */
458
-
459
- VeLivePlayerPixelFormatTexture = 2,
487
+ export declare enum VeLivePlayerFormat {
460
488
  /** {zh}
461
- * @platform ios
462
- * @brief NV12 格式。
489
+ * @brief FLV 格式。
490
+ *
463
491
  */
464
-
465
- VeLivePlayerPixelFormatNV12 = 4,
492
+ VeLivePlayerFormatFLV = 0,
466
493
  /** {zh}
467
- * @platform ios
468
- * @brief YUVI420 格式。
494
+ * @brief HLS 格式。
495
+ *
469
496
  */
470
-
471
- VeLivePlayerPixelFormatI420 = 5,
497
+ VeLivePlayerFormatHLS = 1,
472
498
  /** {zh}
473
- * @platform ios
474
- * @brief BGRA 格式。
499
+ * @brief RTM 格式。
500
+ *
475
501
  */
476
-
477
- VeLivePlayerPixelFormatBGRA32 = 6
478
- }
479
- export declare class t_VeLivePlayerPixelFormat {
480
- static ts_to_android(value: VeLivePlayerPixelFormat): $p_a.VeLivePlayerPixelFormat;
481
- static android_to_ts(value: $p_a.VeLivePlayerPixelFormat): VeLivePlayerPixelFormat;
482
- static ts_to_ios(value: VeLivePlayerPixelFormat): $p_i.VeLivePlayerPixelFormat;
483
- static ios_to_ts(value: $p_i.VeLivePlayerPixelFormat): VeLivePlayerPixelFormat;
502
+ VeLivePlayerFormatRTM = 2
484
503
  }
485
504
  /** {zh}
486
505
  * @detail keytype
487
- * @brief 播放周期性统计信息。
506
+ * @brief 直播播放传输协议。
507
+ *
488
508
  */
489
-
490
- export declare class VeLivePlayerStatistics {
491
- protected _instance: any;
492
- protected __init(...args: any[]): void;
493
- protected __new_instance(...args: any[]): $p_a.VeLivePlayerStatistics | $p_i.VeLivePlayerStatistics;
494
- /** {zh}
495
- * @brief 当前直播的播放地址。
496
- */
497
-
498
- get url(): string;
509
+ export declare enum VeLivePlayerProtocol {
499
510
  /** {zh}
500
- * @brief 是否使用硬件解码。
501
- * - true:硬解;
502
- * - false:非硬解。
511
+ * @brief TCP 协议。
512
+ *
503
513
  */
504
-
505
- get isHardwareDecode(): boolean;
514
+ VeLivePlayerProtocolTCP = 0,
506
515
  /** {zh}
507
- * @brief 视频的编码类型。
516
+ * @brief QUIC 协议。
517
+ *
508
518
  */
509
-
510
- get videoCodec(): string;
519
+ VeLivePlayerProtocolQUIC = 1,
511
520
  /** {zh}
512
- * @brief 从当前视频开始播放起,累计的卡顿时长,单位为 ms。
521
+ * @brief TLS 协议。
522
+ *
513
523
  */
514
-
515
- get stallTimeMs(): number;
524
+ VeLivePlayerProtocolTLS = 2
525
+ }
526
+ /** {zh}
527
+ * @detail keytype
528
+ * @brief 视频镜像。
529
+ *
530
+ */
531
+ export declare enum VeLivePlayerMirror {
516
532
  /** {zh}
517
- * @brief 带宽预测 ,单位为 kbps。
533
+ * @brief 关闭镜像。
534
+ *
518
535
  */
519
- get bandwidthEstimation(): number;
536
+ VeLivePlayerMirrorNone = 0,
520
537
  /** {zh}
521
- * @brief 当前播放延时,单位为 ms。仅在使用了火山引擎视频直播推流 SDK 时,支持统计播放延时。
538
+ * @brief 水平镜像。
539
+ *
522
540
  */
523
-
524
- get delayMs(): number;
541
+ VeLivePlayerMirrorHorizontal = 1,
525
542
  /** {zh}
526
- * @brief 当前播放视频的宽度,单位为 px。
543
+ * @brief 垂直镜像。
544
+ *
527
545
  */
528
-
529
- get width(): number;
546
+ VeLivePlayerMirrorVertical = 2
547
+ }
548
+ /** {zh}
549
+ * @detail keytype
550
+ * @brief 流地址信息。
551
+ *
552
+ */
553
+ export declare class VeLivePlayerStream {
554
+ constructor();
555
+ constructor();
556
+ protected _instance: any;
530
557
  /** {zh}
531
- * @brief 当前播放视频的高度,单位为 px。
558
+ * @brief 播放地址。
559
+ *
532
560
  */
533
561
 
534
- get height(): number;
562
+ get url(): string;
563
+ set url(value: string);
535
564
  /** {zh}
536
- * @brief 当前播放视频的帧率,单位为 fps
565
+ * @brief 清晰度档位。详情请参见 VeLivePlayerResolution{@link #VeLivePlayerResolution}
566
+ *
537
567
  */
538
568
 
539
- get fps(): number;
569
+ get resolution(): VeLivePlayerResolution;
570
+ set resolution(value: VeLivePlayerResolution);
540
571
  /** {zh}
541
- * @brief 实时下载的码率,单位为 kbps。
572
+ * @brief 播放码率,单位为 kbps。
573
+ *
542
574
  */
543
575
 
544
576
  get bitrate(): number;
577
+ set bitrate(value: number);
545
578
  /** {zh}
546
- * @brief 视频播放的缓冲区 buffer 大小,单位为 ms
579
+ * @brief 播放格式。详情请参见 VeLivePlayerFormat{@link #VeLivePlayerFormat}
580
+ *
547
581
  */
548
582
 
549
- get videoBufferMs(): number;
583
+ get format(): VeLivePlayerFormat;
584
+ set format(value: VeLivePlayerFormat);
550
585
  /** {zh}
551
- * @brief 音频播放的缓冲区 buffer 大小,单位为 ms。
586
+ * @platform android
587
+ * @brief 播放流类型为主路或备路。详情请参见 VeLivePlayerStreamType{@link #VeLivePlayerStreamType}。
588
+ *
552
589
  */
553
590
 
554
- get audioBufferMs(): number;
591
+ get android_streamType(): $p_a.VeLivePlayerStreamType;
592
+ set android_streamType(value: $p_a.VeLivePlayerStreamType);
555
593
  /** {zh}
556
- * @brief 当前播放的视频格式。
594
+ * @platform ios
595
+ * @brief 传输协议,详情请参见 [VeLivePlayerProtocol](188121#VeLivePlayerProtocol)。
557
596
  */
558
597
 
559
- get format(): VeLivePlayerFormat;
598
+ get ios_protocol(): $p_i.VeLivePlayerProtocol;
599
+ set ios_protocol(value: $p_i.VeLivePlayerProtocol);
560
600
  /** {zh}
561
- * @brief 当前播放的传输协议。
601
+ * @platform ios
602
+ * @brief 播放流类型为主路或备路,详情请参见 [VeLivePlayerStreamType](188121#VeLivePlayerStreamType)。
562
603
  */
563
604
 
564
- get protocol(): VeLivePlayerProtocol;
605
+ get ios_type(): $p_i.VeLivePlayerStreamType;
606
+ set ios_type(value: $p_i.VeLivePlayerStreamType);
607
+ protected __init(...args: any[]): void;
608
+ protected __new_instance(...args: any[]): any;
565
609
  }
566
610
  /** {zh}
567
611
  * @detail keytype
568
612
  * @brief 视频帧数据。
569
613
  */
570
-
571
614
  export declare class VeLivePlayerVideoFrame {
572
615
  protected _instance: any;
573
- protected __init(...args: any[]): void;
574
- protected __new_instance(...args: any[]): $p_a.VeLivePlayerVideoFrame | $p_i.VeLivePlayerVideoFrame;
575
616
  /** {zh}
576
- * @brief 视频帧数据封装格式。详情请参见 {@link #VeLivePlayerVideoBufferType VeLivePlayerVideoBufferType}。
617
+ * @brief 视频帧数据封装格式。详情请参见 VeLivePlayerVideoBufferType{@link #VeLivePlayerVideoBufferType}。
618
+ *
577
619
  */
578
620
 
579
621
  get bufferType(): VeLivePlayerVideoBufferType;
580
622
  set bufferType(value: VeLivePlayerVideoBufferType);
581
623
  /** {zh}
582
- * @brief 视频帧像素格式。详情请参见 {@link #VeLivePlayerPixelFormat VeLivePlayerPixelFormat}。
624
+ * @brief 视频帧像素格式。详情请参见 VeLivePlayerPixelFormat{@link #VeLivePlayerPixelFormat}。
625
+ *
583
626
  */
584
627
 
585
628
  get pixelFormat(): VeLivePlayerPixelFormat;
586
629
  set pixelFormat(value: VeLivePlayerPixelFormat);
587
630
  /** {zh}
588
631
  * @brief 视频宽度,单位为 px。
632
+ *
589
633
  */
590
634
 
591
635
  get width(): number;
592
636
  set width(value: number);
593
637
  /** {zh}
594
638
  * @brief 视频高度,单位为 px。
639
+ *
595
640
  */
596
641
 
597
642
  get height(): number;
598
643
  set height(value: number);
599
644
  /** {zh}
600
645
  * @brief 视频帧的渲染时间戳。单位为 ms。
646
+ *
601
647
  */
602
648
 
603
649
  get pts(): number;
604
650
  set pts(value: number);
605
651
  /** {zh}
606
- * @hidden
607
652
  * @platform android
608
- * @brief `pixelFormat` 为 `VeLivePlayerPixelFormatTexture` 时的视频数据,承载用于 OpenGL 渲染的纹理数据。详情请参见 {@link #VeLivePlayerVideoTexture VeLivePlayerVideoTexture}。
653
+ * @brief `pixelFormat` 为 `VeLivePlayerPixelFormatTexture` 时的视频数据,承载用于 OpenGL 渲染的纹理数据。详情请参见 VeLivePlayerVideoTexture{@link #VeLivePlayerVideoTexture}。
654
+ *
609
655
  */
610
656
 
611
657
  get android_texture(): $p_a.VeLivePlayerVideoTexture;
@@ -613,122 +659,128 @@ export declare class VeLivePlayerVideoFrame {
613
659
  /** {zh}
614
660
  * @platform android
615
661
  * @brief `pixelFormat` 为 `VeLivePlayerPixelFormatRGBA32` 时的视频数据,ByteBuffer 格式。
662
+ *
616
663
  */
617
664
 
618
665
  get android_buffer(): $p_a.ByteBuffer;
619
666
  set android_buffer(value: $p_a.ByteBuffer);
620
667
  /** {zh}
621
668
  * @brief `pixelFormat` 为 `VeLivePlayerPixelFormatRGBA32` 时的视频数据,ByteArray 格式。
669
+ *
622
670
  */
623
671
 
624
672
  get data(): ArrayBuffer;
625
673
  set data(value: ArrayBuffer);
626
- }
627
- export declare class VeLivePlayerVideoTexture extends $p_a.VeLivePlayerVideoTexture {
674
+ /** {zh}
675
+ * @platform ios
676
+ * @brief `pixelFormat` 为 `VeLivePlayerVideoBufferTypePixelBuffer` 时的视频数据。
677
+ */
678
+
679
+ get ios_pixelBuffer(): $p_i.CVPixelBufferRef;
680
+ set ios_pixelBuffer(value: $p_i.CVPixelBufferRef);
681
+ /** {zh}
682
+ * @platform ios
683
+ * @brief `pixelFormat` 为 `VeLivePlayerVideoBufferTypeSampleBuffer` 时的视频数据。
684
+ */
685
+
686
+ get ios_sampleBuffer(): $p_i.CMSampleBufferRef;
687
+ set ios_sampleBuffer(value: $p_i.CMSampleBufferRef);
688
+ protected __init(...args: any[]): void;
689
+ protected __new_instance(...args: any[]): any;
628
690
  }
629
691
  /** {zh}
630
692
  * @detail keytype
631
693
  * @brief 直播播放流类型。
694
+ *
632
695
  */
633
-
634
696
  export declare enum VeLivePlayerStreamType {
635
697
  /** {zh}
636
698
  * @brief 主路流。
699
+ *
637
700
  */
638
-
639
701
  VeLivePlayerStreamTypeMain = 0,
640
702
  /** {zh}
641
703
  * @brief 备路流。
704
+ *
642
705
  */
643
-
644
706
  VeLivePlayerStreamTypeBackup = 1
645
707
  }
646
- export declare class t_VeLivePlayerStreamType {
647
- static ts_to_android(value: VeLivePlayerStreamType): $p_a.VeLivePlayerStreamType;
648
- static android_to_ts(value: $p_a.VeLivePlayerStreamType): VeLivePlayerStreamType;
649
- static ts_to_ios(value: VeLivePlayerStreamType): $p_i.VeLivePlayerStreamType;
650
- static ios_to_ts(value: $p_i.VeLivePlayerStreamType): VeLivePlayerStreamType;
651
- }
652
708
  /** {zh}
653
709
  * @detail keytype
654
710
  * @brief 直播播放器日志打印级别。
711
+ *
655
712
  */
656
-
657
713
  export declare enum VeLivePlayerLogLevel {
658
714
  /** {zh}
659
715
  * @brief 输出 VERBOSE、DEBUG、INFO、WARNING 和 ERROR 级别的日志。
716
+ *
660
717
  */
661
-
662
718
  VeLivePlayerLogLevelVerbose = 0,
663
719
  /** {zh}
664
720
  * @brief 输出 DEBUG、INFO、WARNING 和 ERROR 级别的日志。
721
+ *
665
722
  */
666
-
667
723
  VeLivePlayerLogLevelDebug = 1,
668
724
  /** {zh}
669
725
  * @brief 输出 INFO、WARNING 和 ERROR 级别的日志。
726
+ *
670
727
  */
671
-
672
728
  VeLivePlayerLogLevelInfo = 2,
673
729
  /** {zh}
674
730
  * @brief 输出 WARNING 和 ERROR 级别的日志。
731
+ *
675
732
  */
676
-
677
733
  VeLivePlayerLogLevelWarn = 3,
678
734
  /** {zh}
679
735
  * @brief 输出 ERROR 级别的日志。
736
+ *
680
737
  */
681
-
682
738
  VeLivePlayerLogLevelError = 4,
683
739
  /** {zh}
684
740
  * @brief 关闭日志打印。
741
+ *
685
742
  */
686
-
687
743
  VeLivePlayerLogLevelNone = 5
688
744
  }
689
- export declare class t_VeLivePlayerLogLevel {
690
- static ts_to_android(value: VeLivePlayerLogLevel): $p_a.VeLivePlayerLogLevel;
691
- static android_to_ts(value: $p_a.VeLivePlayerLogLevel): VeLivePlayerLogLevel;
692
- static ts_to_ios(value: VeLivePlayerLogLevel): $p_i.VeLivePlayerLogLevel;
693
- static ios_to_ts(value: $p_i.VeLivePlayerLogLevel): VeLivePlayerLogLevel;
694
- }
695
745
  /** {zh}
696
746
  * @detail keytype
697
747
  * @brief 音频帧数据。
698
748
  */
699
-
700
749
  export declare class VeLivePlayerAudioFrame {
701
750
  protected _instance: any;
702
- protected __init(...args: any[]): void;
703
- protected __new_instance(...args: any[]): $p_a.VeLivePlayerAudioFrame | $p_i.VeLivePlayerAudioFrame;
704
751
  /** {zh}
705
752
  * @brief 音频帧数据封装格式,详情请参见 [VeLivePlayerAudioBufferType](188115#VeLivePlayerAudioBufferType)。
753
+ *
706
754
  */
707
755
 
708
756
  get bufferType(): VeLivePlayerAudioBufferType;
709
757
  set bufferType(value: VeLivePlayerAudioBufferType);
710
758
  /** {zh}
711
759
  * @brief 音频采样率,单位为 Hz。
760
+ *
712
761
  */
713
762
 
714
763
  get sampleRate(): number;
715
764
  set sampleRate(value: number);
716
765
  /** {zh}
717
- * @brief 声道数。
766
+ * @brief 声道数。<br>
718
767
  * - 1:单声道;
719
768
  * - 2:双声道。
769
+ *
720
770
  */
721
771
 
722
772
  get channels(): number;
723
773
  set channels(value: number);
724
774
  /** {zh}
725
775
  * @brief 音频位深度。
776
+ *
726
777
  */
727
778
 
728
779
  get bitDepth(): number;
729
780
  set bitDepth(value: number);
730
781
  /** {zh}
731
782
  * @brief 音频渲染时间戳。单位为 ms。
783
+ *
732
784
  */
733
785
 
734
786
  get pts(): number;
@@ -736,86 +788,51 @@ export declare class VeLivePlayerAudioFrame {
736
788
  /** {zh}
737
789
  * @platform android
738
790
  * @brief PCM 音频数据。
791
+ *
739
792
  */
740
793
 
741
794
  get android_buffer(): ArrayBuffer;
742
795
  set android_buffer(value: ArrayBuffer);
743
796
  /** {zh}
744
797
  * @brief 音频采样点个数。
798
+ *
745
799
  */
746
800
 
747
801
  get samples(): number;
748
802
  set samples(value: number);
749
- }
750
- /** {zh}
751
- * @detail keytype
752
- * @brief 音频数据封装格式。
753
- */
754
-
755
- export declare enum VeLivePlayerAudioBufferType {
756
- /** {zh}
757
- * @platform android
758
- * @brief 未知格式。
759
- */
760
-
761
- VeLivePlayerAudioBufferTypeUnknown = 0,
762
- /** {zh}
763
- * @platform android
764
- * @brief ByteArray 格式。
765
- */
766
-
767
- VeLivePlayerAudioBufferTypeByteArray = 1,
768
- /** {zh}
769
- * @platform ios
770
- * @brief 未知格式。
771
- */
772
-
773
- VeLivePlayerAudioBufferUnknown = 3,
774
- /** {zh}
775
- * @platform ios
776
- * @brief CVSampleBufferRef 格式,音频数据以样本缓冲区 sample buffer 的形式进行处理和渲染。
777
- */
778
-
779
- VeLivePlayerAudioBufferTypeSampleBuffer = 4,
780
803
  /** {zh}
781
804
  * @platform ios
782
- * @brief NSData 格式,音频数据以 NSData 对象的形式进行处理和渲染。
805
+ * @brief PCM 音频数据。
783
806
  */
784
807
 
785
- VeLivePlayerAudioBufferTypeNSData = 5
808
+ get ios_data(): $p_i.NSData;
809
+ set ios_data(value: $p_i.NSData);
810
+ protected __init(...args: any[]): void;
811
+ protected __new_instance(...args: any[]): any;
786
812
  }
787
- export declare class t_VeLivePlayerAudioBufferType {
788
- static ts_to_android(value: VeLivePlayerAudioBufferType): $p_a.VeLivePlayerAudioBufferType;
789
- static android_to_ts(value: $p_a.VeLivePlayerAudioBufferType): VeLivePlayerAudioBufferType;
790
- static ts_to_ios(value: VeLivePlayerAudioBufferType): $p_i.VeLivePlayerAudioBufferType;
791
- static ios_to_ts(value: $p_i.VeLivePlayerAudioBufferType): VeLivePlayerAudioBufferType;
813
+ export declare class t_VeLivePlayerResolution {
814
+ static ts_to_android(value: VeLivePlayerResolution): $p_a.VeLivePlayerResolution;
815
+ static android_to_ts(value: $p_a.VeLivePlayerResolution): VeLivePlayerResolution;
816
+ static ts_to_ios(value: VeLivePlayerResolution): $p_i.VeLivePlayerResolution;
817
+ static ios_to_ts(value: $p_i.VeLivePlayerResolution): VeLivePlayerResolution;
792
818
  }
793
- /** {zh}
794
- * @detail keytype
795
- * @brief 视频顺时针旋转角度。
796
- */
797
-
798
- export declare enum VeLivePlayerRotation {
799
- /** {zh}
800
- * @brief 关闭旋转。
801
- */
802
-
803
- VeLivePlayerRotation0 = 0,
804
- /** {zh}
805
- * @brief 顺时针旋转 90 度。
806
- */
807
-
808
- VeLivePlayerRotation90 = 1,
809
- /** {zh}
810
- * @brief 顺时针旋转 180 度。
811
- */
812
-
813
- VeLivePlayerRotation180 = 2,
814
- /** {zh}
815
- * @brief 顺时针旋转 270 度。
816
- */
817
-
818
- VeLivePlayerRotation270 = 3
819
+ export declare class t_VeLivePlayerFillMode {
820
+ static ts_to_android(value: VeLivePlayerFillMode): $p_a.VeLivePlayerFillMode;
821
+ static android_to_ts(value: $p_a.VeLivePlayerFillMode): VeLivePlayerFillMode;
822
+ static ts_to_ios(value: VeLivePlayerFillMode): $p_i.VeLivePlayerFillMode;
823
+ static ios_to_ts(value: $p_i.VeLivePlayerFillMode): VeLivePlayerFillMode;
824
+ }
825
+ export declare class t_VeLivePlayerPixelFormat {
826
+ static ts_to_android(value: VeLivePlayerPixelFormat): $p_a.VeLivePlayerPixelFormat;
827
+ static android_to_ts(value: $p_a.VeLivePlayerPixelFormat): VeLivePlayerPixelFormat;
828
+ static ts_to_ios(value: VeLivePlayerPixelFormat): $p_i.VeLivePlayerPixelFormat;
829
+ static ios_to_ts(value: $p_i.VeLivePlayerPixelFormat): VeLivePlayerPixelFormat;
830
+ }
831
+ export declare class t_VeLivePlayerVideoBufferType {
832
+ static ts_to_android(value: VeLivePlayerVideoBufferType): $p_a.VeLivePlayerVideoBufferType;
833
+ static android_to_ts(value: $p_a.VeLivePlayerVideoBufferType): VeLivePlayerVideoBufferType;
834
+ static ts_to_ios(value: VeLivePlayerVideoBufferType): $p_i.VeLivePlayerVideoBufferType;
835
+ static ios_to_ts(value: $p_i.VeLivePlayerVideoBufferType): VeLivePlayerVideoBufferType;
819
836
  }
820
837
  export declare class t_VeLivePlayerRotation {
821
838
  static ts_to_android(value: VeLivePlayerRotation): $p_a.VeLivePlayerRotation;
@@ -823,111 +840,51 @@ export declare class t_VeLivePlayerRotation {
823
840
  static ts_to_ios(value: VeLivePlayerRotation): $p_i.VeLivePlayerRotation;
824
841
  static ios_to_ts(value: $p_i.VeLivePlayerRotation): VeLivePlayerRotation;
825
842
  }
826
- /** {zh}
827
- * @platform ios
828
- * @hidden
829
- * @detail keytype
830
- * @brief 直播播放 BMF 超分类型的枚举。
831
- */
832
-
833
- export declare enum VeLivePlayerBMFFlexSRType {
834
- /** {zh}
835
- * @platform ios
836
- * @brief 未知超分类型
837
- */
838
-
839
- VeLivePlayerBMFScale_Unknow = -1,
840
- /** {zh}
841
- * @platform ios
842
- * @brief 1.5 倍超分类型,即分辨率是原始分辨率的 1.5 倍
843
- */
844
-
845
- VeLivePlayerBMFScale_1_5 = 0,
846
- /** {zh}
847
- * @platform ios
848
- * @brief 2 超分类型,即分辨率是原始分辨率的 2 倍
849
- */
850
-
851
- VeLivePlayerBMFScale_2_0 = 1,
852
- /** {zh}
853
- * @platform ios
854
- * @brief 1.1 倍超分类型,即分辨率是原始分辨率的 1.1 倍
855
- */
856
-
857
- VeLivePlayerBMFScale_1_1 = 2,
858
- /** {zh}
859
- * @platform ios
860
- * @brief 1.2 倍超分类型,即分辨率是原始分辨率的 1.2 倍
861
- */
862
-
863
- VeLivePlayerBMFScale_1_2 = 3,
864
- /** {zh}
865
- * @platform ios
866
- * @brief 1.3 倍超分类型,即分辨率是原始分辨率的 1.3 倍
867
- */
868
-
869
- VeLivePlayerBMFScale_1_3 = 4,
870
- /** {zh}
871
- * @platform ios
872
- * @brief 1.4 倍超分类型,即分辨率是原始分辨率的 1.4 倍
873
- */
874
-
875
- VeLivePlayerBMFScale_1_4 = 5
843
+ export declare class t_VeLivePlayerMirror {
844
+ static ts_to_android(value: VeLivePlayerMirror): $p_a.VeLivePlayerMirror;
845
+ static android_to_ts(value: $p_a.VeLivePlayerMirror): VeLivePlayerMirror;
846
+ static ts_to_ios(value: VeLivePlayerMirror): $p_i.VeLivePlayerMirror;
847
+ static ios_to_ts(value: $p_i.VeLivePlayerMirror): VeLivePlayerMirror;
848
+ }
849
+ export declare class t_VeLivePlayerLogLevel {
850
+ static ts_to_android(value: VeLivePlayerLogLevel): $p_a.VeLivePlayerLogLevel;
851
+ static android_to_ts(value: $p_a.VeLivePlayerLogLevel): VeLivePlayerLogLevel;
852
+ static ts_to_ios(value: VeLivePlayerLogLevel): $p_i.VeLivePlayerLogLevel;
853
+ static ios_to_ts(value: $p_i.VeLivePlayerLogLevel): VeLivePlayerLogLevel;
876
854
  }
877
- export declare class t_VeLivePlayerBMFFlexSRType {
878
- static ts_to_android(value: VeLivePlayerBMFFlexSRType): never;
879
- static android_to_ts(value: unknown): never;
880
- static ts_to_ios(value: VeLivePlayerBMFFlexSRType): $p_i.VeLivePlayerBMFFlexSRType;
881
- static ios_to_ts(value: $p_i.VeLivePlayerBMFFlexSRType): VeLivePlayerBMFFlexSRType;
855
+ export declare class t_VeLivePlayerResolutionSwitchReason {
856
+ static ts_to_android(value: VeLivePlayerResolutionSwitchReason): $p_a.VeLivePlayerResolutionSwitchReason;
857
+ static android_to_ts(value: $p_a.VeLivePlayerResolutionSwitchReason): VeLivePlayerResolutionSwitchReason;
858
+ static ts_to_ios(value: VeLivePlayerResolutionSwitchReason): $p_i.VeLivePlayerResolutionSwitchReason;
859
+ static ios_to_ts(value: $p_i.VeLivePlayerResolutionSwitchReason): VeLivePlayerResolutionSwitchReason;
882
860
  }
883
- /** {zh}
884
- * @platform ios
885
- * @hidden
886
- * @detail keytype
887
- * @brief 直播播放 BMF 超分功能的错误码枚举。
888
- */
889
-
890
- export declare enum VeLivePlayerBMFFlexSRErrorCode {
891
- /** {zh}
892
- * @platform ios
893
- * @brief 未知错误
894
- */
895
-
896
- VeLivePlayerBMFFlexSRErrorUnknow = 0,
897
- /** {zh}
898
- * @platform ios
899
- * @brief 不满足超分的条件
900
- */
901
-
902
- VeLivePlayerBMFFlexSRErrorCondition = 1,
903
- /** {zh}
904
- * @platform ios
905
- * @brief 不支持该超分类型
906
- */
907
-
908
- VeLivePlayerBMFFlexSRErrorSRType = 2,
909
- /** {zh}
910
- * @platform ios
911
- * @brief 设置了重复的超分类型
912
- */
913
-
914
- VeLivePlayerBMFFlexSRErrorSRTypeSame = 3,
915
- /** {zh}
916
- * @platform ios
917
- * @brief 超分处理失败(仅在播放过程中设置生效)
918
- */
919
-
920
- VeLivePlayerBMFFlexSRErrorProcessFailed = 4,
921
- /** {zh}
922
- * @platform ios
923
- * @brief 超分设置成功
924
- */
925
-
926
- VeLivePlayerBMFFlexSRSuccess = 5
861
+ export declare class t_VeLivePlayerStreamType {
862
+ static ts_to_android(value: VeLivePlayerStreamType): $p_a.VeLivePlayerStreamType;
863
+ static android_to_ts(value: $p_a.VeLivePlayerStreamType): VeLivePlayerStreamType;
864
+ static ts_to_ios(value: VeLivePlayerStreamType): $p_i.VeLivePlayerStreamType;
865
+ static ios_to_ts(value: $p_i.VeLivePlayerStreamType): VeLivePlayerStreamType;
866
+ }
867
+ export declare class t_VeLivePlayerStatus {
868
+ static ts_to_android(value: VeLivePlayerStatus): $p_a.VeLivePlayerStatus;
869
+ static android_to_ts(value: $p_a.VeLivePlayerStatus): VeLivePlayerStatus;
870
+ static ts_to_ios(value: VeLivePlayerStatus): $p_i.VeLivePlayerStatus;
871
+ static ios_to_ts(value: $p_i.VeLivePlayerStatus): VeLivePlayerStatus;
872
+ }
873
+ export declare class t_VeLivePlayerFormat {
874
+ static ts_to_android(value: VeLivePlayerFormat): $p_a.VeLivePlayerFormat;
875
+ static android_to_ts(value: $p_a.VeLivePlayerFormat): VeLivePlayerFormat;
876
+ static ts_to_ios(value: VeLivePlayerFormat): $p_i.VeLivePlayerFormat;
877
+ static ios_to_ts(value: $p_i.VeLivePlayerFormat): VeLivePlayerFormat;
878
+ }
879
+ export declare class t_VeLivePlayerProtocol {
880
+ static ts_to_android(value: VeLivePlayerProtocol): $p_a.VeLivePlayerProtocol;
881
+ static android_to_ts(value: $p_a.VeLivePlayerProtocol): VeLivePlayerProtocol;
882
+ static ts_to_ios(value: VeLivePlayerProtocol): $p_i.VeLivePlayerProtocol;
883
+ static ios_to_ts(value: $p_i.VeLivePlayerProtocol): VeLivePlayerProtocol;
927
884
  }
928
- export declare class t_VeLivePlayerBMFFlexSRErrorCode {
929
- static ts_to_android(value: VeLivePlayerBMFFlexSRErrorCode): never;
930
- static android_to_ts(value: unknown): never;
931
- static ts_to_ios(value: VeLivePlayerBMFFlexSRErrorCode): $p_i.VeLivePlayerBMFFlexSRErrorCode;
932
- static ios_to_ts(value: $p_i.VeLivePlayerBMFFlexSRErrorCode): VeLivePlayerBMFFlexSRErrorCode;
885
+ export declare class t_VeLivePlayerAudioBufferType {
886
+ static ts_to_android(value: VeLivePlayerAudioBufferType): $p_a.VeLivePlayerAudioBufferType;
887
+ static android_to_ts(value: $p_a.VeLivePlayerAudioBufferType): VeLivePlayerAudioBufferType;
888
+ static ts_to_ios(value: VeLivePlayerAudioBufferType): $p_i.VeLivePlayerAudioBufferType;
889
+ static ios_to_ts(value: $p_i.VeLivePlayerAudioBufferType): VeLivePlayerAudioBufferType;
933
890
  }