Merge branch 'master' into dev/数据库统合

# Conflicts:
#	src/main/java/com/genersoft/iot/vmp/streamProxy/service/impl/StreamProxyPlayServiceImpl.java
This commit is contained in:
648540858
2025-01-17 10:53:08 +08:00
10 changed files with 94 additions and 17 deletions

View File

@@ -446,7 +446,7 @@ public class DeviceServiceImpl implements IDeviceService {
device.setCreateTime(DateUtil.getNow());
device.setUpdateTime(DateUtil.getNow());
if(device.getStreamMode() == null) {
device.setStreamMode("UDP");
device.setStreamMode("TCP-PASSIVE");
}
deviceMapper.addCustomDevice(device);
}

View File

@@ -162,12 +162,7 @@ public class GbChannelPlayServiceImpl implements IGbChannelPlayService {
public void playProxy(CommonGBChannel channel, ErrorCallback<StreamInfo> callback){
// 拉流代理通道
try {
StreamInfo streamInfo = streamProxyPlayService.start(channel.getDataDeviceId());
if (streamInfo == null) {
callback.run(Response.BUSY_HERE, "busy here", null);
}else {
callback.run(InviteErrorCode.SUCCESS.getCode(), InviteErrorCode.SUCCESS.getMsg(), streamInfo);
}
streamProxyPlayService.start(channel.getDataDeviceId(), callback);
}catch (Exception e) {
callback.run(Response.BUSY_HERE, "busy here", null);
}