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

Request: Query available screens #7

Open
xkns opened this issue Mar 31, 2021 · 1 comment
Open

Request: Query available screens #7

xkns opened this issue Mar 31, 2021 · 1 comment

Comments

@xkns
Copy link

xkns commented Mar 31, 2021

It would we great if it was possible to know what screens are available without going through each ID starting at 0 until the constructor fails.

In the simplest case having a way to get a number i with j ∈ 0..=i for which it wouldn't be pointless to call Capturer::new(j).

This would for example be used in a screenshot utility program to let the user pick from a list of available screens before doing any real work.

Some more metadata to go along with that would also be great but I would see that as a bonus. E.g.:

  • Screen resolution
  • Screen display name / adapter name

Thanks for your time and work on this project.

@bryal
Copy link
Owner

bryal commented Apr 8, 2021

That would definitely be useful. I may look into adding it at some point, but I'll gladly accept any PRs before then :)

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

No branches or pull requests

2 participants