修复设备信息后同步redis

pull/698/head^2
648540858 2022-10-25 10:27:32 +08:00
parent 0f0ece2401
commit 662a70e20f
2 changed files with 4 additions and 1 deletions

View File

@ -566,6 +566,9 @@ public class DeviceServiceImpl implements IDeviceService {
if (!ObjectUtils.isEmpty(device.getMediaServerId())) {
deviceInStore.setMediaServerId(device.getMediaServerId());
}
deviceInStore.setSdpIp(device.getSdpIp());
deviceInStore.setCharset(device.getCharset());
deviceInStore.setTreeType(device.getTreeType());
// 目录订阅相关的信息
if (device.getSubscribeCycleForCatalog() > 0) {
@ -601,6 +604,7 @@ public class DeviceServiceImpl implements IDeviceService {
updateDeviceChannelGeoCoordSys(device);
}
// 更新redis
redisCatchStorage.updateDevice(device);
deviceMapper.updateCustom(device);
}

View File

@ -260,7 +260,6 @@ public class PlayServiceImpl implements IPlayService {
// 超时处理
String timeOutTaskKey = UUID.randomUUID().toString();
SSRCInfo finalSsrcInfo = ssrcInfo;
System.out.println("设置超时任务: " + timeOutTaskKey);
dynamicTask.startDelay(timeOutTaskKey, () -> {
logger.info("[点播超时] 收流超时 deviceId: {}, channelId: {},端口:{}, SSRC: {}", device.getDeviceId(), channelId, finalSsrcInfo.getPort(), finalSsrcInfo.getSsrc());