The Control and Processing Chains

Four key classes play central roles in all JMF control and processing. These four classes form links in a chain who's first element is always a source of media. Depending on the particular task that media is then handled (such as playing or processing), that handling might be the end result itself (such as a Player); or the handling might result in a new data source or even a persistent media object (for example, a new media file).

Figure 8.9 shows the key classes involved in playing media. The media is sourced through a DataSource object. That is used to create a Player object, which renders the media to the appropriate hardware devices.

Figure 8.9. Playing media with the JMF: The media is sourced through a ...

Get Java™ Media APIs: Cross-Platform Imaging, Media, and Visualization 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.