There is another way, that is setting the lastPauseTime to stream.lastUpdate while player init. And let the player to do the seekback.
But the playWhenReady is not easy to handle and it always leads to rebuffering, so I didn't use this.
🔄 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/19
**Author:** [@svdztn](https://github.com/svdztn)
**Created:** 10/27/2021
**Status:** ❌ Closed
**Base:** `master` ← **Head:** `fix_seekback_with_no_play`
---
### 📝 Commits (2)
- [`7c87d79`](https://github.com/advplyr/audiobookshelf-app/commit/7c87d795914d8133951a32378fe380126b2218e0) add noSyncUpdateTime symbol, don't sync progress to srv before start playing
- [`fde6a4e`](https://github.com/advplyr/audiobookshelf-app/commit/fde6a4e8ec07302ab103b699f2f4216107dc61cc) rst "no_sync" after STATE_READY
### 📊 Changes
**2 files changed** (+15 additions, -6 deletions)
<details>
<summary>View changed files</summary>
📝 `android/app/src/main/java/com/audiobookshelf/app/PlayerNotificationService.kt` (+7 -2)
📝 `components/AudioPlayerMini.vue` (+8 -4)
</details>
### 📄 Description
Fixed and tested.
There is another way, that is setting the `lastPauseTime` to `stream.lastUpdate` while player init. And let the player to do the seekback.
But the `playWhenReady` is not easy to handle and it always leads to rebuffering, so I didn't use this.
---
<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/19
Author: @svdztn
Created: 10/27/2021
Status: ❌ Closed
Base:
master← Head:fix_seekback_with_no_play📝 Commits (2)
7c87d79add noSyncUpdateTime symbol, don't sync progress to srv before start playingfde6a4erst "no_sync" after STATE_READY📊 Changes
2 files changed (+15 additions, -6 deletions)
View changed files
📝
android/app/src/main/java/com/audiobookshelf/app/PlayerNotificationService.kt(+7 -2)📝
components/AudioPlayerMini.vue(+8 -4)📄 Description
Fixed and tested.
There is another way, that is setting the
lastPauseTimetostream.lastUpdatewhile player init. And let the player to do the seekback.But the
playWhenReadyis not easy to handle and it always leads to rebuffering, so I didn't use this.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.