Hi Everyone,
I've been having some trouble with the Play/Pause button gesture recognizer.
The issue is after playing a video clip, the rest of the app cannot detect the Play/Pause button at all. It works fine before starting playback of a video using AVPlayerViewController but after watching a video it is not recognizable in any other View Controller.
I have tried reassigning the gesture recognizer when coming back to a View Controller, but that doesn't help either.
var tapRecognizer = UITapGestureRecognizer(target: self, action: "playButtonPressed:")
tapRecognizer.allowedPressTypes = [NSNumber(integer: UIPressType.PlayPause.rawValue)];
self.view.addGestureRecognizer(tapRecognizer)
I also tried using the pressesBegan & pressesEnded methods as well and found the same issue.
Has anyone else experience this problem?
I would really like to use the Play/Pause button throughout the app, since it's the only remote button available other than menu.
Thanks!
Brian