Originally created by @pickles4evaaaa on GitHub (Jan 22, 2025).
Describe the Feature/Enhancement
I see that the Android app has this feature but iOS does not.
Basically: If you pause your book for more than 10 minutes and then resume play, the playback will rewind 10-30 seconds.
Why would this be helpful?
The listener is able to get a quick recap of where they are at in the book after they have been paused for more than 10 minutes.
Future Implementation (Screenshot)
The app "Bound" on iOS has this feature
Audiobookshelf App Version
iOS App - 0.9.78
Current Implementation (Screenshot)
No response
Originally created by @pickles4evaaaa on GitHub (Jan 22, 2025).
### Describe the Feature/Enhancement
I see that the Android app has this feature but iOS does not.
Basically: If you pause your book for more than 10 minutes and then resume play, the playback will rewind 10-30 seconds.
### Why would this be helpful?
The listener is able to get a quick recap of where they are at in the book after they have been paused for more than 10 minutes.
### Future Implementation (Screenshot)
The app "Bound" on iOS has this feature
### Audiobookshelf App Version
iOS App - 0.9.78
### Current Implementation (Screenshot)
_No response_
Issue: The function timeSinceLastPlayed returns a negative time interval, but the related function timeToSeekBackForSinceLastPlayed expects a positive number.
staticinternalfunctimeSinceLastPlayed(_lastPlayedMs:Double?)->TimeInterval?{guardletlastPlayedMs=lastPlayedMselse{returnnil}letlastPlayed=Date(timeIntervalSince1970:lastPlayedMs/1000)// Return a positive elapsed time.returnDate().timeIntervalSince(lastPlayed)}
Lastly the code for disabling the feature is mostly completed, but the setting isn't enabled in the iOS GUI build, and the settings variable isn't use.
Not sure if there is more history to this. But I'll submit a PR soon.
I'll submit a PR for this
@complacentsee commented on GitHub (Mar 10, 2025):
The code for this functionality is largely implemented on iOS and has been in place for some time. However, a bug has been identified in the function.
## Description
- **Location:** The bug is in the [PlayerTimeUtils.swift](https://github.com/advplyr/audiobookshelf-app/blob/master/ios/App/Shared/player/util/PlayerTimeUtils.swift) file.
- **Issue:** The function `timeSinceLastPlayed` returns a negative time interval, but the related function `timeToSeekBackForSinceLastPlayed` expects a positive number.
## Original Code
```swift
static internal func timeSinceLastPlayed(_ lastPlayedMs: Double?) -> TimeInterval? {
guard let lastPlayedMs = lastPlayedMs else { return nil }
let lastPlayed = Date(timeIntervalSince1970: lastPlayedMs / 1000)
return DatelastPlayed.timeIntervalSinceNow
}
```
## Corrected Code
```swift
static internal func timeSinceLastPlayed(_ lastPlayedMs: Double?) -> TimeInterval? {
guard let lastPlayedMs = lastPlayedMs else { return nil }
let lastPlayed = Date(timeIntervalSince1970: lastPlayedMs / 1000)
// Return a positive elapsed time.
return Date().timeIntervalSince(lastPlayed)
}
```
Lastly the code for disabling the feature is mostly completed, but the setting isn't enabled in the iOS GUI build, and the settings variable isn't use.
Not sure if there is more history to this. But I'll submit a PR soon.
I'll submit a PR for this
@github-actions[bot] commented on GitHub (Apr 21, 2025):
Fixed in [v0.9.80-beta](https://github.com/advplyr/audiobookshelf-app/releases/tag/v0.9.80-beta).
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Originally created by @pickles4evaaaa on GitHub (Jan 22, 2025).
Describe the Feature/Enhancement
I see that the Android app has this feature but iOS does not.
Basically: If you pause your book for more than 10 minutes and then resume play, the playback will rewind 10-30 seconds.
Why would this be helpful?
The listener is able to get a quick recap of where they are at in the book after they have been paused for more than 10 minutes.
Future Implementation (Screenshot)
The app "Bound" on iOS has this feature
Audiobookshelf App Version
iOS App - 0.9.78
Current Implementation (Screenshot)
No response
@complacentsee commented on GitHub (Mar 10, 2025):
The code for this functionality is largely implemented on iOS and has been in place for some time. However, a bug has been identified in the function.
Description
timeSinceLastPlayedreturns a negative time interval, but the related functiontimeToSeekBackForSinceLastPlayedexpects a positive number.Original Code
Corrected Code
Lastly the code for disabling the feature is mostly completed, but the setting isn't enabled in the iOS GUI build, and the settings variable isn't use.
Not sure if there is more history to this. But I'll submit a PR soon.
I'll submit a PR for this
@pickles4evaaaa commented on GitHub (Mar 10, 2025):
@complacentsee This is so exciting! Thanks :)
@github-actions[bot] commented on GitHub (Apr 21, 2025):
Fixed in v0.9.80-beta.