@byteplus/react-native-live-pull 1.3.0 → 1.3.2-rc.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/android/build.gradle +1 -1
- package/package.json +3 -3
- package/react-native-velive-pull.podspec +10 -3
- package/lib/commonjs/index.js +0 -14555
- package/lib/module/index.js +0 -14543
- package/lib/typescript/codegen/android/api.d.ts +0 -318
- package/lib/typescript/codegen/android/callback.d.ts +0 -206
- package/lib/typescript/codegen/android/errorcode.d.ts +0 -174
- package/lib/typescript/codegen/android/external.d.ts +0 -1
- package/lib/typescript/codegen/android/index.d.ts +0 -6
- package/lib/typescript/codegen/android/keytype.d.ts +0 -749
- package/lib/typescript/codegen/android/types.d.ts +0 -31
- package/lib/typescript/codegen/ios/api.d.ts +0 -295
- package/lib/typescript/codegen/ios/callback.d.ts +0 -176
- package/lib/typescript/codegen/ios/errorcode.d.ts +0 -160
- package/lib/typescript/codegen/ios/external.d.ts +0 -1
- package/lib/typescript/codegen/ios/index.d.ts +0 -6
- package/lib/typescript/codegen/ios/keytype.d.ts +0 -695
- package/lib/typescript/codegen/ios/types.d.ts +0 -46
- package/lib/typescript/codegen/pack/api.d.ts +0 -367
- package/lib/typescript/codegen/pack/callback.d.ts +0 -255
- package/lib/typescript/codegen/pack/errorcode.d.ts +0 -187
- package/lib/typescript/codegen/pack/external.d.ts +0 -1
- package/lib/typescript/codegen/pack/index.d.ts +0 -6
- package/lib/typescript/codegen/pack/keytype.d.ts +0 -909
- package/lib/typescript/codegen/pack/types.d.ts +0 -68
- package/lib/typescript/component.d.ts +0 -15
- package/lib/typescript/core/api.d.ts +0 -114
- package/lib/typescript/core/appState.d.ts +0 -3
- package/lib/typescript/core/callback.d.ts +0 -53
- package/lib/typescript/core/env.d.ts +0 -38
- package/lib/typescript/core/errorcode.d.ts +0 -1
- package/lib/typescript/core/index.d.ts +0 -6
- package/lib/typescript/core/keytype.d.ts +0 -33
- package/lib/typescript/core/player.d.ts +0 -16
- package/lib/typescript/index.d.ts +0 -3
- package/lib/typescript/platforms/android/extends.d.ts +0 -39
- package/lib/typescript/platforms/android/pictureInpicture.d.ts +0 -26
- package/lib/typescript/platforms/ios/extends.d.ts +0 -43
- package/lib/typescript/platforms/ios/pictureInpicture.d.ts +0 -32
- package/lib/typescript/runtime/index.d.ts +0 -1
|
@@ -1,749 +0,0 @@
|
|
|
1
|
-
import { int, String, List, long, float, ByteBuffer, EGLContext } from './types';
|
|
2
|
-
export declare enum VeLivePlayerResolution {
|
|
3
|
-
|
|
4
|
-
/** {en}
|
|
5
|
-
* @brief Original.
|
|
6
|
-
*
|
|
7
|
-
*/
|
|
8
|
-
VeLivePlayerResolutionOrigin = "origin",
|
|
9
|
-
|
|
10
|
-
/** {en}
|
|
11
|
-
* @brief Ultra high definition (UHD).
|
|
12
|
-
*
|
|
13
|
-
*/
|
|
14
|
-
VeLivePlayerResolutionUHD = "uhd",
|
|
15
|
-
|
|
16
|
-
/** {en}
|
|
17
|
-
* @brief High definition (HD).
|
|
18
|
-
*
|
|
19
|
-
*/
|
|
20
|
-
VeLivePlayerResolutionHD = "hd",
|
|
21
|
-
|
|
22
|
-
/** {en}
|
|
23
|
-
* @brief Standard definition (SD).
|
|
24
|
-
*
|
|
25
|
-
*/
|
|
26
|
-
VeLivePlayerResolutionSD = "sd",
|
|
27
|
-
|
|
28
|
-
/** {en}
|
|
29
|
-
* @brief Low definition (LD).
|
|
30
|
-
*
|
|
31
|
-
*/
|
|
32
|
-
VeLivePlayerResolutionLD = "ld",
|
|
33
|
-
|
|
34
|
-
/** {en}
|
|
35
|
-
* @brief AO pure audio stream.
|
|
36
|
-
* @hidden (Android)
|
|
37
|
-
*
|
|
38
|
-
*/
|
|
39
|
-
VeLivePlayerResolutionAO = "ao"
|
|
40
|
-
}
|
|
41
|
-
export declare class VeLivePlayerConfiguration {
|
|
42
|
-
|
|
43
|
-
/** {en}
|
|
44
|
-
* @brief Whether to enable the parsing of string SEI messages. The default value is `false`.<br/>
|
|
45
|
-
* - true: Enable;
|
|
46
|
-
* - false: Disable.
|
|
47
|
-
*
|
|
48
|
-
*/
|
|
49
|
-
enableSei: boolean;
|
|
50
|
-
|
|
51
|
-
/** {en}
|
|
52
|
-
* @brief Whether to enable the parsing of binary SEI messages. The default value is `false`. <br>
|
|
53
|
-
* - true: Enable;
|
|
54
|
-
* - false: Disable.
|
|
55
|
-
* @notes After binary SEI is enabled, callbacks for string SEI will no longer be sent.
|
|
56
|
-
*
|
|
57
|
-
*/
|
|
58
|
-
enableBinarySei: boolean;
|
|
59
|
-
|
|
60
|
-
/** {en}
|
|
61
|
-
* @brief Whether to turn on hardware decoding. The default value is `true`. When hardware decoding is enabled, if the player fails to start hardware decoding or if hardware decoding fails, the player automatically switches to software decoding. <br>
|
|
62
|
-
* - true: Enable;
|
|
63
|
-
* - false: Disable.
|
|
64
|
-
*
|
|
65
|
-
*/
|
|
66
|
-
enableHardwareDecode: boolean;
|
|
67
|
-
|
|
68
|
-
/** {en}
|
|
69
|
-
* @brief Network timeout duration, in milliseconds. The default value is `5000`. Once the player sends a network request, if the player does not receive a response from the server after the timeout duration, the network request is considered failed.
|
|
70
|
-
*
|
|
71
|
-
*/
|
|
72
|
-
networkTimeoutMs: int;
|
|
73
|
-
|
|
74
|
-
/** {en}
|
|
75
|
-
* @brief The retry time interval, in milliseconds. The default value is `5000`. This variable takes effect only when there is no backup stream.<br>
|
|
76
|
-
* - In the absence of a backup stream, if playback is interrupted due to network issues or other anomalies, the player will immediately initiate a retry. The player will make the first three retries immediately without any waiting time. However, for subsequent retries starting from the fourth attempt, the player will wait for the specified time interval between each attempt.
|
|
77
|
-
* - 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.
|
|
78
|
-
*
|
|
79
|
-
*/
|
|
80
|
-
retryIntervalTimeMs: int;
|
|
81
|
-
|
|
82
|
-
/** {en}
|
|
83
|
-
* @brief In the case of a network connection error, the maximum number of automatic retries of the player. The default value is `5`. If the value is `0`, the player will not automatically retry.<br>
|
|
84
|
-
* - In the absence of a backup stream, each retry will count as one retry attempt.
|
|
85
|
-
* - In the presence of a backup stream, each switch between the primary stream and the backup stream will count as a retry attempt.
|
|
86
|
-
*
|
|
87
|
-
*/
|
|
88
|
-
retryMaxCount: int;
|
|
89
|
-
|
|
90
|
-
/** {en}
|
|
91
|
-
* @brief Whether to enable local DNS prefetch. The default value is `false`. Enabling local DNS prefetch can reduce the time required to start playback. If an abnormality occurs with local DNS prefetch, the player may not function properly. <br>
|
|
92
|
-
* - true: Enable;
|
|
93
|
-
* - false: Disable.
|
|
94
|
-
*
|
|
95
|
-
*/
|
|
96
|
-
enableLiveDNS: boolean;
|
|
97
|
-
|
|
98
|
-
/** {en}
|
|
99
|
-
* @brief Whether to enable periodic callbacks for playback information. The default value is `false`. Refer to [VeLivePlayerStatistics](#VeLivePlayerStatistics) for more information on callback statistics. If `enableStatisticsCallback` is `true` and [statisticsCallbackInterval](#VeLivePlayerConfiguration-statisticscallbackinterval) is greater than `0`, the player will periodically report the player status information after the specified time interval.<br/>
|
|
100
|
-
* - true: Enable;
|
|
101
|
-
* - false: Disable.
|
|
102
|
-
*
|
|
103
|
-
*/
|
|
104
|
-
enableStatisticsCallback: boolean;
|
|
105
|
-
|
|
106
|
-
/** {en}
|
|
107
|
-
* @brief The time interval for periodic callbacks that provide playback information, in seconds. The default value is `5`. If [enableStatisticsCallback](#VeLivePlayerConfiguration-enablestatisticscallback) is `true` and `statisticsCallbackInterval` is greater than `0`, the player will periodically report the player status information after the specified time interval.
|
|
108
|
-
*
|
|
109
|
-
*/
|
|
110
|
-
statisticsCallbackInterval: int;
|
|
111
|
-
}
|
|
112
|
-
export declare enum VeLivePlayerFormat {
|
|
113
|
-
|
|
114
|
-
/** {en}
|
|
115
|
-
* @brief FLV.
|
|
116
|
-
*
|
|
117
|
-
*/
|
|
118
|
-
VeLivePlayerFormatFLV = 0,
|
|
119
|
-
|
|
120
|
-
/** {en}
|
|
121
|
-
* @brief HLS.
|
|
122
|
-
*
|
|
123
|
-
*/
|
|
124
|
-
VeLivePlayerFormatHLS = 1,
|
|
125
|
-
|
|
126
|
-
/** {en}
|
|
127
|
-
* @brief Real Time Media (RTM).
|
|
128
|
-
*
|
|
129
|
-
*/
|
|
130
|
-
VeLivePlayerFormatRTM = 2,
|
|
131
|
-
|
|
132
|
-
/** {en}
|
|
133
|
-
* @brief CMAF format
|
|
134
|
-
*
|
|
135
|
-
*/
|
|
136
|
-
VeLivePlayerFormatCMAF = 3
|
|
137
|
-
}
|
|
138
|
-
export declare enum VeLivePlayerProtocol {
|
|
139
|
-
|
|
140
|
-
/** {en}
|
|
141
|
-
* @brief TCP.
|
|
142
|
-
*
|
|
143
|
-
*/
|
|
144
|
-
VeLivePlayerProtocolTCP = 0,
|
|
145
|
-
|
|
146
|
-
/** {en}
|
|
147
|
-
* @brief QUIC.
|
|
148
|
-
*
|
|
149
|
-
*/
|
|
150
|
-
VeLivePlayerProtocolQUIC = 1,
|
|
151
|
-
|
|
152
|
-
/** {en}
|
|
153
|
-
* @brief TLS.
|
|
154
|
-
*
|
|
155
|
-
*/
|
|
156
|
-
VeLivePlayerProtocolTLS = 2,
|
|
157
|
-
|
|
158
|
-
/** {en}
|
|
159
|
-
* @brief HTTP2.0 protocol
|
|
160
|
-
*
|
|
161
|
-
*/
|
|
162
|
-
VeLivePlayerProtocolHTTP2 = 3
|
|
163
|
-
}
|
|
164
|
-
export declare enum VeLivePlayerMirror {
|
|
165
|
-
|
|
166
|
-
/** {en}
|
|
167
|
-
* @brief No mirroring.
|
|
168
|
-
*
|
|
169
|
-
*/
|
|
170
|
-
VeLivePlayerMirrorNone = 0,
|
|
171
|
-
|
|
172
|
-
/** {en}
|
|
173
|
-
* @brief Horizontal mirroring.
|
|
174
|
-
*
|
|
175
|
-
*/
|
|
176
|
-
VeLivePlayerMirrorHorizontal = 1,
|
|
177
|
-
|
|
178
|
-
/** {en}
|
|
179
|
-
* @brief Vertical mirroring.
|
|
180
|
-
*
|
|
181
|
-
*/
|
|
182
|
-
VeLivePlayerMirrorVertical = 2
|
|
183
|
-
}
|
|
184
|
-
export declare enum VeLivePlayerVideoBufferType {
|
|
185
|
-
|
|
186
|
-
/** {en}
|
|
187
|
-
* @brief Unknown format.
|
|
188
|
-
*
|
|
189
|
-
*/
|
|
190
|
-
VeLivePlayerVideoBufferTypeUnknown = 0,
|
|
191
|
-
|
|
192
|
-
/** {en}
|
|
193
|
-
* @brief ByteBuffer.
|
|
194
|
-
*
|
|
195
|
-
*/
|
|
196
|
-
VeLivePlayerVideoBufferTypeByteBuffer = 1,
|
|
197
|
-
|
|
198
|
-
/** {en}
|
|
199
|
-
* @brief ByteArray.
|
|
200
|
-
*
|
|
201
|
-
*/
|
|
202
|
-
VeLivePlayerVideoBufferTypeByteArray = 2,
|
|
203
|
-
|
|
204
|
-
/** {en}
|
|
205
|
-
* @brief Texture.
|
|
206
|
-
*
|
|
207
|
-
*/
|
|
208
|
-
VeLivePlayerVideoBufferTypeTexture = 3
|
|
209
|
-
}
|
|
210
|
-
export declare enum VeLivePlayerStatus {
|
|
211
|
-
|
|
212
|
-
/** {en}
|
|
213
|
-
* @brief The playback is stopped.
|
|
214
|
-
*
|
|
215
|
-
*/
|
|
216
|
-
VeLivePlayerStatusStopped = 0,
|
|
217
|
-
|
|
218
|
-
/** {en}
|
|
219
|
-
* @brief The playback is paused.
|
|
220
|
-
*
|
|
221
|
-
*/
|
|
222
|
-
VeLivePlayerStatusPaused = 1,
|
|
223
|
-
|
|
224
|
-
/** {en}
|
|
225
|
-
* @brief The player finishes preparing and is waiting to render the video.
|
|
226
|
-
*
|
|
227
|
-
*/
|
|
228
|
-
VeLivePlayerStatusPrepared = 2,
|
|
229
|
-
|
|
230
|
-
/** {en}
|
|
231
|
-
* @brief Playback is currently in progress, meaning that the first frame has been rendered and no errors have occurred to the player.
|
|
232
|
-
*
|
|
233
|
-
*/
|
|
234
|
-
VeLivePlayerStatusPlaying = 3,
|
|
235
|
-
|
|
236
|
-
/** {en}
|
|
237
|
-
* @brief An error has occurred to the player.
|
|
238
|
-
*
|
|
239
|
-
*/
|
|
240
|
-
VeLivePlayerStatusError = 4
|
|
241
|
-
}
|
|
242
|
-
export declare class VeLivePlayerLogConfig {
|
|
243
|
-
|
|
244
|
-
/** {en}
|
|
245
|
-
* @brief The log file directory path. The default value is `/cache/Log`.
|
|
246
|
-
*
|
|
247
|
-
*/
|
|
248
|
-
logPath: String;
|
|
249
|
-
|
|
250
|
-
/** {en}
|
|
251
|
-
* @brief The maximum size of log files, in MB. The default value is `100`.
|
|
252
|
-
*
|
|
253
|
-
*/
|
|
254
|
-
maxLogSizeM: int;
|
|
255
|
-
|
|
256
|
-
/** {en}
|
|
257
|
-
* @brief The size of a single log file, in MB. The default value is `2`.
|
|
258
|
-
*
|
|
259
|
-
*/
|
|
260
|
-
singleLogSizeM: int;
|
|
261
|
-
|
|
262
|
-
/** {en}
|
|
263
|
-
* @brief The log expiration time, in seconds. Once a log file expires, a new log file will be created and the existing file will be deleted. The default value is `604800`, or seven days.
|
|
264
|
-
*
|
|
265
|
-
*/
|
|
266
|
-
logExpireTimeS: int;
|
|
267
|
-
|
|
268
|
-
/** {en}
|
|
269
|
-
* @brief Whether to print log in the console. The default value is `true`.
|
|
270
|
-
*
|
|
271
|
-
*/
|
|
272
|
-
enableConsole: boolean;
|
|
273
|
-
|
|
274
|
-
/** {en}
|
|
275
|
-
* @brief Whether to save log to a file. The default value is `true`.
|
|
276
|
-
*
|
|
277
|
-
*/
|
|
278
|
-
enableLogFile: boolean;
|
|
279
|
-
|
|
280
|
-
/** {en}
|
|
281
|
-
* @brief The upload URL of the log file.
|
|
282
|
-
*
|
|
283
|
-
*/
|
|
284
|
-
queryUrl: String;
|
|
285
|
-
|
|
286
|
-
/** {en}
|
|
287
|
-
* @brief Whether to enable thread polling. <br>
|
|
288
|
-
* - `true`: Enable
|
|
289
|
-
* - `false`: Disable
|
|
290
|
-
*
|
|
291
|
-
*/
|
|
292
|
-
enableThreadLoop: boolean;
|
|
293
|
-
|
|
294
|
-
/** {en}
|
|
295
|
-
* @brief The polling interval, in milliseconds. The value should be greater than 0.
|
|
296
|
-
*
|
|
297
|
-
*/
|
|
298
|
-
intervalMS: int;
|
|
299
|
-
|
|
300
|
-
/** {en}
|
|
301
|
-
* @brief The timeout for an HTTP request. Value range: > 0.
|
|
302
|
-
*
|
|
303
|
-
*/
|
|
304
|
-
httpTimeoutMS: int;
|
|
305
|
-
|
|
306
|
-
/** {en}
|
|
307
|
-
* @brief The timeout for an HTTP request to upload a file. Value range: > 0.
|
|
308
|
-
*
|
|
309
|
-
*/
|
|
310
|
-
httpUploadFileTimeoutMS: int;
|
|
311
|
-
|
|
312
|
-
/** {en}
|
|
313
|
-
* @brief The output log level. The default value is `VeLivePlayerLogLevelDebug`. For details, see [VeLivePlayerLogLevel](#VeLivePlayerLogLevel).
|
|
314
|
-
*
|
|
315
|
-
*/
|
|
316
|
-
logLevel: VeLivePlayerLogLevel;
|
|
317
|
-
}
|
|
318
|
-
export declare class VeLivePlayerStreamData {
|
|
319
|
-
|
|
320
|
-
/** {en}
|
|
321
|
-
* @brief Whether to enable adaptive bitrate (ABR). The default value is `false`. <br>
|
|
322
|
-
* - true: Enable;
|
|
323
|
-
* - false: Disable.
|
|
324
|
-
*
|
|
325
|
-
*/
|
|
326
|
-
enableABR: boolean;
|
|
327
|
-
|
|
328
|
-
/** {en}
|
|
329
|
-
* @brief Whether to enable switching between primary and backup streams. The default value is `false`. <br>
|
|
330
|
-
* - true: Enable;
|
|
331
|
-
* - false: Disable.
|
|
332
|
-
*
|
|
333
|
-
*/
|
|
334
|
-
enableMainBackupSwitch: boolean;
|
|
335
|
-
|
|
336
|
-
/** {en}
|
|
337
|
-
* @brief The default resolution. The default value is `VeLivePlayerResolutionOrigin`, which indicates the original resolution. See [VeLivePlayerResolution](#VeLivePlayerResolution) for details.
|
|
338
|
-
*
|
|
339
|
-
*/
|
|
340
|
-
defaultResolution: VeLivePlayerResolution;
|
|
341
|
-
|
|
342
|
-
/** {en}
|
|
343
|
-
* @brief The default video format. The default value is `VeLivePlayerFormatFLV`. See [VeLivePlayerFormat](#VeLivePlayerFormat) for details.
|
|
344
|
-
*
|
|
345
|
-
*/
|
|
346
|
-
defaultFormat: VeLivePlayerFormat;
|
|
347
|
-
|
|
348
|
-
/** {en}
|
|
349
|
-
* @brief The default transmission protocol. The default value is `VeLivePlayerProtocolTCP`. See [VeLivePlayerProtocol](#VeLivePlayerProtocol) for details.
|
|
350
|
-
*
|
|
351
|
-
*/
|
|
352
|
-
defaultProtocol: VeLivePlayerProtocol;
|
|
353
|
-
|
|
354
|
-
/** {en}
|
|
355
|
-
* @brief A list of main stream addresses. See [VeLivePlayerStream](#VeLivePlayerStreamData-VeLivePlayerStream) for details.
|
|
356
|
-
*
|
|
357
|
-
*/
|
|
358
|
-
mainStreamList: List<VeLivePlayerStream>;
|
|
359
|
-
|
|
360
|
-
/** {en}
|
|
361
|
-
* @brief A list of backup stream addresses. See [VeLivePlayerStream](#VeLivePlayerStreamData-VeLivePlayerStream) for details.
|
|
362
|
-
*
|
|
363
|
-
*/
|
|
364
|
-
backupStreamList: List<VeLivePlayerStream>;
|
|
365
|
-
}
|
|
366
|
-
export declare enum VeLivePlayerResolutionSwitchReason {
|
|
367
|
-
|
|
368
|
-
/** {en}
|
|
369
|
-
* @brief The resolution is switched automatically through the adaptive bitrate (ABR) feature.
|
|
370
|
-
*
|
|
371
|
-
*/
|
|
372
|
-
VeLiveplayerResolutionSwitchByAuto = 0,
|
|
373
|
-
|
|
374
|
-
/** {en}
|
|
375
|
-
* @brief The resolution is changed after switchResolution{@link #VeLivePlayer#switchResolution} is called.
|
|
376
|
-
*
|
|
377
|
-
*/
|
|
378
|
-
VeLiveplayerResolutionSwitchByManual = 1
|
|
379
|
-
}
|
|
380
|
-
export declare class VeLivePlayerStream {
|
|
381
|
-
constructor();
|
|
382
|
-
|
|
383
|
-
/** {en}
|
|
384
|
-
* @brief The pull stream address.
|
|
385
|
-
*
|
|
386
|
-
*/
|
|
387
|
-
url: String;
|
|
388
|
-
|
|
389
|
-
/** {en}
|
|
390
|
-
* @brief The playback resolution. For details, see [VeLivePlayerResolution](#VeLivePlayerResolution).
|
|
391
|
-
*
|
|
392
|
-
*/
|
|
393
|
-
resolution: VeLivePlayerResolution;
|
|
394
|
-
|
|
395
|
-
/** {en}
|
|
396
|
-
* @brief The playback bitrate, in Kbps.
|
|
397
|
-
*
|
|
398
|
-
*/
|
|
399
|
-
bitrate: long;
|
|
400
|
-
|
|
401
|
-
/** {en}
|
|
402
|
-
* @brief The format of the live stream. See [VeLivePlayerFormat](#VeLivePlayerFormat) for details.
|
|
403
|
-
*
|
|
404
|
-
*/
|
|
405
|
-
format: VeLivePlayerFormat;
|
|
406
|
-
|
|
407
|
-
/** {en}
|
|
408
|
-
* @brief Whether the stream is a main or backup stream. See [VeLivePlayerStreamType](#VeLivePlayerStreamType) for details.
|
|
409
|
-
*
|
|
410
|
-
*/
|
|
411
|
-
streamType: VeLivePlayerStreamType;
|
|
412
|
-
}
|
|
413
|
-
export declare enum VeLivePlayerFillMode {
|
|
414
|
-
|
|
415
|
-
/** {en}
|
|
416
|
-
* @brief Display the full video. The video is uniformly scaled until one dimension of the video hits the boundary of the screen. Any remaining space on the screen will be filled with black.
|
|
417
|
-
*
|
|
418
|
-
*/
|
|
419
|
-
VeLivePlayerFillModeAspectFit = 0,
|
|
420
|
-
|
|
421
|
-
/** {en}
|
|
422
|
-
* @brief Stretch the video to fill the screen. The aspect ratio of the video might change.
|
|
423
|
-
*
|
|
424
|
-
*/
|
|
425
|
-
VeLivePlayerFillModeFullFill = 1,
|
|
426
|
-
|
|
427
|
-
/** {en}
|
|
428
|
-
* @brief Uniformly scale the video until the screen is completely filled. Part of the video may be cropped.
|
|
429
|
-
*
|
|
430
|
-
*/
|
|
431
|
-
VeLivePlayerFillModeAspectFill = 2
|
|
432
|
-
}
|
|
433
|
-
export declare enum VeLivePlayerPixelFormat {
|
|
434
|
-
|
|
435
|
-
/** {en}
|
|
436
|
-
* @brief Unknown format.
|
|
437
|
-
*
|
|
438
|
-
*/
|
|
439
|
-
VeLivePlayerPixelFormatUnknown = 0,
|
|
440
|
-
|
|
441
|
-
/** {en}
|
|
442
|
-
* @brief RGBA8888.
|
|
443
|
-
*
|
|
444
|
-
*/
|
|
445
|
-
VeLivePlayerPixelFormatRGBA32 = 1,
|
|
446
|
-
|
|
447
|
-
/** {en}
|
|
448
|
-
* @brief Texture.
|
|
449
|
-
*
|
|
450
|
-
*/
|
|
451
|
-
VeLivePlayerPixelFormatTexture = 2
|
|
452
|
-
}
|
|
453
|
-
export declare class VeLivePlayerStatistics {
|
|
454
|
-
constructor();
|
|
455
|
-
|
|
456
|
-
/** {en}
|
|
457
|
-
* @brief The current pull stream address.
|
|
458
|
-
*
|
|
459
|
-
*/
|
|
460
|
-
url: String;
|
|
461
|
-
|
|
462
|
-
/** {en}
|
|
463
|
-
* @brief Whether hardware decoding is used. <br>
|
|
464
|
-
* - true: Hardware decoding is used;
|
|
465
|
-
* - false: Hardware decoding is not used.
|
|
466
|
-
*
|
|
467
|
-
*/
|
|
468
|
-
isHardwareDecode: boolean;
|
|
469
|
-
|
|
470
|
-
/** {en}
|
|
471
|
-
* @brief The encoding format of the video.
|
|
472
|
-
*
|
|
473
|
-
*/
|
|
474
|
-
videoCodec: String;
|
|
475
|
-
|
|
476
|
-
/** {en}
|
|
477
|
-
* @brief The cumulative duration of stutters that occurred since the beginning of playback, in milliseconds.
|
|
478
|
-
*
|
|
479
|
-
*/
|
|
480
|
-
stallTimeMs: long;
|
|
481
|
-
|
|
482
|
-
/** {en}
|
|
483
|
-
* @brief Bandwidth estimation, unit is kbps.
|
|
484
|
-
*
|
|
485
|
-
*/
|
|
486
|
-
bandwidthEstimation: long;
|
|
487
|
-
|
|
488
|
-
/** {en}
|
|
489
|
-
* @brief The current playback latency, in milliseconds. The latency data is available only if you use the BytePlus MediaLive Broadcast SDK to push the live stream.
|
|
490
|
-
*
|
|
491
|
-
*/
|
|
492
|
-
delayMs: long;
|
|
493
|
-
|
|
494
|
-
/** {en}
|
|
495
|
-
* @brief The width of the video, in pixels.
|
|
496
|
-
*
|
|
497
|
-
*/
|
|
498
|
-
width: int;
|
|
499
|
-
|
|
500
|
-
/** {en}
|
|
501
|
-
* @brief The height of the video, in pixels.
|
|
502
|
-
*
|
|
503
|
-
*/
|
|
504
|
-
height: int;
|
|
505
|
-
|
|
506
|
-
/** {en}
|
|
507
|
-
* @brief The frame rate of the video, in fps.
|
|
508
|
-
*
|
|
509
|
-
*/
|
|
510
|
-
fps: float;
|
|
511
|
-
|
|
512
|
-
/** {en}
|
|
513
|
-
* @brief The downlink bitrate, in Kbps.
|
|
514
|
-
*
|
|
515
|
-
*/
|
|
516
|
-
bitrate: long;
|
|
517
|
-
|
|
518
|
-
/** {en}
|
|
519
|
-
* @brief The video buffer, in milliseconds.
|
|
520
|
-
*
|
|
521
|
-
*/
|
|
522
|
-
videoBufferMs: long;
|
|
523
|
-
|
|
524
|
-
/** {en}
|
|
525
|
-
* @brief The audio buffer, in milliseconds.
|
|
526
|
-
*
|
|
527
|
-
*/
|
|
528
|
-
audioBufferMs: long;
|
|
529
|
-
|
|
530
|
-
/** {en}
|
|
531
|
-
* @brief The video format.
|
|
532
|
-
*
|
|
533
|
-
*/
|
|
534
|
-
format: String;
|
|
535
|
-
|
|
536
|
-
/** {en}
|
|
537
|
-
* @brief The transmission protocol of the live stream.
|
|
538
|
-
*
|
|
539
|
-
*/
|
|
540
|
-
protocol: String;
|
|
541
|
-
}
|
|
542
|
-
export declare class VeLivePlayerVideoFrame {
|
|
543
|
-
|
|
544
|
-
/** {en}
|
|
545
|
-
* @brief The encapsulation format. See [VeLivePlayerVideoBufferType](#VeLivePlayerVideoBufferType) for details.
|
|
546
|
-
*
|
|
547
|
-
*/
|
|
548
|
-
bufferType: VeLivePlayerVideoBufferType;
|
|
549
|
-
|
|
550
|
-
/** {en}
|
|
551
|
-
* @brief The pixel format. See [VeLivePlayerPixelFormat](#VeLivePlayerPixelFormat) for details.
|
|
552
|
-
*
|
|
553
|
-
*/
|
|
554
|
-
pixelFormat: VeLivePlayerPixelFormat;
|
|
555
|
-
|
|
556
|
-
/** {en}
|
|
557
|
-
* @brief The video width, in pixels.
|
|
558
|
-
*
|
|
559
|
-
*/
|
|
560
|
-
width: int;
|
|
561
|
-
|
|
562
|
-
/** {en}
|
|
563
|
-
* @brief The video height, in pixels.
|
|
564
|
-
*
|
|
565
|
-
*/
|
|
566
|
-
height: int;
|
|
567
|
-
|
|
568
|
-
/** {en}
|
|
569
|
-
* @brief The timestamp indicating the time when the video frame is rendered, in milliseconds.
|
|
570
|
-
*
|
|
571
|
-
*/
|
|
572
|
-
pts: long;
|
|
573
|
-
|
|
574
|
-
/** {en}
|
|
575
|
-
* @brief The texture data for OpenGL rendering. The SDK returns this video data type if you set [VeLivePlayerPixelFormat](#VeLivePlayerPixelFormat) to `VeLivePlayerPixelFormatTexture` and set [VeLivePlayerVideoBufferType](#VeLivePlayerVideoBufferType) to `VeLivePlayerVideoBufferTypeTexture`. See [VeLivePlayerVideoTexture](#VeLivePlayerVideoTexture) for details.
|
|
576
|
-
*
|
|
577
|
-
*/
|
|
578
|
-
texture: VeLivePlayerVideoTexture;
|
|
579
|
-
|
|
580
|
-
/** {en}
|
|
581
|
-
* @brief The video data in ByteBuffer format. The SDK returns this video data type if you set [VeLivePlayerPixelFormat](#VeLivePlayerPixelFormat) to `VeLivePlayerPixelFormatRGBA32` and set [VeLivePlayerVideoBufferType](#VeLivePlayerVideoBufferType) to `VeLivePlayerVideoBufferTypeByteBuffer`.
|
|
582
|
-
*
|
|
583
|
-
*/
|
|
584
|
-
buffer: ByteBuffer;
|
|
585
|
-
|
|
586
|
-
/** {en}
|
|
587
|
-
* @brief The video data in ByteArray format. The SDK returns this video data type if you set [VeLivePlayerPixelFormat](#VeLivePlayerPixelFormat) to `VeLivePlayerPixelFormatRGBA32` and set [VeLivePlayerVideoBufferType](#VeLivePlayerVideoBufferType) to `VeLivePlayerVideoBufferTypeByteArray`.
|
|
588
|
-
*
|
|
589
|
-
*/
|
|
590
|
-
data: ArrayBuffer;
|
|
591
|
-
}
|
|
592
|
-
export declare class VeLivePlayerVideoTexture {
|
|
593
|
-
|
|
594
|
-
/** {en}
|
|
595
|
-
* @brief The video texture ID.
|
|
596
|
-
*
|
|
597
|
-
*/
|
|
598
|
-
texId: int;
|
|
599
|
-
|
|
600
|
-
/** {en}
|
|
601
|
-
* @brief OpenGL ES context for custom rendering. After you bind EGLContext to GLSurfaceView or TextureView, you can perform custom OpenGL ES rendering on the bound View.
|
|
602
|
-
*
|
|
603
|
-
*/
|
|
604
|
-
eglContext: EGLContext;
|
|
605
|
-
}
|
|
606
|
-
export declare enum VeLivePlayerStreamType {
|
|
607
|
-
|
|
608
|
-
/** {en}
|
|
609
|
-
* @brief The primary stream.
|
|
610
|
-
*
|
|
611
|
-
*/
|
|
612
|
-
VeLivePlayerStreamTypeMain = 0,
|
|
613
|
-
|
|
614
|
-
/** {en}
|
|
615
|
-
* @brief The backup stream.
|
|
616
|
-
*
|
|
617
|
-
*/
|
|
618
|
-
VeLivePlayerStreamTypeBackup = 1
|
|
619
|
-
}
|
|
620
|
-
export declare enum VeLivePlayerLogLevel {
|
|
621
|
-
|
|
622
|
-
/** {en}
|
|
623
|
-
* @brief Output logs at the VERBOSE, DEBUG, INFO, WARNING, and ERROR levels.
|
|
624
|
-
*
|
|
625
|
-
*/
|
|
626
|
-
VeLivePlayerLogLevelVerbose = 0,
|
|
627
|
-
|
|
628
|
-
/** {en}
|
|
629
|
-
* @brief Output logs at the DEBUG, INFO, WARNING, and ERROR levels.
|
|
630
|
-
*
|
|
631
|
-
*/
|
|
632
|
-
VeLivePlayerLogLevelDebug = 1,
|
|
633
|
-
|
|
634
|
-
/** {en}
|
|
635
|
-
* @brief Output logs at the INFO, WARNING, and ERROR levels.
|
|
636
|
-
*
|
|
637
|
-
*/
|
|
638
|
-
VeLivePlayerLogLevelInfo = 2,
|
|
639
|
-
|
|
640
|
-
/** {en}
|
|
641
|
-
* @brief Output logs at the WARNING and ERROR levels.
|
|
642
|
-
*
|
|
643
|
-
*/
|
|
644
|
-
VeLivePlayerLogLevelWarn = 3,
|
|
645
|
-
|
|
646
|
-
/** {en}
|
|
647
|
-
* @brief Output logs at the ERROR level.
|
|
648
|
-
*
|
|
649
|
-
*/
|
|
650
|
-
VeLivePlayerLogLevelError = 4,
|
|
651
|
-
|
|
652
|
-
/** {en}
|
|
653
|
-
* @brief Disable log printing.
|
|
654
|
-
*
|
|
655
|
-
*/
|
|
656
|
-
VeLivePlayerLogLevelNone = 5
|
|
657
|
-
}
|
|
658
|
-
export declare class VeLivePlayerAudioFrame {
|
|
659
|
-
|
|
660
|
-
/** {en}
|
|
661
|
-
* @brief The encapsulation format of the audio data. See [VeLivePlayerAudioBufferType](#VeLivePlayerAudioBufferType) for details.
|
|
662
|
-
*
|
|
663
|
-
*/
|
|
664
|
-
bufferType: VeLivePlayerAudioBufferType;
|
|
665
|
-
|
|
666
|
-
/** {en}
|
|
667
|
-
* @brief The audio sample rate, in Hz.
|
|
668
|
-
*
|
|
669
|
-
*/
|
|
670
|
-
sampleRate: int;
|
|
671
|
-
|
|
672
|
-
/** {en}
|
|
673
|
-
* @brief The number of audio channels. <br>
|
|
674
|
-
* - 1: Mono;
|
|
675
|
-
* - 2: Stereo.
|
|
676
|
-
*
|
|
677
|
-
*/
|
|
678
|
-
channels: int;
|
|
679
|
-
|
|
680
|
-
/** {en}
|
|
681
|
-
* @brief The audio bit depth.
|
|
682
|
-
*
|
|
683
|
-
*/
|
|
684
|
-
bitDepth: int;
|
|
685
|
-
|
|
686
|
-
/** {en}
|
|
687
|
-
* @brief The timestamp indicating the time when the audio is rendered, in milliseconds.
|
|
688
|
-
*
|
|
689
|
-
*/
|
|
690
|
-
pts: long;
|
|
691
|
-
|
|
692
|
-
/** {en}
|
|
693
|
-
* @brief The PCM audio data. byte[] type.
|
|
694
|
-
*
|
|
695
|
-
*/
|
|
696
|
-
bufferArray: ArrayBuffer;
|
|
697
|
-
|
|
698
|
-
/** {en}
|
|
699
|
-
* @brief The PCM audio data. ByteBuffer[] type.
|
|
700
|
-
*
|
|
701
|
-
*/
|
|
702
|
-
buffer: Array<ByteBuffer>;
|
|
703
|
-
|
|
704
|
-
/** {en}
|
|
705
|
-
* @brief The number of audio samples.
|
|
706
|
-
*
|
|
707
|
-
*/
|
|
708
|
-
samples: int;
|
|
709
|
-
}
|
|
710
|
-
export declare enum VeLivePlayerAudioBufferType {
|
|
711
|
-
|
|
712
|
-
/** {en}
|
|
713
|
-
* @brief Unknown format.
|
|
714
|
-
*
|
|
715
|
-
*/
|
|
716
|
-
VeLivePlayerAudioBufferTypeUnknown = 0,
|
|
717
|
-
|
|
718
|
-
/** {en}
|
|
719
|
-
* @brief ByteArray.
|
|
720
|
-
*
|
|
721
|
-
*/
|
|
722
|
-
VeLivePlayerAudioBufferTypeByteArray = 1
|
|
723
|
-
}
|
|
724
|
-
export declare enum VeLivePlayerRotation {
|
|
725
|
-
|
|
726
|
-
/** {en}
|
|
727
|
-
* @brief No rotation.
|
|
728
|
-
*
|
|
729
|
-
*/
|
|
730
|
-
VeLivePlayerRotation0 = 0,
|
|
731
|
-
|
|
732
|
-
/** {en}
|
|
733
|
-
* @brief Rotate 90 degrees clockwise.
|
|
734
|
-
*
|
|
735
|
-
*/
|
|
736
|
-
VeLivePlayerRotation90 = 1,
|
|
737
|
-
|
|
738
|
-
/** {en}
|
|
739
|
-
* @brief Rotate 180 degrees clockwise.
|
|
740
|
-
*
|
|
741
|
-
*/
|
|
742
|
-
VeLivePlayerRotation180 = 2,
|
|
743
|
-
|
|
744
|
-
/** {en}
|
|
745
|
-
* @brief Rotate 270 degrees clockwise.
|
|
746
|
-
*
|
|
747
|
-
*/
|
|
748
|
-
VeLivePlayerRotation270 = 3
|
|
749
|
-
}
|