Fix race conditions on first launch

This commit is contained in:
ronaldheft
2022-08-18 19:31:32 -04:00
parent af835f2c43
commit bf46c46fc0
4 changed files with 22 additions and 4 deletions
+4
View File
@@ -155,6 +155,10 @@ public class AbsDatabase: CAPPlugin {
call.reject("Failed to report synced media progress")
}
}
// If we're syncing progress with the server, we also have the UI ready
// This will restore the player to the last playback session
NotificationCenter.default.post(name: NSNotification.Name(PlayerEvents.playerUserInterfaceReady.rawValue), object: nil)
}
@objc func syncServerMediaProgressWithLocalMediaProgress(_ call: CAPPluginCall) {