Supported Formats and Platforms
Watch the screencast
Supported Platforms
JavaFX Media functionality consists of two components: platform-independent JavaFX layer APIs that enable developers to create applications for multiple devices, and a platform-dependent implementation of the media engine.
Figure 1
The platform-independent component is a set of APIs that is part of the JavaFX SDK. The platform-specific part is the implementation of the APIs for the particular platform.
The following platforms are supported by JavaFX Media:
| Operating System | JRE Version | Browser | |
|---|---|---|---|
| Windows | XP, Vista | JRE 1.6.x | Internet Explorer 6, Internet Explorer 7, Internet Explorer 8, FireFox 3 |
| Mac | Mac OS X 10.4, 10.5 | JDK 1.5 for applets and JDK 1.6 for stand-alone applications | Safari, FireFox 3 |
| Linux | Ubuntu 8.04 | JRE 1.6.x | FireFox 3 |
| Solaris | OpenSolaris 2009.06 | JRE 1.6.x | FireFox 3 |
Supported Media Codecs
The following table shows media engines supported by JavaFX Media functionality as well as video and audio codecs that can be used in JavaFX applications.
| Cross-Platform | Windows XP and Vista | Mac OS X 10.4 and 10.5 | Ubuntu 8.04 and OpenSolaris 2009.06 | |
|---|---|---|---|---|
| Media Engine | Cross-platform engine for FLV playback | DirectShow | Core Video | GStreamer |
| Video Codecs | On2 VP6 | All the codecs supported by Windows Media Player | All the codecs supported by Mac through Core Video | All the codecs supported by GStreamer. |
| Audio | MP3 playback on all platforms including desktop and mobile | All the audio formats supported by Windows Media Player | All the audio formats listed in QuickTime specification for Mac OS | All the audio formats supported by GStreamer. |
| Reference Information | On2 VP6 for Adobe Flash Player and JavaFX. | Multimedia File Types that Windows Media Player Supports. | Getting Started With QuickTime QuickTime Specification |
GStreamer Documentation |
The FLV container is supported by the media stack on all JavaFX platforms. A single movie encoded in this format works seamlessly on Windows, Mac, Linux, Solaris, and operating systems for mobile devices. Standard FLV mime settings are required on the server side to enable media streaming.
Because the major supported media engines are DirectShow, Core Video, and GStreamer, most of the features supported by these engines on the given operating system are provided for free, including the following:
- VP6+MP3 using FLV container
- MP3 for audio
- HTTP, file protocol support
- Progressive download
- Seeking
- Buffer progress
- Playback functions (Play, Pause, Mute, Balance, Volume)
The set of supported features and codecs for the mobile devices depends on the particular operating system installed. For example, Windows mobile OS supports WMV, 3GP, MP4, and MP3 formats. However, other operating systems might not support these codecs.
Supported Media Tools
The FLV, MOV, MP4, and WMV media files generated by the following tools have been tested with the JavaFX platform:
- On2 Flix
- Adobe Premier Pro CS4
- Telestream Episode Pro
- Sorenson Squeeze 5 for Flash Pro
- Apple Final Cut Pro
- Telestream Flip4Mac WMV
Recommended Resolution and Frame Rates
The following resolution parameters are recommended for applets and applications with animation.
- Applications with graphics
- 320x240
- 480x270
- 640x480
- Applications without graphics: 720p
The recommended frame rates are in the range of 16 through 30 fps.
Media Deployment
JavaFX Media applications can be deployed by all the standard means available on the JavaFX platform. Refer to the following documents for more information about different deployment models:
- Standard Execution Model
- Java Web Start Execution Model
- Run in Browser Execution Model
- Run in Mobile Emulator Execution Model
Unsupported Formats and Features
The following features are not supported on desktop devices:
- Sorenson FLV (most of YouTube)
- SWF (Flash)
- MPEG-4 or MOV on Windows
- WMV on Mac
- Third-party plugin
We welcome your participation in our community. Please keep your comments civil and on point. You may optionally provide your email address to be notified of repliesyour information is not used for any other purpose. By submitting a comment, you agree to these Terms of Use.
Sandeep Konchady
Staff Engineer, Sun Microsystems
Alla Redko
Technical Writer, Sun Microsystems