@volcengine/react-native-live-push 1.0.2 → 1.1.1-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.
Files changed (36) hide show
  1. package/README.md +1 -0
  2. package/android/build.gradle +1 -1
  3. package/android/src/main/java/com/volcengine/velive/rn/push/NativeVariableManager.java +1 -1
  4. package/android/src/main/java/com/volcengine/velive/rn/push/VeLivePushModule.java +5 -3
  5. package/android/src/main/java/com/volcengine/velive/rn/push/VeLivePushView.java +86 -11
  6. package/android/src/main/java/com/volcengine/velive/rn/push/VeLivePushViewManager.java +29 -40
  7. package/ios/VeLivePushView.m +1 -1
  8. package/ios/VeLivePushViewManager.m +5 -1
  9. package/lib/commonjs/index.js +21800 -17843
  10. package/lib/module/index.js +21800 -17836
  11. package/lib/typescript/android/index.d.ts +3 -0
  12. package/lib/typescript/codegen/android/api.d.ts +353 -125
  13. package/lib/typescript/codegen/android/callback.d.ts +36 -5
  14. package/lib/typescript/codegen/android/errorcode.d.ts +12 -0
  15. package/lib/typescript/codegen/android/keytype.d.ts +305 -73
  16. package/lib/typescript/codegen/android/types.d.ts +7 -6
  17. package/lib/typescript/codegen/ios/api.d.ts +81 -118
  18. package/lib/typescript/codegen/ios/callback.d.ts +22 -58
  19. package/lib/typescript/codegen/ios/external.d.ts +1 -0
  20. package/lib/typescript/codegen/ios/index.d.ts +1 -0
  21. package/lib/typescript/codegen/ios/keytype.d.ts +40 -98
  22. package/lib/typescript/codegen/ios/types.d.ts +16 -5
  23. package/lib/typescript/codegen/pack/api.d.ts +1261 -1195
  24. package/lib/typescript/codegen/pack/callback.d.ts +166 -270
  25. package/lib/typescript/codegen/pack/errorcode.d.ts +24 -122
  26. package/lib/typescript/codegen/pack/index.d.ts +1 -1
  27. package/lib/typescript/codegen/pack/keytype.d.ts +1095 -1244
  28. package/lib/typescript/codegen/pack/types.d.ts +67 -0
  29. package/lib/typescript/component.d.ts +10 -3
  30. package/lib/typescript/core/api.d.ts +2 -2
  31. package/lib/typescript/core/callback.d.ts +2 -2
  32. package/lib/typescript/core/errorcode.d.ts +2 -2
  33. package/lib/typescript/core/keytype.d.ts +2 -7
  34. package/lib/typescript/platforms/ios/extends.d.ts +17 -0
  35. package/package.json +7 -4
  36. package/react-native-velive-push.podspec +1 -1
@@ -3,70 +3,70 @@ import * as $p_i from '../ios/index';
3
3
  /** {zh}
4
4
  * @detail errorcode
5
5
  * @brief 推流过程错误码定义。
6
+ *
6
7
  */
