@byteplus/react-native-live-pull 1.0.2 → 1.0.3-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 +2 -2
- package/android/src/main/java/com/volcengine/velive/rn/pull/VolcLiveModule.java +1 -1
- package/android/src/main/java/com/volcengine/velive/rn/pull/VolcViewManager.java +1 -1
- package/ios/VeLivePullView.m +1 -1
- package/ios/VeLivePullViewManager.m +1 -1
- package/lib/commonjs/index.js +12227 -8161
- package/lib/module/index.js +12228 -8160
- package/lib/typescript/codegen/android/api.d.ts +253 -4
- package/lib/typescript/codegen/android/errorcode.d.ts +2 -2
- package/lib/typescript/codegen/android/external.d.ts +1 -0
- package/lib/typescript/codegen/android/index.d.ts +1 -0
- package/lib/typescript/codegen/android/keytype.d.ts +2 -4
- package/lib/typescript/codegen/android/types.d.ts +7 -6
- package/lib/typescript/codegen/ios/api.d.ts +4 -8
- package/lib/typescript/codegen/ios/callback.d.ts +17 -21
- package/lib/typescript/codegen/ios/external.d.ts +1 -0
- package/lib/typescript/codegen/ios/index.d.ts +1 -0
- package/lib/typescript/codegen/ios/keytype.d.ts +0 -30
- package/lib/typescript/codegen/ios/types.d.ts +16 -5
- package/lib/typescript/codegen/pack/api.d.ts +73 -96
- package/lib/typescript/codegen/pack/callback.d.ts +59 -45
- package/lib/typescript/codegen/pack/errorcode.d.ts +56 -49
- package/lib/typescript/codegen/pack/external.d.ts +1 -0
- package/lib/typescript/codegen/pack/index.d.ts +2 -1
- package/lib/typescript/codegen/pack/keytype.d.ts +346 -630
- package/lib/typescript/codegen/pack/types.d.ts +68 -1
- package/lib/typescript/component.d.ts +9 -2
- package/lib/typescript/core/keytype.d.ts +1 -1
- package/lib/typescript/platforms/ios/extends.d.ts +2 -0
- package/package.json +1 -1
- package/react-native-velive-pull.podspec +3 -3
|
@@ -1,146 +1,153 @@
|
|
|
1
1
|
import * as $p_a from '../android/index';
|
|
2
2
|
import * as $p_i from '../ios/index';
|
|
3
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
4
|
export declare enum VeLivePlayerErrorCode {
|
|
29
5
|
|
|
30
6
|
/** {en}
|
|
31
7
|
* @brief No error.
|
|
8
|
+
*
|
|
32
9
|
*/
|
|
33
10
|
VeLivePlayerNoError = 0,
|
|
34
11
|
|
|
35
12
|
/** {en}
|
|
36
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
|
+
*
|
|
37
15
|
*/
|
|
38
|
-
VeLivePlayerInvalidLicense =
|
|
16
|
+
VeLivePlayerInvalidLicense = 1,
|
|
39
17
|
|
|
40
18
|
/** {en}
|
|
41
19
|
* @brief Invalid parameters. Check the input parameter and call the method again.
|
|
20
|
+
*
|
|
42
21
|
*/
|
|
43
|
-
VeLivePlayerInvalidParameter =
|
|
22
|
+
VeLivePlayerInvalidParameter = 2,
|
|
44
23
|
|
|
45
24
|
/** {en}
|
|
46
25
|
* @brief The method call has been rejected. This error occurs when the method is called at an incorrect time.
|
|
26
|
+
*
|
|
47
27
|
*/
|
|
48
|
-
VeLivePlayerErrorRefused =
|
|
28
|
+
VeLivePlayerErrorRefused = 3,
|
|
49
29
|
|
|
50
30
|
/** {en}
|
|
51
31
|
* @brief Failed to load the library file. This error may occur due to incorrect integration of the SDK.
|
|
32
|
+
*
|
|
52
33
|
*/
|
|
53
|
-
VeLivePlayerErrorLibraryLoadFailed =
|
|
34
|
+
VeLivePlayerErrorLibraryLoadFailed = 4,
|
|
54
35
|
|
|
55
36
|
/** {en}
|
|
56
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
|
+
*
|
|
57
39
|
*/
|
|
58
|
-
VeLivePlayerErrorPlayUrl =
|
|
40
|
+
VeLivePlayerErrorPlayUrl = 5,
|
|
59
41
|
|
|
60
42
|
/** {en}
|
|
61
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
|
+
*
|
|
62
45
|
*/
|
|
63
|
-
VeLivePlayerErrorNoStreamData =
|
|
46
|
+
VeLivePlayerErrorNoStreamData = 6,
|
|
64
47
|
|
|
65
48
|
/** {en}
|
|
66
49
|
* @brief An internal retry to play the live stream, which might happen due to an internal player error.
|
|
50
|
+
*
|
|
67
51
|
*/
|
|
68
|
-
VeLivePlayerErrorInternalRetryStart =
|
|
52
|
+
VeLivePlayerErrorInternalRetryStart = 7,
|
|
69
53
|
|
|
70
54
|
/** {en}
|
|
71
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
|
+
*
|
|
72
57
|
*/
|
|
73
|
-
VeLivePlayerErrorInternalRetryFailed =
|
|
58
|
+
VeLivePlayerErrorInternalRetryFailed = 8,
|
|
74
59
|
|
|
75
60
|
/** {en}
|
|
76
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, contact BytePlus technical support for assistance.
|
|
62
|
+
*
|
|
77
63
|
*/
|
|
78
|
-
VeLivePlayerErrorDnsParseFailed =
|
|
64
|
+
VeLivePlayerErrorDnsParseFailed = 9,
|
|
79
65
|
|
|
80
66
|
/** {en}
|
|
81
67
|
* @brief The network request failed. Check the network conditions. If the error persists, contact BytePlus technical support for assistance.
|
|
68
|
+
*
|
|
82
69
|
*/
|
|
83
|
-
VeLivePlayerErrorNetworkRequestFailed =
|
|
70
|
+
VeLivePlayerErrorNetworkRequestFailed = 10,
|
|
84
71
|
|
|
85
72
|
/** {en}
|
|
86
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, contact BytePlus technical support for assistance.
|
|
74
|
+
*
|
|
87
75
|
*/
|
|
88
|
-
VeLivePlayerErrorDemuxFailed =
|
|
76
|
+
VeLivePlayerErrorDemuxFailed = 11,
|
|
89
77
|
|
|
90
78
|
/** {en}
|
|
91
79
|
* @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.
|
|
80
|
+
*
|
|
92
81
|
*/
|
|
93
|
-
VeLivePlayerErrorDecodeFailed =
|
|
82
|
+
VeLivePlayerErrorDecodeFailed = 12,
|
|
94
83
|
|
|
95
84
|
/** {en}
|
|
96
85
|
* @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.
|
|
86
|
+
*
|
|
97
87
|
*/
|
|
98
|
-
VeLivePlayerErrorAVOutputFailed =
|
|
88
|
+
VeLivePlayerErrorAVOutputFailed = 13,
|
|
99
89
|
|
|
100
90
|
/** {en}
|
|
101
91
|
* @brief The device model does not support super resolution. Contact BytePlus technical support for any assistance you may need.
|
|
92
|
+
*
|
|
102
93
|
*/
|
|
103
|
-
VeLivePlayerErrorSRDeviceUnsupported =
|
|
94
|
+
VeLivePlayerErrorSRDeviceUnsupported = 14,
|
|
104
95
|
|
|
105
96
|
/** {en}
|
|
106
97
|
* @brief The current resolution exceeds the upper limit allowed for super resolution. Contact BytePlus technical support for any assistance you may need.
|
|
98
|
+
*
|
|
107
99
|
*/
|
|
108
|
-
VeLivePlayerErrorSRResolutionUnsupported =
|
|
100
|
+
VeLivePlayerErrorSRResolutionUnsupported = 15,
|
|
109
101
|
|
|
110
102
|
/** {en}
|
|
111
103
|
* @brief The current frame rate exceeds the upper limit allowed for super resolution. Contact BytePlus technical support for any assistance you may need.
|
|
104
|
+
*
|
|
112
105
|
*/
|
|
113
|
-
VeLivePlayerErrorSRFpsUnsupported =
|
|
106
|
+
VeLivePlayerErrorSRFpsUnsupported = 16,
|
|
114
107
|
|
|
115
108
|
/** {en}
|
|
116
109
|
* @brief Fails to initialize super resolution. Contact BytePlus technical support if the error persists.
|
|
110
|
+
*
|
|
117
111
|
*/
|
|
118
|
-
VeLivePlayerErrorSRInitFail =
|
|
112
|
+
VeLivePlayerErrorSRInitFail = 17,
|
|
119
113
|
|
|
120
114
|
/** {en}
|
|
121
115
|
* @brief Fails to apply super resolution to the video. Contact BytePlus technical support if the error persists.
|
|
116
|
+
*
|
|
122
117
|
*/
|
|
123
|
-
VeLivePlayerErrorSRExecuteFail =
|
|
118
|
+
VeLivePlayerErrorSRExecuteFail = 18,
|
|
124
119
|
|
|
125
120
|
/** {en}
|
|
126
121
|
* @brief The current SDK license does not provide support for the H.265 feature.
|
|
122
|
+
*
|
|
127
123
|
*/
|
|
128
|
-
VeLivePlayerLicenseUnsupportedH265 =
|
|
124
|
+
VeLivePlayerLicenseUnsupportedH265 = 19,
|
|
129
125
|
|
|
130
126
|
/** {en}
|
|
131
|
-
* @brief
|
|
127
|
+
* @brief Internal error. Please contact BytePlus technical support for assistance.
|
|
128
|
+
*
|
|
132
129
|
*/
|
|
133
|
-
|
|
130
|
+
VeLivePlayerErrorInternal = 20,
|
|
131
|
+
|
|
132
|
+
VeLivePlayerDRMFetchCKCFailed = 21,
|
|
133
|
+
|
|
134
|
+
VeLivePlayerDRMFetchSPCFailed = 22
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
export declare class VeLivePlayerError {
|
|
138
|
+
protected _instance: any;
|
|
134
139
|
|
|
135
140
|
/** {en}
|
|
136
|
-
* @brief
|
|
141
|
+
* @brief The error code.
|
|
142
|
+
*
|
|
137
143
|
*/
|
|
138
|
-
|
|
144
|
+
get errorCode(): number;
|
|
139
145
|
|
|
140
146
|
/** {en}
|
|
141
|
-
* @brief
|
|
147
|
+
* @brief The error message.
|
|
148
|
+
*
|
|
142
149
|
*/
|
|
143
|
-
|
|
150
|
+
get errorMsg(): string;
|
|
144
151
|
}
|
|
145
152
|
export declare class t_VeLivePlayerErrorCode {
|
|
146
153
|
static ts_to_android(value: VeLivePlayerErrorCode): $p_a.VeLivePlayerErrorCode;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ApplicationContext } from '../../platforms/android/extends';
|