@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.
Files changed (123) hide show
  1. package/android/src/main/java/com/volcengine/velive/rn/push/VeLivePushModule.java +13 -2
  2. package/android/src/main/java/com/volcengine/velive/rn/push/VeLivePushPackage.java +16 -13
  3. package/android/src/main/java/com/volcengine/velive/rn/push/VeLivePushView.java +16 -0
  4. package/android/src/main/java/com/volcengine/velive/rn/push/VeLivePushViewManager.java +7 -2
  5. package/android/src/main/java/com/volcengine/velive/rn/push/mixer/MixerManager.java +397 -0
  6. package/android/src/main/java/com/volcengine/velive/rn/push/mixer/MixerView.java +423 -0
  7. package/android/src/main/java/com/volcengine/velive/rn/push/mixer/MixerViewManager.java +79 -0
  8. package/android/src/main/java/com/volcengine/velive/rn/push/mixer/TextureMgr.java +168 -0
  9. package/android/src/main/java/com/volcengine/velive/rn/push/mixer/YuvHelper.java +165 -0
  10. package/ios/VeLiveMixerHelper.h +44 -0
  11. package/ios/VeLiveMixerHelper.m +591 -0
  12. package/ios/VeLiveMixerView.h +69 -0
  13. package/ios/VeLiveMixerView.m +592 -0
  14. package/ios/VeLiveMixerViewManager.m +92 -0
  15. package/lib/commonjs/index.js +1779 -980
  16. package/lib/commonjs/typescript/android/index.d.ts +47 -0
  17. package/lib/commonjs/typescript/codegen/android/api.d.ts +1527 -0
  18. package/lib/commonjs/typescript/codegen/android/callback.d.ts +91 -0
  19. package/lib/commonjs/typescript/codegen/android/errorcode.d.ts +26 -0
  20. package/lib/commonjs/typescript/codegen/android/index.d.ts +5 -0
  21. package/lib/commonjs/typescript/codegen/android/keytype.d.ts +846 -0
  22. package/lib/commonjs/typescript/codegen/android/types.d.ts +33 -0
  23. package/lib/commonjs/typescript/codegen/ios/api.d.ts +222 -0
  24. package/lib/commonjs/typescript/codegen/ios/callback.d.ts +80 -0
  25. package/lib/commonjs/typescript/codegen/ios/errorcode.d.ts +54 -0
  26. package/lib/commonjs/typescript/codegen/ios/external.d.ts +1 -0
  27. package/lib/commonjs/typescript/codegen/ios/index.d.ts +6 -0
  28. package/lib/commonjs/typescript/codegen/ios/keytype.d.ts +460 -0
  29. package/lib/commonjs/typescript/codegen/ios/types.d.ts +46 -0
  30. package/lib/commonjs/typescript/codegen/pack/api.d.ts +1835 -0
  31. package/lib/commonjs/typescript/codegen/pack/callback.d.ts +400 -0
  32. package/lib/commonjs/typescript/codegen/pack/errorcode.d.ts +35 -0
  33. package/lib/commonjs/typescript/codegen/pack/index.d.ts +5 -0
  34. package/lib/commonjs/typescript/codegen/pack/keytype.d.ts +1392 -0
  35. package/lib/commonjs/typescript/codegen/pack/types.d.ts +68 -0
  36. package/lib/commonjs/typescript/codegen/type-shim.d.ts +6 -0
  37. package/lib/commonjs/typescript/component.d.ts +15 -0
  38. package/lib/commonjs/typescript/core/api.d.ts +17 -0
  39. package/lib/commonjs/typescript/core/callback.d.ts +2 -0
  40. package/lib/commonjs/typescript/core/env.d.ts +29 -0
  41. package/lib/commonjs/typescript/core/errorcode.d.ts +2 -0
  42. package/lib/commonjs/typescript/core/index.d.ts +6 -0
  43. package/lib/commonjs/typescript/core/keytype.d.ts +17 -0
  44. package/lib/commonjs/typescript/core/mixer.d.ts +26 -0
  45. package/lib/commonjs/typescript/core/pusher.d.ts +16 -0
  46. package/lib/commonjs/typescript/index.d.ts +3 -0
  47. package/lib/commonjs/typescript/ios/extends.d.ts +41 -0
  48. package/lib/commonjs/typescript/platforms/android/extends.d.ts +8 -0
  49. package/lib/commonjs/typescript/platforms/android/helper.d.ts +8 -0
  50. package/lib/commonjs/typescript/platforms/android/mixer.d.ts +8 -0
  51. package/lib/commonjs/typescript/platforms/ios/extends.d.ts +17 -0
  52. package/lib/commonjs/typescript/platforms/ios/helper.d.ts +8 -0
  53. package/lib/commonjs/typescript/platforms/ios/mixer.d.ts +9 -0
  54. package/lib/commonjs/typescript/runtime.d.ts +1 -0
  55. package/lib/commonjs/typescript/view/MixView.d.ts +52 -0
  56. package/lib/commonjs/typescript/view/VeImageView.d.ts +19 -0
  57. package/lib/commonjs/typescript/view/VeTextView.d.ts +7 -0
  58. package/lib/commonjs/typescript/view/VeView.d.ts +7 -0
  59. package/lib/commonjs/typescript/view/VeWebView.d.ts +7 -0
  60. package/lib/commonjs/typescript/view/index.d.ts +5 -0
  61. package/lib/module/index.js +1776 -982
  62. package/lib/module/typescript/android/index.d.ts +47 -0
  63. package/lib/module/typescript/codegen/android/api.d.ts +1527 -0
  64. package/lib/module/typescript/codegen/android/callback.d.ts +91 -0
  65. package/lib/module/typescript/codegen/android/errorcode.d.ts +26 -0
  66. package/lib/module/typescript/codegen/android/index.d.ts +5 -0
  67. package/lib/module/typescript/codegen/android/keytype.d.ts +846 -0
  68. package/lib/module/typescript/codegen/android/types.d.ts +33 -0
  69. package/lib/module/typescript/codegen/ios/api.d.ts +222 -0
  70. package/lib/module/typescript/codegen/ios/callback.d.ts +80 -0
  71. package/lib/module/typescript/codegen/ios/errorcode.d.ts +54 -0
  72. package/lib/module/typescript/codegen/ios/external.d.ts +1 -0
  73. package/lib/module/typescript/codegen/ios/index.d.ts +6 -0
  74. package/lib/module/typescript/codegen/ios/keytype.d.ts +460 -0
  75. package/lib/module/typescript/codegen/ios/types.d.ts +46 -0
  76. package/lib/module/typescript/codegen/pack/api.d.ts +1835 -0
  77. package/lib/module/typescript/codegen/pack/callback.d.ts +400 -0
  78. package/lib/module/typescript/codegen/pack/errorcode.d.ts +35 -0
  79. package/lib/module/typescript/codegen/pack/index.d.ts +5 -0
  80. package/lib/module/typescript/codegen/pack/keytype.d.ts +1392 -0
  81. package/lib/module/typescript/codegen/pack/types.d.ts +68 -0
  82. package/lib/module/typescript/codegen/type-shim.d.ts +6 -0
  83. package/lib/module/typescript/component.d.ts +15 -0
  84. package/lib/module/typescript/core/api.d.ts +17 -0
  85. package/lib/module/typescript/core/callback.d.ts +2 -0
  86. package/lib/module/typescript/core/env.d.ts +29 -0
  87. package/lib/module/typescript/core/errorcode.d.ts +2 -0
  88. package/lib/module/typescript/core/index.d.ts +6 -0
  89. package/lib/module/typescript/core/keytype.d.ts +17 -0
  90. package/lib/module/typescript/core/mixer.d.ts +26 -0
  91. package/lib/module/typescript/core/pusher.d.ts +16 -0
  92. package/lib/module/typescript/index.d.ts +3 -0
  93. package/lib/module/typescript/ios/extends.d.ts +41 -0
  94. package/lib/module/typescript/platforms/android/extends.d.ts +8 -0
  95. package/lib/module/typescript/platforms/android/helper.d.ts +8 -0
  96. package/lib/module/typescript/platforms/android/mixer.d.ts +8 -0
  97. package/lib/module/typescript/platforms/ios/extends.d.ts +17 -0
  98. package/lib/module/typescript/platforms/ios/helper.d.ts +8 -0
  99. package/lib/module/typescript/platforms/ios/mixer.d.ts +9 -0
  100. package/lib/module/typescript/runtime.d.ts +1 -0
  101. package/lib/module/typescript/view/MixView.d.ts +52 -0
  102. package/lib/module/typescript/view/VeImageView.d.ts +19 -0
  103. package/lib/module/typescript/view/VeTextView.d.ts +7 -0
  104. package/lib/module/typescript/view/VeView.d.ts +7 -0
  105. package/lib/module/typescript/view/VeWebView.d.ts +7 -0
  106. package/lib/module/typescript/view/index.d.ts +5 -0
  107. package/lib/typescript/codegen/android/api.d.ts +1 -121
  108. package/lib/typescript/codegen/ios/api.d.ts +1 -28
  109. package/lib/typescript/codegen/pack/api.d.ts +1 -133
  110. package/lib/typescript/core/api.d.ts +17 -2
  111. package/lib/typescript/core/keytype.d.ts +15 -0
  112. package/lib/typescript/core/mixer.d.ts +26 -0
  113. package/lib/typescript/index.d.ts +1 -0
  114. package/lib/typescript/platforms/android/extends.d.ts +8 -0
  115. package/lib/typescript/platforms/android/mixer.d.ts +8 -0
  116. package/lib/typescript/platforms/ios/mixer.d.ts +9 -0
  117. package/lib/typescript/view/MixView.d.ts +52 -0
  118. package/lib/typescript/view/VeImageView.d.ts +19 -0
  119. package/lib/typescript/view/VeTextView.d.ts +7 -0
  120. package/lib/typescript/view/VeView.d.ts +7 -0
  121. package/lib/typescript/view/VeWebView.d.ts +7 -0
  122. package/lib/typescript/view/index.d.ts +5 -0
  123. package/package.json +1 -1
