-
i was going to program a music list for my vb media player, and i looked at wmp7(windows media player 7) *.m3u file. it look likes HTML. and the winamp *.m3u looks like they almost wanted to encript it.
witch one do u think i should use? winamp, wmp7, my own, or all?
-
WinAmp isn't encrypted, just ignore the random lines and it'll still open it fine. It's just extra info so it doesn't have to read it from the file each time.
-
o
thats what they ment. i thought they meant something that winamp didnt want other people to know.
-
people
your looking at this thing, at least VOTE!!!
COME ON YOU CAN DO IT!!!
-
Just put all the filenames into a text file, one per line. Then drag that text file onto Winamp ;)
-
interseting
thats interseting.
parksie: y if u make a list in wmp7 dose it have all this info about the mp3, and it looks like HTML?
-
-
really??
really?? i didnt know that, to program it do you think i need to know xml?
-
programing winamp m3u
well since winamp is winning i started to program it. but its made weird. first of all its extetion to the files is what ever the m3u file isnt in. example:
you want it to play this music file
C:\my doucuments\music\song.mp3
you save the music list in:
C:\my doucments\lists
the location of the mp3 will be:
\music\song.mp3
weird, y all the extra code for that? and if you move the list or the files it might not work. :( and whats the #EXTINF:*** (title of song) [note: * is a number]
#EXTINF:*** means? the number means? why put in the title of the song? all of these things are makeing programing this harder.
-
parksie
parksie: do u know how to open a file with all its lines of text?
-
Code:
ifstream InFile("file.m3u");
if(InFile.fail()) {
// Do something
return;
}
char buf[1024];
while(InFile.getline(buf, 1024)) {
// Do something with this line, possibly put it into a string and add it to a vector.
}
InFile.close();
-
well,
im doing this in vb, but its ok u figered out how to do it in vb, thx any way.
i just want to make sure this is right, to play an mp3 it would be the Device is mpeg and the flags are 0&, 0&, 0& is that right?