From ffd0d4da7d2a7e3f19a74cb6645922a8216b92d8 Mon Sep 17 00:00:00 2001 From: ronaldheft Date: Thu, 18 Aug 2022 18:18:22 -0400 Subject: [PATCH] Bump session restoration to 1 second --- ios/App/App/plugins/AbsAudioPlayer.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ios/App/App/plugins/AbsAudioPlayer.swift b/ios/App/App/plugins/AbsAudioPlayer.swift index e9d173d4..be324984 100644 --- a/ios/App/App/plugins/AbsAudioPlayer.swift +++ b/ios/App/App/plugins/AbsAudioPlayer.swift @@ -25,7 +25,7 @@ public class AbsAudioPlayer: CAPPlugin { NotificationCenter.default.addObserver(self, selector: #selector(onLocalMediaProgressUpdate), name: NSNotification.Name(PlayerEvents.localProgress.rawValue), object: nil) // Restore the playack session when plugin loads - Timer.scheduledTimer(timeInterval: 0.5, target: self, selector: #selector(restorePlaybackSession), userInfo: nil, repeats: false) + Timer.scheduledTimer(timeInterval: 1, target: self, selector: #selector(restorePlaybackSession), userInfo: nil, repeats: false) self.bridge?.webView?.allowsBackForwardNavigationGestures = true;