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

Support for stream change announcements from server side #56

Open
zonque opened this issue Jul 9, 2021 · 1 comment
Open

Support for stream change announcements from server side #56

zonque opened this issue Jul 9, 2021 · 1 comment
Labels
enhancement New feature or request

Comments

@zonque
Copy link
Contributor

zonque commented Jul 9, 2021

Is there a way to react to server stream changes?

Quoting RFC2326, section 9

Unlike HTTP, RTSP allows the media server to send requests to the
media client. However, this is only supported for persistent
connections, as the media server otherwise has no reliable way of
reaching the client. Also, this is the only way that requests from
media server to client are likely to traverse firewalls.

The RTSP server I've tried do in fact support that, but I see no way to dispatch such updates in the client. Worse yet, with persistent connections and periodic invocations of Describe() I'm currently getting ERR: expected 'RTSP/1.0', got 'ANNOUNCE' when the server actually did notify the client on a change.

The only option I currently see is to periodically poll Describe() and close the connection after each run, which is a bit nasty. Is there a better way I'm not aware of?

@aler9
Copy link
Member

aler9 commented Aug 7, 2021

Hello, you're right, this is a missing feature that can be added in the future. The only server->client request that i was aware of was REDIRECT, but you rightly pointed out that also ANNOUNCE can be sent in this direction.

@aler9 aler9 added the enhancement New feature or request label Aug 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants