Merge branch 'master' into dev/数据库统合
# Conflicts: # src/main/java/com/genersoft/iot/vmp/streamProxy/service/impl/StreamProxyPlayServiceImpl.java
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user