修复使用来源IP作为流ip配置
parent
86c08db266
commit
8cab9f23b0
|
@ -106,22 +106,24 @@ public class PlayController {
|
||||||
resultHolder.invokeResult(msg);
|
resultHolder.invokeResult(msg);
|
||||||
});
|
});
|
||||||
|
|
||||||
// TODO 在点播未成功的情况下在此调用接口点播会导致返回的流地址ip错误
|
if (userSetting.getUseSourceIpAsStreamIp()) {
|
||||||
deferredResultEx.setFilter(result1 -> {
|
// TODO 在点播未成功的情况下在此调用接口点播会导致返回的流地址ip错误
|
||||||
WVPResult<StreamInfo> wvpResult1 = (WVPResult<StreamInfo>)result1;
|
deferredResultEx.setFilter(result1 -> {
|
||||||
WVPResult<StreamInfo> clone = null;
|
WVPResult<StreamInfo> wvpResult1 = (WVPResult<StreamInfo>)result1;
|
||||||
try {
|
WVPResult<StreamInfo> clone = null;
|
||||||
clone = (WVPResult<StreamInfo>)wvpResult1.clone();
|
try {
|
||||||
} catch (CloneNotSupportedException e) {
|
clone = (WVPResult<StreamInfo>)wvpResult1.clone();
|
||||||
throw new RuntimeException(e);
|
} catch (CloneNotSupportedException e) {
|
||||||
}
|
throw new RuntimeException(e);
|
||||||
if (clone.getCode() == ErrorCode.SUCCESS.getCode()) {
|
}
|
||||||
StreamInfo data = clone.getData().clone();
|
if (clone.getCode() == ErrorCode.SUCCESS.getCode()) {
|
||||||
data.channgeStreamIp(request.getLocalName());
|
StreamInfo data = clone.getData().clone();
|
||||||
clone.setData(data);
|
data.channgeStreamIp(request.getLocalName());
|
||||||
}
|
clone.setData(data);
|
||||||
return clone;
|
}
|
||||||
});
|
return clone;
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
// 录像查询以channelId作为deviceId查询
|
// 录像查询以channelId作为deviceId查询
|
||||||
resultHolder.put(key, uuid, deferredResultEx);
|
resultHolder.put(key, uuid, deferredResultEx);
|
||||||
|
|
Loading…
Reference in New Issue