修改默认参数与ZLM统一
parent
b559b73be4
commit
04af6de363
|
@ -26,7 +26,7 @@ public class ZLMUtils {
|
|||
Map<String, Object> 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) {
|
||||
|
|
|
@ -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 # 端口范围
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue