Skip to content
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

RTSP conn API should also have path property, like RTMP does #3974

Closed
terion-name opened this issue Nov 23, 2024 · 3 comments
Closed

RTSP conn API should also have path property, like RTMP does #3974

terion-name opened this issue Nov 23, 2024 · 3 comments

Comments

@terion-name
Copy link

Describe the feature

RTMP:
https://bluenviron.github.io/mediamtx/#operation/rtmpConnectionsGet

{
  "id": "string",
  "created": "string",
  "remoteAddr": "string",
  "state": "idle",
  "path": "string",
  "query": "string",
  "bytesReceived": 0,
  "bytesSent": 0
}

RTSP:
https://bluenviron.github.io/mediamtx/#operation/rtspConnsGet

{
  "id": "string",
  "created": "string",
  "remoteAddr": "string",
  "bytesReceived": 0,
  "bytesSent": 0
}

Absence of state, path, query fields makes rtsp api literally useless

@aler9
Copy link
Member

aler9 commented Nov 24, 2024

You are confusing RTSP connections with RTSP sessions.
A RTSP connection is used to initialize a RTSP session.
A RTSP session can be controlled by multiple RTSP connections.
The RTSP session is associated with a path and has all the fields you need.

@aler9 aler9 closed this as not planned Won't fix, can't repro, duplicate, stale Nov 24, 2024
@terion-name
Copy link
Author

oh... sorry, confused because rtmp api uses connections

@terion-name
Copy link
Author

@aler9 but it dosn't help in reallity.
in runOnConnect hook I get rtsp connection id. and with current apis I have no way to get session associated with this connection

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants