bluenviron / mediamtx

Ready-to-use SRT / WebRTC / RTSP / RTMP / LL-HLS media server and media proxy that allows to read, publish, proxy, record and playback video and audio streams.
MIT License
11.41k stars 1.45k forks source link

WEBRTC v0.23.0. error: webrtcICEHostNAT1To1IPs doesn't work if webrtcICEServers is empty #1817

Closed alpe12 closed 1 year ago

alpe12 commented 1 year ago

Which version are you using?

v0.23.0

Which operating system are you using?

Describe the issue

Ever since this update the WEBRTC stream stopped working. I open http://192.168.1.250:8889/cam/ and in the console:

requesting ICE servers
error: TypeError: links is null

Looking at the "networks" tab it constantly tries to access /cam/whep which return code 200 but with empty response. If i open /cam/whep directly I get 404.

Describe how to replicate the issue

mediamtx.yml docker-compose.yml

Did you attach the server logs?

here

Did you attach a network dump?

no

alpe12 commented 1 year ago

Update: If I add webrtcICEServers: [stun:stun.l.google.com:19302] it works. Before it worked with [] in it. I used to use [] on it because without it the server public IP was leaked to the client when it was not necessary (local client). Does the current implementation prevents it? If no, please make it work with [] as before, using only webrtcICEHostNAT1To1IPs: [192.168.1.250]

aler9 commented 1 year ago

Fixed in in v0.23.1

github-actions[bot] commented 9 months ago

This issue is being locked automatically because it has been closed for more than 6 months. Please open a new issue in case you encounter a similar problem.