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
10.88k
stars
1.41k
forks
source link
Failed to construct 'RTCPeerConnection': Cannot create so many PeerConnections, retrying in some seconds #3123
After a disconnection and reconnection of a stream (SDP through ffmpeg), MediaMTX crashes and we see the error "Failed to construct 'RTCPeerConnection': Cannot create so many PeerConnections, retrying in some seconds" in the browser page.
Describe how to replicate the issue
Start the server
Publish with SDP files over ffmpeg and check that it works. Stop the SDP streaming for 1h but leave MediaMTX on.
Re-enable the SDP streams and the webpage with the streams does not reconnect and displays the error "Failed to construct 'RTCPeerConnection': Cannot create so many PeerConnections, retrying in some seconds" and it does not recover.
Which version are you using?
v1.5.1
Which operating system are you using?
Describe the issue
After a disconnection and reconnection of a stream (SDP through ffmpeg), MediaMTX crashes and we see the error "Failed to construct 'RTCPeerConnection': Cannot create so many PeerConnections, retrying in some seconds" in the browser page.
Describe how to replicate the issue
Did you attach the server logs?
no
Did you attach a network dump?
no
Example snippet from mediamtx.yml
Contents of the
MY-CAMERA.sdp
file: