-
Notifications
You must be signed in to change notification settings - Fork 6k
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
Add support for automatic wake lock acquisition/release in SimpleExoPlayer #5846
Labels
Comments
Hi, I'd love to see something like, and/or at least some additional documentation in the documentation. Anyway, I can contribute to this? Currently, I am using the following solution for this. (This has not been extensively tested in the field).
And it can be consumed as follows.
|
ojw28
pushed a commit
that referenced
this issue
Oct 2, 2019
Created the WakeLockManager for use in SimpleExoPlayer. Added a setter in SimpleExoPlayer to adjust this functionality. Issue:#5846 PiperOrigin-RevId: 272176998
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
[REQUIRED] Use case description
Apps may need to acquire a wake lock when playing audio with the screen off (see #930 for details). For these use cases, it's possible for apps to acquire/release the wake lock themselves but generally will need to keep track of the player state to do this properly.
Proposed solution
Add support in
SimpleExoPlayer
for automatically acquiring/releasing a wake lock as needed based on player state.Alternatives considered
n/a
The text was updated successfully, but these errors were encountered: