aspose file tools*
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


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Applets
Bookmark "launching an application from an applet" Watch "launching an application from an applet" New topic
Author

launching an application from an applet

Eoin Mac Aoidh
Ranch Hand

Joined: May 19, 2005
Posts: 48
Hi,
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.


Thanks.

Eoin.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41574
    
  54
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 - my free Android networking tools app
Eoin Mac Aoidh
Ranch Hand

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

E
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: launching an application from an applet