@byteplus/react-native-live-push 1.1.3-rc.1 → 1.1.3-rc.3
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 +397 -0
- package/android/src/main/java/com/volcengine/velive/rn/push/mixer/MixerView.java +423 -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 +44 -0
- package/ios/VeLiveMixerHelper.m +591 -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,33 @@
|
|
|
1
|
+
export type String = string;
|
|
2
|
+
export type Boolean = boolean;
|
|
3
|
+
export type Void = void;
|
|
4
|
+
export type int = number;
|
|
5
|
+
export type float = number;
|
|
6
|
+
export type double = number;
|
|
7
|
+
export type long = number;
|
|
8
|
+
export type Integer = number;
|
|
9
|
+
export type Double = number;
|
|
10
|
+
export type List<T = any> = Array<T>;
|
|
11
|
+
export type list<T = any> = Array<T>;
|
|
12
|
+
export type ArrayList<T = any> = Array<T>;
|
|
13
|
+
export type Map<K extends keyof any = any, V = any> = Record<K, V>;
|
|
14
|
+
export type HashMap<K extends keyof any = any, V = any> = Record<K, V>;
|
|
15
|
+
export type Pair<K extends keyof any = any, V = any> = Record<K, V>;
|
|
16
|
+
export type set<T = any> = Set<T>;
|
|
17
|
+
export type map = Object;
|
|
18
|
+
export type struct = Object;
|
|
19
|
+
export type Bitmap = unknown;
|
|
20
|
+
export type EGLContext = unknown;
|
|
21
|
+
export type ByteArray = number;
|
|
22
|
+
export type ByteBuffer = ArrayBuffer;
|
|
23
|
+
export type Matrix = unknown;
|
|
24
|
+
export type SurfaceHolder = unknown;
|
|
25
|
+
export type Surface = unknown;
|
|
26
|
+
export type Runnable = unknown;
|
|
27
|
+
export type View = unknown;
|
|
28
|
+
export type Intent = unknown;
|
|
29
|
+
export type Context = unknown;
|
|
30
|
+
export type Bundle = any;
|
|
31
|
+
export type JSONObject = any;
|
|
32
|
+
export type LiveSdkSetting = unknown;
|
|
33
|
+
export type NativeImageResource = unknown;
|
|
@@ -0,0 +1,222 @@
|
|
|
1
|
+
import { NSString, BOOL, int, float, CGPoint, NSDictionary, id, long, NSArray, UIImage } from './types';
|
|
2
|
+
import { VeLiveFileRecorderConfiguration, VeLivePusherLogLevel, VeLivePusherConfiguration, VeLivePusherRenderMode, VeLiveVideoMirrorType, VeLiveVideoCaptureType, VeLiveAudioCaptureType, VeLiveVideoEncoderConfiguration, VeLiveAudioEncoderConfiguration, UIInterfaceOrientation, VeLiveVideoFrame, VeLiveVideoEncodeFrame, VeLiveAudioFrame, VeLiveVideoEffectLicenseConfiguration } from './keytype';
|
|
3
|
+
import { VeLiveMediaPlayerListener, VeLiveMediaPlayerFrameListener, VeLivePusherObserver, VeLivePusherStatisticsObserver, VeLiveVideoFrameListener, VeLiveAudioFrameListener, VeLiveScreenCaptureStatusObserver, VeLiveFileRecordingListener, VeLiveVideoFrameFilter, VeLiveAudioFrameFilter, VeLiveSnapshotListener } from './callback';
|
|
4
|
+
import { UIView } from './external';
|
|
5
|
+
export declare class VeLiveFileRecorderManager {
|
|
6
|
+
|
|
7
|
+
startRecord(path: NSString, config: VeLiveFileRecorderConfiguration): void;
|
|
8
|
+
|
|
9
|
+
stopRecord(): void;
|
|
10
|
+
init(): this;
|
|
11
|
+
}
|
|
12
|
+
export declare class VeLiveCameraDevice {
|
|
13
|
+
|
|
14
|
+
isTorchSupported(): BOOL;
|
|
15
|
+
|
|
16
|
+
enableTorch(enable: BOOL): int;
|
|
17
|
+
|
|
18
|
+
setZoomRatio(ratio: float): int;
|
|
19
|
+
|
|
20
|
+
getCurrentZoomRatio(): float;
|
|
21
|
+
|
|
22
|
+
getMaxZoomRatio(): float;
|
|
23
|
+
|
|
24
|
+
getMinZoomRatio(): float;
|
|
25
|
+
|
|
26
|
+
isAutoFocusEnabled(): BOOL;
|
|
27
|
+
|
|
28
|
+
enableAutoFocus(enable: BOOL): int;
|
|
29
|
+
|
|
30
|
+
setFocusPosition(position: CGPoint): int;
|
|
31
|
+
|
|
32
|
+
isExposurePositionSupported(): BOOL;
|
|
33
|
+
|
|
34
|
+
setExposurePosition(position: CGPoint): int;
|
|
35
|
+
|
|
36
|
+
setExposureCompensation(value: float): int;
|
|
37
|
+
|
|
38
|
+
getMinExposureCompensation(): float;
|
|
39
|
+
|
|
40
|
+
getMaxExposureCompensation(): float;
|
|
41
|
+
|
|
42
|
+
setParameter(parameter: NSDictionary): void;
|
|
43
|
+
|
|
44
|
+
getParameter(key: NSString): id;
|
|
45
|
+
init(): this;
|
|
46
|
+
}
|
|
47
|
+
export declare class VeLiveMediaPlayer {
|
|
48
|
+
|
|
49
|
+
prepare(url: NSString): int;
|
|
50
|
+
|
|
51
|
+
destroy(): void;
|
|
52
|
+
|
|
53
|
+
setListener(listener: id<VeLiveMediaPlayerListener>): void;
|
|
54
|
+
|
|
55
|
+
setFrameListener(listener: id<VeLiveMediaPlayerFrameListener>): void;
|
|
56
|
+
|
|
57
|
+
enableMixer(enable: BOOL): void;
|
|
58
|
+
|
|
59
|
+
enableAutoEq(sourceLufs: float, targetLufs: float): void;
|
|
60
|
+
|
|
61
|
+
setRenderView(view: UIView): void;
|
|
62
|
+
|
|
63
|
+
enableBGMLoop(enable: BOOL): void;
|
|
64
|
+
|
|
65
|
+
start(): Promise<int>;
|
|
66
|
+
|
|
67
|
+
stop(): Promise<int>;
|
|
68
|
+
|
|
69
|
+
pause(): Promise<void>;
|
|
70
|
+
|
|
71
|
+
resume(): Promise<void>;
|
|
72
|
+
|
|
73
|
+
seek(pos: long): int;
|
|
74
|
+
|
|
75
|
+
getDuration(): long;
|
|
76
|
+
|
|
77
|
+
setBGMVolume(volume: float): void;
|
|
78
|
+
|
|
79
|
+
setVoiceVolume(volume: float): void;
|
|
80
|
+
init(): this;
|
|
81
|
+
}
|
|
82
|
+
export declare class VeLiveAudioDevice {
|
|
83
|
+
|
|
84
|
+
setVoiceLoudness(level: float): void;
|
|
85
|
+
|
|
86
|
+
getVoiceLoudness(): float;
|
|
87
|
+
|
|
88
|
+
isSupportHardwareEcho(): BOOL;
|
|
89
|
+
|
|
90
|
+
enableEcho(enable: BOOL): void;
|
|
91
|
+
|
|
92
|
+
isEnableEcho(): BOOL;
|
|
93
|
+
init(): this;
|
|
94
|
+
}
|
|
95
|
+
export declare class VeLivePusher {
|
|
96
|
+
|
|
97
|
+
static setLogLevel(level: VeLivePusherLogLevel): void;
|
|
98
|
+
|
|
99
|
+
startScreenCapture(applicationGroupIdentifier: NSString): void;
|
|
100
|
+
|
|
101
|
+
stopScreenCapture(): void;
|
|
102
|
+
init(): this;
|
|
103
|
+
|
|
104
|
+
initWithConfig(config: VeLivePusherConfiguration): this;
|
|
105
|
+
|
|
106
|
+
destroy(): void;
|
|
107
|
+
|
|
108
|
+
setObserver(observer: id<VeLivePusherObserver>): void;
|
|
109
|
+
|
|
110
|
+
setStatisticsObserver(observer: id<VeLivePusherStatisticsObserver>, interval: int): void;
|
|
111
|
+
|
|
112
|
+
addVideoFrameListener(listener: id<VeLiveVideoFrameListener>): int;
|
|
113
|
+
|
|
114
|
+
removeVideoFrameListener(listener: id<VeLiveVideoFrameListener>): int;
|
|
115
|
+
|
|
116
|
+
addAudioFrameListener(listener: id<VeLiveAudioFrameListener>): int;
|
|
117
|
+
|
|
118
|
+
removeAudioFrameListener(listener: id<VeLiveAudioFrameListener>): int;
|
|
119
|
+
|
|
120
|
+
setScreenCaptureObserver(observer: id<VeLiveScreenCaptureStatusObserver>): int;
|
|
121
|
+
|
|
122
|
+
setRenderView(view: UIView): Promise<void>;
|
|
123
|
+
|
|
124
|
+
setRenderFillMode(fillMode: VeLivePusherRenderMode): void;
|
|
125
|
+
|
|
126
|
+
setVideoMirror(type: VeLiveVideoMirrorType, enable: BOOL): void;
|
|
127
|
+
|
|
128
|
+
startPush(url: NSString): void;
|
|
129
|
+
|
|
130
|
+
startPushWithUrls(urls: NSArray<NSString>): void;
|
|
131
|
+
|
|
132
|
+
stopPush(): void;
|
|
133
|
+
|
|
134
|
+
isPushing(): BOOL;
|
|
135
|
+
|
|
136
|
+
startVideoCapture(type: VeLiveVideoCaptureType): void;
|
|
137
|
+
|
|
138
|
+
stopVideoCapture(): void;
|
|
139
|
+
|
|
140
|
+
switchVideoCapture(type: VeLiveVideoCaptureType): void;
|
|
141
|
+
|
|
142
|
+
startAudioCapture(type: VeLiveAudioCaptureType): void;
|
|
143
|
+
|
|
144
|
+
stopAudioCapture(): void;
|
|
145
|
+
|
|
146
|
+
switchAudioCapture(type: VeLiveAudioCaptureType): void;
|
|
147
|
+
|
|
148
|
+
getCurrentVideoCaptureType(): VeLiveVideoCaptureType;
|
|
149
|
+
|
|
150
|
+
getCurrentAudioCaptureType(): VeLiveAudioCaptureType;
|
|
151
|
+
|
|
152
|
+
updateCustomImage(image: UIImage): Promise<void>;
|
|
153
|
+
|
|
154
|
+
setMute(mute: BOOL): void;
|
|
155
|
+
|
|
156
|
+
isMute(): BOOL;
|
|
157
|
+
|
|
158
|
+
setVideoEncoderConfiguration(config: VeLiveVideoEncoderConfiguration): void;
|
|
159
|
+
|
|
160
|
+
setAudioEncoderConfiguration(config: VeLiveAudioEncoderConfiguration): void;
|
|
161
|
+
|
|
162
|
+
startFileRecording(path: NSString, config: VeLiveFileRecorderConfiguration, listener: id<VeLiveFileRecordingListener>): void;
|
|
163
|
+
|
|
164
|
+
stopFileRecording(): void;
|
|
165
|
+
|
|
166
|
+
getCameraDevice(): VeLiveCameraDevice;
|
|
167
|
+
|
|
168
|
+
getAudioDevice(): VeLiveAudioDevice;
|
|
169
|
+
|
|
170
|
+
getVideoEffectManager(): VeLiveVideoEffectManager;
|
|
171
|
+
|
|
172
|
+
createPlayer(): VeLiveMediaPlayer;
|
|
173
|
+
|
|
174
|
+
setVideoFrameFilter(filter: id<VeLiveVideoFrameFilter>): void;
|
|
175
|
+
|
|
176
|
+
setAudioFrameFilter(filter: id<VeLiveAudioFrameFilter>): void;
|
|
177
|
+
|
|
178
|
+
setOrientation(orientation: UIInterfaceOrientation): void;
|
|
179
|
+
|
|
180
|
+
setWatermark(image: UIImage, x: float, y: float, scale: float): Promise<int>;
|
|
181
|
+
|
|
182
|
+
snapshot(listener: id<VeLiveSnapshotListener>): void;
|
|
183
|
+
|
|
184
|
+
sendSeiMessage(key: NSString, value: id, repeat: int, isKeyFrame: BOOL, allowsCovered: BOOL): int;
|
|
185
|
+
|
|
186
|
+
pushExternalVideoFrame(frame: VeLiveVideoFrame): int;
|
|
187
|
+
|
|
188
|
+
pushExternalVideoEncodeFrame(encodeFrame: VeLiveVideoEncodeFrame): int;
|
|
189
|
+
|
|
190
|
+
pushExternalAudioFrame(frame: VeLiveAudioFrame): int;
|
|
191
|
+
|
|
192
|
+
setProperty(key: NSString, value: id): int;
|
|
193
|
+
|
|
194
|
+
requestIDRFrame(): void;
|
|
195
|
+
}
|
|
196
|
+
export declare class VeLiveVideoEffectManager {
|
|
197
|
+
|
|
198
|
+
setupWithConfig(config: VeLiveVideoEffectLicenseConfiguration): int;
|
|
199
|
+
|
|
200
|
+
updateLicense(completion: (result: number, message: string) => void): void;
|
|
201
|
+
|
|
202
|
+
setAlgoModelPath(path: NSString): int;
|
|
203
|
+
|
|
204
|
+
setEnable(enable: BOOL): int;
|
|
205
|
+
|
|
206
|
+
setComposeNodes(nodes: NSArray<NSString>): int;
|
|
207
|
+
|
|
208
|
+
appendComposeNodes(nodes: NSArray<NSString>): int;
|
|
209
|
+
|
|
210
|
+
removeComposeNodes(nodes: NSArray<NSString>): int;
|
|
211
|
+
|
|
212
|
+
updateComposerNodeIntensity(node: NSString, key: NSString, intensity: float): int;
|
|
213
|
+
|
|
214
|
+
setFilter(path: NSString): int;
|
|
215
|
+
|
|
216
|
+
updateFilterIntensity(intensity: float): int;
|
|
217
|
+
|
|
218
|
+
setSticker(path: NSString): int;
|
|
219
|
+
|
|
220
|
+
setAdvancedFeature(callback: (handle: void) => void, isGLThread: BOOL, isAsync: BOOL): void;
|
|
221
|
+
init(): this;
|
|
222
|
+
}
|
|
@@ -0,0 +1,80 @@
|
|
|
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
|
+
|
|
5
|
+
onStatistics?(statistics: VeLivePusherStatistics): void;
|
|
6
|
+
|
|
7
|
+
onLogMonitor?(logInfo: NSDictionary): void;
|
|
8
|
+
}
|
|
9
|
+
export declare class VeLiveMediaPlayerFrameListener {
|
|
10
|
+
|
|
11
|
+
onVideoFrame?(videoFrame: VeLiveVideoFrame): void;
|
|
12
|
+
|
|
13
|
+
onAudioFrame?(audioFrame: VeLiveAudioFrame): void;
|
|
14
|
+
}
|
|
15
|
+
export declare class VeLiveFileRecordingListener {
|
|
16
|
+
|
|
17
|
+
onFileRecordingStarted?(): void;
|
|
18
|
+
|
|
19
|
+
onFileRecordingStopped?(): void;
|
|
20
|
+
|
|
21
|
+
onFileRecordingError$message?(errorCode: int, msg: NSString): void;
|
|
22
|
+
}
|
|
23
|
+
export declare class VeLiveScreenCaptureStatusObserver {
|
|
24
|
+
|
|
25
|
+
broadcastStarted?(): void;
|
|
26
|
+
|
|
27
|
+
broadcastPaused?(): void;
|
|
28
|
+
|
|
29
|
+
broadcastResumed?(): void;
|
|
30
|
+
|
|
31
|
+
broadcastFinished?(): void;
|
|
32
|
+
}
|
|
33
|
+
export declare class VeLiveVideoFrameFilter {
|
|
34
|
+
}
|
|
35
|
+
export declare class VeLiveVideoFrameListener {
|
|
36
|
+
|
|
37
|
+
onCaptureVideoFrame?(frame: VeLiveVideoFrame): void;
|
|
38
|
+
|
|
39
|
+
onPreEncodeVideoFrame?(frame: VeLiveVideoFrame): void;
|
|
40
|
+
}
|
|
41
|
+
export declare class VeLiveAudioFrameListener {
|
|
42
|
+
|
|
43
|
+
onCaptureAudioFrame?(frame: VeLiveAudioFrame): void;
|
|
44
|
+
|
|
45
|
+
onPreEncodeAudioFrame?(frame: VeLiveAudioFrame): void;
|
|
46
|
+
}
|
|
47
|
+
export declare class VeLiveMediaPlayerListener {
|
|
48
|
+
|
|
49
|
+
onStart?(): void;
|
|
50
|
+
|
|
51
|
+
onProgress?(timeMS: long): void;
|
|
52
|
+
|
|
53
|
+
onStop?(): void;
|
|
54
|
+
|
|
55
|
+
onError?(error: NSError): void;
|
|
56
|
+
}
|
|
57
|
+
export declare class VeLiveAudioFrameFilter {
|
|
58
|
+
}
|
|
59
|
+
export declare class VeLiveSnapshotListener {
|
|
60
|
+
|
|
61
|
+
onSnapshotComplete?(image: UIImage): void;
|
|
62
|
+
}
|
|
63
|
+
export declare class VeLivePusherObserver {
|
|
64
|
+
|
|
65
|
+
onError$subcode$message?(code: int, subcode: int, msg: NSString): void;
|
|
66
|
+
|
|
67
|
+
onStatusChange?(status: VeLivePushStatus): void;
|
|
68
|
+
|
|
69
|
+
onFirstVideoFrame$timestampMs?(type: VeLiveFirstFrameType, timestampMs: int64_t): void;
|
|
70
|
+
|
|
71
|
+
onFirstAudioFrame$timestampMs?(type: VeLiveFirstFrameType, timestampMs: int64_t): void;
|
|
72
|
+
|
|
73
|
+
onCameraOpened?(open: BOOL): void;
|
|
74
|
+
|
|
75
|
+
onMicrophoneOpened?(open: BOOL): void;
|
|
76
|
+
|
|
77
|
+
onNetworkQuality?(quality: VeLiveNetworkQuality): void;
|
|
78
|
+
|
|
79
|
+
onAudioPowerQuality$value?(level: VeLiveAudioPowerLevel, value: float): void;
|
|
80
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
export declare enum VeLivePusherErrorCode {
|
|
2
|
+
|
|
3
|
+
VeLivePusherInvalidLicenseSubErrorCode = -100,
|
|
4
|
+
|
|
5
|
+
VeLivePusherInvalidLicenseUnsupportH265 = -101,
|
|
6
|
+
|
|
7
|
+
VeLivePusherInvalidParameterSubErrorCode = -200,
|
|
8
|
+
|
|
9
|
+
VeLivePusherInvalidParameterScreenCaptureAppGroupIdentifierSubErrorCode = -201,
|
|
10
|
+
|
|
11
|
+
VeLivePusherVideoCaptureTypeError = -301,
|
|
12
|
+
|
|
13
|
+
VeLivePusherVideoCapturePermissionError = -302,
|
|
14
|
+
|
|
15
|
+
VeLivePusherAudioCaptureTypeError = -401,
|
|
16
|
+
|
|
17
|
+
VeLivePusherAudioCapturePermissionError = -402,
|
|
18
|
+
|
|
19
|
+
VeLivePusherVideoEncoderSubErrorCode = -500,
|
|
20
|
+
|
|
21
|
+
VeLivePusherAudioEncoderSubErrorCode = -600,
|
|
22
|
+
|
|
23
|
+
VeLivePusherTransportSubErrorCode = -700,
|
|
24
|
+
|
|
25
|
+
VeLivePusherVideoEffectSubErrorCode = -800,
|
|
26
|
+
|
|
27
|
+
VeLivePusherAudioDeviceSubErrorCode = -900,
|
|
28
|
+
|
|
29
|
+
VeLivePusherInternalError = -1001
|
|
30
|
+
}
|
|
31
|
+
export declare enum VeLivePusherCode {
|
|
32
|
+
|
|
33
|
+
VeLivePusherSuccess = 0,
|
|
34
|
+
|
|
35
|
+
VeLivePusherInvalidLicense = -1,
|
|
36
|
+
|
|
37
|
+
VeLivePusherInvalidParameter = -2,
|
|
38
|
+
|
|
39
|
+
VeLivePusherVideoCaptureError = -3,
|
|
40
|
+
|
|
41
|
+
VeLivePusherAudioCaptureError = -4,
|
|
42
|
+
|
|
43
|
+
VeLivePusherVideoEncoderError = -5,
|
|
44
|
+
|
|
45
|
+
VeLivePusherAudioEncoderError = -6,
|
|
46
|
+
|
|
47
|
+
VeLivePusherTransportError = -7,
|
|
48
|
+
|
|
49
|
+
VeLivePusherVideoEffectError = -8,
|
|
50
|
+
|
|
51
|
+
VeLivePusherAudioDeviceError = -9,
|
|
52
|
+
|
|
53
|
+
VeLivePusherError = -100
|
|
54
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { UIView } from '../../platforms/ios/extends';
|