Using the Multimedia APIs

The Java Applet package (java.applet) package provides a simple API to allow you to quickly and easily incorporate multimedia support into your applets and JavaBeans. On top of this, the javax.media package provides a more comprehensive API allowing you to incorporate sound files, MIDI, image, and video content into your applications and Web pages. The latest 3D and Sound APIs extend these concepts even further, allowing you to immerse the user in a multimedia spectacular.

The main concepts that will be dealt with in this chapter are as follows:

  • Sound

  • Images

  • The Java 2D API

  • The Java 3D API

  • The Java Media Framework

Sound

To include sound in your application, you use the AudioClip interface in the Applet class. The interface ...

Get JavaBeans Unleashed 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.