Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 65775 invoked from network); 10 Sep 2006 09:07:00 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 10 Sep 2006 09:07:00 -0000 Received: (qmail 32333 invoked by uid 500); 10 Sep 2006 09:06:48 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 32312 invoked by uid 500); 10 Sep 2006 09:06:48 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 32301 invoked by uid 99); 10 Sep 2006 09:06:48 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 10 Sep 2006 02:06:48 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of lists@nabble.com designates 72.21.53.35 as permitted sender) Received: from [72.21.53.35] (HELO talk.nabble.com) (72.21.53.35) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 10 Sep 2006 02:06:46 -0700 Received: from [72.21.53.38] (helo=jubjub.nabble.com) by talk.nabble.com with esmtp (Exim 4.50) id 1GMLGh-0002cA-UZ for users@tomcat.apache.org; Sun, 10 Sep 2006 02:06:24 -0700 Message-ID: <6231418.post@talk.nabble.com> Date: Sun, 10 Sep 2006 02:06:24 -0700 (PDT) From: rahulgarg To: users@tomcat.apache.org Subject: Re: want to control winamp from servlet In-Reply-To: <4503D3B5.6060103@zimmer428.net> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Nabble-From: rahulgarg_niec@yahoo.co.uk References: <6230913.post@talk.nabble.com> <4503CE31.2030409@zimmer428.net> <6231114.post@talk.nabble.com> <4503D3B5.6060103@zimmer428.net> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Kristian Rink wrote: >=20 > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 >=20 > rahulgarg schrieb: > [snipped] >=20 >> 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=20 >> winap is on the server i am doing some project it need it=20 >=20 >=20 > 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? >=20 >=20 > Cheers, > Kris >=20 >=20 > - -- > Kristian Rink * http://zimmer428.net * jab: kawazu@jabber.ccc.de > icq: 48874445 * fon: ++49 176 2447 2771 > "Wenn einer allein tr=C3=A4umt, ist es nur ein Traum. Wenn viele gemeinsa= m > tr=C3=A4umen, ist das der Anfang einer neuen Wirklichkeit." (Hundertwasse= r) >=20 > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.2.2 (GNU/Linux) >=20 > iD8DBQFFA9O0cxBAPOA1m6wRAqW2AJ9TMdKufJ9iog4bdTKbWptUpct3fQCgk42h > ITol1Dh11OKQNzNyzyeJB3g=3D > =3DnOQf > -----END PGP SIGNATURE----- >=20 > --------------------------------------------------------------------- > 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 >=20 >=20 >=20 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 { =09public void doGet(HttpServletRequest req,HttpServletResponse rep)throws IOException,ServletException =09{ =09=09rep.setContentType("text/html"); =09=09//String uname=3Dreq.getParameter("T1"); =09=09//String pass=3Dreq.getParameter("T2"); =09=09PrintWriter out=3Drep.getWriter(); =09=09out.println("JDIC Media Player Control - Demo : CurrentSong"); List players =3D 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 --=20 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