-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[v1.11.2] - user session closed not detected anymore for webrtc stream #4204
Comments
Thanks for reporting the issue, i was able to reproduce it by using Firefox to read a stream, |
The bug is not introduced with #3899, it's pion/webrtc that sets the peer connection as "closed" without |
aler9
added a commit
that referenced
this issue
Jan 31, 2025
fixed by #4212 |
aler9
added a commit
that referenced
this issue
Jan 31, 2025
aler9
added a commit
that referenced
this issue
Feb 1, 2025
aler9
added a commit
that referenced
this issue
Feb 1, 2025
aler9
added a commit
that referenced
this issue
Feb 1, 2025
aler9
added a commit
that referenced
this issue
Feb 1, 2025
This issue is mentioned in release v1.11.3 🚀 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Which version are you using?
v1.11.2
Which operating system are you using?
Linux amd64 standard
Describe how to replicate the issue
We use mediamtx for webrtc clients with RTSP source and WHIP/WHEP session management.
With v1.9.3 when a user close a live stream, mediamtx detect session is closed and remove user from the room, then close RTSP stream (about 10 secondes after).
With v1.11.2, mediamtx don't detect session is closed so user is not removed from room and room is not closed.
This mean that stream still continue to play. (this is problematic as we use LTE network with limited data)
In v1.9.3 logs, we have thoses lines once live is stopped:
This never happen with v1.11.2.
In our application, we simply open a webrtc live stream, then close live about 2 seconds later.
(We don't use internal mediamtx player)
Server logs
Here are informations about rooms created (We use sourceOnDemand mode):
Here is an exemple of room informations:
{"name":"1319103529","confName":"1319103529","source":{"type":"rtspSource","id":""},"ready":true,"readyTime":"2025-01-27T11:38:13.356284827+01:00","tracks":["H264"],"bytesReceived":37978603,"bytesSent":75691255,"readers":[{"type":"webRTCSession","id":"27206dfc-a5c2-4848-8ba6-4d5e03fa9a90"},{"type":"webRTCSession","id":"4b32a69a-308e-43af-857d-b2dfe92589fc"}]}
Network dump
No response
The text was updated successfully, but these errors were encountered: