-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Making the timeout parameters for streaming plugin for RTSP play out configurable #2598
Making the timeout parameters for streaming plugin for RTSP play out configurable #2598
Conversation
…ection/communication timeout, no media timeout and reconnection delay.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your contribution! I added some comments below.
The code needs fixing too: the automated build failed here,
which probably means you're not using |
Yes, you right, I forget to compile this thing without curl. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the quick fixes! I added a couple on notes inline, that are just related to style though, so nothing important. I plan to make some tests with my RTSP camera later today to see if I notice regressions or all still works 👍
# Connection timeout for cURL call gathering the RTSP information. | ||
# | ||
# Default value is 5 seconds. | ||
# rtsp_conn_timeout = 5 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the stuff you added to the rtsp-test
sample can be removed, as it's already documented on top.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
S***. I've added a wrong config file earlier and I lost in that changes. I've fixed it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No problem! 😄 Thanks for the quick fixes!
Works for me, merging, thanks again! 👍 |
I found that, the media server which serve stream on RTSP is a little bit buggy and can't possible to change the session timeout for the audio/video stream the connection checking waits too much time. And the timeouts for cURL was also hardcoded. This patch makes this values configurable by both the config file and the controller API.