Sync local progress to front-end

This commit is contained in:
ronaldheft
2022-08-13 10:28:28 -04:00
parent ef661bba37
commit c029e519e9
3 changed files with 12 additions and 3 deletions
+4 -1
View File
@@ -201,7 +201,10 @@ class PlayerHandler {
localMediaProgress.updateFromPlaybackSession(session)
Database.shared.saveLocalMediaProgress(localMediaProgress)
// TODO: Send local media progress back to UI
NSLog("Local progress saved to the database")
// Send the local progress back to front-end
NotificationCenter.default.post(name: NSNotification.Name(PlayerEvents.localProgress.rawValue), object: nil)
return localMediaProgress
}