@byteplus/react-native-live-push 1.3.0-rc.0 → 1.3.0-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/build.gradle +1 -1
- package/android/src/main/java/com/volcengine/velive/rn/push/VeLiveEffectHelper.java +222 -0
- package/android/src/main/java/com/volcengine/velive/rn/push/VeLivePushModule.java +2 -0
- package/android/src/main/java/com/volcengine/velive/rn/push/mixer/TextureMgr.java +6 -1
- package/ios/VeLivePushHelper.h +2 -1
- package/ios/VeLivePushHelper.m +7 -0
- package/lib/commonjs/index.js +487 -279
- package/lib/commonjs/typescript/core/api.d.ts +7 -1
- package/lib/commonjs/typescript/core/effect.d.ts +15 -0
- package/lib/commonjs/typescript/core/index.d.ts +1 -0
- package/lib/commonjs/typescript/platforms/android/extends.d.ts +2 -0
- package/lib/commonjs/typescript/platforms/android/helper.d.ts +10 -0
- package/lib/commonjs/typescript/platforms/ios/helper.d.ts +1 -0
- package/lib/commonjs/typescript/utils/index.d.ts +4 -0
- package/lib/module/index.js +487 -280
- package/lib/module/typescript/core/api.d.ts +7 -1
- package/lib/module/typescript/core/effect.d.ts +15 -0
- package/lib/module/typescript/core/index.d.ts +1 -0
- package/lib/module/typescript/platforms/android/extends.d.ts +2 -0
- package/lib/module/typescript/platforms/android/helper.d.ts +10 -0
- package/lib/module/typescript/platforms/ios/helper.d.ts +1 -0
- package/lib/module/typescript/utils/index.d.ts +4 -0
- package/lib/typescript/core/api.d.ts +7 -1
- package/lib/typescript/core/effect.d.ts +15 -0
- package/lib/typescript/core/index.d.ts +1 -0
- package/lib/typescript/platforms/android/extends.d.ts +2 -0
- package/lib/typescript/platforms/android/helper.d.ts +10 -0
- package/lib/typescript/platforms/ios/helper.d.ts +1 -0
- package/lib/typescript/utils/index.d.ts +4 -0
- package/package.json +1 -1
- package/react-native-velive-push.podspec +3 -3
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { VeLiveAudioDevice, VeLiveCameraDevice, VeLiveMediaPlayer, VeLivePusher as _VeLivePusher, VeLivePusherConfiguration, VeLiveVideoEffectManager } from '../codegen/pack/api';
|
|
2
|
-
import { VeLiveAudioFrame, VeLiveVideoFrame } from '../codegen/pack
|
|
2
|
+
import { VeLiveAudioFrame, VeLiveVideoFrame } from '../codegen/pack';
|
|
3
3
|
import { VeLiveMixerManager } from './mixer';
|
|
4
4
|
declare module '../codegen/pack/api' {
|
|
5
5
|
interface VeLivePusher {
|
|
@@ -13,6 +13,12 @@ declare module '../codegen/pack/api' {
|
|
|
13
13
|
*
|
|
14
14
|
*/
|
|
15
15
|
getMixerManager(): VeLiveMixerManager;
|
|
16
|
+
/**
|
|
17
|
+
* @detail api
|
|
18
|
+
* @brief 设置美颜SDK管理器
|
|
19
|
+
* @param licenseFileName 美颜SDK License 文件名
|
|
20
|
+
*/
|
|
21
|
+
setupEffectManager(licenseFileName: string): Promise<VeLiveVideoEffectManager>;
|
|
16
22
|
}
|
|
17
23
|
}
|
|
18
24
|
export { VeLiveAudioDevice, VeLiveAudioFrame, VeLiveCameraDevice, VeLiveMediaPlayer, VeLivePusherConfiguration, VeLiveVideoEffectManager, VeLiveVideoFrame, _VeLivePusher as VeLivePusher, };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
declare module '../codegen/pack/api' {
|
|
2
|
+
interface VeLivePusher {
|
|
3
|
+
/**
|
|
4
|
+
* @detail api
|
|
5
|
+
* @brief 设置美颜SDK管理器
|
|
6
|
+
* @param licenseFileName 美颜SDK License 文件名
|
|
7
|
+
*/
|
|
8
|
+
setupEffectManager(licenseFileName: string): Promise<VeLiveVideoEffectManager>;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* @detail api
|
|
13
|
+
* @brief 设置美颜SDK资源,需要在app初识化时设置
|
|
14
|
+
*/
|
|
15
|
+
export declare function initVideoEffectResource(): Promise<void>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { VeLivePusher } from '../../codegen/android';
|
|
2
|
+
import type { ApplicationContext } from './extends';
|
|
2
3
|
export declare class VeLivePushHelper {
|
|
3
4
|
static pusherMap: WeakMap<VeLivePusher, string>;
|
|
4
5
|
static setPusher(viewId: string, pusher: VeLivePusher): void;
|
|
@@ -6,3 +7,12 @@ export declare class VeLivePushHelper {
|
|
|
6
7
|
static setVeLivePusher(viewId: string, pusher: VeLivePusher): void;
|
|
7
8
|
static removeVeLivePusher(viewId: string): void;
|
|
8
9
|
}
|
|
10
|
+
export declare class VeLiveEffectHelper {
|
|
11
|
+
static getLicensePath(name: string): string;
|
|
12
|
+
static getModelPath(): string;
|
|
13
|
+
static getBeautyPathByName(subPath: string): string;
|
|
14
|
+
static getStickerPathByName(name: string): string;
|
|
15
|
+
static getFilterPathByName(name: string): string;
|
|
16
|
+
static initVideoEffectResource(): void;
|
|
17
|
+
static copyAssetFolder(context: ApplicationContext, srcName: string, dstName: string): boolean;
|
|
18
|
+
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { IPackClassInterface } from '@vcloud-lux/hybrid-runtime';
|
|
2
|
+
import * as $p_a from '../codegen/android';
|
|
3
|
+
import * as $p_i from '../codegen/ios';
|
|
4
|
+
export declare function runImpl<T = any>(context: IPackClassInterface, androidImpl: (engine: $p_a.VeLivePusher) => T, iosImpl: (engine: $p_i.VeLivePusher) => T): T;
|