国标收流时流传输模式默认使用TCP被动
parent
e139676151
commit
464c989986
|
@ -443,7 +443,7 @@ public class DeviceServiceImpl implements IDeviceService {
|
||||||
device.setCreateTime(DateUtil.getNow());
|
device.setCreateTime(DateUtil.getNow());
|
||||||
device.setUpdateTime(DateUtil.getNow());
|
device.setUpdateTime(DateUtil.getNow());
|
||||||
if(device.getStreamMode() == null) {
|
if(device.getStreamMode() == null) {
|
||||||
device.setStreamMode("UDP");
|
device.setStreamMode("TCP-PASSIVE");
|
||||||
}
|
}
|
||||||
deviceMapper.addCustomDevice(device);
|
deviceMapper.addCustomDevice(device);
|
||||||
}
|
}
|
||||||
|
|
|
@ -166,7 +166,7 @@ public class RegisterRequestProcessor extends SIPRequestProcessorParent implemen
|
||||||
|
|
||||||
if (device == null) {
|
if (device == null) {
|
||||||
device = new Device();
|
device = new Device();
|
||||||
device.setStreamMode("UDP");
|
device.setStreamMode("TCP-PASSIVE");
|
||||||
device.setCharset("GB2312");
|
device.setCharset("GB2312");
|
||||||
device.setGeoCoordSys("WGS84");
|
device.setGeoCoordSys("WGS84");
|
||||||
device.setMediaServerId("auto");
|
device.setMediaServerId("auto");
|
||||||
|
@ -174,7 +174,7 @@ public class RegisterRequestProcessor extends SIPRequestProcessorParent implemen
|
||||||
device.setOnLine(false);
|
device.setOnLine(false);
|
||||||
} else {
|
} else {
|
||||||
if (ObjectUtils.isEmpty(device.getStreamMode())) {
|
if (ObjectUtils.isEmpty(device.getStreamMode())) {
|
||||||
device.setStreamMode("UDP");
|
device.setStreamMode("TCP-PASSIVE");
|
||||||
}
|
}
|
||||||
if (ObjectUtils.isEmpty(device.getCharset())) {
|
if (ObjectUtils.isEmpty(device.getCharset())) {
|
||||||
device.setCharset("GB2312");
|
device.setCharset("GB2312");
|
||||||
|
|
|
@ -79,7 +79,7 @@ public class DeviceInfoResponseMessageHandler extends SIPRequestProcessorParent
|
||||||
device.setModel(getText(rootElement, "Model"));
|
device.setModel(getText(rootElement, "Model"));
|
||||||
device.setFirmware(getText(rootElement, "Firmware"));
|
device.setFirmware(getText(rootElement, "Firmware"));
|
||||||
if (ObjectUtils.isEmpty(device.getStreamMode())) {
|
if (ObjectUtils.isEmpty(device.getStreamMode())) {
|
||||||
device.setStreamMode("UDP");
|
device.setStreamMode("TCP-PASSIVE");
|
||||||
}
|
}
|
||||||
deviceService.updateDevice(device);
|
deviceService.updateDevice(device);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue