     public func isPaused() -> Bool {
         MusicPlayer.player.playbackState == .paused
     }
-        
+    
     public func stop() {
         MusicPlayer.player.stop()
         

            DispatchQueue.main.async {
                self.delegate?.playbackStopped(trackCompleted: false)
            }
        case .seekingForward:
            break
        case .seekingBackward:
            break
        @unknown default:
            break
        }

            // to test for playbackPosition > mediaItemDuration on .paused.
            if playbackPosition > mediaItemDuration {
                DispatchQueue.main.async {
                    //Indicate queue no longer initialized, fixes issues
                    // with track progress past end as the player likes to do.
                    self.queueUninitialized = true
                    self.delegate?.playbackStopped(trackCompleted: true)
                }
            }
