Java™ Media APIs: Cross-Platform Imaging, Media, and Visualization
by Alejandro Terrazas, John Ostuni, Michael Barlow
MediaHandler
MediaHandler is the centralized interface for objects that read and control media delivered from a DataSource object. Interfaces that extend MediaHandler include Player, Processor, DataSink, and Demultiplexer, which are all key classes commonly used in JMF programs.
The MediaHandler interface consists of a single method setSource(). The method accepts a DataSource and associates or links that DataSource with the object in question: that is the location in which the data to be handled will be obtained.
The creation of Players, Processors, or DataSinks by the Manager class requires a DataSource that the Manager needs to create as a prestep if it isn't supplied with a DataSource as part of the call. Part of the creation process by the ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access