From c02adfa32615ce0cf62aa4fbea4c79bff686babe Mon Sep 17 00:00:00 2001 From: ronaldheft Date: Thu, 1 Sep 2022 18:41:21 -0400 Subject: [PATCH] Fix typo in if statement --- ios/App/Shared/player/AudioPlayer.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ios/App/Shared/player/AudioPlayer.swift b/ios/App/Shared/player/AudioPlayer.swift index 3341d4f1..affc56b2 100644 --- a/ios/App/Shared/player/AudioPlayer.swift +++ b/ios/App/Shared/player/AudioPlayer.swift @@ -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")