@byteplus/react-native-live-push 1.0.2 → 1.0.3-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/NativeVariableManager.java +1 -1
- package/android/src/main/java/com/volcengine/velive/rn/push/VeLivePushModule.java +5 -3
- package/android/src/main/java/com/volcengine/velive/rn/push/VeLivePushViewManager.java +10 -5
- package/ios/VeLivePushView.m +1 -1
- package/ios/VeLivePushViewManager.m +5 -1
- package/lib/commonjs/index.js +21799 -17839
- package/lib/module/index.js +21799 -17832
- package/lib/typescript/android/index.d.ts +3 -0
- package/lib/typescript/codegen/android/api.d.ts +1350 -75
- package/lib/typescript/codegen/android/keytype.d.ts +439 -62
- package/lib/typescript/codegen/android/types.d.ts +7 -6
- package/lib/typescript/codegen/ios/api.d.ts +11 -19
- package/lib/typescript/codegen/ios/callback.d.ts +17 -25
- package/lib/typescript/codegen/ios/external.d.ts +1 -0
- package/lib/typescript/codegen/ios/index.d.ts +1 -0
- package/lib/typescript/codegen/ios/keytype.d.ts +6 -34
- package/lib/typescript/codegen/ios/types.d.ts +16 -5
- package/lib/typescript/codegen/pack/api.d.ts +1250 -1216
- package/lib/typescript/codegen/pack/callback.d.ts +153 -295
- package/lib/typescript/codegen/pack/errorcode.d.ts +11 -150
- package/lib/typescript/codegen/pack/index.d.ts +1 -1
- package/lib/typescript/codegen/pack/keytype.d.ts +806 -1366
- package/lib/typescript/codegen/pack/types.d.ts +67 -0
- package/lib/typescript/component.d.ts +10 -3
- package/lib/typescript/core/api.d.ts +2 -2
- package/lib/typescript/core/callback.d.ts +2 -2
- package/lib/typescript/core/errorcode.d.ts +2 -2
- package/lib/typescript/core/keytype.d.ts +2 -7
- package/lib/typescript/platforms/ios/extends.d.ts +17 -0
- package/package.json +2 -1
- package/react-native-velive-push.podspec +3 -3
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { NSString, BOOL, int, float, CGPoint, NSDictionary, id,
|
|
2
|
-
import { VeLiveFileRecorderConfiguration, VeLiveAudioMixType, VeLiveVideoFrame, VeLiveAudioFrame, VeLiveStreamMixDescription, VeLivePusherConfiguration, VeLivePusherRenderMode, VeLiveVideoMirrorType, VeLiveVideoCaptureType, VeLiveAudioCaptureType, VeLiveVideoEncoderConfiguration, VeLiveAudioEncoderConfiguration, UIInterfaceOrientation, VeLiveVideoEncodeFrame,
|
|
1
|
+
import { NSString, BOOL, int, float, CGPoint, NSDictionary, id, long, NSArray, UIImage } from './types';
|
|
2
|
+
import { VeLiveFileRecorderConfiguration, VeLiveAudioMixType, VeLiveVideoFrame, VeLiveAudioFrame, VeLiveStreamMixDescription, VeLivePusherLogLevel, VeLivePusherConfiguration, VeLivePusherRenderMode, VeLiveVideoMirrorType, VeLiveVideoCaptureType, VeLiveAudioCaptureType, VeLiveVideoEncoderConfiguration, VeLiveAudioEncoderConfiguration, UIInterfaceOrientation, VeLiveVideoEncodeFrame, VeLiveVideoEffectLicenseConfiguration } from './keytype';
|
|
3
3
|
import { VeLiveMediaPlayerListener, VeLiveMediaPlayerFrameListener, VeLivePusherObserver, VeLivePusherStatisticsObserver, VeLiveVideoFrameListener, VeLiveAudioFrameListener, VeLiveScreenCaptureStatusObserver, VeLiveFileRecordingListener, VeLiveVideoFrameFilter, VeLiveAudioFrameFilter, VeLiveSnapshotListener } from './callback';
|
|
4
|
+
import { UIView } from './external';
|
|
4
5
|
export declare class VeLiveFileRecorderManager {
|
|
5
|
-
init(): this;
|
|
6
6
|
|
|
7
7
|
startRecord(path: NSString, config: VeLiveFileRecorderConfiguration): void;
|
|
8
8
|
|
|
9
9
|
stopRecord(): void;
|
|
10
|
+
init(): this;
|
|
10
11
|
}
|
|
11
12
|
export declare class VeLiveCameraDevice {
|
|
12
|
-
init(): this;
|
|
13
13
|
|
|
14
14
|
isTorchSupported(): BOOL;
|
|
15
15
|
|
|
@@ -42,9 +42,9 @@ export declare class VeLiveCameraDevice {
|
|
|
42
42
|
setParameter(parameter: NSDictionary): void;
|
|
43
43
|
|
|
44
44
|
getParameter(key: NSString): id;
|
|
45
|
+
init(): this;
|
|
45
46
|
}
|
|
46
47
|
export declare class VeLiveMediaPlayer {
|
|
47
|
-
init(): this;
|
|
48
48
|
|
|
49
49
|
prepare(url: NSString): int;
|
|
50
50
|
|
|
@@ -77,9 +77,9 @@ export declare class VeLiveMediaPlayer {
|
|
|
77
77
|
setBGMVolume(volume: float): void;
|
|
78
78
|
|
|
79
79
|
setVoiceVolume(volume: float): void;
|
|
80
|
+
init(): this;
|
|
80
81
|
}
|
|
81
82
|
export declare class VeLiveAudioDevice {
|
|
82
|
-
init(): this;
|
|
83
83
|
|
|
84
84
|
setVoiceLoudness(level: float): void;
|
|
85
85
|
|
|
@@ -90,17 +90,15 @@ export declare class VeLiveAudioDevice {
|
|
|
90
90
|
enableEcho(enable: BOOL): void;
|
|
91
91
|
|
|
92
92
|
isEnableEcho(): BOOL;
|
|
93
|
+
init(): this;
|
|
93
94
|
}
|
|
94
95
|
export declare class VeLiveMixerManager {
|
|
95
|
-
init(): this;
|
|
96
96
|
|
|
97
97
|
addVideoStream(): int;
|
|
98
98
|
|
|
99
99
|
removeVideoStream(streamId: int): void;
|
|
100
100
|
|
|
101
|
-
addAudioStream(): int;
|
|
102
|
-
|
|
103
|
-
addAudioStream_type(type: VeLiveAudioMixType): int;
|
|
101
|
+
addAudioStream(type: VeLiveAudioMixType): int;
|
|
104
102
|
|
|
105
103
|
removeAudioStream(streamId: int): void;
|
|
106
104
|
|
|
@@ -117,18 +115,16 @@ export declare class VeLiveMixerManager {
|
|
|
117
115
|
sendCustomAudioFrame(frame: VeLiveAudioFrame, streamId: int): void;
|
|
118
116
|
|
|
119
117
|
updateStreamMixDescription(mixDescription: VeLiveStreamMixDescription): void;
|
|
118
|
+
init(): this;
|
|
120
119
|
}
|
|
121
120
|
export declare class VeLivePusher {
|
|
122
121
|
|
|
123
|
-
static getVersion(): NSString;
|
|
124
|
-
|
|
125
|
-
static setLogConfig(logConfig: VeLivePusherLogConfig): BOOL;
|
|
126
|
-
|
|
127
122
|
static setLogLevel(level: VeLivePusherLogLevel): void;
|
|
128
123
|
|
|
129
124
|
startScreenCapture(applicationGroupIdentifier: NSString): void;
|
|
130
125
|
|
|
131
126
|
stopScreenCapture(): void;
|
|
127
|
+
init(): this;
|
|
132
128
|
|
|
133
129
|
initWithConfig(config: VeLivePusherConfiguration): this;
|
|
134
130
|
|
|
@@ -223,13 +219,8 @@ export declare class VeLivePusher {
|
|
|
223
219
|
setProperty(key: NSString, value: id): int;
|
|
224
220
|
|
|
225
221
|
requestIDRFrame(): void;
|
|
226
|
-
|
|
227
|
-
setEGLVersion(version: int): void;
|
|
228
|
-
|
|
229
|
-
getEGLContext(): EAGLContext;
|
|
230
222
|
}
|
|
231
223
|
export declare class VeLiveVideoEffectManager {
|
|
232
|
-
init(): this;
|
|
233
224
|
|
|
234
225
|
setupWithConfig(config: VeLiveVideoEffectLicenseConfiguration): int;
|
|
235
226
|
|
|
@@ -254,4 +245,5 @@ export declare class VeLiveVideoEffectManager {
|
|
|
254
245
|
setSticker(path: NSString): int;
|
|
255
246
|
|
|
256
247
|
setAdvancedFeature(callback: (handle: void) => void, isGLThread: BOOL, isAsync: BOOL): void;
|
|
248
|
+
init(): this;
|
|
257
249
|
}
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import { VeLivePusherStatistics, VeLiveVideoFrame, VeLiveAudioFrame,
|
|
1
|
+
import { VeLivePusherStatistics, VeLiveVideoFrame, VeLiveAudioFrame, VeLivePushStatus, VeLiveFirstFrameType, VeLiveNetworkQuality, VeLiveAudioPowerLevel } from './keytype';
|
|
2
2
|
import { NSDictionary, int, NSString, long, NSError, UIImage, int64_t, BOOL, float } from './types';
|
|
3
|
-
export declare
|
|
3
|
+
export declare class VeLivePusherStatisticsObserver {
|
|
4
4
|
|
|
5
5
|
onStatistics?(statistics: VeLivePusherStatistics): void;
|
|
6
6
|
|
|
7
7
|
onLogMonitor?(logInfo: NSDictionary): void;
|
|
8
8
|
}
|
|
9
|
-
export declare
|
|
9
|
+
export declare class VeLiveMediaPlayerFrameListener {
|
|
10
10
|
|
|
11
11
|
onVideoFrame?(videoFrame: VeLiveVideoFrame): void;
|
|
12
12
|
|
|
13
13
|
onAudioFrame?(audioFrame: VeLiveAudioFrame): void;
|
|
14
14
|
}
|
|
15
|
-
export declare
|
|
15
|
+
export declare class VeLiveFileRecordingListener {
|
|
16
16
|
|
|
17
17
|
onFileRecordingStarted?(): void;
|
|
18
18
|
|
|
19
19
|
onFileRecordingStopped?(): void;
|
|
20
20
|
|
|
21
|
-
onFileRecordingError?(errorCode: int, msg: NSString): void;
|
|
21
|
+
onFileRecordingError$message?(errorCode: int, msg: NSString): void;
|
|
22
22
|
}
|
|
23
|
-
export declare
|
|
23
|
+
export declare class VeLiveScreenCaptureStatusObserver {
|
|
24
24
|
|
|
25
25
|
broadcastStarted?(): void;
|
|
26
26
|
|
|
@@ -30,27 +30,21 @@ export declare abstract class VeLiveScreenCaptureStatusObserver {
|
|
|
30
30
|
|
|
31
31
|
broadcastFinished?(): void;
|
|
32
32
|
}
|
|
33
|
-
export declare
|
|
34
|
-
|
|
35
|
-
onVideoProcess?(srcFrame: VeLiveVideoFrame, dstFrame: VeLiveVideoFrame): int;
|
|
33
|
+
export declare class VeLiveVideoFrameFilter {
|
|
36
34
|
}
|
|
37
|
-
export declare
|
|
38
|
-
|
|
39
|
-
getObservedVideoFrameSource?(): VeLiveVideoFrameSource;
|
|
35
|
+
export declare class VeLiveVideoFrameListener {
|
|
40
36
|
|
|
41
37
|
onCaptureVideoFrame?(frame: VeLiveVideoFrame): void;
|
|
42
38
|
|
|
43
39
|
onPreEncodeVideoFrame?(frame: VeLiveVideoFrame): void;
|
|
44
40
|
}
|
|
45
|
-
export declare
|
|
46
|
-
|
|
47
|
-
getObservedAudioFrameSource?(): VeLiveAudioFrameSource;
|
|
41
|
+
export declare class VeLiveAudioFrameListener {
|
|
48
42
|
|
|
49
43
|
onCaptureAudioFrame?(frame: VeLiveAudioFrame): void;
|
|
50
44
|
|
|
51
45
|
onPreEncodeAudioFrame?(frame: VeLiveAudioFrame): void;
|
|
52
46
|
}
|
|
53
|
-
export declare
|
|
47
|
+
export declare class VeLiveMediaPlayerListener {
|
|
54
48
|
|
|
55
49
|
onStart?(): void;
|
|
56
50
|
|
|
@@ -60,23 +54,21 @@ export declare abstract class VeLiveMediaPlayerListener {
|
|
|
60
54
|
|
|
61
55
|
onError?(error: NSError): void;
|
|
62
56
|
}
|
|
63
|
-
export declare
|
|
64
|
-
|
|
65
|
-
onAudioProcess?(srcFrame: VeLiveAudioFrame, dstFrame: VeLiveAudioFrame): int;
|
|
57
|
+
export declare class VeLiveAudioFrameFilter {
|
|
66
58
|
}
|
|
67
|
-
export declare
|
|
59
|
+
export declare class VeLiveSnapshotListener {
|
|
68
60
|
|
|
69
61
|
onSnapshotComplete?(image: UIImage): void;
|
|
70
62
|
}
|
|
71
|
-
export declare
|
|
63
|
+
export declare class VeLivePusherObserver {
|
|
72
64
|
|
|
73
|
-
onError?(code: int, subcode: int, msg: NSString): void;
|
|
65
|
+
onError$subcode$message?(code: int, subcode: int, msg: NSString): void;
|
|
74
66
|
|
|
75
67
|
onStatusChange?(status: VeLivePushStatus): void;
|
|
76
68
|
|
|
77
|
-
onFirstVideoFrame?(type: VeLiveFirstFrameType, timestampMs: int64_t): void;
|
|
69
|
+
onFirstVideoFrame$timestampMs?(type: VeLiveFirstFrameType, timestampMs: int64_t): void;
|
|
78
70
|
|
|
79
|
-
onFirstAudioFrame?(type: VeLiveFirstFrameType, timestampMs: int64_t): void;
|
|
71
|
+
onFirstAudioFrame$timestampMs?(type: VeLiveFirstFrameType, timestampMs: int64_t): void;
|
|
80
72
|
|
|
81
73
|
onCameraOpened?(open: BOOL): void;
|
|
82
74
|
|
|
@@ -84,5 +76,5 @@ export declare abstract class VeLivePusherObserver {
|
|
|
84
76
|
|
|
85
77
|
onNetworkQuality?(quality: VeLiveNetworkQuality): void;
|
|
86
78
|
|
|
87
|
-
onAudioPowerQuality?(level: VeLiveAudioPowerLevel, value: float): void;
|
|
79
|
+
onAudioPowerQuality$value?(level: VeLiveAudioPowerLevel, value: float): void;
|
|
88
80
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { UIView } from '../../platforms/ios/extends';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { int, BOOL, NSDictionary, float, CMTime, GLuint, CVPixelBufferRef, CMSampleBufferRef, NSData, NSArray, NSString
|
|
1
|
+
import { int, BOOL, NSDictionary, float, CMTime, GLuint, CVPixelBufferRef, CMSampleBufferRef, NSData, NSArray, NSString } from './types';
|
|
2
2
|
export declare enum VeLiveVideoEffectLicenseType {
|
|
3
3
|
|
|
4
4
|
VeLiveVideoEffectLicenseTypeOffLine = 0,
|
|
@@ -55,9 +55,9 @@ export declare class VeLiveVideoEncoderConfiguration {
|
|
|
55
55
|
}
|
|
56
56
|
export declare enum VeLiveVideoFrameSource {
|
|
57
57
|
|
|
58
|
-
VeLiveVideoFrameSourceCapture =
|
|
58
|
+
VeLiveVideoFrameSourceCapture = 1,
|
|
59
59
|
|
|
60
|
-
VeLiveVideoFrameSourcePreEncode =
|
|
60
|
+
VeLiveVideoFrameSourcePreEncode = 2
|
|
61
61
|
}
|
|
62
62
|
export declare enum VeLiveAudioBufferType {
|
|
63
63
|
|
|
@@ -174,9 +174,9 @@ export declare class VeLiveVideoFrame {
|
|
|
174
174
|
sampleBuffer: CMSampleBufferRef;
|
|
175
175
|
|
|
176
176
|
data: NSData;
|
|
177
|
-
init(): this;
|
|
178
177
|
|
|
179
178
|
releaseCallback(): void;
|
|
179
|
+
init(): this;
|
|
180
180
|
}
|
|
181
181
|
export declare enum VeLiveVideoFluencyLevel {
|
|
182
182
|
|
|
@@ -320,9 +320,9 @@ export declare class VeLiveVideoEffectLicenseConfiguration {
|
|
|
320
320
|
}
|
|
321
321
|
export declare enum VeLiveAudioFrameSource {
|
|
322
322
|
|
|
323
|
-
VeLiveAudioFrameSourceCapture =
|
|
323
|
+
VeLiveAudioFrameSourceCapture = 1,
|
|
324
324
|
|
|
325
|
-
VeLiveAudioFrameSourcePreEncode =
|
|
325
|
+
VeLiveAudioFrameSourcePreEncode = 2
|
|
326
326
|
}
|
|
327
327
|
export declare enum VeLivePushStatus {
|
|
328
328
|
|
|
@@ -340,34 +340,6 @@ export declare enum VeLivePushStatus {
|
|
|
340
340
|
|
|
341
341
|
VeLivePushStatusDisconnected = 6
|
|
342
342
|
}
|
|
343
|
-
export declare class VeLivePusherLogConfig {
|
|
344
|
-
deviceID: NSString;
|
|
345
|
-
|
|
346
|
-
logPath: NSString;
|
|
347
|
-
|
|
348
|
-
maxLogSizeM: NSUInteger;
|
|
349
|
-
|
|
350
|
-
singleLogSizeM: NSUInteger;
|
|
351
|
-
|
|
352
|
-
logExpireTimeS: NSUInteger;
|
|
353
|
-
|
|
354
|
-
enableConsole: BOOL;
|
|
355
|
-
|
|
356
|
-
enableLogFile: BOOL;
|
|
357
|
-
|
|
358
|
-
logLevel: VeLivePusherLogLevel;
|
|
359
|
-
|
|
360
|
-
queryUrl: NSString;
|
|
361
|
-
|
|
362
|
-
enableThreadLoop: int;
|
|
363
|
-
|
|
364
|
-
intervalMs: long;
|
|
365
|
-
|
|
366
|
-
httpTimeout: int;
|
|
367
|
-
|
|
368
|
-
uploadFileHttpTimeout: int;
|
|
369
|
-
init(): this;
|
|
370
|
-
}
|
|
371
343
|
export declare enum VeLiveFirstFrameType {
|
|
372
344
|
|
|
373
345
|
VeLiveFirstCaptureFrame = 0,
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
export type id<T = any> = T;
|
|
2
2
|
export type BOOL = boolean;
|
|
3
|
+
export type bool = boolean;
|
|
3
4
|
export type int = number;
|
|
4
5
|
export type long = number;
|
|
5
6
|
export type float = number;
|
|
6
7
|
export type int64_t = number;
|
|
8
|
+
export type double = number;
|
|
9
|
+
export type dispatch_queue_t = any;
|
|
7
10
|
export type NSString = string;
|
|
8
11
|
export type NSMutableString = string;
|
|
9
12
|
export type NSInteger = number;
|
|
@@ -11,10 +14,12 @@ export type NSUInteger = number;
|
|
|
11
14
|
export type NSNumber = number;
|
|
12
15
|
export type NSValue = number;
|
|
13
16
|
export type NSNull = null;
|
|
14
|
-
export type NSArray<T> = Array<T>;
|
|
15
|
-
export type NSMutableArray<T> = Array<T>;
|
|
16
|
-
export type NSObject =
|
|
17
|
-
export type NSDictionary =
|
|
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
|
+
};
|
|
18
23
|
export type NSMutableDictionary = Object;
|
|
19
24
|
export type NSDate = Date;
|
|
20
25
|
export type NSData = ArrayBuffer;
|
|
@@ -24,12 +29,18 @@ export type NSError = {
|
|
|
24
29
|
domain: string;
|
|
25
30
|
};
|
|
26
31
|
export type NSTimeInterval = number;
|
|
27
|
-
export type UIView = any;
|
|
28
32
|
export type UIImage = unknown;
|
|
29
33
|
export type CVPixelBufferRef = any;
|
|
30
34
|
export type CMSampleBufferRef = any;
|
|
31
35
|
export type CMTime = number;
|
|
32
36
|
export type GLuint = number;
|
|
33
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;
|
|
34
43
|
export type CGPoint = any;
|
|
44
|
+
export type CGRect = any;
|
|
45
|
+
export type CGSize = any;
|
|
35
46
|
export type EAGLContext = any;
|