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

Run TURN_ON_SCREEN every time MEDIA_PLAY is issued #63

Open
Naticus opened this issue Mar 26, 2023 · 0 comments
Open

Run TURN_ON_SCREEN every time MEDIA_PLAY is issued #63

Naticus opened this issue Mar 26, 2023 · 0 comments

Comments

@Naticus
Copy link

Naticus commented Mar 26, 2023

This might be a strange request, but I'm trying to figure out a way to wake the screen every time I send the MEDIA_PLAY command is sent. The problem comes from how the screensaver gets interrupted the first time I try to resume playback and I have to tell it to resume a second time for the desired action. I'm not very good with Python, but I was trying to create something along these lines:

https://stackoverflow.com/questions/56824728/how-do-i-return-multiple-values-from-an-async-function-to-a-synchronous-context

I thought maybe I could modify this to, instead of urls, send first TURN_ON_SCREEN, followed by MEDIA_PLAY with a sleep in between. Any help or advice would be appreciated.

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

1 participant