plex-media-player icon indicating copy to clipboard operation
plex-media-player copied to clipboard

PMP does not prompt for PIN on resume from sleep

Open perrottg opened this issue 8 years ago • 4 comments

PMP should prompt for PIN to be enter when it resumes from sleep as it does after the screen saver and reboot.

perrottg avatar Feb 20 '17 23:02 perrottg

@markus101 : any thoughts about this one ?

LongChair avatar Apr 10 '18 19:04 LongChair

@LongChair does the host have a way of detecting that the system is going to sleep or waking up from sleep? I think we'll need a signal from the host that the web app will use to lock the screen.

markus101 avatar May 01 '18 21:05 markus101

@markus101 : i don't think we have anything like this in the PowerComponentso far.

As far as i see it, we have two options :

  • Implement this with the OS specific mechnanism for OSX / win / Linux and add an interface to web client.
  • Wok this around generically with checking the system time in some sort of timer. I guess detecting a big jump in system time would probably allow to detect that host has been sleeping for a while. it's a bit more hackish but would be cross platform :)

LongChair avatar May 02 '18 04:05 LongChair

I think option one is the safest, most reliable way to accomplish this.

Option 2 has too many edge cases:

  • Momentary sleep, but woken up before threshold
  • A time change on the system (update from NTP after being out of sync for example) could lead it to be falsely locked
  • Daylight savings time, might not be an issue, but DST can be a pain

markus101 avatar May 07 '18 22:05 markus101