Skip to content
This repository was archived by the owner on May 23, 2025. It is now read-only.

Prevent device from dimming or sleeping screen while video/audio playing (but really)#4168

Merged
connyduck merged 3 commits intotuskyapp:developfrom
mcclure:exoplayer-awake-naive
Dec 13, 2023
Merged

Prevent device from dimming or sleeping screen while video/audio playing (but really)#4168
connyduck merged 3 commits intotuskyapp:developfrom
mcclure:exoplayer-awake-naive

Conversation

@mcclure
Copy link
Copy Markdown
Collaborator

@mcclure mcclure commented Dec 12, 2023

For reasons not totally clear to me, Github marked #4160 as "merged" and will not let me reopen it.

I believe this should be included for 24.1 because it fixes a 24.0 regression in the media player.

I have tested this newest commit in a number of ways, and in my testing I find (1) when viewing an image, it sleeps after about a minute (2) when viewing video, it stays awake indefinitely (3) this is true whether the image/video was opened directly, or reached by swiping from another attachment. I have not tested swiping to/from audio but I am confident it will work the same.

Copy link
Copy Markdown
Collaborator

@charlag charlag left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

will these flags be reset when we leave the activity?

@connyduck
Copy link
Copy Markdown
Collaborator

will these flags be reset when we leave the activity?

Yes each activity has their own window

@connyduck connyduck merged commit 331b136 into tuskyapp:develop Dec 13, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants