修改播放地址域名为唐山中胜

dev
wangpeng 2024-07-12 14:43:03 +08:00
parent a84fe656f0
commit 735b5e73d6
1 changed files with 2 additions and 1 deletions

View File

@ -27,6 +27,7 @@ public class GetPlayInfo {
DefaultAcsClient client = initVodClient(); DefaultAcsClient client = initVodClient();
GetPlayInfoRequest request = new GetPlayInfoRequest(); GetPlayInfoRequest request = new GetPlayInfoRequest();
request.setVideoId(pd.getString("videoId")); request.setVideoId(pd.getString("videoId"));
request.setPlayConfig("{\"PlayDomain\":" + "\"tszs.qhdsafety.com\"}");
return client.getAcsResponse(request); return client.getAcsResponse(request);
} }
@ -47,7 +48,7 @@ public class GetPlayInfo {
request.setAuthTimeout(Long.valueOf(pd.getString("timeOut"))); request.setAuthTimeout(Long.valueOf(pd.getString("timeOut")));
request.setFormats(pd.getString("formats")); request.setFormats(pd.getString("formats"));
request.setResultType("Multiple"); request.setResultType("Multiple");
// request.setPlayConfig("{\"PlayDomain\":" + "\"" + pd.getString("DOMAIN") + "\"}"); request.setPlayConfig("{\"PlayDomain\":" + "\"tszs.qhdsafety.com\"}");
GetPlayInfoResponse response = client.getAcsResponse(request); GetPlayInfoResponse response = client.getAcsResponse(request);
List<GetPlayInfoResponse.PlayInfo> playInfoList = response.getPlayInfoList(); List<GetPlayInfoResponse.PlayInfo> playInfoList = response.getPlayInfoList();
GetPlayInfoResponse.VideoBase videoBase = response.getVideoBase(); GetPlayInfoResponse.VideoBase videoBase = response.getVideoBase();