代码优化
parent
1fe9569af2
commit
cdcb116aa2
|
@ -163,6 +163,7 @@ public class ZLMRESTfulUtils {
|
|||
param.put("type", 1);
|
||||
param.put("app", "rtp");
|
||||
param.put("stream", stream);
|
||||
param.put("vhost", "__defaultVhost__");
|
||||
return sendPost(mediaServerIp, "startRecord", param);
|
||||
}
|
||||
|
||||
|
@ -178,6 +179,7 @@ public class ZLMRESTfulUtils {
|
|||
param.put("type", 1);
|
||||
param.put("app", "rtp");
|
||||
param.put("stream", stream);
|
||||
param.put("vhost", "__defaultVhost__");
|
||||
return sendPost(mediaServerIp, "stopRecord", param);
|
||||
}
|
||||
|
||||
|
|
|
@ -8,7 +8,7 @@ spring:
|
|||
# [可选] 数据库 DB
|
||||
database: 6
|
||||
# [可选] 访问密码,若你的redis服务器没有设置密码,就不需要用密码去连接
|
||||
password: 111111
|
||||
password:
|
||||
# [可选] 超时时间
|
||||
timeout: 10000
|
||||
poolMaxTotal: 1000
|
||||
|
@ -38,7 +38,7 @@ server:
|
|||
# 作为28181服务器的配置
|
||||
sip:
|
||||
# [必须修改] 本机的内网IP, 必须是网卡上的IP
|
||||
ip: 192.168.1.105
|
||||
ip: 192.168.0.100
|
||||
# [可选] 28181服务监听的端口
|
||||
port: 5060
|
||||
# 根据国标6.1.2中规定,domain宜采用ID统一编码的前十位编码。国标附录D中定义前8位为中心编码(由省级、市级、区级、基层编号组成,参照GB/T 2260-2007)
|
||||
|
@ -61,7 +61,7 @@ auth:
|
|||
#zlm服务器配置
|
||||
media:
|
||||
# [必须修改] zlm服务器的IP(内网公网IP均可),配置多台时IP用逗号隔开
|
||||
ip: 192.168.1.105
|
||||
ip: 192.168.0.100
|
||||
# [可选] zlm服务器的公网IP, 内网部署置空即可
|
||||
wanIp:
|
||||
# [可选] zlm服务器的hook所使用的IP, 默认使用sip.ip
|
||||
|
|
Loading…
Reference in New Issue