public class VodServiceImpl extends BaseServiceImpl implements IVodService
apiInfoList, serviceInfo| 限定符和类型 | 方法和说明 |
|---|---|
ApplyUploadResponse |
applyUpload(ApplyUploadRequest applyUploadRequest)
Apply upload apply upload response.
|
CommitUploadResponse |
commitUpload(CommitUploadRequest commitUploadRequest)
Commit upload commit upload response.
|
DomainInfo |
getDomainInfo(String spaceName)
Gets domain info.
|
GetDomainWeightsResponse |
getDomainWeights(String spaceName)
Gets domain weights.
|
static IVodService |
getInstance() |
GetOriginVideoPlayResponse |
getOriginVideoPlayInfo(GetOriginVideoPlayRequest getOriginVideoPlayRequest)
Gets origin video play info.
|
String |
getPlayAuthToken(Map<String,String> params)
Gets play auth token.
|
GetPlayInfoResponse |
getPlayInfo(GetPlayInfoRequest getPlayInfoRequest)
Gets play info.
|
ImgUrl |
getPosterUrl(String spaceName,
String uri,
ImgUrlOption imgUrlOption)
Gets poster url.
|
String |
getRedirectPlay(GetRedirectPlayRequest getRedirectPlayRequest)
Gets redirect play.
|
String |
getUploadAuthToken(Map<String,String> params)
Gets upload auth token.
|
ModifyVideoInfoResponse |
modifyVideoInfo(ModifyVideoInfoRequest modifyVideoInfoRequest)
Modify video info modify video info response.
|
void |
setFallbackDomainWeights(Map<String,Integer> fallbackDomainWeights)
Sets fallback domain weights.
|
SetVideoPublishStatusResponse |
setVideoPublishStatus(SetVideoPublishStatusRequest setVideoPublishStatusRequest)
Sets video publish status.
|
void |
shutdown()
Shutdown.
|
StartTranscodeResponse |
startTranscode(StartTranscodeRequest startTranscodeRequest)
Start transcode start transcode resp.
|
UploadMediaByUrlResponse |
uploadMediaByUrl(UploadMediaByUrlRequest uploadMediaByUrlRequest)
Upload media by url upload media by url response.
|
String |
uploadPoster(String vid,
String spaceName,
String filePath,
String fileType)
Upload poster string.
|
CommitUploadResponse |
uploadVideo(String spaceName,
String filePath,
String fileType,
List<Functions> functions)
Upload commit upload response.
|
getAccessKey, getApiInfoList, getHttpClient, getISigner, getSecretKey, getServiceInfo, getSignUrl, json, post, put, query, setAccessKey, setClientNoReuse, setConnectionTimeout, setHttpClient, setRegion, setSecretKey, setServiceInfo, setSocketTimeoutclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAccessKey, getSecretKey, getSignUrl, json, post, put, query, setAccessKey, setClientNoReuse, setConnectionTimeout, setHttpClient, setRegion, setSecretKey, setServiceInfo, setSocketTimeoutpublic static IVodService getInstance()
public GetPlayInfoResponse getPlayInfo(GetPlayInfoRequest getPlayInfoRequest) throws Exception
IVodServicegetPlayInfo 在接口中 IVodServicegetPlayInfoRequest - the get play info requestException - the exceptionpublic String getPlayAuthToken(Map<String,String> params) throws Exception
IVodServicegetPlayAuthToken 在接口中 IVodServiceparams - the paramsException - the exceptionpublic GetOriginVideoPlayResponse getOriginVideoPlayInfo(GetOriginVideoPlayRequest getOriginVideoPlayRequest) throws Exception
IVodServicegetOriginVideoPlayInfo 在接口中 IVodServicegetOriginVideoPlayRequest - the get origin video play requestException - the exceptionpublic String getRedirectPlay(GetRedirectPlayRequest getRedirectPlayRequest) throws Exception
IVodServicegetRedirectPlay 在接口中 IVodServicegetRedirectPlayRequest - the get redirect play requestException - the exceptionpublic StartTranscodeResponse startTranscode(StartTranscodeRequest startTranscodeRequest) throws Exception
IVodServicestartTranscode 在接口中 IVodServicestartTranscodeRequest - the reqException - the exceptionpublic SetVideoPublishStatusResponse setVideoPublishStatus(SetVideoPublishStatusRequest setVideoPublishStatusRequest) throws Exception
IVodServicesetVideoPublishStatus 在接口中 IVodServicesetVideoPublishStatusRequest - the set video publish status requestException - the exceptionpublic GetDomainWeightsResponse getDomainWeights(String spaceName)
IVodServicegetDomainWeights 在接口中 IVodServicespaceName - the space namepublic void setFallbackDomainWeights(Map<String,Integer> fallbackDomainWeights)
IVodServicesetFallbackDomainWeights 在接口中 IVodServicefallbackDomainWeights - the fallback weightspublic void shutdown()
IVodServiceshutdown 在接口中 IVodServicepublic DomainInfo getDomainInfo(String spaceName)
IVodServicegetDomainInfo 在接口中 IVodServicespaceName - the space namepublic ImgUrl getPosterUrl(String spaceName, String uri, ImgUrlOption imgUrlOption)
IVodServicegetPosterUrl 在接口中 IVodServicespaceName - the space nameuri - the uriimgUrlOption - the img url optionpublic String getUploadAuthToken(Map<String,String> params) throws Exception
IVodServicegetUploadAuthToken 在接口中 IVodServiceparams - the paramsException - the exceptionpublic ApplyUploadResponse applyUpload(ApplyUploadRequest applyUploadRequest) throws Exception
IVodServiceapplyUpload 在接口中 IVodServiceapplyUploadRequest - the apply upload requestException - the exceptionpublic CommitUploadResponse commitUpload(CommitUploadRequest commitUploadRequest) throws Exception
IVodServicecommitUpload 在接口中 IVodServicecommitUploadRequest - the commit upload requestException - the exceptionpublic UploadMediaByUrlResponse uploadMediaByUrl(UploadMediaByUrlRequest uploadMediaByUrlRequest) throws Exception
IVodServiceuploadMediaByUrl 在接口中 IVodServiceuploadMediaByUrlRequest - the upload media by url requestException - the exceptionpublic ModifyVideoInfoResponse modifyVideoInfo(ModifyVideoInfoRequest modifyVideoInfoRequest) throws Exception
IVodServicemodifyVideoInfo 在接口中 IVodServicemodifyVideoInfoRequest - the modify video info requestException - the exceptionpublic CommitUploadResponse uploadVideo(String spaceName, String filePath, String fileType, List<Functions> functions) throws Exception
IVodServiceuploadVideo 在接口中 IVodServicespaceName - the space namefilePath - the file pathfileType - the file typefunctions - the functionsException - the exceptionpublic String uploadPoster(String vid, String spaceName, String filePath, String fileType) throws Exception
IVodServiceuploadPoster 在接口中 IVodServicevid - the vidspaceName - the space namefilePath - the file pathfileType - the file typeException - the exceptionCopyright © 2019. All rights reserved.