@volcengine/react-native-live-pull 1.1.1-rc.0 → 1.1.2-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.
@@ -17,131 +17,131 @@ export declare enum VeLivePlayerErrorCode {
17
17
  *
18
18
  */
19
19
 
20
- VeLivePlayerInvalidLicense = 1,
20
+ VeLivePlayerInvalidLicense = -1,
21
21
  /** {zh}
22
22
  * @brief 调用时传入的参数不合法。请检查入参,并重新调用。
23
23
  *
24
24
  */
25
25
 
26
- VeLivePlayerInvalidParameter = 2,
26
+ VeLivePlayerInvalidParameter = -2,
27
27
  /** {zh}
28
28
  * @brief 调用被拒绝。方法调用时机不合法,请检查调用时机。
29
29
  *
30
30
  */
31
31
 
32
- VeLivePlayerErrorRefused = 3,
32
+ VeLivePlayerErrorRefused = -3,
33
33
  /** {zh}
34
34
  * @brief 加载库文件失败。可能是 SDK 集成错误,请检查 SDK 集成方式。
35
35
  *
36
36
  */
37
37
 
38
- VeLivePlayerErrorLibraryLoadFailed = 4,
38
+ VeLivePlayerErrorLibraryLoadFailed = -4,
39
39
  /** {zh}
40
40
  * @brief 播放地址不存在或无效。可能是播放地址为空、地址格式不合法或地址长度不合法,请检查播放地址。
41
41
  *
42
42
  */
43
43
 
44
- VeLivePlayerErrorPlayUrl = 5,
44
+ VeLivePlayerErrorPlayUrl = -100,
45
45
  /** {zh}
46
46
  * @brief 无法获取流数据。可能是直播流不存在、直播流中断或直播已结束,请检查直播状态。
47
47
  *
48
48
  */
49
49
 
50
- VeLivePlayerErrorNoStreamData = 6,
50
+ VeLivePlayerErrorNoStreamData = -101,
51
51
  /** {zh}
52
52
  * @brief 内部播放重试。可能由于播放器内部错误触发了重试。
53
53
  *
54
54
  */
55
55
 
56
- VeLivePlayerErrorInternalRetryStart = 7,
56
+ VeLivePlayerErrorInternalRetryStart = -102,
57
57
  /** {zh}
58
58
  * @brief 内部重试失败。内部重试次数达到最大限制,播放器停止重试,您可以尝试重新播放。
59
59
  *
60
60
  */
61
61
 
62
- VeLivePlayerErrorInternalRetryFailed = 8,
62
+ VeLivePlayerErrorInternalRetryFailed = -103,
63
63
  /** {zh}
64
64
  * @brief DNS 解析失败。可能是播放地址异常或客户端网络异常,请您检查播放地址和网络情况,如果故障未排除,请联系火山引擎[技术支持](https://console.volcengine.com/workorder/create?step=2&SubProductID=P00000076)。
65
65
  *
66
66
  */
67
67
 
68
- VeLivePlayerErrorDnsParseFailed = 9,
68
+ VeLivePlayerErrorDnsParseFailed = -200,
69
69
  /** {zh}
70
70
  * @brief 网络请求失败。请检查网络情况,如果故障未排除,请联系火山引擎[技术支持](https://console.volcengine.com/workorder/create?step=2&SubProductID=P00000076)。
71
71
  *
72
72
  */
73
73
 
74
- VeLivePlayerErrorNetworkRequestFailed = 10,
74
+ VeLivePlayerErrorNetworkRequestFailed = -201,
75
75
  /** {zh}
76
76
  * @brief 直播格式解封装失败。可能是使用了不支持的直播流格式和协议,或音视频流错误;请检查流格式,如果故障未排除,请联系火山引擎[技术支持](https://console.volcengine.com/workorder/create?step=2&SubProductID=P00000076)。
77
77
  *
78
78
  */
79
79
 
80
- VeLivePlayerErrorDemuxFailed = 11,
80
+ VeLivePlayerErrorDemuxFailed = -300,
81
81
  /** {zh}
82
82
  * @brief 视频解码失败。可能使用了不支持的直播流音视频格式,或解码器出错;请检查音视频格式,如果故障未排除,请联系火山引擎[技术支持](https://console.volcengine.com/workorder/create?step=2&SubProductID=P00000076)。
83
83
  *
84
84
  */
85
85
 
86
- VeLivePlayerErrorDecodeFailed = 12,
86
+ VeLivePlayerErrorDecodeFailed = -301,
87
87
  /** {zh}
88
88
  * @brief 渲染失败。可能是音视频输出设备异常,请重试;如果故障未排除,请联系火山引擎[技术支持](https://console.volcengine.com/workorder/create?step=2&SubProductID=P00000076)。
89
89
  *
90
90
  */
91
91
 
92
- VeLivePlayerErrorAVOutputFailed = 13,
92
+ VeLivePlayerErrorAVOutputFailed = -302,
93
93
  /** {zh}
94
94
  * @brief 该台设备不支持超分能力,不在超分机型白名单内;如果有疑问,请联系火山引擎[技术支持](https://console.volcengine.com/workorder/create?step=2&SubProductID=P00000076)。
95
95
  *
96
96
  */
97
97
 
98
- VeLivePlayerErrorSRDeviceUnsupported = 14,
98
+ VeLivePlayerErrorSRDeviceUnsupported = -303,
99
99
  /** {zh}
100
100
  * @brief 当前分辨率高于超分开启限制的最大分辨率。如果有疑问,请联系火山引擎[技术支持](https://console.volcengine.com/workorder/create?step=2&SubProductID=P00000076)。
101
101
  *
102
102
  */
103
103
 
104
- VeLivePlayerErrorSRResolutionUnsupported = 15,
104
+ VeLivePlayerErrorSRResolutionUnsupported = -304,
105
105
  /** {zh}
106
106
  * @brief 当前帧率高于超分开启限制的最大帧率。如果有疑问,请联系火山引擎[技术支持](https://console.volcengine.com/workorder/create?step=2&SubProductID=P00000076)。
107
107
  *
108
108
  */
109
109
 
110
- VeLivePlayerErrorSRFpsUnsupported = 16,
110
+ VeLivePlayerErrorSRFpsUnsupported = -305,
111
111
  /** {zh}
112
112
  * @brief 超分初始化失败。可能超分参数配置错误,或版本不兼容;如果故障未排除,请联系火山引擎[技术支持](https://console.volcengine.com/workorder/create?step=2&SubProductID=P00000076)。
113
113
  *
114
114
  */
115
115
 
116
- VeLivePlayerErrorSRInitFail = 17,
116
+ VeLivePlayerErrorSRInitFail = -306,
117
117
  /** {zh}
118
118
  * @brief 超分执行失败,可能超分参数配置错误,或版本不兼容;如果故障未排除,请联系火山引擎[技术支持](https://console.volcengine.com/workorder/create?step=2&SubProductID=P00000076)。
119
119
  *
120
120
  */
121
121
 
122
- VeLivePlayerErrorSRExecuteFail = 18,
122
+ VeLivePlayerErrorSRExecuteFail = -307,
123
123
  /** {zh}
124
124
  * @brief 您使用的基础版 License 暂不支持 H.265 硬件解码,请登录火山引擎[视频直播控制台](https://console.volcengine.com/live/main/sdk)获取高级版 License。
125
125
  *
126
126
  */
127
127
 
128
- VeLivePlayerLicenseUnsupportedH265 = 19,
129
- /** {zh}
130
- * @brief 内部错误。请联系火山引擎[技术支持](https://console.volcengine.com/workorder/create?step=2&SubProductID=P00000076)。
131
- *
132
- */
133
-
134
- VeLivePlayerErrorInternal = 20,
128
+ VeLivePlayerLicenseUnsupportedH265 = -308,
135
129
  /** {zh}
136
130
  * @platform ios
137
131
  * @brief DRM 鉴权失败。
138
132
  */
139
- VeLivePlayerDRMFetchCKCFailed = 21,
133
+ VeLivePlayerDRMFetchCKCFailed = -400,
140
134
  /** {zh}
141
135
  * @platform ios
142
136
  * @brief 服务器播放上下文(SPC)生成失败。
143
137
  */
144
- VeLivePlayerDRMFetchSPCFailed = 22
138
+ VeLivePlayerDRMFetchSPCFailed = -401,
139
+ /** {zh}
140
+ * @brief 内部错误。请联系火山引擎[技术支持](https://console.volcengine.com/workorder/create?step=2&SubProductID=P00000076)。
141
+ *
142
+ */
143
+
144
+ VeLivePlayerErrorInternal = -999
145
145
  }
146
146
  /** {zh}
147
147
  * @detail errorcode
@@ -64,5 +64,5 @@ export type Matrix = unknown;
64
64
  export type SurfaceHolder = unknown;
65
65
  export type Surface = unknown;
66
66
  export type Runnable = unknown;
67
- export type View = unknown;
67
+ export type View = any;
68
68
  export type Intent = unknown;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@volcengine/react-native-live-pull",
3
- "version": "1.1.1-rc.0",
3
+ "version": "1.1.2-rc.0",
4
4
  "peerDependencies": {
5
5
  "react": "*",
6
6
  "react-native": "*"