@@ -0,0 +1,68 @@
1
+ export type int = number;
2
+ export type Context = unknown;
3
+ export type JSONObject = any;
4
+ export type id<T = any> = T;
5
+ export type BOOL = boolean;
6
+ export type bool = boolean;
7
+ export type long = number;
8
+ export type float = number;
9
+ export type int64_t = number;
10
+ export type double = number;
11
+ export type dispatch_queue_t = any;
12
+ export type NSString = string;
13
+ export type NSMutableString = string;
14
+ export type NSInteger = number;
15
+ export type NSUInteger = number;
16
+ export type NSNumber = number;
17
+ export type NSValue = number;
18
+ export type NSNull = null;
19
+ export type NSArray<T = any> = Array<T>;
20
+ export type NSMutableArray<T = any> = Array<T>;
21
+ export type NSObject<T = any> = T;
22
+ export type NSDictionary<K extends keyof any = any, V = any> = {
23
+ [P in K]: V;
24
+ };
25
+ export type NSMutableDictionary = Object;
26
+ export type NSDate = Date;
27
+ export type NSData = ArrayBuffer;
28
+ export type NSURL = string;
29
+ export type NSError = {
30
+ code: number;
31
+ domain: string;
32
+ };
33
+ export type NSTimeInterval = number;
34
+ export type UIImage = unknown;
35
+ export type CVPixelBufferRef = any;
36
+ export type CMSampleBufferRef = any;
37
+ export type CMTime = number;
38
+ export type GLuint = number;
39
+ export type CGFloat = number;
40
+ export type SInt64 = number;
41
+ export type intptr_t = any;
42
+ export type uint32_t = number;
43
+ export type uint8_t = number;
44
+ export type longlong = number;
45
+ export type String = string;
46
+ export type Boolean = boolean;
47
+ export type Void = void;
48
+ export type Integer = number;
49
+ export type Double = number;
50
+ export type List<T = any> = Array<T>;
51
+ export type list<T = any> = Array<T>;
52
+ export type ArrayList<T = any> = Array<T>;
53
+ export type Map<K extends keyof any = any, V = any> = Record<K, V>;
54
+ export type HashMap<K extends keyof any = any, V = any> = Record<K, V>;
55
+ export type Pair<K extends keyof any = any, V = any> = Record<K, V>;
56
+ export type set<T = any> = Set<T>;
57
+ export type map = Object;
58
+ export type struct = Object;
59
+ export type Bitmap = unknown;
60
+ export type EGLContext = unknown;
61
+ export type ByteArray = number;
62
+ export type ByteBuffer = ArrayBuffer;
63
+ export type Matrix = unknown;
64
+ export type SurfaceHolder = unknown;
65
+ export type Surface = unknown;
66
+ export type Runnable = unknown;
67
+ export type View = any;
68
+ export type Intent = unknown;
@@ -0,0 +1,6 @@
1
+ declare global {
2
+ export type LiveSdkSetting = any;
3
+ export type View = any;
4
+ export type Parameter = any;
5
+ }
6
+ export {};
@@ -0,0 +1,15 @@
1
+ import React from 'react';
2
+ type VolcViewProps = {
3
+ viewId: string;
4
+ kind: 'SurfaceView' | 'UIView';
5
+ children?: any;
6
+ style?: any;
7
+ onViewLoad?: () => void;
8
+ };
9
+ export type NativeSurfaceViewComponentProps = Omit<VolcViewProps, 'onViewLoad'> & {
10
+ onLoad?: () => void;
11
+ };
12
+ export declare class NativeViewComponent extends React.Component<NativeSurfaceViewComponentProps> {
13
+ render(): React.ReactNode;
14
+ }
15
+ export {};
@@ -0,0 +1,17 @@
1
+ import { VeLiveAudioDevice, VeLiveAudioFrame, VeLiveCameraDevice, VeLiveMediaPlayer, VeLivePusher as _VeLivePusher, VeLivePusherConfiguration, VeLiveVideoEffectManager, VeLiveVideoFrame } from '../codegen/pack/api';
2
+ import { VeLiveMixerManager } from './mixer';
3
+ declare module '../codegen/pack/api' {
4
+ interface VeLivePusher {
5
+
6
+ /** {en}
7
+ * @detail api
8
+ * @brief Gets the audio and video mixer.
9
+ * @return <br>
10
+ * The audio and video mixer. See VeLiveMixerManager {@link #VeLiveMixerManager} for details.
11
+ * @order 51
12
+ *
13
+ */
14
+ getMixerManager(): VeLiveMixerManager;
15
+ }
16
+ }
17
+ export { VeLiveAudioDevice, VeLiveAudioFrame, VeLiveCameraDevice, VeLiveMediaPlayer, VeLivePusherConfiguration, VeLiveVideoEffectManager, VeLiveVideoFrame, _VeLivePusher as VeLivePusher, };
@@ -0,0 +1,2 @@
1
+ import { VeLiveAudioFrameFilter, VeLiveAudioFrameListener, VeLiveFileRecordingListener, VeLiveMediaPlayerFrameListener, VeLiveMediaPlayerListener, VeLivePusherObserver, VeLivePusherStatisticsObserver, VeLiveSnapshotListener, VeLiveVideoFrameFilter, VeLiveVideoFrameListener, ios_VeLiveAudioFrameFilter, ios_VeLiveAudioFrameListener, ios_VeLiveFileRecordingListener, ios_VeLiveMediaPlayerFrameListener, ios_VeLiveMediaPlayerListener, ios_VeLivePusherObserver, ios_VeLivePusherStatisticsObserver, ios_VeLiveSnapshotListener, ios_VeLiveVideoFrameFilter, ios_VeLiveVideoFrameListener, android_VeLiveAudioFrameFilter, android_VeLiveAudioFrameListener, android_VeLiveFileRecordingListener, android_VeLiveMediaPlayerFrameListener, android_VeLiveMediaPlayerListener, android_VeLivePusherObserver, android_VeLivePusherStatisticsObserver, android_VeLiveSnapshotListener, android_VeLiveVideoFrameFilter, android_VeLiveVideoFrameListener } from '../codegen/pack/callback';
2
+ export { type VeLiveAudioFrameFilter, type VeLiveAudioFrameListener, type VeLiveFileRecordingListener, type VeLiveMediaPlayerFrameListener, type VeLiveMediaPlayerListener, type VeLivePusherObserver, type VeLivePusherStatisticsObserver, type VeLiveSnapshotListener, type VeLiveVideoFrameFilter, type VeLiveVideoFrameListener, ios_VeLiveAudioFrameFilter, ios_VeLiveAudioFrameListener, ios_VeLiveFileRecordingListener, ios_VeLiveMediaPlayerFrameListener, ios_VeLiveMediaPlayerListener, ios_VeLivePusherObserver, ios_VeLivePusherStatisticsObserver, ios_VeLiveSnapshotListener, ios_VeLiveVideoFrameFilter, ios_VeLiveVideoFrameListener, android_VeLiveAudioFrameFilter, android_VeLiveAudioFrameListener, android_VeLiveFileRecordingListener, android_VeLiveMediaPlayerFrameListener, android_VeLiveMediaPlayerListener, android_VeLivePusherObserver, android_VeLivePusherStatisticsObserver, android_VeLiveSnapshotListener, android_VeLiveVideoFrameFilter, android_VeLiveVideoFrameListener, };
@@ -0,0 +1,29 @@
1
+ interface BaseLicenseConfig {
2
+ /** App ID,必填,从控制台应用管理获取。 */
3
+ AppID: string;
4
+ /** 必填, App 英文名,从控制台应用管理获取。 */
5
+ AppName: string;
6
+ /** App 版本号 */
7
+ AppVersion: string;
8
+ /** 必填,渠道号;业务自定义,如:小米应用商店 (xiaomi)、华为应用市场 (huawei) 等。 */
9
+ AppChannel: string;
10
+ /** 必填,License 路径。 */
11
+ LicenseUri: {
12
+ android: string;
13
+ ios: string;
14
+ };
15
+ LicenseCallback?: (status: any) => void;
16
+ openLog?: boolean;
17
+ UserUniqueID?: string;
18
+ }
19
+ interface AndroidLicenseConfig {
20
+ /** Android 应用唯一标识 */
21
+ PackageName?: string;
22
+ }
23
+ interface IOSLicenseConfig {
24
+ /** iOS 应用唯一标识 */
25
+ BundleID?: string;
26
+ }
27
+ export type LicenseConfig = BaseLicenseConfig & AndroidLicenseConfig & IOSLicenseConfig;
28
+ export declare function initEnv(config: LicenseConfig): Promise<void>;
29
+ export {};
@@ -0,0 +1,2 @@
1
+ import { VeLivePusherErrorCode } from '../codegen/pack/errorcode';
2
+ export { VeLivePusherErrorCode };
@@ -0,0 +1,6 @@
1
+ export * from './api';
2
+ export * from './callback';
3
+ export * from './errorcode';
4
+ export * from './keytype';
5
+ export * from './env';
6
+ export * from './pusher';
@@ -0,0 +1,17 @@
1
+ import { VeLiveAudioBufferType, VeLiveAudioCaptureConfiguration, VeLiveAudioCaptureType, VeLiveAudioChannel, VeLiveAudioEncoderConfiguration, VeLiveAudioFrameSource, VeLiveAudioMixType, VeLiveAudioPowerLevel, VeLiveAudioProfile, VeLiveAudioSampleRate, VeLiveFileRecorderConfiguration, VeLiveFirstFrameType, VeLiveMixAudioLayout, VeLiveMixVideoLayout, VeLiveNetworkQuality, VeLivePixelFormat, VeLivePusherLogLevel, VeLivePusherRenderMode, VeLivePusherStatistics, VeLivePusherStatus, VeLiveStreamMixDescription, VeLiveVideoBufferType, VeLiveVideoCaptureConfiguration, VeLiveVideoCaptureType, VeLiveVideoCodec, VeLiveVideoEffectLicenseConfiguration, VeLiveVideoEffectLicenseType, VeLiveVideoEncoderConfiguration, VeLiveVideoFrameSource, VeLiveVideoMirrorType, VeLiveVideoResolution, VeLiveVideoRotation, VeLiveOrientation } from '../codegen/pack/keytype';
2
+ export interface MixConfig {
3
+ x: number;
4
+ y: number;
5
+ width: number;
6
+ height: number;
7
+ zOrder?: number;
8
+ renderMode?: number;
9
+ captureMode?: 'onchange' | 'realtime' | 'auto' | 'manual';
10
+ }
11
+ export interface MixViewConfig {
12
+ renderMode?: number;
13
+ captureMode?: 'onchange' | 'realtime' | 'auto' | 'manual';
14
+ captureFramerate?: number;
15
+ autoSensitivity?: number;
16
+ }
17
+ export { VeLiveOrientation, VeLiveAudioBufferType, VeLiveAudioCaptureConfiguration, VeLiveAudioCaptureType, VeLiveAudioChannel, VeLiveAudioEncoderConfiguration, VeLiveAudioFrameSource, VeLiveAudioMixType, VeLiveAudioPowerLevel, VeLiveAudioProfile, VeLiveAudioSampleRate, VeLiveFileRecorderConfiguration, VeLiveFirstFrameType, VeLiveMixAudioLayout, VeLiveMixVideoLayout, VeLiveNetworkQuality, VeLivePixelFormat, VeLivePusherLogLevel, VeLivePusherRenderMode, VeLivePusherStatistics, VeLivePusherStatus, VeLiveStreamMixDescription, VeLiveVideoBufferType, VeLiveVideoCaptureConfiguration, VeLiveVideoCaptureType, VeLiveVideoCodec, VeLiveVideoEffectLicenseConfiguration, VeLiveVideoEffectLicenseType, VeLiveVideoEncoderConfiguration, VeLiveVideoFrameSource, VeLiveVideoMirrorType, VeLiveVideoResolution, VeLiveVideoRotation, };
@@ -0,0 +1,26 @@
1
+ import type { VeLivePusher } from './api';
2
+ import { VeLiveMixerManager as AndroidVeLiveMixerManager } from '../platforms/android/mixer';
3
+ import { VeLiveMixerManager as iOSVeLiveMixerManager } from '../platforms/ios/mixer';
4
+ import type { MixConfig } from './keytype';
5
+ export declare class VeLiveMixerManager {
6
+ private _pusher;
7
+ private _views;
8
+ protected _instance: AndroidVeLiveMixerManager | iOSVeLiveMixerManager;
9
+ protected __init(): void;
10
+ protected __new_instance(): AndroidVeLiveMixerManager | iOSVeLiveMixerManager;
11
+ constructor(pusher: VeLivePusher);
12
+ /**
13
+ * Add view to mixer - support hybrid-runtime way
14
+ * @param viewId viewId string
15
+ * @param config mixer configuration
16
+ */
17
+ addView(viewId: string, config: MixConfig): Promise<boolean>;
18
+ /**
19
+ * Update view configuration
20
+ */
21
+ updateView(viewId: string, config: Partial<MixConfig>): Promise<boolean>;
22
+ /**
23
+ * Remove view
24
+ */
25
+ removeView(viewId: string): Promise<boolean>;
26
+ }
@@ -0,0 +1,16 @@
1
+ import { findNodeHandle } from 'react-native';
2
+ import { VeLivePusher, VeLivePusherConfiguration } from './api';
3
+ export interface InitOptions extends Partial<VeLivePusherConfiguration> {
4
+ viewId: string;
5
+ element: Parameters<typeof findNodeHandle>[0];
6
+ videoConfig?: {
7
+ width?: number;
8
+ height?: number;
9
+ fps?: number;
10
+ };
11
+ }
12
+ export declare function initPusher(options: InitOptions): Promise<VeLivePusher>;
13
+ export declare function relaunchPusher(options: InitOptions): Promise<VeLivePusher>;
14
+ export declare function startScreenCapture(pusher: VeLivePusher, options: {
15
+ enableAppAudio: boolean;
16
+ }): Promise<boolean>;
@@ -0,0 +1,3 @@
1
+ export * from './component';
2
+ export * from './core';
3
+ export * from './view';
@@ -0,0 +1,41 @@
1
+ import { NativeView } from '@vcloud-lux/hybrid-runtime';
2
+ export declare class IosUIView extends NativeView {
3
+ frame?: any;
4
+ bounds: any;
5
+ insertSubview(view: IosUIView, atIndex: number): Promise<void>;
6
+ }
7
+ export declare class VeLivePlayerLogConfig {
8
+ }
9
+ export declare class TTSDKLogConfiguration {
10
+ enableConsole: boolean;
11
+ enableLogFile: boolean;
12
+ enable: boolean;
13
+ }
14
+ export declare class TTSDKConfiguration {
15
+ static defaultConfigurationWithAppID(appId: string, licenseName: string): TTSDKConfiguration;
16
+ licenseFilePath: string;
17
+ channel: string;
18
+ appName: string;
19
+ bundleID: string;
20
+ appVersion: string;
21
+ shouldInitAppLog: boolean;
22
+ serviceVendor: TTSDKServiceVendor;
23
+ logConfiguration: TTSDKLogConfiguration;
24
+ }
25
+ export declare class TTSDKManager {
26
+ static setCurrentUserUniqueID(id: string): void;
27
+ static setShouldReportToAppLog(val: boolean): void;
28
+ static setAppLogCustomData(val: Record<string, string>): void;
29
+ static startWithConfiguration(cfg: TTSDKConfiguration): void;
30
+ }
31
+ export declare class VeLivePlayerConfiguration {
32
+ enableStatisticsCallback: boolean;
33
+ statisticsCallbackInterval: number;
34
+ enableLiveDNS: boolean;
35
+ }
36
+ export interface VeLivePlayerObserverEvents {
37
+ onError(err: Error): void;
38
+ }
39
+ export declare enum TTSDKServiceVendor {
40
+ TTSDKServiceVendorCN = 1
41
+ }
@@ -0,0 +1,8 @@
1
+ import { NativeView } from '@vcloud-lux/hybrid-runtime';
2
+ export declare class SurfaceHolder {
3
+ }
4
+ export declare class NativeSurfaceView extends NativeView {
5
+ getHolder(): Promise<SurfaceHolder>;
6
+ }
7
+ export declare class AndroidView extends NativeView {
8
+ }
@@ -0,0 +1,8 @@
1
+ import type { VeLivePusher } from '../../codegen/android';
2
+ export declare class VeLivePushHelper {
3
+ static pusherMap: WeakMap<VeLivePusher, string>;
4
+ static setPusher(viewId: string, pusher: VeLivePusher): void;
5
+ static removePusher(pusher: VeLivePusher): void;
6
+ static setVeLivePusher(viewId: string, pusher: VeLivePusher): void;
7
+ static removeVeLivePusher(viewId: string): void;
8
+ }
@@ -0,0 +1,8 @@
1
+ import type { VeLivePusher } from '../../codegen/android';
2
+ import type { MixViewConfig } from '../../core/keytype';
3
+ export declare class VeLiveMixerManager {
4
+ setPusher(pusher: VeLivePusher): void;
5
+ addView(viewId: string, config: MixViewConfig): Promise<boolean>;
6
+ updateView(viewId: string, config: MixViewConfig): Promise<boolean>;
7
+ removeView(viewId: string): Promise<boolean>;
8
+ }
@@ -0,0 +1,17 @@
1
+ import { NativeView } from '@vcloud-lux/hybrid-runtime';
2
+ export declare class NativeUIView extends NativeView {
3
+ frame?: any;
4
+ bounds: {
5
+ size: {
6
+ width: number;
7
+ height: number;
8
+ };
9
+ origin: {
10
+ x: number;
11
+ y: number;
12
+ };
13
+ };
14
+ insertSubview(view: NativeUIView, atIndex: number): Promise<void>;
15
+ }
16
+ export declare class UIView extends NativeUIView {
17
+ }
@@ -0,0 +1,8 @@
1
+ import type { VeLivePusher } from '../../codegen/ios';
2
+ export declare class VeLivePushHelper {
3
+ static pusherMap: WeakMap<VeLivePusher, string>;
4
+ static setPusher(viewId: string, pusher: VeLivePusher): void;
5
+ static removePusher(pusher: VeLivePusher): void;
6
+ static setVeLivePusher(pusher: VeLivePusher, viewId: string): void;
7
+ static removeVeLivePusher(viewId: string): void;
8
+ }
@@ -0,0 +1,9 @@
1
+ import type { VeLivePusher } from '../../codegen/ios';
2
+ import type { MixViewConfig } from '../../core/keytype';
3
+ export declare class VeLiveMixerManager {
4
+ setPusher(pusher: VeLivePusher): void;
5
+ addView(viewId: string, config: MixViewConfig): Promise<number>;
6
+ updateView(viewId: string, config: MixViewConfig): Promise<boolean>;
7
+ removeView(viewId: string): Promise<boolean>;
8
+ captureView(viewId: string): Promise<void>;
9
+ }
@@ -0,0 +1 @@
1
+ export * from '@vcloud-lux/hybrid-runtime';
@@ -0,0 +1,52 @@
1
+ import React from 'react';
2
+ import { type ViewProps } from 'react-native';
3
+ import type { MixViewConfig } from '../core/keytype';
4
+ export interface NativeMixViewProps extends ViewProps, Partial<MixViewConfig> {
5
+ children?: React.ReactNode;
6
+ /**
7
+ * Capture mode determines when to capture bitmap for mixing:
8
+ *
9
+ * - 'onchange': Capture only when view layout/content changes (DEFAULT)
10
+ * Best for: static UI elements, text, static images
11
+ * Performance: Optimal - minimal CPU usage
12
+ *
13
+ * - 'realtime': Capture at streaming framerate (e.g., 30fps)
14
+ * Best for: WebView animations, GIF images, custom animations
15
+ * Performance: Higher CPU usage but smooth animation
16
+ *
17
+ * - 'manual': User controls capture timing via ref methods
18
+ * Best for: Custom scenarios where you want full control
19
+ * Performance: Depends on user implementation
20
+ *
21
+ * - 'auto': Automatically detect based on content behavior (experimental)
22
+ * Monitors view changes and switches between onchange/realtime
23
+ */
24
+ captureMode?: 'onchange' | 'realtime' | 'manual' | 'auto';
25
+ /**
26
+ * For realtime mode: custom framerate (default uses stream framerate)
27
+ */
28
+ captureFramerate?: number;
29
+ /**
30
+ * For auto mode: sensitivity threshold for switching to realtime
31
+ * Higher values = less sensitive to changes
32
+ */
33
+ autoSensitivity?: number;
34
+ }
35
+ export interface MixViewEventProps {
36
+ /**
37
+ * viewId, if not provided, will be generated automatically
38
+ */
39
+ viewId?: string;
40
+ /**
41
+ * onViewMount, called when the view is mounted
42
+ */
43
+ onViewMount?: (viewId: string) => void;
44
+ /**
45
+ * onViewUnmount, called when the view is unmounted
46
+ */
47
+ onViewUnmount?: (viewId: string) => void;
48
+ }
49
+ export interface MixViewProps extends MixViewEventProps, NativeMixViewProps {
50
+ }
51
+ export declare const NativeMixView: import("react-native").HostComponent<MixViewProps>;
52
+ export declare const MixView: React.ForwardRefExoticComponent<MixViewProps & React.RefAttributes<any>>;
@@ -0,0 +1,19 @@
1
+ import React from 'react';
2
+ import { Image, type ImageProps } from 'react-native';
3
+ import type { MixViewConfig } from '../core/keytype';
4
+ import { type MixViewEventProps, type MixViewProps } from './MixView';
5
+ export interface VeImageViewProps extends MixViewEventProps, ImageProps, Partial<MixViewConfig> {
6
+ children?: React.ReactNode;
7
+ /**
8
+ * Whether the image is animated (GIF, WebP, etc.)
9
+ * If true, will automatically use 'realtime' capture mode
10
+ */
11
+ animated?: boolean;
12
+ /**
13
+ * Override capture mode
14
+ * - If not specified and animated=true, uses 'realtime'
15
+ * - If not specified and animated=false/undefined, uses 'onchange'
16
+ */
17
+ captureMode?: MixViewProps['captureMode'];
18
+ }
19
+ export declare const VeImageView: React.ForwardRefExoticComponent<VeImageViewProps & React.RefAttributes<Image>>;
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ import { Text, type TextProps } from 'react-native';
3
+ import type { MixViewConfig } from '../core/keytype';
4
+ import { type MixViewEventProps } from './MixView';
5
+ export interface VeTextViewProps extends MixViewEventProps, TextProps, MixViewConfig {
6
+ }
7
+ export declare const VeTextView: React.ForwardRefExoticComponent<VeTextViewProps & React.RefAttributes<Text>>;
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ import { View, type ViewProps } from 'react-native';
3
+ import type { MixViewConfig } from '../core/keytype';
4
+ import { type MixViewEventProps } from './MixView';
5
+ export interface VeViewProps extends MixViewEventProps, ViewProps, MixViewConfig {
6
+ }
7
+ export declare const VeView: React.ForwardRefExoticComponent<VeViewProps & React.RefAttributes<View>>;
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ import { View, type ViewProps } from 'react-native';
3
+ import type { MixViewConfig } from '../core/keytype';
4
+ import { type MixViewEventProps } from './MixView';
5
+ export interface VeWebViewProps extends MixViewEventProps, ViewProps, MixViewConfig {
6
+ }
7
+ export declare const VeWebView: React.ForwardRefExoticComponent<VeWebViewProps & React.RefAttributes<View>>;
@@ -0,0 +1,5 @@
1
+ export { VeView, type VeViewProps } from './VeView';
2
+ export { VeTextView, type VeTextViewProps } from './VeTextView';
3
+ export { VeImageView, type VeImageViewProps } from './VeImageView';
4
+ export { VeWebView, type VeWebViewProps } from './VeWebView';
5
+ export { MixView, NativeMixView, type MixViewProps } from './MixView';