ios - Next Previous buttons with AVPlayerViewController and AVQueuePlayer not working -
i'm using avplayerviewcontroller
play number of videos, via avqueueplayer
. problem previous/next buttons don't seem anything. can't find way of being notified when buttons touched. missing something?
the code i'm using 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() })