| | |
| | | import com.genersoft.iot.vmp.gb28181.bean.GbStream;
|
| | | import com.genersoft.iot.vmp.gb28181.event.offline.OfflineEvent;
|
| | | import com.genersoft.iot.vmp.gb28181.event.platformKeepaliveExpire.PlatformKeepaliveExpireEvent;
|
| | | import com.genersoft.iot.vmp.gb28181.event.platformNotRegister.PlatformCycleRegisterEvent;
|
| | | import com.genersoft.iot.vmp.gb28181.event.platformNotRegister.PlatformNotRegisterEvent;
|
| | | import com.genersoft.iot.vmp.gb28181.event.subscribe.catalog.CatalogEvent;
|
| | | import com.genersoft.iot.vmp.media.zlm.event.ZLMOfflineEvent;
|
| | |
| | | platformNotRegisterEvent.setPlatformGbID(platformGbId);
|
| | | applicationEventPublisher.publishEvent(platformNotRegisterEvent);
|
| | | }
|
| | |
|
| | | /**
|
| | | * 平台周期注册事件
|
| | | * @param paltformGbId
|
| | | */
|
| | | public void platformRegisterCycleEventPublish(String paltformGbId) {
|
| | | PlatformCycleRegisterEvent platformCycleRegisterEvent = new PlatformCycleRegisterEvent(this);
|
| | | platformCycleRegisterEvent.setPlatformGbID(paltformGbId);
|
| | | applicationEventPublisher.publishEvent(platformCycleRegisterEvent);
|
| | | }
|
| | |
|
| | | /**
|
| | | * 设备报警事件
|
| | |
| | | }
|
| | |
|
| | | @Async
|
| | | public void catalogEventPublishForStream(String platformId, List<GbStream> gbStreams, String type) {
|
| | | public void catalogEventPublishForStream(String platformId, GbStream[] gbStreams, String type) {
|
| | | CatalogEvent outEvent = new CatalogEvent(this);
|
| | | outEvent.setGbStreams(gbStreams);
|
| | | outEvent.setType(type);
|
| | |
| | |
|
| | | @Async
|
| | | public void catalogEventPublishForStream(String platformId, GbStream gbStream, String type) {
|
| | | List<GbStream> gbStreamList = new ArrayList<>();
|
| | | gbStreamList.add(gbStream);
|
| | | catalogEventPublishForStream(platformId, gbStreamList, type);
|
| | | GbStream[] gbStreams = {gbStream};
|
| | | catalogEventPublishForStream(platformId, gbStreams, type);
|
| | | }
|
| | | }
|