‘liusuyi’
2023-10-24 5addedcb92fcd56239825f301502aabbeaf5e325
server/mediamtx/mediamtx.yml
@@ -44,7 +44,7 @@
# Enable the HTTP API.
api: yes
# Address of the API listener.
apiAddress: 192.168.5.229:9997
apiAddress: 127.0.0.1:9997
# Enable Prometheus-compatible metrics.
metrics: no
@@ -215,7 +215,7 @@
  # needed when server and clients are on different LANs.
  # TURN/TURNS servers are needed when a direct connection between server and
  # clients is not possible. All traffic is routed through them.
- url: stun:112.98.126.2:3478
- url: stun:127.0.0.1:3478
  # if user is "AUTH_SECRET", then authentication is secret based.
  # the secret must be inserted into the password field.
  username: 'admin'
@@ -225,23 +225,23 @@
webrtcICEInterfaces: []
# List of public IP addresses that are to be used as a host.
# This is used typically for servers that are behind 1:1 D-NAT.
webrtcICEHostNAT1To1IPs: [112.98.126.2]
webrtcICEHostNAT1To1IPs: [127.0.0.1]
# Address of a ICE UDP listener in format host:port.
# If filled, ICE traffic will pass through a single UDP port,
# allowing the deployment of the server inside a container or behind a NAT.
webrtcICEUDPMuxAddress: 192.168.5.229:1234
webrtcICEUDPMuxAddress:
# Address of a ICE TCP listener in format host:port.
# If filled, ICE traffic will pass through a single TCP port,
# allowing the deployment of the server inside a container or behind a NAT.
# Using this setting forces usage of the TCP protocol, which is not
# optimal for WebRTC.
webrtcICETCPMuxAddress: 192.168.5.229:1234
webrtcICETCPMuxAddress: 127.0.0.1:1234
###############################################
# Global settings -> SRT
# Allow publishing and reading streams with the SRT protocol.
srt: no
srt: yes
# Address of the SRT listener.
srtAddress: :8890