I am using AVPlayerViewController to play multiple videos through AVQueuePlayer . The problem is that the previous / next buttons do nothing. I cannot find a notification method when these buttons are clicked. Did I miss something?
The code I use is pretty simple:
self.player = AVQueuePlayer(items: playerItems) self.playerViewController = AVPlayerViewController() self.playerViewController?.player = self.player self.presentViewController(self.playerViewController!, animated: false, completion: { () -> Void in self.playerViewController?.player.play() })
source share