javax.media.rtp
Class RTPPushDataSource

java.lang.Object
  |
  +--javax.media.protocol.DataSource
        |
        +--javax.media.protocol.PushDataSource
              |
              +--javax.media.rtp.RTPPushDataSource
All Implemented Interfaces:
Controls, Controls, Duration
Direct Known Subclasses:
RTPSocket

Deprecated. This inferface has been replaced with the RTPConnector interface.

public class RTPPushDataSource
extends PushDataSource

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.

See Also:
DataChannel

Field Summary
(package private)  DataSource childsrc
          Deprecated. The actual datasource created by the RTPSM and passed to the handler
(package private)  java.lang.String contentType
          Deprecated. The content type of this socket.
(package private)  OutputDataStream inputstream
          Deprecated. The input stream of this socket.
(package private)  PushSourceStream outputstream
          Deprecated. The output stream of this socket.
 
Fields inherited from class javax.media.protocol.DataSource
 
Fields inherited from interface javax.media.Duration
DURATION_UNBOUNDED, DURATION_UNKNOWN
 
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
 

Field Detail

outputstream

PushSourceStream outputstream
Deprecated. 
The output stream of this socket. Implements javax.media.protocol.PushSourceStream. Data on this stream is transferrred to the SourceTransferHandler


inputstream

OutputDataStream inputstream
Deprecated. 
The input stream of this socket. Data on this stream is sent out on the wire using the underlying network/transport protocol Implements javax.media.rtp.OutputDataStream


contentType

java.lang.String contentType
Deprecated. 
The content type of this socket. needs to be set by the creator of this datasocket before a player can be created for this datasource.


childsrc

DataSource childsrc
Deprecated. 
The actual datasource created by the RTPSM and passed to the handler

Constructor Detail

RTPPushDataSource

public RTPPushDataSource()
Deprecated. 
Method Detail

setChild

public void setChild(DataSource source)
Deprecated. 

getOutputStream

public PushSourceStream getOutputStream()
Deprecated. 
Method to retrive the output stream of this two way data source


getInputStream

public OutputDataStream getInputStream()
Deprecated. 
Method to retrieve the input stream of this two way data source


setOutputStream

public void setOutputStream(PushSourceStream outputstream)
Deprecated. 
Method to set the output stream of this two way data source


setInputStream

public void setInputStream(OutputDataStream inputstream)
Deprecated. 
Method to set the input stream of this two way data source


getContentType

public java.lang.String getContentType()
Deprecated. 
Implementation of javax.media.protocol.DataSource.getContentType()

Specified by:
getContentType in class DataSource
Returns:
The name that describes the media content.

setContentType

public void setContentType(java.lang.String contentType)
Deprecated. 
Method used to set the content type of this two way data source


connect

public void connect()
             throws java.io.IOException
Deprecated. 
Set the boolean to true and dont do anything else in connect for now

Specified by:
connect in class DataSource
Throws:
java.io.IOException - Thrown if there are IO problems when connect is called.

disconnect

public void disconnect()
Deprecated. 
Set the boolean to false and dont do anything else in connect for now

Specified by:
disconnect in class DataSource

initCheck

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. So, here this method is overrident to esnure that no errors are thrown and in the absence of a MediaLocator, nothing is done for now

Overrides:
initCheck in class DataSource

start

public void start()
           throws java.io.IOException
Deprecated. 
Initiates data-transfer. Start must be called before data is available. Connect must be called before start.

Specified by:
start in class DataSource
Throws:
java.io.IOException - thrown if the source has IO trouble at startup time.

stop

public void stop()
          throws java.io.IOException
Deprecated. 
Stops data-transfer. If the source has not already been connected and started, stop does nothing.

Specified by:
stop in class DataSource
java.io.IOException

isStarted

public boolean isStarted()
Deprecated. 
Method to find out if the source had been started


getControls

public java.lang.Object[] getControls()
Deprecated. 
Returns an zero length array because no controls are supported.

Returns:
a zero length Object array.

getControl

public java.lang.Object getControl(java.lang.String controlName)
Deprecated. 
Returns null because no controls are implemented.

Returns:
null.

getDuration

public Time getDuration()
Deprecated. 
Returns null since the duration of the streams of this datasource are not known

Returns:
A Time object representing the duration or DURATION_UNKNOWN.

getStreams

public PushSourceStream[] getStreams()
Deprecated. 
Description copied from class: PushDataSource
Get the collection of streams that this source manages. The collection of streams is entirely content dependent. The ContentDescriptor of this DataSource provides the only indication of what streams can be available on this connection.

Specified by:
getStreams in class PushDataSource
Returns:
The collection of streams for this source.