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, setLocatorpublic RTPDataSource(long ssrc,
Format format)
ssrc - the SSRC of this datasourceformat - The format of the datapublic PushBufferStream[] getStreams()
getStreams in class PushBufferDataSourcepublic java.lang.String getContentType()
getContentType in class DataSourcepublic void connect()
connect in class DataSourcepublic void disconnect()
disconnect in class DataSourcepublic void start()
start in class DataSourcepublic void stop()
stop in class DataSourcepublic java.lang.Object getControl(java.lang.String arg0)
getControl in interface ControlsgetControl in class DataSourcearg0 - the content-typepublic java.lang.Object[] getControls()
getControls in interface ControlsgetControls in class DataSourcepublic Time getDuration()
getDuration in interface DurationgetDuration in class DataSourcepublic 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()