An MPMediaLibrary object, or media library, represents the state of the set of synced media items (such as songs) on a device. The complete library of media items itself is called the iPod library.
Questions tagged [mpmedialibrary]
34 questions
0
votes
1 answer
How to get the size of a song in ipod library?
I have been working on a media player app.I am able to get the media items by using the media query,group them based on different groupings and add various filters to narrow down my search.
Now my requirement is to find out the size of a particular…

D-Dude
- 11
- 1
- 2
0
votes
2 answers
IOS::How to get the MPMediaquery Songsquery Artwork
I'm using this code for getting the Artwork, but it's not workout for me. What's the wrong in this code.Suggest me.
Thanks.
MPMediaQuery *mySongsQuery = [MPMediaQuery songsQuery];
NSArray *SongsList = [mySongsQuery collections];
…

Ravikumar
- 85
- 1
- 16
-1
votes
1 answer
Getting MPMediaPlaylist last modified date
Looking for a way to get the last modified date of music playlists.This is how I get the playlists and trying to get the property value:
if let playlists = MPMediaQuery.playlists().collections as? [MPMediaPlaylist] {
for playlist in…

youthdancing
- 51
- 2
- 3
-1
votes
1 answer
Select a random item from User's Music Library (iOS) (Swift)
How to select a random song/album/playlist from the user's library?
Also, how to select all the songs from a particular artist/genre at random?
I have tried MPMediaQuery, but am somehow not able to achieve what I want. All I get is all the…

Shyam
- 561
- 5
- 22