applicationQueuePlayer 和 applicationMusicPlayer 之间有什么区别?
What is the difference between an applicationQueuePlayer and an applicationMusicPlayer?
Apple 文档中说
The application queue music player provides more functionality and greater control over the music played than the application music player.
但是那是什么控件和功能?
根据声明,MPMusicPlayerController继承自NSObject,并且
MPMusicPlayerApplicationController 继承自 MPMusicPlayerController.
所以,很明显,NSObject => MPMusicPlayerController => MPMusicPlayerApplicationController
然后,MPMusicPlayerApplicationController拥有MPMusicPlayerController的所有功能,
More func是Changing the Queue Contents添加的,提供了两种方法。
总的来说,你只要使用MPMusicPlayerController就可以做很多事情,希望能帮到你。
Apple 文档中说
The application queue music player provides more functionality and greater control over the music played than the application music player.
但是那是什么控件和功能?
根据声明,MPMusicPlayerController继承自NSObject,并且 MPMusicPlayerApplicationController 继承自 MPMusicPlayerController.
所以,很明显,NSObject => MPMusicPlayerController => MPMusicPlayerApplicationController