###############################################
# MediaMTX Configuration File (Proxy Setup)   #
###############################################

# --- Global Settings ---
logLevel: info
logDestinations: [stdout]

# --- Network Listeners ---
# Disable any protocols you don't plan on using by setting them to "no"
rtsp: yes
rtspAddress: :8554
rtpAddress: :8000
rtcpAddress: :8001

rtmp: yes
rtmpAddress: :1935

hls: yes
hlsAddress: :8888
hlsAllowOrigin: 'http://192.168.1.140:3000'

webrtc: yes
webrtcAddress: :8889

srt: yes
srtAddress: :8890

# --- API & Web UI ---
# Set to 'yes' if you want to use the MediaMTX web control panel
api: no
apiAddress: :9997

metrics: no
metricsAddress: :9998

# --- Encryption (Optional) ---
protocols: [udp, multicast, tcp]
encryption: "no"

# --- Stream Proxy Paths ---
# This is where you define your camera feeds. 
# --- Stream Proxy Paths ---
paths:
  # Camera 1
  cam0:
    source: rtsp://192.168.1.143:8554/my_webcam
    sourceOnDemand: yes

  # Camera 2
  cam1:
    source: rtsp://192.168.1.136:8554/my_webcam
    sourceOnDemand: yes

  # Camera 3
  cam2:
    source: rtsp://192.168.1.132:8554/my_webcam
    sourceOnDemand: yes

  # Default fallback settings for any dynamically published streams
  all:
    readUser:
    readPass:
