@Service
public class VodService
extends java.lang.Object
| 构造器和说明 |
|---|
VodService() |
| 限定符和类型 | 方法和说明 |
|---|---|
VideoResponse |
getPlayInfo(java.lang.String videoId)
获取播放地址
|
com.aliyuncs.vod.model.v20170321.GetVideoInfoResponse |
getUploadInfosByMediaUrl(java.lang.String url)
通过点播视频url获取视频信息
|
com.aliyuncs.vod.model.v20170321.GetVideoInfoResponse |
getUploadInfosByOssRequest(VideoInfoRequest videoInfoRequest)
通过oss文件信息获取视频信息
|
com.aliyuncs.vod.model.v20170321.GetVideoInfoResponse |
getUploadInfosByOssUrl(java.lang.String url)
通过oss文件url获取视频信息
|
VodByOssResponse |
getUploadToken(com.aliyuncs.vod.model.v20170321.CreateUploadVideoRequest request)
解析上传凭证
|
com.aliyuncs.vod.model.v20170321.CreateUploadVideoResponse |
getUploadVideoRequest(com.aliyuncs.vod.model.v20170321.CreateUploadVideoRequest request)
获取视频上传地址和凭证
|
com.aliyuncs.vod.model.v20170321.GetVideoInfoResponse |
getVideoInfo(java.lang.String videoId)
获取视频信息响应数据
|
Report |
sign()
获取上传视频需要的参数
|
public Report sign()
public VideoResponse getPlayInfo(java.lang.String videoId) throws VideoNotFoundException
videoId - 视频idVideoNotFoundException - VideoNotFoundExceptionpublic com.aliyuncs.vod.model.v20170321.GetVideoInfoResponse getUploadInfosByOssRequest(VideoInfoRequest videoInfoRequest) throws VideoNotFoundException
videoInfoRequest - 媒体注册信息VideoNotFoundException - VideoNotFoundExceptionpublic com.aliyuncs.vod.model.v20170321.CreateUploadVideoResponse getUploadVideoRequest(com.aliyuncs.vod.model.v20170321.CreateUploadVideoRequest request)
throws VideoNotFoundException,
com.aliyuncs.exceptions.ClientException
request - requestVideoNotFoundException - VideoNotFoundExceptioncom.aliyuncs.exceptions.ClientException - ClientExceptionpublic VodByOssResponse getUploadToken(com.aliyuncs.vod.model.v20170321.CreateUploadVideoRequest request) throws VideoNotFoundException, com.aliyuncs.exceptions.ClientException
request - requestVideoNotFoundException - VideoNotFoundExceptioncom.aliyuncs.exceptions.ClientException - ClientExceptionpublic com.aliyuncs.vod.model.v20170321.GetVideoInfoResponse getUploadInfosByOssUrl(java.lang.String url)
throws VideoNotFoundException
url - urlVideoNotFoundException - VideoNotFoundExceptionpublic com.aliyuncs.vod.model.v20170321.GetVideoInfoResponse getUploadInfosByMediaUrl(java.lang.String url)
throws VideoNotFoundException
url - 视频urlVideoNotFoundException - VideoNotFoundExceptionpublic com.aliyuncs.vod.model.v20170321.GetVideoInfoResponse getVideoInfo(java.lang.String videoId)
throws VideoNotFoundException
videoId - 视频idVideoNotFoundException - VideoNotFoundExceptionCopyright © 2019. All Rights Reserved.