Java Reference
In-Depth Information
CHAPTER 16
Media with JavaFX
JavaFX provides a media-rich API capable of playing audio and video. The Media API
allows developers to incorporate audio and video into their Rich Client Applications.
One of the main benefits of the Media API is its cross-platform abilities when distribut-
ing media content via the web. With a range of devices (tablets, music players, TVs, and
so on) that need to play multimedia content, the need for a cross-platform API is essen-
tial.
Imagine a not-so-distant future where your TV or wall is capable of interacting with
you in ways that you've never dreamed possible. For instance, while viewing a movie
you could select items or clothing used in the movie to be immediately purchased, all
from the comfort of your home. With this future in mind, developers seek to enhance the
interactive qualities of their media-based applications.
In this chapter you will learn how to play audio and video in an interactive way. Find
your seats for Act III of JavaFX as audio and video take center stageā€”as depicted in
Figure 16-1 .
Figure 16-1 . Audio and video
 
 
Search WWH ::




Custom Search