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