tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rahulgarg <>
Subject Re: want to control winamp from servlet
Date Sun, 10 Sep 2006 09:06:24 GMT

Kristian Rink wrote:
> Hash: SHA1
> rahulgarg schrieb:
> [snipped]
>> helo kristian i knw the api by which winap can be controlled bye a java
>> program
>> it works fine for the normal java program on desktop
>> but want to control winap from a client side 
>> winap is on the server i am doing some project it need it 
> What sort of API are you using for that purpose, then? Is this "official
> WinAmp" stuff or something else? Do you have an example of how Winamp
> control is done there using "client-side" Java? What happens if you try
> the same from within a servlet?
> Cheers,
> Kris
> - --
> Kristian Rink * * jab:
> icq: 48874445 *  fon: ++49 176 2447 2771
> "Wenn einer allein träumt, ist es nur ein Traum. Wenn viele gemeinsam
> träumen, ist das der Anfang einer neuen Wirklichkeit." (Hundertwasser)
> Version: GnuPG v1.4.2.2 (GNU/Linux)
> iD8DBQFFA9O0cxBAPOA1m6wRAqW2AJ9TMdKufJ9iog4bdTKbWptUpct3fQCgk42h
> ITol1Dh11OKQNzNyzyeJB3g=
> =nOQf
> ---------------------------------------------------------------------
> To start a new topic, e-mail:
> To unsubscribe, e-mail:
> For additional commands, e-mail:
these are free code named mpcontrol
google mpcontrol api u wll c

it work fine when u make a desktop application
but when u make a servlet it is not able to find playing media information
give null pointer exception

code is:
import javax.servlet.*;
import javax.servlet.http.*;
import java.util.Iterator;
import java.util.List;

import org.jdesktop.jdic.mpcontrol.IExtendedSongInfo;
import org.jdesktop.jdic.mpcontrol.IMediaPlayer;
import org.jdesktop.jdic.mpcontrol.ISongInfo;
import org.jdesktop.jdic.mpcontrol.MediaPlayerService;

public class jukeradio extends HttpServlet
	public void doGet(HttpServletRequest req,HttpServletResponse rep)throws

		//String uname=req.getParameter("T1");
		//String pass=req.getParameter("T2");
		PrintWriter out=rep.getWriter();

		out.println("JDIC Media Player Control - Demo : CurrentSong");
       List players =
MediaPlayerService.getInstance().getMediaPlayers();------ this igive null
pointer exception

i have placed all packages it need and a lib it need i complie fine but
didnt run
this problem is same as a person on this forum asked for ROOt rights for a
if the servlet has root rights it can access any appliction
View this message in context:
Sent from the Tomcat - User forum at

To start a new topic, e-mail:
To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message