From owner-freebsd-questions Tue Nov 12 22:57:19 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 91F3D37B404 for ; Tue, 12 Nov 2002 22:57:11 -0800 (PST) Received: from vectors.cx (manifold.vectors.cx [64.163.147.229]) by mx1.FreeBSD.org (Postfix) with ESMTP id 350B443E88 for ; Tue, 12 Nov 2002 22:57:11 -0800 (PST) (envelope-from monkey@vectors.cx) Received: from vectors.cx (bc0d62b1c98a1802c00f2b2d76427ce9@localhost [127.0.0.1]) by vectors.cx (8.12.6/8.12.4) with ESMTP id gAD6xNit036710; Tue, 12 Nov 2002 22:59:23 -0800 (PST) (envelope-from monkey@vectors.cx) Received: (from monkey@localhost) by vectors.cx (8.12.6/8.12.6/Submit) id gAD6xNCK036709; Tue, 12 Nov 2002 22:59:23 -0800 (PST) (envelope-from monkey) Date: Tue, 12 Nov 2002 22:59:23 -0800 From: Adam Weinberger To: Gary D Kline Cc: FreeBSD Mailing List Subject: Re: OT: and Java to play "xmms " Message-ID: <20021113065923.GY35297@vectors.cx> References: <20021113044827.GA82595@tao.thought.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; x-action=pgp-signed Content-Disposition: inline In-Reply-To: <20021113044827.GA82595@tao.thought.org> X-Editor: Vim 6.1 http://www.vim.org X-Mailer: Mutt 1.5 http://www.mutt.org X-PGP-Key: http://www.vectors.cx/pgp.key.txt X-URL: http://www.vectors.cx http://www.crackula.com User-Agent: Mutt/1.5.1i 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 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 I'm not a Java fan/advocate/sympathizer/whatever, but: >> (11.12.2002 @ 2048 PST): Gary D Kline said, in 0.9K: << > 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. Take 2 steps to the right, and then go about 40 steps back, and just put a mime handler into your browser for audio/mpeg or audio/x-mpeg or whatever. What you're trying to do is, well, impressive, but overkill. Which browser are you using? > Is there a Java function like: local.exec(") that I > could use to point one of my mp3 players at a streaming > site? I really really really really hope not, else the fact that nobody has exploited the local.exec("rm -R ~/") bug yet is a miracle ::) In general, applets cannot exec or fork, just call other local applets, unless I'm wrong. In which case the last sentence should be ignored. > PS: There are many non-web ways of doing this, I realize... . Sounds like you're just asking to make xmms open when you click on an mp3 file. Easy enough through your browser's mime handlers, but we can give you more specific advice for a more specific browser. /Adam - -- Adam Weinberger adam@vectors.cx adamw@FreeBSD.ORG -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (FreeBSD) iD8DBQE90fhLo8KM2ULHQ/0RAhHiAJ9XuD8T4M8kgKl5DyZxZN0xe832KgCaA1j/ b8z9LyJTCpv/48LivdNlz+8= =3fEf -----END PGP SIGNATURE----- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message