From 72b437cc52e2907c9a66d6bda60acbffc736cdb8 Mon Sep 17 00:00:00 2001
From: BradyXu <brady_xu@outlook.com>
Date: 星期日, 12 五月 2024 02:15:41 +0800
Subject: [PATCH] 修复当上级平台点播时,上级平台和下级平台局域网不通时,导致推流失败。推流目标IP地址改为配置的SDP发流IP,如果SDP发流IP存在的话。否则还是从连接中获取推流目标IP

---
 src/main/java/com/genersoft/iot/vmp/vmanager/gb28181/play/bean/PlayResult.java |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/src/main/java/com/genersoft/iot/vmp/vmanager/gb28181/play/bean/PlayResult.java b/src/main/java/com/genersoft/iot/vmp/vmanager/gb28181/play/bean/PlayResult.java
old mode 100644
new mode 100755
index bfbf3eb..58d4ce2
--- a/src/main/java/com/genersoft/iot/vmp/vmanager/gb28181/play/bean/PlayResult.java
+++ b/src/main/java/com/genersoft/iot/vmp/vmanager/gb28181/play/bean/PlayResult.java
@@ -1,5 +1,6 @@
 package com.genersoft.iot.vmp.vmanager.gb28181.play.bean;
 
+import com.genersoft.iot.vmp.common.StreamInfo;
 import com.genersoft.iot.vmp.gb28181.bean.Device;
 import com.genersoft.iot.vmp.vmanager.bean.WVPResult;
 import org.springframework.http.ResponseEntity;
@@ -7,16 +8,16 @@
 
 public class PlayResult {
 
-    private DeferredResult<WVPResult<String>> result;
+    private DeferredResult<WVPResult<StreamInfo>> result;
     private String uuid;
 
     private Device device;
 
-    public DeferredResult<WVPResult<String>> getResult() {
+    public DeferredResult<WVPResult<StreamInfo>> getResult() {
         return result;
     }
 
-    public void setResult(DeferredResult<WVPResult<String>> result) {
+    public void setResult(DeferredResult<WVPResult<StreamInfo>> result) {
         this.result = result;
     }
 

--
Gitblit v1.8.0