Found another problem: no “seekback” when operating with media notification.
So move the “seekback” to onEvents() -> Player.EVENT_IS_PLAYING_CHANGED.
Although there may be some subtle lag, but it works.
🔄 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/21
**Author:** [@svdztn](https://github.com/svdztn)
**Created:** 10/29/2021
**Status:** ✅ Merged
**Merged:** 10/30/2021
**Merged by:** [@advplyr](https://github.com/advplyr)
**Base:** `master` ← **Head:** `fix_playWhenReady`
---
### 📝 Commits (2)
- [`37fea5c`](https://github.com/advplyr/audiobookshelf-app/commit/37fea5c772e3228db43b2ab014503042ae8c8cf6) fix playWhenReady, prevent open stream with closed id
- [`5757d90`](https://github.com/advplyr/audiobookshelf-app/commit/5757d90b05119e734e5c34f6bacbed21546b12af) fix media notification operation without seekback
### 📊 Changes
**3 files changed** (+24 additions, -13 deletions)
<details>
<summary>View changed files</summary>
📝 `android/app/src/main/java/com/audiobookshelf/app/PlayerNotificationService.kt` (+17 -7)
📝 `components/AudioPlayerMini.vue` (+6 -6)
📝 `components/app/StreamContainer.vue` (+1 -0)
</details>
### 📄 Description
1. `playWhenReady` is ok now.
2. Found another problem: no “seekback” when operating with media notification.
So move the “seekback” to `onEvents() -> Player.EVENT_IS_PLAYING_CHANGED`.
Although there may be some subtle lag, but it works.
---
<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/21
Author: @svdztn
Created: 10/29/2021
Status: ✅ Merged
Merged: 10/30/2021
Merged by: @advplyr
Base:
master← Head:fix_playWhenReady📝 Commits (2)
37fea5cfix playWhenReady, prevent open stream with closed id5757d90fix media notification operation without seekback📊 Changes
3 files changed (+24 additions, -13 deletions)
View changed files
📝
android/app/src/main/java/com/audiobookshelf/app/PlayerNotificationService.kt(+17 -7)📝
components/AudioPlayerMini.vue(+6 -6)📝
components/app/StreamContainer.vue(+1 -0)📄 Description
playWhenReadyis ok now.Found another problem: no “seekback” when operating with media notification.
So move the “seekback” to
onEvents() -> Player.EVENT_IS_PLAYING_CHANGED.Although there may be some subtle lag, but it works.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.