Go Back   Winamp Forums > Developer Center > Winamp Development

Reply
Thread Tools Search this Thread Display Modes
Old 23rd April 2002, 02:05   #1
tsonix
Junior Member
 
Join Date: Nov 2000
Posts: 4
Winamp minibrowser plug-in

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
tsonix is offline   Reply With Quote
Old 23rd April 2002, 07:22   #2
THEMike
Bastificator [Alumni]
 
THEMike's Avatar
 
Join Date: May 2000
Location: #nullsoft
Posts: 1,260
Yup

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:
Quote:
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

"Beer?"
THEMike is offline   Reply With Quote
Old 23rd April 2002, 07:58   #3
bananskib
Junior Member
 
Join Date: Apr 2002
Posts: 8
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
bananskib is offline   Reply With Quote
Reply
Go Back   Winamp Forums > Developer Center > Winamp Development

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump