修复推流时存入推流数据的问题

2.7.2
648540858 2024-06-20 22:35:48 +08:00
parent 099c65ff40
commit 050882d6a6
1 changed files with 13 additions and 9 deletions

View File

@ -376,17 +376,21 @@ public class ZLMHttpHookListener {
}
redisCatchStorage.updateStreamAuthorityInfo(param.getApp(), param.getStream(), streamAuthorityInfo);
Map<String, String> params = MediaServerUtils.urlParamToMap(param.getParams());
param.setParamMap(params);
StreamInfo streamInfoByAppAndStream = mediaService.getStreamInfoByAppAndStream(mediaInfo,
param.getApp(), param.getStream(), tracks, params.get("callId"));
param.setStreamInfo(new StreamContent(streamInfoByAppAndStream));
if (!"broadcast".equals(param.getApp()) && !"talk".equals(param.getApp())) {
Map<String, String> params = MediaServerUtils.urlParamToMap(param.getParams());
param.setParamMap(params);
StreamInfo streamInfoByAppAndStream = mediaService.getStreamInfoByAppAndStream(mediaInfo,
param.getApp(), param.getStream(), tracks, params.get("callId"));
param.setStreamInfo(new StreamContent(streamInfoByAppAndStream));
param.setSeverId(userSetting.getServerId());
streamPushService.updatePush(param);
// 冗余数据,自己系统中自用
redisCatchStorage.addPushListItem(param.getApp(), param.getStream(), param);
param.setSeverId(userSetting.getServerId());
streamPushService.updatePush(param);
// 冗余数据,自己系统中自用
redisCatchStorage.addPushListItem(param.getApp(), param.getStream(), param);
}
}
}else {
redisCatchStorage.removePushListItem(param.getApp(), param.getStream(), param.getMediaServerId());
}
// TODO 修改为第一个为准 后续不再处理
if ("rtsp".equals(param.getSchema())) {