Integrating SWT and JMF in Eclipse - java

Trying to build a simple MP3 player with a GUI front end. Basically I can get an mp3 to play fine using JMF but when I import/use org.eclipse.swt it just refuses to play the mp3. I am guessing that somehow that using SWT is conflicting in some way with JMF but I dont know how or how to fix it.

Related

Library that can extract and play video file

I will build a simple program that
Can play video file (.mp4) in my program.
Can extract the video, so that I can get the title, length, subtitle, and the audio, etc.
What is the library in Java that I should use?
I have googled, but I still can not find the best library. By the way, I have tried to download xuggler, but I can not find any file.exe that can install this library.
Please be kind because I never make a code regarding video player and video extractor.
For playing audio and video in your java program use Java Media Framework. It contains jar files that will provide you classes to play and handle audio and video files.
Use this tutorial for understanding of JMF.
I have successed to use xuggler in java. Xuggler website is suck because they don't keep good installer in their website. Every beginner who use xuggler must be have some trouble like me.
For every one who want to use Xuggler, you can follow this website
http://www.benfarahmand.com/2012/11/tutorial-using-xuggler-in-processing.html
the link to download file.exe xuggler is here: https://www.dropbox.com/s/oh7zcyilibzfoyb/xuggle-xuggler.5.1.0-win64-setup.exe
Thank you :)

Using JMF with jffMPEG

I`m programing in Java with Eclipse. On my project i use JMF in my java application. I need to play mp4 files so i am trying to add jffMPEG to use with JMF but meanwhile with no success. I followed this tutorial.
But on second step, register the following "Demultiplexers" i get
"JMF Registry Error - Could not add item".
Can anyoune please help me playing MP4 in jPanel or refer me to good tutorial how to use jffMPEG in java.

Making apk from jar using microemulator

Well i `ve made an app using java me and as graphics i used lwuit library which i added into the midlet`s jar. On Nokia it runs smooth and i wanted to port it to android. So i found out about microemulator http://microemu.blogspot.ro/2008/11/running-java-me-applications-on-android.html and i followed those steps and i got the apk. However when i run it into the Android Emulator it closes at start. I don`t know what may be the problem because i was able to convert the demo jar app into apk and it ran succesfuly.
Any ideas on what should i do?
I suggest you port your application to Codename One which should be pretty simple. It has proper Android support which will make your application look and act native on Android.

Can I use vlcj library in an Applet?

How can I use vlcj-1.2.0 to play a video file in an applet if I need libvlc.dll from user's VLC folder in Program_Files?
Can I load the native library from the applet? Or can I use the firefox VLC plugin?
Or do you know any other solution?
If you include the native library with the applet (you don't need VLC installed to use vlcj as long as you have libvlc.dll/so and associated plugins) then you should be able to use it, but only if it's signed.
If you just want to play video on the server though, a much simpler solution would be to save all the videos as FLV and then use flash to play them back. Or HTML5 of coruse!

Java: cross-platform .flv playback

I'm looking for a way to playback .flv files using java. This means I will need a ffmpeg lib that is cross-platform. I've been toying with jmf and fobs4jmf, but I cannot playback in linux because I need a native library (maybe fobs4jmf.so?).
Is there any java lib that allows me to playback .flv besides fobs4jmf? Or fobs4jmf can be used in linux, mac, etc? A pure-java lib would be perfect!
Edit: The player will be deployed as a java web start app (targetting jre6).
I'm probably not reading your question correctly, but I don't understand what you have against fobs4jmf. It seems to support Mac and Linux fine, see http://fobs.sourceforge.net/f4jmf_first.html
i would use a blatant shortcut. use an embedded browser and have it play the file using the browser's flash plugin.
http://www.eclipse.org/swt/snippets/#browser
heres how to embed a browser in your app, and just deliver it content through a really simple embedded web server. im sure you can just pickup a flash app that plays flv's no problem with the help of google.
you probably want a go with javafx in this: http://java.dzone.com/news/video-getting-started-with-jav
Xuggler works on Linux, Mac and Windows. I think it'll do the trick.

Categories