@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.
Cancels uploading.
|
int |
init(Context context)
Deprecated.
Initializer.
|
void |
pauseUpload()
Deprecated.
Pauses uploading.
|
int |
refreshSTSToken(java.lang.String accessKeyId,
java.lang.String accessKeySecret,
java.lang.String token,
java.lang.String expiration)
Deprecated.
Updates the STS token.
|
void |
release()
Deprecated.
Releases resources.
|
void |
resumeUpload()
Deprecated.
Resumes uploading.
|
void |
setUploadRetryAndTimeout(int retryCount,
int connectTimeoutMills,
int readTimeoutMills)
Deprecated.
Sets the retry configuration.
|
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.
Uploads the composed video and a thumbnail of the video.
|
cancelCompose, compose, pauseCompose, resumeCompose, setRenderCallback
int init(Context context)
init
in interface AliyunIBaseCompose
context
- Recommended value: applicationContext.AliyunErrorCode.OK
if the invocation is successful.
AliyunErrorCode.ERROR_COMPOSE_INIT_FAILED
if the context parameter is null.void setUploadRetryAndTimeout(int retryCount, int connectTimeoutMills, int readTimeoutMills)
retryCount
- The maximum number of retries.connectTimeoutMills
- The connection timeout value in milliseconds.readTimeoutMills
- The socket timeout value in milliseconds..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)
thumbnail
- The URL of the thumbnail.accessKeyId
- The temporary AccessKeyId.accessKeySecret
- The temporary AccessKeySecret.token
- The STS token.expiration
- The token expiration information.info
- The video description.istranscode
- Whether to transcode the video after upload is complete. true indicates yes. false indicates no.storageLocation
- The origin server bucket.templateGroupId
- The transcoding template.callback
- The custom callback.AliyunErrorCode.OK
if the invocation is successful.
AliyunErrorCode.ERROR_COMPOSE_STATUS_ERROR
if the invocation fails because a status error occurs, for example, the object is not initialized, the upload is in progress, or the composition is in progress.
AliyunErrorCode.ERROR_PARAM_INVALID_COMPOSE
if the invocation fails because either of the following parameters is null: thumbnail, accessKeyId, accessKeySecret, or expiration.SvideoInfo
int refreshSTSToken(java.lang.String accessKeyId, java.lang.String accessKeySecret, java.lang.String token, java.lang.String expiration)
AliyunICompose.AliyunIUploadCallBack.onSTSTokenExpired()
is invoked, it indicates that the token has expired.
Call this method to update the token and then call resumeUpload()
to resume uploading.accessKeyId
- The AccessKeyId.accessKeySecret
- The AccessKeySecret.token
- The STS token.expiration
- The token expiration information.AliyunErrorCode.OK
if the invocation is successful.int cancelUpload()
AliyunErrorCode.OK
if the invocation is successful.
AliyunErrorCode.ERROR_COMPOSE_STATUS_ERROR
if the invocation fails because the status is incorrect.void resumeUpload()
void pauseUpload()
void release()
release
in interface AliyunIBaseCompose