Why is setting queue in a MPMusicPlayerController only adding first track in collection?
Posted
by prendio2
on Stack Overflow
See other posts from Stack Overflow
or by prendio2
Published on 2010-04-17T00:17:46Z
Indexed on
2010/04/17
0:23 UTC
Read the original article
Hit count: 838
I have an Album object containing a MPMediaItemCollection of the album's tracks.
When I add this collecton to the queue with the following line of code, only the first track gets added.
[iPodMusicPlayer setQueueWithItemCollection:album.mediaItems];
Oddly enough when I add with the following line of code, everything works as expected.
[iPodMusicPlayer setQueueWithItemCollection:[MPMediaItemCollection collectionWithItems:[album.mediaItems items]]];
Why would the second line work but not the first?
© Stack Overflow or respective owner