From 04af6de363b8d420eb244e289817277ea2bcc5d4 Mon Sep 17 00:00:00 2001 From: panll Date: Sat, 17 Oct 2020 16:41:40 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=BB=98=E8=AE=A4=E5=8F=82?= =?UTF-8?q?=E6=95=B0=E4=B8=8EZLM=E7=BB=9F=E4=B8=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/genersoft/iot/vmp/media/zlm/ZLMUtils.java | 2 +- src/main/resources/application.yml | 14 +++++++------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/main/java/com/genersoft/iot/vmp/media/zlm/ZLMUtils.java b/src/main/java/com/genersoft/iot/vmp/media/zlm/ZLMUtils.java index dda16930..93e6a24d 100644 --- a/src/main/java/com/genersoft/iot/vmp/media/zlm/ZLMUtils.java +++ b/src/main/java/com/genersoft/iot/vmp/media/zlm/ZLMUtils.java @@ -26,7 +26,7 @@ public class ZLMUtils { Map param = new HashMap<>(); int newPort = getPortFromUdpPortRange(); param.put("port", newPort); - param.put("enable_tcp", 0); + param.put("enable_tcp", 1); param.put("stream_id", streamId); JSONObject jsonObject = zlmresTfulUtils.openRtpServer(param); if (jsonObject.getInteger("code") == 0) { diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml index f21076e6..9271ee28 100644 --- a/src/main/resources/application.yml +++ b/src/main/resources/application.yml @@ -7,17 +7,17 @@ spring: communicate: http redis: # Redis服务器IP - host: 192.168.1.141 + host: 127.0.0.1 #端口号 port: 6379 database: 6 #访问密码,若你的redis服务器没有设置密码,就不需要用密码去连接 - password: 4767cb971b40a1300fa09b7f87b09d1c + password: #超时时间 timeout: 10000 datasource: name: eiot - url: jdbc:mysql://192.168.1.141:3306/eiot?useUnicode=true&characterEncoding=UTF8&rewriteBatchedStatements=true + url: jdbc:mysql://127.0.0.1:3306/eiot?useUnicode=true&characterEncoding=UTF8&rewriteBatchedStatements=true username: password: type: com.alibaba.druid.pool.DruidDataSource @@ -25,7 +25,7 @@ spring: server: port: 18080 sip: - ip: 192.168.1.20 + ip: 192.168.1.44 port: 5060 # 根据国标6.1.2中规定,domain宜采用ID统一编码的前十位编码。国标附录D中定义前8位为中心编码(由省级、市级、区级、基层编号组成,参照GB/T 2260-2007) # 后两位为行业编码,定义参照附录D.3 @@ -40,12 +40,12 @@ auth: #32位小写md5加密(默认密码为admin) password: 21232f297a57a5a743894a0e4a801fc3 media: #zlm服务器的ip与http端口, 重点: 这是http端口 - ip: 192.168.1.20 - port: 9080 + ip: 192.168.1.44 + port: 80 secret: 035c73f7-bb6b-4889-a715-d9eb2d1925cc streamNoneReaderDelayMS: 1800000 # 无人观看多久自动关闭流 rtp: # 启用udp多端口模式 - enable: false + enable: true udpPortRange: 30000,300500 # 端口范围