- The Winamp Now Playing Plug-in
- Installation and Configuration of the Now Playing Plug-in
- Using a Java Servlet Container Approach
- The NowPlayingServlet
Installation and Configuration of the Now Playing Plug-in
Installation of the Now Playing Plug-in is rather straightforward. After you launch the plug-in installer, you are asked to specify the path of your Winamp installation (C:\Program Files\Winamp, by default) (see Figure 1).

Figure 1 Specifying your Winamp path.
Click the Install button and then fire up Winamp. Go to Options, Preferences. Choose Plug-ins, in the left pane, and then General Purpose. You should see the Now Playing Plug-in v1.4 (see Figure 2). Select this plug-in and click Configure Selected Plug-in.

Figure 2 Configuring the Now Playing Plug-in.
In the subsequent config screen that appears, select the General Options tab and check three options: Enabled, Show Dialog When Processing, and Show Icon in System Tray (see Figure 3). Below I have specified that the Now Playing Plug-in should report a song history of the last five songs played and should post an update of a new song playing after 5 seconds. Of course, you can configure these options based on your preferences. For now, keep these settings; you can alter them later, if you'd like.

Figure 3 Configuring General Options tab settings.
Next, click on the HTTP Post tab and check the HTTP Post-Enabled option. For the URL, specify http://localhost/WinampProject/NowPlayingServlet. For the port, specify 9080 (see Figure 4). Note that you will need to modify the URL and port to correspond with the Java servlet you will set up later in this article.

Figure 4 Configuring the HTTP Post.