In this chapter, we will cover the following topics:
Accessing media assets
Loading and displaying images with ImageView
Applying effects and transformations to images
Creating image effects with blending
Playing audio with MediaPlayer
Playing video with MediaView
Creating a media playback component
One of the most celebrated features of JavaFX is its inherent support for media playback. As of version 1.2, JavaFX has the ability to seamlessly load images in different formats, play audio, and play video in several formats using its built-in components. To achieve platform independence and performance, the support for media playback in JavaFX is implemented as a two-tiered strategy:
Platform-independent APIs the JavaFX SDK comes with a media API designed to provide a uniform set of interfaces to media functionalities. Part of the platform-independence offerings include a portable codec (On2's VP6), which will play on all platforms where JavaFX media playback...