| 
 | |||||||||
| 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 stream| Method Detail | 
|---|
protected abstract void addPacket(RTPHeader header,
                                  byte[] data,
                                  int offset,
                                  int length)
public Format getFormat()
getFormat in interface PushBufferStreamgetFormat in interface RTPControlpublic void setTransferHandler(BufferTransferHandler transferHandler)
setTransferHandler in interface PushBufferStreampublic ContentDescriptor getContentDescriptor()
getContentDescriptor in interface SourceStreampublic long getContentLength()
getContentLength in interface SourceStreampublic boolean endOfStream()
endOfStream in interface SourceStreampublic java.lang.Object[] getControls()
getControls in interface Controlspublic 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 PushBufferStreamjava.io.IOException
public void addFormat(Format fmt,
                      int payload)
addFormat in interface RTPControlpublic ReceptionStats getReceptionStats()
getReceptionStats in interface RTPControlpublic GlobalReceptionStats getGlobalStats()
getGlobalStats in interface RTPControlpublic Format[] getFormatList()
getFormatList in interface RTPControlpublic Format getFormat(int payload)
getFormat in interface RTPControlpublic java.awt.Component getControlComponent()
getControlComponent in interface Controlprotected 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 | ||||||||