spocky / miproja1

351 stars 10 forks source link

Idle detection activating even when playing video #65

Open kingp0dd opened 7 months ago

kingp0dd commented 7 months ago

Tested it with

Idle detection : on 1 minute countdown Screensaver

Playing a video with both Smarttubenext and Jellyfin, it still activates the screensaver when it reaches 1 minute

4.5.1 Google Chromecast latest version

spocky commented 7 months ago

That's unfortunately by design : Android doesn't offer a way for an app to detect globally if a video is currently playing on the device. The closest thing I could do is asking the AudioManager if audio is being played. It's on my todo list to experiment with that, at least to validate the feasibility, but that wouldn't totally respond to users expectations : if idle detection has been set to either trigger the screensaver or poweroff the device, this wouldn't work if music is playing in the background (e.g. Spotify...)

The way I'm using the idle detection at home :

kingp0dd commented 7 months ago

First off, very great work on this. What i really love is the Channel feature, it shows the content of all my apps in the home screen.

I get your point. I'd really love to see that audio idle detection. I'm setting a low idle time because of my OLED TV to prevent burn-in, or at least prolong it.

julien8686 commented 5 months ago

with oled tv, there are apps which put a black screen overlay ( so useless on LCD) but great for oled. to prevent burn in there are also screensavers which display some beautiful pictures.

kingp0dd commented 5 months ago

What do you recommend

On Fri, Jun 7, 2024, 5:36 PM julien8686 @.***> wrote:

with oled tv, there are apps which put a black screen overlay ( so useless on LCD) but great for oled. to prevent burn in there are also screensavers which display some beautiful pictures.

— Reply to this email directly, view it on GitHub https://github.com/spocky/miproja1/issues/65#issuecomment-2154469731, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACGD6KQH2MQMRHRG2IG4HALZGF5H7AVCNFSM6AAAAABI6KEP3GVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNJUGQ3DSNZTGE . You are receiving this because you authored the thread.Message ID: @.***>