HLS Player
HLS streaming works in all modern browsers but has higher latency (~3-10 seconds).
Test your MediaMTX streaming server
WebRTC provides the lowest latency streaming. Enter your stream name below.
Note: This requires proper Nginx proxy configuration for /webrtc/ path.
HLS streaming works in all modern browsers but has higher latency (~3-10 seconds).
For this test page to work, your Nginx must proxy these paths:
location /webrtc/ {
proxy_pass http://mediamtx:8889/;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
}
location /hls/ {
proxy_pass http://mediamtx:8888/;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
add_header Cache-Control no-cache;
add_header Access-Control-Allow-Origin *;
}
MediaMTX Direct Endpoints:
rtsp://your-server:8554/stream-namertmp://your-server:1935/stream-namehttp://your-server:8888/stream-namehttp://your-server:8889/stream-namesrt://your-server:8890Using OBS Studio:
rtmp://your-server:1935your-stream-nameUsing FFmpeg:
ffmpeg -re -i input.mp4 -c copy -f flv rtmp://your-server:1935/mystreamffmpeg -re -i input.mp4 -c copy -f rtsp rtsp://your-server:8554/mystreamdocker logs mediamtxdocker logs mediamtx_nginx