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
:
DataSource
for the protocol described by the MediaLocator
MediaProxy
to read
the configuration file using the content-type of the
DataSource
DataSource
from the MediaProxy
Player
using the content-type of the new
DataSource
Manager
Modifier and Type | Method and Description |
---|---|
DataSource |
getDataSource()
Obtain the new
DataSource . |
setSource
DataSource getDataSource() throws IOException, NoDataSourceException
DataSource
.
The DataSource
is already connected.DataSource
for this content.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 © 2012 CableLabs. All Rights Reserved.