mirror of
https://github.com/sudoxnym/audiobookshelf-atv.git
synced 2026-07-14 16:02:24 +00:00
Fix typo in if statement
This commit is contained in:
parent
021d63d973
commit
c02adfa326
1 changed files with 1 additions and 1 deletions
|
|
@ -219,7 +219,7 @@ class AudioPlayer: NSObject {
|
|||
|
||||
// Seek the player before initializing, so a currentTime of 0 does not appear in MediaProgress / session
|
||||
let firstReady = self.status < 0
|
||||
if firstReady || !self.playWhenReady {
|
||||
if firstReady && !self.playWhenReady {
|
||||
// Seek is async, and if we call this when also pressing play, we will get weird jumps in the scrub bar depending on timing
|
||||
// Seeking to the correct position happens during play()
|
||||
self.seek(playbackSession.currentTime, from: "queueItemStatusObserver")
|
||||
|
|
|
|||
Loading…
Reference in a new issue