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

Unwanted Prevent Sleep behavior when using media in BrowserWindow #16905

Open
karaggeorge opened this issue Feb 12, 2019 · 0 comments
Open

Unwanted Prevent Sleep behavior when using media in BrowserWindow #16905

karaggeorge opened this issue Feb 12, 2019 · 0 comments

Comments

@karaggeorge
Copy link

Is your feature request related to a problem? Please describe.
When having media like a video in a BrowserWindow, the app prevents the system from going to sleep (on MacOS, have not tested Windows), much like chrome does. If that is not the desired behavior, there would be nice to have an API control wether that should happen or not

Describe the solution you'd like
An API that can enable/disable the "prevent from going to sleep" behavior

Describe alternatives you've considered
A workaround we have found for now is pausing the media when the BrowserWindow is blurred

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants