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

Option to keep display on when fullscreen #4

Merged

Conversation

Silic0nS0ldier
Copy link
Contributor

This PR adds an argument keepDisplayOn to enterFullscreen.

  • On Android, the fullscreen activity will set the FLAG_KEEP_SCREEN_ON flag.
  • On iOS, the idle timer is disabled (UIApplication.shared.isIdleTimerDisabled = false)

The example app has been updated so that;

  • The "keep display on" behaviour can be toggled.
  • Individual videos can be more easily identified (previously it was a wall of black, save for the currently playing video).

Android has been tested (Pixel 8), iOS has not.

The intent behind this change is to keep the display on when viewing videos in fullscreen within the Bluesky mobile app.

@haileyok
Copy link
Collaborator

haileyok commented Oct 7, 2024

Thank you @Silic0nS0ldier! Going to get through this today, really appreciate you digging through here and getting this in 🙏

Copy link
Collaborator

@haileyok haileyok left a comment

Choose a reason for hiding this comment

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

This looks great! Thank you so much!

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.

2 participants