Use is subject to License Terms. Your use of this web site or any of its content or software indicates your agreement to be bound by these License Terms.

Copyright © 2006 Sun Microsystems, Inc. All rights reserved.

JSR-927 (Maintenance Release)

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.

See Also:
Player, MediaProxy

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

Method Detail

setSource

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

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

JSR-927 (Maintenance Release)

Copyright © 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to License Terms. Your use of this web site or any of its content or software indicates your agreement to be bound by these License Terms.

For more information, please consult the JSR 927 specification.