|
| boolean | isSdkAuthorised () |
| | 检测sdk是否授权 更多...
|
| |
| SdkVersion | getSdkVersion () |
| | 获取美摄SDK的版本信息 更多...
|
| |
| NvsAssetPackageManager | getAssetPackageManager () |
| | 获取资源包管理器 更多...
|
| |
| List< String > | getAllBuiltinVideoFxNames () |
| | 获取全部内嵌视频特效名称 更多...
|
| |
| NvsVideoEffect | createVideoEffect (String fxIds, NvsRational aspectRatio) |
| | 创建特效对象 更多...
|
| |
| NvsVideoEffect | createVideoEffect (String fxIds, NvsRational aspectRatio, boolean realTimeMode) |
| | 创建特效对象 更多...
|
| |
| NvsVideoEffectTransition | createVideoTransition (String transitionIds, NvsRational aspectRatio) |
| | 创建转场对象 更多...
|
| |
| NvsVideoEffectAnimatedSticker | createAnimatedSticker (long inPoint, long duration, boolean isPanoramic, String animatedStickerId, NvsRational aspectRatio) |
| | 创建贴纸对象 更多...
|
| |
| NvsVideoEffectAnimatedSticker | createCustomAnimatedSticker (long inPoint, long duration, boolean isPanoramic, String animatedStickerId, String customImageFilePath, NvsRational aspectRatio) |
| | 创建贴纸对象 更多...
|
| |
| NvsVideoEffectCompoundCaption | createCompoundCaption (long inPoint, long duration, String compoundCaptionPackageId, NvsRational aspectRatio) |
| | 创建复合字幕对象 更多...
|
| |
| NvsVideoEffectCompoundCaption | createPanoramicCompoundCaption (long inPoint, long duration, String compoundCaptionPackageId, NvsRational aspectRatio) |
| | 创建全景图复合字幕对象 更多...
|
| |
| NvsVideoEffectCaption | createCaption (String captionText, long inPoint, long duration, String captionStylePackageId, NvsRational aspectRatio) |
| | 创建字幕 更多...
|
| |
| NvsVideoEffectCaption | CreatePanoramicCaption (String captionText, long inPoint, long duration, String captionStylePackageId, NvsRational aspectRatio) |
| | 在时间线上添加全景图字幕 更多...
|
| |
| NvsVideoEffectCaption | createModularCaption (String captionText, long inPoint, long duration, NvsRational aspectRatio) |
| | 在时间线上添加模块字幕 更多...
|
| |
| NvsVideoEffectCaption | createPanoramicModularCaption (String captionText, long inPoint, long duration, NvsRational aspectRatio) |
| | 在时间线上添加全景图模块字幕 更多...
|
| |
| NvsEffectRenderCore | createEffectRenderCore () |
| | 创建特效渲染对象 更多...
|
| |
| String | registerFontByFilePath (String fontFilePath) |
| | 注册字体文件的fontFamily 更多...
|
| |
| void | unRegisterFontByFilePath (String fontFilePath) |
| | 根据文件路径注销字体 更多...
|
| |
| List< NvsFontInfo > | getFontInfoByFilePath (String fontFilePath) |
| | 获取字体文件中字体信息 更多...
|
| |
| int | getDeviceCpuLevel () |
| | 获取当前设备CPU能力等级 更多...
|
| |
|
| static NvsEffectSdkContext | init (Context ctx, String sdkLicenseFilePath, int flags) |
| | 对特效上下文的单例实例进行初始化 更多...
|
| |
| static NvsEffectSdkContext | init (Activity mainActivity, String sdkLicenseFilePath, int flags) |
| | 对特效上下文的单例实例进行初始化 更多...
|
| |
| static NvsEffectSdkContext | init (Activity mainActivity, String sdkLicenseFilePath) |
| | 对特效上下文的单例实例进行初始化 更多...
|
| |
| static void | close () |
| | 销毁特效上下文实例。注意: 销毁之后可以再次创建及获取 更多...
|
| |
| static NvsEffectSdkContext | getInstance () |
| | 获取特效上下文的单例实例(必须进行初始化后才能使用) 更多...
|
| |
| static int | hasARModule () |
| | 检测当前SDK是否含有AR模块 更多...
|
| |
| static boolean | initHumanDetection (Context cxt, String modelFilePath, String licenseFilePath, int features) |
| | 初始化人体检测机制 更多...
|
| |
| static boolean | initHumanDetection (Context ctx, String modelFilePath, String licenseFilePath, int features, Hashtable< String, Object > options) |
| | 初始化人体检测机制,只需要初始化一次 更多...
|
| |
| static boolean | initHumanDetectionExt (Context ctx, String modelFilePath, String licenseFilePath, int features) |
| | 初始化人体检测机制 更多...
|
| |
| static boolean | initHumanDetectionExt (Context ctx, String modelFilePath, String licenseFilePath, int features, Hashtable< String, Object > options) |
| | 初始化人体检测扩展机制,必须先调用initHumanDetection 更多...
|
| |
| static void | closeHumanDetection () |
| | 关闭人体检测机制 更多...
|
| |
| static boolean | setupHumanDetectionData (int dataType, String dataFilePath) |
| | 初始化人体检测相关数据包 更多...
|
| |
特效上下文
特效上下文类可视作整个SDK框架的入口。开发过程中,NvsEffectSdkContext提供了静态sharedInstance接口创建流媒体上下文的唯一实例。 通过这个实例对象,我们可以一个或者多个特效的处理。整个使用完成后,要销毁特效上下文的对象实例。 添加素材资源包(采集特效包,场景资源包等),都得先安装,安装成功后获取packageId才能使用,而内建采集特效(builtin)只需获取特效名称即可使用。
sdk接口中凡是需要传入资源、授权等文件路径时一定是全路径。
- 警告
- NvsEffectSdkContext类中,所有public API都在UI线程使用!!!