修复设备信息后同步redis
parent
0f0ece2401
commit
662a70e20f
|
@ -566,6 +566,9 @@ public class DeviceServiceImpl implements IDeviceService {
|
||||||
if (!ObjectUtils.isEmpty(device.getMediaServerId())) {
|
if (!ObjectUtils.isEmpty(device.getMediaServerId())) {
|
||||||
deviceInStore.setMediaServerId(device.getMediaServerId());
|
deviceInStore.setMediaServerId(device.getMediaServerId());
|
||||||
}
|
}
|
||||||
|
deviceInStore.setSdpIp(device.getSdpIp());
|
||||||
|
deviceInStore.setCharset(device.getCharset());
|
||||||
|
deviceInStore.setTreeType(device.getTreeType());
|
||||||
|
|
||||||
// 目录订阅相关的信息
|
// 目录订阅相关的信息
|
||||||
if (device.getSubscribeCycleForCatalog() > 0) {
|
if (device.getSubscribeCycleForCatalog() > 0) {
|
||||||
|
@ -601,6 +604,7 @@ public class DeviceServiceImpl implements IDeviceService {
|
||||||
updateDeviceChannelGeoCoordSys(device);
|
updateDeviceChannelGeoCoordSys(device);
|
||||||
}
|
}
|
||||||
// 更新redis
|
// 更新redis
|
||||||
|
redisCatchStorage.updateDevice(device);
|
||||||
deviceMapper.updateCustom(device);
|
deviceMapper.updateCustom(device);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -260,7 +260,6 @@ public class PlayServiceImpl implements IPlayService {
|
||||||
// 超时处理
|
// 超时处理
|
||||||
String timeOutTaskKey = UUID.randomUUID().toString();
|
String timeOutTaskKey = UUID.randomUUID().toString();
|
||||||
SSRCInfo finalSsrcInfo = ssrcInfo;
|
SSRCInfo finalSsrcInfo = ssrcInfo;
|
||||||
System.out.println("设置超时任务: " + timeOutTaskKey);
|
|
||||||
dynamicTask.startDelay(timeOutTaskKey, () -> {
|
dynamicTask.startDelay(timeOutTaskKey, () -> {
|
||||||
|
|
||||||
logger.info("[点播超时] 收流超时 deviceId: {}, channelId: {},端口:{}, SSRC: {}", device.getDeviceId(), channelId, finalSsrcInfo.getPort(), finalSsrcInfo.getSsrc());
|
logger.info("[点播超时] 收流超时 deviceId: {}, channelId: {},端口:{}, SSRC: {}", device.getDeviceId(), channelId, finalSsrcInfo.getPort(), finalSsrcInfo.getSsrc());
|
||||||
|
|
Loading…
Reference in New Issue