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.
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
- See Also:
Manager
getDataSource
public DataSource getDataSource()
throws java.io.IOException,
NoDataSourceException
- Obtain the new
DataSource
.
The DataSource
is already connected.
- Returns:
- the new
DataSource
for this content.
- Throws:
java.io.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 © 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.