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:
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
.