File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Applets and the fly likes launching an application from an applet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Applets
Bookmark "launching an application from an applet" Watch "launching an application from an applet" New topic

launching an application from an applet

Eoin Mac Aoidh
Ranch Hand

Joined: May 19, 2005
Posts: 48
I would like to be able to show a video from my applet.
I am running my applet on a pocket pc. All I want to do is give a link in some html where you say
How will it know what application to launch the video in?

When testing the html code above in Internet Explorer it launches the appropriate programme and shows the video. Unfortunately from the html in my applet it acknowledges that it is a link(underlines it in blue), but nothing happens when I click on it.


Ulf Dittmer

Joined: Mar 22, 2005
Posts: 39552
I am guessing that whatever component you're using to display HTML in an applet has no idea what AVI files are or what to do with them. Unless you can teach that component how to handle such a file, you may need to code up a little viewer for AVI as part of your application.

The OtherOpenSourceProjectsFaq page links to several libraries that can play video (like JMF, QuickTime and JVLC), but I'm not sure which of those you'll be able to get to install and run on a Pocket PC. JMF is probably your best bet, as it supports many flavors of AVI, and is an all-Java solution.
[ September 04, 2007: Message edited by: Ulf Dittmer ]

Ping & DNS - updated with new look and Ping home screen widget
Eoin Mac Aoidh
Ranch Hand

Joined: May 19, 2005
Posts: 48
Thanks for the pointer Ulf.

I agree. Here's the link:
subject: launching an application from an applet
Similar Threads
Applet with custom classes
applet not inited, help me
simple applet won't run
Unloading JVM