Fixes#368. Seek back time had three different issues:
Player initialization would update the session's updatedAt value, so anytime the player was reinitialized, we were starting fresh
Date math was wrong, leading always to 2 seconds of seek back time
Resuming playback from the UI was not allowing the seek back calculation
All three issues have been addressed in this PR.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.
## 📋 Pull Request Information
**Original PR:** https://github.com/advplyr/audiobookshelf-app/pull/390
**Author:** [@ronaldheft](https://github.com/ronaldheft)
**Created:** 9/18/2022
**Status:** ✅ Merged
**Merged:** 9/18/2022
**Merged by:** [@advplyr](https://github.com/advplyr)
**Base:** `master` ← **Head:** `fix-ios-seek-back-time`
---
### 📝 Commits (1)
- [`b6b206c`](https://github.com/advplyr/audiobookshelf-app/commit/b6b206c288c7d662ede9d3dd93d4f174df3e23ca) fix: Seek back time not winding back
### 📊 Changes
**2 files changed** (+3 additions, -2 deletions)
<details>
<summary>View changed files</summary>
📝 `ios/App/Shared/player/AudioPlayer.swift` (+2 -1)
📝 `ios/App/Shared/player/PlayerHandler.swift` (+1 -1)
</details>
### 📄 Description
Fixes #368. Seek back time had three different issues:
1. Player initialization would update the session's `updatedAt` value, so anytime the player was reinitialized, we were starting fresh
2. Date math was wrong, leading always to 2 seconds of seek back time
3. Resuming playback from the UI was not allowing the seek back calculation
All three issues have been addressed in this PR.
---
<sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
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.
📋 Pull Request Information
Original PR: https://github.com/advplyr/audiobookshelf-app/pull/390
Author: @ronaldheft
Created: 9/18/2022
Status: ✅ Merged
Merged: 9/18/2022
Merged by: @advplyr
Base:
master← Head:fix-ios-seek-back-time📝 Commits (1)
b6b206cfix: Seek back time not winding back📊 Changes
2 files changed (+3 additions, -2 deletions)
View changed files
📝
ios/App/Shared/player/AudioPlayer.swift(+2 -1)📝
ios/App/Shared/player/PlayerHandler.swift(+1 -1)📄 Description
Fixes #368. Seek back time had three different issues:
updatedAtvalue, so anytime the player was reinitialized, we were starting freshAll three issues have been addressed in this PR.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.