This commit is contained in:
shikong 2023-12-18 13:28:32 +08:00
parent 92dee06429
commit 4e0b1d6c31

View File

@ -104,6 +104,7 @@ public class Gb28181DownloadService {
public void streamHeader(HttpServletResponse response) {
response.setContentType(MediaType.APPLICATION_OCTET_STREAM_VALUE);
response.setHeader("Accept-Ranges", "none");
response.setHeader("Connection", "close");
}
@ -297,6 +298,7 @@ public class Gb28181DownloadService {
String cacheKey = CacheUtil.getKey(docking.getGbDeviceId(), device.getGbDeviceChannelId());
String existCallId = RedisUtil.StringOps.get(cacheKey);
RedisUtil.KeyOps.delete(cacheKey);
String infoKey = CacheUtil.getKey(MediaSdpHelper.Action.PLAY.getAction(), existCallId);
VideoInfo videoInfo = JsonUtils.parse(RedisUtil.StringOps.get(infoKey), VideoInfo.class);
if(videoInfo != null){