PDA

View Full Version : Winamp 2: Displaying title of next track(s)?



BruceH
January 21st, 2003, 04:35 PM
I am experimenting with an LCD display using LCDC and Girder (of course)
I have managed to control and display the shuffle and repeat status and details of the currently playing track (and it's album)

What would be great would be if I could display the name of the next track. ("coming up...................")

I guess somehow I request the current playlist position, then query the title of the playlist position + 1.
Ideally I would then want to write that info to a file so the LCD can display it.
Could someone help me out?

I guess this would be impossible if shuffle was on?
(Can always shuffle and save the playlists and leave shuffle off permenantly)

Thanks in advance,
Bruce.

BruceH
January 21st, 2003, 04:59 PM
To show you guys that I don't need totally spoon feeding I have managed to find the answer to part 1.

Using the sendmessage plugin.

Mess No: 1024
WParma: 100
LParam: 0

save into var

I can get the playlist position (0 based ie. 673 for position 674)
However I don't understand from looking at the winamp API docs why this is WParam 100. 100 seems to be play?

Also I am no nearer to getting a title from this or even making is move in the playlist.

Thanks in advance (again!!)

Ron
January 22nd, 2003, 12:44 AM
I'm not sure the is possible with winamp 2. I'll have a look later today.

SouthyPar
January 22nd, 2003, 12:15 PM
I think it is possible, as the current 4am Media Console has full Winamp integration, including display of the next track in playlist. I'm pretty sure, however, that it's done by using the Winamp command that saves the current playlist (in the winamp.m3u file that's placed in the main Winamp directory), and manually opening up that file and extracting the next track from it. I guess you could do that in Lua, now.