增加移除离线设备的功能

This commit is contained in:
panlinlin
2021-04-16 10:59:26 +08:00
parent 937e591430
commit f1fae7aac6
7 changed files with 70 additions and 8 deletions

View File

@@ -340,7 +340,7 @@ public class ZLMHttpHookListener {
String app = json.getString("app");
String streamId = json.getString("stream");
StreamInfo streamInfo = redisCatchStorage.queryPlayByStreamId(streamId);
if ("rtp".equals(app) && streamId.indexOf("gb_play") > -1 && streamInfo == null) {
if ("rtp".equals(app) && streamId.contains("gb_play") && streamInfo == null) {
String[] s = streamId.split("_");
if (s.length == 4) {
String deviceId = s[2];