648540858
2022-09-30 a4f48a15223400a580a61df92a17d6e2309406cf
src/main/java/com/genersoft/iot/vmp/media/zlm/ZLMHttpHookListener.java
@@ -521,10 +521,15 @@
                  if (sendRtpItem.getApp().equals(app)) {
                     String platformId = sendRtpItem.getPlatformId();
                     ParentPlatform platform = storager.queryParentPlatByServerGBId(platformId);
                     Device device = deviceService.queryDevice(platformId);
                     try {
                        if (platform != null) {
                        commanderFroPlatform.streamByeCmd(platform, sendRtpItem);
                     } catch (SipException | InvalidArgumentException | ParseException e) {
                        }else {
                           cmder.streamByeCmd(device, sendRtpItem.getChannelId(), stream, sendRtpItem.getCallId());
                        }
                     } catch (SipException | InvalidArgumentException | ParseException | SsrcTransactionNotFoundException e) {
                        logger.error("[命令发送失败] 国标级联 发送BYE: {}", e.getMessage());
                     }
                  }
@@ -588,7 +593,10 @@
         }else{
            StreamInfo streamInfoForPlayBackCatch = redisCatchStorage.queryPlayback(null, null, streamId, null);
            if (streamInfoForPlayBackCatch != null) {
               Device device = deviceService.queryDevice(streamInfoForPlayCatch.getDeviceID());
               if (streamInfoForPlayBackCatch.isPause()) {
                  ret.put("close", false);
               }else {
                  Device device = deviceService.queryDevice(streamInfoForPlayBackCatch.getDeviceID());
               if (device != null) {
                  try {
                     cmder.streamByeCmd(device,streamInfoForPlayBackCatch.getChannelId(),
@@ -600,6 +608,8 @@
               }
               redisCatchStorage.stopPlayback(streamInfoForPlayBackCatch.getDeviceID(),
                     streamInfoForPlayBackCatch.getChannelId(), streamInfoForPlayBackCatch.getStream(), null);
               }
            }else {
               StreamInfo streamInfoForDownload = redisCatchStorage.queryDownload(null, null, streamId, null);
               // 进行录像下载时无人观看不断流