@byteplus/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 (31) hide show
  1. package/android/build.gradle +2 -2
  2. package/android/src/main/java/com/volcengine/velive/rn/pull/VolcLiveModule.java +1 -1
  3. package/android/src/main/java/com/volcengine/velive/rn/pull/VolcViewManager.java +1 -1
  4. package/ios/VeLivePullView.m +1 -1
  5. package/ios/VeLivePullViewManager.m +1 -1
  6. package/lib/commonjs/index.js +12227 -8161
  7. package/lib/module/index.js +12228 -8160
  8. package/lib/typescript/codegen/android/api.d.ts +253 -4
  9. package/lib/typescript/codegen/android/errorcode.d.ts +2 -2
  10. package/lib/typescript/codegen/android/external.d.ts +1 -0
  11. package/lib/typescript/codegen/android/index.d.ts +1 -0
  12. package/lib/typescript/codegen/android/keytype.d.ts +2 -4
  13. package/lib/typescript/codegen/android/types.d.ts +7 -6
  14. package/lib/typescript/codegen/ios/api.d.ts +4 -8
  15. package/lib/typescript/codegen/ios/callback.d.ts +17 -21
  16. package/lib/typescript/codegen/ios/external.d.ts +1 -0
  17. package/lib/typescript/codegen/ios/index.d.ts +1 -0
  18. package/lib/typescript/codegen/ios/keytype.d.ts +0 -30
  19. package/lib/typescript/codegen/ios/types.d.ts +16 -5
  20. package/lib/typescript/codegen/pack/api.d.ts +73 -96
  21. package/lib/typescript/codegen/pack/callback.d.ts +59 -45
  22. package/lib/typescript/codegen/pack/errorcode.d.ts +56 -49
  23. package/lib/typescript/codegen/pack/external.d.ts +1 -0
  24. package/lib/typescript/codegen/pack/index.d.ts +2 -1
  25. package/lib/typescript/codegen/pack/keytype.d.ts +346 -630
  26. package/lib/typescript/codegen/pack/types.d.ts +68 -1
  27. package/lib/typescript/component.d.ts +9 -2
  28. package/lib/typescript/core/keytype.d.ts +1 -1
  29. package/lib/typescript/platforms/ios/extends.d.ts +2 -0
  30. package/package.json +1 -1
  31. package/react-native-velive-pull.podspec +3 -3
@@ -1,713 +1,521 @@
1
1
  import * as $p_a from '../android/index';
2
2
  import * as $p_i from '../ios/index';
3
3
 
