@volcengine/react-native-live-push 1.1.3-rc.0 → 1.2.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/build.gradle +2 -2
- package/android/src/main/java/com/volcengine/velive/rn/push/ClassHelper.java +9 -0
- package/android/src/main/java/com/volcengine/velive/rn/push/NativeVariableManager.java +5 -8
- package/android/src/main/java/com/volcengine/velive/rn/push/VeLivePushModule.java +14 -2
- package/android/src/main/java/com/volcengine/velive/rn/push/VeLivePushPackage.java +16 -13
- package/android/src/main/java/com/volcengine/velive/rn/push/VeLivePushView.java +16 -0
- package/android/src/main/java/com/volcengine/velive/rn/push/VeLivePushViewManager.java +7 -2
- package/android/src/main/java/com/volcengine/velive/rn/push/mixer/MixerManager.java +410 -0
- package/android/src/main/java/com/volcengine/velive/rn/push/mixer/MixerView.java +434 -0
- package/android/src/main/java/com/volcengine/velive/rn/push/mixer/MixerViewManager.java +79 -0
- package/android/src/main/java/com/volcengine/velive/rn/push/mixer/TextureMgr.java +168 -0
- package/android/src/main/java/com/volcengine/velive/rn/push/mixer/YuvHelper.java +165 -0
- package/ios/VeLiveMixerHelper.h +46 -0
- package/ios/VeLiveMixerHelper.m +620 -0
- package/ios/VeLiveMixerView.h +69 -0
- package/ios/VeLiveMixerView.m +600 -0
- package/ios/VeLiveMixerViewManager.m +92 -0
- package/lib/commonjs/index.js +22698 -20359
- package/lib/commonjs/typescript/android/index.d.ts +44 -0
- package/lib/commonjs/typescript/codegen/android/api.d.ts +1068 -0
- package/lib/commonjs/typescript/codegen/android/callback.d.ts +333 -0
- package/lib/commonjs/typescript/codegen/android/errorcode.d.ts +92 -0
- package/lib/commonjs/typescript/codegen/android/index.d.ts +5 -0
- package/lib/commonjs/typescript/codegen/android/keytype.d.ts +1693 -0
- package/lib/commonjs/typescript/codegen/android/types.d.ts +33 -0
- package/lib/commonjs/typescript/codegen/ios/api.d.ts +1125 -0
- package/lib/commonjs/typescript/codegen/ios/callback.d.ts +242 -0
- package/lib/commonjs/typescript/codegen/ios/errorcode.d.ts +154 -0
- package/lib/commonjs/typescript/codegen/ios/external.d.ts +1 -0
- package/lib/commonjs/typescript/codegen/ios/index.d.ts +6 -0
- package/lib/commonjs/typescript/codegen/ios/keytype.d.ts +1154 -0
- package/lib/commonjs/typescript/codegen/ios/types.d.ts +46 -0
- package/lib/commonjs/typescript/codegen/pack/api.d.ts +1470 -0
- package/lib/commonjs/typescript/codegen/pack/callback.d.ts +446 -0
- package/lib/commonjs/typescript/codegen/pack/errorcode.d.ts +109 -0
- package/lib/commonjs/typescript/codegen/pack/index.d.ts +5 -0
- package/lib/commonjs/typescript/codegen/pack/keytype.d.ts +2248 -0
- package/lib/commonjs/typescript/codegen/pack/types.d.ts +68 -0
- package/lib/commonjs/typescript/codegen/type-shim.d.ts +6 -0
- package/lib/commonjs/typescript/component.d.ts +15 -0
- package/lib/commonjs/typescript/core/api.d.ts +18 -0
- package/lib/commonjs/typescript/core/callback.d.ts +2 -0
- package/lib/commonjs/typescript/core/env.d.ts +29 -0
- package/lib/commonjs/typescript/core/errorcode.d.ts +2 -0
- package/lib/commonjs/typescript/core/index.d.ts +6 -0
- package/lib/commonjs/typescript/core/keytype.d.ts +18 -0
- package/lib/commonjs/typescript/core/mixer.d.ts +26 -0
- package/lib/commonjs/typescript/core/pusher.d.ts +13 -0
- package/lib/commonjs/typescript/index.d.ts +3 -0
- package/lib/commonjs/typescript/ios/extends.d.ts +41 -0
- package/lib/commonjs/typescript/platforms/android/extends.d.ts +8 -0
- package/lib/commonjs/typescript/platforms/android/helper.d.ts +8 -0
- package/lib/commonjs/typescript/platforms/android/mixer.d.ts +8 -0
- package/lib/commonjs/typescript/platforms/ios/extends.d.ts +17 -0
- package/lib/commonjs/typescript/platforms/ios/helper.d.ts +8 -0
- package/lib/commonjs/typescript/platforms/ios/mixer.d.ts +9 -0
- package/lib/commonjs/typescript/runtime.d.ts +1 -0
- package/lib/commonjs/typescript/view/MixView.d.ts +52 -0
- package/lib/commonjs/typescript/view/VeImageView.d.ts +19 -0
- package/lib/commonjs/typescript/view/VeTextView.d.ts +7 -0
- package/lib/commonjs/typescript/view/VeView.d.ts +7 -0
- package/lib/commonjs/typescript/view/VeWebView.d.ts +7 -0
- package/lib/commonjs/typescript/view/index.d.ts +5 -0
- package/lib/module/index.js +22695 -20360
- package/lib/module/typescript/android/index.d.ts +44 -0
- package/lib/module/typescript/codegen/android/api.d.ts +1068 -0
- package/lib/module/typescript/codegen/android/callback.d.ts +333 -0
- package/lib/module/typescript/codegen/android/errorcode.d.ts +92 -0
- package/lib/module/typescript/codegen/android/index.d.ts +5 -0
- package/lib/module/typescript/codegen/android/keytype.d.ts +1693 -0
- package/lib/module/typescript/codegen/android/types.d.ts +33 -0
- package/lib/module/typescript/codegen/ios/api.d.ts +1125 -0
- package/lib/module/typescript/codegen/ios/callback.d.ts +242 -0
- package/lib/module/typescript/codegen/ios/errorcode.d.ts +154 -0
- package/lib/module/typescript/codegen/ios/external.d.ts +1 -0
- package/lib/module/typescript/codegen/ios/index.d.ts +6 -0
- package/lib/module/typescript/codegen/ios/keytype.d.ts +1154 -0
- package/lib/module/typescript/codegen/ios/types.d.ts +46 -0
- package/lib/module/typescript/codegen/pack/api.d.ts +1470 -0
- package/lib/module/typescript/codegen/pack/callback.d.ts +446 -0
- package/lib/module/typescript/codegen/pack/errorcode.d.ts +109 -0
- package/lib/module/typescript/codegen/pack/index.d.ts +5 -0
- package/lib/module/typescript/codegen/pack/keytype.d.ts +2248 -0
- package/lib/module/typescript/codegen/pack/types.d.ts +68 -0
- package/lib/module/typescript/codegen/type-shim.d.ts +6 -0
- package/lib/module/typescript/component.d.ts +15 -0
- package/lib/module/typescript/core/api.d.ts +18 -0
- package/lib/module/typescript/core/callback.d.ts +2 -0
- package/lib/module/typescript/core/env.d.ts +29 -0
- package/lib/module/typescript/core/errorcode.d.ts +2 -0
- package/lib/module/typescript/core/index.d.ts +6 -0
- package/lib/module/typescript/core/keytype.d.ts +18 -0
- package/lib/module/typescript/core/mixer.d.ts +26 -0
- package/lib/module/typescript/core/pusher.d.ts +13 -0
- package/lib/module/typescript/index.d.ts +3 -0
- package/lib/module/typescript/ios/extends.d.ts +41 -0
- package/lib/module/typescript/platforms/android/extends.d.ts +8 -0
- package/lib/module/typescript/platforms/android/helper.d.ts +8 -0
- package/lib/module/typescript/platforms/android/mixer.d.ts +8 -0
- package/lib/module/typescript/platforms/ios/extends.d.ts +17 -0
- package/lib/module/typescript/platforms/ios/helper.d.ts +8 -0
- package/lib/module/typescript/platforms/ios/mixer.d.ts +9 -0
- package/lib/module/typescript/runtime.d.ts +1 -0
- package/lib/module/typescript/view/MixView.d.ts +52 -0
- package/lib/module/typescript/view/VeImageView.d.ts +19 -0
- package/lib/module/typescript/view/VeTextView.d.ts +7 -0
- package/lib/module/typescript/view/VeView.d.ts +7 -0
- package/lib/module/typescript/view/VeWebView.d.ts +7 -0
- package/lib/module/typescript/view/index.d.ts +5 -0
- package/lib/typescript/android/index.d.ts +0 -3
- package/lib/typescript/codegen/android/api.d.ts +194 -762
- package/lib/typescript/codegen/android/callback.d.ts +85 -48
- package/lib/typescript/codegen/android/errorcode.d.ts +30 -0
- package/lib/typescript/codegen/android/keytype.d.ts +514 -122
- package/lib/typescript/codegen/ios/api.d.ts +380 -351
- package/lib/typescript/codegen/ios/callback.d.ts +33 -6
- package/lib/typescript/codegen/ios/errorcode.d.ts +52 -2
- package/lib/typescript/codegen/ios/keytype.d.ts +313 -35
- package/lib/typescript/codegen/pack/api.d.ts +302 -821
- package/lib/typescript/codegen/pack/callback.d.ts +54 -49
- package/lib/typescript/codegen/pack/errorcode.d.ts +38 -5
- package/lib/typescript/codegen/pack/keytype.d.ts +672 -228
- package/lib/typescript/core/api.d.ts +18 -2
- package/lib/typescript/core/keytype.d.ts +16 -0
- package/lib/typescript/core/mixer.d.ts +26 -0
- package/lib/typescript/core/pusher.d.ts +0 -3
- package/lib/typescript/index.d.ts +1 -0
- package/lib/typescript/platforms/android/extends.d.ts +8 -0
- package/lib/typescript/platforms/android/mixer.d.ts +8 -0
- package/lib/typescript/platforms/ios/mixer.d.ts +9 -0
- package/lib/typescript/view/MixView.d.ts +52 -0
- package/lib/typescript/view/VeImageView.d.ts +19 -0
- package/lib/typescript/view/VeTextView.d.ts +7 -0
- package/lib/typescript/view/VeView.d.ts +7 -0
- package/lib/typescript/view/VeWebView.d.ts +7 -0
- package/lib/typescript/view/index.d.ts +5 -0
- package/package.json +1 -1
- package/react-native-velive-push.podspec +3 -3
- package/android/src/main/java/com/volcengine/velive/rn/push/ScreenCaptureHelper.java +0 -73
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import * as $p_a from '../android/index';
|
|
2
2
|
import * as $p_i from '../ios/index';
|
|
3
|
-
import { VeLiveVideoFrame, VeLiveAudioFrame } from './
|
|
4
|
-
import { Bitmap, JSONObject } from './types';
|
|
5
|
-
import { VeLivePusherStatus, VeLiveFirstFrameType, VeLiveNetworkQuality, VeLiveAudioPowerLevel, VeLivePusherStatistics } from './keytype';
|
|
3
|
+
import { VeLiveVideoFrame, VeLiveAudioFrame, VeLivePusherStatus, VeLiveFirstFrameType, VeLiveNetworkQuality, VeLiveAudioPowerLevel, VeLivePusherStatistics } from './keytype';
|
|
4
|
+
import { int, Bitmap, NSString, BOOL, JSONObject, NSDictionary } from './types';
|
|
6
5
|
/** {zh}
|
|
7
6
|
* @detail callback
|
|
8
7
|
* @brief 自定义的视频处理回调。
|
|
@@ -18,18 +17,18 @@ export interface VeLiveVideoFrameFilter {
|
|
|
18
17
|
export interface VeLiveVideoFrameListener {
|
|
19
18
|
/** {zh}
|
|
20
19
|
* @detail callback
|
|
21
|
-
* @brief 采集视频帧回调。只有当您通过 getObservedVideoFrameSource
|
|
22
|
-
* @order
|
|
23
|
-
* @param frame 视频帧数据,详情请参见 [VeLiveVideoFrame](
|
|
20
|
+
* @brief 采集视频帧回调。只有当您通过 [getObservedVideoFrameSource](#VeLiveVideoFrameListener-getobservedvideoframesource) 返回 `VeLiveVideoFrameSourceCapture` 时,才会触发该回调。
|
|
21
|
+
* @order 26
|
|
22
|
+
* @param frame 视频帧数据,详情请参见 [VeLiveVideoFrame](#VeLivePusherDef-VeLiveVideoFrameFilter)。
|
|
24
23
|
*
|
|
25
24
|
*/
|
|
26
25
|
|
|
27
26
|
onCaptureVideoFrame?(frame: VeLiveVideoFrame): void;
|
|
28
27
|
/** {zh}
|
|
29
28
|
* @detail callback
|
|
30
|
-
* @brief 编码前视频帧回调。只有当您通过 getObservedVideoFrameSource
|
|
31
|
-
* @order
|
|
32
|
-
* @param frame 视频帧数据,详情请参见 [VeLiveVideoFrame](
|
|
29
|
+
* @brief 编码前视频帧回调。只有当您通过 [getObservedVideoFrameSource](#VeLiveVideoFrameListener-getobservedvideoframesource) 返回 `VeLiveVideoFrameSourcePreEncode` 时,才会触发该回调。
|
|
30
|
+
* @order 27
|
|
31
|
+
* @param frame 视频帧数据,详情请参见 [VeLiveVideoFrame](147521#VeLiveVideoFrame)。
|
|
33
32
|
*
|
|
34
33
|
*/
|
|
35
34
|
|
|
@@ -44,6 +43,7 @@ export interface VeLiveMediaPlayerListener {
|
|
|
44
43
|
/** {zh}
|
|
45
44
|
* @detail callback
|
|
46
45
|
* @brief 开始播放的回调。
|
|
46
|
+
* @order 7
|
|
47
47
|
*
|
|
48
48
|
*/
|
|
49
49
|
|
|
@@ -52,6 +52,7 @@ export interface VeLiveMediaPlayerListener {
|
|
|
52
52
|
* @detail callback
|
|
53
53
|
* @brief 播放进度的回调,每 100ms 触发一次。
|
|
54
54
|
* @param timeMs 播放进度,单位为 ms。
|
|
55
|
+
* @order 8
|
|
55
56
|
*
|
|
56
57
|
*/
|
|
57
58
|
|
|
@@ -59,6 +60,7 @@ export interface VeLiveMediaPlayerListener {
|
|
|
59
60
|
/** {zh}
|
|
60
61
|
* @detail callback
|
|
61
62
|
* @brief 停止播放的回调。
|
|
63
|
+
* @order 9
|
|
62
64
|
*
|
|
63
65
|
*/
|
|
64
66
|
|
|
@@ -68,6 +70,7 @@ export interface VeLiveMediaPlayerListener {
|
|
|
68
70
|
* @brief 返错误状态的回调。
|
|
69
71
|
* @param code 错误码,详情请参见 [VeLivePusherErrorCode](147520#VeLivePusherErrorCode)。
|
|
70
72
|
* @param msg 错误消息。
|
|
73
|
+
* @order 10
|
|
71
74
|
*
|
|
72
75
|
*/
|
|
73
76
|
|
|
@@ -81,18 +84,18 @@ export interface VeLiveMediaPlayerListener {
|
|
|
81
84
|
export interface VeLiveAudioFrameListener {
|
|
82
85
|
/** {zh}
|
|
83
86
|
* @detail callback
|
|
84
|
-
* @brief 采集音频帧回调。只有当您通过 getObservedAudioFrameSource
|
|
85
|
-
* @order
|
|
86
|
-
* @param frame 音频帧数据,详情请参见 [VeLiveAudioFrame](
|
|
87
|
+
* @brief 采集音频帧回调。只有当您通过 [getObservedAudioFrameSource](#VeLiveAudioFrameListener-getobservedaudioframesource) 返回 `VeLiveAudioFrameSourceCapture` 时,才会触发该回调。
|
|
88
|
+
* @order 28
|
|
89
|
+
* @param frame 音频帧数据,详情请参见 [VeLiveAudioFrame](147521#VeLiveAudioFrame)。
|
|
87
90
|
*
|
|
88
91
|
*/
|
|
89
92
|
|
|
90
93
|
onCaptureAudioFrame?(frame: VeLiveAudioFrame): void;
|
|
91
94
|
/** {zh}
|
|
92
95
|
* @detail callback
|
|
93
|
-
* @brief 编码前音频帧回调。只有当您通过 getObservedAudioFrameSource
|
|
94
|
-
* @order
|
|
95
|
-
* @param frame 音频帧数据,详情请参见 [VeLiveAudioFrame](
|
|
96
|
+
* @brief 编码前音频帧回调。只有当您通过 [getObservedAudioFrameSource](#VeLiveAudioFrameListener-getobservedaudioframesource) 返回 `VeLiveAudioFrameSourcePreEncode` 时,才会触发该回调。
|
|
97
|
+
* @order 29
|
|
98
|
+
* @param frame 音频帧数据,详情请参见 [VeLiveAudioFrame](147521#VeLiveAudioFrame)。
|
|
96
99
|
*
|
|
97
100
|
*/
|
|
98
101
|
|
|
@@ -107,7 +110,8 @@ export interface VeLiveMediaPlayerFrameListener {
|
|
|
107
110
|
/** {zh}
|
|
108
111
|
* @detail callback
|
|
109
112
|
* @brief 播放器音频帧回调。
|
|
110
|
-
* @param frame 音频帧,详情请参见 [VeLiveAudioFrame](
|
|
113
|
+
* @param frame 音频帧,详情请参见 [VeLiveAudioFrame](147521#VeLiveAudioFrame)。
|
|
114
|
+
* @order 11
|
|
111
115
|
*
|
|
112
116
|
*/
|
|
113
117
|
|
|
@@ -115,7 +119,8 @@ export interface VeLiveMediaPlayerFrameListener {
|
|
|
115
119
|
/** {zh}
|
|
116
120
|
* @detail callback
|
|
117
121
|
* @brief 播放器视频帧回调。当完成一个新的视频帧的解码后,触发该回调。
|
|
118
|
-
* @param frame 视频帧数据,包含了帧的时间戳和格式等信息,详情请参见 [VeLiveVideoFrame](
|
|
122
|
+
* @param frame 视频帧数据,包含了帧的时间戳和格式等信息,详情请参见 [VeLiveVideoFrame](147521#VeLiveVideoFrame)。
|
|
123
|
+
* @order 12
|
|
119
124
|
*
|
|
120
125
|
*/
|
|
121
126
|
|
|
@@ -132,7 +137,7 @@ export interface VeLiveSnapshotListener {
|
|
|
132
137
|
* @brief 截图成功回调。
|
|
133
138
|
* @notes <br>
|
|
134
139
|
* 调用 snapshot{@link #VeLivePusher#snapshot} 截图成功后,会收到这个回调。
|
|
135
|
-
* @order
|
|
140
|
+
* @order 19
|
|
136
141
|
* @param image 视频的截图。
|
|
137
142
|
*
|
|
138
143
|
*/
|
|
@@ -165,7 +170,7 @@ export interface VeLivePusherObserver {
|
|
|
165
170
|
/** {zh}
|
|
166
171
|
* @detail callback
|
|
167
172
|
* @brief 推流状态变化回调。
|
|
168
|
-
* @order
|
|
173
|
+
* @order 16
|
|
169
174
|
* @param status 变化后的推流状态。详情请参见 [VeLivePusherStatus](147521#VeLivePusherStatus)。
|
|
170
175
|
*
|
|
171
176
|
*/
|
|
@@ -174,7 +179,7 @@ export interface VeLivePusherObserver {
|
|
|
174
179
|
/** {zh}
|
|
175
180
|
* @detail callback
|
|
176
181
|
* @brief 首帧视频回调,当推流器发送出第一帧视频时,触发该回调。
|
|
177
|
-
* @order
|
|
182
|
+
* @order 2
|
|
178
183
|
* @param type 首帧的类型,详情请参见 [VeLiveFirstFrameType](147521#VeLiveFirstFrameType)。
|
|
179
184
|
* @param timestampMs 时间戳,单位为 ms。
|
|
180
185
|
*
|
|
@@ -184,7 +189,7 @@ export interface VeLivePusherObserver {
|
|
|
184
189
|
/** {zh}
|
|
185
190
|
* @detail callback
|
|
186
191
|
* @brief 首帧音频回调,当推流器发送出第一帧音频时,触发该回调。
|
|
187
|
-
* @order
|
|
192
|
+
* @order 3
|
|
188
193
|
* @param type 首帧的类型,详情请参见 [VeLiveFirstFrameType](147521#VeLiveFirstFrameType)。
|
|
189
194
|
* @param timestampMs 时间戳,单位为 ms。
|
|
190
195
|
*
|
|
@@ -197,7 +202,7 @@ export interface VeLivePusherObserver {
|
|
|
197
202
|
* @param open 摄像头的新状态是否为开启。<br>
|
|
198
203
|
* - true:摄像头开启;
|
|
199
204
|
* - false:摄像头关闭。
|
|
200
|
-
* @order
|
|
205
|
+
* @order 4
|
|
201
206
|
*
|
|
202
207
|
*/
|
|
203
208
|
|
|
@@ -208,7 +213,7 @@ export interface VeLivePusherObserver {
|
|
|
208
213
|
* @param open 麦克风的新状态是否为开启。<br>
|
|
209
214
|
* - true:麦克风开启;
|
|
210
215
|
* - false:麦克风关闭。
|
|
211
|
-
* @order
|
|
216
|
+
* @order 5
|
|
212
217
|
*
|
|
213
218
|
*/
|
|
214
219
|
|
|
@@ -220,15 +225,15 @@ export interface VeLivePusherObserver {
|
|
|
220
225
|
* @param open 屏幕采集的新状态是否为开启。<br>
|
|
221
226
|
* - true:屏幕采集开启;
|
|
222
227
|
* - false:屏幕采集关闭。
|
|
223
|
-
* @order
|
|
228
|
+
* @order 14
|
|
224
229
|
*
|
|
225
230
|
*/
|
|
226
231
|
|
|
227
|
-
|
|
232
|
+
onScreenRecording?(): void;
|
|
228
233
|
/** {zh}
|
|
229
234
|
* @detail callback
|
|
230
235
|
* @brief 网络质量状态回调,当推流器检测到网络质量发生变化时,触发该回调。
|
|
231
|
-
* @order
|
|
236
|
+
* @order 17
|
|
232
237
|
* @param quality 变化后的网络质量。详情请参见 [VeLiveNetworkQuality](147521#VeLiveNetworkQuality)。
|
|
233
238
|
*
|
|
234
239
|
*/
|
|
@@ -237,10 +242,10 @@ export interface VeLivePusherObserver {
|
|
|
237
242
|
/** {zh}
|
|
238
243
|
* @detail callback
|
|
239
244
|
* @brief 音量等级回调,当推流器的音频音量等级发生变化时,触发该回调。
|
|
240
|
-
* @order
|
|
245
|
+
* @order 15
|
|
241
246
|
* @param level 变化后的音量等级。详情请参见 [VeLiveAudioPowerLevel](147521#VeLiveAudioPowerLevel)。
|
|
242
|
-
* @param value 当前音量的分贝值(dB
|
|
243
|
-
* -
|
|
247
|
+
* @param value 当前音量的分贝值(dB)。<br/>
|
|
248
|
+
* - \\-1 表示当前没有获取到对应的音量分贝值。
|
|
244
249
|
* - 分贝数小于 1,对应 VeLiveAudioPowerLevelSilent 级别
|
|
245
250
|
* - 分贝数大于 1 小于等于 15,对应 VeLiveAudioPowerLevelQuiet 级别
|
|
246
251
|
* - 分贝数大于 15 小于等于 30,对应 VeLiveAudioPowerLevelLight 级别
|
|
@@ -260,9 +265,9 @@ export interface VeLivePusherObserver {
|
|
|
260
265
|
export interface VeLivePusherStatisticsObserver {
|
|
261
266
|
/** {zh}
|
|
262
267
|
* @detail callback
|
|
263
|
-
* @brief
|
|
264
|
-
* @order
|
|
265
|
-
* @param statistics
|
|
268
|
+
* @brief 推流周期性统计信息回调,每 5s 回调一次,您可以调用 [setStatisticsObserver](147517#VeLivePusher-setstatisticsobserver) 修改回调时间间隔。
|
|
269
|
+
* @order 18
|
|
270
|
+
* @param statistics 周期性统计信息,详情请参见 [VeLivePusherStatistics](147521#VeLivePusherDef-VeLivePusherStatistics)。
|
|
266
271
|
*
|
|
267
272
|
*/
|
|
268
273
|
|
|
@@ -270,7 +275,7 @@ export interface VeLivePusherStatisticsObserver {
|
|
|
270
275
|
/** {zh}
|
|
271
276
|
* @detail callback
|
|
272
277
|
* @brief 周期性日志信息回调。
|
|
273
|
-
* @order
|
|
278
|
+
* @order 25
|
|
274
279
|
* @param logInfo 周期性日志信息。
|
|
275
280
|
*
|
|
276
281
|
*/
|
|
@@ -286,7 +291,7 @@ export interface VeLiveFileRecordingListener {
|
|
|
286
291
|
/** {zh}
|
|
287
292
|
* @detail callback
|
|
288
293
|
* @brief 直播录制开始回调。
|
|
289
|
-
* @order
|
|
294
|
+
* @order 22
|
|
290
295
|
*
|
|
291
296
|
*/
|
|
292
297
|
|
|
@@ -294,7 +299,7 @@ export interface VeLiveFileRecordingListener {
|
|
|
294
299
|
/** {zh}
|
|
295
300
|
* @detail callback
|
|
296
301
|
* @brief 直播录制停止回调。
|
|
297
|
-
* @order
|
|
302
|
+
* @order 23
|
|
298
303
|
*
|
|
299
304
|
*/
|
|
300
305
|
|
|
@@ -302,7 +307,7 @@ export interface VeLiveFileRecordingListener {
|
|
|
302
307
|
/** {zh}
|
|
303
308
|
* @detail callback
|
|
304
309
|
* @brief 直播录制错误回调。
|
|
305
|
-
* @order
|
|
310
|
+
* @order 24
|
|
306
311
|
* @param errorCode 错误码,详情请参见 [VeLivePusherErrorCode](147520#VeLivePusherErrorCode)。
|
|
307
312
|
* @param message 错误信息。
|
|
308
313
|
*
|
|
@@ -334,15 +339,15 @@ export declare class android_VeLiveMediaPlayerListener extends $p_a.VeLiveMediaP
|
|
|
334
339
|
protected _instance: VeLiveMediaPlayerListener;
|
|
335
340
|
constructor(_instance: VeLiveMediaPlayerListener);
|
|
336
341
|
onStart(info: $p_a.Bundle): void;
|
|
337
|
-
onProgress(timeMs:
|
|
342
|
+
onProgress(timeMs: int): void;
|
|
338
343
|
onStop(): void;
|
|
339
|
-
onError(code:
|
|
344
|
+
onError(code: int, msg: string): void;
|
|
340
345
|
}
|
|
341
346
|
export declare class ios_VeLiveMediaPlayerListener extends $p_i.VeLiveMediaPlayerListener {
|
|
342
347
|
protected _instance: VeLiveMediaPlayerListener;
|
|
343
348
|
constructor(_instance: VeLiveMediaPlayerListener);
|
|
344
349
|
onStart(): void;
|
|
345
|
-
onProgress(timeMS:
|
|
350
|
+
onProgress(timeMS: int): void;
|
|
346
351
|
onStop(): void;
|
|
347
352
|
onError(error: $p_i.NSError): void;
|
|
348
353
|
}
|
|
@@ -391,10 +396,10 @@ export declare class ios_VeLiveAudioFrameFilter extends $p_i.VeLiveAudioFrameFil
|
|
|
391
396
|
export declare class android_VeLivePusherObserver extends $p_a.VeLivePusherObserver {
|
|
392
397
|
protected _instance: VeLivePusherObserver;
|
|
393
398
|
constructor(_instance: VeLivePusherObserver);
|
|
394
|
-
onError(code:
|
|
399
|
+
onError(code: int, subCode: int, msg: string): void;
|
|
395
400
|
onStatusChange(status: $p_a.VeLivePusherStatus): void;
|
|
396
|
-
onFirstVideoFrame(type: $p_a.VeLiveFirstFrameType, timestampMs:
|
|
397
|
-
onFirstAudioFrame(type: $p_a.VeLiveFirstFrameType, timestampMs:
|
|
401
|
+
onFirstVideoFrame(type: $p_a.VeLiveFirstFrameType, timestampMs: int): void;
|
|
402
|
+
onFirstAudioFrame(type: $p_a.VeLiveFirstFrameType, timestampMs: int): void;
|
|
398
403
|
onCameraOpened(open: boolean): void;
|
|
399
404
|
onMicrophoneOpened(open: boolean): void;
|
|
400
405
|
onScreenRecording(open: boolean): void;
|
|
@@ -404,12 +409,12 @@ export declare class android_VeLivePusherObserver extends $p_a.VeLivePusherObser
|
|
|
404
409
|
export declare class ios_VeLivePusherObserver extends $p_i.VeLivePusherObserver {
|
|
405
410
|
protected _instance: VeLivePusherObserver;
|
|
406
411
|
constructor(_instance: VeLivePusherObserver);
|
|
407
|
-
onError$subcode$message(code:
|
|
412
|
+
onError$subcode$message(code: int, subcode: int, msg: NSString): void;
|
|
408
413
|
onStatusChange(status: $p_i.VeLivePushStatus): void;
|
|
409
414
|
onFirstVideoFrame$timestampMs(type: $p_i.VeLiveFirstFrameType, timestampMs: $p_i.int64_t): void;
|
|
410
415
|
onFirstAudioFrame$timestampMs(type: $p_i.VeLiveFirstFrameType, timestampMs: $p_i.int64_t): void;
|
|
411
|
-
onCameraOpened(open:
|
|
412
|
-
onMicrophoneOpened(open:
|
|
416
|
+
onCameraOpened(open: BOOL): void;
|
|
417
|
+
onMicrophoneOpened(open: BOOL): void;
|
|
413
418
|
onNetworkQuality(quality: $p_i.VeLiveNetworkQuality): void;
|
|
414
419
|
onAudioPowerQuality$value(level: $p_i.VeLiveAudioPowerLevel, value: $p_i.float): void;
|
|
415
420
|
}
|
|
@@ -417,25 +422,25 @@ export declare class android_VeLivePusherStatisticsObserver extends $p_a.VeLiveP
|
|
|
417
422
|
protected _instance: VeLivePusherStatisticsObserver;
|
|
418
423
|
constructor(_instance: VeLivePusherStatisticsObserver);
|
|
419
424
|
onStatistics(statistics: $p_a.VeLivePusherStatistics): void;
|
|
420
|
-
onLogMonitor(logInfo:
|
|
425
|
+
onLogMonitor(logInfo: JSONObject): void;
|
|
421
426
|
}
|
|
422
427
|
export declare class ios_VeLivePusherStatisticsObserver extends $p_i.VeLivePusherStatisticsObserver {
|
|
423
428
|
protected _instance: VeLivePusherStatisticsObserver;
|
|
424
429
|
constructor(_instance: VeLivePusherStatisticsObserver);
|
|
425
430
|
onStatistics(statistics: $p_i.VeLivePusherStatistics): void;
|
|
426
|
-
onLogMonitor(logInfo:
|
|
431
|
+
onLogMonitor(logInfo: NSDictionary): void;
|
|
427
432
|
}
|
|
428
433
|
export declare class android_VeLiveFileRecordingListener extends $p_a.VeLiveFileRecordingListener {
|
|
429
434
|
protected _instance: VeLiveFileRecordingListener;
|
|
430
435
|
constructor(_instance: VeLiveFileRecordingListener);
|
|
431
436
|
onFileRecordingStarted(): void;
|
|
432
437
|
onFileRecordingStopped(): void;
|
|
433
|
-
onFileRecordingError(errorCode:
|
|
438
|
+
onFileRecordingError(errorCode: int, message: string): void;
|
|
434
439
|
}
|
|
435
440
|
export declare class ios_VeLiveFileRecordingListener extends $p_i.VeLiveFileRecordingListener {
|
|
436
441
|
protected _instance: VeLiveFileRecordingListener;
|
|
437
442
|
constructor(_instance: VeLiveFileRecordingListener);
|
|
438
443
|
onFileRecordingStarted(): void;
|
|
439
444
|
onFileRecordingStopped(): void;
|
|
440
|
-
onFileRecordingError$message(errorCode:
|
|
445
|
+
onFileRecordingError$message(errorCode: int, msg: NSString): void;
|
|
441
446
|
}
|
|
@@ -10,67 +10,100 @@ export declare enum VeLivePusherErrorCode {
|
|
|
10
10
|
* @brief 无错误。
|
|
11
11
|
*
|
|
12
12
|
*/
|
|
13
|
+
|
|
13
14
|
VeLivePusherSuccess = 0,
|
|
14
15
|
/** {zh}
|
|
15
16
|
* @brief License 错误,可能 License 集成错误或 License 过期,请检查 License 集成方式和有效性。
|
|
16
17
|
*
|
|
17
18
|
*/
|
|
19
|
+
|
|
18
20
|
VeLivePusherInvalidLicense = -1,
|
|
19
21
|
/** {zh}
|
|
20
22
|
* @brief 参数错误,请检查入参,并重新调用。
|
|
21
23
|
*
|
|
22
24
|
*/
|
|
25
|
+
|
|
23
26
|
VeLivePusherInvalidParameter = -2,
|
|
24
27
|
/** {zh}
|
|
25
28
|
* @brief 视频采集错误,可能未开启设备视频采集权限,请检查权限是否获取。
|
|
26
29
|
*
|
|
27
30
|
*/
|
|
31
|
+
|
|
28
32
|
VeLivePusherVideoCaptureError = -3,
|
|
29
33
|
/** {zh}
|
|
30
34
|
* @brief 音频采集错误,可能未开启设备麦克风采集权限,请检查权限是否获取。
|
|
31
35
|
*
|
|
32
36
|
*/
|
|
37
|
+
|
|
33
38
|
VeLivePusherAudioCaptureError = -4,
|
|
34
39
|
/** {zh}
|
|
35
40
|
* @brief 视频编码错误,可能配置了当前设备不支持的视频编码方式,请检查编码参数,并重新调用。如果故障未排除,请联系火山引擎[技术支持](https://console.volcengine.com/workorder/create?step=3&SubProductID=P00000076)。
|
|
36
41
|
*
|
|
37
42
|
*/
|
|
43
|
+
|
|
38
44
|
VeLivePusherVideoEncoderError = -5,
|
|
39
45
|
/** {zh}
|
|
40
46
|
* @brief 音频编码错误,可能配置了当前设备不支持的音频编码方式,请检查编码参数,并重新调用。如果故障未排除,请联系火山引擎[技术支持](https://console.volcengine.com/workorder/create?step=3&SubProductID=P00000076)。
|
|
41
47
|
*
|
|
42
48
|
*/
|
|
49
|
+
|
|
43
50
|
VeLivePusherAudioEncoderError = -6,
|
|
44
51
|
/** {zh}
|
|
45
52
|
* @brief 网络发送错误,可能当前网络链路不通,或者开启了代理和关闭了网络权限,请检查网络后重新调用。如果故障未排除,请联系火山引擎[技术支持](https://console.volcengine.com/workorder/create?step=3&SubProductID=P00000076)。
|
|
46
53
|
*
|
|
47
54
|
*/
|
|
55
|
+
|
|
48
56
|
VeLivePusherTransportError = -7,
|
|
49
57
|
/** {zh}
|
|
50
58
|
* @brief 视频特效错误,请检查视频特效 SDK 是否已经集成并且初试化成功。检查特效资源路径是否配置正确。如果故障未排除,请联系火山引擎[技术支持](https://console.volcengine.com/workorder/create?step=3&SubProductID=P00000076)。
|
|
51
59
|
*
|
|
52
60
|
*/
|
|
61
|
+
|
|
53
62
|
VeLivePusherVideoEffectError = -8,
|
|
54
63
|
/** {zh}
|
|
55
64
|
* @brief 音频模块错误,请联系火山引擎[技术支持](https://console.volcengine.com/workorder/create?step=3&SubProductID=P00000076)。
|
|
56
65
|
*
|
|
57
66
|
*/
|
|
67
|
+
|
|
58
68
|
VeLivePusherAudioDeviceError = -9,
|
|
59
69
|
/** {zh}
|
|
60
70
|
* @platform android
|
|
61
71
|
* @brief 您使用的基础版 License 暂不支持 H.265 硬件编码,请登录火山引擎控制台获取高级版 License。
|
|
62
72
|
*
|
|
63
73
|
*/
|
|
74
|
+
|
|
64
75
|
VeLivePusherLicenseUnsupportedH265 = -10,
|
|
65
76
|
/** {zh}
|
|
66
77
|
* @brief 其他错误类型,请联系火山引擎[技术支持](https://console.volcengine.com/workorder/create?step=3&SubProductID=P00000076)。
|
|
67
78
|
*
|
|
68
79
|
*/
|
|
69
|
-
|
|
80
|
+
|
|
81
|
+
VeLivePusherError = -100,
|
|
82
|
+
/** {zh}
|
|
83
|
+
* @platform android
|
|
84
|
+
* @brief 当前系统版本不支持屏幕采集功能
|
|
85
|
+
*
|
|
86
|
+
*/
|
|
87
|
+
|
|
88
|
+
VeLivePusherScreenCaptureNotSupportError = -99,
|
|
89
|
+
/** {zh}
|
|
90
|
+
* @platform android
|
|
91
|
+
* @brief 屏幕采集权限的获取被用户拒绝
|
|
92
|
+
*
|
|
93
|
+
*/
|
|
94
|
+
|
|
95
|
+
VeLivePusherScreenCaptureStartError = -98,
|
|
96
|
+
/** {zh}
|
|
97
|
+
* @platform android
|
|
98
|
+
* @brief 屏幕采集被系统中断,请联系火山引擎[技术支持](https://console.volcengine.com/workorder/create?step=3&SubProductID=P00000076)。
|
|
99
|
+
*
|
|
100
|
+
*/
|
|
101
|
+
|
|
102
|
+
VeLivePusherScreenCaptureInterruptedError = -97
|
|
70
103
|
}
|
|
71
104
|
export declare class t_VeLivePusherErrorCode {
|
|
72
|
-
static
|
|
73
|
-
static
|
|
74
|
-
static
|
|
75
|
-
static
|
|
105
|
+
static code_to_android(value: VeLivePusherErrorCode): $p_a.VeLivePusherErrorCode;
|
|
106
|
+
static android_to_code(value: $p_a.VeLivePusherErrorCode): VeLivePusherErrorCode;
|
|
107
|
+
static code_to_ios(value: VeLivePusherErrorCode): $p_i.VeLivePusherCode;
|
|
108
|
+
static ios_to_code(value: $p_i.VeLivePusherCode): VeLivePusherErrorCode;
|
|
76
109
|
}
|