美摄SDK For Android  3.14.0
| Public 成员函数 | 静态 Public 成员函数 | 所有成员列表
com.meicam.sdk.NvsSmartCutGenerator类 参考

智能剪辑类 更多...

class  NvsSmartCutCaptionInfo
 
class  NvsSmartCutClipData
 智能剪辑结果数据类 更多...
 
class  NvsSmartCutFilterInfo
 
class  NvsSmartCutResultData
 
class  NvsSmartCutSCDData
 
class  NvsSmartCutSCDInfo
 
class  NvsSmartCutSpeedInfo
 
class  NvsSmartCutSpeedList
 
class  NvsSmartCutTransitionInfo
 
interface  SmartCutGeneratorCallback
 智能剪辑回调接口 更多...
 

Public 成员函数

boolean startSmartCut (ArrayList< String > scdFileList, ArrayList< String > videoFileList, ArrayList< String > templatePathList, String captionPath, String captionLicPath, String filterPath, String filterLicPath, String location)
 开始智能剪辑 更多...
 
boolean startSmartCut (ArrayList< NvsSmartCutSCDInfo > scdInfoList, ArrayList< String > templatePathList, String captionPath, String captionLicPath, String filterPath, String filterLicPath, String location)
 
boolean changeTemplate (String templatePath)
 切换模板 更多...
 
void setSmartCutGeneratorCallback (SmartCutGeneratorCallback cb)
 设置智能剪辑回调接口 更多...
 

静态 Public 成员函数

static NvsSmartCutGenerator init (Context context, int flags)
 对智能剪辑类的单例实例进行初始化 更多...
 
static void close ()
 销毁智能剪辑类实例。注意: 销毁之后可以再次创建及获取 更多...
 
static NvsSmartCutGenerator getInstance ()
 获取智能剪辑类的单例实例(必须进行初始化后才能使用) 更多...
 

详细描述

智能剪辑类

成员函数说明

◆ changeTemplate()

boolean com.meicam.sdk.NvsSmartCutGenerator.changeTemplate ( String  templatePath)
inline

切换模板

参数
templatePath模板路径

◆ close()

static void com.meicam.sdk.NvsSmartCutGenerator.close ( )
inlinestatic

销毁智能剪辑类实例。注意: 销毁之后可以再次创建及获取

参见
init
getInstance

◆ getInstance()

static NvsSmartCutGenerator com.meicam.sdk.NvsSmartCutGenerator.getInstance ( )
inlinestatic

获取智能剪辑类的单例实例(必须进行初始化后才能使用)

返回
返回智能剪辑类的单例实例对象
参见
init
close

◆ init()

static NvsSmartCutGenerator com.meicam.sdk.NvsSmartCutGenerator.init ( Context  context,
int  flags 
)
inlinestatic

对智能剪辑类的单例实例进行初始化

参数
contextcontext环境
flags标志字段,目前暂时为0
返回
返回智能剪辑类的单例实例对象
自从
2.13.0
参见
getInstance
close

◆ setSmartCutGeneratorCallback()

void com.meicam.sdk.NvsSmartCutGenerator.setSmartCutGeneratorCallback ( SmartCutGeneratorCallback  cb)
inline

设置智能剪辑回调接口

参数
cb智能剪辑回调接口

◆ startSmartCut() [1/2]

boolean com.meicam.sdk.NvsSmartCutGenerator.startSmartCut ( ArrayList< NvsSmartCutSCDInfo scdInfoList,
ArrayList< String >  templatePathList,
String  captionPath,
String  captionLicPath,
String  filterPath,
String  filterLicPath,
String  location 
)
inline

◆ startSmartCut() [2/2]

boolean com.meicam.sdk.NvsSmartCutGenerator.startSmartCut ( ArrayList< String >  scdFileList,
ArrayList< String >  videoFileList,
ArrayList< String >  templatePathList,
String  captionPath,
String  captionLicPath,
String  filterPath,
String  filterLicPath,
String  location 
)
inline

开始智能剪辑

参数
scdFileListscd文件路径列表
videoFileList视频/图片文件路径列表
templatePathList模板路径列表
captionPath字幕文件路径
captionLicPath字幕授权文件路径
filterPath滤镜文件路径
filterLicPath滤镜授权文件路径
location地理位置,将作为地理字幕显示在视频中
返回
返回布尔值。值为true则成功,false则失败。

该类的文档由以下文件生成: