Commit df7c4fc4 authored by 麻笑宇's avatar 麻笑宇

大屏视频修改

parent 6416a026
......@@ -31,5 +31,13 @@ public class CommonVideoDto {
@JsonIgnore
private String parent;
/**
* 请判断播放端是否要求播放视频为H265编码格式,1表示需要,0表示不要求
*/
private Integer supportH265;
/**
* 视频清晰度,1-高清(主码流)、2-流畅(子码流)
*/
private Integer quality;
}
......@@ -64,7 +64,8 @@ public class BaseEnterpriseVideoServiceImpl extends BaseService<BaseEnterpriseVi
requestVideosInfo.put("deviceSerial", video.getDeviceSerial());
requestVideosInfo.put("channelNo", channelNo.getKey());
requestVideosInfo.put("protocol", video.getProtocol());
requestVideosInfo.put("quality", 2);
requestVideosInfo.put("quality", channelNo.getQuality());
requestVideosInfo.put("supportH265", channelNo.getSupportH265());
requestVideosInfo.put("expireTime", video.getExpireTime());
log.info("开始获取通道信息:{}", JSONObject.toJSONString(requestVideosInfo));
String videoData = HttpUtil.post(video.getUrl(), requestVideosInfo);
......
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