Showing posts with label Fobs4JMF. Show all posts
Showing posts with label Fobs4JMF. Show all posts

Sunday, January 18, 2009

Using Fobs4JMF in your Application!!

Again i am posting after a long time..however i have been busy in studies and exams so got just no time. i said in my last post that i was working in a media application and i am still working on it.

 In my last post, i wrote about Fobs4JMF..and i cant believe so many people came to read it though it did not give any info regarding how to use it. As there is a large interest among people to know how to use Fobs4JMF, i want to share what i learnt in order to use Fobs4JMF practically in your Application.

Practically!! Yes, the reason is that in the webpage of Fobs4JMF, the approach to use and install it is correct but did not seem so easy and also the step regarding registering plugin is a bit complicated.

I used Fobs4JMF in my application purely in terms of classpath and i never registered my plugin and still it worked.

The steps for Windows are:

1. Make a "lib" directory in the directory where you have your Main class which you run to start your application.

2. Download Fobs4JMF binaries from their website.

3. Copy jmf.jar, fobs4jmf.jar, fobs4jmf.dll and jmf.properties from the Fobs4JMF downloaded package and paste them in the "lib" directory.

4. Type in command line: java -cp "lib/jmf.jar";"lib/fobs4jmf.jar";"lib/fobs4jmf.dll";"." YourApplication

5. Your application can now play various formats, however there may be problems in some formats.

As i developed Fobs4JMF based application, i realized its good for audio purposes however when playing video files, the quality of picture was not so good and some video files were not played at all.

The most obvious advantage of using Fobs4JMF is that the code that worked for jmf works here as well.

Though there are some problems, however i still believe that people behind the Fobs4JMF project have done a great job and i am sure that the Fobs4JMF will only improve with time.

 

Share this Page:-