优化拉流代理中关于ffmpeg.cmd的判断

pull/1242/head
648540858 2023-11-21 14:50:16 +08:00
parent db24f49275
commit 29ef68038d
1 changed files with 3 additions and 0 deletions

View File

@ -132,6 +132,9 @@ public class StreamProxyServiceImpl implements IStreamProxyService {
}
JSONArray dataArray = jsonObject.getJSONArray("data");
JSONObject mediaServerConfig = dataArray.getJSONObject(0);
if (ObjectUtils.isEmpty(param.getFfmpegCmdKey())) {
param.setFfmpegCmdKey("ffmpeg.cmd");
}
String ffmpegCmd = mediaServerConfig.getString(param.getFfmpegCmdKey());
if (ffmpegCmd == null) {
throw new ControllerException(ErrorCode.ERROR100.getCode(), "ffmpeg拉流代理无法获取ffmpeg cmd");