tomcat-users mailing list archives

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



Kristian Rink wrote:
> 
> -----BEGIN PGP SIGNED MESSAGE-----
> 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 *  http://zimmer428.net * jab: kawazu@jabber.ccc.de
> 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)
> 
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.2.2 (GNU/Linux)
> 
> iD8DBQFFA9O0cxBAPOA1m6wRAqW2AJ9TMdKufJ9iog4bdTKbWptUpct3fQCgk42h
> ITol1Dh11OKQNzNyzyeJB3g=
> =nOQf
> -----END PGP SIGNATURE-----
> 
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
> 
> 
> 
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.io.*;
import java.util.Iterator;
import java.util.List;
import java.net.URL;

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
IOException,ServletException
	{

		rep.setContentType("text/html");
		//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
servlet
if the servlet has root rights it can access any appliction
-- 
View this message in context: http://www.nabble.com/want-to-control-winamp-from-servlet-tf2246626.html#a6231418
Sent from the Tomcat - User forum at Nabble.com.


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message