MPMusicPlayerController buffering / preloading

孤街浪徒 提交于 2019-12-11 10:08:17

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!