From 208e03482281f2b901d507b1f890aa01ea6f8456 Mon Sep 17 00:00:00 2001
From: wangxinlong <wangxinlong@jiangyuetech.com>
Date: 星期五, 07 六月 2024 18:13:45 +0800
Subject: [PATCH] 录像下载失败未正常释放ssrc

---
 src/main/java/com/genersoft/iot/vmp/conf/WVPTimerTask.java |   11 ++---------
 1 files changed, 2 insertions(+), 9 deletions(-)

diff --git a/src/main/java/com/genersoft/iot/vmp/conf/WVPTimerTask.java b/src/main/java/com/genersoft/iot/vmp/conf/WVPTimerTask.java
index 3e72e29..c586255 100644
--- a/src/main/java/com/genersoft/iot/vmp/conf/WVPTimerTask.java
+++ b/src/main/java/com/genersoft/iot/vmp/conf/WVPTimerTask.java
@@ -1,7 +1,6 @@
 package com.genersoft.iot.vmp.conf;
 
-import com.alibaba.fastjson.JSONObject;
-import com.genersoft.iot.vmp.service.IMediaServerService;
+import com.alibaba.fastjson2.JSONObject;
 import com.genersoft.iot.vmp.storager.IRedisCatchStorage;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.beans.factory.annotation.Value;
@@ -14,12 +13,6 @@
     @Autowired
     private IRedisCatchStorage redisCatchStorage;
 
-    @Autowired
-    private IMediaServerService mediaServerService;
-
-    @Autowired
-    private UserSetup userSetup;
-
     @Value("${server.port}")
     private int serverPort;
 
@@ -31,6 +24,6 @@
         JSONObject jsonObject = new JSONObject();
         jsonObject.put("ip", sipConfig.getIp());
         jsonObject.put("port", serverPort);
-        redisCatchStorage.updateWVPInfo(userSetup.getServerId(), jsonObject, 3);
+        redisCatchStorage.updateWVPInfo(jsonObject, 3);
     }
 }

--
Gitblit v1.8.0