public static final class SearchMediaResponseBody.Video.Builder extends Object
构造器和说明 |
---|
Builder() |
public SearchMediaResponseBody.Video.Builder appId(String appId)
public SearchMediaResponseBody.Video.Builder cateId(Long cateId)
public SearchMediaResponseBody.Video.Builder cateName(String cateName)
public SearchMediaResponseBody.Video.Builder coverURL(String coverURL)
public SearchMediaResponseBody.Video.Builder creationTime(String creationTime)
public SearchMediaResponseBody.Video.Builder description(String description)
public SearchMediaResponseBody.Video.Builder downloadSwitch(String downloadSwitch)
* **on** * **off**
public SearchMediaResponseBody.Video.Builder duration(Float duration)
public SearchMediaResponseBody.Video.Builder mediaSource(String mediaSource)
* **general**: The video file is uploaded by using ApsaraVideo VOD. * **short_video**: The video file is uploaded by using the short video SDK. * **editing**: The video file is produced after online editing. * **live**: The video stream is recorded and uploaded as a file.
public SearchMediaResponseBody.Video.Builder modificationTime(String modificationTime)
public SearchMediaResponseBody.Video.Builder preprocessStatus(String preprocessStatus)
* **UnPreprocess** * **Preprocessing** * **PreprocessSucceed** * **PreprocessFailed**
public SearchMediaResponseBody.Video.Builder restoreExpiration(String restoreExpiration)
public SearchMediaResponseBody.Video.Builder restoreStatus(String restoreStatus)
* **Processing** * **Success** * **Failed**
public SearchMediaResponseBody.Video.Builder size(Long size)
public SearchMediaResponseBody.Video.Builder snapshots(List<String> snapshots)
public SearchMediaResponseBody.Video.Builder spriteSnapshots(List<String> spriteSnapshots)
public SearchMediaResponseBody.Video.Builder status(String status)
* **Uploading** * **UploadFail** * **UploadSucc** * **Transcoding** * **TranscodeFail** * **Blocked** * **Normal**
public SearchMediaResponseBody.Video.Builder storageClass(String storageClass)
* **Standard**: All media resources are stored as Standard objects. * **IA**: All media resources are stored as IA objects. * **Archive**: All media resources are stored as Archive objects. * **ColdArchive**: All media resources are stored as Cold Archive objects. * **SourceIA**: Only the source file is stored as an IA object. * **SourceArchive**: Only the source file is stored as an Archive object. * **SourceColdArchive**: Only the source file is stored as a Cold Archive object. * **Changing**: The storage class of the video file is being changed. * **SourceChanging**: The storage class of the source file is being changed.
public SearchMediaResponseBody.Video.Builder storageLocation(String storageLocation)
public SearchMediaResponseBody.Video.Builder tags(String tags)
public SearchMediaResponseBody.Video.Builder title(String title)
public SearchMediaResponseBody.Video.Builder transcodeMode(String transcodeMode)
* **FastTranscode**: The video file is immediately transcoded after it is uploaded. You cannot play the file before it is transcoded. * **NoTranscode**: The video file can be played without being transcoded. You can immediately play the file after it is uploaded. * **AsyncTranscode**: The video file can be immediately played and asynchronously transcoded after it is uploaded.
public SearchMediaResponseBody.Video.Builder videoId(String videoId)
public SearchMediaResponseBody.Video build()
Copyright © 2024. All rights reserved.