@byteplus/react-native-live-push 1.1.3-rc.3 → 1.1.4-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/src/main/java/com/volcengine/velive/rn/push/VeLivePushModule.java +2 -13
- package/android/src/main/java/com/volcengine/velive/rn/push/VeLivePushPackage.java +13 -16
- package/android/src/main/java/com/volcengine/velive/rn/push/VeLivePushView.java +0 -16
- package/android/src/main/java/com/volcengine/velive/rn/push/VeLivePushViewManager.java +2 -7
- package/lib/commonjs/index.js +2126 -2925
- package/lib/module/index.js +2128 -2922
- package/lib/typescript/codegen/android/api.d.ts +121 -1
- package/lib/typescript/codegen/ios/api.d.ts +28 -1
- package/lib/typescript/codegen/pack/api.d.ts +133 -1
- package/lib/typescript/core/api.d.ts +2 -17
- package/lib/typescript/core/keytype.d.ts +0 -15
- package/lib/typescript/index.d.ts +0 -1
- package/package.json +1 -1
- package/android/src/main/java/com/volcengine/velive/rn/push/mixer/MixerManager.java +0 -397
- package/android/src/main/java/com/volcengine/velive/rn/push/mixer/MixerView.java +0 -423
- package/android/src/main/java/com/volcengine/velive/rn/push/mixer/MixerViewManager.java +0 -79
- package/android/src/main/java/com/volcengine/velive/rn/push/mixer/TextureMgr.java +0 -168
- package/android/src/main/java/com/volcengine/velive/rn/push/mixer/YuvHelper.java +0 -165
- package/ios/VeLiveMixerHelper.h +0 -44
- package/ios/VeLiveMixerHelper.m +0 -591
- package/ios/VeLiveMixerView.h +0 -69
- package/ios/VeLiveMixerView.m +0 -592
- package/ios/VeLiveMixerViewManager.m +0 -92
- package/lib/commonjs/typescript/android/index.d.ts +0 -47
- package/lib/commonjs/typescript/codegen/android/api.d.ts +0 -1527
- package/lib/commonjs/typescript/codegen/android/callback.d.ts +0 -91
- package/lib/commonjs/typescript/codegen/android/errorcode.d.ts +0 -26
- package/lib/commonjs/typescript/codegen/android/index.d.ts +0 -5
- package/lib/commonjs/typescript/codegen/android/keytype.d.ts +0 -846
- package/lib/commonjs/typescript/codegen/android/types.d.ts +0 -33
- package/lib/commonjs/typescript/codegen/ios/api.d.ts +0 -222
- package/lib/commonjs/typescript/codegen/ios/callback.d.ts +0 -80
- package/lib/commonjs/typescript/codegen/ios/errorcode.d.ts +0 -54
- package/lib/commonjs/typescript/codegen/ios/external.d.ts +0 -1
- package/lib/commonjs/typescript/codegen/ios/index.d.ts +0 -6
- package/lib/commonjs/typescript/codegen/ios/keytype.d.ts +0 -460
- package/lib/commonjs/typescript/codegen/ios/types.d.ts +0 -46
- package/lib/commonjs/typescript/codegen/pack/api.d.ts +0 -1835
- package/lib/commonjs/typescript/codegen/pack/callback.d.ts +0 -400
- package/lib/commonjs/typescript/codegen/pack/errorcode.d.ts +0 -35
- package/lib/commonjs/typescript/codegen/pack/index.d.ts +0 -5
- package/lib/commonjs/typescript/codegen/pack/keytype.d.ts +0 -1392
- package/lib/commonjs/typescript/codegen/pack/types.d.ts +0 -68
- package/lib/commonjs/typescript/codegen/type-shim.d.ts +0 -6
- package/lib/commonjs/typescript/component.d.ts +0 -15
- package/lib/commonjs/typescript/core/api.d.ts +0 -17
- package/lib/commonjs/typescript/core/callback.d.ts +0 -2
- package/lib/commonjs/typescript/core/env.d.ts +0 -29
- package/lib/commonjs/typescript/core/errorcode.d.ts +0 -2
- package/lib/commonjs/typescript/core/index.d.ts +0 -6
- package/lib/commonjs/typescript/core/keytype.d.ts +0 -17
- package/lib/commonjs/typescript/core/mixer.d.ts +0 -26
- package/lib/commonjs/typescript/core/pusher.d.ts +0 -16
- package/lib/commonjs/typescript/index.d.ts +0 -3
- package/lib/commonjs/typescript/ios/extends.d.ts +0 -41
- package/lib/commonjs/typescript/platforms/android/extends.d.ts +0 -8
- package/lib/commonjs/typescript/platforms/android/helper.d.ts +0 -8
- package/lib/commonjs/typescript/platforms/android/mixer.d.ts +0 -8
- package/lib/commonjs/typescript/platforms/ios/extends.d.ts +0 -17
- package/lib/commonjs/typescript/platforms/ios/helper.d.ts +0 -8
- package/lib/commonjs/typescript/platforms/ios/mixer.d.ts +0 -9
- package/lib/commonjs/typescript/runtime.d.ts +0 -1
- package/lib/commonjs/typescript/view/MixView.d.ts +0 -52
- package/lib/commonjs/typescript/view/VeImageView.d.ts +0 -19
- package/lib/commonjs/typescript/view/VeTextView.d.ts +0 -7
- package/lib/commonjs/typescript/view/VeView.d.ts +0 -7
- package/lib/commonjs/typescript/view/VeWebView.d.ts +0 -7
- package/lib/commonjs/typescript/view/index.d.ts +0 -5
- package/lib/module/typescript/android/index.d.ts +0 -47
- package/lib/module/typescript/codegen/android/api.d.ts +0 -1527
- package/lib/module/typescript/codegen/android/callback.d.ts +0 -91
- package/lib/module/typescript/codegen/android/errorcode.d.ts +0 -26
- package/lib/module/typescript/codegen/android/index.d.ts +0 -5
- package/lib/module/typescript/codegen/android/keytype.d.ts +0 -846
- package/lib/module/typescript/codegen/android/types.d.ts +0 -33
- package/lib/module/typescript/codegen/ios/api.d.ts +0 -222
- package/lib/module/typescript/codegen/ios/callback.d.ts +0 -80
- package/lib/module/typescript/codegen/ios/errorcode.d.ts +0 -54
- package/lib/module/typescript/codegen/ios/external.d.ts +0 -1
- package/lib/module/typescript/codegen/ios/index.d.ts +0 -6
- package/lib/module/typescript/codegen/ios/keytype.d.ts +0 -460
- package/lib/module/typescript/codegen/ios/types.d.ts +0 -46
- package/lib/module/typescript/codegen/pack/api.d.ts +0 -1835
- package/lib/module/typescript/codegen/pack/callback.d.ts +0 -400
- package/lib/module/typescript/codegen/pack/errorcode.d.ts +0 -35
- package/lib/module/typescript/codegen/pack/index.d.ts +0 -5
- package/lib/module/typescript/codegen/pack/keytype.d.ts +0 -1392
- package/lib/module/typescript/codegen/pack/types.d.ts +0 -68
- package/lib/module/typescript/codegen/type-shim.d.ts +0 -6
- package/lib/module/typescript/component.d.ts +0 -15
- package/lib/module/typescript/core/api.d.ts +0 -17
- package/lib/module/typescript/core/callback.d.ts +0 -2
- package/lib/module/typescript/core/env.d.ts +0 -29
- package/lib/module/typescript/core/errorcode.d.ts +0 -2
- package/lib/module/typescript/core/index.d.ts +0 -6
- package/lib/module/typescript/core/keytype.d.ts +0 -17
- package/lib/module/typescript/core/mixer.d.ts +0 -26
- package/lib/module/typescript/core/pusher.d.ts +0 -16
- package/lib/module/typescript/index.d.ts +0 -3
- package/lib/module/typescript/ios/extends.d.ts +0 -41
- package/lib/module/typescript/platforms/android/extends.d.ts +0 -8
- package/lib/module/typescript/platforms/android/helper.d.ts +0 -8
- package/lib/module/typescript/platforms/android/mixer.d.ts +0 -8
- package/lib/module/typescript/platforms/ios/extends.d.ts +0 -17
- package/lib/module/typescript/platforms/ios/helper.d.ts +0 -8
- package/lib/module/typescript/platforms/ios/mixer.d.ts +0 -9
- package/lib/module/typescript/runtime.d.ts +0 -1
- package/lib/module/typescript/view/MixView.d.ts +0 -52
- package/lib/module/typescript/view/VeImageView.d.ts +0 -19
- package/lib/module/typescript/view/VeTextView.d.ts +0 -7
- package/lib/module/typescript/view/VeView.d.ts +0 -7
- package/lib/module/typescript/view/VeWebView.d.ts +0 -7
- package/lib/module/typescript/view/index.d.ts +0 -5
- package/lib/typescript/core/mixer.d.ts +0 -26
- package/lib/typescript/platforms/android/extends.d.ts +0 -8
- package/lib/typescript/platforms/android/mixer.d.ts +0 -8
- package/lib/typescript/platforms/ios/mixer.d.ts +0 -9
- package/lib/typescript/view/MixView.d.ts +0 -52
- package/lib/typescript/view/VeImageView.d.ts +0 -19
- package/lib/typescript/view/VeTextView.d.ts +0 -7
- package/lib/typescript/view/VeView.d.ts +0 -7
- package/lib/typescript/view/VeWebView.d.ts +0 -7
- package/lib/typescript/view/index.d.ts +0 -5
|
@@ -1,400 +0,0 @@
|
|
|
1
|
-
import * as $p_a from '../android/index';
|
|
2
|
-
import * as $p_i from '../ios/index';
|
|
3
|
-
import { VeLiveVideoFrame, VeLiveAudioFrame } from './api';
|
|
4
|
-
import { Bitmap, JSONObject } from './types';
|
|
5
|
-
import { VeLivePusherStatus, VeLiveFirstFrameType, VeLiveNetworkQuality, VeLiveAudioPowerLevel, VeLivePusherStatistics } from './keytype';
|
|
6
|
-
|
|
7
|
-
export interface VeLiveVideoFrameFilter {
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
export interface VeLiveVideoFrameListener {
|
|
11
|
-
|
|
12
|
-
/** {en}
|
|
13
|
-
* @detail callback
|
|
14
|
-
* @brief Occurs when a video frame is captured. This callback will be triggered only if you return `VeLiveVideoFrameSourceCapture` when implementing the getObservedVideoFrameSource{@link #VeLiveVideoFrameListener#getObservedVideoFrameSource} callback method.
|
|
15
|
-
* @param frame The captured video frame. See VeLiveVideoFrame {@link #VeLiveVideoFrame} for details.
|
|
16
|
-
* @order 18
|
|
17
|
-
*
|
|
18
|
-
*/
|
|
19
|
-
onCaptureVideoFrame?(frame: VeLiveVideoFrame): void;
|
|
20
|
-
|
|
21
|
-
/** {en}
|
|
22
|
-
* @detail callback
|
|
23
|
-
* @brief Occurs when a video frame is to be encoded. This callback will be triggered only if you return `VeLiveVideoFrameSourcePreEncode` when implementing the getObservedVideoFrameSource{@link #VeLiveVideoFrameListener#getObservedVideoFrameSource} callback method.
|
|
24
|
-
* @param frame The video frame to be encoded. See VeLiveVideoFrame {@link #VeLiveVideoFrame} for details.
|
|
25
|
-
* @order 19
|
|
26
|
-
*
|
|
27
|
-
*/
|
|
28
|
-
onPreEncodeVideoFrame?(frame: VeLiveVideoFrame): void;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
export interface VeLiveMediaPlayerListener {
|
|
32
|
-
|
|
33
|
-
/** {en}
|
|
34
|
-
* @detail callback
|
|
35
|
-
* @brief Occurs when the playback starts.
|
|
36
|
-
*
|
|
37
|
-
*/
|
|
38
|
-
onStart?(): void;
|
|
39
|
-
|
|
40
|
-
/** {en}
|
|
41
|
-
* @detail callback
|
|
42
|
-
* @brief Occurs every 100 ms to report the playback progress.
|
|
43
|
-
* @param timeMs The playback progress, in milliseconds.
|
|
44
|
-
*
|
|
45
|
-
*/
|
|
46
|
-
onProgress?(timeMs: number): void;
|
|
47
|
-
|
|
48
|
-
/** {en}
|
|
49
|
-
* @detail callback
|
|
50
|
-
* @brief Occurs when the playback stops.
|
|
51
|
-
*
|
|
52
|
-
*/
|
|
53
|
-
onStop?(): void;
|
|
54
|
-
|
|
55
|
-
/** {en}
|
|
56
|
-
* @detail callback
|
|
57
|
-
* @brief Occurs when an error occurs in the media player.
|
|
58
|
-
* @param code The error code. See VeLivePusherErrorCode {@link #VeLivePusherErrorCode} for details.
|
|
59
|
-
* @param msg The error message.
|
|
60
|
-
*
|
|
61
|
-
*/
|
|
62
|
-
onError?(error: number): void;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
export interface VeLiveAudioFrameListener {
|
|
66
|
-
|
|
67
|
-
/** {en}
|
|
68
|
-
* @detail callback
|
|
69
|
-
* @brief Occurs when an audio frame is captured. This callback will be triggered only if you return `VeLiveAudioFrameSourceCapture` when implementing the getObservedAudioFrameSource{@link #VeLiveAudioFrameListener#getObservedAudioFrameSource} callback method.
|
|
70
|
-
* @param frame The captured audio frame data. See VeLiveAudioFrame {@link #VeLiveAudioFrame} for details.
|
|
71
|
-
* @order 21
|
|
72
|
-
*
|
|
73
|
-
*/
|
|
74
|
-
onCaptureAudioFrame?(frame: VeLiveAudioFrame): void;
|
|
75
|
-
|
|
76
|
-
/** {en}
|
|
77
|
-
* @detail callback
|
|
78
|
-
* @brief Occurs when an audio frame is to be encoded. This callback will be triggered only if you return `VeLiveAudioFrameSourcePreEncode` when implementing the getObservedAudioFrameSource{@link #VeLiveAudioFrameListener#getObservedAudioFrameSource} callback method.
|
|
79
|
-
* @param frame The audio frame to be encoded. See VeLiveAudioFrame {@link #VeLiveAudioFrame} for details.
|
|
80
|
-
* @order 22
|
|
81
|
-
*
|
|
82
|
-
*/
|
|
83
|
-
onPreEncodeAudioFrame?(frame: VeLiveAudioFrame): void;
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
export interface VeLiveMediaPlayerFrameListener {
|
|
87
|
-
|
|
88
|
-
/** {en}
|
|
89
|
-
* @detail callback
|
|
90
|
-
* @brief Occurs when the media player decodes an audio frame.
|
|
91
|
-
* @param frame The audio frame. See VeLiveAudioFrame {@link #VeLiveAudioFrame} for details.
|
|
92
|
-
*
|
|
93
|
-
*/
|
|
94
|
-
onAudioFrame?(frame: VeLiveAudioFrame): void;
|
|
95
|
-
|
|
96
|
-
/** {en}
|
|
97
|
-
* @detail callback
|
|
98
|
-
* @brief Occurs when the media player decodes a video frame.
|
|
99
|
-
* @param frame The video frame, including the timestamp, pixel format, and other information. See VeLiveVideoFrame {@link #VeLiveVideoFrame} for details.
|
|
100
|
-
*
|
|
101
|
-
*/
|
|
102
|
-
onVideoFrame?(frame: VeLiveVideoFrame): void;
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
export interface VeLiveSnapshotListener {
|
|
106
|
-
|
|
107
|
-
/** {en}
|
|
108
|
-
* @detail callback
|
|
109
|
-
* @brief Occurs when a screenshot is successfully taken after snapshot {@link #VeLivePusher#snapshot} is called.
|
|
110
|
-
* @param image The screenshot image.
|
|
111
|
-
* @order 15
|
|
112
|
-
*
|
|
113
|
-
*/
|
|
114
|
-
onSnapshotComplete?(image: Bitmap): void;
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
export interface VeLiveAudioFrameFilter {
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
export interface VeLivePusherObserver {
|
|
121
|
-
|
|
122
|
-
/** {en}
|
|
123
|
-
* @detail callback
|
|
124
|
-
* @brief Occurs when a streaming error occurs.
|
|
125
|
-
* @param code The error code. See VeLivePusherErrorCode {@link #VeLivePusherErrorCode} for details.
|
|
126
|
-
* @param subCode The subcode.
|
|
127
|
-
* @param msg The error message.
|
|
128
|
-
* @order 1
|
|
129
|
-
*
|
|
130
|
-
*/
|
|
131
|
-
onError?(code: number, subCode: number, msg: string): void;
|
|
132
|
-
|
|
133
|
-
/** {en}
|
|
134
|
-
* @detail callback
|
|
135
|
-
* @brief Occurs when the streaming status changes.
|
|
136
|
-
* @param status The updated streaming status. See VeLivePusherStatus {@link #VeLivePusherStatus} for details.
|
|
137
|
-
* @order 2
|
|
138
|
-
*
|
|
139
|
-
*/
|
|
140
|
-
onStatusChange?(status: VeLivePusherStatus): void;
|
|
141
|
-
|
|
142
|
-
/** {en}
|
|
143
|
-
* @detail callback
|
|
144
|
-
* @brief Occurs when the live pusher sends the first video frame.
|
|
145
|
-
* @param type The type of the first frame. See VeLiveFirstFrameType {@link #VeLiveFirstFrameType} for details.
|
|
146
|
-
* @param timestampMs The timestamp, in milliseconds.
|
|
147
|
-
* @order 3
|
|
148
|
-
*
|
|
149
|
-
*/
|
|
150
|
-
onFirstVideoFrame?(type: VeLiveFirstFrameType, timestampMs: number): void;
|
|
151
|
-
|
|
152
|
-
/** {en}
|
|
153
|
-
* @detail callback
|
|
154
|
-
* @brief Occurs when the live pusher sends the first audio frame.
|
|
155
|
-
* @param type The type of the first audio frame. See VeLiveFirstFrameType {@link #VeLiveFirstFrameType} for details.
|
|
156
|
-
* @param timestampMs The timestamp, in milliseconds.
|
|
157
|
-
* @order 4
|
|
158
|
-
*
|
|
159
|
-
*/
|
|
160
|
-
onFirstAudioFrame?(type: VeLiveFirstFrameType, timestampMs: number): void;
|
|
161
|
-
|
|
162
|
-
/** {en}
|
|
163
|
-
* @detail callback
|
|
164
|
-
* @brief Occurs when the camera is turned on or turned off.
|
|
165
|
-
* @param open Whether the updated status of the camera is on. <br>
|
|
166
|
-
* - true: On;
|
|
167
|
-
* - false: Off.
|
|
168
|
-
* @order 5
|
|
169
|
-
*
|
|
170
|
-
*/
|
|
171
|
-
onCameraOpened?(open: boolean): void;
|
|
172
|
-
|
|
173
|
-
/** {en}
|
|
174
|
-
* @detail callback
|
|
175
|
-
* @brief Occurs when the microphone is turned on or turned off.
|
|
176
|
-
* @param open Whether the updated status of the microphone is on. <br>
|
|
177
|
-
* - true: On;
|
|
178
|
-
* - false: Off.
|
|
179
|
-
* @order 6
|
|
180
|
-
*
|
|
181
|
-
*/
|
|
182
|
-
onMicrophoneOpened?(open: boolean): void;
|
|
183
|
-
|
|
184
|
-
/** {en}
|
|
185
|
-
* @platform android
|
|
186
|
-
* @detail callback
|
|
187
|
-
* @brief Occurs when screen capture is turned on or turned off.
|
|
188
|
-
* @param open Whether the updated status of screen capture is on. <br>
|
|
189
|
-
* - true: On;
|
|
190
|
-
* - false: Off.
|
|
191
|
-
* @order 7
|
|
192
|
-
*
|
|
193
|
-
*/
|
|
194
|
-
android_onScreenRecording?(open: boolean): void;
|
|
195
|
-
|
|
196
|
-
/** {en}
|
|
197
|
-
* @detail callback
|
|
198
|
-
* @brief Occurs when the network quality changes.
|
|
199
|
-
* @param quality The updated network quality. See VeLiveNetworkQuality {@link #VeLiveNetworkQuality} for details.
|
|
200
|
-
* @order 8
|
|
201
|
-
*
|
|
202
|
-
*/
|
|
203
|
-
onNetworkQuality?(quality: VeLiveNetworkQuality): void;
|
|
204
|
-
|
|
205
|
-
/** {en}
|
|
206
|
-
* @detail callback
|
|
207
|
-
* @brief Occurs when the audio volume level changes.
|
|
208
|
-
* @order 9
|
|
209
|
-
* @param level The updated volume level. See [VeLiveAudioPowerLevel](broadcast-sdk-for-android-type-definition\\#VeLiveAudioPowerLevel) for details.
|
|
210
|
-
* @param value The current volume measured in decibel value (dB).
|
|
211
|
-
* - A value of -1 indicates that the corresponding volume decibel value is not available.
|
|
212
|
-
* - Decibel values less than 1 correspond to the VeLiveAudioPowerLevelSilent level.
|
|
213
|
-
* - Decibel values greater than 1 and less than or equal to 15 correspond to the VeLiveAudioPowerLevelQuiet level.
|
|
214
|
-
* - Decibel values greater than 15 and less than or equal to 30 correspond to the VeLiveAudioPowerLevelLight level.
|
|
215
|
-
* - Decibel values greater than 30 and less than or equal to 60 correspond to the VeLiveAudioPowerLevelNormal level.
|
|
216
|
-
* - Decibel values greater than 60 and less than or equal to 85 correspond to the VeLiveAudioPowerLevelLoud level.
|
|
217
|
-
* - Decibel values greater than 85 correspond to the VeLiveAudioPowerLevelNoisy level.
|
|
218
|
-
*
|
|
219
|
-
*/
|
|
220
|
-
onAudioPowerQuality?(level: VeLiveAudioPowerLevel, value: number): void;
|
|
221
|
-
}
|
|
222
|
-
|
|
223
|
-
export interface VeLivePusherStatisticsObserver {
|
|
224
|
-
|
|
225
|
-
/** {en}
|
|
226
|
-
* @detail callback
|
|
227
|
-
* @brief Occurs periodically to report streaming statistics. By default, the callback is triggered every 5 seconds.
|
|
228
|
-
* @order 10
|
|
229
|
-
* @param statistics The streaming statistics. See VeLivePusherStatistics for details.
|
|
230
|
-
*
|
|
231
|
-
*/
|
|
232
|
-
onStatistics?(statistics: VeLivePusherStatistics): void;
|
|
233
|
-
|
|
234
|
-
/** {en}
|
|
235
|
-
* @detail callback
|
|
236
|
-
* @brief Occurs periodically to return log information.
|
|
237
|
-
* @param logInfo The log information.
|
|
238
|
-
* @order 11
|
|
239
|
-
*
|
|
240
|
-
*/
|
|
241
|
-
onLogMonitor?(logInfo: JSONObject): void;
|
|
242
|
-
}
|
|
243
|
-
|
|
244
|
-
export interface VeLiveFileRecordingListener {
|
|
245
|
-
|
|
246
|
-
/** {en}
|
|
247
|
-
* @detail callback
|
|
248
|
-
* @brief Occurs when recording starts.
|
|
249
|
-
* @order 12
|
|
250
|
-
*
|
|
251
|
-
*/
|
|
252
|
-
onFileRecordingStarted?(): void;
|
|
253
|
-
|
|
254
|
-
/** {en}
|
|
255
|
-
* @detail callback
|
|
256
|
-
* @brief Occurs when recording stops.
|
|
257
|
-
* @order 13
|
|
258
|
-
*
|
|
259
|
-
*/
|
|
260
|
-
onFileRecordingStopped?(): void;
|
|
261
|
-
|
|
262
|
-
/** {en}
|
|
263
|
-
* @detail callback
|
|
264
|
-
* @brief Occurs when an error occurs during recording.
|
|
265
|
-
* @param errorCode The error code. See VeLivePusherErrorCode {@link #VeLivePusherErrorCode} for details.
|
|
266
|
-
* @param message The error message.
|
|
267
|
-
* @order 14
|
|
268
|
-
*
|
|
269
|
-
*/
|
|
270
|
-
onFileRecordingError?(errorCode: number, message: string): void;
|
|
271
|
-
}
|
|
272
|
-
export declare class android_VeLiveVideoFrameFilter extends $p_a.VeLiveVideoFrameFilter {
|
|
273
|
-
protected _instance: VeLiveVideoFrameFilter;
|
|
274
|
-
constructor(_instance: VeLiveVideoFrameFilter);
|
|
275
|
-
}
|
|
276
|
-
export declare class ios_VeLiveVideoFrameFilter extends $p_i.VeLiveVideoFrameFilter {
|
|
277
|
-
protected _instance: VeLiveVideoFrameFilter;
|
|
278
|
-
constructor(_instance: VeLiveVideoFrameFilter);
|
|
279
|
-
}
|
|
280
|
-
export declare class android_VeLiveVideoFrameListener extends $p_a.VeLiveVideoFrameListener {
|
|
281
|
-
protected _instance: VeLiveVideoFrameListener;
|
|
282
|
-
constructor(_instance: VeLiveVideoFrameListener);
|
|
283
|
-
onCaptureVideoFrame(frame: $p_a.VeLiveVideoFrame): void;
|
|
284
|
-
onPreEncodeVideoFrame(frame: $p_a.VeLiveVideoFrame): void;
|
|
285
|
-
}
|
|
286
|
-
export declare class ios_VeLiveVideoFrameListener extends $p_i.VeLiveVideoFrameListener {
|
|
287
|
-
protected _instance: VeLiveVideoFrameListener;
|
|
288
|
-
constructor(_instance: VeLiveVideoFrameListener);
|
|
289
|
-
onCaptureVideoFrame(frame: $p_i.VeLiveVideoFrame): void;
|
|
290
|
-
onPreEncodeVideoFrame(frame: $p_i.VeLiveVideoFrame): void;
|
|
291
|
-
}
|
|
292
|
-
export declare class android_VeLiveMediaPlayerListener extends $p_a.VeLiveMediaPlayerListener {
|
|
293
|
-
protected _instance: VeLiveMediaPlayerListener;
|
|
294
|
-
constructor(_instance: VeLiveMediaPlayerListener);
|
|
295
|
-
onStart(info: $p_a.Bundle): void;
|
|
296
|
-
onProgress(timeMs: $p_a.long): void;
|
|
297
|
-
onStop(): void;
|
|
298
|
-
onError(code: $p_a.int, msg: string): void;
|
|
299
|
-
}
|
|
300
|
-
export declare class ios_VeLiveMediaPlayerListener extends $p_i.VeLiveMediaPlayerListener {
|
|
301
|
-
protected _instance: VeLiveMediaPlayerListener;
|
|
302
|
-
constructor(_instance: VeLiveMediaPlayerListener);
|
|
303
|
-
onStart(): void;
|
|
304
|
-
onProgress(timeMS: $p_i.long): void;
|
|
305
|
-
onStop(): void;
|
|
306
|
-
onError(error: $p_i.NSError): void;
|
|
307
|
-
}
|
|
308
|
-
export declare class android_VeLiveAudioFrameListener extends $p_a.VeLiveAudioFrameListener {
|
|
309
|
-
protected _instance: VeLiveAudioFrameListener;
|
|
310
|
-
constructor(_instance: VeLiveAudioFrameListener);
|
|
311
|
-
onCaptureAudioFrame(frame: $p_a.VeLiveAudioFrame): void;
|
|
312
|
-
onPreEncodeAudioFrame(frame: $p_a.VeLiveAudioFrame): void;
|
|
313
|
-
}
|
|
314
|
-
export declare class ios_VeLiveAudioFrameListener extends $p_i.VeLiveAudioFrameListener {
|
|
315
|
-
protected _instance: VeLiveAudioFrameListener;
|
|
316
|
-
constructor(_instance: VeLiveAudioFrameListener);
|
|
317
|
-
onCaptureAudioFrame(frame: $p_i.VeLiveAudioFrame): void;
|
|
318
|
-
onPreEncodeAudioFrame(frame: $p_i.VeLiveAudioFrame): void;
|
|
319
|
-
}
|
|
320
|
-
export declare class android_VeLiveMediaPlayerFrameListener extends $p_a.VeLiveMediaPlayerFrameListener {
|
|
321
|
-
protected _instance: VeLiveMediaPlayerFrameListener;
|
|
322
|
-
constructor(_instance: VeLiveMediaPlayerFrameListener);
|
|
323
|
-
onAudioFrame(frame: $p_a.VeLiveAudioFrame): void;
|
|
324
|
-
onVideoFrame(frame: $p_a.VeLiveVideoFrame): void;
|
|
325
|
-
}
|
|
326
|
-
export declare class ios_VeLiveMediaPlayerFrameListener extends $p_i.VeLiveMediaPlayerFrameListener {
|
|
327
|
-
protected _instance: VeLiveMediaPlayerFrameListener;
|
|
328
|
-
constructor(_instance: VeLiveMediaPlayerFrameListener);
|
|
329
|
-
onAudioFrame(audioFrame: $p_i.VeLiveAudioFrame): void;
|
|
330
|
-
onVideoFrame(videoFrame: $p_i.VeLiveVideoFrame): void;
|
|
331
|
-
}
|
|
332
|
-
export declare class android_VeLiveSnapshotListener extends $p_a.VeLiveSnapshotListener {
|
|
333
|
-
protected _instance: VeLiveSnapshotListener;
|
|
334
|
-
constructor(_instance: VeLiveSnapshotListener);
|
|
335
|
-
onSnapshotComplete(image: $p_a.Bitmap): void;
|
|
336
|
-
}
|
|
337
|
-
export declare class ios_VeLiveSnapshotListener extends $p_i.VeLiveSnapshotListener {
|
|
338
|
-
protected _instance: VeLiveSnapshotListener;
|
|
339
|
-
constructor(_instance: VeLiveSnapshotListener);
|
|
340
|
-
onSnapshotComplete(image: $p_i.UIImage): void;
|
|
341
|
-
}
|
|
342
|
-
export declare class android_VeLiveAudioFrameFilter extends $p_a.VeLiveAudioFrameFilter {
|
|
343
|
-
protected _instance: VeLiveAudioFrameFilter;
|
|
344
|
-
constructor(_instance: VeLiveAudioFrameFilter);
|
|
345
|
-
}
|
|
346
|
-
export declare class ios_VeLiveAudioFrameFilter extends $p_i.VeLiveAudioFrameFilter {
|
|
347
|
-
protected _instance: VeLiveAudioFrameFilter;
|
|
348
|
-
constructor(_instance: VeLiveAudioFrameFilter);
|
|
349
|
-
}
|
|
350
|
-
export declare class android_VeLivePusherObserver extends $p_a.VeLivePusherObserver {
|
|
351
|
-
protected _instance: VeLivePusherObserver;
|
|
352
|
-
constructor(_instance: VeLivePusherObserver);
|
|
353
|
-
onError(code: $p_a.int, subCode: $p_a.int, msg: string): void;
|
|
354
|
-
onStatusChange(status: $p_a.VeLivePusherStatus): void;
|
|
355
|
-
onFirstVideoFrame(type: $p_a.VeLiveFirstFrameType, timestampMs: $p_a.long): void;
|
|
356
|
-
onFirstAudioFrame(type: $p_a.VeLiveFirstFrameType, timestampMs: $p_a.long): void;
|
|
357
|
-
onCameraOpened(open: boolean): void;
|
|
358
|
-
onMicrophoneOpened(open: boolean): void;
|
|
359
|
-
onScreenRecording(open: boolean): void;
|
|
360
|
-
onNetworkQuality(quality: $p_a.VeLiveNetworkQuality): void;
|
|
361
|
-
onAudioPowerQuality(level: $p_a.VeLiveAudioPowerLevel, value: $p_a.float): void;
|
|
362
|
-
}
|
|
363
|
-
export declare class ios_VeLivePusherObserver extends $p_i.VeLivePusherObserver {
|
|
364
|
-
protected _instance: VeLivePusherObserver;
|
|
365
|
-
constructor(_instance: VeLivePusherObserver);
|
|
366
|
-
onError$subcode$message(code: $p_i.int, subcode: $p_i.int, msg: $p_i.NSString): void;
|
|
367
|
-
onStatusChange(status: $p_i.VeLivePushStatus): void;
|
|
368
|
-
onFirstVideoFrame$timestampMs(type: $p_i.VeLiveFirstFrameType, timestampMs: $p_i.int64_t): void;
|
|
369
|
-
onFirstAudioFrame$timestampMs(type: $p_i.VeLiveFirstFrameType, timestampMs: $p_i.int64_t): void;
|
|
370
|
-
onCameraOpened(open: $p_i.BOOL): void;
|
|
371
|
-
onMicrophoneOpened(open: $p_i.BOOL): void;
|
|
372
|
-
onNetworkQuality(quality: $p_i.VeLiveNetworkQuality): void;
|
|
373
|
-
onAudioPowerQuality$value(level: $p_i.VeLiveAudioPowerLevel, value: $p_i.float): void;
|
|
374
|
-
}
|
|
375
|
-
export declare class android_VeLivePusherStatisticsObserver extends $p_a.VeLivePusherStatisticsObserver {
|
|
376
|
-
protected _instance: VeLivePusherStatisticsObserver;
|
|
377
|
-
constructor(_instance: VeLivePusherStatisticsObserver);
|
|
378
|
-
onStatistics(statistics: $p_a.VeLivePusherStatistics): void;
|
|
379
|
-
onLogMonitor(logInfo: $p_a.JSONObject): void;
|
|
380
|
-
}
|
|
381
|
-
export declare class ios_VeLivePusherStatisticsObserver extends $p_i.VeLivePusherStatisticsObserver {
|
|
382
|
-
protected _instance: VeLivePusherStatisticsObserver;
|
|
383
|
-
constructor(_instance: VeLivePusherStatisticsObserver);
|
|
384
|
-
onStatistics(statistics: $p_i.VeLivePusherStatistics): void;
|
|
385
|
-
onLogMonitor(logInfo: $p_i.NSDictionary): void;
|
|
386
|
-
}
|
|
387
|
-
export declare class android_VeLiveFileRecordingListener extends $p_a.VeLiveFileRecordingListener {
|
|
388
|
-
protected _instance: VeLiveFileRecordingListener;
|
|
389
|
-
constructor(_instance: VeLiveFileRecordingListener);
|
|
390
|
-
onFileRecordingStarted(): void;
|
|
391
|
-
onFileRecordingStopped(): void;
|
|
392
|
-
onFileRecordingError(errorCode: $p_a.int, message: string): void;
|
|
393
|
-
}
|
|
394
|
-
export declare class ios_VeLiveFileRecordingListener extends $p_i.VeLiveFileRecordingListener {
|
|
395
|
-
protected _instance: VeLiveFileRecordingListener;
|
|
396
|
-
constructor(_instance: VeLiveFileRecordingListener);
|
|
397
|
-
onFileRecordingStarted(): void;
|
|
398
|
-
onFileRecordingStopped(): void;
|
|
399
|
-
onFileRecordingError$message(errorCode: $p_i.int, msg: $p_i.NSString): void;
|
|
400
|
-
}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import * as $p_a from '../android/index';
|
|
2
|
-
import * as $p_i from '../ios/index';
|
|
3
|
-
|
|
4
|
-
export declare enum VeLivePusherErrorCode {
|
|
5
|
-
|
|
6
|
-
VeLivePusherSuccess = 0,
|
|
7
|
-
|
|
8
|
-
VeLivePusherInvalidLicense = -1,
|
|
9
|
-
|
|
10
|
-
VeLivePusherInvalidParameter = -2,
|
|
11
|
-
|
|
12
|
-
VeLivePusherVideoCaptureError = -3,
|
|
13
|
-
|
|
14
|
-
VeLivePusherAudioCaptureError = -4,
|
|
15
|
-
|
|
16
|
-
VeLivePusherVideoEncoderError = -5,
|
|
17
|
-
|
|
18
|
-
VeLivePusherAudioEncoderError = -6,
|
|
19
|
-
|
|
20
|
-
VeLivePusherTransportError = -7,
|
|
21
|
-
|
|
22
|
-
VeLivePusherVideoEffectError = -8,
|
|
23
|
-
|
|
24
|
-
VeLivePusherAudioDeviceError = -9,
|
|
25
|
-
|
|
26
|
-
VeLivePusherLicenseUnsupportedH265 = -10,
|
|
27
|
-
|
|
28
|
-
VeLivePusherError = -100
|
|
29
|
-
}
|
|
30
|
-
export declare class t_VeLivePusherErrorCode {
|
|
31
|
-
static ts_to_android(value: VeLivePusherErrorCode): $p_a.VeLivePusherErrorCode;
|
|
32
|
-
static android_to_ts(value: $p_a.VeLivePusherErrorCode): VeLivePusherErrorCode;
|
|
33
|
-
static ts_to_ios(value: VeLivePusherErrorCode): $p_i.VeLivePusherCode;
|
|
34
|
-
static ios_to_ts(value: $p_i.VeLivePusherCode): VeLivePusherErrorCode;
|
|
35
|
-
}
|