去除jedis,方便支持redis集群

This commit is contained in:
648540858
2022-08-10 18:14:33 +08:00
parent eb177a6742
commit 82ab6b1760
7 changed files with 25 additions and 162 deletions

View File

@@ -445,12 +445,15 @@ public class ZLMHttpHookListener {
if (streamInfo!=null){
redisCatchStorage.stopPlay(streamInfo);
storager.stopPlay(streamInfo.getDeviceID(), streamInfo.getChannelId());
// 如果正在给上级推送则发送bye
}else{
streamInfo = redisCatchStorage.queryPlayback(null, null, stream, null);
if (streamInfo != null) {
redisCatchStorage.stopPlayback(streamInfo.getDeviceID(), streamInfo.getChannelId(),
streamInfo.getStream(), null);
}
// 如果正在给上级推送则发送bye
}
}else {
if (!"rtp".equals(app)){