修复推流时存入推流数据的问题
parent
099c65ff40
commit
050882d6a6
|
@ -376,17 +376,21 @@ public class ZLMHttpHookListener {
|
||||||
}
|
}
|
||||||
redisCatchStorage.updateStreamAuthorityInfo(param.getApp(), param.getStream(), streamAuthorityInfo);
|
redisCatchStorage.updateStreamAuthorityInfo(param.getApp(), param.getStream(), streamAuthorityInfo);
|
||||||
|
|
||||||
Map<String, String> params = MediaServerUtils.urlParamToMap(param.getParams());
|
if (!"broadcast".equals(param.getApp()) && !"talk".equals(param.getApp())) {
|
||||||
param.setParamMap(params);
|
Map<String, String> params = MediaServerUtils.urlParamToMap(param.getParams());
|
||||||
StreamInfo streamInfoByAppAndStream = mediaService.getStreamInfoByAppAndStream(mediaInfo,
|
param.setParamMap(params);
|
||||||
param.getApp(), param.getStream(), tracks, params.get("callId"));
|
StreamInfo streamInfoByAppAndStream = mediaService.getStreamInfoByAppAndStream(mediaInfo,
|
||||||
param.setStreamInfo(new StreamContent(streamInfoByAppAndStream));
|
param.getApp(), param.getStream(), tracks, params.get("callId"));
|
||||||
|
param.setStreamInfo(new StreamContent(streamInfoByAppAndStream));
|
||||||
|
|
||||||
param.setSeverId(userSetting.getServerId());
|
param.setSeverId(userSetting.getServerId());
|
||||||
streamPushService.updatePush(param);
|
streamPushService.updatePush(param);
|
||||||
// 冗余数据,自己系统中自用
|
// 冗余数据,自己系统中自用
|
||||||
redisCatchStorage.addPushListItem(param.getApp(), param.getStream(), param);
|
redisCatchStorage.addPushListItem(param.getApp(), param.getStream(), param);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
}else {
|
||||||
|
redisCatchStorage.removePushListItem(param.getApp(), param.getStream(), param.getMediaServerId());
|
||||||
}
|
}
|
||||||
// TODO 修改为第一个为准 后续不再处理
|
// TODO 修改为第一个为准 后续不再处理
|
||||||
if ("rtsp".equals(param.getSchema())) {
|
if ("rtsp".equals(param.getSchema())) {
|
||||||
|
|
Loading…
Reference in New Issue