public class RTPDataSource extends PushBufferDataSource
DURATION_UNBOUNDED, DURATION_UNKNOWN
Constructor and Description |
---|
RTPDataSource(long ssrc,
Format format)
Creates a new RTPDataSource
|
Modifier and Type | Method and Description |
---|---|
void |
connect()
Connect the datasource
|
void |
disconnect()
Disconnect the datasource
|
java.lang.String |
getContentType()
Returns the content type of this datasource.
|
java.lang.Object |
getControl(java.lang.String arg0)
Returns the control associated with the supplied content-type
of this datasource's stream.
|
java.lang.Object[] |
getControls()
Returns all the controls of this datasource's stream.
|
Time |
getDuration()
Returns the duration of this datasource.
|
long |
getJitter()
Returns this datasource's current jitter value.
|
ReceptionStats |
getSourceReceptionStats()
Returns the reception statistics of the source.
|
PushBufferStream[] |
getStreams()
Returns the stream associated with this datasource.
|
void |
handleRTPPacket(RTPHeader header,
byte[] data,
int offset,
int length)
Handles an RTP data packet
|
void |
start()
Start using this datasource.
|
void |
stop()
Stop using this datasource.
|
getLocator, initCheck, setLocator
public RTPDataSource(long ssrc, Format format)
ssrc
- the SSRC of this datasourceformat
- The format of the datapublic PushBufferStream[] getStreams()
getStreams
in class PushBufferDataSource
public java.lang.String getContentType()
getContentType
in class DataSource
public void connect()
connect
in class DataSource
public void disconnect()
disconnect
in class DataSource
public void start()
start
in class DataSource
public void stop()
stop
in class DataSource
public java.lang.Object getControl(java.lang.String arg0)
getControl
in interface Controls
getControl
in class DataSource
arg0
- the content-typepublic java.lang.Object[] getControls()
getControls
in interface Controls
getControls
in class DataSource
public Time getDuration()
getDuration
in interface Duration
getDuration
in class DataSource
public void handleRTPPacket(RTPHeader header, byte[] data, int offset, int length)
header
- The RTP headerdata
- The RTP dataoffset
- The offset in the datalength
- The length of the datapublic long getJitter()
public ReceptionStats getSourceReceptionStats()