7
-
8
8
  export declare enum VeLivePusherErrorCode {
9
9
  /** {zh}
10
10
  * @brief 无错误。
11
+ *
11
12
  */
12
-
13
13
  VeLivePusherSuccess = 0,
14
14
  /** {zh}
15
15
  * @brief License 错误,可能 License 集成错误或 License 过期,请检查 License 集成方式和有效性。
16
+ *
16
17
  */
17
-
18
- VeLivePusherInvalidLicense = -1,
18
+ VeLivePusherInvalidLicense = 1,
19
19
  /** {zh}
20
20
  * @brief 参数错误,请检查入参,并重新调用。
21
+ *
21
22
  */
22
-
23
- VeLivePusherInvalidParameter = -2,
23
+ VeLivePusherInvalidParameter = 2,
24
24
  /** {zh}
25
25
  * @brief 视频采集错误,可能未开启设备视频采集权限,请检查权限是否获取。
26
+ *
26
27
  */
27
-
28
- VeLivePusherVideoCaptureError = -3,
28
+ VeLivePusherVideoCaptureError = 3,
29
29
  /** {zh}
30
30
  * @brief 音频采集错误,可能未开启设备麦克风采集权限,请检查权限是否获取。
31
+ *
31
32
  */
32
-
33
- VeLivePusherAudioCaptureError = -4,
33
+ VeLivePusherAudioCaptureError = 4,
34
34
  /** {zh}
35
35
  * @brief 视频编码错误,可能配置了当前设备不支持的视频编码方式,请检查编码参数,并重新调用。如果故障未排除,请联系火山引擎[技术支持](https://console.volcengine.com/workorder/create?step=3&SubProductID=P00000076)。
36
+ *
36
37
  */
37
-
38
- VeLivePusherVideoEncoderError = -5,
38
+ VeLivePusherVideoEncoderError = 5,
39
39
  /** {zh}
40
40
  * @brief 音频编码错误,可能配置了当前设备不支持的音频编码方式,请检查编码参数,并重新调用。如果故障未排除,请联系火山引擎[技术支持](https://console.volcengine.com/workorder/create?step=3&SubProductID=P00000076)。
41
+ *
41
42
  */
42
-
43
- VeLivePusherAudioEncoderError = -6,
43
+ VeLivePusherAudioEncoderError = 6,
44
44
  /** {zh}
45
45
  * @brief 网络发送错误,可能当前网络链路不通,或者开启了代理和关闭了网络权限,请检查网络后重新调用。如果故障未排除,请联系火山引擎[技术支持](https://console.volcengine.com/workorder/create?step=3&SubProductID=P00000076)。
46
+ *
46
47
  */
47
-
48
- VeLivePusherTransportError = -7,
48
+ VeLivePusherTransportError = 7,
49
49
  /** {zh}
50
50
  * @brief 视频特效错误,请检查视频特效 SDK 是否已经集成并且初试化成功。检查特效资源路径是否配置正确。如果故障未排除,请联系火山引擎[技术支持](https://console.volcengine.com/workorder/create?step=3&SubProductID=P00000076)。
51
+ *
51
52
  */
52
-
53
- VeLivePusherVideoEffectError = -8,
53
+ VeLivePusherVideoEffectError = 8,
54
54
  /** {zh}
55
55
  * @brief 音频模块错误,请联系火山引擎[技术支持](https://console.volcengine.com/workorder/create?step=3&SubProductID=P00000076)。
56
+ *
56
57
  */
57
-
58
- VeLivePusherAudioDeviceError = -9,
58
+ VeLivePusherAudioDeviceError = 9,
59
59
  /** {zh}
60
60
  * @platform android
61
61
  * @brief 您使用的基础版 License 暂不支持 H.265 硬件编码,请登录火山引擎控制台获取高级版 License。
62
+ *
62
63
  */
63
-
64
- VeLivePusherLicenseUnsupportedH265 = -10,
64
+ VeLivePusherLicenseUnsupportedH265 = 10,
65
65
  /** {zh}
66
66
  * @brief 其他错误类型,请联系火山引擎[技术支持](https://console.volcengine.com/workorder/create?step=3&SubProductID=P00000076)。
67
+ *
67
68
  */
68
-
69
- VeLivePusherError = -100
69
+ VeLivePusherError = 11
70
70
  }
