-
Notifications
You must be signed in to change notification settings - Fork 103
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
RtspSession.update does not update _sessionControlURL #1077
Comments
Note: there are some up-and-coming major changes to this, so I suggest you have a look at the Re-use of the same stream for different sessions is supported, but not well-tested (usually we don't reuse a pipeline), so we welcome any fixes there. |
I'll have a look at the
Is there any reason why? As far as I can tell it should lead to a much snappier experience, no? |
Adds a URI option to the describe method in the RTSP session. If provided, it's used for that session instead of the URI that was provided to the constructor. The latter now only serves as default URI when none is provided to describe. On teardown, the session control URL is restored to the default. Fixes #1077
I've added a feature/fix for this in the linked PR, would that work for you?
When setting up a new session with a new URI is expensive already, so just starting a new pipeline isn't really problematic (that is why the URI was part of the constructor). The fix I added allows you to override that URI later on, and only treats the original as the default. However, you stated at the beginning that you want to seek to different times, you shouldn't need to change the URI? Note that |
Adds a URI option to the describe method in the RTSP session. If provided, it's used for that session instead of the URI that was provided to the constructor. The latter now only serves as default URI when none is provided to describe. On teardown, the session control URL is restored to the default. Fixes #1077
Describe the bug
I am trying to seek to different times without tearing down and setting up RTSP sessions, and instead reuse the existing one. In theory the RTSP protocol should allow this (as far as I know), and I can almost do it with this library. The problem is that calling
.update
onRtspSession
does not update_sessionControlURL
, which is what is used to send SDP commands.To Reproduce
just test
This outputs:
Environment:
Possible solution
I was able to reuse an RTSP session by doing something like this in my code:
I'm not 100% sure what
.update
should be used for since it's not used anywhere in this repo, but AFAIK this can be fixed by simply adding the following at the end of the.update
implementation:It's probably only safe to do this if the
_state = STATE.IDLE
though?I'm happy to work on a PR for this.
The text was updated successfully, but these errors were encountered: