         tabBarController?.present(trackOptionsNav, animated: true, completion: nil)
     }
     
-    
+    func onChangePlaybackPositionCommand (_ event: MPChangePlaybackPositionCommandEvent){
+        thePlayer.spotifyPlayer?.seek(to: event.positionTime, callback: { (error) in
+            if (error != nil) {
+            }
+        })
+    }
     
     func nextSong(){
         print("next")

    }
}

extension TrackViewController {
    func addToPlaylist () {
        let trackOptionsVC = TrackOptionsViewController()

        }
    }
    
 
    
    func playSong() {
        var trackName = "spotify:track:"
