支持海康摄像头国标录像查看播放
This commit is contained in:
@@ -89,7 +89,7 @@ public class ZLMRunner implements CommandLineRunner {
|
||||
});
|
||||
|
||||
// 获取zlm信息
|
||||
logger.info("[zlm接入]等待默认zlm中...");
|
||||
logger.info("[zlm] 等待默认zlm中...");
|
||||
|
||||
// 获取所有的zlm, 并开启主动连接
|
||||
List<MediaServerItem> all = mediaServerService.getAllFromDatabase();
|
||||
|
||||
@@ -39,8 +39,7 @@ public class ZLMStatusEventListener {
|
||||
@Async
|
||||
@EventListener
|
||||
public void onApplicationEvent(ZLMOnlineEvent event) {
|
||||
|
||||
logger.info("【ZLM上线】ID:" + event.getMediaServerId());
|
||||
logger.info("[ZLM] 上线 ID:" + event.getMediaServerId());
|
||||
streamPushService.zlmServerOnline(event.getMediaServerId());
|
||||
streamProxyService.zlmServerOnline(event.getMediaServerId());
|
||||
|
||||
@@ -50,7 +49,7 @@ public class ZLMStatusEventListener {
|
||||
@EventListener
|
||||
public void onApplicationEvent(ZLMOfflineEvent event) {
|
||||
|
||||
logger.info("ZLM离线事件触发,ID:" + event.getMediaServerId());
|
||||
logger.info("[ZLM] 离线,ID:" + event.getMediaServerId());
|
||||
// 处理ZLM离线
|
||||
mediaServerService.zlmServerOffline(event.getMediaServerId());
|
||||
streamProxyService.zlmServerOffline(event.getMediaServerId());
|
||||
|
||||
Reference in New Issue
Block a user