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

[#56] Enable screen wake lock #57

Merged
merged 3 commits into from
Apr 7, 2024
Merged

Conversation

mauriciofierrom
Copy link
Owner

Closes #56

Uses the Screen Wake Lock API where available to allow sections to be played without interruption.

Extract the screen lock code from the player controller into its own
class.
- On connection try to acquire the lock. The connection is performed via
  turbo streams which respond to a click, which seems to be enough to
  mark the user intent
- On disconnection we release the lock if it was acquired
@mauriciofierrom mauriciofierrom merged commit b282e8e into main Apr 7, 2024
1 check passed
@mauriciofierrom mauriciofierrom deleted the 56-enable-screen-wake-lock branch April 7, 2024 21:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Enable screen wake lock
1 participant