From 7c019dbeef4ee1f79bd09d87abf18112b4ffc376 Mon Sep 17 00:00:00 2001
From: 刘跃龙 <yjkhtddx@sina.com>
Date: 星期四, 16 二月 2023 18:18:10 +0800
Subject: [PATCH] RTP推流地址应使用SDP中Connection中的IP地址,原来使用Origin中的IP地址,在流媒体服务和信令服务不在同一台设备上时,媒体流数据将发给信令服务器,导致无法播放BUG。

---
 src/main/java/com/genersoft/iot/vmp/media/zlm/ZLMServerConfig.java |   19 +++++++++++++++----
 1 files changed, 15 insertions(+), 4 deletions(-)

diff --git a/src/main/java/com/genersoft/iot/vmp/media/zlm/ZLMServerConfig.java b/src/main/java/com/genersoft/iot/vmp/media/zlm/ZLMServerConfig.java
index 7e3da46..fcf2401 100644
--- a/src/main/java/com/genersoft/iot/vmp/media/zlm/ZLMServerConfig.java
+++ b/src/main/java/com/genersoft/iot/vmp/media/zlm/ZLMServerConfig.java
@@ -1,6 +1,6 @@
 package com.genersoft.iot.vmp.media.zlm;
 
-import com.alibaba.fastjson.annotation.JSONField;
+import com.alibaba.fastjson2.annotation.JSONField;
 
 public class ZLMServerConfig {
 
@@ -66,7 +66,7 @@
     private String hookAdminParams;
 
     @JSONField(name = "hook.alive_interval")
-    private int hookAliveInterval;
+    private Float hookAliveInterval;
 
     @JSONField(name = "hook.enable")
     private String hookEnable;
@@ -193,6 +193,9 @@
 
     @JSONField(name = "rtp_proxy.port")
     private int rtpProxyPort;
+
+    @JSONField(name = "rtp_proxy.port_range")
+    private String portRange;
 
     @JSONField(name = "rtp_proxy.timeoutSec")
     private String rtpProxyTimeoutSec;
@@ -795,11 +798,19 @@
         this.shellPhell = shellPhell;
     }
 
-    public int getHookAliveInterval() {
+    public Float getHookAliveInterval() {
         return hookAliveInterval;
     }
 
-    public void setHookAliveInterval(int hookAliveInterval) {
+    public void setHookAliveInterval(Float hookAliveInterval) {
         this.hookAliveInterval = hookAliveInterval;
     }
+
+    public String getPortRange() {
+        return portRange;
+    }
+
+    public void setPortRange(String portRange) {
+        this.portRange = portRange;
+    }
 }

--
Gitblit v1.8.0