The previous two recipes, Playing audio with MediaPlayer and Playing video with MediaView, show you how to build applications quickly to playback media sources with basic controls, such as play, pause, and stop. However, the Media API supports more functionalities than what have been discussed so far. This recipe shows you how to build a custom media component to playback media sources providing extended functionalities such as fast forward, reverse, and timing information.
This recipe uses classes from the Media API located in the javafx.scene.media
package. The example presented here extends the code from the previous recipe Playing video with MediaView to create a playback component. The component will take advantage of the functionalities and runtime data provided by the Media API to extend the features of the video player example. Before you continue, ensure that you are familiar with the materials covered in the recipes Playing audio...