Playing Media with Java Media Components
- Playing Media with Java Media Components
- Get the JMC Distribution
- Play Media with a Basic Media Player
- Tour the JMC Playback API
- Play Media with an Advanced Media Player
- Conclusion
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.