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:
- constructs a
DataSource
for the protocol described by the MediaLocator
- constructs a
MediaProxy to read
the configuration file using the content-type of the
DataSource
- obtains a new
DataSource
from the MediaProxy
- constructs the
Player using the content-type of the new
DataSource
- Version:
- 1.10, 97/08/25.
- See Also:
Manager
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.