AliyunVodPublishManager
@interface AliyunVodPublishManager : NSObject
* A class that defines publish managers.
-
* The export callback.
Declaration
Objective-C
@property (nonatomic, weak) id<AliyunIExporterCallback> _Nullable exportCallback; -
* The upload callback.
Declaration
Objective-C
@property (nonatomic, weak) id<AliyunIVodUploadCallback> _Nullable uploadCallback; -
* The upload state.
Declaration
Objective-C
@property (nonatomic) AliyunVodUploadState uploadState; -
* The path of the video to be uploaded.
Declaration
Objective-C
@property (nonatomic, copy) NSString *_Nonnull videotPath; -
* The path of the image to be uploaded.
Declaration
Objective-C
@property (nonatomic, copy) NSString *_Nonnull imagePath; -
* Enable upload log report or not. Default is true.
Declaration
Objective-C
@property (nonatomic) BOOL reportEnabled; -
* The partSize for upload with export. default 1MB; MinValue:100KB
Declaration
Objective-C
@property (nonatomic) NSUInteger uploadPartSize;
-
* Starts exporting.
Declaration
Objective-C
- (int)exportWithTaskPath:(nonnull NSString *)taskPath outputPath:(nonnull NSString *)outputPath;Parameters
taskPathThe path of the taskPath folder.
outputPathThe video output path.
Return Value
A return value.
-
* Start exporting and upload at the same time
Declaration
Objective-C
- (int)exportWithTaskPath:(nonnull NSString *)taskPath outputPath:(nonnull NSString *)outputPath uploadAddress:(nonnull NSString *)vodUploadAddress uploadAuth:(nonnull NSString *)vodUploadAuth;Parameters
taskPathThe path of the taskPath folder.
outputPathThe video output path.
vodUploadAddressThe upload URL.
vodUploadAuthThe upload credential.
-
* Start exporting to outputPath and streamFile
Declaration
Objective-C
- (nonnull UploadStreamFileInfo *) exportToStreamFileWithTaskPath:(nonnull NSString *)taskPath outputPath:(nonnull NSString *)outputPath error:(NSError *_Nullable *_Nullable)error;Parameters
taskPathThe path of the taskPath folder.
outputPathThe video output path.
outStreamFileThe stream file for output
-
* Pauses exporting.
Declaration
Objective-C
- (int)pauseExport;Return Value
A return value.
-
* Resumes exporting.
Declaration
Objective-C
- (int)resumeExport;Return Value
A return value.
-
* Cancels exporting.
Declaration
Objective-C
- (int)cancelExport;Return Value
A return value.
-
* Upload a streamFile
Declaration
Objective-C
- (int)uploadStreamFile:(nonnull UploadStreamFileInfo *)streamFile uploadAddress:(nonnull NSString *)vodUploadAddress uploadAuth:(nonnull NSString *)uploadAuth;Parameters
streamFilevodUploadAddressThe upload URL.
vodUploadAuthThe upload credential.
-
* Uploads a thumbnail.
Declaration
Objective-C
- (int)uploadImageWithPath:(nonnull NSString *)imagePath uploadAddress:(nonnull NSString *)vodUploadAddress uploadAuth:(nonnull NSString *)vodUploadAuth;Parameters
imagePathThe path of the thumbnail image.
vodUploadAddressThe upload URL.
vodUploadAuthThe upload credential.
Return Value
A return value.
-
* Uploads a video.
Declaration
Objective-C
- (int)uploadVideoWithPath:(nonnull NSString *)videoPath uploadAddress:(nonnull NSString *)vodUploadAddress uploadAuth:(nonnull NSString *)vodUploadAuth;Parameters
videoPathThe path of the video.
vodUploadAddressThe upload URL.
vodUploadAuthThe upload credential.
Return Value
A return value.
-
* Pauses uploading.
Declaration
Objective-C
- (int)pauseUpload;Return Value
A return value.
-
* Resumes uploading.
Declaration
Objective-C
- (int)resumeUpload;Return Value
A return value.
-
* Cancels uploading.
Declaration
Objective-C
- (int)cancelUpload;Return Value
A return value.
-
* Updates the upload credential.
Declaration
Objective-C
- (int)refreshWithUploadAuth:(nonnull NSString *)vodUploadAuth;Parameters
vodUploadAuthThe new upload credential.
Return Value
A return value.
AliyunVodPublishManager Class Reference