panlinlin
2021-04-16 c5f2aba9b20089f184ce175b58a33a881ea9e0b1
src/main/java/com/genersoft/iot/vmp/media/zlm/ZLMHttpHookListener.java
@@ -306,12 +306,12 @@
            if (redisCatchStorage.isChannelSendingRTP(streamInfo.getChannelId())) {
               ret.put("close", false);
            } else {
               cmder.streamByeCmd(streamId);
               cmder.streamByeCmd(streamInfo.getDeviceID(), streamInfo.getChannelId());
               redisCatchStorage.stopPlay(streamInfo);
               storager.stopPlay(streamInfo.getDeviceID(), streamInfo.getChannelId());
            }
         }else{
            cmder.streamByeCmd(streamId);
            cmder.streamByeCmd(streamInfo.getDeviceID(), streamInfo.getChannelId());
            streamInfo = redisCatchStorage.queryPlaybackByStreamId(streamId);
            redisCatchStorage.stopPlayback(streamInfo);
         }
@@ -340,7 +340,7 @@
         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];