@volcengine/react-native-live-push 1.1.3-rc.1 → 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
|
@@ -0,0 +1,242 @@
|
|
|
1
|
+
import { VeLivePusherStatistics, VeLiveVideoFrame, VeLiveAudioFrame, VeLivePushStatus, VeLiveFirstFrameType, VeLiveNetworkQuality, VeLiveAudioPowerLevel } from './keytype';
|
|
2
|
+
import { NSDictionary, int, NSString, long, NSError, UIImage, int64_t, BOOL, float } from './types';
|
|
3
|
+
export declare class VeLivePusherStatisticsObserver {
|
|
4
|
+
/** {zh}
|
|
5
|
+
* @detail callback
|
|
6
|
+
* @brief 推流周期性统计信息回调。
|
|
7
|
+
* @order 8
|
|
8
|
+
* @param statistics 周期性统计信息,默认每 5s 回调一次,详情请参见 [VeLivePusherStatistics](155321#VeLivePusherStatistics)。
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
onStatistics?(statistics: VeLivePusherStatistics): void;
|
|
12
|
+
/** {zh}
|
|
13
|
+
* @detail callback
|
|
14
|
+
* @brief 周期性日志信息回调。
|
|
15
|
+
* @order 9
|
|
16
|
+
* @param logInfo 周期性日志信息。
|
|
17
|
+
*/
|
|
18
|
+
|
|
19
|
+
onLogMonitor?(logInfo: NSDictionary): void;
|
|
20
|
+
}
|
|
21
|
+
export declare class VeLiveMediaPlayerFrameListener {
|
|
22
|
+
/** {zh}
|
|
23
|
+
* @detail callback
|
|
24
|
+
* @brief 播放器视频帧回调。当完成一个新的视频帧的解码后,触发该回调。
|
|
25
|
+
* @param videoFrame 视频帧数据,包含了帧的时间戳和格式等信息,详情请参见 [VeLiveVideoFrame](155321#VeLiveVideoFrame)。
|
|
26
|
+
*/
|
|
27
|
+
|
|
28
|
+
onVideoFrame?(videoFrame: VeLiveVideoFrame): void;
|
|
29
|
+
/** {zh}
|
|
30
|
+
* @detail callback
|
|
31
|
+
* @brief 播放器音频帧回调。
|
|
32
|
+
* @param audioFrame 音频帧,详情请参见 [VeLiveAudioFrame](155321#VeLiveAudioFrame)。
|
|
33
|
+
*/
|
|
34
|
+
|
|
35
|
+
onAudioFrame?(audioFrame: VeLiveAudioFrame): void;
|
|
36
|
+
}
|
|
37
|
+
export declare class VeLiveFileRecordingListener {
|
|
38
|
+
/** {zh}
|
|
39
|
+
* @detail callback
|
|
40
|
+
* @brief 直播录制开始回调。
|
|
41
|
+
* @order 10
|
|
42
|
+
*/
|
|
43
|
+
|
|
44
|
+
onFileRecordingStarted?(): void;
|
|
45
|
+
/** {zh}
|
|
46
|
+
* @detail callback
|
|
47
|
+
* @brief 直播录制停止回调。
|
|
48
|
+
* @order 11
|
|
49
|
+
*/
|
|
50
|
+
|
|
51
|
+
onFileRecordingStopped?(): void;
|
|
52
|
+
/** {zh}
|
|
53
|
+
* @detail callback
|
|
54
|
+
* @brief 直播录制错误回调。
|
|
55
|
+
* @order 12
|
|
56
|
+
* @param errorCode 错误码,详情请参见 [VeLivePusherCode](155320#VeLivePusherCode)。
|
|
57
|
+
* @param msg 错误信息。
|
|
58
|
+
*/
|
|
59
|
+
|
|
60
|
+
onFileRecordingError$message?(errorCode: int, msg: NSString): void;
|
|
61
|
+
}
|
|
62
|
+
export declare class VeLiveScreenCaptureStatusObserver {
|
|
63
|
+
/** {zh}
|
|
64
|
+
* @detail callback
|
|
65
|
+
* @brief 录屏推流开始的回调。当 `[RPBroadcastSampleHandler startBroadcast]` 回调被触发时,会同时触发该回调。
|
|
66
|
+
*/
|
|
67
|
+
|
|
68
|
+
broadcastStarted?(): void;
|
|
69
|
+
/** {zh}
|
|
70
|
+
* @detail callback
|
|
71
|
+
* @brief 屏幕推流暂停的回调。当 `[RPBroadcastSampleHandler pauseBroadcast]` 回调被触发时,会同时触发该回调。
|
|
72
|
+
*/
|
|
73
|
+
|
|
74
|
+
broadcastPaused?(): void;
|
|
75
|
+
/** {zh}
|
|
76
|
+
* @detail callback
|
|
77
|
+
* @brief 屏幕推流恢复的回调。当 `[RPBroadcastSampleHandler resumeBroadcast]` 回调被触发时,会同时触发该回调。
|
|
78
|
+
*/
|
|
79
|
+
|
|
80
|
+
broadcastResumed?(): void;
|
|
81
|
+
/** {zh}
|
|
82
|
+
* @detail callback
|
|
83
|
+
* @brief 屏幕推流结束的回调。当 `[RPBroadcastSampleHandler finishBroadcast]` 回调被触发时,会同时触发该回调。
|
|
84
|
+
*/
|
|
85
|
+
|
|
86
|
+
broadcastFinished?(): void;
|
|
87
|
+
}
|
|
88
|
+
export declare class VeLiveVideoFrameFilter {
|
|
89
|
+
}
|
|
90
|
+
export declare class VeLiveVideoFrameListener {
|
|
91
|
+
/** {zh}
|
|
92
|
+
* @detail callback
|
|
93
|
+
* @brief 采集视频帧回调。只有当您通过 [getObservedVideoFrameSource](#VeLiveVideoFrameListener-getobservedvideoframesource) 返回 `VeLiveVideoFrameSourceCapture` 时,才会触发该回调。
|
|
94
|
+
* @param frame 视频帧数据,详情请参见 [VeLiveVideoFrame](155321#VeLiveVideoFrame)。
|
|
95
|
+
*/
|
|
96
|
+
|
|
97
|
+
onCaptureVideoFrame?(frame: VeLiveVideoFrame): void;
|
|
98
|
+
/** {zh}
|
|
99
|
+
* @detail callback
|
|
100
|
+
* @brief 编码前视频帧回调。只有当您通过 [getObservedVideoFrameSource](#VeLiveVideoFrameListener-getobservedvideoframesource) 返回 `VeLiveVideoFrameSourcePreEncode` 时,才会触发该回调。
|
|
101
|
+
* @param frame 视频帧数据,详情请参见 [VeLiveVideoFrame](155321#VeLiveVideoFrame)。
|
|
102
|
+
*/
|
|
103
|
+
|
|
104
|
+
onPreEncodeVideoFrame?(frame: VeLiveVideoFrame): void;
|
|
105
|
+
}
|
|
106
|
+
export declare class VeLiveAudioFrameListener {
|
|
107
|
+
/** {zh}
|
|
108
|
+
* @detail callback
|
|
109
|
+
* @brief 采集音频帧回调。只有当您通过 [getObservedAudioFrameSource](#VeLiveAudioFrameListener-getobservedaudioframesource) 返回 `VeLiveAudioFrameSourceCapture` 时,才会触发该回调。
|
|
110
|
+
* @param frame 音频帧数据,详情请参见 [VeLiveAudioFrame](155321#VeLiveAudioFrame)。
|
|
111
|
+
*/
|
|
112
|
+
|
|
113
|
+
onCaptureAudioFrame?(frame: VeLiveAudioFrame): void;
|
|
114
|
+
/** {zh}
|
|
115
|
+
* @detail callback
|
|
116
|
+
* @brief 编码前音频帧回调。只有当您通过 [getObservedAudioFrameSource](#VeLiveAudioFrameListener-getobservedaudioframesource) 返回 `VeLiveAudioFrameSourcePreEncode` 时,才会触发该回调。
|
|
117
|
+
* @param frame 音频帧数据,详情请参见 [VeLiveAudioFrame](155321#VeLiveAudioFrame)。
|
|
118
|
+
*/
|
|
119
|
+
|
|
120
|
+
onPreEncodeAudioFrame?(frame: VeLiveAudioFrame): void;
|
|
121
|
+
}
|
|
122
|
+
export declare class VeLiveMediaPlayerListener {
|
|
123
|
+
/** {zh}
|
|
124
|
+
* @detail callback
|
|
125
|
+
* @brief 开始播放的回调。
|
|
126
|
+
*/
|
|
127
|
+
|
|
128
|
+
onStart?(): void;
|
|
129
|
+
/** {zh}
|
|
130
|
+
* @detail callback
|
|
131
|
+
* @brief 播放进度的回调,每 100ms 触发一次。
|
|
132
|
+
* @param timeMS 播放进度,单位为 ms。
|
|
133
|
+
*/
|
|
134
|
+
|
|
135
|
+
onProgress?(timeMS: long): void;
|
|
136
|
+
/** {zh}
|
|
137
|
+
* @detail callback
|
|
138
|
+
* @brief 停止播放的回调。
|
|
139
|
+
*/
|
|
140
|
+
|
|
141
|
+
onStop?(): void;
|
|
142
|
+
/** {zh}
|
|
143
|
+
* @detail callback
|
|
144
|
+
* @brief 返错误状态的回调。
|
|
145
|
+
* @param error 错误消息。
|
|
146
|
+
*/
|
|
147
|
+
|
|
148
|
+
onError?(error: NSError): void;
|
|
149
|
+
}
|
|
150
|
+
export declare class VeLiveAudioFrameFilter {
|
|
151
|
+
}
|
|
152
|
+
export declare class VeLiveSnapshotListener {
|
|
153
|
+
/** {zh}
|
|
154
|
+
* @detail callback
|
|
155
|
+
* @brief 截图成功回调。调用 [snapshot:](155318#VeLivePusher-snapshot) 截图成功后,会收到这个回调。
|
|
156
|
+
* @param image 视频的截图。
|
|
157
|
+
*/
|
|
158
|
+
|
|
159
|
+
onSnapshotComplete?(image: UIImage): void;
|
|
160
|
+
}
|
|
161
|
+
export declare class VeLivePusherObserver {
|
|
162
|
+
/** {zh}
|
|
163
|
+
* @detail callback
|
|
164
|
+
* @brief 推流错误回调。
|
|
165
|
+
* @order 0
|
|
166
|
+
* @param code 错误码,详情请参见 [VeLivePusherCode](155320#VeLivePusherCode)。
|
|
167
|
+
* @param subcode 子错误码,详情请参见 [VeLivePusherErrorCode](155320#VeLivePusherErrorCode)。
|
|
168
|
+
* @param msg 错误信息。
|
|
169
|
+
*/
|
|
170
|
+
|
|
171
|
+
onError$subcode$message?(code: int, subcode: int, msg: NSString): void;
|
|
172
|
+
/** {zh}
|
|
173
|
+
* @detail callback
|
|
174
|
+
* @brief 推流状态变化回调。
|
|
175
|
+
* @order 1
|
|
176
|
+
* @param status 变化后的推流状态,详情请参见 [VeLivePushStatus](155321#VeLivePushStatus)。
|
|
177
|
+
*/
|
|
178
|
+
|
|
179
|
+
onStatusChange?(status: VeLivePushStatus): void;
|
|
180
|
+
/** {zh}
|
|
181
|
+
* @detail callback
|
|
182
|
+
* @brief 首帧视频回调,当推流器发送出第一帧视频时,触发该回调。
|
|
183
|
+
* @order 2
|
|
184
|
+
* @param type 首帧的类型,详情请参见 [VeLiveFirstFrameType](155321#VeLiveFirstFrameType)。
|
|
185
|
+
* @param timestampMs 时间戳,单位为 ms。
|
|
186
|
+
*/
|
|
187
|
+
|
|
188
|
+
onFirstVideoFrame$timestampMs?(type: VeLiveFirstFrameType, timestampMs: int64_t): void;
|
|
189
|
+
/** {zh}
|
|
190
|
+
* @detail callback
|
|
191
|
+
* @brief 首帧音频回调,当推流器发送出第一帧音频时,触发该回调。
|
|
192
|
+
* @order 3
|
|
193
|
+
* @param type 首帧的类型,详情请参见 [VeLiveFirstFrameType](155321#VeLiveFirstFrameType)。
|
|
194
|
+
* @param timestampMs 时间戳,单位为 ms。
|
|
195
|
+
*/
|
|
196
|
+
|
|
197
|
+
onFirstAudioFrame$timestampMs?(type: VeLiveFirstFrameType, timestampMs: int64_t): void;
|
|
198
|
+
/** {zh}
|
|
199
|
+
* @detail callback
|
|
200
|
+
* @brief 摄像头开启/关闭回调,当推流器的摄像头开启或关闭时,触发该回调。
|
|
201
|
+
* @param open 摄像头的新状态是否为开启。<br>
|
|
202
|
+
* - YES:摄像头开启;
|
|
203
|
+
* - NO:摄像头关闭。
|
|
204
|
+
* @order 4
|
|
205
|
+
*/
|
|
206
|
+
|
|
207
|
+
onCameraOpened?(open: BOOL): void;
|
|
208
|
+
/** {zh}
|
|
209
|
+
* @detail callback
|
|
210
|
+
* @brief 麦克风开启/关闭回调,当推流器的麦克风开启或关闭时,触发该回调。
|
|
211
|
+
* @param open 麦克风的新状态是否为开启。<br>
|
|
212
|
+
* - YES:麦克风开启;
|
|
213
|
+
* - NO:麦克风关闭。
|
|
214
|
+
* @order 5
|
|
215
|
+
*/
|
|
216
|
+
|
|
217
|
+
onMicrophoneOpened?(open: BOOL): void;
|
|
218
|
+
/** {zh}
|
|
219
|
+
* @detail callback
|
|
220
|
+
* @brief 网络质量状态回调,当推流器检测到网络质量发生变化时,触发该回调。
|
|
221
|
+
* @order 6
|
|
222
|
+
* @param quality 变化后的网络质量。详情请参见 [VeLiveNetworkQuality](155321#VeLiveNetworkQuality)。
|
|
223
|
+
*/
|
|
224
|
+
|
|
225
|
+
onNetworkQuality?(quality: VeLiveNetworkQuality): void;
|
|
226
|
+
/** {zh}
|
|
227
|
+
* @detail callback
|
|
228
|
+
* @brief 音量等级回调,当推流器采集的音频音量等级发生变化时,触发该回调。
|
|
229
|
+
* @order 7
|
|
230
|
+
* @param level 变化后的音量等级。详情请参见 [VeLiveAudioPowerLevel](155321#VeLiveAudioPowerLevel)。
|
|
231
|
+
* @param value 当前音量的分贝值(dB)。
|
|
232
|
+
* - -1 表示当前没有获取到对应的音量分贝值;
|
|
233
|
+
* - 分贝数小于 1,对应 VeLiveAudioPowerLevelSilent 级别;
|
|
234
|
+
* - 分贝数大于 1 小于等于 15,对应 VeLiveAudioPowerLevelQuiet 级别;
|
|
235
|
+
* - 分贝数大于 15 小于等于 30,对应 VeLiveAudioPowerLevelLight 级别;
|
|
236
|
+
* - 分贝数大于 30 小于等于 60,对应 VeLiveAudioPowerLevelNormal 级别;
|
|
237
|
+
* - 分贝数大于 60 小于等于 85,对应 VeLiveAudioPowerLevelLoud 级别;
|
|
238
|
+
* - 分贝数大于 85,对应 VeLiveAudioPowerLevelNoisy 级别。
|
|
239
|
+
*/
|
|
240
|
+
|
|
241
|
+
onAudioPowerQuality$value?(level: VeLiveAudioPowerLevel, value: float): void;
|
|
242
|
+
}
|
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
export declare enum VeLivePusherErrorCode {
|
|
2
|
+
/** {zh}
|
|
3
|
+
* @brief License 验证错误,可能是由于 License 无效或过期。
|
|
4
|
+
*
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
VeLivePusherInvalidLicenseSubErrorCode = -100,
|
|
8
|
+
/** {zh}
|
|
9
|
+
* @brief 您使用的基础版 License 暂不支持 H.265 硬件编码,请登录火山引擎控制台获取高级版 License。
|
|
10
|
+
*
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
VeLivePusherInvalidLicenseUnsupportH265 = -101,
|
|
14
|
+
/** {zh}
|
|
15
|
+
* @brief 参数错误,可能是由于传入的参数类型或值不符合预期。
|
|
16
|
+
*
|
|
17
|
+
*/
|
|
18
|
+
|
|
19
|
+
VeLivePusherInvalidParameterSubErrorCode = -200,
|
|
20
|
+
/** {zh}
|
|
21
|
+
* @brief 参数错误,屏幕推流传入的 AppGroupIdentifier 错误。
|
|
22
|
+
*
|
|
23
|
+
*/
|
|
24
|
+
|
|
25
|
+
VeLivePusherInvalidParameterScreenCaptureAppGroupIdentifierSubErrorCode = -201,
|
|
26
|
+
/** {zh}
|
|
27
|
+
* @brief 视频采集类型错误,可能是由于不支持的视频采集类型或者设备不兼容。
|
|
28
|
+
*
|
|
29
|
+
*/
|
|
30
|
+
|
|
31
|
+
VeLivePusherVideoCaptureTypeError = -301,
|
|
32
|
+
/** {zh}
|
|
33
|
+
* @brief 视频采集权限错误,可能是由于应用没有获取到视频设备的访问权限。
|
|
34
|
+
*
|
|
35
|
+
*/
|
|
36
|
+
|
|
37
|
+
VeLivePusherVideoCapturePermissionError = -302,
|
|
38
|
+
/** {zh}
|
|
39
|
+
* @brief 音频采集类型错误,可能是由于不支持的音频采集类型或者设备不兼容。
|
|
40
|
+
*
|
|
41
|
+
*/
|
|
42
|
+
|
|
43
|
+
VeLivePusherAudioCaptureTypeError = -401,
|
|
44
|
+
/** {zh}
|
|
45
|
+
* @brief 音频采集权限错误,可能是由于应用没有获取到音频设备的访问权限。
|
|
46
|
+
*
|
|
47
|
+
*/
|
|
48
|
+
|
|
49
|
+
VeLivePusherAudioCapturePermissionError = -402,
|
|
50
|
+
/** {zh}
|
|
51
|
+
* @brief 视频编码错误,可能是由于视频编码器的配置问题或者编码过程中出现错误。
|
|
52
|
+
*
|
|
53
|
+
*/
|
|
54
|
+
|
|
55
|
+
VeLivePusherVideoEncoderSubErrorCode = -500,
|
|
56
|
+
/** {zh}
|
|
57
|
+
* @brief 音频编码错误,可能是由于音频编码器的配置问题或者编码过程中出现错误。
|
|
58
|
+
*
|
|
59
|
+
*/
|
|
60
|
+
|
|
61
|
+
VeLivePusherAudioEncoderSubErrorCode = -600,
|
|
62
|
+
/** {zh}
|
|
63
|
+
* @brief 网络错误,可能是由于网络连接的问题,如网络不稳定、网络延迟过高等。
|
|
64
|
+
*
|
|
65
|
+
*/
|
|
66
|
+
|
|
67
|
+
VeLivePusherTransportSubErrorCode = -700,
|
|
68
|
+
/** {zh}
|
|
69
|
+
* @brief 视频特效错误,可能是由于视频特效处理中出现的问题。
|
|
70
|
+
*
|
|
71
|
+
*/
|
|
72
|
+
|
|
73
|
+
VeLivePusherVideoEffectSubErrorCode = -800,
|
|
74
|
+
/** {zh}
|
|
75
|
+
* @brief 音频模块错误,可能是由于音频模块处理过程中出现的问题。
|
|
76
|
+
*
|
|
77
|
+
*/
|
|
78
|
+
|
|
79
|
+
VeLivePusherAudioDeviceSubErrorCode = -900,
|
|
80
|
+
/** {zh}
|
|
81
|
+
* @brief 内部错误,请通过提交工单联系[技术支持](https://console.volcengine.com/workorder/create?step=2&SubProductID=P00000076),获取帮助。
|
|
82
|
+
*
|
|
83
|
+
*/
|
|
84
|
+
|
|
85
|
+
VeLivePusherInternalError = -10001
|
|
86
|
+
}
|
|
87
|
+
export declare enum VeLivePusherCode {
|
|
88
|
+
/** {zh}
|
|
89
|
+
* @brief 无错误。
|
|
90
|
+
*
|
|
91
|
+
*/
|
|
92
|
+
|
|
93
|
+
VeLivePusherSuccess = 0,
|
|
94
|
+
/** {zh}
|
|
95
|
+
* @brief License 错误,可能 License 集成错误或 License 过期,请检查 License 集成方式和有效性。
|
|
96
|
+
*
|
|
97
|
+
*/
|
|
98
|
+
|
|
99
|
+
VeLivePusherInvalidLicense = -1,
|
|
100
|
+
/** {zh}
|
|
101
|
+
* @brief 参数错误,请检查入参,并重新调用。
|
|
102
|
+
*
|
|
103
|
+
*/
|
|
104
|
+
|
|
105
|
+
VeLivePusherInvalidParameter = -2,
|
|
106
|
+
/** {zh}
|
|
107
|
+
* @brief 视频采集错误,可能未开启设备视频采集权限,请检查权限是否获取。
|
|
108
|
+
*
|
|
109
|
+
*/
|
|
110
|
+
|
|
111
|
+
VeLivePusherVideoCaptureError = -3,
|
|
112
|
+
/** {zh}
|
|
113
|
+
* @brief 音频采集错误,可能未开启设备麦克风采集权限,请检查权限是否获取。
|
|
114
|
+
*
|
|
115
|
+
*/
|
|
116
|
+
|
|
117
|
+
VeLivePusherAudioCaptureError = -4,
|
|
118
|
+
/** {zh}
|
|
119
|
+
* @brief 视频编码错误,可能配置了当前设备不支持的视频编码方式,请检查编码参数,并重新调用。如果故障未排除,请联系火山引擎[技术支持](https://console.volcengine.com/workorder/create?step=3&SubProductID=P00000076&FlowKey=iNcpuNlwBHbovcjeWlKP)。
|
|
120
|
+
*
|
|
121
|
+
*/
|
|
122
|
+
|
|
123
|
+
VeLivePusherVideoEncoderError = -5,
|
|
124
|
+
/** {zh}
|
|
125
|
+
* @brief 音频编码错误,可能配置了当前设备不支持的音频编码方式,请检查编码参数,并重新调用。如果故障未排除,请联系火山引擎[技术支持](https://console.volcengine.com/workorder/create?step=3&SubProductID=P00000076&FlowKey=iNcpuNlwBHbovcjeWlKP)。
|
|
126
|
+
*
|
|
127
|
+
*/
|
|
128
|
+
|
|
129
|
+
VeLivePusherAudioEncoderError = -6,
|
|
130
|
+
/** {zh}
|
|
131
|
+
* @brief 网络发送错误,可能当前网络链路不通,或者开启了代理和关闭了网络权限,请检查网络后重新调用。如果故障未排除,请联系火山引擎[技术支持](https://console.volcengine.com/workorder/create?step=3&SubProductID=P00000076&FlowKey=iNcpuNlwBHbovcjeWlKP)。
|
|
132
|
+
*
|
|
133
|
+
*/
|
|
134
|
+
|
|
135
|
+
VeLivePusherTransportError = -7,
|
|
136
|
+
/** {zh}
|
|
137
|
+
* @brief 视频特效错误,请检查视频特效 SDK 是否已经集成并且初试化成功。检查特效资源路径是否配置正确。如果故障未排除,请联系火山引擎[技术支持](https://console.volcengine.com/workorder/create?step=3&SubProductID=P00000076&FlowKey=iNcpuNlwBHbovcjeWlKP)。
|
|
138
|
+
*
|
|
139
|
+
*/
|
|
140
|
+
|
|
141
|
+
VeLivePusherVideoEffectError = -8,
|
|
142
|
+
/** {zh}
|
|
143
|
+
* @brief 音频模块错误,请联系火山引擎[技术支持](https://console.volcengine.com/workorder/create?step=3&SubProductID=P00000076&FlowKey=iNcpuNlwBHbovcjeWlKP)。
|
|
144
|
+
*
|
|
145
|
+
*/
|
|
146
|
+
|
|
147
|
+
VeLivePusherAudioDeviceError = -9,
|
|
148
|
+
/** {zh}
|
|
149
|
+
* @brief 其他错误类型,请联系火山引擎[技术支持](https://console.volcengine.com/workorder/create?step=3&SubProductID=P00000076&FlowKey=iNcpuNlwBHbovcjeWlKP)。
|
|
150
|
+
*
|
|
151
|
+
*/
|
|
152
|
+
|
|
153
|
+
VeLivePusherError = -100
|
|
154
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { UIView } from '../../platforms/ios/extends';
|