-
Notifications
You must be signed in to change notification settings - Fork 0
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
Added option to completely skip RTSP Discovery in autodiscover() #47
Changes from 2 commits
01f08aa
c95bc22
cd8f87f
d59cfa5
7123383
e9e6528
2f201c6
cb0be80
18f917f
681a459
dacd382
d68f9fa
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,7 +23,7 @@ | |
@click.option( | ||
"--rtsp_discover_modes", | ||
type=click.Choice(PREVIEW_RTSP_COMMAND_CHOICES, case_sensitive=False), | ||
default="light", | ||
default="disable", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Nit, but 'disable' is a weird choice for the default. 'disable' implies the default should be to search for rtsp urls and we're going out of our way to turn it off. 'off' or 'none' would make more sense to me There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yea I agree, |
||
show_default=True, | ||
) | ||
def autodiscover(preview: str, rtsp_discover_modes: str = "light"): | ||
|
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.
Might be better to set it to disable since we don't want to guess passwords by default.
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 we do want to guess passwords in
autodiscover
. Without the password, we cannot connect to the grabber, which is the point of theautodiscover
, right? I guess there is the question of how thorough we are with our password guessing; maybe that should be an option?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.
Yea, the mode
light
should be alright but other modes such ascomplete_fast
andcomplete_slow
may cause you to exceed the number of attempts before the camera blocks you.