Skip to content

Inconsistent RTSP session IDs #3357

Answered by aler9
jesuscampos asked this question in Questions
Discussion options

You must be logged in to vote

Hello,

are there two different session concepts that I am mixing up?

Is there a specific configuration or code adjustment needed to ensure the consistency of session IDs between the session used in the protocol and the one used in MediaMTX?

Exactly, there are two different session concepts. The value you are seeing in the RTSP Session header is not the session ID, but the session secret - that's a private value that is never publicized because it might allow someone to steal the session from another user. We won't make it public.

An alternative solution which might fix your problem consist into adding an additional field called "ID" to RTSP responses, in order to allow matching public…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by jesuscampos
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants