@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,695 +0,0 @@
|
|
|
1
|
-
import { BOOL, NSInteger, NSString, int, CMTime, NSData, int64_t, CVPixelBufferRef, CMSampleBufferRef, NSArray, NSURL, long, float } from './types';
|
|
2
|
-
export declare enum VeLivePlayerResolutionSwitchReason {
|
|
3
|
-
|
|
4
|
-
/** {en}
|
|
5
|
-
* @brief The resolution is switched automatically through the adaptive bitrate (ABR) feature.
|
|
6
|
-
*
|
|
7
|
-
*/
|
|
8
|
-
VeLivePlayerResolutionSwitchByAuto = 0,
|
|
9
|
-
|
|
10
|
-
/** {en}
|
|
11
|
-
* @brief The resolution is changed after [switchResolution:](docs-player-sdk-for-ios-api#TVLManager(VeLivePlayer)-switchresolution) is called.
|
|
12
|
-
*
|
|
13
|
-
*/
|
|
14
|
-
VeLivePlayerResolutionSwitchByManual = 1
|
|
15
|
-
}
|
|
16
|
-
export declare class VeLivePlayerConfiguration {
|
|
17
|
-
|
|
18
|
-
/** {en}
|
|
19
|
-
* @brief Whether to enable the parsing of string SEI messages. The default value is `NO`.<br/>
|
|
20
|
-
* - YES: Enable;
|
|
21
|
-
* - NO: Disable.
|
|
22
|
-
*/
|
|
23
|
-
enableSei: BOOL;
|
|
24
|
-
|
|
25
|
-
/** {en}
|
|
26
|
-
* @brief Whether to enable the parsing of binary SEI messages. The default value is `NO`.<br/>
|
|
27
|
-
* - YES: Enable;
|
|
28
|
-
* - NO: Disable.
|
|
29
|
-
* @notes After binary SEI is enabled, callbacks for string SEI will no longer be sent.
|
|
30
|
-
*/
|
|
31
|
-
enableBinarySei: BOOL;
|
|
32
|
-
|
|
33
|
-
/** {en}
|
|
34
|
-
* @brief Whether to turn on hardware decoding. The default value is `YES`. 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>
|
|
35
|
-
* - YES: Enable;
|
|
36
|
-
* - NO: Disable.
|
|
37
|
-
*/
|
|
38
|
-
enableHardwareDecode: BOOL;
|
|
39
|
-
|
|
40
|
-
/** {en}
|
|
41
|
-
* @brief Whether to enable local DNS prefetch. The default value is `NO`. 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>
|
|
42
|
-
* - YES: Enable;
|
|
43
|
-
* - NO: Disable.
|
|
44
|
-
*/
|
|
45
|
-
enableLiveDNS: BOOL;
|
|
46
|
-
|
|
47
|
-
/** {en}
|
|
48
|
-
* @brief Whether to enable periodic callbacks for playback information. The default value is `NO`. Refer to [VeLivePlayerStatistics](#VeLivePlayerStatistics) for more information on callback statistics. If `enableStatisticsCallback` is `YES` and [statisticsCallbackInterval](#VeLivePlayerConfiguration-statisticscallbackinterval) is greater than `0`, the player will periodically report the player status information after the specified time interval.<br/>
|
|
49
|
-
* - YES: Enable;
|
|
50
|
-
* - NO: Disable.
|
|
51
|
-
*/
|
|
52
|
-
enableStatisticsCallback: BOOL;
|
|
53
|
-
|
|
54
|
-
/** {en}
|
|
55
|
-
* @brief The time interval for periodic callbacks that provide playback information, in seconds. The default value is `5`. If enableStatisticsCallback is `YES` and [enableStatisticsCallback](#VeLivePlayerConfiguration-enablestatisticscallback) is greater than `0`, the player will periodically report the player status information after the specified time interval.
|
|
56
|
-
*/
|
|
57
|
-
statisticsCallbackInterval: NSInteger;
|
|
58
|
-
|
|
59
|
-
/** {en}
|
|
60
|
-
* @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.
|
|
61
|
-
*/
|
|
62
|
-
networkTimeoutMs: NSInteger;
|
|
63
|
-
|
|
64
|
-
/** {en}
|
|
65
|
-
* @brief Retry interval, in ms. The default value is 5000 and it is only effective when there is no backup stream.
|
|
66
|
-
* - In scenarios without a backup stream, if playback is interrupted due to issues such as network anomalies, the player will immediately retry. The first three retries are executed immediately, and the fourth and subsequent retries will be executed according to the set retry interval.
|
|
67
|
-
* - In scenarios with a backup stream, the retry interval will not take effect and all retries will be executed immediately.
|
|
68
|
-
*/
|
|
69
|
-
retryIntervalTimeMs: NSInteger;
|
|
70
|
-
|
|
71
|
-
/** {en}
|
|
72
|
-
* @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/>
|
|
73
|
-
* - In a scenario without backup streams, each retry consumes one retry attempt.
|
|
74
|
-
* - In a scenario with backup streams, each primary-backup stream switch consumes one retry attempt.
|
|
75
|
-
*/
|
|
76
|
-
retryMaxCount: NSInteger;
|
|
77
|
-
|
|
78
|
-
/** {en}
|
|
79
|
-
* @brief Initializes the configurations.
|
|
80
|
-
*/
|
|
81
|
-
init(): this;
|
|
82
|
-
}
|
|
83
|
-
export declare class VeLivePlayerStream {
|
|
84
|
-
|
|
85
|
-
/** {en}
|
|
86
|
-
* @brief The pull stream address.
|
|
87
|
-
*/
|
|
88
|
-
url: NSString;
|
|
89
|
-
|
|
90
|
-
/** {en}
|
|
91
|
-
* @brief The resolution. See [VeLivePlayerResolution](#VeLivePlayerResolution) for details.
|
|
92
|
-
*/
|
|
93
|
-
resolution: VeLivePlayerResolution;
|
|
94
|
-
|
|
95
|
-
/** {en}
|
|
96
|
-
* @brief The playback bitrate, in bps.
|
|
97
|
-
*/
|
|
98
|
-
bitrate: int;
|
|
99
|
-
|
|
100
|
-
/** {en}
|
|
101
|
-
* @brief The transmission protocol. See [VeLivePlayerProtocol](#VeLivePlayerProtocol) for details.
|
|
102
|
-
*/
|
|
103
|
-
protocol: VeLivePlayerProtocol;
|
|
104
|
-
|
|
105
|
-
/** {en}
|
|
106
|
-
* @brief The video format. See [VeLivePlayerFormat](#VeLivePlayerFormat) for details.
|
|
107
|
-
*/
|
|
108
|
-
format: VeLivePlayerFormat;
|
|
109
|
-
|
|
110
|
-
/** {en}
|
|
111
|
-
* @brief Whether the stream is a primary or a backup stream. See [VeLivePlayerStreamType](#VeLivePlayerStreamType) for details.
|
|
112
|
-
*/
|
|
113
|
-
type: VeLivePlayerStreamType;
|
|
114
|
-
|
|
115
|
-
/** {en}
|
|
116
|
-
* @brief Initializes a pull stream address.
|
|
117
|
-
*/
|
|
118
|
-
init(): this;
|
|
119
|
-
}
|
|
120
|
-
export declare enum VeLivePlayerLogLevel {
|
|
121
|
-
|
|
122
|
-
/** {en}
|
|
123
|
-
* @brief Output logs at the VERBOSE, DEBUG, INFO, WARNING, and ERROR levels.
|
|
124
|
-
*
|
|
125
|
-
*/
|
|
126
|
-
VeLivePlayerLogLevelVerbose = 0,
|
|
127
|
-
|
|
128
|
-
/** {en}
|
|
129
|
-
* @brief Output logs at the DEBUG, INFO, WARNING, and ERROR levels.
|
|
130
|
-
*
|
|
131
|
-
*/
|
|
132
|
-
VeLivePlayerLogLevelDebug = 1,
|
|
133
|
-
|
|
134
|
-
/** {en}
|
|
135
|
-
* @brief Output logs at the INFO, WARNING, and ERROR levels.
|
|
136
|
-
*
|
|
137
|
-
*/
|
|
138
|
-
VeLivePlayerLogLevelInfo = 2,
|
|
139
|
-
|
|
140
|
-
/** {en}
|
|
141
|
-
* @brief Output logs at the WARNING and ERROR levels.
|
|
142
|
-
*
|
|
143
|
-
*/
|
|
144
|
-
VeLivePlayerLogLevelWarn = 3,
|
|
145
|
-
|
|
146
|
-
/** {en}
|
|
147
|
-
* @brief Output logs at the ERROR level.
|
|
148
|
-
*
|
|
149
|
-
*/
|
|
150
|
-
VeLivePlayerLogLevelError = 4,
|
|
151
|
-
|
|
152
|
-
/** {en}
|
|
153
|
-
* @brief Disable log printing.
|
|
154
|
-
*
|
|
155
|
-
*/
|
|
156
|
-
VeLivePlayerLogLevelNone = 5
|
|
157
|
-
}
|
|
158
|
-
export declare class VeLivePlayerAudioFrame {
|
|
159
|
-
|
|
160
|
-
/** {en}
|
|
161
|
-
* @brief The encapsulation format of the audio data. See [VeLivePlayerAudioBufferType](#VeLivePlayerAudioBufferType) for details.
|
|
162
|
-
*/
|
|
163
|
-
bufferType: VeLivePlayerAudioBufferType;
|
|
164
|
-
|
|
165
|
-
/** {en}
|
|
166
|
-
* @brief The audio sample rate, in Hz.
|
|
167
|
-
*/
|
|
168
|
-
sampleRate: int;
|
|
169
|
-
|
|
170
|
-
/** {en}
|
|
171
|
-
* @brief The number of audio channels. <br>
|
|
172
|
-
* - 1: Mono;
|
|
173
|
-
* - 2: Stereo.
|
|
174
|
-
*/
|
|
175
|
-
channels: int;
|
|
176
|
-
|
|
177
|
-
/** {en}
|
|
178
|
-
* @brief The audio bit depth.
|
|
179
|
-
*/
|
|
180
|
-
bitDepth: int;
|
|
181
|
-
|
|
182
|
-
/** {en}
|
|
183
|
-
* @brief The timestamp indicating the time when the audio is rendered, in milliseconds.
|
|
184
|
-
*/
|
|
185
|
-
pts: CMTime;
|
|
186
|
-
|
|
187
|
-
/** {en}
|
|
188
|
-
* @brief The PCM audio data.
|
|
189
|
-
*/
|
|
190
|
-
data: NSData;
|
|
191
|
-
|
|
192
|
-
/** {en}
|
|
193
|
-
* @brief The number of audio samples.
|
|
194
|
-
*/
|
|
195
|
-
samples: int;
|
|
196
|
-
init(): this;
|
|
197
|
-
}
|
|
198
|
-
export declare class VeLivePlayerVideoFrame {
|
|
199
|
-
|
|
200
|
-
/** {en}
|
|
201
|
-
* @brief The encapsulation format. See [VeLivePlayerVideoBufferType](#VeLivePlayerVideoBufferType) for details.
|
|
202
|
-
*/
|
|
203
|
-
bufferType: VeLivePlayerVideoBufferType;
|
|
204
|
-
|
|
205
|
-
/** {en}
|
|
206
|
-
* @brief The pixel format. See [VeLivePlayerPixelFormat](#VeLivePlayerPixelFormat) for details.
|
|
207
|
-
*/
|
|
208
|
-
pixelFormat: VeLivePlayerPixelFormat;
|
|
209
|
-
|
|
210
|
-
/** {en}
|
|
211
|
-
* @brief The video width, in pixels.
|
|
212
|
-
*/
|
|
213
|
-
width: NSInteger;
|
|
214
|
-
|
|
215
|
-
/** {en}
|
|
216
|
-
* @brief The video height, in pixels.
|
|
217
|
-
*/
|
|
218
|
-
height: NSInteger;
|
|
219
|
-
|
|
220
|
-
/** {en}
|
|
221
|
-
* @brief The timestamp indicating the time when the video frame is rendered, in milliseconds.
|
|
222
|
-
*/
|
|
223
|
-
pts: int64_t;
|
|
224
|
-
|
|
225
|
-
/** {en}
|
|
226
|
-
* @brief The video data, if you set [VeLivePlayerVideoBufferType](#VeLivePlayerVideoBufferType) to `VeLivePlayerVideoBufferTypePixelBuffer`.
|
|
227
|
-
*/
|
|
228
|
-
pixelBuffer: CVPixelBufferRef;
|
|
229
|
-
|
|
230
|
-
/** {en}
|
|
231
|
-
* @brief The video data, if you set [VeLivePlayerVideoBufferType](#VeLivePlayerVideoBufferType) to `VeLivePlayerVideoBufferTypeSampleBuffer`.
|
|
232
|
-
*/
|
|
233
|
-
sampleBuffer: CMSampleBufferRef;
|
|
234
|
-
|
|
235
|
-
/** {en}
|
|
236
|
-
* @brief The video data, if you set [VeLivePlayerVideoBufferType](#VeLivePlayerVideoBufferType) to `VeLivePlayerVideoBufferTypeNSData`.
|
|
237
|
-
*/
|
|
238
|
-
data: NSData;
|
|
239
|
-
init(): this;
|
|
240
|
-
}
|
|
241
|
-
export declare enum VeLivePlayerSupportResolutionSwitchError {
|
|
242
|
-
|
|
243
|
-
/** {en}
|
|
244
|
-
* @brief The corresponding resolution gear is not found.
|
|
245
|
-
*
|
|
246
|
-
*/
|
|
247
|
-
VeLivePlayerErrorResNotFound = -1,
|
|
248
|
-
|
|
249
|
-
/** {en}
|
|
250
|
-
* @brief The same as the current resolution level.
|
|
251
|
-
*
|
|
252
|
-
*/
|
|
253
|
-
VeLivePlayerErrorSameRes = -2,
|
|
254
|
-
|
|
255
|
-
/** {en}
|
|
256
|
-
* @brief The player status is not in the prepare state.
|
|
257
|
-
*
|
|
258
|
-
*/
|
|
259
|
-
VeLivePlayerErrorStatusInvalid = -3,
|
|
260
|
-
|
|
261
|
-
/** {en}
|
|
262
|
-
* @brief Resolution level error.
|
|
263
|
-
*
|
|
264
|
-
*/
|
|
265
|
-
VeLivePlayerErrorInvalidRes = -4,
|
|
266
|
-
|
|
267
|
-
/** {en}
|
|
268
|
-
* @brief Configuration not supported.
|
|
269
|
-
*
|
|
270
|
-
*/
|
|
271
|
-
VeLivePlayerErrorConfigNotSupport = -5,
|
|
272
|
-
|
|
273
|
-
/** {en}
|
|
274
|
-
* @brief Format not supported.
|
|
275
|
-
*
|
|
276
|
-
*/
|
|
277
|
-
VeLivePlayerErrorFormatNotSupport = -6
|
|
278
|
-
}
|
|
279
|
-
export declare class VeLivePlayerStreamData {
|
|
280
|
-
|
|
281
|
-
/** {en}
|
|
282
|
-
* @brief Whether to enable adaptive bitrate (ABR). The default value is `NO`. <br>
|
|
283
|
-
* - YES: Enable;
|
|
284
|
-
* - NO: Disable.
|
|
285
|
-
*/
|
|
286
|
-
enableABR: BOOL;
|
|
287
|
-
|
|
288
|
-
/** {en}
|
|
289
|
-
* @brief Whether to enable switching between the primary and the backup stream. The default value is `NO`. <br>
|
|
290
|
-
* - YES: Enable;
|
|
291
|
-
* - NO: Disable.
|
|
292
|
-
*/
|
|
293
|
-
enableMainBackupSwitch: BOOL;
|
|
294
|
-
|
|
295
|
-
/** {en}
|
|
296
|
-
* @brief The default resolution. The default value is `VeLivePlayerResolutionOrigin`, which indicates the original resolution. See [VeLivePlayerResolution](#VeLivePlayerResolution) for details.
|
|
297
|
-
*/
|
|
298
|
-
defaultResolution: VeLivePlayerResolution;
|
|
299
|
-
|
|
300
|
-
/** {en}
|
|
301
|
-
* @brief The default video format. The default value is `VeLivePlayerFormatFLV`. See [VeLivePlayerFormat](#VeLivePlayerFormat) for details.
|
|
302
|
-
*/
|
|
303
|
-
defaultFormat: VeLivePlayerFormat;
|
|
304
|
-
|
|
305
|
-
/** {en}
|
|
306
|
-
* @brief The default transmission protocol. The default value is `VeLivePlayerProtocolTCP`. See [VeLivePlayerProtocol](#VeLivePlayerProtocol) for details.
|
|
307
|
-
*/
|
|
308
|
-
defaultProtocol: VeLivePlayerProtocol;
|
|
309
|
-
|
|
310
|
-
/** {en}
|
|
311
|
-
* @brief A list of main stream addresses. See [VeLivePlayerStream](#VeLivePlayerStream) for details.
|
|
312
|
-
*/
|
|
313
|
-
mainStream: NSArray<VeLivePlayerStream>;
|
|
314
|
-
|
|
315
|
-
/** {en}
|
|
316
|
-
* @brief A list of backup stream addresses. See [VeLivePlayerStream](#VeLivePlayerStream) for details.
|
|
317
|
-
*/
|
|
318
|
-
backupStream: NSArray<VeLivePlayerStream>;
|
|
319
|
-
init(): this;
|
|
320
|
-
}
|
|
321
|
-
export declare enum VeLivePlayerAudioBufferType {
|
|
322
|
-
|
|
323
|
-
/** {en}
|
|
324
|
-
* @brief Unknown format.
|
|
325
|
-
*
|
|
326
|
-
*/
|
|
327
|
-
VeLivePlayerAudioBufferUnknown = 0,
|
|
328
|
-
|
|
329
|
-
/** {en}
|
|
330
|
-
* @brief CVSampleBufferRef. The audio data is processed and rendered as sample buffers.
|
|
331
|
-
*
|
|
332
|
-
*/
|
|
333
|
-
VeLivePlayerAudioBufferTypeSampleBuffer = 1,
|
|
334
|
-
|
|
335
|
-
/** {en}
|
|
336
|
-
* @brief NSData. The audio data is processed and rendered as NSData objects.
|
|
337
|
-
*
|
|
338
|
-
*/
|
|
339
|
-
VeLivePlayerAudioBufferTypeNSData = 2
|
|
340
|
-
}
|
|
341
|
-
export declare enum VeLivePlayerVideoBufferType {
|
|
342
|
-
|
|
343
|
-
/** {en}
|
|
344
|
-
* @brief Unknown format.
|
|
345
|
-
*
|
|
346
|
-
*/
|
|
347
|
-
VeLivePlayerVideoBufferTypeUnknown = 0,
|
|
348
|
-
|
|
349
|
-
/** {en}
|
|
350
|
-
* @brief CVPixelBufferRef.
|
|
351
|
-
*
|
|
352
|
-
*/
|
|
353
|
-
VeLivePlayerVideoBufferTypePixelBuffer = 1,
|
|
354
|
-
|
|
355
|
-
/** {en}
|
|
356
|
-
* @brief CVSampleBufferRef.
|
|
357
|
-
*
|
|
358
|
-
*/
|
|
359
|
-
VeLivePlayerVideoBufferTypeSampleBuffer = 2,
|
|
360
|
-
|
|
361
|
-
/** {en}
|
|
362
|
-
* @brief NSData.
|
|
363
|
-
*
|
|
364
|
-
*/
|
|
365
|
-
VeLivePlayerVideoBufferTypeNSData = 3
|
|
366
|
-
}
|
|
367
|
-
export declare enum VeLivePlayerProtocol {
|
|
368
|
-
|
|
369
|
-
/** {en}
|
|
370
|
-
* @brief TCP.
|
|
371
|
-
*
|
|
372
|
-
*/
|
|
373
|
-
VeLivePlayerProtocolTCP = 0,
|
|
374
|
-
|
|
375
|
-
/** {en}
|
|
376
|
-
* @brief QUIC.
|
|
377
|
-
*
|
|
378
|
-
*/
|
|
379
|
-
VeLivePlayerProtocolQUIC = 1,
|
|
380
|
-
|
|
381
|
-
/** {en}
|
|
382
|
-
* @brief TLS.
|
|
383
|
-
*
|
|
384
|
-
*/
|
|
385
|
-
VeLivePlayerProtocolTLS = 2,
|
|
386
|
-
|
|
387
|
-
/** {en}
|
|
388
|
-
* @brief HTTP。
|
|
389
|
-
*
|
|
390
|
-
*/
|
|
391
|
-
VeLivePlayerProtocolHTTP2 = 3
|
|
392
|
-
}
|
|
393
|
-
export declare enum VeLivePlayerFillMode {
|
|
394
|
-
|
|
395
|
-
/** {en}
|
|
396
|
-
* @brief Uniformly scale the video until the screen is completely filled. Part of the video may be cropped.
|
|
397
|
-
*
|
|
398
|
-
*/
|
|
399
|
-
VeLivePlayerFillModeAspectFill = 0,
|
|
400
|
-
|
|
401
|
-
/** {en}
|
|
402
|
-
* @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.
|
|
403
|
-
*
|
|
404
|
-
*/
|
|
405
|
-
VeLivePlayerFillModeAspectFit = 1,
|
|
406
|
-
|
|
407
|
-
/** {en}
|
|
408
|
-
* @brief Stretch the video to fill the screen. The aspect ratio of the video might change.
|
|
409
|
-
*
|
|
410
|
-
*/
|
|
411
|
-
VeLivePlayerFillModeFullFill = 2
|
|
412
|
-
}
|
|
413
|
-
export declare enum VeLivePlayerRotation {
|
|
414
|
-
|
|
415
|
-
/** {en}
|
|
416
|
-
* @brief No rotation.
|
|
417
|
-
*
|
|
418
|
-
*/
|
|
419
|
-
VeLivePlayerRotation0 = 0,
|
|
420
|
-
|
|
421
|
-
/** {en}
|
|
422
|
-
* @brief Rotate 90 degrees clockwise.
|
|
423
|
-
*
|
|
424
|
-
*/
|
|
425
|
-
VeLivePlayerRotation90 = 90,
|
|
426
|
-
|
|
427
|
-
/** {en}
|
|
428
|
-
* @brief Rotate 180 degrees clockwise.
|
|
429
|
-
*
|
|
430
|
-
*/
|
|
431
|
-
VeLivePlayerRotation180 = 180,
|
|
432
|
-
|
|
433
|
-
/** {en}
|
|
434
|
-
* @brief Rotate 270 degrees clockwise.
|
|
435
|
-
*
|
|
436
|
-
*/
|
|
437
|
-
VeLivePlayerRotation270 = 270
|
|
438
|
-
}
|
|
439
|
-
export declare enum VeLivePlayerMirror {
|
|
440
|
-
|
|
441
|
-
/** {en}
|
|
442
|
-
* @brief No mirroring.
|
|
443
|
-
*
|
|
444
|
-
*/
|
|
445
|
-
VeLivePlayerMirrorNone = 0,
|
|
446
|
-
|
|
447
|
-
/** {en}
|
|
448
|
-
* @brief Horizontal mirroring.
|
|
449
|
-
*
|
|
450
|
-
*/
|
|
451
|
-
VeLivePlayerMirrorHorizontal = 1,
|
|
452
|
-
|
|
453
|
-
/** {en}
|
|
454
|
-
* @brief Vertical mirroring.
|
|
455
|
-
*
|
|
456
|
-
*/
|
|
457
|
-
VeLivePlayerMirrorVertical = 2
|
|
458
|
-
}
|
|
459
|
-
export declare enum VeLivePlayerPixelFormat {
|
|
460
|
-
|
|
461
|
-
/** {en}
|
|
462
|
-
* @brief Unknown format.
|
|
463
|
-
*
|
|
464
|
-
*/
|
|
465
|
-
VeLivePlayerPixelFormatUnknown = 0,
|
|
466
|
-
|
|
467
|
-
/** {en}
|
|
468
|
-
* @brief NV12.
|
|
469
|
-
*
|
|
470
|
-
*/
|
|
471
|
-
VeLivePlayerPixelFormatNV12 = 1,
|
|
472
|
-
|
|
473
|
-
/** {en}
|
|
474
|
-
* @brief YUVI420.
|
|
475
|
-
*
|
|
476
|
-
*/
|
|
477
|
-
VeLivePlayerPixelFormatI420 = 2,
|
|
478
|
-
|
|
479
|
-
/** {en}
|
|
480
|
-
* @brief BGRA.
|
|
481
|
-
*
|
|
482
|
-
*/
|
|
483
|
-
VeLivePlayerPixelFormatBGRA32 = 3
|
|
484
|
-
}
|
|
485
|
-
export declare enum VeLivePlayerStatus {
|
|
486
|
-
|
|
487
|
-
/** {en}
|
|
488
|
-
* @brief The player finishes preparing and is waiting to render the video.
|
|
489
|
-
*
|
|
490
|
-
*/
|
|
491
|
-
VeLivePlayerStatusPrepared = 0,
|
|
492
|
-
|
|
493
|
-
/** {en}
|
|
494
|
-
* @brief Playback is currently in progress, meaning that the first frame has been rendered and no errors have occurred to the player.
|
|
495
|
-
*
|
|
496
|
-
*/
|
|
497
|
-
VeLivePlayerStatusPlaying = 1,
|
|
498
|
-
|
|
499
|
-
/** {en}
|
|
500
|
-
* @brief The playback is paused.
|
|
501
|
-
*
|
|
502
|
-
*/
|
|
503
|
-
VeLivePlayerStatusPaused = 2,
|
|
504
|
-
|
|
505
|
-
/** {en}
|
|
506
|
-
* @brief The playback is stopped.
|
|
507
|
-
*
|
|
508
|
-
*/
|
|
509
|
-
VeLivePlayerStatusStopped = 3,
|
|
510
|
-
|
|
511
|
-
/** {en}
|
|
512
|
-
* @brief An error has occurred to the player.
|
|
513
|
-
*
|
|
514
|
-
*/
|
|
515
|
-
VeLivePlayerStatusError = 4
|
|
516
|
-
}
|
|
517
|
-
export declare class VeLivePlayerStatistics {
|
|
518
|
-
|
|
519
|
-
/** {en}
|
|
520
|
-
* @brief The current pull stream address.
|
|
521
|
-
*/
|
|
522
|
-
url: NSURL;
|
|
523
|
-
|
|
524
|
-
/** {en}
|
|
525
|
-
* @brief Whether hardware decoding is used. <br>
|
|
526
|
-
* - YES: Hardware decoding is used;
|
|
527
|
-
* - NO: Hardware decoding is not used.
|
|
528
|
-
*/
|
|
529
|
-
isHardWareDecode: BOOL;
|
|
530
|
-
|
|
531
|
-
/** {en}
|
|
532
|
-
* @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.
|
|
533
|
-
*/
|
|
534
|
-
delayMs: int;
|
|
535
|
-
|
|
536
|
-
/** {en}
|
|
537
|
-
* @brief The cumulative duration of stutters that occurred since the beginning of playback, in milliseconds.
|
|
538
|
-
*/
|
|
539
|
-
stallTimeMs: int;
|
|
540
|
-
|
|
541
|
-
/** {en}
|
|
542
|
-
* @brief The estimated bandwidth, in kbps.
|
|
543
|
-
*/
|
|
544
|
-
bandwidthEstimation: long;
|
|
545
|
-
|
|
546
|
-
/** {en}
|
|
547
|
-
* @brief The encoding format of the video.
|
|
548
|
-
*/
|
|
549
|
-
videoCodec: NSString;
|
|
550
|
-
|
|
551
|
-
/** {en}
|
|
552
|
-
* @brief The width of the video, in pixels.
|
|
553
|
-
*/
|
|
554
|
-
width: int;
|
|
555
|
-
|
|
556
|
-
/** {en}
|
|
557
|
-
* @brief The height of the video, in pixels.
|
|
558
|
-
*/
|
|
559
|
-
height: int;
|
|
560
|
-
|
|
561
|
-
/** {en}
|
|
562
|
-
* @brief The frame rate of the video, in fps.
|
|
563
|
-
*/
|
|
564
|
-
fps: float;
|
|
565
|
-
|
|
566
|
-
/** {en}
|
|
567
|
-
* @brief The downlink bitrate, in Kbps.
|
|
568
|
-
*/
|
|
569
|
-
bitrate: long;
|
|
570
|
-
|
|
571
|
-
/** {en}
|
|
572
|
-
* @brief The video buffer, in milliseconds.
|
|
573
|
-
*/
|
|
574
|
-
videoBufferMs: long;
|
|
575
|
-
|
|
576
|
-
/** {en}
|
|
577
|
-
* @brief The audio buffer, in milliseconds.
|
|
578
|
-
*/
|
|
579
|
-
audioBufferMs: long;
|
|
580
|
-
|
|
581
|
-
/** {en}
|
|
582
|
-
* @brief The video format.
|
|
583
|
-
*/
|
|
584
|
-
format: VeLivePlayerFormat;
|
|
585
|
-
|
|
586
|
-
/** {en}
|
|
587
|
-
* @brief The transmission protocol of the live stream.
|
|
588
|
-
*/
|
|
589
|
-
protocol: VeLivePlayerProtocol;
|
|
590
|
-
init(): this;
|
|
591
|
-
}
|
|
592
|
-
export declare enum VeLivePlayerType {
|
|
593
|
-
|
|
594
|
-
/** {en}
|
|
595
|
-
* @brief Custom player.
|
|
596
|
-
*
|
|
597
|
-
*/
|
|
598
|
-
VeLivePlayerTypeOwn = 0,
|
|
599
|
-
|
|
600
|
-
/** {en}
|
|
601
|
-
* @brief System player.
|
|
602
|
-
*
|
|
603
|
-
*/
|
|
604
|
-
VeLivePlayerTypeSystem = 1
|
|
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 VeLivePlayerFormat {
|
|
621
|
-
|
|
622
|
-
/** {en}
|
|
623
|
-
* @brief FLV.
|
|
624
|
-
*
|
|
625
|
-
*/
|
|
626
|
-
VeLivePlayerFormatFLV = 0,
|
|
627
|
-
|
|
628
|
-
/** {en}
|
|
629
|
-
* @brief HLS.
|
|
630
|
-
*
|
|
631
|
-
*/
|
|
632
|
-
VeLivePlayerFormatHLS = 1,
|
|
633
|
-
|
|
634
|
-
/** {en}
|
|
635
|
-
* @brief Real Time Media (RTM).
|
|
636
|
-
*
|
|
637
|
-
*/
|
|
638
|
-
VeLivePlayerFormatRTM = 2
|
|
639
|
-
}
|
|
640
|
-
export declare enum VeLivePlayerResolution {
|
|
641
|
-
|
|
642
|
-
/** {en}
|
|
643
|
-
* @brief Original.
|
|
644
|
-
*
|
|
645
|
-
*/
|
|
646
|
-
VeLivePlayerResolutionOrigin = 0,
|
|
647
|
-
|
|
648
|
-
/** {en}
|
|
649
|
-
* @brief Ultra high definition (UHD).
|
|
650
|
-
*
|
|
651
|
-
*/
|
|
652
|
-
VeLivePlayerResolutionUHD = 1,
|
|
653
|
-
|
|
654
|
-
/** {en}
|
|
655
|
-
* @brief Full High definition (FHD).
|
|
656
|
-
*
|
|
657
|
-
*/
|
|
658
|
-
VeLivePlayerResolutionFHD = 2,
|
|
659
|
-
|
|
660
|
-
/** {en}
|
|
661
|
-
* @brief High definition (HD).
|
|
662
|
-
*
|
|
663
|
-
*/
|
|
664
|
-
VeLivePlayerResolutionHD = 3,
|
|
665
|
-
|
|
666
|
-
/** {en}
|
|
667
|
-
* @brief Standard definition (SD).
|
|
668
|
-
*
|
|
669
|
-
*/
|
|
670
|
-
VeLivePlayerResolutionSD = 4,
|
|
671
|
-
|
|
672
|
-
/** {en}
|
|
673
|
-
* @brief Low definition (LD).
|
|
674
|
-
*
|
|
675
|
-
*/
|
|
676
|
-
VeLivePlayerResolutionLD = 5,
|
|
677
|
-
|
|
678
|
-
/** {en}
|
|
679
|
-
* @hidden (iOS)
|
|
680
|
-
*
|
|
681
|
-
*/
|
|
682
|
-
VeLivePlayerResolutionMD = 6,
|
|
683
|
-
|
|
684
|
-
/** {en}
|
|
685
|
-
* @hidden (iOS)
|
|
686
|
-
*
|
|
687
|
-
*/
|
|
688
|
-
VeLivePlayerResolutionAO = 7,
|
|
689
|
-
|
|
690
|
-
/** {en}
|
|
691
|
-
* @brief Auto.
|
|
692
|
-
*
|
|
693
|
-
*/
|
|
694
|
-
VeLivePlayerResolutionAUTO = 8
|
|
695
|
-
}
|