AVPlayerViewController next/prev 按钮不起作用?

AVPlayerViewController next/prev buttons don't work?

我的代码:

AVQueuePlayer *player = ...;
AVPlayerViewController *controller = [[AVPlayerViewController alloc] init];
    [vc presentViewController:controller animated:YES completion:nil];
    controller.player = player;
    controller.allowsPictureInPicturePlayback = NO;
    [player play];

AVQueuePlayer 类似于 AVPlayer 但支持多个项目。

问题是 AVPlayerViewController 有 "go next/prev" 个按钮,但它们不起作用。

并非所有媒体都能够快进/跳过或倒带。 AVPlayer 不允许您覆盖该功能。

为了检查媒体是否能够快进或快退,请查看 AVPlayerItemcanPlayFastForwardcanPlayFastReverse 的值。

如果你真的想覆盖 Next/Prev 按钮,我认为你唯一的办法就是制作自定义 AVPlayerViewController