71
71
  export declare class t_VeLivePusherErrorCode {
72
72
  static ts_to_android(value: VeLivePusherErrorCode): $p_a.VeLivePusherErrorCode;
@@ -74,101 +74,3 @@ export declare class t_VeLivePusherErrorCode {
74
74
  static ts_to_ios(value: VeLivePusherErrorCode): $p_i.VeLivePusherCode;
75
75
  static ios_to_ts(value: $p_i.VeLivePusherCode): VeLivePusherErrorCode;
76
76
  }
77
- /** {zh}
78
- * @platform ios
79
- * @detail errorcode
80
- * @brief 推流过程错误细分。
81
- */
82
-
83
- export declare enum VeLivePusherSubErrorCode {
84
- /** {zh}
85
- * @platform ios
86
- * @brief License 验证错误,可能是由于 License 无效或过期。
87
- */
88
-
89
- VeLivePusherInvalidLicenseSubErrorCode = -100,
90
- /** {zh}
91
- * @platform ios
92
- * @brief 您使用的基础版 License 暂不支持 H.265 硬件编码,请登录火山引擎控制台获取高级版 License。
93
- */
94
-
95
- VeLivePusherInvalidLicenseUnsupportH265 = -101,
96
- /** {zh}
97
- * @platform ios
98
- * @brief 参数错误,可能是由于传入的参数类型或值不符合预期。
99
- */
100
-
101
- VeLivePusherInvalidParameterSubErrorCode = -200,
102
- /** {zh}
103
- * @platform ios
104
- * @brief 参数错误,屏幕推流传入的 AppGroupIdentifier 错误。
105
- */
106
-
107
- VeLivePusherInvalidParameterScreenCaptureAppGroupIdentifierSubErrorCode = -201,
108
- /** {zh}
109
- * @platform ios
110
- * @brief 视频采集类型错误,可能是由于不支持的视频采集类型或者设备不兼容。
111
- */
112
-
113
- VeLivePusherVideoCaptureTypeError = -301,
114
- /** {zh}
115
- * @platform ios
116
- * @brief 视频采集权限错误,可能是由于应用没有获取到视频设备的访问权限。
117
- */
118
-
119
- VeLivePusherVideoCapturePermissionError = -302,
120
- /** {zh}
121
- * @platform ios
122
- * @brief 音频采集类型错误,可能是由于不支持的音频采集类型或者设备不兼容。
123
- */
124
-
125
- VeLivePusherAudioCaptureTypeError = -401,
126
- /** {zh}
127
- * @platform ios
128
- * @brief 音频采集权限错误,可能是由于应用没有获取到音频设备的访问权限。
129
- */
130
-
131
- VeLivePusherAudioCapturePermissionError = -402,
132
- /** {zh}
133
- * @platform ios
134
- * @brief 视频编码错误,可能是由于视频编码器的配置问题或者编码过程中出现错误。
135
- */
136
-
137
- VeLivePusherVideoEncoderSubErrorCode = -500,
138
- /** {zh}
139
- * @platform ios
140
- * @brief 音频编码错误,可能是由于音频编码器的配置问题或者编码过程中出现错误。
141
- */
142
-
143
- VeLivePusherAudioEncoderSubErrorCode = -600,
144
- /** {zh}
145
- * @platform ios
146
- * @brief 网络错误,可能是由于网络连接的问题,如网络不稳定、网络延迟过高等。
147
- */
148
-
149
- VeLivePusherTransportSubErrorCode = -700,
150
- /** {zh}
151
- * @platform ios
152
- * @brief 视频特效错误,可能是由于视频特效处理中出现的问题。
153
- */
154
-
155
- VeLivePusherVideoEffectSubErrorCode = -800,
156
- /** {zh}
157
- * @platform ios
158
- * @brief 音频模块错误,可能是由于音频模块处理过程中出现的问题。
159
- */
160
-
161
- VeLivePusherAudioDeviceSubErrorCode = -900,
162
- /** {zh}
163
- * @platform ios
164
- * @brief 内部错误,请通过提交工单联系[技术支持](https://console.volcengine.com/workorder/create?step=3&SubProductID=P00000076&FlowKey=iNcpuNlwBHbovcjeWlKP),获取帮助。
165
- */
166
-
167
- VeLivePusherInternalError = -1001
168
- }
169
- export declare class t_VeLivePusherSubErrorCode {
170
- static ts_to_android(value: VeLivePusherSubErrorCode): never;
171
- static android_to_ts(value: unknown): never;
172
- static ts_to_ios(value: VeLivePusherSubErrorCode): $p_i.VeLivePusherErrorCode;
173
- static ios_to_ts(value: $p_i.VeLivePusherErrorCode): VeLivePusherSubErrorCode;
174
- }
@@ -1,5 +1,5 @@
1
+ export * from './keytype';
1
2
  export * from './api';
2
3
  export * from './callback';
3
4
  export * from './errorcode';
4
- export * from './keytype';
5
5
  export * from './types';