PDA

View Full Version : Winamp minibrowser plug-in


tsonix
23rd April 2002, 02:05
Hello guys,

Can you please point me to the right direction (the right links...)

I'm new to dll's and winamp plugins, but do have general programming experience.

What I want to do is a general purpose plug-in that will "take control" of the minibrowser.

For example, if "Muse - Plug in baby.mp3" is the song playing it will redirect the minibrowser to www.muse.com (or something...)

Is there any material on the web (tutorials) that you can refer me to?

Please help!

Thanks in advance,
Terry

THEMike
23rd April 2002, 07:22
The develop section (right most tab above) gives you the info:

http://www.winamp.com/nsdn/winamp2x/dev/sdk/api.jhtml


The messages you need are:

241 Opens an new URL in the minibrowser. If the URL is NULL it will open the Minibrowser window
242 Returns 1 if the internet connecton is available for Winamp
246 Retrives the current Minibrowser URL into the buffer.
248 Blocks the Minibrowser from updates if value is set to 1
249 Opens an new URL in the minibrowser (like 241) except that it will work even if 248 is set to 1

bananskib
23rd April 2002, 07:58
Just an idea to get started.

Use MP3 tags, ID3v2 tags. One of the tags is an URL - put the URL for your song here.

When a song plays - read the tag and open the minibrowser with that URL.

For more info on how to read the ID3v2 tags:
http://id3lib.sourceforge.net/
http://www.id3.org/implement.html

Suppose you have obtained the URL! You can open the minibrowser with a sendmessage call:

SendMessage(hwnd_winamp,WM_WA_IPC,(WPARAM)url,IPC_MBOPEN);

The header-file for winamp is located here:
http://www.winamp.com/nsdn/winamp2x/dev/sdk/FRONTEND.H

I hope this is enough to get you started.

BTW: saw Muse perform two weeks ago in Copenhagen - really really nice.

Bananskib