JavaFX 2 seems to ship with a completely new media playback API not related to any existing JavaSE API.
Some sources claim that the underlying functionality is provided by GStreamer. But I wonder if this only applies to Linux or to all supported platforms (Windows/Mac).
Can JavaFX use any codec supported by the platform’s GStreamer library?
Or does JavaFX ship with its own internal version with limited codec support (and can additional codecs be added by the developer)?
How would a typical code example playing some audio or video look like?
Citing the JavaFX FAQ:
A comprehensive list of supported media formats for Java 8 is provided in the Java 8 media Javadoc.