<< December 12, 2008 | Home | December 14, 2008 >>

JavaFX 1.0 On Linux: Video

[Update (Wed Jun 3 07:45:43 PDT 2009)]: As of June 2, 2009, you can download the Linux and Solaris version of JavaFX 1.2 SDK directly from http://javafx.com. The Linux and Solaris support is preview only.[/]

In the two previous posts, I showed how to install JavaFX SDK 1.0 and the JavaFX 1.0 NetBeans Plugin on Linux machines. In both cases, I used the Mac version of the JavaFX SDK.

This approach won't give us any native libraries for Linux. However, thanks to http://twitter.com/lqd (via Pushing Pixels), we know a place where we can get those:

If you look carefully, you may find jar files whose names contain "natives". Although not complete, the various Linux and Solaris platforms are represented. Download, unjar, and throw the resulting *.so files into the appropriate place, you've gotten at least some of the native capabilities. The most interesting of them all is

jmc-natives-linux-i586__V1.0.0.jar

which contains

libGStreamer.so
libon2_decoder.so

That could only mean one thing—JavaFX videos on Linux. Here it is (Linuxy format, you need extra software to view it on Windows and Mac):

JavaFX Video on Linux

This is an Ogg Theora video recorded with gtk-recordMydesktop in Fedora 10/i586 with OpenJDK 6 (in VirtualBox 2.0.6 in Vista SP1, on the other side of the dual-boot). It is also the video played by JavaFX inside the video. I wasn't able to play FLV videos when I tried. Well, they did say it's not ready.