@byteplus/react-native-live-push 1.1.3-rc.0 → 1.1.3-rc.2
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 +13 -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 +392 -0
- package/android/src/main/java/com/volcengine/velive/rn/push/mixer/MixerView.java +415 -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 +154 -0
- package/ios/VeLiveMixerHelper.h +44 -0
- package/ios/VeLiveMixerHelper.m +562 -0
- package/ios/VeLiveMixerView.h +69 -0
- package/ios/VeLiveMixerView.m +592 -0
- package/ios/VeLiveMixerViewManager.m +92 -0
- package/lib/commonjs/index.js +1779 -980
- package/lib/commonjs/typescript/android/index.d.ts +47 -0
- package/lib/commonjs/typescript/codegen/android/api.d.ts +1527 -0
- package/lib/commonjs/typescript/codegen/android/callback.d.ts +91 -0
- package/lib/commonjs/typescript/codegen/android/errorcode.d.ts +26 -0
- package/lib/commonjs/typescript/codegen/android/index.d.ts +5 -0
- package/lib/commonjs/typescript/codegen/android/keytype.d.ts +846 -0
- package/lib/commonjs/typescript/codegen/android/types.d.ts +33 -0
- package/lib/commonjs/typescript/codegen/ios/api.d.ts +222 -0
- package/lib/commonjs/typescript/codegen/ios/callback.d.ts +80 -0
- package/lib/commonjs/typescript/codegen/ios/errorcode.d.ts +54 -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 +460 -0
- package/lib/commonjs/typescript/codegen/ios/types.d.ts +46 -0
- package/lib/commonjs/typescript/codegen/pack/api.d.ts +1835 -0
- package/lib/commonjs/typescript/codegen/pack/callback.d.ts +400 -0
- package/lib/commonjs/typescript/codegen/pack/errorcode.d.ts +35 -0
- package/lib/commonjs/typescript/codegen/pack/index.d.ts +5 -0
- package/lib/commonjs/typescript/codegen/pack/keytype.d.ts +1392 -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 +17 -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 +17 -0
- package/lib/commonjs/typescript/core/mixer.d.ts +26 -0
- package/lib/commonjs/typescript/core/pusher.d.ts +16 -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 +1776 -982
- package/lib/module/typescript/android/index.d.ts +47 -0
- package/lib/module/typescript/codegen/android/api.d.ts +1527 -0
- package/lib/module/typescript/codegen/android/callback.d.ts +91 -0
- package/lib/module/typescript/codegen/android/errorcode.d.ts +26 -0
- package/lib/module/typescript/codegen/android/index.d.ts +5 -0
- package/lib/module/typescript/codegen/android/keytype.d.ts +846 -0
- package/lib/module/typescript/codegen/android/types.d.ts +33 -0
- package/lib/module/typescript/codegen/ios/api.d.ts +222 -0
- package/lib/module/typescript/codegen/ios/callback.d.ts +80 -0
- package/lib/module/typescript/codegen/ios/errorcode.d.ts +54 -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 +460 -0
- package/lib/module/typescript/codegen/ios/types.d.ts +46 -0
- package/lib/module/typescript/codegen/pack/api.d.ts +1835 -0
- package/lib/module/typescript/codegen/pack/callback.d.ts +400 -0
- package/lib/module/typescript/codegen/pack/errorcode.d.ts +35 -0
- package/lib/module/typescript/codegen/pack/index.d.ts +5 -0
- package/lib/module/typescript/codegen/pack/keytype.d.ts +1392 -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 +17 -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 +17 -0
- package/lib/module/typescript/core/mixer.d.ts +26 -0
- package/lib/module/typescript/core/pusher.d.ts +16 -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/codegen/android/api.d.ts +1 -121
- package/lib/typescript/codegen/ios/api.d.ts +1 -28
- package/lib/typescript/codegen/pack/api.d.ts +1 -133
- package/lib/typescript/core/api.d.ts +17 -2
- package/lib/typescript/core/keytype.d.ts +15 -0
- package/lib/typescript/core/mixer.d.ts +26 -0
- 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
|
@@ -0,0 +1,460 @@
|
|
|
1
|
+
import { int, BOOL, NSDictionary, float, CMTime, GLuint, CVPixelBufferRef, CMSampleBufferRef, NSData, NSArray, NSString } from './types';
|
|
2
|
+
export declare enum VeLiveVideoEffectLicenseType {
|
|
3
|
+
|
|
4
|
+
VeLiveVideoEffectLicenseTypeOffLine = 0,
|
|
5
|
+
|
|
6
|
+
VeLiveVideoEffectLicenseTypeOnLine = 1
|
|
7
|
+
}
|
|
8
|
+
export declare enum VeLiveNetworkQuality {
|
|
9
|
+
|
|
10
|
+
VeLiveNetworkQualityUnknown = -1,
|
|
11
|
+
|
|
12
|
+
VeLiveNetworkQualityBad = 0,
|
|
13
|
+
|
|
14
|
+
VeLiveNetworkQualityPoor = 1,
|
|
15
|
+
|
|
16
|
+
VeLiveNetworkQualityGood = 2
|
|
17
|
+
}
|
|
18
|
+
export declare enum VeLiveAudioChannel {
|
|
19
|
+
|
|
20
|
+
VeLiveAudioChannelMono = 1,
|
|
21
|
+
|
|
22
|
+
VeLiveAudioChannelStereo = 2
|
|
23
|
+
}
|
|
24
|
+
export declare enum VeLiveVideoEncodeFrameType {
|
|
25
|
+
|
|
26
|
+
VeLiveVideoEncodeFrameTypeIDR = 1,
|
|
27
|
+
|
|
28
|
+
VeLiveVideoEncodeFrameTypeSPSPPS = 2,
|
|
29
|
+
|
|
30
|
+
VeLiveVideoEncodeFrameTypeB = 3,
|
|
31
|
+
|
|
32
|
+
VeLiveVideoEncodeFrameTypeP = 4
|
|
33
|
+
}
|
|
34
|
+
export declare class VeLiveVideoEncoderConfiguration {
|
|
35
|
+
|
|
36
|
+
resolution: VeLiveVideoResolution;
|
|
37
|
+
|
|
38
|
+
codec: VeLiveVideoCodec;
|
|
39
|
+
|
|
40
|
+
bitrate: int;
|
|
41
|
+
|
|
42
|
+
minBitrate: int;
|
|
43
|
+
|
|
44
|
+
maxBitrate: int;
|
|
45
|
+
|
|
46
|
+
gopSize: int;
|
|
47
|
+
|
|
48
|
+
fps: int;
|
|
49
|
+
|
|
50
|
+
enableBFrame: BOOL;
|
|
51
|
+
|
|
52
|
+
enableAccelerate: BOOL;
|
|
53
|
+
|
|
54
|
+
initWithResolution(resolution: VeLiveVideoResolution): this;
|
|
55
|
+
}
|
|
56
|
+
export declare enum VeLiveVideoFrameSource {
|
|
57
|
+
|
|
58
|
+
VeLiveVideoFrameSourceCapture = 1,
|
|
59
|
+
|
|
60
|
+
VeLiveVideoFrameSourcePreEncode = 2
|
|
61
|
+
}
|
|
62
|
+
export declare enum VeLiveAudioBufferType {
|
|
63
|
+
|
|
64
|
+
VeLiveAudioBufferTypeUnknown = -1,
|
|
65
|
+
|
|
66
|
+
VeLiveAudioBufferTypeSampleBuffer = 0,
|
|
67
|
+
|
|
68
|
+
VeLiveAudioBufferTypeNSData = 1
|
|
69
|
+
}
|
|
70
|
+
export declare class VeLivePusherConfiguration {
|
|
71
|
+
|
|
72
|
+
videoCaptureConfig: VeLiveVideoCaptureConfiguration;
|
|
73
|
+
|
|
74
|
+
audioCaptureConfig: VeLiveAudioCaptureConfiguration;
|
|
75
|
+
|
|
76
|
+
reconnectIntervalSeconds: int;
|
|
77
|
+
|
|
78
|
+
reconnectCount: int;
|
|
79
|
+
|
|
80
|
+
extraParameters: NSDictionary;
|
|
81
|
+
init(): this;
|
|
82
|
+
}
|
|
83
|
+
export declare enum VeLiveVideoCaptureType {
|
|
84
|
+
|
|
85
|
+
VeLiveVideoCaptureFrontCamera = 0,
|
|
86
|
+
|
|
87
|
+
VeLiveVideoCaptureBackCamera = 1,
|
|
88
|
+
|
|
89
|
+
VeLiveVideoCaptureDualCamera = 2,
|
|
90
|
+
|
|
91
|
+
VeLiveVideoCaptureExternal = 4,
|
|
92
|
+
|
|
93
|
+
VeLiveVideoCaptureCustomImage = 5,
|
|
94
|
+
|
|
95
|
+
VeLiveVideoCaptureLastFrame = 6,
|
|
96
|
+
|
|
97
|
+
VeLiveVideoCaptureDummyFrame = 7
|
|
98
|
+
}
|
|
99
|
+
export declare class VeLiveFileRecorderConfiguration {
|
|
100
|
+
|
|
101
|
+
width: int;
|
|
102
|
+
|
|
103
|
+
height: int;
|
|
104
|
+
|
|
105
|
+
fps: int;
|
|
106
|
+
|
|
107
|
+
bitrate: int;
|
|
108
|
+
init(): this;
|
|
109
|
+
}
|
|
110
|
+
export declare enum VeLiveVideoBufferType {
|
|
111
|
+
|
|
112
|
+
VeLiveVideoBufferTypeUnKnown = -1,
|
|
113
|
+
|
|
114
|
+
VeLiveVideoBufferTypePixelBuffer = 0,
|
|
115
|
+
|
|
116
|
+
VeLiveVideoBufferTypeSampleBuffer = 1,
|
|
117
|
+
|
|
118
|
+
VeLiveVideoBufferTypeNSData = 2,
|
|
119
|
+
|
|
120
|
+
VeLiveVideoBufferTypeTexture = 3
|
|
121
|
+
}
|
|
122
|
+
export declare class VeLiveMixVideoLayout {
|
|
123
|
+
|
|
124
|
+
streamId: int;
|
|
125
|
+
|
|
126
|
+
x: float;
|
|
127
|
+
|
|
128
|
+
y: float;
|
|
129
|
+
|
|
130
|
+
width: float;
|
|
131
|
+
|
|
132
|
+
height: float;
|
|
133
|
+
|
|
134
|
+
alpha: float;
|
|
135
|
+
|
|
136
|
+
zOrder: int;
|
|
137
|
+
|
|
138
|
+
renderMode: VeLivePusherRenderMode;
|
|
139
|
+
init(): this;
|
|
140
|
+
}
|
|
141
|
+
export declare class VeLiveMixAudioLayout {
|
|
142
|
+
|
|
143
|
+
streamId: int;
|
|
144
|
+
|
|
145
|
+
volume: float;
|
|
146
|
+
init(): this;
|
|
147
|
+
}
|
|
148
|
+
export declare enum VeLiveAudioProfile {
|
|
149
|
+
|
|
150
|
+
VeLiveAudioAACProfileLC = 0,
|
|
151
|
+
|
|
152
|
+
VeLiveAudioAACProfileHEv1 = 1,
|
|
153
|
+
|
|
154
|
+
VeLiveAudioAACProfileHEv2 = 2
|
|
155
|
+
}
|
|
156
|
+
export declare class VeLiveVideoFrame {
|
|
157
|
+
|
|
158
|
+
bufferType: VeLiveVideoBufferType;
|
|
159
|
+
|
|
160
|
+
pixelFormat: VeLivePixelFormat;
|
|
161
|
+
|
|
162
|
+
rotation: VeLiveVideoRotation;
|
|
163
|
+
|
|
164
|
+
width: int;
|
|
165
|
+
|
|
166
|
+
height: int;
|
|
167
|
+
|
|
168
|
+
pts: CMTime;
|
|
169
|
+
|
|
170
|
+
textureId: GLuint;
|
|
171
|
+
|
|
172
|
+
pixelBuffer: CVPixelBufferRef;
|
|
173
|
+
|
|
174
|
+
sampleBuffer: CMSampleBufferRef;
|
|
175
|
+
|
|
176
|
+
data: NSData;
|
|
177
|
+
|
|
178
|
+
releaseCallback(): void;
|
|
179
|
+
init(): this;
|
|
180
|
+
}
|
|
181
|
+
export declare enum VeLiveVideoFluencyLevel {
|
|
182
|
+
|
|
183
|
+
VeLiveVideoFluencyLevelSmooth = 0,
|
|
184
|
+
|
|
185
|
+
VeLiveVideoFluencyLevelSluggish = 1,
|
|
186
|
+
|
|
187
|
+
VeLiveVideoFluencyLevelBlocked = 2,
|
|
188
|
+
|
|
189
|
+
VeLiveVideoFluencyLevelStuck = 3
|
|
190
|
+
}
|
|
191
|
+
export declare enum VeLiveVideoMirrorType {
|
|
192
|
+
|
|
193
|
+
VeLiveVideoMirrorCapture = 0,
|
|
194
|
+
|
|
195
|
+
VeLiveVideoMirrorPreview = 1,
|
|
196
|
+
|
|
197
|
+
VeLiveVideoMirrorPushStream = 2
|
|
198
|
+
}
|
|
199
|
+
export declare class VeLiveAudioCaptureConfiguration {
|
|
200
|
+
|
|
201
|
+
sampleRate: VeLiveAudioSampleRate;
|
|
202
|
+
|
|
203
|
+
channel: VeLiveAudioChannel;
|
|
204
|
+
init(): this;
|
|
205
|
+
}
|
|
206
|
+
export declare enum VeLiveVideoResolution {
|
|
207
|
+
|
|
208
|
+
VeLiveVideoResolution360P = 0,
|
|
209
|
+
|
|
210
|
+
VeLiveVideoResolution480P = 1,
|
|
211
|
+
|
|
212
|
+
VeLiveVideoResolution540P = 2,
|
|
213
|
+
|
|
214
|
+
VeLiveVideoResolution720P = 3,
|
|
215
|
+
|
|
216
|
+
VeLiveVideoResolution1080P = 4,
|
|
217
|
+
|
|
218
|
+
VeLiveVideoResolutionScreen = 10
|
|
219
|
+
}
|
|
220
|
+
export declare enum VeLiveVideoRotation {
|
|
221
|
+
|
|
222
|
+
VeLiveVideoRotation0 = 0,
|
|
223
|
+
|
|
224
|
+
VeLiveVideoRotation90 = 1,
|
|
225
|
+
|
|
226
|
+
VeLiveVideoRotation180 = 2,
|
|
227
|
+
|
|
228
|
+
VeLiveVideoRotation270 = 3
|
|
229
|
+
}
|
|
230
|
+
export declare class VeLiveStreamMixDescription {
|
|
231
|
+
|
|
232
|
+
mixVideoStreams: NSArray<VeLiveMixVideoLayout>;
|
|
233
|
+
|
|
234
|
+
mixAudioStreams: NSArray<VeLiveMixAudioLayout>;
|
|
235
|
+
|
|
236
|
+
backgroundColor: NSString;
|
|
237
|
+
init(): this;
|
|
238
|
+
}
|
|
239
|
+
export declare enum VeLiveAudioCaptureType {
|
|
240
|
+
|
|
241
|
+
VeLiveAudioCaptureMicrophone = 0,
|
|
242
|
+
|
|
243
|
+
VeLiveAudioCaptureVoiceCommunication = 1,
|
|
244
|
+
|
|
245
|
+
VeLiveAudioCaptureExternal = 2,
|
|
246
|
+
|
|
247
|
+
VeLiveAudioCaptureMuteFrame = 3
|
|
248
|
+
}
|
|
249
|
+
export declare enum VeLiveVideoCodec {
|
|
250
|
+
|
|
251
|
+
VeLiveVideoCodecH264 = 0,
|
|
252
|
+
|
|
253
|
+
VeLiveVideoCodecByteVC1 = 1
|
|
254
|
+
}
|
|
255
|
+
export declare class VeLiveVideoEncodeFrame {
|
|
256
|
+
|
|
257
|
+
pts: CMTime;
|
|
258
|
+
|
|
259
|
+
dts: CMTime;
|
|
260
|
+
|
|
261
|
+
videoEcodeFrameType: VeLiveVideoEncodeFrameType;
|
|
262
|
+
|
|
263
|
+
data: NSData;
|
|
264
|
+
init(): this;
|
|
265
|
+
}
|
|
266
|
+
export declare class VeLiveAudioEncoderConfiguration {
|
|
267
|
+
|
|
268
|
+
bitrate: int;
|
|
269
|
+
|
|
270
|
+
sampleRate: VeLiveAudioSampleRate;
|
|
271
|
+
|
|
272
|
+
channel: VeLiveAudioChannel;
|
|
273
|
+
|
|
274
|
+
profile: VeLiveAudioProfile;
|
|
275
|
+
init(): this;
|
|
276
|
+
}
|
|
277
|
+
export declare enum VeLivePusherLogLevel {
|
|
278
|
+
|
|
279
|
+
VeLivePusherLogLevelVerbose = 0,
|
|
280
|
+
|
|
281
|
+
VeLivePusherLogLevelDebug = 1,
|
|
282
|
+
|
|
283
|
+
VeLivePusherLogLevelInfo = 2,
|
|
284
|
+
|
|
285
|
+
VeLivePusherLogLevelWarn = 3,
|
|
286
|
+
|
|
287
|
+
VeLivePusherLogLevelError = 4,
|
|
288
|
+
|
|
289
|
+
VeLivePusherLogLevelNone = 5
|
|
290
|
+
}
|
|
291
|
+
export declare enum VeLiveAudioMixType {
|
|
292
|
+
|
|
293
|
+
VeLiveAudioMixPush = 0,
|
|
294
|
+
|
|
295
|
+
VeLiveAudioMixPlayAndPush = 1
|
|
296
|
+
}
|
|
297
|
+
export declare enum VeLivePusherRenderMode {
|
|
298
|
+
|
|
299
|
+
VeLivePusherRenderModeHidden = 0,
|
|
300
|
+
|
|
301
|
+
VeLivePusherRenderModeFit = 1,
|
|
302
|
+
|
|
303
|
+
VeLivePusherRenderModeFill = 2
|
|
304
|
+
}
|
|
305
|
+
export declare class VeLiveVideoEffectLicenseConfiguration {
|
|
306
|
+
|
|
307
|
+
type: VeLiveVideoEffectLicenseType;
|
|
308
|
+
|
|
309
|
+
path: NSString;
|
|
310
|
+
|
|
311
|
+
key: NSString;
|
|
312
|
+
|
|
313
|
+
secret: NSString;
|
|
314
|
+
|
|
315
|
+
url: NSString;
|
|
316
|
+
|
|
317
|
+
initWithPath(path: NSString): this;
|
|
318
|
+
|
|
319
|
+
initWithKey(key: NSString, secret: NSString, url: NSString): this;
|
|
320
|
+
}
|
|
321
|
+
export declare enum VeLiveAudioFrameSource {
|
|
322
|
+
|
|
323
|
+
VeLiveAudioFrameSourceCapture = 1,
|
|
324
|
+
|
|
325
|
+
VeLiveAudioFrameSourcePreEncode = 2
|
|
326
|
+
}
|
|
327
|
+
export declare enum VeLivePushStatus {
|
|
328
|
+
|
|
329
|
+
VeLivePushStatusNone = 0,
|
|
330
|
+
|
|
331
|
+
VeLivePushStatusConnecting = 1,
|
|
332
|
+
|
|
333
|
+
VeLivePushStatusConnectSuccess = 2,
|
|
334
|
+
|
|
335
|
+
VeLivePushStatusReconnecting = 3,
|
|
336
|
+
|
|
337
|
+
VeLivePushStatusConnectStop = 4,
|
|
338
|
+
|
|
339
|
+
VeLivePushStatusConnectError = 5,
|
|
340
|
+
|
|
341
|
+
VeLivePushStatusDisconnected = 6
|
|
342
|
+
}
|
|
343
|
+
export declare enum VeLiveFirstFrameType {
|
|
344
|
+
|
|
345
|
+
VeLiveFirstCaptureFrame = 0,
|
|
346
|
+
|
|
347
|
+
VeLiveFirstRenderFrame = 1,
|
|
348
|
+
|
|
349
|
+
VeLiveFirstEncodedFrame = 2,
|
|
350
|
+
|
|
351
|
+
VeLiveFirstSendFrame = 3,
|
|
352
|
+
|
|
353
|
+
VeLiveFirstAppAudioCaptureFrame = 4
|
|
354
|
+
}
|
|
355
|
+
export declare enum VeLiveAudioSampleRate {
|
|
356
|
+
|
|
357
|
+
VeLiveAudioSampleRate44100 = 44100
|
|
358
|
+
}
|
|
359
|
+
export declare class VeLivePusherStatistics {
|
|
360
|
+
|
|
361
|
+
captureWidth: int;
|
|
362
|
+
|
|
363
|
+
captureHeight: int;
|
|
364
|
+
|
|
365
|
+
captureFps: int;
|
|
366
|
+
|
|
367
|
+
encodeWidth: int;
|
|
368
|
+
|
|
369
|
+
encodeHeight: int;
|
|
370
|
+
|
|
371
|
+
encodeFps: int;
|
|
372
|
+
|
|
373
|
+
encodeVideoBitrate: int;
|
|
374
|
+
|
|
375
|
+
encodeAudioBitrate: int;
|
|
376
|
+
|
|
377
|
+
transportFps: int;
|
|
378
|
+
|
|
379
|
+
transportVideoBitrate: int;
|
|
380
|
+
|
|
381
|
+
fps: int;
|
|
382
|
+
|
|
383
|
+
videoBitrate: int;
|
|
384
|
+
|
|
385
|
+
minVideoBitrate: int;
|
|
386
|
+
|
|
387
|
+
maxVideoBitrate: int;
|
|
388
|
+
|
|
389
|
+
url: NSString;
|
|
390
|
+
|
|
391
|
+
codec: NSString;
|
|
392
|
+
init(): this;
|
|
393
|
+
}
|
|
394
|
+
export declare enum VeLivePixelFormat {
|
|
395
|
+
|
|
396
|
+
VeLivePixelFormatUnknown = -1,
|
|
397
|
+
|
|
398
|
+
VeLivePixelFormatI420 = 0,
|
|
399
|
+
|
|
400
|
+
VeLivePixelFormatNV12 = 1,
|
|
401
|
+
|
|
402
|
+
VeLivePixelFormatNV21 = 2,
|
|
403
|
+
|
|
404
|
+
VeLivePixelFormatBGRA32 = 3,
|
|
405
|
+
|
|
406
|
+
VeLivePixelFormat2DTexture = 4
|
|
407
|
+
}
|
|
408
|
+
export declare class VeLiveVideoCaptureConfiguration {
|
|
409
|
+
|
|
410
|
+
width: int;
|
|
411
|
+
|
|
412
|
+
height: int;
|
|
413
|
+
|
|
414
|
+
fps: int;
|
|
415
|
+
|
|
416
|
+
pixelFormat: OSType;
|
|
417
|
+
init(): this;
|
|
418
|
+
}
|
|
419
|
+
export declare class VeLiveAudioFrame {
|
|
420
|
+
|
|
421
|
+
bufferType: VeLiveAudioBufferType;
|
|
422
|
+
|
|
423
|
+
sampleRate: VeLiveAudioSampleRate;
|
|
424
|
+
|
|
425
|
+
channels: VeLiveAudioChannel;
|
|
426
|
+
|
|
427
|
+
pts: CMTime;
|
|
428
|
+
|
|
429
|
+
sampleBuffer: CMSampleBufferRef;
|
|
430
|
+
|
|
431
|
+
data: NSData;
|
|
432
|
+
init(): this;
|
|
433
|
+
}
|
|
434
|
+
export declare enum VeLiveAudioPowerLevel {
|
|
435
|
+
|
|
436
|
+
VeLiveAudioPowerLevelSilent = 0,
|
|
437
|
+
|
|
438
|
+
VeLiveAudioPowerLevelQuiet = 1,
|
|
439
|
+
|
|
440
|
+
VeLiveAudioPowerLevelLight = 2,
|
|
441
|
+
|
|
442
|
+
VeLiveAudioPowerLevelNormal = 3,
|
|
443
|
+
|
|
444
|
+
VeLiveAudioPowerLevelLoud = 4,
|
|
445
|
+
|
|
446
|
+
VeLiveAudioPowerLevelNoisy = 5
|
|
447
|
+
}
|
|
448
|
+
export declare enum UIInterfaceOrientation {
|
|
449
|
+
UIInterfaceOrientationUnknown = 0,
|
|
450
|
+
UIInterfaceOrientationPortrait = 1,
|
|
451
|
+
UIInterfaceOrientationPortraitUpsideDown = 2,
|
|
452
|
+
UIInterfaceOrientationLandscapeLeft = 3,
|
|
453
|
+
UIInterfaceOrientationLandscapeRight = 4
|
|
454
|
+
}
|
|
455
|
+
export declare enum OSType {
|
|
456
|
+
kCVPixelFormatType_32BGRA = "BGRA",
|
|
457
|
+
kCVPixelFormatType_420YpCbCr8BiPlanarFullRange = "420f",
|
|
458
|
+
kCVPixelFormatType_420YpCbCr8BiPlanarVideoRange = "420v",
|
|
459
|
+
kCVPixelFormatType_420YpCbCr10BiPlanarVideoRange = "x420"
|
|
460
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
export type id<T = any> = T;
|
|
2
|
+
export type BOOL = boolean;
|
|
3
|
+
export type bool = boolean;
|
|
4
|
+
export type int = number;
|
|
5
|
+
export type long = number;
|
|
6
|
+
export type float = number;
|
|
7
|
+
export type int64_t = number;
|
|
8
|
+
export type double = number;
|
|
9
|
+
export type dispatch_queue_t = any;
|
|
10
|
+
export type NSString = string;
|
|
11
|
+
export type NSMutableString = string;
|
|
12
|
+
export type NSInteger = number;
|
|
13
|
+
export type NSUInteger = number;
|
|
14
|
+
export type NSNumber = number;
|
|
15
|
+
export type NSValue = number;
|
|
16
|
+
export type NSNull = null;
|
|
17
|
+
export type NSArray<T = any> = Array<T>;
|
|
18
|
+
export type NSMutableArray<T = any> = Array<T>;
|
|
19
|
+
export type NSObject<T = any> = T;
|
|
20
|
+
export type NSDictionary<K extends keyof any = any, V = any> = {
|
|
21
|
+
[P in K]: V;
|
|
22
|
+
};
|
|
23
|
+
export type NSMutableDictionary = Object;
|
|
24
|
+
export type NSDate = Date;
|
|
25
|
+
export type NSData = ArrayBuffer;
|
|
26
|
+
export type NSURL = string;
|
|
27
|
+
export type NSError = {
|
|
28
|
+
code: number;
|
|
29
|
+
domain: string;
|
|
30
|
+
};
|
|
31
|
+
export type NSTimeInterval = number;
|
|
32
|
+
export type UIImage = unknown;
|
|
33
|
+
export type CVPixelBufferRef = any;
|
|
34
|
+
export type CMSampleBufferRef = any;
|
|
35
|
+
export type CMTime = number;
|
|
36
|
+
export type GLuint = number;
|
|
37
|
+
export type CGFloat = number;
|
|
38
|
+
export type SInt64 = number;
|
|
39
|
+
export type intptr_t = any;
|
|
40
|
+
export type uint32_t = number;
|
|
41
|
+
export type uint8_t = number;
|
|
42
|
+
export type longlong = number;
|
|
43
|
+
export type CGPoint = any;
|
|
44
|
+
export type CGRect = any;
|
|
45
|
+
export type CGSize = any;
|
|
46
|
+
export type EAGLContext = any;
|