临时提交
parent
f0e9c85c85
commit
481c88f517
|
@ -29,8 +29,6 @@ public class StreamProxy {
|
||||||
private String rtpType;
|
private String rtpType;
|
||||||
@Schema(description = "代理失败的原因")
|
@Schema(description = "代理失败的原因")
|
||||||
private String proxyError;
|
private String proxyError;
|
||||||
@Schema(description = "是否启用")
|
|
||||||
private boolean enable;
|
|
||||||
@Schema(description = "是否启用音频")
|
@Schema(description = "是否启用音频")
|
||||||
private boolean enableAudio;
|
private boolean enableAudio;
|
||||||
@Schema(description = "是否录制")
|
@Schema(description = "是否录制")
|
||||||
|
@ -53,8 +51,10 @@ public class StreamProxy {
|
||||||
private double longitude;
|
private double longitude;
|
||||||
@Schema(description = "纬度")
|
@Schema(description = "纬度")
|
||||||
private double latitude;
|
private double latitude;
|
||||||
@Schema(description = "状态")
|
@Schema(description = "正在拉流")
|
||||||
private boolean status;
|
private boolean pulling;
|
||||||
|
@Schema(description = "拉流时间")
|
||||||
|
private String pullTime;
|
||||||
@Schema(description = "创建时间")
|
@Schema(description = "创建时间")
|
||||||
private String createTime;
|
private String createTime;
|
||||||
@Schema(description = "更新时间")
|
@Schema(description = "更新时间")
|
||||||
|
@ -226,14 +226,6 @@ public class StreamProxy {
|
||||||
this.latitude = latitude;
|
this.latitude = latitude;
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean isStatus() {
|
|
||||||
return status;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setStatus(boolean status) {
|
|
||||||
this.status = status;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getCreateTime() {
|
public String getCreateTime() {
|
||||||
return createTime;
|
return createTime;
|
||||||
}
|
}
|
||||||
|
|
|
@ -241,7 +241,7 @@ public class StreamProxyServiceImpl implements IStreamProxyService {
|
||||||
param.setProxyError(msg);
|
param.setProxyError(msg);
|
||||||
param.setStatus(false);
|
param.setStatus(false);
|
||||||
}
|
}
|
||||||
addProxyToDb(param);
|
// updateStatusById(param.get);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -489,17 +489,14 @@ public class StreamProxyServiceImpl implements IStreamProxyService {
|
||||||
if (streamProxyInDb.getCommonGbChannelId() > 0) {
|
if (streamProxyInDb.getCommonGbChannelId() > 0) {
|
||||||
commonGbChannelService.deleteById(streamProxyInDb.getCommonGbChannelId());
|
commonGbChannelService.deleteById(streamProxyInDb.getCommonGbChannelId());
|
||||||
}
|
}
|
||||||
}
|
}else if (!ObjectUtils.isEmpty(param.getGbId())
|
||||||
if (!ObjectUtils.isEmpty(param.getGbId())
|
|
||||||
&& ObjectUtils.isEmpty(streamProxyInDb.getGbId())) {
|
&& ObjectUtils.isEmpty(streamProxyInDb.getGbId())) {
|
||||||
CommonGbChannel commonGbChannel = CommonGbChannel.getInstance(param);
|
CommonGbChannel commonGbChannel = CommonGbChannel.getInstance(param);
|
||||||
// 国标ID已经添加
|
// 国标ID已经添加
|
||||||
if (commonGbChannelService.add(commonGbChannel) > 0) {
|
if (commonGbChannelService.add(commonGbChannel) > 0) {
|
||||||
param.setCommonGbChannelId(commonGbChannel.getCommonGbId());
|
param.setCommonGbChannelId(commonGbChannel.getCommonGbId());
|
||||||
}
|
}
|
||||||
}
|
}else {
|
||||||
if (param.getGbId() != null && streamProxyInDb.getGbId() != null
|
|
||||||
&& !param.getGbId().equals(streamProxyInDb.getGbId())) {
|
|
||||||
CommonGbChannel commonGbChannel = CommonGbChannel.getInstance(param);
|
CommonGbChannel commonGbChannel = CommonGbChannel.getInstance(param);
|
||||||
commonGbChannel.setCommonGbId(streamProxyInDb.getCommonGbChannelId());
|
commonGbChannel.setCommonGbId(streamProxyInDb.getCommonGbChannelId());
|
||||||
// 国标ID已经改变
|
// 国标ID已经改变
|
||||||
|
@ -525,7 +522,6 @@ public class StreamProxyServiceImpl implements IStreamProxyService {
|
||||||
}else {
|
}else {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
|
@ -717,7 +713,6 @@ public class StreamProxyServiceImpl implements IStreamProxyService {
|
||||||
}else {
|
}else {
|
||||||
commonGbChannelService.offlineForList(ids);
|
commonGbChannelService.offlineForList(ids);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -765,10 +760,8 @@ public class StreamProxyServiceImpl implements IStreamProxyService {
|
||||||
if (streamProxy == null) {
|
if (streamProxy == null) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (streamProxy.getCommonGbChannelId() > 0) {
|
|
||||||
updateStatusById(streamProxy, status);
|
updateStatusById(streamProxy, status);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
private void syncPullStream(String mediaServerId){
|
private void syncPullStream(String mediaServerId){
|
||||||
MediaServerItem mediaServer = mediaServerService.getOne(mediaServerId);
|
MediaServerItem mediaServer = mediaServerService.getOne(mediaServerId);
|
||||||
|
|
Loading…
Reference in New Issue