class MediaServerStatusEventListener {
	
	private final static Logger logger = LoggerFactory.getLogger(MediaServerStatusEventListener.class);

	@Autowired
	private IStreamPushService streamPushService;

	@Autowired
	private IStreamProxyService streamProxyService;

	@Autowired
	private IPlayService playService;

	@Async("taskExecutor")
	@EventListener
	public void onApplicationEvent(MediaServerOnlineEvent event) {
		logger.info("[媒体节点] 上线 ID：" + event.getMediaServerId());
		streamPushService.zlmServerOnline(event.getMediaServerId());
		streamProxyService.zlmServerOnline(event.getMediaServerId());
		playService.zlmServerOnline(event.getMediaServerId());
	}

	@Async("taskExecutor")
	@EventListener
	public void onApplicationEvent(MediaServerOfflineEvent event) {<FILL_FUNCTION_BODY>}
}


		logger.info("[媒体节点] 离线，ID：" + event.getMediaServerId());
		// 处理ZLM离线
		streamProxyService.zlmServerOffline(event.getMediaServerId());
		streamPushService.zlmServerOffline(event.getMediaServerId());
		playService.zlmServerOffline(event.getMediaServerId());
	
<no_super_class>