@byteplus/react-native-live-pull 1.3.2-rc.0 → 1.4.0-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/src/main/java/com/volcengine/velive/rn/pull/EnvHelper.java +15 -0
- package/android/src/main/java/com/volcengine/velive/rn/pull/LoggerHelper.java +40 -0
- package/ios/VeLivePlayerHelper.h +14 -0
- package/ios/VeLivePlayerHelper.m +58 -0
- package/ios/VeLivePlayerLoggerHelper.h +14 -0
- package/ios/VeLivePlayerLoggerHelper.m +42 -0
- package/ios/VeLivePlayerMultiObserver.h +0 -1
- package/lib/commonjs/index.js +14620 -0
- package/lib/module/index.js +14608 -0
- package/lib/typescript/codegen/android/api.d.ts +318 -0
- package/lib/typescript/codegen/android/callback.d.ts +206 -0
- package/lib/typescript/codegen/android/errorcode.d.ts +174 -0
- package/lib/typescript/codegen/android/external.d.ts +1 -0
- package/lib/typescript/codegen/android/index.d.ts +6 -0
- package/lib/typescript/codegen/android/keytype.d.ts +749 -0
- package/lib/typescript/codegen/android/types.d.ts +31 -0
- package/lib/typescript/codegen/ios/api.d.ts +295 -0
- package/lib/typescript/codegen/ios/callback.d.ts +176 -0
- package/lib/typescript/codegen/ios/errorcode.d.ts +160 -0
- package/lib/typescript/codegen/ios/external.d.ts +1 -0
- package/lib/typescript/codegen/ios/index.d.ts +6 -0
- package/lib/typescript/codegen/ios/keytype.d.ts +695 -0
- package/lib/typescript/codegen/ios/types.d.ts +46 -0
- package/lib/typescript/codegen/pack/api.d.ts +367 -0
- package/lib/typescript/codegen/pack/callback.d.ts +255 -0
- package/lib/typescript/codegen/pack/errorcode.d.ts +187 -0
- package/lib/typescript/codegen/pack/external.d.ts +1 -0
- package/lib/typescript/codegen/pack/index.d.ts +6 -0
- package/lib/typescript/codegen/pack/keytype.d.ts +909 -0
- package/lib/typescript/codegen/pack/types.d.ts +68 -0
- package/lib/typescript/component.d.ts +15 -0
- package/lib/typescript/core/api.d.ts +114 -0
- package/lib/typescript/core/appState.d.ts +3 -0
- package/lib/typescript/core/callback.d.ts +53 -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 +33 -0
- package/lib/typescript/core/player.d.ts +16 -0
- package/lib/typescript/index.d.ts +3 -0
- package/lib/typescript/platforms/android/extends.d.ts +42 -0
- package/lib/typescript/platforms/android/pictureInpicture.d.ts +26 -0
- package/lib/typescript/platforms/ios/extends.d.ts +46 -0
- package/lib/typescript/platforms/ios/pictureInpicture.d.ts +32 -0
- package/lib/typescript/runtime/index.d.ts +1 -0
- package/package.json +3 -3
|
@@ -0,0 +1,187 @@
|
|
|
1
|
+
import * as $p_a from '../android/index';
|
|
2
|
+
import * as $p_i from '../ios/index';
|
|
3
|
+
|
|
4
|
+
export declare enum VeLivePlayerErrorCode {
|
|
5
|
+
|
|
6
|
+
/** {en}
|
|
7
|
+
* @brief No error.
|
|
8
|
+
*
|
|
9
|
+
*/
|
|
10
|
+
VeLivePlayerNoError = 0,
|
|
11
|
+
|
|
12
|
+
/** {en}
|
|
13
|
+
* @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.
|
|
14
|
+
*
|
|
15
|
+
*/
|
|
16
|
+
VeLivePlayerInvalidLicense = -1,
|
|
17
|
+
|
|
18
|
+
/** {en}
|
|
19
|
+
* @brief Invalid parameters. Check the input parameter and call the method again.
|
|
20
|
+
*
|
|
21
|
+
*/
|
|
22
|
+
VeLivePlayerInvalidParameter = -2,
|
|
23
|
+
|
|
24
|
+
/** {en}
|
|
25
|
+
* @brief The method call has been rejected. This error occurs when the method is called at an incorrect time.
|
|
26
|
+
*
|
|
27
|
+
*/
|
|
28
|
+
VeLivePlayerErrorRefused = -3,
|
|
29
|
+
|
|
30
|
+
/** {en}
|
|
31
|
+
* @brief Failed to load the library file. This error may occur due to incorrect integration of the SDK.
|
|
32
|
+
*
|
|
33
|
+
*/
|
|
34
|
+
VeLivePlayerErrorLibraryLoadFailed = -4,
|
|
35
|
+
|
|
36
|
+
/** {en}
|
|
37
|
+
* @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.
|
|
38
|
+
*
|
|
39
|
+
*/
|
|
40
|
+
VeLivePlayerErrorPlayUrl = -100,
|
|
41
|
+
|
|
42
|
+
/** {en}
|
|
43
|
+
* @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.
|
|
44
|
+
*
|
|
45
|
+
*/
|
|
46
|
+
VeLivePlayerErrorNoStreamData = -101,
|
|
47
|
+
|
|
48
|
+
/** {en}
|
|
49
|
+
* @brief An internal retry to play the live stream, which might happen due to an internal player error.
|
|
50
|
+
*
|
|
51
|
+
*/
|
|
52
|
+
VeLivePlayerErrorInternalRetryStart = -102,
|
|
53
|
+
|
|
54
|
+
/** {en}
|
|
55
|
+
* @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.
|
|
56
|
+
*
|
|
57
|
+
*/
|
|
58
|
+
VeLivePlayerErrorInternalRetryFailed = -103,
|
|
59
|
+
|
|
60
|
+
/** {en}
|
|
61
|
+
* @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, [create a ticket](https://console.byteplus.com/workorder/create?step=2&SubProductID=P00000980) to contact BytePlus technical support for assistance.
|
|
62
|
+
*
|
|
63
|
+
*/
|
|
64
|
+
VeLivePlayerErrorDnsParseFailed = -200,
|
|
65
|
+
|
|
66
|
+
/** {en}
|
|
67
|
+
* @brief The network request failed. Check the network conditions. If the error persists, [create a ticket](https://console.byteplus.com/workorder/create?step=2&SubProductID=P00000980) to contact BytePlus technical support for assistance.
|
|
68
|
+
*
|
|
69
|
+
*/
|
|
70
|
+
VeLivePlayerErrorNetworkRequestFailed = -201,
|
|
71
|
+
|
|
72
|
+
/** {en}
|
|
73
|
+
* @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, [create a ticket](https://console.byteplus.com/workorder/create?step=2&SubProductID=P00000980) to contact BytePlus technical support for assistance.
|
|
74
|
+
*
|
|
75
|
+
*/
|
|
76
|
+
VeLivePlayerErrorDemuxFailed = -300,
|
|
77
|
+
|
|
78
|
+
/** {en}
|
|
79
|
+
* @brief Decoding failed. This error may occur if the live stream uses an unsupported audio or video format. If the error persists, [create a ticket](https://console.byteplus.com/workorder/create?step=2&SubProductID=P00000980) to contact BytePlus technical support for assistance.
|
|
80
|
+
*
|
|
81
|
+
*/
|
|
82
|
+
VeLivePlayerErrorDecodeFailed = -301,
|
|
83
|
+
|
|
84
|
+
/** {en}
|
|
85
|
+
* @brief Rendering failed. This error may occur if there is an issue with the audio or video output devices. If the error persists, [create a ticket](https://console.byteplus.com/workorder/create?step=2&SubProductID=P00000980) to contact BytePlus technical support for assistance.
|
|
86
|
+
*
|
|
87
|
+
*/
|
|
88
|
+
VeLivePlayerErrorAVOutputFailed = -302,
|
|
89
|
+
|
|
90
|
+
/** {en}
|
|
91
|
+
* @brief The device model does not support super resolution. [Create a ticket](https://console.byteplus.com/workorder/create?step=2&SubProductID=P00000980) to contact BytePlus technical support for any assistance you may need.
|
|
92
|
+
*
|
|
93
|
+
*/
|
|
94
|
+
VeLivePlayerErrorSRDeviceUnsupported = -303,
|
|
95
|
+
|
|
96
|
+
/** {en}
|
|
97
|
+
* @brief The current resolution exceeds the upper limit allowed for super resolution. [Create a ticket](https://console.byteplus.com/workorder/create?step=2&SubProductID=P00000980) to contact BytePlus technical support for any assistance you may need.
|
|
98
|
+
*
|
|
99
|
+
*/
|
|
100
|
+
VeLivePlayerErrorSRResolutionUnsupported = -304,
|
|
101
|
+
|
|
102
|
+
/** {en}
|
|
103
|
+
* @brief The current frame rate exceeds the upper limit allowed for super resolution. [Create a ticket](https://console.byteplus.com/workorder/create?step=2&SubProductID=P00000980) to contact BytePlus technical support for any assistance you may need.
|
|
104
|
+
*
|
|
105
|
+
*/
|
|
106
|
+
VeLivePlayerErrorSRFpsUnsupported = -305,
|
|
107
|
+
|
|
108
|
+
/** {en}
|
|
109
|
+
* @brief Fails to initialize super resolution. [Create a ticket](https://console.byteplus.com/workorder/create?step=2&SubProductID=P00000980) to contact BytePlus technical support if the error persists.
|
|
110
|
+
*
|
|
111
|
+
*/
|
|
112
|
+
VeLivePlayerErrorSRInitFail = -306,
|
|
113
|
+
|
|
114
|
+
/** {en}
|
|
115
|
+
* @brief Fails to apply super resolution to the video. [Create a ticket](https://console.byteplus.com/workorder/create?step=2&SubProductID=P00000980) to contact BytePlus technical support if the error persists.
|
|
116
|
+
*
|
|
117
|
+
*/
|
|
118
|
+
VeLivePlayerErrorSRExecuteFail = -307,
|
|
119
|
+
|
|
120
|
+
/** {en}
|
|
121
|
+
* @brief The current SDK license does not provide support for the H.265 feature.
|
|
122
|
+
*
|
|
123
|
+
*/
|
|
124
|
+
VeLivePlayerLicenseUnsupportedH265 = -308,
|
|
125
|
+
|
|
126
|
+
/** {en}
|
|
127
|
+
* @platform android
|
|
128
|
+
* @brief The device model does not support sharpen. [Create a ticket](https://console.byteplus.com/workorder/create?step=2&SubProductID=P00000980) to contact BytePlus technical support for any assistance you may need.
|
|
129
|
+
*
|
|
130
|
+
*/
|
|
131
|
+
VeLivePlayerErrorSharpenDeviceUnsupported = -309,
|
|
132
|
+
|
|
133
|
+
/** {en}
|
|
134
|
+
* @hidden (Android)
|
|
135
|
+
*
|
|
136
|
+
*/
|
|
137
|
+
VeLivePlayerErrorNotSupportResolutionSwitch = -310,
|
|
138
|
+
|
|
139
|
+
/** {en}
|
|
140
|
+
* @platform ios
|
|
141
|
+
* @brief DRM authentication fails
|
|
142
|
+
*
|
|
143
|
+
*/
|
|
144
|
+
VeLivePlayerDRMFetchCKCFailed = -400,
|
|
145
|
+
|
|
146
|
+
/** {en}
|
|
147
|
+
* @platform ios
|
|
148
|
+
* @brief Fails to generate Server Playback Context (SPC)
|
|
149
|
+
*
|
|
150
|
+
*/
|
|
151
|
+
VeLivePlayerDRMFetchSPCFailed = -401,
|
|
152
|
+
|
|
153
|
+
/** {en}
|
|
154
|
+
* @brief Internal error. Please [create a ticket](https://console.byteplus.com/workorder/create?step=2&SubProductID=P00000980) to contact BytePlus technical support for assistance.
|
|
155
|
+
*
|
|
156
|
+
*/
|
|
157
|
+
VeLivePlayerErrorInternal = -999
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
export declare class VeLivePlayerError {
|
|
161
|
+
protected _instance: any;
|
|
162
|
+
|
|
163
|
+
/** {en}
|
|
164
|
+
* @brief The error code.
|
|
165
|
+
*
|
|
166
|
+
*/
|
|
167
|
+
get errorCode(): number;
|
|
168
|
+
|
|
169
|
+
/** {en}
|
|
170
|
+
* @brief The error message.
|
|
171
|
+
*
|
|
172
|
+
*/
|
|
173
|
+
get errorMsg(): string;
|
|
174
|
+
|
|
175
|
+
/** {en}
|
|
176
|
+
* @platform android
|
|
177
|
+
* @brief The sub error code.
|
|
178
|
+
*
|
|
179
|
+
*/
|
|
180
|
+
get mSubCode(): number;
|
|
181
|
+
}
|
|
182
|
+
export declare class t_VeLivePlayerErrorCode {
|
|
183
|
+
static code_to_android(value: VeLivePlayerErrorCode): $p_a.VeLivePlayerErrorCode;
|
|
184
|
+
static android_to_code(value: $p_a.VeLivePlayerErrorCode): VeLivePlayerErrorCode;
|
|
185
|
+
static code_to_ios(value: VeLivePlayerErrorCode): $p_i.VeLivePlayerErrorCode;
|
|
186
|
+
static ios_to_code(value: $p_i.VeLivePlayerErrorCode): VeLivePlayerErrorCode;
|
|
187
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ApplicationContext } from '../../platforms/android/extends';
|