My code:
AVQueuePlayer *player = ...;
AVPlayerViewController *controller = [[AVPlayerViewController alloc] init];
[vc presentViewController:controller animated:YES completion:nil];
controller.player = player;
controller.allowsPictureInPicturePlayback = NO;
[player play];
AVQueuePlayer
is like AVPlayer
but supports multiple items.
The problem is AVPlayerViewController
has "go next/prev" buttons and they don't work.