javax.media
接口 MediaHandler
- 所有已知子接口:
- DataSink, DataSinkProxy, Demultiplexer, MediaProxy, Player, Processor
- 所有已知实现类:
- BasicPlayer, BasicProcessor, MediaPlayer, MediaProcessor
public interface MediaHandler
MediaHandler is the base interface for objects
that read and manage media content delivered from a
DataSource.
There are currently three supported types of MediaHandler/code>:
Player, MediaProxy and DataSink.
|
方法摘要 |
void |
setSource(javax.media.protocol.DataSource source)
Sets the media source this MediaHandler
should use to obtain content. |
setSource
void setSource(javax.media.protocol.DataSource source)
throws java.io.IOException,
IncompatibleSourceException
- Sets the media source this
MediaHandler
should use to obtain content.
- 参数:
source - The DataSource used
by this MediaHandler.
- 抛出:
java.io.IOException - Thrown if there is an error
using the DataSource
IncompatibleSourceException - Thrown if
this MediaHandler cannot make use
of the DataSource.