javax.media
Interface MediaHandler

All Known Subinterfaces:
MediaProxy, Player, ServiceMediaHandler

public interface MediaHandler

MediaHandler is the base interface for objects that read and manage media content delivered from a DataSource.

There are currently two supported types of MediaHandler: Player and MediaProxy.

Version:
1.5, 05/10/17.
See Also:
Player, MediaProxy

Method Summary
 void setSource(DataSource source)
          Set the media source the MediaHandler should use to obtain content.
 

Method Detail

setSource

void setSource(DataSource source)
               throws IOException,
                      IncompatibleSourceException
Set the media source the MediaHandler should use to obtain content.

Parameters:
source - The DataSource used by this MediaHandler.
Throws:
IOException - Thrown if there is an error using the DataSource
IncompatibleSourceException - Thrown if this MediaHandler cannot make use of the DataSource.


Copyright © 2011. All Rights Reserved.