@byteplus/react-native-live-pull 1.0.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/LICENSE +21 -0
- package/README.md +2 -0
- package/android/build.gradle +93 -0
- package/android/gradle.properties +5 -0
- package/android/src/main/AndroidManifest.xml +9 -0
- package/android/src/main/AndroidManifestNew.xml +8 -0
- package/android/src/main/java/com/volcengine/velive/rn/pull/NativeVariableManager.java +15 -0
- package/android/src/main/java/com/volcengine/velive/rn/pull/VolcLiveModule.java +108 -0
- package/android/src/main/java/com/volcengine/velive/rn/pull/VolcLiveModuleSpec.java +17 -0
- package/android/src/main/java/com/volcengine/velive/rn/pull/VolcLivePackage.java +27 -0
- package/android/src/main/java/com/volcengine/velive/rn/pull/VolcView.java +32 -0
- package/android/src/main/java/com/volcengine/velive/rn/pull/VolcViewManager.java +87 -0
- package/android/src/main/java/com/volcengine/velive/rn/pull/autogen/MethodSignature.java +129 -0
- package/ios/VeLivePullSDK.h +24 -0
- package/ios/VeLivePullSDK.m +91 -0
- package/ios/VeLivePullView.h +25 -0
- package/ios/VeLivePullView.m +74 -0
- package/ios/VeLivePullViewManager.m +59 -0
- package/lib/commonjs/index.js +10697 -0
- package/lib/module/index.js +10684 -0
- package/lib/typescript/codegen/android/api.d.ts +61 -0
- package/lib/typescript/codegen/android/callback.d.ts +40 -0
- package/lib/typescript/codegen/android/errorcode.d.ts +53 -0
- package/lib/typescript/codegen/android/index.d.ts +5 -0
- package/lib/typescript/codegen/android/keytype.d.ts +263 -0
- package/lib/typescript/codegen/android/types.d.ts +30 -0
- package/lib/typescript/codegen/ios/api.d.ts +81 -0
- package/lib/typescript/codegen/ios/callback.d.ts +44 -0
- package/lib/typescript/codegen/ios/errorcode.d.ts +56 -0
- package/lib/typescript/codegen/ios/index.d.ts +5 -0
- package/lib/typescript/codegen/ios/keytype.d.ts +271 -0
- package/lib/typescript/codegen/ios/types.d.ts +35 -0
- package/lib/typescript/codegen/pack/api.d.ts +381 -0
- package/lib/typescript/codegen/pack/callback.d.ts +217 -0
- package/lib/typescript/codegen/pack/errorcode.d.ts +150 -0
- package/lib/typescript/codegen/pack/index.d.ts +5 -0
- package/lib/typescript/codegen/pack/keytype.d.ts +931 -0
- package/lib/typescript/codegen/pack/types.d.ts +1 -0
- package/lib/typescript/component.d.ts +8 -0
- package/lib/typescript/core/api.d.ts +1 -0
- package/lib/typescript/core/callback.d.ts +1 -0
- package/lib/typescript/core/env.d.ts +38 -0
- package/lib/typescript/core/errorcode.d.ts +1 -0
- package/lib/typescript/core/index.d.ts +6 -0
- package/lib/typescript/core/keytype.d.ts +1 -0
- package/lib/typescript/core/player.d.ts +16 -0
- package/lib/typescript/index.d.ts +2 -0
- package/lib/typescript/platforms/android/extends.d.ts +39 -0
- package/lib/typescript/platforms/ios/extends.d.ts +41 -0
- package/lib/typescript/runtime/index.d.ts +1 -0
- package/package.json +32 -0
- package/react-native-velive-pull.podspec +45 -0
|
@@ -0,0 +1,931 @@
|
|
|
1
|
+
import * as $p_a from '../android/index';
|
|
2
|
+
import * as $p_i from '../ios/index';
|
|
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,
|
|
14
|
+
|
|
15
|
+
/** {en}
|
|
16
|
+
* @brief Ultra high definition (UHD).
|
|
17
|
+
*/
|
|
18
|
+
VeLivePlayerResolutionUHD = 1,
|
|
19
|
+
|
|
20
|
+
/** {en}
|
|
21
|
+
* @brief High definition (HD).
|
|
22
|
+
*/
|
|
23
|
+
VeLivePlayerResolutionHD = 2,
|
|
24
|
+
|
|
25
|
+
/** {en}
|
|
26
|
+
* @brief Standard definition (SD).
|
|
27
|
+
*/
|
|
28
|
+
VeLivePlayerResolutionSD = 3,
|
|
29
|
+
|
|
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;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/** {en}
|
|
43
|
+
* @detail keytype
|
|
44
|
+
* @brief The configurations for player initialization.
|
|
45
|
+
*/
|
|
46
|
+
export declare class VeLivePlayerConfiguration {
|
|
47
|
+
protected _instance: any;
|
|
48
|
+
protected __init(...args: any[]): void;
|
|
49
|
+
protected __new_instance(...args: any[]): $p_a.VeLivePlayerConfiguration | $p_i.VeLivePlayerConfiguration;
|
|
50
|
+
|
|
51
|
+
/** {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.
|
|
63
|
+
*/
|
|
64
|
+
get enableHardwareDecode(): boolean;
|
|
65
|
+
set enableHardwareDecode(value: boolean);
|
|
66
|
+
|
|
67
|
+
/** {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.
|
|
69
|
+
*/
|
|
70
|
+
get networkTimeoutMs(): number;
|
|
71
|
+
set networkTimeoutMs(value: number);
|
|
72
|
+
|
|
73
|
+
/** {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.
|
|
77
|
+
*/
|
|
78
|
+
get retryIntervalTimeMs(): number;
|
|
79
|
+
set retryIntervalTimeMs(value: number);
|
|
80
|
+
|
|
81
|
+
/** {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.
|
|
85
|
+
*/
|
|
86
|
+
get retryMaxCount(): number;
|
|
87
|
+
set retryMaxCount(value: number);
|
|
88
|
+
|
|
89
|
+
/** {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.
|
|
93
|
+
*/
|
|
94
|
+
get enableLiveDNS(): boolean;
|
|
95
|
+
set enableLiveDNS(value: boolean);
|
|
96
|
+
|
|
97
|
+
/** {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.
|
|
101
|
+
*/
|
|
102
|
+
get enableStatisticsCallback(): boolean;
|
|
103
|
+
set enableStatisticsCallback(value: boolean);
|
|
104
|
+
|
|
105
|
+
/** {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.
|
|
107
|
+
*/
|
|
108
|
+
get statisticsCallbackInterval(): number;
|
|
109
|
+
set statisticsCallbackInterval(value: number);
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
/** {en}
|
|
113
|
+
* @detail keytype
|
|
114
|
+
* @brief The format of the live stream.
|
|
115
|
+
*/
|
|
116
|
+
export declare enum VeLivePlayerFormat {
|
|
117
|
+
|
|
118
|
+
/** {en}
|
|
119
|
+
* @brief FLV.
|
|
120
|
+
*/
|
|
121
|
+
VeLivePlayerFormatFLV = 0,
|
|
122
|
+
|
|
123
|
+
/** {en}
|
|
124
|
+
* @brief HLS.
|
|
125
|
+
*/
|
|
126
|
+
VeLivePlayerFormatHLS = 1,
|
|
127
|
+
|
|
128
|
+
/** {en}
|
|
129
|
+
* @brief Real Time Media (RTM).
|
|
130
|
+
*/
|
|
131
|
+
VeLivePlayerFormatRTM = 2
|
|
132
|
+
}
|
|
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;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
/** {en}
|
|
141
|
+
* @detail keytype
|
|
142
|
+
* @brief The transmission protocol.
|
|
143
|
+
*/
|
|
144
|
+
export declare enum VeLivePlayerProtocol {
|
|
145
|
+
|
|
146
|
+
/** {en}
|
|
147
|
+
* @brief TCP.
|
|
148
|
+
*/
|
|
149
|
+
VeLivePlayerProtocolTCP = 0,
|
|
150
|
+
|
|
151
|
+
/** {en}
|
|
152
|
+
* @brief QUIC.
|
|
153
|
+
*/
|
|
154
|
+
VeLivePlayerProtocolQUIC = 1,
|
|
155
|
+
|
|
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;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
/** {en}
|
|
169
|
+
* @detail keytype
|
|
170
|
+
* @brief The mirroring option.
|
|
171
|
+
*/
|
|
172
|
+
export declare enum VeLivePlayerMirror {
|
|
173
|
+
|
|
174
|
+
/** {en}
|
|
175
|
+
* @brief No mirroring.
|
|
176
|
+
*/
|
|
177
|
+
VeLivePlayerMirrorNone = 0,
|
|
178
|
+
|
|
179
|
+
/** {en}
|
|
180
|
+
* @brief Horizontal mirroring.
|
|
181
|
+
*/
|
|
182
|
+
VeLivePlayerMirrorHorizontal = 1,
|
|
183
|
+
|
|
184
|
+
/** {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.
|
|
204
|
+
*/
|
|
205
|
+
VeLivePlayerVideoBufferTypeUnknown = 0,
|
|
206
|
+
|
|
207
|
+
/** {en}
|
|
208
|
+
* @platform android
|
|
209
|
+
* @brief ByteBuffer.
|
|
210
|
+
*/
|
|
211
|
+
VeLivePlayerVideoBufferTypeByteBuffer = 1,
|
|
212
|
+
|
|
213
|
+
/** {en}
|
|
214
|
+
* @platform android
|
|
215
|
+
* @brief ByteArray.
|
|
216
|
+
*/
|
|
217
|
+
VeLivePlayerVideoBufferTypeByteArray = 2,
|
|
218
|
+
|
|
219
|
+
/** {en}
|
|
220
|
+
* @platform android
|
|
221
|
+
* @brief Texture.
|
|
222
|
+
*/
|
|
223
|
+
VeLivePlayerVideoBufferTypeTexture = 3,
|
|
224
|
+
|
|
225
|
+
/** {en}
|
|
226
|
+
* @platform ios
|
|
227
|
+
* @brief CVPixelBufferRef.
|
|
228
|
+
*/
|
|
229
|
+
VeLivePlayerVideoBufferTypePixelBuffer = 5,
|
|
230
|
+
|
|
231
|
+
/** {en}
|
|
232
|
+
* @platform ios
|
|
233
|
+
* @brief CVSampleBufferRef.
|
|
234
|
+
*/
|
|
235
|
+
VeLivePlayerVideoBufferTypeSampleBuffer = 6,
|
|
236
|
+
|
|
237
|
+
/** {en}
|
|
238
|
+
* @platform ios
|
|
239
|
+
* @brief NSData.
|
|
240
|
+
*/
|
|
241
|
+
VeLivePlayerVideoBufferTypeNSData = 7
|
|
242
|
+
}
|
|
243
|
+
export declare class t_VeLivePlayerVideoBufferType {
|
|
244
|
+
static ts_to_android(value: VeLivePlayerVideoBufferType): $p_a.VeLivePlayerVideoBufferType;
|
|
245
|
+
static android_to_ts(value: $p_a.VeLivePlayerVideoBufferType): VeLivePlayerVideoBufferType;
|
|
246
|
+
static ts_to_ios(value: VeLivePlayerVideoBufferType): $p_i.VeLivePlayerVideoBufferType;
|
|
247
|
+
static ios_to_ts(value: $p_i.VeLivePlayerVideoBufferType): VeLivePlayerVideoBufferType;
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
/** {en}
|
|
251
|
+
* @detail keytype
|
|
252
|
+
* @brief The status of the live player.
|
|
253
|
+
*/
|
|
254
|
+
export declare enum VeLivePlayerStatus {
|
|
255
|
+
|
|
256
|
+
/** {en}
|
|
257
|
+
* @brief The playback is stopped.
|
|
258
|
+
*/
|
|
259
|
+
VeLivePlayerStatusStopped = 3,
|
|
260
|
+
|
|
261
|
+
/** {en}
|
|
262
|
+
* @brief The playback is paused.
|
|
263
|
+
*/
|
|
264
|
+
VeLivePlayerStatusPaused = 2,
|
|
265
|
+
|
|
266
|
+
/** {en}
|
|
267
|
+
* @brief The player finishes preparing and is waiting to render the video.
|
|
268
|
+
*/
|
|
269
|
+
VeLivePlayerStatusPrepared = 0,
|
|
270
|
+
|
|
271
|
+
/** {en}
|
|
272
|
+
* @brief Playback is currently in progress, meaning that the first frame has been rendered and no errors have occurred to the player.
|
|
273
|
+
*/
|
|
274
|
+
VeLivePlayerStatusPlaying = 1,
|
|
275
|
+
|
|
276
|
+
/** {en}
|
|
277
|
+
* @brief An error has occurred to the player.
|
|
278
|
+
*/
|
|
279
|
+
VeLivePlayerStatusError = 4
|
|
280
|
+
}
|
|
281
|
+
export declare class t_VeLivePlayerStatus {
|
|
282
|
+
static ts_to_android(value: VeLivePlayerStatus): $p_a.VeLivePlayerStatus;
|
|
283
|
+
static android_to_ts(value: $p_a.VeLivePlayerStatus): VeLivePlayerStatus;
|
|
284
|
+
static ts_to_ios(value: VeLivePlayerStatus): $p_i.VeLivePlayerStatus;
|
|
285
|
+
static ios_to_ts(value: $p_i.VeLivePlayerStatus): VeLivePlayerStatus;
|
|
286
|
+
}
|
|
287
|
+
export declare class VeLivePlayerLogConfig extends $p_a.VeLivePlayerLogConfig {
|
|
288
|
+
}
|
|
289
|
+
|
|
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;
|
|
298
|
+
|
|
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);
|
|
306
|
+
|
|
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);
|
|
314
|
+
|
|
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);
|
|
320
|
+
|
|
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);
|
|
326
|
+
|
|
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);
|
|
332
|
+
|
|
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[]);
|
|
338
|
+
|
|
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[]);
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
/** {en}
|
|
347
|
+
* @detail keytype
|
|
348
|
+
* @brief The reason why the video resolution has changed.
|
|
349
|
+
*/
|
|
350
|
+
export declare enum VeLivePlayerResolutionSwitchReason {
|
|
351
|
+
|
|
352
|
+
/** {en}
|
|
353
|
+
* @brief The resolution is switched automatically through the adaptive bitrate (ABR) feature.
|
|
354
|
+
*/
|
|
355
|
+
VeLivePlayerResolutionSwitchByAuto = 0,
|
|
356
|
+
|
|
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;
|
|
367
|
+
}
|
|
368
|
+
|
|
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;
|
|
377
|
+
|
|
378
|
+
/** {en}
|
|
379
|
+
* @brief The pull stream address.
|
|
380
|
+
*/
|
|
381
|
+
get url(): string;
|
|
382
|
+
set url(value: string);
|
|
383
|
+
|
|
384
|
+
/** {en}
|
|
385
|
+
* @brief The playback resolution. For details, see {@link #VeLivePlayerResolution VeLivePlayerResolution}.
|
|
386
|
+
*/
|
|
387
|
+
get resolution(): VeLivePlayerResolution;
|
|
388
|
+
set resolution(value: VeLivePlayerResolution);
|
|
389
|
+
|
|
390
|
+
/** {en}
|
|
391
|
+
* @brief The playback bitrate, in Kbps.
|
|
392
|
+
*/
|
|
393
|
+
get bitrate(): number;
|
|
394
|
+
set bitrate(value: number);
|
|
395
|
+
|
|
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);
|
|
401
|
+
|
|
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);
|
|
408
|
+
}
|
|
409
|
+
|
|
410
|
+
/** {en}
|
|
411
|
+
* @detail keytype
|
|
412
|
+
* @brief The fill mode of the player screen.
|
|
413
|
+
*/
|
|
414
|
+
export declare enum VeLivePlayerFillMode {
|
|
415
|
+
|
|
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,
|
|
420
|
+
|
|
421
|
+
/** {en}
|
|
422
|
+
* @brief Stretch the video to fill the screen. The aspect ratio of the video might change.
|
|
423
|
+
*/
|
|
424
|
+
VeLivePlayerFillModeFullFill = 1,
|
|
425
|
+
|
|
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;
|
|
436
|
+
}
|
|
437
|
+
|
|
438
|
+
/** {en}
|
|
439
|
+
* @detail keytype
|
|
440
|
+
* @brief The pixel format of the video frame.
|
|
441
|
+
*/
|
|
442
|
+
export declare enum VeLivePlayerPixelFormat {
|
|
443
|
+
|
|
444
|
+
/** {en}
|
|
445
|
+
* @brief Unknown format.
|
|
446
|
+
*/
|
|
447
|
+
VeLivePlayerPixelFormatUnknown = 0,
|
|
448
|
+
|
|
449
|
+
/** {en}
|
|
450
|
+
* @platform android
|
|
451
|
+
* @brief RGBA8888.
|
|
452
|
+
*/
|
|
453
|
+
VeLivePlayerPixelFormatRGBA32 = 1,
|
|
454
|
+
|
|
455
|
+
/** {en}
|
|
456
|
+
* @platform android
|
|
457
|
+
* @brief Texture.
|
|
458
|
+
*/
|
|
459
|
+
VeLivePlayerPixelFormatTexture = 2,
|
|
460
|
+
|
|
461
|
+
/** {en}
|
|
462
|
+
* @platform ios
|
|
463
|
+
* @brief NV12.
|
|
464
|
+
*/
|
|
465
|
+
VeLivePlayerPixelFormatNV12 = 4,
|
|
466
|
+
|
|
467
|
+
/** {en}
|
|
468
|
+
* @platform ios
|
|
469
|
+
* @brief YUVI420.
|
|
470
|
+
*/
|
|
471
|
+
VeLivePlayerPixelFormatI420 = 5,
|
|
472
|
+
|
|
473
|
+
/** {en}
|
|
474
|
+
* @platform ios
|
|
475
|
+
* @brief BGRA.
|
|
476
|
+
*/
|
|
477
|
+
VeLivePlayerPixelFormatBGRA32 = 6
|
|
478
|
+
}
|
|
479
|
+
export declare class t_VeLivePlayerPixelFormat {
|
|
480
|
+
static ts_to_android(value: VeLivePlayerPixelFormat): $p_a.VeLivePlayerPixelFormat;
|
|
481
|
+
static android_to_ts(value: $p_a.VeLivePlayerPixelFormat): VeLivePlayerPixelFormat;
|
|
482
|
+
static ts_to_ios(value: VeLivePlayerPixelFormat): $p_i.VeLivePlayerPixelFormat;
|
|
483
|
+
static ios_to_ts(value: $p_i.VeLivePlayerPixelFormat): VeLivePlayerPixelFormat;
|
|
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;
|
|
494
|
+
|
|
495
|
+
/** {en}
|
|
496
|
+
* @brief The current pull stream address.
|
|
497
|
+
*/
|
|
498
|
+
get url(): string;
|
|
499
|
+
|
|
500
|
+
/** {en}
|
|
501
|
+
* @brief Whether hardware decoding is used. <br>
|
|
502
|
+
* - true: Hardware decoding is used;
|
|
503
|
+
* - false: Hardware decoding is not used.
|
|
504
|
+
*/
|
|
505
|
+
get isHardwareDecode(): boolean;
|
|
506
|
+
|
|
507
|
+
/** {en}
|
|
508
|
+
* @brief The encoding format of the video.
|
|
509
|
+
*/
|
|
510
|
+
get videoCodec(): string;
|
|
511
|
+
|
|
512
|
+
/** {en}
|
|
513
|
+
* @brief The cumulative duration of stutters that occurred since the beginning of playback, in milliseconds.
|
|
514
|
+
*/
|
|
515
|
+
get stallTimeMs(): number;
|
|
516
|
+
|
|
517
|
+
get bandwidthEstimation(): number;
|
|
518
|
+
|
|
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;
|
|
523
|
+
|
|
524
|
+
/** {en}
|
|
525
|
+
* @brief The width of the video, in pixels.
|
|
526
|
+
*/
|
|
527
|
+
get width(): number;
|
|
528
|
+
|
|
529
|
+
/** {en}
|
|
530
|
+
* @brief The height of the video, in pixels.
|
|
531
|
+
*/
|
|
532
|
+
get height(): number;
|
|
533
|
+
|
|
534
|
+
/** {en}
|
|
535
|
+
* @brief The frame rate of the video, in fps.
|
|
536
|
+
*/
|
|
537
|
+
get fps(): number;
|
|
538
|
+
|
|
539
|
+
/** {en}
|
|
540
|
+
* @brief The downlink bitrate, in Kbps.
|
|
541
|
+
*/
|
|
542
|
+
get bitrate(): number;
|
|
543
|
+
|
|
544
|
+
/** {en}
|
|
545
|
+
* @brief The video buffer, in milliseconds.
|
|
546
|
+
*/
|
|
547
|
+
get videoBufferMs(): number;
|
|
548
|
+
|
|
549
|
+
/** {en}
|
|
550
|
+
* @brief The audio buffer, in milliseconds.
|
|
551
|
+
*/
|
|
552
|
+
get audioBufferMs(): number;
|
|
553
|
+
|
|
554
|
+
/** {en}
|
|
555
|
+
* @brief The video format.
|
|
556
|
+
*/
|
|
557
|
+
get format(): VeLivePlayerFormat;
|
|
558
|
+
|
|
559
|
+
/** {en}
|
|
560
|
+
* @brief The transmission protocol of the live stream.
|
|
561
|
+
*/
|
|
562
|
+
get protocol(): VeLivePlayerProtocol;
|
|
563
|
+
}
|
|
564
|
+
|
|
565
|
+
/** {en}
|
|
566
|
+
* @detail keytype
|
|
567
|
+
* @brief The video frame.
|
|
568
|
+
*/
|
|
569
|
+
export declare class VeLivePlayerVideoFrame {
|
|
570
|
+
protected _instance: any;
|
|
571
|
+
protected __init(...args: any[]): void;
|
|
572
|
+
protected __new_instance(...args: any[]): $p_a.VeLivePlayerVideoFrame | $p_i.VeLivePlayerVideoFrame;
|
|
573
|
+
|
|
574
|
+
/** {en}
|
|
575
|
+
* @brief The encapsulation format. See VeLivePlayerVideoBufferType {@link #VeLivePlayerVideoBufferType} for details.
|
|
576
|
+
*/
|
|
577
|
+
get bufferType(): VeLivePlayerVideoBufferType;
|
|
578
|
+
set bufferType(value: VeLivePlayerVideoBufferType);
|
|
579
|
+
|
|
580
|
+
/** {en}
|
|
581
|
+
* @brief The pixel format. See VeLivePlayerPixelFormat {@link #VeLivePlayerPixelFormat} for details.
|
|
582
|
+
*/
|
|
583
|
+
get pixelFormat(): VeLivePlayerPixelFormat;
|
|
584
|
+
set pixelFormat(value: VeLivePlayerPixelFormat);
|
|
585
|
+
|
|
586
|
+
/** {en}
|
|
587
|
+
* @brief The video width, in pixels.
|
|
588
|
+
*/
|
|
589
|
+
get width(): number;
|
|
590
|
+
set width(value: number);
|
|
591
|
+
|
|
592
|
+
/** {en}
|
|
593
|
+
* @brief The video height, in pixels.
|
|
594
|
+
*/
|
|
595
|
+
get height(): number;
|
|
596
|
+
set height(value: number);
|
|
597
|
+
|
|
598
|
+
/** {en}
|
|
599
|
+
* @brief The timestamp indicating the time when the video frame is rendered, in milliseconds.
|
|
600
|
+
*/
|
|
601
|
+
get pts(): number;
|
|
602
|
+
set pts(value: number);
|
|
603
|
+
|
|
604
|
+
/** {en}
|
|
605
|
+
* @hidden
|
|
606
|
+
* @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.
|
|
608
|
+
*/
|
|
609
|
+
get android_texture(): $p_a.VeLivePlayerVideoTexture;
|
|
610
|
+
set android_texture(value: $p_a.VeLivePlayerVideoTexture);
|
|
611
|
+
|
|
612
|
+
/** {en}
|
|
613
|
+
* @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`.
|
|
615
|
+
*/
|
|
616
|
+
get android_buffer(): $p_a.ByteBuffer;
|
|
617
|
+
set android_buffer(value: $p_a.ByteBuffer);
|
|
618
|
+
|
|
619
|
+
/** {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`.
|
|
621
|
+
*/
|
|
622
|
+
get data(): ArrayBuffer;
|
|
623
|
+
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
|
+
|
|
634
|
+
/** {en}
|
|
635
|
+
* @brief The primary stream.
|
|
636
|
+
*/
|
|
637
|
+
VeLivePlayerStreamTypeMain = 0,
|
|
638
|
+
|
|
639
|
+
/** {en}
|
|
640
|
+
* @brief The backup stream.
|
|
641
|
+
*/
|
|
642
|
+
VeLivePlayerStreamTypeBackup = 1
|
|
643
|
+
}
|
|
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;
|
|
649
|
+
}
|
|
650
|
+
|
|
651
|
+
/** {en}
|
|
652
|
+
* @detail keytype
|
|
653
|
+
* @brief The output log level of the player.
|
|
654
|
+
*/
|
|
655
|
+
export declare enum VeLivePlayerLogLevel {
|
|
656
|
+
|
|
657
|
+
/** {en}
|
|
658
|
+
* @brief Output logs at the VERBOSE, DEBUG, INFO, WARNING, and ERROR levels.
|
|
659
|
+
*/
|
|
660
|
+
VeLivePlayerLogLevelVerbose = 0,
|
|
661
|
+
|
|
662
|
+
/** {en}
|
|
663
|
+
* @brief Output logs at the DEBUG, INFO, WARNING, and ERROR levels.
|
|
664
|
+
*/
|
|
665
|
+
VeLivePlayerLogLevelDebug = 1,
|
|
666
|
+
|
|
667
|
+
/** {en}
|
|
668
|
+
* @brief Output logs at the INFO, WARNING, and ERROR levels.
|
|
669
|
+
*/
|
|
670
|
+
VeLivePlayerLogLevelInfo = 2,
|
|
671
|
+
|
|
672
|
+
/** {en}
|
|
673
|
+
* @brief Output logs at the WARNING and ERROR levels.
|
|
674
|
+
*/
|
|
675
|
+
VeLivePlayerLogLevelWarn = 3,
|
|
676
|
+
|
|
677
|
+
/** {en}
|
|
678
|
+
* @brief Output logs at the ERROR level.
|
|
679
|
+
*/
|
|
680
|
+
VeLivePlayerLogLevelError = 4,
|
|
681
|
+
|
|
682
|
+
/** {en}
|
|
683
|
+
* @brief Disable log printing.
|
|
684
|
+
*/
|
|
685
|
+
VeLivePlayerLogLevelNone = 5
|
|
686
|
+
}
|
|
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
|
+
|
|
694
|
+
/** {en}
|
|
695
|
+
* @detail keytype
|
|
696
|
+
* @brief The audio frame.
|
|
697
|
+
*/
|
|
698
|
+
export declare class VeLivePlayerAudioFrame {
|
|
699
|
+
protected _instance: any;
|
|
700
|
+
protected __init(...args: any[]): void;
|
|
701
|
+
protected __new_instance(...args: any[]): $p_a.VeLivePlayerAudioFrame | $p_i.VeLivePlayerAudioFrame;
|
|
702
|
+
|
|
703
|
+
/** {en}
|
|
704
|
+
* @brief The encapsulation format of the audio data. See VeLivePlayerAudioBufferType {@link #VeLivePlayerAudioBufferType} for details.
|
|
705
|
+
*/
|
|
706
|
+
get bufferType(): VeLivePlayerAudioBufferType;
|
|
707
|
+
set bufferType(value: VeLivePlayerAudioBufferType);
|
|
708
|
+
|
|
709
|
+
/** {en}
|
|
710
|
+
* @brief The audio sample rate, in Hz.
|
|
711
|
+
*/
|
|
712
|
+
get sampleRate(): number;
|
|
713
|
+
set sampleRate(value: number);
|
|
714
|
+
|
|
715
|
+
/** {en}
|
|
716
|
+
* @brief The number of audio channels. <br>
|
|
717
|
+
* - 1: Mono;
|
|
718
|
+
* - 2: Stereo.
|
|
719
|
+
*/
|
|
720
|
+
get channels(): number;
|
|
721
|
+
set channels(value: number);
|
|
722
|
+
|
|
723
|
+
/** {en}
|
|
724
|
+
* @brief The audio bit depth.
|
|
725
|
+
*/
|
|
726
|
+
get bitDepth(): number;
|
|
727
|
+
set bitDepth(value: number);
|
|
728
|
+
|
|
729
|
+
/** {en}
|
|
730
|
+
* @brief The timestamp indicating the time when the audio is rendered, in milliseconds.
|
|
731
|
+
*/
|
|
732
|
+
get pts(): number;
|
|
733
|
+
set pts(value: number);
|
|
734
|
+
|
|
735
|
+
/** {en}
|
|
736
|
+
* @platform android
|
|
737
|
+
* @brief The PCM audio data.
|
|
738
|
+
*/
|
|
739
|
+
get android_buffer(): ArrayBuffer;
|
|
740
|
+
set android_buffer(value: ArrayBuffer);
|
|
741
|
+
|
|
742
|
+
/** {en}
|
|
743
|
+
* @brief The number of audio samples.
|
|
744
|
+
*/
|
|
745
|
+
get samples(): number;
|
|
746
|
+
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
|
+
|
|
779
|
+
/** {en}
|
|
780
|
+
* @platform ios
|
|
781
|
+
* @brief NSData. The audio data is processed and rendered as NSData objects.
|
|
782
|
+
*/
|
|
783
|
+
VeLivePlayerAudioBufferTypeNSData = 5
|
|
784
|
+
}
|
|
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;
|
|
790
|
+
}
|
|
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
|
|
817
|
+
}
|
|
818
|
+
export declare class t_VeLivePlayerRotation {
|
|
819
|
+
static ts_to_android(value: VeLivePlayerRotation): $p_a.VeLivePlayerRotation;
|
|
820
|
+
static android_to_ts(value: $p_a.VeLivePlayerRotation): VeLivePlayerRotation;
|
|
821
|
+
static ts_to_ios(value: VeLivePlayerRotation): $p_i.VeLivePlayerRotation;
|
|
822
|
+
static ios_to_ts(value: $p_i.VeLivePlayerRotation): VeLivePlayerRotation;
|
|
823
|
+
}
|
|
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
|
|
874
|
+
}
|
|
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;
|
|
880
|
+
}
|
|
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
|
|
925
|
+
}
|
|
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;
|
|
931
|
+
}
|