Bump session restoration to 1 second

This commit is contained in:
ronaldheft 2022-08-18 18:18:22 -04:00
parent e9226671c9
commit ffd0d4da7d

View file

@ -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;