mirror of
https://gitee.com/pan648540858/wvp-GB28181-pro.git
synced 2026-05-23 13:37:49 +08:00
优化拉流代理中关于ffmpeg.cmd的判断
This commit is contained in:
parent
db24f49275
commit
29ef68038d
@ -132,6 +132,9 @@ public class StreamProxyServiceImpl implements IStreamProxyService {
|
|||||||
}
|
}
|
||||||
JSONArray dataArray = jsonObject.getJSONArray("data");
|
JSONArray dataArray = jsonObject.getJSONArray("data");
|
||||||
JSONObject mediaServerConfig = dataArray.getJSONObject(0);
|
JSONObject mediaServerConfig = dataArray.getJSONObject(0);
|
||||||
|
if (ObjectUtils.isEmpty(param.getFfmpegCmdKey())) {
|
||||||
|
param.setFfmpegCmdKey("ffmpeg.cmd");
|
||||||
|
}
|
||||||
String ffmpegCmd = mediaServerConfig.getString(param.getFfmpegCmdKey());
|
String ffmpegCmd = mediaServerConfig.getString(param.getFfmpegCmdKey());
|
||||||
if (ffmpegCmd == null) {
|
if (ffmpegCmd == null) {
|
||||||
throw new ControllerException(ErrorCode.ERROR100.getCode(), "ffmpeg拉流代理无法获取ffmpeg cmd");
|
throw new ControllerException(ErrorCode.ERROR100.getCode(), "ffmpeg拉流代理无法获取ffmpeg cmd");
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user