WuPeng
2022-11-05 ab909feedf43a44780a6198cbd4772e9d7713fdf
src/main/java/com/genersoft/iot/vmp/media/zlm/ZLMHttpHookListener.java
@@ -5,7 +5,7 @@
import java.util.List;
import java.util.Map;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson2.JSON;
import com.genersoft.iot.vmp.common.StreamInfo;
import com.genersoft.iot.vmp.conf.UserSetting;
import com.genersoft.iot.vmp.conf.exception.SsrcTransactionNotFoundException;
@@ -29,7 +29,7 @@
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;
import com.alibaba.fastjson.JSONObject;
import com.alibaba.fastjson2.JSONObject;
import com.genersoft.iot.vmp.gb28181.transmit.cmd.impl.SIPCommander;
import javax.servlet.http.HttpServletRequest;
@@ -521,7 +521,7 @@
                  if (sendRtpItem.getApp().equals(app)) {
                     String platformId = sendRtpItem.getPlatformId();
                     ParentPlatform platform = storager.queryParentPlatByServerGBId(platformId);
                     Device device = deviceService.queryDevice(platformId);
                     Device device = deviceService.getDevice(platformId);
                     try {
                        if (platform != null) {
@@ -581,7 +581,7 @@
                  }
               }
            }
            Device device = deviceService.queryDevice(streamInfoForPlayCatch.getDeviceID());
            Device device = deviceService.getDevice(streamInfoForPlayCatch.getDeviceID());
            if (device != null) {
               try {
                  cmder.streamByeCmd(device, streamInfoForPlayCatch.getChannelId(),
@@ -601,7 +601,7 @@
            if (streamInfoForPlayBackCatch.isPause()) {
               ret.put("close", false);
            }else {
               Device device = deviceService.queryDevice(streamInfoForPlayBackCatch.getDeviceID());
               Device device = deviceService.getDevice(streamInfoForPlayBackCatch.getDeviceID());
               if (device != null) {
                  try {
                     cmder.streamByeCmd(device,streamInfoForPlayBackCatch.getChannelId(),
@@ -716,7 +716,7 @@
         }
      }
      ZLMServerConfig zlmServerConfig = JSONObject.toJavaObject(jsonObject, ZLMServerConfig.class);
      ZLMServerConfig zlmServerConfig = jsonObject.to(ZLMServerConfig.class);
      if (zlmServerConfig !=null ) {
         mediaServerService.zlmServerOnline(zlmServerConfig);
      }