mirror of
https://github.com/sudoxnym/audiobookshelf-atv.git
synced 2026-07-12 15:05:39 +00:00
Fix:Closing playback first closes media progress syncer #268
This commit is contained in:
parent
dc9526beb3
commit
b51f65d2a4
1 changed files with 5 additions and 0 deletions
|
|
@ -670,6 +670,11 @@ class PlayerNotificationService : MediaBrowserServiceCompat() {
|
|||
|
||||
fun closePlayback() {
|
||||
Log.d(tag, "closePlayback")
|
||||
if (mediaProgressSyncer.listeningTimerRunning) {
|
||||
Log.i(tag, "About to close playback so stopping media progress syncer first")
|
||||
mediaProgressSyncer.stop()
|
||||
}
|
||||
|
||||
try {
|
||||
currentPlayer.stop()
|
||||
currentPlayer.clearMediaItems()
|
||||
|
|
|
|||
Loading…
Reference in a new issue