javax.media
Interface MediaProxy

All Superinterfaces:
MediaHandler

public interface MediaProxy
extends MediaHandler

MediaProxy is a MediaHandler which processes content from one DataSource, to produce another DataSource.

Typically, a MediaProxy reads a text configuration file that contains all of the information needed to make a connection to a server and obtain media data. To produce a Player from a MediaLocator referencing the configuration file, Manger:

Version:
1.10, 97/08/25.
See Also:
Manager

Method Summary
 DataSource getDataSource()
          Obtain the new DataSource.
 
Methods inherited from interface javax.media.MediaHandler
setSource
 

Method Detail

getDataSource

DataSource getDataSource()
                         throws IOException,
                                NoDataSourceException
Obtain the new DataSource. The DataSource is already connected.

Returns:
the new DataSource for this content.
Throws:
IOException - Thrown when if there are IO problems in reading the the original or new DataSource.
NoDataSourceException - Thrown if this proxy can't produce a DataSource.


Copyright © 2011. All Rights Reserved.