In my app , i have to play songs from iPod Library with MPMusicPlayerContrller's iPodMusicPlayer.

I just want to know , in my app , first song is playing from Album and when i want to play another song from Playlists that selected from UITableView do i need to use stop function [self.player stop]; before change next songs?

Or i can directly play without stop current playing song?

Thanks for your help.

有帮助吗?

解决方案

no need to stop.my question is "Why to stop?". no,never nothing, there is no need of stop. ios already given you facility of playing new song from playlist through the properties.

if you stops it & again play it,its just wastage of execution time.

其他提示

Since you probably use skipToNextItem or skipToPreviousItem it's perfectly legit to use them directly.

Documentation for MPMusicPlayerController.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top