Chapter 12Embedded Video and Music

Key Skills & Concepts

• Adding video to an app

• Inverse binding

• Using the MediaPlayer

With the abundance of business and sites built around streaming media, it is only natural that JavaFX allow you to take full advantage of video and audio media. In the past, programming an application to play any kind of media meant hours of writing controls, finding the right codecs for the files you wanted to play, and writing parsers to read the media files. It was long and arduous work that you would really only attempt if you were completely confident in your abilities as a programmer.

JavaFX has packaged a few nodes that make working with media files as easy as possible. In this chapter you learn about the MediaView ...

Get JavaFX A Beginners Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.