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

[feature request] screen capture after resume from sleep + controlling screen capture through command line #45

Open
Dinth opened this issue Dec 28, 2020 · 8 comments

Comments

@Dinth
Copy link

Dinth commented Dec 28, 2020

Hi. Just wanted to request a small feature - if the computer goes to sleep with Screen Capture enabled, it should also have Screen Capture enabled after resuming from sleep. Right now sleep disables screen capture (while the app is still running and in taskbar) and switching it back on is not always easy (especially with PCs controlled only with TV remote).
It would also be nice to control screen capture (stopping and starting) with command line - this way it could be easily hooked up to a TV remote.

@n0valis
Copy link

n0valis commented Apr 23, 2021

I have the same problem. Thes uggestion Dinth made does quite make sense. Is there a possibility that this is going to be implemented or most probably not?
Thanks.

@sabaatworld
Copy link
Owner

Does the API thing not work for you?

@Dinth
Copy link
Author

Dinth commented Apr 23, 2021

Does the API thing not work for you?

Hi @sabaatworld. Is there a way of triggering "Start Capture" in HyperionScreenCap client through API somehow? is there any documentation of that?

@sabaatworld
Copy link
Owner

Enable API support in it. It should let you start. I don't have documentation but you can look at the code to figure out how to use.

When I get a chance, I'll add some documentation regarding the same to the readme.

@Dinth
Copy link
Author

Dinth commented Jun 19, 2021

Hi. Im playing with the API at the moment but it doesnt seem it work. It is enabled on API port 9191. When i open http://:9191/API?command=ON&force=False im getting

Bad Request - Invalid Hostname
HTTP Error 400. The request hostname is invalid. 

error

[edit]
I have actually done some research and it seems that "hostname" should contain "*" for API to work

public void StartServer(string hostname, string port)
--
… |  
18 | if (_server == null)
19 | {
20 | _server = new RestServer
21 | {
22 | Host = hostname,


@sabaatworld
Copy link
Owner

I've released a new version today which should fix the issue. Let me know if it works for you.

@Dinth
Copy link
Author

Dinth commented Jan 8, 2022

Amazing, will test the new version this evening!

@papapep514
Copy link

Anyone have documentation of this API?

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

No branches or pull requests

4 participants