I have a m3u file here. When I downloaded the file and opened it in iTunes the program successfully started playing the stream audio and showed me the artist name and the song title. Moreover iTunes sends notification that track is changed and shows artist name and song title!
I wonder how iTunes guess this? The file doesn't have list of artists, it only has the link to the streaming audio. When I go this address mentioned in the file I can see a web page with some info. Does iTunes parse this pages and look for artist name? Don't think so...
Can anyone explain to me how to get song info from m3u file that contains only a link to an audio stream like iTunes does? Sample code in Obj-C or Swift of how to do this programmatically will be highly appreciated!