09-30-2010 03:48 AM - edited 09-30-2010 04:19 AM
I am getting a m3u file from URL that contain play list. can any one suggest me or give any idea to parse .m3u file and how to get mp3 url from m3u file.
Solved! Go to Solution.
09-30-2010 04:53 AM
09-30-2010 06:26 AM
thank you Simon Hain for reply..
I read link that you post but i am not getting any idea to play m3u file. I also searched on forum and got idea that m3u file just contain links as above link also describe it same.
Now i am trying to play this file with Streaming media - Start to finish but it can not play this file(URL).
i am able to play direct mp3 url but when i tried with m3u url it can not play.
Can you please help me to parse m3u file and play with above streaming application.
09-30-2010 06:51 AM
download the m3u file as a string. then extract the mp3 file locations and feed them to the stream app.
09-30-2010 07:39 AM
Thanks simon ,
I have downloaded m3u file as string but not getting now how to extract mp3 link from string. Please could you share in some detail how extract the mp3 file locations from this string.
09-30-2010 07:42 AM
use a stringtokenizer and collect all strings ending with mp3 would be one of several options.
09-30-2010 08:00 AM
implement it your self. or use one of the 7 million available implementations.
09-30-2010 09:27 AM - edited 09-30-2010 09:39 AM
hi simon i am facing same problem.....
I have downloaded custom StringTokenizer class for j2me.String that i have created from m3u file is look like this..
#EXTINF:342,My Cool Song One
now i am tring to get it but not luck with me...
Could please help me to get all above information(time,title and ur) in array or vector..