Anybody know how to expose the iPhone music library using a http server on iOS? How do I get the path to the music files on the iPhone?
Asked
Active
Viewed 15 times
0
-
Possible duplicate: http://stackoverflow.com/questions/1656124/mpmediaitems-raw-song-data – Krumelur Jul 22 '15 at 12:28
1 Answers
0
You can do something like :
MPMediaItem *item = musicPlayer.nowPlayingItem;
AVURLAsset *song_asset = [AVURLAsset URLAssetWithURL: [item valueForProperty: MPMediaItemPropertyAssetURL] options:nil];

Munahil
- 2,381
- 1
- 14
- 24