@volcengine/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 +319 -0
- package/lib/typescript/codegen/android/callback.d.ts +206 -0
- package/lib/typescript/codegen/android/errorcode.d.ts +177 -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 +753 -0
- package/lib/typescript/codegen/android/types.d.ts +31 -0
- package/lib/typescript/codegen/ios/api.d.ts +293 -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 +697 -0
- package/lib/typescript/codegen/ios/types.d.ts +46 -0
- package/lib/typescript/codegen/pack/api.d.ts +371 -0
- package/lib/typescript/codegen/pack/callback.d.ts +258 -0
- package/lib/typescript/codegen/pack/errorcode.d.ts +195 -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 +980 -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 +36 -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 +14 -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,195 @@
|
|
|
1
|
+
import * as $p_a from '../android/index';
|
|
2
|
+
import * as $p_i from '../ios/index';
|
|
3
|
+
/** {zh}
|
|
4
|
+
* @detail errorcode
|
|
5
|
+
* @brief 直播播放错误码。
|
|
6
|
+
*
|
|
7
|
+
*/
|
|
8
|
+
export declare enum VeLivePlayerErrorCode {
|
|
9
|
+
/** {zh}
|
|
10
|
+
* @brief 没有错误。
|
|
11
|
+
*
|
|
12
|
+
*/
|
|
13
|
+
|
|
14
|
+
VeLivePlayerNoError = 0,
|
|
15
|
+
/** {zh}
|
|
16
|
+
* @brief License 无效。可能 License 集成错误或 License 过期,请检查 License 集成方式和有效性。
|
|
17
|
+
*
|
|
18
|
+
*/
|
|
19
|
+
|
|
20
|
+
VeLivePlayerInvalidLicense = -1,
|
|
21
|
+
/** {zh}
|
|
22
|
+
* @brief 调用时传入的参数不合法。请检查入参,并重新调用。
|
|
23
|
+
*
|
|
24
|
+
*/
|
|
25
|
+
|
|
26
|
+
VeLivePlayerInvalidParameter = -2,
|
|
27
|
+
/** {zh}
|
|
28
|
+
* @brief 调用被拒绝。方法调用时机不合法,请检查调用时机。
|
|
29
|
+
*
|
|
30
|
+
*/
|
|
31
|
+
|
|
32
|
+
VeLivePlayerErrorRefused = -3,
|
|
33
|
+
/** {zh}
|
|
34
|
+
* @brief 加载库文件失败。可能是 SDK 集成错误,请检查 SDK 集成方式。
|
|
35
|
+
*
|
|
36
|
+
*/
|
|
37
|
+
|
|
38
|
+
VeLivePlayerErrorLibraryLoadFailed = -4,
|
|
39
|
+
/** {zh}
|
|
40
|
+
* @brief 播放地址不存在或无效。可能是播放地址为空、地址格式不合法或地址长度不合法,请检查播放地址。
|
|
41
|
+
*
|
|
42
|
+
*/
|
|
43
|
+
|
|
44
|
+
VeLivePlayerErrorPlayUrl = -100,
|
|
45
|
+
/** {zh}
|
|
46
|
+
* @brief 无法获取流数据。可能是直播流不存在、直播流中断或直播已结束,请检查直播状态。
|
|
47
|
+
*
|
|
48
|
+
*/
|
|
49
|
+
|
|
50
|
+
VeLivePlayerErrorNoStreamData = -101,
|
|
51
|
+
/** {zh}
|
|
52
|
+
* @brief 内部播放重试。可能由于播放器内部错误触发了重试。
|
|
53
|
+
*
|
|
54
|
+
*/
|
|
55
|
+
|
|
56
|
+
VeLivePlayerErrorInternalRetryStart = -102,
|
|
57
|
+
/** {zh}
|
|
58
|
+
* @brief 内部重试失败。内部重试次数达到最大限制,播放器停止重试,您可以尝试重新播放。
|
|
59
|
+
*
|
|
60
|
+
*/
|
|
61
|
+
|
|
62
|
+
VeLivePlayerErrorInternalRetryFailed = -103,
|
|
63
|
+
/** {zh}
|
|
64
|
+
* @brief DNS 解析失败。可能是播放地址异常或客户端网络异常,请您检查播放地址和网络情况,如果故障未排除,请联系火山引擎[技术支持](https://console.volcengine.com/workorder/create?step=2&SubProductID=P00000076)。
|
|
65
|
+
*
|
|
66
|
+
*/
|
|
67
|
+
|
|
68
|
+
VeLivePlayerErrorDnsParseFailed = -200,
|
|
69
|
+
/** {zh}
|
|
70
|
+
* @brief 网络请求失败。请检查网络情况,如果故障未排除,请联系火山引擎[技术支持](https://console.volcengine.com/workorder/create?step=2&SubProductID=P00000076)。
|
|
71
|
+
*
|
|
72
|
+
*/
|
|
73
|
+
|
|
74
|
+
VeLivePlayerErrorNetworkRequestFailed = -201,
|
|
75
|
+
/** {zh}
|
|
76
|
+
* @brief 直播格式解封装失败。可能是使用了不支持的直播流格式和协议,或音视频流错误;请检查流格式,如果故障未排除,请联系火山引擎[技术支持](https://console.volcengine.com/workorder/create?step=2&SubProductID=P00000076)。
|
|
77
|
+
*
|
|
78
|
+
*/
|
|
79
|
+
|
|
80
|
+
VeLivePlayerErrorDemuxFailed = -300,
|
|
81
|
+
/** {zh}
|
|
82
|
+
* @brief 视频解码失败。可能使用了不支持的直播流音视频格式,或解码器出错;请检查音视频格式,如果故障未排除,请联系火山引擎[技术支持](https://console.volcengine.com/workorder/create?step=2&SubProductID=P00000076)。
|
|
83
|
+
*
|
|
84
|
+
*/
|
|
85
|
+
|
|
86
|
+
VeLivePlayerErrorDecodeFailed = -301,
|
|
87
|
+
/** {zh}
|
|
88
|
+
* @brief 渲染失败。可能是音视频输出设备异常,请重试;如果故障未排除,请联系火山引擎[技术支持](https://console.volcengine.com/workorder/create?step=2&SubProductID=P00000076)。
|
|
89
|
+
*
|
|
90
|
+
*/
|
|
91
|
+
|
|
92
|
+
VeLivePlayerErrorAVOutputFailed = -302,
|
|
93
|
+
/** {zh}
|
|
94
|
+
* @brief 该台设备不支持超分能力,不在超分机型白名单内;如果有疑问,请联系火山引擎[技术支持](https://console.volcengine.com/workorder/create?step=2&SubProductID=P00000076)。
|
|
95
|
+
*
|
|
96
|
+
*/
|
|
97
|
+
|
|
98
|
+
VeLivePlayerErrorSRDeviceUnsupported = -303,
|
|
99
|
+
/** {zh}
|
|
100
|
+
* @brief 当前分辨率高于超分开启限制的最大分辨率。如果有疑问,请联系火山引擎[技术支持](https://console.volcengine.com/workorder/create?step=2&SubProductID=P00000076)。
|
|
101
|
+
*
|
|
102
|
+
*/
|
|
103
|
+
|
|
104
|
+
VeLivePlayerErrorSRResolutionUnsupported = -304,
|
|
105
|
+
/** {zh}
|
|
106
|
+
* @brief 当前帧率高于超分开启限制的最大帧率。如果有疑问,请联系火山引擎[技术支持](https://console.volcengine.com/workorder/create?step=2&SubProductID=P00000076)。
|
|
107
|
+
*
|
|
108
|
+
*/
|
|
109
|
+
|
|
110
|
+
VeLivePlayerErrorSRFpsUnsupported = -305,
|
|
111
|
+
/** {zh}
|
|
112
|
+
* @brief 超分初始化失败。可能超分参数配置错误,或版本不兼容;如果故障未排除,请联系火山引擎[技术支持](https://console.volcengine.com/workorder/create?step=2&SubProductID=P00000076)。
|
|
113
|
+
*
|
|
114
|
+
*/
|
|
115
|
+
|
|
116
|
+
VeLivePlayerErrorSRInitFail = -306,
|
|
117
|
+
/** {zh}
|
|
118
|
+
* @brief 超分执行失败,可能超分参数配置错误,或版本不兼容;如果故障未排除,请联系火山引擎[技术支持](https://console.volcengine.com/workorder/create?step=2&SubProductID=P00000076)。
|
|
119
|
+
*
|
|
120
|
+
*/
|
|
121
|
+
|
|
122
|
+
VeLivePlayerErrorSRExecuteFail = -307,
|
|
123
|
+
/** {zh}
|
|
124
|
+
* @brief 您使用的基础版 License 暂不支持 H.265 硬件解码。
|
|
125
|
+
*
|
|
126
|
+
*/
|
|
127
|
+
|
|
128
|
+
VeLivePlayerLicenseUnsupportedH265 = -308,
|
|
129
|
+
/** {zh}
|
|
130
|
+
* @platform android
|
|
131
|
+
* @brief 该台设备系统版本不支持锐化能力;如果有疑问,请联系火山引擎[技术支持](https://console.volcengine.com/workorder/create?step=3&SubProductID=P00000076&FlowKey=owVvVTNjDkRmjctcsyNW)。
|
|
132
|
+
*
|
|
133
|
+
*/
|
|
134
|
+
|
|
135
|
+
VeLivePlayerErrorSharpenDeviceUnsupported = -309,
|
|
136
|
+
/** {zh}
|
|
137
|
+
* @brief 分辨率档位切换不支持;如果故障未排除,请联系火山引擎技术支持。
|
|
138
|
+
* @hidden (Android)
|
|
139
|
+
*
|
|
140
|
+
*/
|
|
141
|
+
|
|
142
|
+
VeLivePlayerErrorNotSupportResolutionSwitch = -310,
|
|
143
|
+
/** {zh}
|
|
144
|
+
* @platform ios
|
|
145
|
+
* @brief DRM 鉴权失败。
|
|
146
|
+
*
|
|
147
|
+
*/
|
|
148
|
+
|
|
149
|
+
VeLivePlayerDRMFetchCKCFailed = -400,
|
|
150
|
+
/** {zh}
|
|
151
|
+
* @platform ios
|
|
152
|
+
* @brief 服务器播放上下文(SPC)生成失败。
|
|
153
|
+
*
|
|
154
|
+
*/
|
|
155
|
+
|
|
156
|
+
VeLivePlayerDRMFetchSPCFailed = -401,
|
|
157
|
+
/** {zh}
|
|
158
|
+
* @brief 内部错误。请联系火山引擎[技术支持](https://console.volcengine.com/workorder/create?step=2&SubProductID=P00000076)。
|
|
159
|
+
*
|
|
160
|
+
*/
|
|
161
|
+
|
|
162
|
+
VeLivePlayerErrorInternal = -999
|
|
163
|
+
}
|
|
164
|
+
/** {zh}
|
|
165
|
+
* @detail errorcode
|
|
166
|
+
* @brief 直播播放错误。
|
|
167
|
+
*/
|
|
168
|
+
export declare class VeLivePlayerError {
|
|
169
|
+
protected _instance: any;
|
|
170
|
+
/** {zh}
|
|
171
|
+
* @brief 直播播放错误码。
|
|
172
|
+
*
|
|
173
|
+
*/
|
|
174
|
+
|
|
175
|
+
get errorCode(): number;
|
|
176
|
+
/** {zh}
|
|
177
|
+
* @brief 直播播放错误信息。
|
|
178
|
+
*
|
|
179
|
+
*/
|
|
180
|
+
|
|
181
|
+
get errorMsg(): string;
|
|
182
|
+
/** {zh}
|
|
183
|
+
* @platform android
|
|
184
|
+
* @brief 直播播放子错误码。
|
|
185
|
+
*
|
|
186
|
+
*/
|
|
187
|
+
|
|
188
|
+
get mSubCode(): number;
|
|
189
|
+
}
|
|
190
|
+
export declare class t_VeLivePlayerErrorCode {
|
|
191
|
+
static code_to_android(value: VeLivePlayerErrorCode): $p_a.VeLivePlayerErrorCode;
|
|
192
|
+
static android_to_code(value: $p_a.VeLivePlayerErrorCode): VeLivePlayerErrorCode;
|
|
193
|
+
static code_to_ios(value: VeLivePlayerErrorCode): $p_i.VeLivePlayerErrorCode;
|
|
194
|
+
static ios_to_code(value: $p_i.VeLivePlayerErrorCode): VeLivePlayerErrorCode;
|
|
195
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ApplicationContext } from '../../platforms/android/extends';
|