@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,91 @@
|
|
|
1
|
+
import { VeLiveVideoFrame, VeLiveAudioFrame } from './api';
|
|
2
|
+
import { int, String, Bundle, long, Bitmap, float, JSONObject } from './types';
|
|
3
|
+
import { VeLiveVideoFrameSource, VeLiveAudioFrameSource, VeLivePusherStatus, VeLiveFirstFrameType, VeLiveNetworkQuality, VeLiveAudioPowerLevel, VeLivePusherStatistics } from './keytype';
|
|
4
|
+
export declare class VeLiveVideoFrameFilter {
|
|
5
|
+
|
|
6
|
+
onVideoProcess?(srcFrame: VeLiveVideoFrame, dstFrame: VeLiveVideoFrame): int;
|
|
7
|
+
}
|
|
8
|
+
export declare class VeLiveVideoFrameListener {
|
|
9
|
+
|
|
10
|
+
getObservedVideoFrameSource?(): VeLiveVideoFrameSource;
|
|
11
|
+
|
|
12
|
+
onCaptureVideoFrame?(frame: VeLiveVideoFrame): void;
|
|
13
|
+
|
|
14
|
+
onPreEncodeVideoFrame?(frame: VeLiveVideoFrame): void;
|
|
15
|
+
}
|
|
16
|
+
export declare class VeLiveVideoEffectCallback {
|
|
17
|
+
|
|
18
|
+
onResult?(result: int, msg: String): void;
|
|
19
|
+
}
|
|
20
|
+
export declare class VeLiveMediaPlayerListener {
|
|
21
|
+
|
|
22
|
+
onStart?(info: Bundle): void;
|
|
23
|
+
|
|
24
|
+
onProgress?(timeMs: long): void;
|
|
25
|
+
|
|
26
|
+
onStop?(): void;
|
|
27
|
+
|
|
28
|
+
onError?(code: int, msg: String): void;
|
|
29
|
+
}
|
|
30
|
+
export declare class VeLiveAudioFrameListener {
|
|
31
|
+
|
|
32
|
+
getObservedAudioFrameSource?(): VeLiveAudioFrameSource;
|
|
33
|
+
|
|
34
|
+
onCaptureAudioFrame?(frame: VeLiveAudioFrame): void;
|
|
35
|
+
|
|
36
|
+
onPreEncodeAudioFrame?(frame: VeLiveAudioFrame): void;
|
|
37
|
+
}
|
|
38
|
+
export declare class VeLiveMediaPlayerFrameListener {
|
|
39
|
+
|
|
40
|
+
onAudioFrame?(frame: VeLiveAudioFrame): void;
|
|
41
|
+
|
|
42
|
+
onVideoFrame?(frame: VeLiveVideoFrame): void;
|
|
43
|
+
}
|
|
44
|
+
export declare class VeLiveSnapshotListener {
|
|
45
|
+
|
|
46
|
+
onSnapshotComplete?(image: Bitmap): void;
|
|
47
|
+
}
|
|
48
|
+
export declare class VeLiveAudioFrameFilter {
|
|
49
|
+
|
|
50
|
+
onAudioProcess?(srcFrame: VeLiveAudioFrame, dstFrame: VeLiveAudioFrame): int;
|
|
51
|
+
}
|
|
52
|
+
export declare class VeLivePusherObserver {
|
|
53
|
+
|
|
54
|
+
onError?(code: int, subCode: int, msg: String): void;
|
|
55
|
+
|
|
56
|
+
onStatusChange?(status: VeLivePusherStatus): void;
|
|
57
|
+
|
|
58
|
+
onFirstVideoFrame?(type: VeLiveFirstFrameType, timestampMs: long): void;
|
|
59
|
+
|
|
60
|
+
onFirstAudioFrame?(type: VeLiveFirstFrameType, timestampMs: long): void;
|
|
61
|
+
|
|
62
|
+
onCameraOpened?(open: boolean): void;
|
|
63
|
+
|
|
64
|
+
onMicrophoneOpened?(open: boolean): void;
|
|
65
|
+
|
|
66
|
+
onScreenRecording?(open: boolean): void;
|
|
67
|
+
|
|
68
|
+
onNetworkQuality?(quality: VeLiveNetworkQuality): void;
|
|
69
|
+
|
|
70
|
+
onAudioPowerQuality?(level: VeLiveAudioPowerLevel, value: float): void;
|
|
71
|
+
}
|
|
72
|
+
export declare class VeLivePusherStatisticsObserver {
|
|
73
|
+
|
|
74
|
+
onStatistics?(statistics: VeLivePusherStatistics): void;
|
|
75
|
+
|
|
76
|
+
onLogMonitor?(logInfo: JSONObject): void;
|
|
77
|
+
}
|
|
78
|
+
export declare class VeLivePusherDef {
|
|
79
|
+
}
|
|
80
|
+
export declare class VeLiveFileRecordingListener {
|
|
81
|
+
|
|
82
|
+
onFileRecordingStarted?(): void;
|
|
83
|
+
|
|
84
|
+
onFileRecordingStopped?(): void;
|
|
85
|
+
|
|
86
|
+
onFileRecordingError?(errorCode: int, message: String): void;
|
|
87
|
+
}
|
|
88
|
+
export declare class VeLiveVideoEffectHandleCallback {
|
|
89
|
+
|
|
90
|
+
onEffectHandle?(handle: Object): void;
|
|
91
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export declare enum VeLivePusherErrorCode {
|
|
2
|
+
|
|
3
|
+
VeLivePusherSuccess = 0,
|
|
4
|
+
|
|
5
|
+
VeLivePusherInvalidLicense = -1,
|
|
6
|
+
|
|
7
|
+
VeLivePusherInvalidParameter = -2,
|
|
8
|
+
|
|
9
|
+
VeLivePusherVideoCaptureError = -3,
|
|
10
|
+
|
|
11
|
+
VeLivePusherAudioCaptureError = -4,
|
|
12
|
+
|
|
13
|
+
VeLivePusherVideoEncoderError = -5,
|
|
14
|
+
|
|
15
|
+
VeLivePusherAudioEncoderError = -6,
|
|
16
|
+
|
|
17
|
+
VeLivePusherTransportError = -7,
|
|
18
|
+
|
|
19
|
+
VeLivePusherVideoEffectError = -8,
|
|
20
|
+
|
|
21
|
+
VeLivePusherAudioDeviceError = -9,
|
|
22
|
+
|
|
23
|
+
VeLivePusherLicenseUnsupportedH265 = -10,
|
|
24
|
+
|
|
25
|
+
VeLivePusherError = -100
|
|
26
|
+
}
|