From owner-freebsd-questions Tue Nov 12 21:31:55 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 93D5B37B401 for ; Tue, 12 Nov 2002 21:31:53 -0800 (PST) Received: from sub21-156.member.dsl-only.net (sub21-156.member.dsl-only.net [63.105.21.156]) by mx1.FreeBSD.org (Postfix) with ESMTP id C062843E3B for ; Tue, 12 Nov 2002 21:31:52 -0800 (PST) (envelope-from nkinkade@sub21-156.member.dsl-only.net) Received: from sub21-156.member.dsl-only.net (freebsd.localhost.localdomain [127.0.0.1]) by sub21-156.member.dsl-only.net (8.12.5/8.12.5) with ESMTP id gAD5VqwQ095111 for ; Tue, 12 Nov 2002 21:31:52 -0800 (PST) (envelope-from nkinkade@sub21-156.member.dsl-only.net) Received: (from nkinkade@localhost) by sub21-156.member.dsl-only.net (8.12.5/8.12.5/Submit) id gAD5VkAC095110 for freebsd-questions@freebsd.org; Tue, 12 Nov 2002 21:31:46 -0800 (PST) (envelope-from nkinkade) Date: Tue, 12 Nov 2002 21:31:46 -0800 From: Nathan Kinkade To: FreeBSD Mailing List Subject: Re: OT: and Java to play "xmms " Message-ID: <20021113053146.GE72253@sub21-156.member.dsl-only.net> Reply-To: nkinkade@dsl-only.net Mail-Followup-To: FreeBSD Mailing List References: <20021113044827.GA82595@tao.thought.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20021113044827.GA82595@tao.thought.org> User-Agent: Mutt/1.4i Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Tue, Nov 12, 2002 at 08:48:27PM -0800, Gary D Kline wrote: > Hi Gang, > > I've been wedged the past several nights trying to get a > very simple FORM SELECT OPTION to exec xmms or zinf that points > to a file or URL. Looks like using Java is the only way to > go and that means getting my feet wet in the Java world. > > So far I've found small smaple scripts that, when you have a > down-down menu, and choose one, the browser goes to the URL > selected. (This thru the window.open() call, I think.) > Is there a Java function like: local.exec(") that I > could use to point one of my mp3 players at a streaming > site? > > Thanks for any clues; sorry for the way off-topic subject, but > lots of web-wizards hang out here. > > gary > > PS: There are many non-web ways of doing this, I realize... . > > > > -- > Gary Kline kline@thought.org www.thought.org Public service Unix Are you trying to do something funny that a proper MIME configuration would take care of? For example, when your httpd serves up the file tell it to give a MIME type of something like "audio/mpeg"...then configure your browser to launch xmms when it receives a file of type 'audio/mpeg'....to be on the safe side, you might want to configure the browser to also associate .mp3 and such with xmms. Nathan To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message