This commit is contained in:
shikong 2023-10-17 17:20:53 +08:00
parent 81822ff553
commit c1655bdeb5

View File

@ -186,10 +186,10 @@ public class Gb28181DownloadService {
return result;
}
download(deviceCode, startTime, endTime).whenComplete((videoInfo, e)->{
log.info("到达结束时间 发送 bye 关闭");
String cacheKey = CacheUtil.getKey(docking.getGbDeviceId(), device.getGbDeviceChannelId());
String existCallId = RedisUtil.StringOps.get(cacheKey);
scheduledExecutorService.schedule(()->{
log.info("到达结束时间 发送 bye 关闭");
String deviceIp = docking.getIp();
int devicePort = Integer.parseInt(docking.getPort());
sender.sendRequest((provider,localIp,localPort)->