From ca103731c721aae3f5f622e58c679ed5c09fd9e9 Mon Sep 17 00:00:00 2001 From: Kairlec <sunfokairlec@gmail.com> Date: 星期一, 15 五月 2023 16:26:37 +0800 Subject: [PATCH] fix response `content-type` is not set if access without access token --- src/main/java/com/genersoft/iot/vmp/media/zlm/event/ZLMStatusEventListener.java | 11 +++++------ 1 files changed, 5 insertions(+), 6 deletions(-) diff --git a/src/main/java/com/genersoft/iot/vmp/media/zlm/event/ZLMStatusEventListener.java b/src/main/java/com/genersoft/iot/vmp/media/zlm/event/ZLMStatusEventListener.java index b193add..bad8e56 100644 --- a/src/main/java/com/genersoft/iot/vmp/media/zlm/event/ZLMStatusEventListener.java +++ b/src/main/java/com/genersoft/iot/vmp/media/zlm/event/ZLMStatusEventListener.java @@ -36,21 +36,20 @@ @Autowired private IPlayService playService; - @Async + @Async("taskExecutor") @EventListener public void onApplicationEvent(ZLMOnlineEvent event) { - - logger.info("銆怹LM涓婄嚎銆慖D锛�" + event.getMediaServerId()); + logger.info("[ZLM] 涓婄嚎 ID锛�" + event.getMediaServerId()); streamPushService.zlmServerOnline(event.getMediaServerId()); streamProxyService.zlmServerOnline(event.getMediaServerId()); - + playService.zlmServerOnline(event.getMediaServerId()); } - @Async + @Async("taskExecutor") @EventListener public void onApplicationEvent(ZLMOfflineEvent event) { - logger.info("ZLM绂荤嚎浜嬩欢瑙﹀彂锛孖D锛�" + event.getMediaServerId()); + logger.info("[ZLM] 绂荤嚎锛孖D锛�" + event.getMediaServerId()); // 澶勭悊ZLM绂荤嚎 mediaServerService.zlmServerOffline(event.getMediaServerId()); streamProxyService.zlmServerOffline(event.getMediaServerId()); -- Gitblit v1.8.0