|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.fmj.media.rtp.RTPDataStream
public abstract class RTPDataStream
A generic RTP Data Stream
Field Summary | |
---|---|
protected double |
clockRate
|
protected java.lang.Object[] |
controls
|
protected long |
firstSequence
|
protected Format |
format
|
protected BufferTransferHandler |
handler
|
protected long |
jitter
|
protected long |
lastSequence
|
protected RTPReceptionStats |
receptionStats
|
protected long |
ssrc
|
protected int |
threshold
|
protected java.util.Timer |
timer
|
Fields inherited from interface javax.media.protocol.SourceStream |
---|
LENGTH_UNKNOWN |
Constructor Summary | |
---|---|
RTPDataStream(long ssrc,
Format format)
Creates a new RTPDataStream |
Method Summary | |
---|---|
void |
addFormat(Format fmt,
int payload)
|
protected abstract void |
addPacket(RTPHeader header,
byte[] data,
int offset,
int length)
|
protected void |
calculateJitter(long rtpTimestamp)
Performs jitter calculations |
boolean |
endOfStream()
|
ContentDescriptor |
getContentDescriptor()
|
long |
getContentLength()
|
java.lang.Object |
getControl(java.lang.String controlType)
|
java.awt.Component |
getControlComponent()
|
java.lang.Object[] |
getControls()
|
long |
getFirstSequence()
Returns the first sequence number seen |
Format |
getFormat()
|
Format |
getFormat(int payload)
|
Format[] |
getFormatList()
|
GlobalReceptionStats |
getGlobalStats()
|
long |
getJitter()
Returns the jitter calculation |
long |
getLastSequence()
Returns the last sequence number seen |
ReceptionStats |
getReceptionStats()
|
abstract void |
read(Buffer buffer)
|
void |
setTransferHandler(BufferTransferHandler transferHandler)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Format format
protected double clockRate
protected BufferTransferHandler handler
protected final java.util.Timer timer
protected long ssrc
protected int threshold
protected java.lang.Object[] controls
protected RTPReceptionStats receptionStats
protected long jitter
protected long firstSequence
protected long lastSequence
Constructor Detail |
---|
public RTPDataStream(long ssrc, Format format)
format
- The format of the streamMethod Detail |
---|
protected abstract void addPacket(RTPHeader header, byte[] data, int offset, int length)
public Format getFormat()
getFormat
in interface PushBufferStream
getFormat
in interface RTPControl
public void setTransferHandler(BufferTransferHandler transferHandler)
setTransferHandler
in interface PushBufferStream
public ContentDescriptor getContentDescriptor()
getContentDescriptor
in interface SourceStream
public long getContentLength()
getContentLength
in interface SourceStream
public boolean endOfStream()
endOfStream
in interface SourceStream
public java.lang.Object[] getControls()
getControls
in interface Controls
public java.lang.Object getControl(java.lang.String controlType)
getControl
in interface Controls
public abstract void read(Buffer buffer) throws java.io.IOException
read
in interface PushBufferStream
java.io.IOException
public void addFormat(Format fmt, int payload)
addFormat
in interface RTPControl
public ReceptionStats getReceptionStats()
getReceptionStats
in interface RTPControl
public GlobalReceptionStats getGlobalStats()
getGlobalStats
in interface RTPControl
public Format[] getFormatList()
getFormatList
in interface RTPControl
public Format getFormat(int payload)
getFormat
in interface RTPControl
public java.awt.Component getControlComponent()
getControlComponent
in interface Control
protected void calculateJitter(long rtpTimestamp)
public long getJitter()
public long getLastSequence()
public long getFirstSequence()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |