From ad93be12fb3705e995cf0dab933760edaef3dd7a Mon Sep 17 00:00:00 2001
From: 64850858 <648540858@qq.com>
Date: 星期二, 01 六月 2021 17:05:07 +0800
Subject: [PATCH] 添加云端录像功能

---
 src/main/java/com/genersoft/iot/vmp/vmanager/server/ServerController.java |   18 ++++++++++++++++++
 1 files changed, 18 insertions(+), 0 deletions(-)

diff --git a/src/main/java/com/genersoft/iot/vmp/vmanager/server/ServerController.java b/src/main/java/com/genersoft/iot/vmp/vmanager/server/ServerController.java
index 1f34fe5..6c8ba2b 100644
--- a/src/main/java/com/genersoft/iot/vmp/vmanager/server/ServerController.java
+++ b/src/main/java/com/genersoft/iot/vmp/vmanager/server/ServerController.java
@@ -1,6 +1,9 @@
 package com.genersoft.iot.vmp.vmanager.server;
 
 import com.genersoft.iot.vmp.VManageBootstrap;
+import com.genersoft.iot.vmp.media.zlm.ZLMServerConfig;
+import com.genersoft.iot.vmp.storager.IRedisCatchStorage;
+import com.genersoft.iot.vmp.storager.impl.RedisCatchStorageImpl;
 import com.genersoft.iot.vmp.utils.SpringBeanFactory;
 import gov.nist.javax.sip.SipStackImpl;
 import io.swagger.annotations.Api;
@@ -12,6 +15,7 @@
 import javax.sip.ListeningPoint;
 import javax.sip.ObjectInUseException;
 import javax.sip.SipProvider;
+import java.util.ArrayList;
 import java.util.Iterator;
 
 @SuppressWarnings("rawtypes")
@@ -24,6 +28,20 @@
     @Autowired
     private ConfigurableApplicationContext context;
 
+    @Autowired
+    private IRedisCatchStorage redisCatchStorage;
+
+
+    @ApiOperation("娴佸獟浣撴湇鍔″垪琛�")
+    @GetMapping(value = "/media_server/list")
+    @ResponseBody
+    public Object getMediaServerList(){
+        // TODO 涓哄悗缁涓獄lm鏀寔鍑嗗
+        ZLMServerConfig mediaInfo = redisCatchStorage.getMediaInfo();
+        ArrayList<ZLMServerConfig> result = new ArrayList<>();
+        result.add(mediaInfo);
+        return result;
+    }
 
     @ApiOperation("閲嶅惎鏈嶅姟")
     @GetMapping(value = "/restart")

--
Gitblit v1.8.0