Comments (7)
This might be better handled by adjusting the screen timeout on the device. I could see adding this feature causing more unexpected permission related issues. What is your screen timeout currently set at? I keep mine at 5 minutes.
from audiobookshelf-app.
1 minute on my phone and 5 minutes on my iPad. I don’t really want to just adjust the timeout device wide because in every other situation those are the timeouts I want.
I’m not sure about how permissions work, but wouldn’t the app just ask for whatever permission it needs when a user toggles setting? I know other apps are able to prevent screen locking while they’re open.
from audiobookshelf-app.
It looks like on android at least no permission is required to keep the screen on. I’m not sure about iOS.
from audiobookshelf-app.
I was going to raise the same issue - in any other reader I've used the screen timeout is disabled (it's often a preference flag) - would like to see the same here. Having to remember to push the screen halfway through a page is annoying.
Like @samkottler I don't wish to manually adjust my system systems each time - that is not effortless UX
from audiobookshelf-app.
@citizenxnz Can you share some mobile apps that have this setting so I can check them out?
The Kindle app on Android doesn't have this setting as far as I can find
from audiobookshelf-app.
The Libby app on android doesn’t allow it to be configured, but does keep the screen on while in the ebook reader.
from audiobookshelf-app.
I'm not an android developer, but hopefully some of these links will help
- https://stackoverflow.com/questions/3723634/how-do-i-prevent-an-android-device-from-going-to-sleep-programmatically
- https://developer.mozilla.org/en-US/docs/Web/API/WakeLock
- https://developer.mozilla.org/en-US/docs/Web/API/Screen_Wake_Lock_API
- https://developer.chrome.com/docs/capabilities/web-apis/wake-lock
- https://github.com/mealie-recipes/mealie/blob/f1b53483da50ca73e16314998c501d8707f54ecb/frontend/components/Domain/Recipe/RecipePage/RecipePage.vue#L197-L229 -> mealie is a webapp and does it automatically when a recipe is opened (it also doesn't require configuration - it just happens automatically which is nice)
- https://github.com/mealie-recipes/mealie/pull/1006/files ^ pull request from the above change
- https://vueuse.org/core/useWakeLock/
I've also noticed that Moon+ Reader Pro automatically keeps the screen awake when I read ebooks without the need to change any settings which would be a nice UX to see on the Audiobookshelf app. IMO ABS app should automatically enable this for ebooks, but I don't think audiobooks would benefit from this.
Perhaps the change needs to be done somewhere in components/readers or in whatever page that opens the reader?
from audiobookshelf-app.
Related Issues (20)
- [Bug]: Android: Switching user issues HOT 2
- [Enhancement]: "Clips" feature for settings bookmarks and adding notes
- [Enhancement]: to speed up the start of playback HOT 2
- [Enhancement]: "What's New" pop-up
- [Bug]: Can't download audiobooks HOT 1
- [Bug]: Cast Playrate Wrong HOT 2
- [Enhancement]: Continue Playing Audiobook When Casting
- [Enhancement]: Swipe-to-refresh in main tabs
- [Enhancement]: Auto-duck currently playing media when notification is received HOT 1
- [Enhancement]: Car mode HOT 5
- [Enhancement]: Pause, and alert, on muted volume
- [Bug]: Intermittent listening session sync issues HOT 2
- [Enhancement]: Allow streaming podcasts directly from source to the app, without downloading to server HOT 2
- [Enhancement]: Bookshelf loading indicators as toast notifications
- [Enhancement]: Better control over what information is displayed on Bluetooth screen
- [Bug]: Seek times are too short HOT 1
- [Bug]: Autosleep timer engaging outside of set time. HOT 3
- [Enhancement]: Shake to rewind HOT 7
- [Enhancement]: Change "Lock Player" behaviour HOT 8
- [Bug]: Cannot open downloaded epub files HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from audiobookshelf-app.