Fire Fist
Fire Fist

Reputation: 7060

Do i need to stop MusicPlayerController first before i play to next song in iOS?

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.

Upvotes: 1

Views: 108

Answers (2)

Ravindra Bagale
Ravindra Bagale

Reputation: 17673

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.

Upvotes: 2

Rok Jarc
Rok Jarc

Reputation: 18875

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

Documentation for MPMusicPlayerController.

Upvotes: 1

Related Questions