在播放音频时,是否可以更改AVPlayerViewController实例的背景?
当我锁定设备时,我可以看到正确显示专辑封面的音乐控件,但当AVPlayerViewController在我的应用程序中显示时,我只能看到带有代表QuickTime当前播放的背景的控件。
以下是我的调用方式:
[[AVAudioSession sharedInstance] setCategory:AVAudioSessionCategoryPlayback error:nil];
NSURL *url=[NSURL fileURLWithPath:clickedPath];
AVPlayer *player = [AVPlayer playerWithURL:url];
AVPlayerViewController *controller = [[AVPlayerViewController alloc] init];
[self presentViewController:controller animated:YES completion:nil];
controller.player = player;
[player play];