AliyunIVodUploadCallback
@protocol AliyunIVodUploadCallback <NSObject>
* A class that defines upload callbacks.
-
* The callback when the upload is successful.
Declaration
Objective-C
- (void)publishManagerUploadSuccess:(nonnull AliyunVodPublishManager *)manager;
Parameters
manager
AliyunVodPublishManager
-
* The callback when an error occurs during upload.
Declaration
Objective-C
- (void)publishManager:(nonnull AliyunVodPublishManager *)manager uploadFailedWithCode:(nonnull NSString *)code message:(nonnull NSString *)message;
Parameters
manager
AliyunVodPublishManager
code
The error code.
message
The error message.
-
* The callback that outputs the upload progress.
Declaration
Objective-C
- (void)publishManager:(nonnull AliyunVodPublishManager *)manager uploadProgressWithUploadedSize:(long long)uploadedSize totalSize:(long long)totalSize;
Parameters
manager
AliyunVodPublishManager
uploadedSize
The uploaded file size.
totalSize
The total file size.
-
* The callback when the token expires.
Declaration
Objective-C
- (void)publishManagerUploadTokenExpired: (nonnull AliyunVodPublishManager *)manager;
Parameters
manager
AliyunVodPublishManager
-
* The callback when the upload is retried.
Declaration
Objective-C
- (void)publishManagerUploadRetry:(nonnull AliyunVodPublishManager *)manager;
Parameters
manager
AliyunVodPublishManager
-
* The callback when the retry is successful.
Declaration
Objective-C
- (void)publishManagerUploadRetryResume: (nonnull AliyunVodPublishManager *)manager;
Parameters
manager
AliyunVodPublishManager