4
- /** {en}
5
- * @detail keytype
6
- * @brief The player resolution.
7
- */
8
- export declare enum VeLivePlayerResolution {
9
-
10
- /** {en}
11
- * @brief Original.
12
- */
13
- VeLivePlayerResolutionOrigin = 0,
4
+ export declare enum VeLivePlayerRotation {
14
5
 
15
- /** {en}
16
- * @brief Ultra high definition (UHD).
17
- */
18
- VeLivePlayerResolutionUHD = 1,
6
+ VeLivePlayerRotation0 = 0,
19
7
 
20
- /** {en}
21
- * @brief High definition (HD).
22
- */
23
- VeLivePlayerResolutionHD = 2,
8
+ VeLivePlayerRotation90 = 1,
24
9
 
25
- /** {en}
26
- * @brief Standard definition (SD).
27
- */
28
- VeLivePlayerResolutionSD = 3,
10
+ VeLivePlayerRotation180 = 2,
29
11
 
30
- /** {en}
31
- * @brief Low definition (LD).
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;
12
+ VeLivePlayerRotation270 = 3
40
13
  }
41
14
 
42
- /** {en}
43
- * @detail keytype
44
- * @brief The configurations for player initialization.
45
- */
46
- export declare class VeLivePlayerConfiguration {
15
+ export declare class VeLivePlayerStreamData {
47
16
  protected _instance: any;
48
- protected __init(...args: any[]): void;
49
- protected __new_instance(...args: any[]): $p_a.VeLivePlayerConfiguration | $p_i.VeLivePlayerConfiguration;
50
17
 
51
18
  /** {en}
52
- * @brief Whether to enable the parsing of SEI messages. The default value is `false`. <br>
53
- * - true: Enable;
54
- * - false: Disable.
55
- */
56
- get enableSei(): boolean;
57
- set enableSei(value: boolean);
58
-
59
- /** {en}
60
- * @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>
61
- * - true: Enable;
62
- * - false: Disable.
19
+ * @brief A list of main stream addresses. See [VeLivePlayerStream](#VeLivePlayerStreamData-VeLivePlayerStream) for details.
20
+ *
63
21
  */
64
- get enableHardwareDecode(): boolean;
65
- set enableHardwareDecode(value: boolean);
22
+ get mainStreamList(): VeLivePlayerStream[];
23
+ set mainStreamList(value: VeLivePlayerStream[]);
66
24
 
67
25
  /** {en}
68
- * @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 to have failed.
26
+ * @brief A list of backup stream addresses. See [VeLivePlayerStream](#VeLivePlayerStreamData-VeLivePlayerStream) for details.
27
+ *
69
28
  */
70
- get networkTimeoutMs(): number;
71
- set networkTimeoutMs(value: number);
29
+ get backupStreamList(): VeLivePlayerStream[];
30
+ set backupStreamList(value: VeLivePlayerStream[]);
72
31
 
73
32
  /** {en}
74
- * @brief The retry time interval, in milliseconds. The default value is `5000`. This variable takes effect only when there is no backup stream.
75
- * - 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.
76
- * - In the presence of a backup stream, the time interval will not take effect because all retries will be executed immediately without any waiting time.
33
+ * @brief Whether to enable adaptive bitrate (ABR). The default value is `false`. <br>
34
+ * - true: Enable;
35
+ * - false: Disable.
36
+ *
77
37
  */
78
- get retryIntervalTimeMs(): number;
79
- set retryIntervalTimeMs(value: number);
38
+ get enableABR(): boolean;
39
+ set enableABR(value: boolean);
80
40
 
81
41
  /** {en}
82
- * @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.
83
- * - In the absence of a backup stream, each retry will count as one retry attempt.
84
- * - In the presence of a backup stream, each switch between the primary stream and the backup stream will count as a retry attempt.
42
+ * @brief Whether to enable switching between primary and backup streams. The default value is `false`. <br>
43
+ * - true: Enable;
44
+ * - false: Disable.
45
+ *
85
46
  */
86
- get retryMaxCount(): number;
87
- set retryMaxCount(value: number);
47
+ get enableMainBackupSwitch(): boolean;
48
+ set enableMainBackupSwitch(value: boolean);
88
49
 
89
50
  /** {en}
90
- * @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>
91
- * - true: Enable;
92
- * - false: Disable.
51
+ * @brief The default resolution. The default value is `VeLivePlayerResolutionOrigin`, which indicates the original resolution. See VeLivePlayerResolution {@link #VeLivePlayerResolution} for details.
52
+ *
93
53
  */
94
- get enableLiveDNS(): boolean;
95
- set enableLiveDNS(value: boolean);
54
+ get defaultResolution(): VeLivePlayerResolution;
55
+ set defaultResolution(value: VeLivePlayerResolution);
96
56
 
97
57
  /** {en}
98
- * @brief Whether to enable periodic callbacks for playback information. The default value is `false`. Refer to VeLivePlayerStatistics {@link #VeLivePlayerStatistics} for more information on callback statistics. If `enableStatisticsCallback` is `true` and statisticsCallbackInterval {@link #statisticsCallbackInterval} is greater than `0`, the player will periodically report the player status information after the specified time interval.
99
- * - true: Enable;
100
- * - false: Disable.
58
+ * @brief The default video format. The default value is `VeLivePlayerFormatFLV`. See VeLivePlayerFormat {@link #VeLivePlayerFormat} for details.
59
+ *
101
60
  */
102
- get enableStatisticsCallback(): boolean;
103
- set enableStatisticsCallback(value: boolean);
61
+ get defaultFormat(): VeLivePlayerFormat;
62
+ set defaultFormat(value: VeLivePlayerFormat);
104
63
 
105
64
  /** {en}
106
- * @brief The time interval for periodic callbacks that provide playback information, in seconds. The default value is `5`. If {@link #enableStatisticsCallback enableStatisticsCallback} is `true` and `statisticsCallbackInterval` is greater than `0`, the player will periodically report the player status information after the specified time interval.
65
+ * @brief The default transmission protocol. The default value is `VeLivePlayerProtocolTCP`. See VeLivePlayerProtocol {@link #VeLivePlayerProtocol} for details.
66
+ *
107
67
  */
108
- get statisticsCallbackInterval(): number;
109
- set statisticsCallbackInterval(value: number);
68
+ get defaultProtocol(): VeLivePlayerProtocol;
69
+ set defaultProtocol(value: VeLivePlayerProtocol);
70
+ protected __init(...args: any[]): void;
71
+ protected __new_instance(...args: any[]): any;
110
72
  }
111
73
 
112
- /** {en}
113
- * @detail keytype
114
- * @brief The format of the live stream.
115
- */
116
- export declare enum VeLivePlayerFormat {
74
+ export declare enum VeLivePlayerStatus {
117
75
 
118
- /** {en}
119
- * @brief FLV.
120
- */
121
- VeLivePlayerFormatFLV = 0,
76
+ VeLivePlayerStatusPrepared = 0,
122
77
 
123
- /** {en}
124
- * @brief HLS.
125
- */
126
- VeLivePlayerFormatHLS = 1,
78
+ VeLivePlayerStatusPlaying = 1,
127
79
 
128
- /** {en}
129
- * @brief Real Time Media (RTM).
130
- */
131
- VeLivePlayerFormatRTM = 2
80
+ VeLivePlayerStatusPaused = 2,
81
+
82
+ VeLivePlayerStatusStopped = 3,
83
+
84
+ VeLivePlayerStatusError = 4
132
85
  }
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;
86
+
87
+ export declare enum VeLivePlayerResolutionSwitchReason {
88
+
89
+ VeLivePlayerResolutionSwitchByAuto = 0,
90
+
91
+ VeLivePlayerResolutionSwitchByManual = 1
138
92
  }
139
93
 
140
- /** {en}
141
- * @detail keytype
142
- * @brief The transmission protocol.
143
- */
144
- export declare enum VeLivePlayerProtocol {
94
+ export declare enum VeLivePlayerFillMode {
145
95
 
146
- /** {en}
147
- * @brief TCP.
148
- */
149
- VeLivePlayerProtocolTCP = 0,
96
+ VeLivePlayerFillModeAspectFit = 0,
150
97
 
151
- /** {en}
152
- * @brief QUIC.
153
- */
154
- VeLivePlayerProtocolQUIC = 1,
98
+ VeLivePlayerFillModeFullFill = 1,
155
99
 
156
- /** {en}
157
- * @brief TLS.
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;
100
+ VeLivePlayerFillModeAspectFill = 2
166
101
  }
167
102
 
168
- /** {en}
169
- * @detail keytype
170
- * @brief The mirroring option.
171
- */
172
- export declare enum VeLivePlayerMirror {
103
+ export declare class VeLivePlayerStatistics {
104
+ protected _instance: any;
173
105
 
174
106
  /** {en}
175
- * @brief No mirroring.
107
+ * @brief Whether hardware decoding is used. <br>
108
+ * - true: Hardware decoding is used;
109
+ * - false: Hardware decoding is not used.
110
+ *
176
111
  */
177
- VeLivePlayerMirrorNone = 0,
112
+ get isHardwareDecode(): boolean;
178
113
 
179
114
  /** {en}
180
- * @brief Horizontal mirroring.
115
+ * @brief The video format.
116
+ *
181
117
  */
182
- VeLivePlayerMirrorHorizontal = 1,
118
+ get format(): void;
183
119
 
184
120
  /** {en}
185
- * @brief Vertical mirroring.
186
- */
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;
194
- }
195
-
196
- /** {en}
197
- * @detail keytype
198
- * @brief The encapsulation format of the video data.
199
- */
200
- export declare enum VeLivePlayerVideoBufferType {
201
-
202
- /** {en}
203
- * @brief Unknown format.
121
+ * @brief The transmission protocol of the live stream.
122
+ *
204
123
  */
205
- VeLivePlayerVideoBufferTypeUnknown = 0,
124
+ get protocol(): void;
206
125
 
207
126
  /** {en}
208
- * @platform android
209
- * @brief ByteBuffer.
127
+ * @brief The current pull stream address.
128
+ *
210
129
  */
211
- VeLivePlayerVideoBufferTypeByteBuffer = 1,
130
+ get url(): string;
212
131
 
213
132
  /** {en}
214
- * @platform android
215
- * @brief ByteArray.
133
+ * @brief The encoding format of the video.
134
+ *
216
135
  */
217
- VeLivePlayerVideoBufferTypeByteArray = 2,
136
+ get videoCodec(): string;
218
137
 
219
138
  /** {en}
220
- * @platform android
221
- * @brief Texture.
139
+ * @brief The cumulative duration of stutters that occurred since the beginning of playback, in milliseconds.
140
+ *
222
141
  */
223
- VeLivePlayerVideoBufferTypeTexture = 3,
142
+ get stallTimeMs(): number;
224
143
 
225
- /** {en}
226
- * @platform ios
227
- * @brief CVPixelBufferRef.
228
- */
229
- VeLivePlayerVideoBufferTypePixelBuffer = 5,
144
+ get bandwidthEstimation(): number;
230
145
 
231
146
  /** {en}
232
- * @platform ios
233
- * @brief CVSampleBufferRef.
147
+ * @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.
148
+ *
234
149
  */
235
- VeLivePlayerVideoBufferTypeSampleBuffer = 6,
150
+ get delayMs(): number;
236
151
 
237
152
  /** {en}
238
- * @platform ios
239
- * @brief NSData.
153
+ * @brief The width of the video, in pixels.
154
+ *
240
155
  */
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;
248
- }
249
-
250
- /** {en}
251
- * @detail keytype
252
- * @brief The status of the live player.
253
- */
254
- export declare enum VeLivePlayerStatus {
156
+ get width(): number;
255
157
 
256
158
  /** {en}
257
- * @brief The playback is stopped.
159
+ * @brief The height of the video, in pixels.
160
+ *
258
161
  */
259
- VeLivePlayerStatusStopped = 3,
162
+ get height(): number;
260
163
 
261
164
  /** {en}
262
- * @brief The playback is paused.
165
+ * @brief The frame rate of the video, in fps.
166
+ *
263
167
  */
264
- VeLivePlayerStatusPaused = 2,
168
+ get fps(): number;
265
169
 
266
170
  /** {en}
267
- * @brief The player finishes preparing and is waiting to render the video.
171
+ * @brief The downlink bitrate, in Kbps.
172
+ *
268
173
  */
269
- VeLivePlayerStatusPrepared = 0,
174
+ get bitrate(): number;
270
175
 
271
176
  /** {en}
272
- * @brief Playback is currently in progress, meaning that the first frame has been rendered and no errors have occurred to the player.
177
+ * @brief The video buffer, in milliseconds.
178
+ *
273
179
  */
274
- VeLivePlayerStatusPlaying = 1,
180
+ get videoBufferMs(): number;
275
181
 
276
182
  /** {en}
277
- * @brief An error has occurred to the player.
183
+ * @brief The audio buffer, in milliseconds.
184
+ *
278
185
  */
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 {
186
+ get audioBufferMs(): number;
288
187
  }
289
188
 
290
- /** {en}
291
- * @detail keytype
292
- * @brief The configurations for the pull stream addresses.
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;
189
+ export declare enum VeLivePlayerVideoBufferType {
298
190
 
299
- /** {en}
300
- * @brief Whether to enable adaptive bitrate (ABR). The default value is `false`. <br>
301
- * - true: Enable;
302
- * - false: Disable.
303
- */
304
- get enableABR(): boolean;
305
- set enableABR(value: boolean);
191
+ VeLivePlayerVideoBufferTypeUnknown = 0,
306
192
 
307
- /** {en}
308
- * @brief Whether to enable switching between primary and backup streams. The default value is `false`. <br>
309
- * - true: Enable;
310
- * - false: Disable.
311
- */
312
- get enableMainBackupSwitch(): boolean;
313
- set enableMainBackupSwitch(value: boolean);
193
+ VeLivePlayerVideoBufferTypeByteBuffer = 1,
314
194
 
315
- /** {en}
316
- * @brief The default resolution. The default value is `VeLivePlayerResolutionOrigin`, which indicates the original resolution. See VeLivePlayerResolution {@link #VeLivePlayerResolution} for details.
317
- */
318
- get defaultResolution(): VeLivePlayerResolution;
319
- set defaultResolution(value: VeLivePlayerResolution);
195
+ VeLivePlayerVideoBufferTypeByteArray = 2,
320
196
 
321
- /** {en}
322
- * @brief The default video format. The default value is `VeLivePlayerFormatFLV`. See VeLivePlayerFormat {@link #VeLivePlayerFormat} for details.
323
- */
324
- get defaultFormat(): VeLivePlayerFormat;
325
- set defaultFormat(value: VeLivePlayerFormat);
197
+ VeLivePlayerVideoBufferTypeTexture = 3,
326
198
 
327
- /** {en}
328
- * @brief The default transmission protocol. The default value is `VeLivePlayerProtocolTCP`. See VeLivePlayerProtocol {@link #VeLivePlayerProtocol} for details.
329
- */
330
- get defaultProtocol(): VeLivePlayerProtocol;
331
- set defaultProtocol(value: VeLivePlayerProtocol);
199
+ VeLivePlayerVideoBufferTypePixelBuffer = 4,
332
200
 
333
- /** {en}
334
- * @brief A list of main stream addresses. See [VeLivePlayerStream](#VeLivePlayerStreamData-VeLivePlayerStream) for details.
335
- */
336
- get mainStreamList(): VeLivePlayerStream[];
337
- set mainStreamList(value: VeLivePlayerStream[]);
201
+ VeLivePlayerVideoBufferTypeSampleBuffer = 5,
338
202
 
339
- /** {en}
340
- * @brief A list of backup stream addresses. See [VeLivePlayerStream](#VeLivePlayerStreamData-VeLivePlayerStream) for details.
341
- */
342
- get backupStreamList(): VeLivePlayerStream[];
343
- set backupStreamList(value: VeLivePlayerStream[]);
203
+ VeLivePlayerVideoBufferTypeNSData = 6
344
204
  }
345
205
 
346
- /** {en}
347
- * @detail keytype
348
- * @brief The reason why the video resolution has changed.
349
- */
350
- export declare enum VeLivePlayerResolutionSwitchReason {
206
+ export declare enum VeLivePlayerPixelFormat {
351
207
 
352
- /** {en}
353
- * @brief The resolution is switched automatically through the adaptive bitrate (ABR) feature.
354
- */
355
- VeLivePlayerResolutionSwitchByAuto = 0,
208
+ VeLivePlayerPixelFormatUnknown = 0,
356
209
 
357
- /** {en}
358
- * @brief The resolution is changed after {@link #VeLivePlayer#switchResolution switchResolution} is called.
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;
210
+ VeLivePlayerPixelFormatRGBA32 = 1,
211
+
212
+ VeLivePlayerPixelFormatTexture = 2,
213
+
214
+ VeLivePlayerPixelFormatNV12 = 3,
215
+
216
+ VeLivePlayerPixelFormatI420 = 4,
217
+
218
+ VeLivePlayerPixelFormatBGRA32 = 5
367
219
  }
368
220
 
369
- /** {en}
370
- * @detail keytype
371
- * @brief The information about a pull stream address.
372
- */
373
- export declare class VeLivePlayerStream {
374
- protected _instance: any;
375
- protected __init(...args: any[]): void;
376
- protected __new_instance(...args: any[]): $p_a.VeLivePlayerStream | $p_i.VeLivePlayerStream;
221
+ export declare enum VeLivePlayerAudioBufferType {
377
222
 
378
- /** {en}
379
- * @brief The pull stream address.
380
- */
381
- get url(): string;
382
- set url(value: string);
223
+ VeLivePlayerAudioBufferTypeUnknown = 0,
383
224
 
384
- /** {en}
385
- * @brief The playback resolution. For details, see {@link #VeLivePlayerResolution VeLivePlayerResolution}.
386
- */
387
- get resolution(): VeLivePlayerResolution;
388
- set resolution(value: VeLivePlayerResolution);
225
+ VeLivePlayerAudioBufferTypeByteArray = 1,
389
226
 
390
- /** {en}
391
- * @brief The playback bitrate, in Kbps.
392
- */
393
- get bitrate(): number;
394
- set bitrate(value: number);
227
+ VeLivePlayerAudioBufferUnknown = 2,
395
228
 
396
- /** {en}
397
- * @brief The format of the live stream. See {@link #VeLivePlayerFormat VeLivePlayerFormat} for details.
398
- */
399
- get format(): VeLivePlayerFormat;
400
- set format(value: VeLivePlayerFormat);
229
+ VeLivePlayerAudioBufferTypeSampleBuffer = 3,
401
230
 
402
- /** {en}
403
- * @platform android
404
- * @brief Whether the stream is a main or backup stream. See {@link #VeLivePlayerStreamType VeLivePlayerStreamType} for details.
405
- */
406
- get android_streamType(): $p_a.VeLivePlayerStreamType;
407
- set android_streamType(value: $p_a.VeLivePlayerStreamType);
231
+ VeLivePlayerAudioBufferTypeNSData = 4
408
232
  }
409
233
 
410
- /** {en}
411
- * @detail keytype
412
- * @brief The fill mode of the player screen.
413
- */
414
- export declare enum VeLivePlayerFillMode {
234
+ export declare enum VeLivePlayerResolution {
415
235
 
416
- /** {en}
417
- * @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.
418
- */
419
- VeLivePlayerFillModeAspectFit = 0,
236
+ VeLivePlayerResolutionOrigin = 0,
420
237
 
421
- /** {en}
422
- * @brief Stretch the video to fill the screen. The aspect ratio of the video might change.
423
- */
424
- VeLivePlayerFillModeFullFill = 1,
238
+ VeLivePlayerResolutionUHD = 1,
425
239
 
426
- /** {en}
427
- * @brief Uniformly scale the video until the screen is completely filled. Part of the video may be cropped.
428
- */
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;
240
+ VeLivePlayerResolutionHD = 2,
241
+
242
+ VeLivePlayerResolutionSD = 3,
243
+
244
+ VeLivePlayerResolutionLD = 4
436
245
  }
437
246
 
438
- /** {en}
439
- * @detail keytype
440
- * @brief The pixel format of the video frame.
441
- */
442
- export declare enum VeLivePlayerPixelFormat {
247
+ export declare class VeLivePlayerConfiguration {
248
+ protected _instance: any;
443
249
 
444
250
  /** {en}
445
- * @brief Unknown format.
251
+ * @brief Whether to enable the parsing of SEI messages. The default value is `false`. <br>
252
+ * - true: Enable;
253
+ * - false: Disable.
254
+ *
446
255
  */
447
- VeLivePlayerPixelFormatUnknown = 0,
256
+ get enableSei(): boolean;
257
+ set enableSei(value: boolean);
448
258
 
449
259
  /** {en}
450
- * @platform android
451
- * @brief RGBA8888.
260
+ * @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>
261
+ * - true: Enable;
262
+ * - false: Disable.
263
+ *
452
264
  */
453
- VeLivePlayerPixelFormatRGBA32 = 1,
265
+ get enableHardwareDecode(): boolean;
266
+ set enableHardwareDecode(value: boolean);
454
267
 
455
268
  /** {en}
456
- * @platform android
457
- * @brief Texture.
269
+ * @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 to have failed.
270
+ *
458
271
  */
459
- VeLivePlayerPixelFormatTexture = 2,
272
+ get networkTimeoutMs(): number;
273
+ set networkTimeoutMs(value: number);
460
274
 
461
275
  /** {en}
462
- * @platform ios
463
- * @brief NV12.
276
+ * @brief The retry time interval, in milliseconds. The default value is `5000`. This variable takes effect only when there is no backup stream.<br>
277
+ * - 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.
278
+ * - In the presence of a backup stream, the time interval will not take effect because all retries will be executed immediately without any waiting time.
279
+ *
464
280
  */
465
- VeLivePlayerPixelFormatNV12 = 4,
281
+ get retryIntervalTimeMs(): number;
282
+ set retryIntervalTimeMs(value: number);
466
283
 
467
284
  /** {en}
468
- * @platform ios
469
- * @brief YUVI420.
285
+ * @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>
286
+ * - In the absence of a backup stream, each retry will count as one retry attempt.
287
+ * - In the presence of a backup stream, each switch between the primary stream and the backup stream will count as a retry attempt.
288
+ *
470
289
  */
471
- VeLivePlayerPixelFormatI420 = 5,
290
+ get retryMaxCount(): number;
291
+ set retryMaxCount(value: number);
472
292
 
473
293
  /** {en}
474
- * @platform ios
475
- * @brief BGRA.
294
+ * @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>
295
+ * - true: Enable;
296
+ * - false: Disable.
297
+ *
476
298
  */
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;
484
- }
485
-
486
- /** {en}
487
- * @detail keytype
488
- * @brief The playback statistics.
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;
299
+ get enableLiveDNS(): boolean;
300
+ set enableLiveDNS(value: boolean);
494
301
 
495
302
  /** {en}
496
- * @brief The current pull stream address.
303
+ * @brief Whether to enable periodic callbacks for playback information. The default value is `false`. Refer to VeLivePlayerStatistics {@link #VeLivePlayerStatistics} for more information on callback statistics. If `enableStatisticsCallback` is `true` and statisticsCallbackInterval {@link #statisticsCallbackInterval} is greater than `0`, the player will periodically report the player status information after the specified time interval.<br>
304
+ * - true: Enable;
305
+ * - false: Disable.
306
+ *
497
307
  */
498
- get url(): string;
308
+ get enableStatisticsCallback(): boolean;
309
+ set enableStatisticsCallback(value: boolean);
499
310
 
500
311
  /** {en}
501
- * @brief Whether hardware decoding is used. <br>
502
- * - true: Hardware decoding is used;
503
- * - false: Hardware decoding is not used.
312
+ * @brief The time interval for periodic callbacks that provide playback information, in seconds. The default value is `5`. If enableStatisticsCallback{@link #enableStatisticsCallback} is `true` and `statisticsCallbackInterval` is greater than `0`, the player will periodically report the player status information after the specified time interval.
313
+ *
504
314
  */
505
- get isHardwareDecode(): boolean;
315
+ get statisticsCallbackInterval(): number;
316
+ set statisticsCallbackInterval(value: number);
317
+ protected __init(...args: any[]): void;
318
+ protected __new_instance(...args: any[]): any;
319
+ }
320
+
321
+ export declare enum VeLivePlayerFormat {
506
322
 
507
- /** {en}
508
- * @brief The encoding format of the video.
509
- */
510
- get videoCodec(): string;
323
+ VeLivePlayerFormatFLV = 0,
511
324
 
512
- /** {en}
513
- * @brief The cumulative duration of stutters that occurred since the beginning of playback, in milliseconds.
514
- */
515
- get stallTimeMs(): number;
325
+ VeLivePlayerFormatHLS = 1,
326
+
327
+ VeLivePlayerFormatRTM = 2
328
+ }
329
+
330
+ export declare enum VeLivePlayerProtocol {
331
+
332
+ VeLivePlayerProtocolTCP = 0,
516
333
 
517
- get bandwidthEstimation(): number;
334
+ VeLivePlayerProtocolQUIC = 1,
518
335
 
519
- /** {en}
520
- * @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.
521
- */
522
- get delayMs(): number;
336
+ VeLivePlayerProtocolTLS = 2
337
+ }
338
+
339
+ export declare enum VeLivePlayerMirror {
523
340
 
524
- /** {en}
525
- * @brief The width of the video, in pixels.
526
- */
527
- get width(): number;
341
+ VeLivePlayerMirrorNone = 0,
342
+
343
+ VeLivePlayerMirrorHorizontal = 1,
344
+
345
+ VeLivePlayerMirrorVertical = 2
346
+ }
347
+
348
+ export declare class VeLivePlayerStream {
349
+ constructor();
350
+ constructor();
351
+ protected _instance: any;
528
352
 
529
353
  /** {en}
530
- * @brief The height of the video, in pixels.
354
+ * @brief The pull stream address.
355
+ *
531
356
  */
532
- get height(): number;
357
+ get url(): string;
358
+ set url(value: string);
533
359
 
534
360
  /** {en}
535
- * @brief The frame rate of the video, in fps.
361
+ * @brief The playback resolution. For details, see VeLivePlayerResolution{@link #VeLivePlayerResolution}.
362
+ *
536
363
  */
537
- get fps(): number;
364
+ get resolution(): VeLivePlayerResolution;
365
+ set resolution(value: VeLivePlayerResolution);
538
366
 
539
367
  /** {en}
540
- * @brief The downlink bitrate, in Kbps.
368
+ * @brief The playback bitrate, in Kbps.
369
+ *
541
370
  */
542
371
  get bitrate(): number;
372
+ set bitrate(value: number);
543
373
 
544
374
  /** {en}
545
- * @brief The video buffer, in milliseconds.
375
+ * @brief The format of the live stream. See VeLivePlayerFormat{@link #VeLivePlayerFormat} for details.
376
+ *
546
377
  */
547
- get videoBufferMs(): number;
378
+ get format(): VeLivePlayerFormat;
379
+ set format(value: VeLivePlayerFormat);
548
380
 
549
381
  /** {en}
550
- * @brief The audio buffer, in milliseconds.
382
+ * @platform android
383
+ * @brief Whether the stream is a main or backup stream. See VeLivePlayerStreamType{@link #VeLivePlayerStreamType} for details.
384
+ *
551
385
  */
552
- get audioBufferMs(): number;
386
+ get android_streamType(): $p_a.VeLivePlayerStreamType;
387
+ set android_streamType(value: $p_a.VeLivePlayerStreamType);
553
388
 
554
389
  /** {en}
555
- * @brief The video format.
390
+ * @platform ios
391
+ * @brief The transmission protocol. See VeLivePlayerProtocol {@link #VeLivePlayerProtocol} for details.
556
392
  */
557
- get format(): VeLivePlayerFormat;
393
+ get ios_protocol(): $p_i.VeLivePlayerProtocol;
394
+ set ios_protocol(value: $p_i.VeLivePlayerProtocol);
558
395
 
559
396
  /** {en}
560
- * @brief The transmission protocol of the live stream.
397
+ * @platform ios
398
+ * @brief Whether the stream is a primary or a backup stream. See VeLivePlayerStreamType {@link #VeLivePlayerStreamType} for details.
561
399
  */
562
- get protocol(): VeLivePlayerProtocol;
400
+ get ios_type(): $p_i.VeLivePlayerStreamType;
401
+ set ios_type(value: $p_i.VeLivePlayerStreamType);
402
+ protected __init(...args: any[]): void;
403
+ protected __new_instance(...args: any[]): any;
563
404
  }
564
405
 
565
- /** {en}
566
- * @detail keytype
567
- * @brief The video frame.
568
- */
569
406
  export declare class VeLivePlayerVideoFrame {
570
407
  protected _instance: any;
571
- protected __init(...args: any[]): void;
572
- protected __new_instance(...args: any[]): $p_a.VeLivePlayerVideoFrame | $p_i.VeLivePlayerVideoFrame;
573
408
 
574
409
  /** {en}
575
410
  * @brief The encapsulation format. See VeLivePlayerVideoBufferType {@link #VeLivePlayerVideoBufferType} for details.
411
+ *
576
412
  */
577
413
  get bufferType(): VeLivePlayerVideoBufferType;
578
414
  set bufferType(value: VeLivePlayerVideoBufferType);
579
415
 
580
416
  /** {en}
581
417
  * @brief The pixel format. See VeLivePlayerPixelFormat {@link #VeLivePlayerPixelFormat} for details.
418
+ *
582
419
  */
583
420
  get pixelFormat(): VeLivePlayerPixelFormat;
584
421
  set pixelFormat(value: VeLivePlayerPixelFormat);
585
422
 
586
423
  /** {en}
587
424
  * @brief The video width, in pixels.
425
+ *
588
426
  */
589
427
  get width(): number;
590
428
  set width(value: number);
591
429
 
592
430
  /** {en}
593
431
  * @brief The video height, in pixels.
432
+ *
594
433
  */
595
434
  get height(): number;
596
435
  set height(value: number);
597
436
 
598
437
  /** {en}
599
438
  * @brief The timestamp indicating the time when the video frame is rendered, in milliseconds.
439
+ *
600
440
  */
601
441
  get pts(): number;
602
442
  set pts(value: number);
603
443
 
604
444
  /** {en}
605
- * @hidden
606
445
  * @platform android
607
- * @brief The texture data for OpenGL rendering. The SDK returns this video data type if you set {@link #VeLivePlayerPixelFormat VeLivePlayerPixelFormat} to `VeLivePlayerPixelFormatTexture` and set {@link #VeLivePlayerVideoBufferType VeLivePlayerVideoBufferType} to `VeLivePlayerVideoBufferTypeTexture`. See VeLivePlayerVideoTexture {@link #VeLivePlayerVideoTexture} for details.
446
+ * @brief The texture data for OpenGL rendering. The SDK returns this video data type if you set VeLivePlayerPixelFormat{@link #VeLivePlayerPixelFormat} to `VeLivePlayerPixelFormatTexture` and set VeLivePlayerVideoBufferType{@link #VeLivePlayerVideoBufferType} to `VeLivePlayerVideoBufferTypeTexture`. See VeLivePlayerVideoTexture {@link #VeLivePlayerVideoTexture} for details.
447
+ *
608
448
  */
609
449
  get android_texture(): $p_a.VeLivePlayerVideoTexture;
610
450
  set android_texture(value: $p_a.VeLivePlayerVideoTexture);
611
451
 
612
452
  /** {en}
613
453
  * @platform android
614
- * @brief The video data in ByteBuffer format. The SDK returns this video data type if you set {@link #VeLivePlayerPixelFormat VeLivePlayerPixelFormat} to `VeLivePlayerPixelFormatRGBA32` and set {@link #VeLivePlayerVideoBufferType VeLivePlayerVideoBufferType} to `VeLivePlayerVideoBufferTypeByteBuffer`.
454
+ * @brief The video data in ByteBuffer format. The SDK returns this video data type if you set VeLivePlayerPixelFormat{@link #VeLivePlayerPixelFormat} to `VeLivePlayerPixelFormatRGBA32` and set VeLivePlayerVideoBufferType{@link #VeLivePlayerVideoBufferType} to `VeLivePlayerVideoBufferTypeByteBuffer`.
455
+ *
615
456
  */
616
457
  get android_buffer(): $p_a.ByteBuffer;
617
458
  set android_buffer(value: $p_a.ByteBuffer);
618
459
 
619
460
  /** {en}
620
- * @brief The video data in ByteArray format. The SDK returns this video data type if you set {@link #VeLivePlayerPixelFormat VeLivePlayerPixelFormat} to `VeLivePlayerPixelFormatRGBA32` and set {@link #VeLivePlayerVideoBufferType VeLivePlayerVideoBufferType} to `VeLivePlayerVideoBufferTypeByteArray`.
461
+ * @brief The video data in ByteArray format. The SDK returns this video data type if you set VeLivePlayerPixelFormat{@link #VeLivePlayerPixelFormat} to `VeLivePlayerPixelFormatRGBA32` and set VeLivePlayerVideoBufferType{@link #VeLivePlayerVideoBufferType} to `VeLivePlayerVideoBufferTypeByteArray`.
462
+ *
621
463
  */
622
464
  get data(): ArrayBuffer;
623
465
  set data(value: ArrayBuffer);
624
- }
625
- export declare class VeLivePlayerVideoTexture extends $p_a.VeLivePlayerVideoTexture {
626
- }
627
-
628
- /** {en}
629
- * @detail keytype
630
- * @brief The type of the live stream.
631
- */
632
- export declare enum VeLivePlayerStreamType {
633
466
 
634
467
  /** {en}
635
- * @brief The primary stream.
468
+ * @platform ios
469
+ * @brief The video data, if you set VeLivePlayerVideoBufferType{@link #VeLivePlayerVideoBufferType} to `VeLivePlayerVideoBufferTypePixelBuffer`.
636
470
  */
637
- VeLivePlayerStreamTypeMain = 0,
471
+ get ios_pixelBuffer(): $p_i.CVPixelBufferRef;
472
+ set ios_pixelBuffer(value: $p_i.CVPixelBufferRef);
638
473
 
639
474
  /** {en}
640
- * @brief The backup stream.
475
+ * @platform ios
476
+ * @brief The video data, if you set VeLivePlayerVideoBufferType{@link #VeLivePlayerVideoBufferType} to `VeLivePlayerVideoBufferTypeSampleBuffer`.
641
477
  */
642
- VeLivePlayerStreamTypeBackup = 1
478
+ get ios_sampleBuffer(): $p_i.CMSampleBufferRef;
479
+ set ios_sampleBuffer(value: $p_i.CMSampleBufferRef);
480
+ protected __init(...args: any[]): void;
481
+ protected __new_instance(...args: any[]): any;
643
482
  }
644
- export declare class t_VeLivePlayerStreamType {
645
- static ts_to_android(value: VeLivePlayerStreamType): $p_a.VeLivePlayerStreamType;
646
- static android_to_ts(value: $p_a.VeLivePlayerStreamType): VeLivePlayerStreamType;
647
- static ts_to_ios(value: VeLivePlayerStreamType): $p_i.VeLivePlayerStreamType;
648
- static ios_to_ts(value: $p_i.VeLivePlayerStreamType): VeLivePlayerStreamType;
483
+
484
+ export declare enum VeLivePlayerStreamType {
485
+
486
+ VeLivePlayerStreamTypeMain = 0,
487
+
488
+ VeLivePlayerStreamTypeBackup = 1
649
489
  }
650
490
 
651
- /** {en}
652
- * @detail keytype
653
- * @brief The output log level of the player.
654
- */
655
491
  export declare enum VeLivePlayerLogLevel {
656
492
 
657
- /** {en}
658
- * @brief Output logs at the VERBOSE, DEBUG, INFO, WARNING, and ERROR levels.
659
- */
660
493
  VeLivePlayerLogLevelVerbose = 0,
661
494
 
662
- /** {en}
663
- * @brief Output logs at the DEBUG, INFO, WARNING, and ERROR levels.
664
- */
665
495
  VeLivePlayerLogLevelDebug = 1,
666
496
 
667
- /** {en}
668
- * @brief Output logs at the INFO, WARNING, and ERROR levels.
669
- */
670
497
  VeLivePlayerLogLevelInfo = 2,
671
498
 
672
- /** {en}
673
- * @brief Output logs at the WARNING and ERROR levels.
674
- */
675
499
  VeLivePlayerLogLevelWarn = 3,
676
500
 
677
- /** {en}
678
- * @brief Output logs at the ERROR level.
679
- */
680
501
  VeLivePlayerLogLevelError = 4,
681
502
 
682
- /** {en}
683
- * @brief Disable log printing.
684
- */
685
503
  VeLivePlayerLogLevelNone = 5
686
504
  }
687
- export declare class t_VeLivePlayerLogLevel {
688
- static ts_to_android(value: VeLivePlayerLogLevel): $p_a.VeLivePlayerLogLevel;
689
- static android_to_ts(value: $p_a.VeLivePlayerLogLevel): VeLivePlayerLogLevel;
690
- static ts_to_ios(value: VeLivePlayerLogLevel): $p_i.VeLivePlayerLogLevel;
691
- static ios_to_ts(value: $p_i.VeLivePlayerLogLevel): VeLivePlayerLogLevel;
692
- }
693
505
 
694
- /** {en}
695
- * @detail keytype
696
- * @brief The audio frame.
697
- */
698
506
  export declare class VeLivePlayerAudioFrame {
699
507
  protected _instance: any;
700
- protected __init(...args: any[]): void;
701
- protected __new_instance(...args: any[]): $p_a.VeLivePlayerAudioFrame | $p_i.VeLivePlayerAudioFrame;
702
508
 
703
509
  /** {en}
704
510
  * @brief The encapsulation format of the audio data. See VeLivePlayerAudioBufferType {@link #VeLivePlayerAudioBufferType} for details.
511
+ *
705
512
  */
706
513
  get bufferType(): VeLivePlayerAudioBufferType;
707
514
  set bufferType(value: VeLivePlayerAudioBufferType);
708
515
 
709
516
  /** {en}
710
517
  * @brief The audio sample rate, in Hz.
518
+ *
711
519
  */
712
520
  get sampleRate(): number;
713
521
  set sampleRate(value: number);
@@ -716,18 +524,21 @@ export declare class VeLivePlayerAudioFrame {
716
524
  * @brief The number of audio channels. <br>
717
525
  * - 1: Mono;
718
526
  * - 2: Stereo.
527
+ *
719
528
  */
720
529
  get channels(): number;
721
530
  set channels(value: number);
722
531
 
723
532
  /** {en}
724
533
  * @brief The audio bit depth.
534
+ *
725
535
  */
726
536
  get bitDepth(): number;
727
537
  set bitDepth(value: number);
728
538
 
729
539
  /** {en}
730
540
  * @brief The timestamp indicating the time when the audio is rendered, in milliseconds.
541
+ *
731
542
  */
732
543
  get pts(): number;
733
544
  set pts(value: number);
@@ -735,85 +546,50 @@ export declare class VeLivePlayerAudioFrame {
735
546
  /** {en}
736
547
  * @platform android
737
548
  * @brief The PCM audio data.
549
+ *
738
550
  */
739
551
  get android_buffer(): ArrayBuffer;
740
552
  set android_buffer(value: ArrayBuffer);
741
553
 
742
554
  /** {en}
743
555
  * @brief The number of audio samples.
556
+ *
744
557
  */
745
558
  get samples(): number;
746
559
  set samples(value: number);
747
- }
748
-
749
- /** {en}
750
- * @detail keytype
751
- * @brief The encapsulation format of the audio.
752
- */
753
- export declare enum VeLivePlayerAudioBufferType {
754
-
755
- /** {en}
756
- * @platform android
757
- * @brief Unknown format.
758
- */
759
- VeLivePlayerAudioBufferTypeUnknown = 0,
760
-
761
- /** {en}
762
- * @platform android
763
- * @brief ByteArray.
764
- */
765
- VeLivePlayerAudioBufferTypeByteArray = 1,
766
-
767
- /** {en}
768
- * @platform ios
769
- * @brief Unknown format.
770
- */
771
- VeLivePlayerAudioBufferUnknown = 3,
772
-
773
- /** {en}
774
- * @platform ios
775
- * @brief CVSampleBufferRef. The audio data is processed and rendered as sample buffers.
776
- */
777
- VeLivePlayerAudioBufferTypeSampleBuffer = 4,
778
560
 
779
561
  /** {en}
780
562
  * @platform ios
781
- * @brief NSData. The audio data is processed and rendered as NSData objects.
563
+ * @brief The PCM audio data.
782
564
  */
783
- VeLivePlayerAudioBufferTypeNSData = 5
565
+ get ios_data(): $p_i.NSData;
566
+ set ios_data(value: $p_i.NSData);
567
+ protected __init(...args: any[]): void;
568
+ protected __new_instance(...args: any[]): any;
784
569
  }
785
- export declare class t_VeLivePlayerAudioBufferType {
786
- static ts_to_android(value: VeLivePlayerAudioBufferType): $p_a.VeLivePlayerAudioBufferType;
787
- static android_to_ts(value: $p_a.VeLivePlayerAudioBufferType): VeLivePlayerAudioBufferType;
788
- static ts_to_ios(value: VeLivePlayerAudioBufferType): $p_i.VeLivePlayerAudioBufferType;
789
- static ios_to_ts(value: $p_i.VeLivePlayerAudioBufferType): VeLivePlayerAudioBufferType;
570
+ export declare class t_VeLivePlayerResolution {
571
+ static ts_to_android(value: VeLivePlayerResolution): $p_a.VeLivePlayerResolution;
572
+ static android_to_ts(value: $p_a.VeLivePlayerResolution): VeLivePlayerResolution;
573
+ static ts_to_ios(value: VeLivePlayerResolution): $p_i.VeLivePlayerResolution;
574
+ static ios_to_ts(value: $p_i.VeLivePlayerResolution): VeLivePlayerResolution;
790
575
  }
791
-
792
- /** {en}
793
- * @detail keytype
794
- * @brief The clockwise video rotation angle.
795
- */
796
- export declare enum VeLivePlayerRotation {
797
-
798
- /** {en}
799
- * @brief No rotation.
800
- */
801
- VeLivePlayerRotation0 = 0,
802
-
803
- /** {en}
804
- * @brief Rotate 90 degrees clockwise.
805
- */
806
- VeLivePlayerRotation90 = 1,
807
-
808
- /** {en}
809
- * @brief Rotate 180 degrees clockwise.
810
- */
811
- VeLivePlayerRotation180 = 2,
812
-
813
- /** {en}
814
- * @brief Rotate 270 degrees clockwise.
815
- */
816
- VeLivePlayerRotation270 = 3
576
+ export declare class t_VeLivePlayerFillMode {
577
+ static ts_to_android(value: VeLivePlayerFillMode): $p_a.VeLivePlayerFillMode;
578
+ static android_to_ts(value: $p_a.VeLivePlayerFillMode): VeLivePlayerFillMode;
579
+ static ts_to_ios(value: VeLivePlayerFillMode): $p_i.VeLivePlayerFillMode;
580
+ static ios_to_ts(value: $p_i.VeLivePlayerFillMode): VeLivePlayerFillMode;
581
+ }
582
+ export declare class t_VeLivePlayerPixelFormat {
583
+ static ts_to_android(value: VeLivePlayerPixelFormat): $p_a.VeLivePlayerPixelFormat;
584
+ static android_to_ts(value: $p_a.VeLivePlayerPixelFormat): VeLivePlayerPixelFormat;
585
+ static ts_to_ios(value: VeLivePlayerPixelFormat): $p_i.VeLivePlayerPixelFormat;
586
+ static ios_to_ts(value: $p_i.VeLivePlayerPixelFormat): VeLivePlayerPixelFormat;
587
+ }
588
+ export declare class t_VeLivePlayerVideoBufferType {
589
+ static ts_to_android(value: VeLivePlayerVideoBufferType): $p_a.VeLivePlayerVideoBufferType;
590
+ static android_to_ts(value: $p_a.VeLivePlayerVideoBufferType): VeLivePlayerVideoBufferType;
591
+ static ts_to_ios(value: VeLivePlayerVideoBufferType): $p_i.VeLivePlayerVideoBufferType;
592
+ static ios_to_ts(value: $p_i.VeLivePlayerVideoBufferType): VeLivePlayerVideoBufferType;
817
593
  }
818
594
  export declare class t_VeLivePlayerRotation {
819
595
  static ts_to_android(value: VeLivePlayerRotation): $p_a.VeLivePlayerRotation;
@@ -821,111 +597,51 @@ export declare class t_VeLivePlayerRotation {
821
597
  static ts_to_ios(value: VeLivePlayerRotation): $p_i.VeLivePlayerRotation;
822
598
  static ios_to_ts(value: $p_i.VeLivePlayerRotation): VeLivePlayerRotation;
823
599
  }
824
-
825
- /** {en}
826
- * @platform ios
827
- * @hidden
828
- * @detail keytype
829
- * @brief The BMF super-resolution type.
830
- */
831
- export declare enum VeLivePlayerBMFFlexSRType {
832
-
833
- /** {en}
834
- * @platform ios
835
- * @brief Unknown type.
836
- */
837
- VeLivePlayerBMFScale_Unknow = -1,
838
-
839
- /** {en}
840
- * @platform ios
841
- * @brief Upscale the video resolution by 1.5 times.
842
- */
843
- VeLivePlayerBMFScale_1_5 = 0,
844
-
845
- /** {en}
846
- * @platform ios
847
- * @brief Upscale the video resolution by 2 times.
848
- */
849
- VeLivePlayerBMFScale_2_0 = 1,
850
-
851
- /** {en}
852
- * @platform ios
853
- * @brief Upscale the video resolution by 1.1 times.
854
- */
855
- VeLivePlayerBMFScale_1_1 = 2,
856
-
857
- /** {en}
858
- * @platform ios
859
- * @brief Upscale the video resolution by 1.2 times.
860
- */
861
- VeLivePlayerBMFScale_1_2 = 3,
862
-
863
- /** {en}
864
- * @platform ios
865
- * @brief Upscale the video resolution by 1.3 times.
866
- */
867
- VeLivePlayerBMFScale_1_3 = 4,
868
-
869
- /** {en}
870
- * @platform ios
871
- * @brief Upscale the video resolution by 1.4 times.
872
- */
873
- VeLivePlayerBMFScale_1_4 = 5
600
+ export declare class t_VeLivePlayerMirror {
601
+ static ts_to_android(value: VeLivePlayerMirror): $p_a.VeLivePlayerMirror;
602
+ static android_to_ts(value: $p_a.VeLivePlayerMirror): VeLivePlayerMirror;
603
+ static ts_to_ios(value: VeLivePlayerMirror): $p_i.VeLivePlayerMirror;
604
+ static ios_to_ts(value: $p_i.VeLivePlayerMirror): VeLivePlayerMirror;
874
605
  }
875
- export declare class t_VeLivePlayerBMFFlexSRType {
876
- static ts_to_android(value: VeLivePlayerBMFFlexSRType): never;
877
- static android_to_ts(value: unknown): never;
878
- static ts_to_ios(value: VeLivePlayerBMFFlexSRType): $p_i.VeLivePlayerBMFFlexSRType;
879
- static ios_to_ts(value: $p_i.VeLivePlayerBMFFlexSRType): VeLivePlayerBMFFlexSRType;
606
+ export declare class t_VeLivePlayerLogLevel {
607
+ static ts_to_android(value: VeLivePlayerLogLevel): $p_a.VeLivePlayerLogLevel;
608
+ static android_to_ts(value: $p_a.VeLivePlayerLogLevel): VeLivePlayerLogLevel;
609
+ static ts_to_ios(value: VeLivePlayerLogLevel): $p_i.VeLivePlayerLogLevel;
610
+ static ios_to_ts(value: $p_i.VeLivePlayerLogLevel): VeLivePlayerLogLevel;
880
611
  }
881
-
882
- /** {en}
883
- * @platform ios
884
- * @hidden
885
- * @detail keytype
886
- * @brief Error code for BMF super-resolution.
887
- */
888
- export declare enum VeLivePlayerBMFFlexSRErrorCode {
889
-
890
- /** {en}
891
- * @platform ios
892
- * @brief Unknown error.
893
- */
894
- VeLivePlayerBMFFlexSRErrorUnknow = 0,
895
-
896
- /** {en}
897
- * @platform ios
898
- * @brief BMF super-resolution is not supported.
899
- */
900
- VeLivePlayerBMFFlexSRErrorCondition = 1,
901
-
902
- /** {en}
903
- * @platform ios
904
- * @brief Unsupported BMF super-resolution type.
905
- */
906
- VeLivePlayerBMFFlexSRErrorSRType = 2,
907
-
908
- /** {en}
909
- * @platform ios
910
- * @brief Duplicate BMF super-resolution type.
911
- */
912
- VeLivePlayerBMFFlexSRErrorSRTypeSame = 3,
913
-
914
- /** {en}
915
- * @platform ios
916
- * @brief Fails to enable BMF super-resolution.
917
- */
918
- VeLivePlayerBMFFlexSRErrorProcessFailed = 4,
919
-
920
- /** {en}
921
- * @platform ios
922
- * @brief Success.
923
- */
924
- VeLivePlayerBMFFlexSRSuccess = 5
612
+ export declare class t_VeLivePlayerResolutionSwitchReason {
613
+ static ts_to_android(value: VeLivePlayerResolutionSwitchReason): $p_a.VeLivePlayerResolutionSwitchReason;
614
+ static android_to_ts(value: $p_a.VeLivePlayerResolutionSwitchReason): VeLivePlayerResolutionSwitchReason;
615
+ static ts_to_ios(value: VeLivePlayerResolutionSwitchReason): $p_i.VeLivePlayerResolutionSwitchReason;
616
+ static ios_to_ts(value: $p_i.VeLivePlayerResolutionSwitchReason): VeLivePlayerResolutionSwitchReason;
617
+ }
618
+ export declare class t_VeLivePlayerStreamType {
619
+ static ts_to_android(value: VeLivePlayerStreamType): $p_a.VeLivePlayerStreamType;
620
+ static android_to_ts(value: $p_a.VeLivePlayerStreamType): VeLivePlayerStreamType;
621
+ static ts_to_ios(value: VeLivePlayerStreamType): $p_i.VeLivePlayerStreamType;
622
+ static ios_to_ts(value: $p_i.VeLivePlayerStreamType): VeLivePlayerStreamType;
623
+ }
624
+ export declare class t_VeLivePlayerStatus {
625
+ static ts_to_android(value: VeLivePlayerStatus): $p_a.VeLivePlayerStatus;
626
+ static android_to_ts(value: $p_a.VeLivePlayerStatus): VeLivePlayerStatus;
627
+ static ts_to_ios(value: VeLivePlayerStatus): $p_i.VeLivePlayerStatus;
628
+ static ios_to_ts(value: $p_i.VeLivePlayerStatus): VeLivePlayerStatus;
629
+ }
630
+ export declare class t_VeLivePlayerFormat {
631
+ static ts_to_android(value: VeLivePlayerFormat): $p_a.VeLivePlayerFormat;
632
+ static android_to_ts(value: $p_a.VeLivePlayerFormat): VeLivePlayerFormat;
633
+ static ts_to_ios(value: VeLivePlayerFormat): $p_i.VeLivePlayerFormat;
634
+ static ios_to_ts(value: $p_i.VeLivePlayerFormat): VeLivePlayerFormat;
635
+ }
636
+ export declare class t_VeLivePlayerProtocol {
637
+ static ts_to_android(value: VeLivePlayerProtocol): $p_a.VeLivePlayerProtocol;
638
+ static android_to_ts(value: $p_a.VeLivePlayerProtocol): VeLivePlayerProtocol;
639
+ static ts_to_ios(value: VeLivePlayerProtocol): $p_i.VeLivePlayerProtocol;
640
+ static ios_to_ts(value: $p_i.VeLivePlayerProtocol): VeLivePlayerProtocol;
925
641
  }
926
- export declare class t_VeLivePlayerBMFFlexSRErrorCode {
927
- static ts_to_android(value: VeLivePlayerBMFFlexSRErrorCode): never;
928
- static android_to_ts(value: unknown): never;
929
- static ts_to_ios(value: VeLivePlayerBMFFlexSRErrorCode): $p_i.VeLivePlayerBMFFlexSRErrorCode;
930
- static ios_to_ts(value: $p_i.VeLivePlayerBMFFlexSRErrorCode): VeLivePlayerBMFFlexSRErrorCode;
642
+ export declare class t_VeLivePlayerAudioBufferType {
643
+ static ts_to_android(value: VeLivePlayerAudioBufferType): $p_a.VeLivePlayerAudioBufferType;
644
+ static android_to_ts(value: $p_a.VeLivePlayerAudioBufferType): VeLivePlayerAudioBufferType;
645
+ static ts_to_ios(value: VeLivePlayerAudioBufferType): $p_i.VeLivePlayerAudioBufferType;
646
+ static ios_to_ts(value: $p_i.VeLivePlayerAudioBufferType): VeLivePlayerAudioBufferType;
931
647
  }