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 ...

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.