问题
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
.
来源:https://stackoverflow.com/questions/12171343/mpmusicplayercontroller-buffering-preloading