public interface AliyunIBaseCompose
限定符和类型 | 方法和说明 |
---|---|
int |
cancelCompose()
取消合成
|
int |
compose(java.lang.String config,
java.lang.String output,
AliyunIComposeCallBack callback)
合成
|
int |
init(android.content.Context context)
初始化
|
int |
pauseCompose()
暂停合成
|
void |
release()
释放资源
|
int |
resumeCompose()
继续合成
|
int init(android.content.Context context)
context
- 上下文int compose(java.lang.String config, java.lang.String output, AliyunIComposeCallBack callback)
config
- 包含编辑信息的project.json文件 * 可能获取的渠道AliyunIImport.generateProjectConfigure()
,AliyunIRecorder.finishRecordingForEdit()
,经过AliyunIEditor
编辑之后的文件路径不变,依然是上述两个接口返回的那个json文件output
- 合成视频的输出路径callback
- AliyunErrorCode.OK
-接口调用成功
AliyunErrorCode.ERROR_COMPOSE_STATUS_ERROR
-未初始化、正在合成、正在取消等状态不对
AliyunErrorCode.ERROR_PARAM_INVALID_COMPOSE
-config为空、output为空、json文件解析失败int pauseCompose()
int resumeCompose()
int cancelCompose()
AliyunErrorCode.OK
-接口调用成功
AliyunErrorCode.ERROR_COMPOSE_STATUS_ERROR
-状态错误,当前状态并非正在合成void release()