Home > Articles > Programming > Java

Playing Media with Java Media Components

Recognizing media's importance to the Web, Sun Microsystems announced the Java Media Components project, which had the goal of providing basic media playback support for JavaFX applications. In this introduction to JMC, Jeff Friesen presents a basic media player and drills down into JMC to create experimental media players that show you how to introduce a custom control panel and brand each frame of a playing video. Jeff closes by introducing an advanced media player with a slick-looking and dynamic control panel.
Like this article? We recommend 

Like this article? We recommend

Playing Media with Java Media Components

Recognizing media's importance to the Web, Sun Microsystems announced the Java Media Components project at its 2007 JavaOne conference. The initial goal of this successor to the stagnant Java Media Framework project was to provide basic media playback support for JavaFX applications. A future goal is to support video capture. (For a backgrounder on Java Media Components, check out former Sun employee Chet Haase's Media Frenzy blog post.)

Although Java Media Components provides the foundation for the JavaFX media classes, you can also use this technology with Swing applications, and that is the focus of this article.

You'll first learn how to obtain JMC for your Windows, Mac OS X, or Linux platform. You'll next explore a simple Swing-based media player that provides a brief introduction to the JMC Playback API.

After touring this API in greater depth, you'll explore an advanced version of the basic media player that incorporates a more interesting user interface.

InformIT Promotional Mailings & Special Offers

I would like to receive exclusive offers and hear about products from InformIT and its family of brands. I can unsubscribe at any time.