tags:

views:

26

answers:

2

Hi every body,

i have a simple Java off-line application that it has to show and control a movie ....

What is the package and classes that contain the methods that do such tasks?!

i expect the existence like the following methods :

1) void PlayMovie(); // to play the movie...

2) void PlayMovie(int Time); // to play the movie starting from a specific time...

3) void GoTo(int Time); // Go to play a specific time...

4) void Stop(); // Stop playing the movie...

5) int GetDuration(); // returns the movie lenght...

6) String GetCodek(); // returns the codek name...

And so ....

Is there a complete set to handel and control the movie like above?.... or i am just dreaming !

PLEASE NOTE THAT I AM ON A MAC OSX-10.6 (and not windows) Thanks for any help

A: 

You can take a look at Java Media Framework API (JMF)

You can find a simple example of a JMF utilisation on snipplr

Colin Hebert
A: 

What you are looking for is the Java Media Framework. It has been around for many many years, and is pretty straight forward to use.

Check out the Wiki page http://en.wikipedia.org/wiki/Java_Media_Framework for information, or take a look on the Oracle site for plenty of examples.

Codemwnci