|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--javax.media.protocol.DataSource | +--javax.media.protocol.PushDataSource | +--javax.media.rtp.RTPPushDataSource
This is an abstraction for a RTP data handler. The source allows the underlying network/transport protocol to be abstracted from the RTP handler. The source is a TWO WAY datasource in that it has an output data stream (PushSourceStream) as well as an input data stream (OutputDataStream). RTPDataSocket extends javax.media.protocol.DataSource. Data flowing out of or in to this source is a stream of bytes in the form of a RTP packet and does not contain any information dependant on the network/transport protocol that will be used to transmit these bytes. Note: an RTPPushDataSource can either handle the DataChannel of an RTP session or the control channel of an RTP session. An RTPPushDataSource that handles the data channel of an RTP session must implement the interface defined in javax.media.rtp.DataChannel.
DataChannel
Constructor Summary | |
RTPPushDataSource()
Deprecated. |
Method Summary | |
void |
connect()
Deprecated. Set the boolean to true and dont do anything else in connect for now |
void |
disconnect()
Deprecated. Set the boolean to false and dont do anything else in connect for now |
java.lang.String |
getContentType()
Deprecated. Implementation of javax.media.protocol.DataSource.getContentType() |
java.lang.Object |
getControl(java.lang.String controlName)
Deprecated. Returns null because no controls are implemented. |
java.lang.Object[] |
getControls()
Deprecated. Returns an zero length array because no controls are supported. |
Time |
getDuration()
Deprecated. Returns null since the duration of the streams of this datasource are not known |
OutputDataStream |
getInputStream()
Deprecated. Method to retrieve the input stream of this two way data source |
PushSourceStream |
getOutputStream()
Deprecated. Method to retrive the output stream of this two way data source |
PushSourceStream[] |
getStreams()
Deprecated. Get the collection of streams that this source manages. |
protected void |
initCheck()
Deprecated. This two way data source does not have any medialocator and datasource will throw an Uninitialized DataSource error incase initCheck() is called on this datasource. |
boolean |
isStarted()
Deprecated. Method to find out if the source had been started |
void |
setChild(DataSource source)
Deprecated. |
void |
setContentType(java.lang.String contentType)
Deprecated. Method used to set the content type of this two way data source |
void |
setInputStream(OutputDataStream inputstream)
Deprecated. Method to set the input stream of this two way data source |
void |
setOutputStream(PushSourceStream outputstream)
Deprecated. Method to set the output stream of this two way data source |
void |
start()
Deprecated. Initiates data-transfer. |
void |
stop()
Deprecated. Stops data-transfer. |
Methods inherited from class javax.media.protocol.DataSource |
getLocator,
setLocator |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public RTPPushDataSource()
Method Detail |
public void setChild(DataSource source)
public PushSourceStream getOutputStream()
public OutputDataStream getInputStream()
public void setOutputStream(PushSourceStream outputstream)
public void setInputStream(OutputDataStream inputstream)
public java.lang.String getContentType()
public void setContentType(java.lang.String contentType)
public void connect() throws java.io.IOException
connect
is called.public void disconnect()
protected void initCheck()
public void start() throws java.io.IOException
public void stop() throws java.io.IOException
public boolean isStarted()
public java.lang.Object[] getControls()
Object
array.public java.lang.Object getControl(java.lang.String controlName)
null
because no controls are implemented.null
.public Time getDuration()
Time
object representing the duration or DURATION_UNKNOWN.public PushSourceStream[] getStreams()
ContentDescriptor
of this DataSource
provides the only indication of
what streams can be available on this connection.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |