jaruba / PowderPlayer

Hybrid between a Torrent Client and a Player (torrent streaming) -
https://powder.media/
GNU Lesser General Public License v2.1
584 stars 94 forks source link

[Nightly] screen turn off while watching #123

Closed roeycohen closed 7 years ago

roeycohen commented 7 years ago

hi @jaruba,

a friend of mine told me that while watching a video (on his pc monitor) his screen was turned off (because of power saving options).

he's using windows 10 with the annual upgrade.

maybe this can help: https://developer.chrome.com/apps/power

jaruba commented 7 years ago

Electron has an API for this too: powerSaveBlocker

Integration in Powder: https://github.com/jaruba/PowderPlayer/search?utf8=%E2%9C%93&q=powerSaveBlocker https://github.com/jaruba/PowderPlayer/search?utf8=%E2%9C%93&q=togglePowerSave&type=Code

It's very possible that I didn't integrate it correctly as it was added at the very beginning of the project and much has changed since then. I've also received the same issue for MacOS too: https://github.com/jaruba/PowderPlayer/issues/115

So I'm certain that something is going wrong with it.

I even worked on a hack (an alternative way of keeping the computer awake) for this sort of issue in the past: computer-sleep

That uses a very small video with no audio and injects it in the page (in the background), as HTML5 Video forces the OS to stay awake during playback.

roeycohen commented 7 years ago

how come you never noticed it yourself? :)

jaruba commented 7 years ago

I disabled screen power saving on the laptop and desktop :P

roeycohen commented 7 years ago

haha :) good thing we found this before going out to stable release.

middevonian commented 7 years ago

I am also seeing this behaviour with Powder Player 1.0.0 on a fully up-to-date Windows 10 PC.

Armenm commented 7 years ago

Please fix this ASAP. It is really annoying to watch a movie and move mouse all the time in order not to see black screen.

jaruba commented 7 years ago

Done, I fixed and tested it, it will be available in the next build of the nightly.

Armenm commented 7 years ago

Thanks @jaruba