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:
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.
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.