问题描述
有没有办法在调用-play之前制作MPMusicPlayerController缓冲区内容?或者在设置队列时默认执行此操作? AVAudioPlayer有-prepareToPlay方法,我听说AVQueuePlayer会自动开始缓冲下一个项目,但MPMusicPlayerController是否有相同的行为?
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?
推荐答案
这个问题的答案是在iOS 6 beta文档中,如果有人想知道的话。由于NDA,不能说更多。
The answer to this question is in the iOS 6 beta docs, if anyone is wondering. Can't say much more because of NDA.
编辑:根据要求,由于NDA已被取消,所以答案是:截至iOS 6, MPMusicPlayerController
,如 MPMoviePlayerController
实现协议,其方法如 -prepareToPlay
。
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
.
这篇关于MPMusicPlayerController缓冲/预加载的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!