MPMusicPlayerController buffering / preloading

2019-07-29 07:29发布

Is there a way to make MPMusicPlayerController buffer content before I call -play? Or does it do this by default when you set a queue? AVAudioPlayer has the -prepareToPlay method and I've heard that AVQueuePlayer starts buffering the next item automatically, but does MPMusicPlayerController have the same behaviour?

1条回答
三岁会撩人
2楼-- · 2019-07-29 07:51

The answer to this question is in the iOS 6 beta docs, if anyone is wondering. Can't say much more because of NDA.

EDIT: As requested, since the NDA has been lifted, here's the answer: As of iOS 6, MPMusicPlayerController, like MPMoviePlayerController implements the MPMediaPlayback protocol, which has methods like -prepareToPlay.

查看更多
登录 后发表回答