修正
This commit is contained in:
parent
92dee06429
commit
4e0b1d6c31
@ -104,6 +104,7 @@ public class Gb28181DownloadService {
|
|||||||
|
|
||||||
public void streamHeader(HttpServletResponse response) {
|
public void streamHeader(HttpServletResponse response) {
|
||||||
response.setContentType(MediaType.APPLICATION_OCTET_STREAM_VALUE);
|
response.setContentType(MediaType.APPLICATION_OCTET_STREAM_VALUE);
|
||||||
|
|
||||||
response.setHeader("Accept-Ranges", "none");
|
response.setHeader("Accept-Ranges", "none");
|
||||||
response.setHeader("Connection", "close");
|
response.setHeader("Connection", "close");
|
||||||
}
|
}
|
||||||
@ -297,6 +298,7 @@ public class Gb28181DownloadService {
|
|||||||
|
|
||||||
String cacheKey = CacheUtil.getKey(docking.getGbDeviceId(), device.getGbDeviceChannelId());
|
String cacheKey = CacheUtil.getKey(docking.getGbDeviceId(), device.getGbDeviceChannelId());
|
||||||
String existCallId = RedisUtil.StringOps.get(cacheKey);
|
String existCallId = RedisUtil.StringOps.get(cacheKey);
|
||||||
|
RedisUtil.KeyOps.delete(cacheKey);
|
||||||
String infoKey = CacheUtil.getKey(MediaSdpHelper.Action.PLAY.getAction(), existCallId);
|
String infoKey = CacheUtil.getKey(MediaSdpHelper.Action.PLAY.getAction(), existCallId);
|
||||||
VideoInfo videoInfo = JsonUtils.parse(RedisUtil.StringOps.get(infoKey), VideoInfo.class);
|
VideoInfo videoInfo = JsonUtils.parse(RedisUtil.StringOps.get(infoKey), VideoInfo.class);
|
||||||
if(videoInfo != null){
|
if(videoInfo != null){
|
||||||
|
Loading…
Reference in New Issue
Block a user