Browse Source

docker镜像使用自动生成的配置文件,修复#166

pull/174/head
648540858 3 years ago
parent
commit
715c7d2724
  1. 1
      DOCKERFILE
  2. 10
      src/main/java/com/genersoft/iot/vmp/conf/MediaConfig.java

1
DOCKERFILE

@ -68,6 +68,7 @@ RUN mkdir -p /opt/media && \
cd build && \
cmake -DCMAKE_BUILD_TYPE=Release .. && \
make -j4 && \
rm -rf ../release/linux/Release/config.ini && \
cp -r ../release/linux/Release/* /opt/media && \
mkdir -p /opt/media/www/record

10
src/main/java/com/genersoft/iot/vmp/conf/MediaConfig.java

@ -93,8 +93,12 @@ public class MediaConfig{
}
public String getSipIp() {
if (sipIp == null) {
return this.ip;
}else {
return sipIp;
}
}
public int getHttpPort() {
return httpPort;
@ -183,13 +187,13 @@ public class MediaConfig{
mediaServerItem.setIp(ip);
mediaServerItem.setDefaultServer(true);
mediaServerItem.setHookIp(getHookIp());
mediaServerItem.setSdpIp(sdpIp);
mediaServerItem.setStreamIp(streamIp);
mediaServerItem.setSdpIp(getSdpIp());
mediaServerItem.setStreamIp(getStreamIp());
mediaServerItem.setHttpPort(httpPort);
mediaServerItem.setHttpSSlPort(httpSSlPort);
mediaServerItem.setRtmpPort(rtmpPort);
mediaServerItem.setRtmpSSlPort(rtmpSSlPort);
mediaServerItem.setRtpProxyPort(rtpProxyPort);
mediaServerItem.setRtpProxyPort(getRtpProxyPort());
mediaServerItem.setRtspPort(rtspPort);
mediaServerItem.setRtspSSLPort(rtspSSLPort);
mediaServerItem.setAutoConfig(autoConfig);

Loading…
Cancel
Save