@Deprecated public interface AliyunICompose extends AliyunIBaseCompose
| Modifier and Type | Interface and Description |
|---|---|
static interface |
AliyunICompose.AliyunIUploadCallBack
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
int |
cancelUpload()
Deprecated.
取消上传
|
int |
init(Context context)
Deprecated.
初始化,必须最先被调用
|
void |
pauseUpload()
Deprecated.
暂停上传
|
int |
refreshSTSToken(java.lang.String accessKeyId,
java.lang.String accessKeySecret,
java.lang.String token,
java.lang.String expiration)
Deprecated.
刷新sts token信息,当收到
AliyunICompose.AliyunIUploadCallBack.onSTSTokenExpired()回调时,表示token失效了,此时需要开发者
重新获取有效的sts token信息,并且通过该接口刷新sts token信息,然后调用resumeUpload()继续上传 |
void |
release()
Deprecated.
释放资源
|
void |
resumeUpload()
Deprecated.
继续上传
|
void |
setUploadRetryAndTimeout(int retryCount,
int connectTimeoutMills,
int readTimeoutMills)
Deprecated.
设置上传重试信息
|
int |
uploadWithVideoAndImg(java.lang.String thumbnail,
java.lang.String accessKeyId,
java.lang.String accessKeySecret,
java.lang.String token,
java.lang.String expiration,
SvideoInfo info,
boolean istranscode,
java.lang.String storageLocation,
java.lang.String templateGroupId,
AliyunICompose.AliyunIUploadCallBack callback)
Deprecated.
上传合成的视频以及封面图片,视频直接使用最后一次合成生成的视频,图片信息需要外部传入
|
cancelCompose, compose, pauseCompose, resumeCompose, setRenderCallbackint init(Context context)
init in interface AliyunIBaseComposecontext - 建议传入applicationContextAliyunErrorCode.OK——接口调用成功
AliyunErrorCode.ERROR_COMPOSE_INIT_FAILED-context为nullvoid setUploadRetryAndTimeout(int retryCount,
int connectTimeoutMills,
int readTimeoutMills)
retryCount - 重试次数connectTimeoutMills - 重试链接超时时间 单位:msreadTimeoutMills - Socket超时时间 单位:msint uploadWithVideoAndImg(java.lang.String thumbnail,
java.lang.String accessKeyId,
java.lang.String accessKeySecret,
java.lang.String token,
java.lang.String expiration,
SvideoInfo info,
boolean istranscode,
java.lang.String storageLocation,
java.lang.String templateGroupId,
AliyunICompose.AliyunIUploadCallBack callback)
thumbnail - 封面图片地址accessKeyId - sts信息中的临时accessKeyIdaccessKeySecret - sts信息中的临时accessKeySecrettoken - sts token中 token信息expiration - sts token中的 expiration信息info - 视频描述信息istranscode - 上传后视频是否要转码,true转码,false不转码storageLocation - 源站buckettemplateGroupId - 转码模板callback - 上传回调AliyunErrorCode.OK——成功
AliyunErrorCode.ERROR_COMPOSE_STATUS_ERROR——失败,状态错误,未初始化/正在上传/正在合成
AliyunErrorCode.ERROR_PARAM_INVALID_COMPOSE——失败,thumbnail参数为空/accessKeyId参数为空/accessKeySecret参数为空/expiration参数为空SvideoInfoint refreshSTSToken(java.lang.String accessKeyId,
java.lang.String accessKeySecret,
java.lang.String token,
java.lang.String expiration)
AliyunICompose.AliyunIUploadCallBack.onSTSTokenExpired()回调时,表示token失效了,此时需要开发者
重新获取有效的sts token信息,并且通过该接口刷新sts token信息,然后调用resumeUpload()继续上传accessKeyId - sts token中的accessKeyIdaccessKeySecret - sts token中的accessKeySecrettoken - sts token中的tokenexpiration - sts token中的expirationAliyunErrorCode.OK-成功int cancelUpload()
AliyunErrorCode.OK——成功
AliyunErrorCode.ERROR_COMPOSE_STATUS_ERROR——失败,状态错误,当前并非正在上传void resumeUpload()
void pauseUpload()
void release()
release in interface AliyunIBaseCompose