Commit fcfb7000 authored by Quxl's avatar Quxl

x

parent 5c291da0
......@@ -18,6 +18,7 @@ import com.aliyuncs.vod.model.v20170321.GetVideoPlayAuthResponse;
import com.aliyuncs.vod.model.v20170321.RefreshUploadVideoRequest;
import com.aliyuncs.vod.model.v20170321.RefreshUploadVideoResponse;
import com.egolm.common.HttpsUtil;
import com.egolm.film.config.XRException;
public class AliyunUtil {
private String accessKeyId = "";//"LTAIOtHCCpDLXYp8";
......@@ -121,9 +122,9 @@ public class AliyunUtil {
try {
response = aliyunClient.getAcsResponse(request);
} catch (ServerException e) {
throw new RuntimeException("GetVideoPlayAuthRequest Server failed");
throw new XRException("GetVideoPlayAuthRequest Server failed");
} catch (ClientException e) {
throw new RuntimeException("GetVideoPlayAuthRequest Client failed");
throw new XRException("GetVideoPlayAuthRequest Client failed");
}
response.getPlayAuth(); //播放凭证
response.getVideoMeta(); //视频Meta信息
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment