|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.media.protocol.DataSource
javax.media.protocol.PushBufferDataSource
net.sf.fmj.media.rtp.RTPDataSource
public class RTPDataSource
Represents an RTP Data Source
| Field Summary |
|---|
| Fields inherited from interface javax.media.Duration |
|---|
DURATION_UNBOUNDED, DURATION_UNKNOWN |
| Constructor Summary | |
|---|---|
RTPDataSource(long ssrc,
Format format)
Creates a new RTPDataSource |
|
| Method Summary | |
|---|---|
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. |
| 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 RTPDataSource(long ssrc,
Format format)
ssrc - the SSRC of this datasourceformat - The format of the data| Method Detail |
|---|
public 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-type
public java.lang.Object[] getControls()
getControls in interface ControlsgetControls in class DataSourcepublic Time getDuration()
getDuration in interface DurationgetDuration 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()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||