VideoSplashKit
VideoSplashKit copied to clipboard
Resume from Background freezes video playing
Hi, thank you for this wonderful contribution. I hit a problem. When the app goes into background and comes back active, the video stop. Are they methods to call to start and stop the video?
That's what I did when subclass VideoSplashViewController
override func viewDidLoad() {
super.viewDidLoad()
NSNotificationCenter.defaultCenter().addObserver(self, selector: #selector(becomeActive(_:)), name: UIApplicationDidBecomeActiveNotification, object: nil)
}
func becomeActive(note:NSNotification) {
playVideo()
}
Hi Sunflash
I was able to register the notification but the compiler cannot resolve plyaVideo() even though i already subclass in
class ViewController: VideoSplashViewController,UITextFieldDelegate {
In the end, I have to remove the Pod and use the source files instead.
I solve this problem with this self.restartForeground = true