Sync playback position (online only)

This commit is contained in:
Rasmus Krämer
2022-04-15 12:21:46 +02:00
parent 29fd29728a
commit 363bfd206c
6 changed files with 74 additions and 23 deletions
+1 -1
View File
@@ -57,7 +57,7 @@ class AudioPlayer: NSObject {
playerItem.addObserver(self, forKeyPath: #keyPath(AVPlayerItem.status), options: .new, context: &playerItemContext)
self.audioPlayer.replaceCurrentItem(with: playerItem)
seek(self.playbackSession.currentTime)
seek(playbackSession.currentTime)
NSLog("Audioplayer ready")
}