I have the reference of a MPMediaItem when user selects a n audio from the iPod library. i am getting the asset url of that item by using
[mediaItem valueForProperty: MPMediaItemPropertyAssetURL]
But this is not giving me the exact physical location of the file, instead it is giving me an url w.r.t iPod library.
ipod-library://item/item.mp3?id=1840064795502796074
Is there a way to get the physical url of a song from iPod library?
EDIT - actually i want to extract NSData from the physical file and send it to my backend server, so i need the physical file URL and not the relative URL