Fix progress syncing

This commit is contained in:
ronaldheft
2022-08-16 21:14:33 -04:00
parent 6aa0f2253b
commit 10f2da9e90
3 changed files with 16 additions and 6 deletions
+4
View File
@@ -107,6 +107,10 @@ class AudioPlayer: NSObject {
NotificationCenter.default.post(name: NSNotification.Name(PlayerEvents.closed.rawValue), object: nil)
}
func isInitialized() -> Bool {
return self.status != -1
}
func getItemIndexForTime(time:Double) -> Int {
let playbackSession = Database.shared.getPlaybackSession(id: self.sessionId)!
for index in 0..<self.allPlayerItems.count {