@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,217 @@
|
|
|
1
|
+
import { VeLivePlayer } from './api';
|
|
2
|
+
import { VeLivePlayerError } from './errorcode';
|
|
3
|
+
import { VeLivePlayerResolution, VeLivePlayerResolutionSwitchReason, VeLivePlayerStreamType, VeLivePlayerStatus, VeLivePlayerStatistics, VeLivePlayerVideoFrame, VeLivePlayerAudioFrame } from './keytype';
|
|
4
|
+
import * as $p_a from '../android/index';
|
|
5
|
+
import * as $p_i from '../ios/index';
|
|
6
|
+
|
|
7
|
+
/** {en}
|
|
8
|
+
* @detail callback
|
|
9
|
+
* @brief The live player observer.
|
|
10
|
+
*/
|
|
11
|
+
export interface VeLivePlayerObserver {
|
|
12
|
+
|
|
13
|
+
/** {en}
|
|
14
|
+
* @detail callback
|
|
15
|
+
* @brief Occurs when a player error occurs.
|
|
16
|
+
* @param player The player object that triggers the callback function.
|
|
17
|
+
* @param error The error message. Refer to VeLivePlayerError {@link #VeLivePlayerError} for details.
|
|
18
|
+
* @order 1
|
|
19
|
+
*/
|
|
20
|
+
onError?(player: VeLivePlayer, error: VeLivePlayerError): void;
|
|
21
|
+
|
|
22
|
+
/** {en}
|
|
23
|
+
* @detail callback
|
|
24
|
+
* @brief Occurs when the first video frame is rendered at the beginning of playback or after a retry during playback.
|
|
25
|
+
* @param player The player object that triggers the callback function.
|
|
26
|
+
* @param isFirstFrame Whether the video frame is the first video frame rendered at the beginning of playback. <br>
|
|
27
|
+
* - true: The video frame is the first video frame rendered at the beginning of playback;
|
|
28
|
+
* - false: The video frame is the first video frame rendered after a retry during playback.
|
|
29
|
+
* @order 2
|
|
30
|
+
*/
|
|
31
|
+
onFirstVideoFrameRender?(player: VeLivePlayer, isFirstFrame: boolean): void;
|
|
32
|
+
|
|
33
|
+
/** {en}
|
|
34
|
+
* @detail callback
|
|
35
|
+
* @brief Occurs when the first audio frame is rendered at the beginning of playback or after a retry during playback.
|
|
36
|
+
* @param player The player object that triggers the callback function.
|
|
37
|
+
* @param isFirstFrame Whether the audio frame is the first audio frame rendered at the beginning of playback. <br>
|
|
38
|
+
* - true: The audio frame is the first audio frame rendered at the beginning of playback;
|
|
39
|
+
* - false: The audio frame is the first audio frame rendered after a retry during playback.
|
|
40
|
+
* @order 3
|
|
41
|
+
*/
|
|
42
|
+
onFirstAudioFrameRender?(player: VeLivePlayer, isFirstFrame: boolean): void;
|
|
43
|
+
|
|
44
|
+
/** {en}
|
|
45
|
+
* @detail callback
|
|
46
|
+
* @brief Occurs when a playback stutter starts.
|
|
47
|
+
* @param player The player object that triggers the callback function.
|
|
48
|
+
* @order 4
|
|
49
|
+
*/
|
|
50
|
+
onStallStart?(player: VeLivePlayer): void;
|
|
51
|
+
|
|
52
|
+
/** {en}
|
|
53
|
+
* @detail callback
|
|
54
|
+
* @brief Occurs when a playback stutter stops, that is, when playback resumes after there is enough audio buffer.
|
|
55
|
+
* @param player The player object that triggers the callback function.
|
|
56
|
+
* @order 5
|
|
57
|
+
*/
|
|
58
|
+
onStallEnd?(player: VeLivePlayer): void;
|
|
59
|
+
|
|
60
|
+
/** {en}
|
|
61
|
+
* @detail callback
|
|
62
|
+
* @brief Occurs when video rendering stutters.
|
|
63
|
+
* @param player The player object that triggers the callback function.
|
|
64
|
+
* @param stallTime The stutter duration, in milliseconds.
|
|
65
|
+
* @order 6
|
|
66
|
+
*/
|
|
67
|
+
onVideoRenderStall?(player: VeLivePlayer, stallTime: number): void;
|
|
68
|
+
|
|
69
|
+
/** {en}
|
|
70
|
+
* @detail callback
|
|
71
|
+
* @brief Occurs when audio rendering stutters.
|
|
72
|
+
* @param player The player object that triggers the callback function.
|
|
73
|
+
* @param stallTime The stutter duration, in milliseconds.
|
|
74
|
+
* @order 7
|
|
75
|
+
*/
|
|
76
|
+
onAudioRenderStall?(player: VeLivePlayer, stallTime: number): void;
|
|
77
|
+
|
|
78
|
+
/** {en}
|
|
79
|
+
* @detail callback
|
|
80
|
+
* @brief Occurs when the video resolution changes.
|
|
81
|
+
* @param player The player object that triggers the callback function.
|
|
82
|
+
* @param resolution The updated resolution. See VeLivePlayerResolution {@link #VeLivePlayerResolution} for details.
|
|
83
|
+
* @param error Whether an error occurred during resolution switching. See VeLivePlayerError {@link #VeLivePlayerError} for details.
|
|
84
|
+
* @param reason The reason for resolution switching. See VeLivePlayerResolutionSwitchReason {@link #VeLivePlayerResolutionSwitchReason} for details.
|
|
85
|
+
* @order 8
|
|
86
|
+
*/
|
|
87
|
+
onResolutionSwitch?(player: VeLivePlayer, resolution: VeLivePlayerResolution, error: VeLivePlayerError, reason: VeLivePlayerResolutionSwitchReason): void;
|
|
88
|
+
|
|
89
|
+
/** {en}
|
|
90
|
+
* @detail callback
|
|
91
|
+
* @brief Occurs when the video size changes.
|
|
92
|
+
* @param player The player object that triggers the callback function.
|
|
93
|
+
* @param width The updated width of the video, in pixels.
|
|
94
|
+
* @param height The updated height of the video, in pixels.
|
|
95
|
+
* @order 9
|
|
96
|
+
*/
|
|
97
|
+
onVideoSizeChanged?(player: VeLivePlayer, width: number, height: number): void;
|
|
98
|
+
|
|
99
|
+
/** {en}
|
|
100
|
+
* @detail callback
|
|
101
|
+
* @brief Occurs when the Player SDK receives an SEI message.
|
|
102
|
+
* @param player The player object that triggers the callback function.
|
|
103
|
+
* @param message The SEI message.
|
|
104
|
+
* @order 10
|
|
105
|
+
*/
|
|
106
|
+
onReceiveSeiMessage?(player: VeLivePlayer, message: string): void;
|
|
107
|
+
|
|
108
|
+
/** {en}
|
|
109
|
+
* @detail callback
|
|
110
|
+
* @brief Occurs when the player switches between the primary stream and the backup stream.
|
|
111
|
+
* @param player The player object that triggers the callback function.
|
|
112
|
+
* @param streamType The type of the updated stream. For details, see VeLivePlayerStreamType {@link #VeLivePlayerStreamType}.
|
|
113
|
+
* @param error The reason for the switch. For details, see VeLivePlayerError {@link #VeLivePlayerError}.
|
|
114
|
+
* @order 11
|
|
115
|
+
*/
|
|
116
|
+
onMainBackupSwitch?(player: VeLivePlayer, streamType: VeLivePlayerStreamType, error: VeLivePlayerError): void;
|
|
117
|
+
|
|
118
|
+
/** {en}
|
|
119
|
+
* @detail callback
|
|
120
|
+
* @brief Occurs when the playback status changes.
|
|
121
|
+
* @param player The player object that triggers the callback function.
|
|
122
|
+
* @param status The updated status of the player. See VeLivePlayerStatus {@link #VeLivePlayerStatus} for details.
|
|
123
|
+
* @order 12
|
|
124
|
+
*/
|
|
125
|
+
onPlayerStatusUpdate?(player: VeLivePlayer, status: VeLivePlayerStatus): void;
|
|
126
|
+
|
|
127
|
+
/** {en}
|
|
128
|
+
* @detail callback
|
|
129
|
+
* @brief Occurs periodically to report information such as the current pull stream address, bitrate, and frame rate.
|
|
130
|
+
* @param player The player object that triggers the callback function.
|
|
131
|
+
* @param statistics The playback statistics. For details, see VeLivePlayerStatistics {@link #VeLivePlayerStatistics}.
|
|
132
|
+
* @order 13
|
|
133
|
+
*/
|
|
134
|
+
onStatistics?(player: VeLivePlayer, statistics: VeLivePlayerStatistics): void;
|
|
135
|
+
|
|
136
|
+
/** {en}
|
|
137
|
+
* @detail callback
|
|
138
|
+
* @brief Occurs when a screenshot is taken after {@link #VeLivePlayer#snapshot snapshot} is called.
|
|
139
|
+
* @param player The player object that triggers the callback function.
|
|
140
|
+
* @param bitmap The Bitmap object of the screenshot.
|
|
141
|
+
* @order 14
|
|
142
|
+
*/
|
|
143
|
+
onSnapshotComplete?(player: VeLivePlayer, bitmap: any): void;
|
|
144
|
+
|
|
145
|
+
/** {en}
|
|
146
|
+
* @detail callback
|
|
147
|
+
* @brief Occurs when the player decodes a video frame. Call [enableVideoFrameObserver](player-android-api-reference#VeLivePlayer-enablevideoframeobserver) to enable video frame callback.
|
|
148
|
+
* @notes <br>
|
|
149
|
+
* If you use the texture format for external rendering, we recommend that you render the video in the callback thread.
|
|
150
|
+
* @order 15
|
|
151
|
+
* @param player The player object that triggers the callback function.
|
|
152
|
+
* @param videoFrame The video frame, including the pixel format, encapsulation format, width and height of the video, and other information. See VeLivePlayerVideoFrame {@link #VeLivePlayerVideoFrame} for details.
|
|
153
|
+
*/
|
|
154
|
+
onRenderVideoFrame?(player: VeLivePlayer, videoFrame: VeLivePlayerVideoFrame): void;
|
|
155
|
+
|
|
156
|
+
/** {en}
|
|
157
|
+
* @detail callback
|
|
158
|
+
* @brief Occurs when the player decodes an audio frame. Call {@link #VeLivePlayer#enableAudioFrameObserver enableAudioFrameObserver} to enable audio frame callback.
|
|
159
|
+
* @param player The player object that triggers the callback function.
|
|
160
|
+
* @param audioFrame The audio frame. See VeLivePlayerAudioFrame {@link #VeLivePlayerAudioFrame} for details.
|
|
161
|
+
* @notes <br>
|
|
162
|
+
* The audio data returned by the callback is of type Float32 and in big-endian byte order.
|
|
163
|
+
* @order 16
|
|
164
|
+
*/
|
|
165
|
+
onRenderAudioFrame?(player: VeLivePlayer, audioFrame: VeLivePlayerAudioFrame): void;
|
|
166
|
+
|
|
167
|
+
/** {en}
|
|
168
|
+
* @detail callback
|
|
169
|
+
* @brief Occurs when the SDK fails to enable super resolution after {@link #VeLivePlayer#setEnableSuperResolution setEnableSuperResolution} is called.
|
|
170
|
+
* @order 17
|
|
171
|
+
* @param player The player object that triggers the callback function.
|
|
172
|
+
* @param error The reason of the failure. See [VeLivePlayerErrorCode](player-android-api-errorcode#VeLivePlayerError-VeLivePlayerErrorCode) for details.
|
|
173
|
+
*/
|
|
174
|
+
onStreamFailedOpenSuperResolution?(player: VeLivePlayer, error: VeLivePlayerError): void;
|
|
175
|
+
}
|
|
176
|
+
export declare class android_VeLivePlayerObserver extends $p_a.VeLivePlayerObserver {
|
|
177
|
+
protected _instance: VeLivePlayerObserver;
|
|
178
|
+
constructor(_instance: VeLivePlayerObserver);
|
|
179
|
+
onError(arg_0: $p_a.VeLivePlayer, arg_1: $p_a.VeLivePlayerError): void;
|
|
180
|
+
onFirstVideoFrameRender(arg_0: $p_a.VeLivePlayer, arg_1: boolean): void;
|
|
181
|
+
onFirstAudioFrameRender(arg_0: $p_a.VeLivePlayer, arg_1: boolean): void;
|
|
182
|
+
onStallStart(arg_0: $p_a.VeLivePlayer): void;
|
|
183
|
+
onStallEnd(arg_0: $p_a.VeLivePlayer): void;
|
|
184
|
+
onVideoRenderStall(arg_0: $p_a.VeLivePlayer, arg_1: $p_a.long): void;
|
|
185
|
+
onAudioRenderStall(arg_0: $p_a.VeLivePlayer, arg_1: $p_a.long): void;
|
|
186
|
+
onResolutionSwitch(arg_0: $p_a.VeLivePlayer, arg_1: $p_a.VeLivePlayerResolution, arg_2: $p_a.VeLivePlayerError, arg_3: $p_a.VeLivePlayerResolutionSwitchReason): void;
|
|
187
|
+
onVideoSizeChanged(arg_0: $p_a.VeLivePlayer, arg_1: $p_a.int, arg_2: $p_a.int): void;
|
|
188
|
+
onReceiveSeiMessage(arg_0: $p_a.VeLivePlayer, arg_1: string): void;
|
|
189
|
+
onMainBackupSwitch(arg_0: $p_a.VeLivePlayer, arg_1: $p_a.VeLivePlayerStreamType, arg_2: $p_a.VeLivePlayerError): void;
|
|
190
|
+
onPlayerStatusUpdate(arg_0: $p_a.VeLivePlayer, arg_1: $p_a.VeLivePlayerStatus): void;
|
|
191
|
+
onStatistics(arg_0: $p_a.VeLivePlayer, arg_1: $p_a.VeLivePlayerStatistics): void;
|
|
192
|
+
onSnapshotComplete(arg_0: $p_a.VeLivePlayer, arg_1: $p_a.Bitmap): void;
|
|
193
|
+
onRenderVideoFrame(arg_0: $p_a.VeLivePlayer, arg_1: $p_a.VeLivePlayerVideoFrame): void;
|
|
194
|
+
onRenderAudioFrame(arg_0: $p_a.VeLivePlayer, arg_1: $p_a.VeLivePlayerAudioFrame): void;
|
|
195
|
+
onStreamFailedOpenSuperResolution(arg_0: $p_a.VeLivePlayer, arg_1: $p_a.VeLivePlayerError): void;
|
|
196
|
+
}
|
|
197
|
+
export declare class ios_VeLivePlayerObserver extends $p_i.VeLivePlayerObserver {
|
|
198
|
+
protected _instance: VeLivePlayerObserver;
|
|
199
|
+
constructor(_instance: VeLivePlayerObserver);
|
|
200
|
+
onError(arg_0: $p_i.TVLManager, arg_1: $p_i.VeLivePlayerError): void;
|
|
201
|
+
onFirstVideoFrameRender(arg_0: $p_i.TVLManager, arg_1: $p_i.BOOL): void;
|
|
202
|
+
onFirstAudioFrameRender(arg_0: $p_i.TVLManager, arg_1: $p_i.BOOL): void;
|
|
203
|
+
onStallStart(arg_0: $p_i.TVLManager): void;
|
|
204
|
+
onStallEnd(arg_0: $p_i.TVLManager): void;
|
|
205
|
+
onVideoRenderStall(arg_0: $p_i.TVLManager, arg_1: $p_i.int64_t): void;
|
|
206
|
+
onAudioRenderStall(arg_0: $p_i.TVLManager, arg_1: $p_i.int64_t): void;
|
|
207
|
+
onResolutionSwitch(arg_0: $p_i.TVLManager, arg_1: $p_i.VeLivePlayerResolution, arg_2: $p_i.VeLivePlayerError, arg_3: $p_i.VeLivePlayerResolutionSwitchReason): void;
|
|
208
|
+
onVideoSizeChanged(arg_0: $p_i.TVLManager, arg_1: $p_i.int, arg_2: $p_i.int): void;
|
|
209
|
+
onReceiveSeiMessage(arg_0: $p_i.TVLManager, arg_1: $p_i.NSString): void;
|
|
210
|
+
onMainBackupSwitch(arg_0: $p_i.TVLManager, arg_1: $p_i.VeLivePlayerStreamType, arg_2: $p_i.VeLivePlayerError): void;
|
|
211
|
+
onPlayerStatusUpdate(arg_0: $p_i.TVLManager, arg_1: $p_i.VeLivePlayerStatus): void;
|
|
212
|
+
onStatistics(arg_0: $p_i.TVLManager, arg_1: $p_i.VeLivePlayerStatistics): void;
|
|
213
|
+
onSnapshotComplete(arg_0: $p_i.TVLManager, arg_1: $p_i.UIImage): void;
|
|
214
|
+
onRenderVideoFrame(arg_0: $p_i.TVLManager, arg_1: $p_i.VeLivePlayerVideoFrame): void;
|
|
215
|
+
onRenderAudioFrame(arg_0: $p_i.TVLManager, arg_1: $p_i.VeLivePlayerAudioFrame): void;
|
|
216
|
+
onStreamFailedOpenSuperResolution(arg_0: $p_i.TVLManager, arg_1: $p_i.VeLivePlayerError): void;
|
|
217
|
+
}
|
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
import * as $p_a from '../android/index';
|
|
2
|
+
import * as $p_i from '../ios/index';
|
|
3
|
+
|
|
4
|
+
/** {en}
|
|
5
|
+
* @detail errorcode
|
|
6
|
+
* @brief The playback error.
|
|
7
|
+
*/
|
|
8
|
+
export declare class VeLivePlayerError {
|
|
9
|
+
protected _instance: any;
|
|
10
|
+
protected __init(...args: any[]): void;
|
|
11
|
+
protected __new_instance(...args: any[]): $p_a.VeLivePlayerError | $p_i.VeLivePlayerError;
|
|
12
|
+
|
|
13
|
+
/** {en}
|
|
14
|
+
* @brief The error code.
|
|
15
|
+
*/
|
|
16
|
+
get errorCode(): number;
|
|
17
|
+
|
|
18
|
+
/** {en}
|
|
19
|
+
* @brief The error message.
|
|
20
|
+
*/
|
|
21
|
+
get errorMsg(): string;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
/** {en}
|
|
25
|
+
* @detail errorcode
|
|
26
|
+
* @brief The playback error code.
|
|
27
|
+
*/
|
|
28
|
+
export declare enum VeLivePlayerErrorCode {
|
|
29
|
+
|
|
30
|
+
/** {en}
|
|
31
|
+
* @brief No error.
|
|
32
|
+
*/
|
|
33
|
+
VeLivePlayerNoError = 0,
|
|
34
|
+
|
|
35
|
+
/** {en}
|
|
36
|
+
* @brief The SDK license is invalid. This error may occur due to incorrect integration of the license or if the license has expired. Review how the license was integrated and ensure that it is still valid.
|
|
37
|
+
*/
|
|
38
|
+
VeLivePlayerInvalidLicense = -1,
|
|
39
|
+
|
|
40
|
+
/** {en}
|
|
41
|
+
* @brief Invalid parameters. Check the input parameter and call the method again.
|
|
42
|
+
*/
|
|
43
|
+
VeLivePlayerInvalidParameter = -2,
|
|
44
|
+
|
|
45
|
+
/** {en}
|
|
46
|
+
* @brief The method call has been rejected. This error occurs when the method is called at an incorrect time.
|
|
47
|
+
*/
|
|
48
|
+
VeLivePlayerErrorRefused = -3,
|
|
49
|
+
|
|
50
|
+
/** {en}
|
|
51
|
+
* @brief Failed to load the library file. This error may occur due to incorrect integration of the SDK.
|
|
52
|
+
*/
|
|
53
|
+
VeLivePlayerErrorLibraryLoadFailed = -4,
|
|
54
|
+
|
|
55
|
+
/** {en}
|
|
56
|
+
* @brief The pull stream address does not exist or is invalid. This error may occur if the pull stream address is empty, or if the format or length of the address is invalid.
|
|
57
|
+
*/
|
|
58
|
+
VeLivePlayerErrorPlayUrl = -100,
|
|
59
|
+
|
|
60
|
+
/** {en}
|
|
61
|
+
* @brief Unable to get the stream data. This error may occur if the live stream does not exist, is interrupted, or has ended. Please check the status of the live stream.
|
|
62
|
+
*/
|
|
63
|
+
VeLivePlayerErrorNoStreamData = -101,
|
|
64
|
+
|
|
65
|
+
/** {en}
|
|
66
|
+
* @brief An internal retry to play the live stream, which might happen due to an internal player error.
|
|
67
|
+
*/
|
|
68
|
+
VeLivePlayerErrorInternalRetryStart = -102,
|
|
69
|
+
|
|
70
|
+
/** {en}
|
|
71
|
+
* @brief An internal retry failed and the maximum number of internal retries is reached. The player has stopped retrying. You may attempt a manual retry.
|
|
72
|
+
*/
|
|
73
|
+
VeLivePlayerErrorInternalRetryFailed = -103,
|
|
74
|
+
|
|
75
|
+
/** {en}
|
|
76
|
+
* @brief DNS parsing failed. This error may occur due to an error in the pull stream address or the client's network conditions. If the error persists after you verify the pull stream address and network conditions, contact BytePlus technical support for assistance.
|
|
77
|
+
*/
|
|
78
|
+
VeLivePlayerErrorDnsParseFailed = -200,
|
|
79
|
+
|
|
80
|
+
/** {en}
|
|
81
|
+
* @brief The network request failed. Check the network conditions. If the error persists, contact BytePlus technical support for assistance.
|
|
82
|
+
*/
|
|
83
|
+
VeLivePlayerErrorNetworkRequestFailed = -201,
|
|
84
|
+
|
|
85
|
+
/** {en}
|
|
86
|
+
* @brief Video decapsulation failed. This error may occur if the live stream uses an unsupported format or protocol, or if there is an audio or video error. If the error persists, contact BytePlus technical support for assistance.
|
|
87
|
+
*/
|
|
88
|
+
VeLivePlayerErrorDemuxFailed = -300,
|
|
89
|
+
|
|
90
|
+
/** {en}
|
|
91
|
+
* @brief Decoding failed. This error may occur if the live stream uses an unsupported audio or video format. If the error persists, contact BytePlus technical support for assistance.
|
|
92
|
+
*/
|
|
93
|
+
VeLivePlayerErrorDecodeFailed = -301,
|
|
94
|
+
|
|
95
|
+
/** {en}
|
|
96
|
+
* @brief Rendering failed. This error may occur if there is an issue with the audio or video output devices. If the error persists, contact BytePlus technical support for assistance.
|
|
97
|
+
*/
|
|
98
|
+
VeLivePlayerErrorAVOutputFailed = -302,
|
|
99
|
+
|
|
100
|
+
/** {en}
|
|
101
|
+
* @brief The device model does not support super resolution. Contact BytePlus technical support for any assistance you may need.
|
|
102
|
+
*/
|
|
103
|
+
VeLivePlayerErrorSRDeviceUnsupported = -303,
|
|
104
|
+
|
|
105
|
+
/** {en}
|
|
106
|
+
* @brief The current resolution exceeds the upper limit allowed for super resolution. Contact BytePlus technical support for any assistance you may need.
|
|
107
|
+
*/
|
|
108
|
+
VeLivePlayerErrorSRResolutionUnsupported = -304,
|
|
109
|
+
|
|
110
|
+
/** {en}
|
|
111
|
+
* @brief The current frame rate exceeds the upper limit allowed for super resolution. Contact BytePlus technical support for any assistance you may need.
|
|
112
|
+
*/
|
|
113
|
+
VeLivePlayerErrorSRFpsUnsupported = -305,
|
|
114
|
+
|
|
115
|
+
/** {en}
|
|
116
|
+
* @brief Fails to initialize super resolution. Contact BytePlus technical support if the error persists.
|
|
117
|
+
*/
|
|
118
|
+
VeLivePlayerErrorSRInitFail = -306,
|
|
119
|
+
|
|
120
|
+
/** {en}
|
|
121
|
+
* @brief Fails to apply super resolution to the video. Contact BytePlus technical support if the error persists.
|
|
122
|
+
*/
|
|
123
|
+
VeLivePlayerErrorSRExecuteFail = -307,
|
|
124
|
+
|
|
125
|
+
/** {en}
|
|
126
|
+
* @brief The current SDK license does not provide support for the H.265 feature.
|
|
127
|
+
*/
|
|
128
|
+
VeLivePlayerLicenseUnsupportedH265 = -308,
|
|
129
|
+
|
|
130
|
+
/** {en}
|
|
131
|
+
* @brief DRM authentication fails
|
|
132
|
+
*/
|
|
133
|
+
VeLivePlayerDRMFetchCKCFailed = -400,
|
|
134
|
+
|
|
135
|
+
/** {en}
|
|
136
|
+
* @brief Fails to generate Server Playback Context (SPC)
|
|
137
|
+
*/
|
|
138
|
+
VeLivePlayerDRMFetchSPCFailed = -401,
|
|
139
|
+
|
|
140
|
+
/** {en}
|
|
141
|
+
* @brief Internal error. Please contact BytePlus technical support for assistance.
|
|
142
|
+
*/
|
|
143
|
+
VeLivePlayerErrorInternal = -999
|
|
144
|
+
}
|
|
145
|
+
export declare class t_VeLivePlayerErrorCode {
|
|
146
|
+
static ts_to_android(value: VeLivePlayerErrorCode): $p_a.VeLivePlayerErrorCode;
|
|
147
|
+
static android_to_ts(value: $p_a.VeLivePlayerErrorCode): VeLivePlayerErrorCode;
|
|
148
|
+
static ts_to_ios(value: VeLivePlayerErrorCode): $p_i.VeLivePlayerErrorCode;
|
|
149
|
+
static ios_to_ts(value: $p_i.VeLivePlayerErrorCode): VeLivePlayerErrorCode;
|
|
150
|
+
}
|