|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.media.protocol.DataSource
net.java.sip.communicator.impl.neomedia.protocol.TranscodingDataSource
public class TranscodingDataSource
Represents a DataSource which transcodes the tracks of a specific input DataSource into a specific output Format. The transcoding is attempted only for tracks which actually support it for the specified output Format.
| Field Summary |
|---|
| Fields inherited from interface javax.media.Duration |
|---|
DURATION_UNBOUNDED, DURATION_UNKNOWN |
| Constructor Summary | |
|---|---|
TranscodingDataSource(javax.media.protocol.DataSource inputDataSource,
javax.media.Format outputFormat)
Initializes a new TranscodingDataSource instance to transcode the tracks of a specific DataSource into a specific output Format. |
|
| Method Summary | |
|---|---|
void |
connect()
Implements DataSource.connect(). |
void |
disconnect()
Implements DataSource.disconnect(). |
String |
getContentType()
Implements DataSource.getContentType(). |
Object |
getControl(String controlType)
Implements DataSource.getControl(String). |
Object[] |
getControls()
Implements DataSource.getControls(). |
javax.media.Time |
getDuration()
Implements DataSource.getDuration(). |
javax.media.protocol.SourceStream[] |
getStreams()
Gets the output streams that this instance provides. |
void |
start()
Implements DataSource.start(). |
void |
stop()
Implements DataSource.stop(). |
| Methods inherited from class javax.media.protocol.DataSource |
|---|
getLocator, initCheck, setLocator |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TranscodingDataSource(javax.media.protocol.DataSource inputDataSource,
javax.media.Format outputFormat)
inputDataSource - the DataSource which is to have its
tracks transcoded in a specific outptu FormatoutputFormat - the Format in which the new instance is to
transcode the tracks of inputDataSource| Method Detail |
|---|
public void connect()
throws IOException
DataSource.connect(). Sets up the very transcoding
process and just does not start it i.e. creates a Processor on
the inputDataSource, sets outputFormat on its tracks
(which support a Format compatible with outputFormat)
and connects to its output DataSource.
connect in class javax.media.protocol.DataSourceIOException - if creating the transcoding Processor,
setting its Format or connecting to it failspublic void disconnect()
DataSource.disconnect(). Stops and undoes the whole
setup of the very transcoding process i.e. disconnects from the output
DataSource of the transcodingProcessor and disposes of the
transcodingProcessor.
disconnect in class javax.media.protocol.DataSourcepublic String getContentType()
DataSource.getContentType(). Delegates to the actual
output of the transcoding.
getContentType in class javax.media.protocol.DataSourcepublic Object getControl(String controlType)
DataSource.getControl(String). Delegates to the actual
output of the transcoding.
getControl in interface javax.media.ControlsgetControl in class javax.media.protocol.DataSourcecontrolType - a String value which names the type of the
control to be retrieved
public Object[] getControls()
DataSource.getControls(). Delegates to the actual
output of the transcoding.
getControls in interface javax.media.ControlsgetControls in class javax.media.protocol.DataSourcepublic javax.media.Time getDuration()
DataSource.getDuration(). Delegates to the actual
output of the transcoding.
getDuration in interface javax.media.DurationgetDuration in class javax.media.protocol.DataSourcepublic javax.media.protocol.SourceStream[] getStreams()
public void start()
throws IOException
DataSource.start(). Starts the actual transcoding
process already set up with connect().
start in class javax.media.protocol.DataSourceIOException - if starting the transcoding fails
public void stop()
throws IOException
DataSource.stop(). Stops the actual transcoding
process if it has already been set up with connect().
stop in class javax.media.protocol.DataSourceIOException - if stopping the transcoding fails
|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||