|
@@ -18,6 +18,7 @@ import com.genersoft.iot.vmp.gb28181.transmit.cmd.impl.SIPCommander;
|
|
|
import com.genersoft.iot.vmp.media.bean.ResultForOnPublish;
|
|
import com.genersoft.iot.vmp.media.bean.ResultForOnPublish;
|
|
|
import com.genersoft.iot.vmp.media.event.MediaArrivalEvent;
|
|
import com.genersoft.iot.vmp.media.event.MediaArrivalEvent;
|
|
|
import com.genersoft.iot.vmp.media.event.MediaDepartureEvent;
|
|
import com.genersoft.iot.vmp.media.event.MediaDepartureEvent;
|
|
|
|
|
+import com.genersoft.iot.vmp.media.event.MediaNotFoundEvent;
|
|
|
import com.genersoft.iot.vmp.media.service.IMediaServerService;
|
|
import com.genersoft.iot.vmp.media.service.IMediaServerService;
|
|
|
import com.genersoft.iot.vmp.media.zlm.dto.HookType;
|
|
import com.genersoft.iot.vmp.media.zlm.dto.HookType;
|
|
|
import com.genersoft.iot.vmp.media.zlm.dto.MediaServer;
|
|
import com.genersoft.iot.vmp.media.zlm.dto.MediaServer;
|
|
@@ -262,6 +263,10 @@ public class ZLMHttpHookListener {
|
|
|
defaultResult.setResult(new HookResult(ErrorCode.ERROR404.getCode(), ErrorCode.ERROR404.getMsg()));
|
|
defaultResult.setResult(new HookResult(ErrorCode.ERROR404.getCode(), ErrorCode.ERROR404.getMsg()));
|
|
|
return defaultResult;
|
|
return defaultResult;
|
|
|
}
|
|
}
|
|
|
|
|
+ MediaNotFoundEvent mediaNotFoundEvent = MediaNotFoundEvent.getInstance(this, param, mediaServer);
|
|
|
|
|
+ applicationEventPublisher.publishEvent(mediaNotFoundEvent);
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
|
|
|
if ("rtp".equals(param.getApp())) {
|
|
if ("rtp".equals(param.getApp())) {
|
|
|
String[] s = param.getStream().split("_");
|
|
String[] s = param.getStream().split("_");
|