net.sf.fmj.media.rtp
Class RTPVideoDataStream

java.lang.Object
  extended by net.sf.fmj.media.rtp.RTPDataStream
      extended by net.sf.fmj.media.rtp.RTPVideoDataStream
All Implemented Interfaces:
Control, Controls, PushBufferStream, SourceStream, RTPControl

public class RTPVideoDataStream
extends RTPDataStream
implements PushBufferStream

Represents a stream sent via RTP

Version:
1-1-alpha3
Author:
Andrew G D Rowley

Field Summary
 
Fields inherited from class net.sf.fmj.media.rtp.RTPDataStream
clockRate, controls, firstSequence, format, handler, jitter, lastSequence, receptionStats, ssrc, threshold, timer
 
Fields inherited from interface javax.media.protocol.SourceStream
LENGTH_UNKNOWN
 
Constructor Summary
RTPVideoDataStream(long ssrc, Format format)
          Creates a new RTPDataStream
 
Method Summary
protected  void addPacket(RTPHeader header, byte[] data, int offset, int length)
          Adds a packet to the buffers
 void read(Buffer buffer)
           
 void run()
          Sends the first packet in the queue (and all packets with the same timestamp)
 
Methods inherited from class net.sf.fmj.media.rtp.RTPDataStream
addFormat, calculateJitter, endOfStream, getContentDescriptor, getContentLength, getControl, getControlComponent, getControls, getFirstSequence, getFormat, getFormat, getFormatList, getGlobalStats, getJitter, getLastSequence, getReceptionStats, setTransferHandler
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.media.protocol.PushBufferStream
getFormat, setTransferHandler
 
Methods inherited from interface javax.media.protocol.SourceStream
endOfStream, getContentDescriptor, getContentLength
 
Methods inherited from interface javax.media.Controls
getControl, getControls
 

Constructor Detail

RTPVideoDataStream

public RTPVideoDataStream(long ssrc,
                          Format format)
Creates a new RTPDataStream

Parameters:
format - The format of the data
Method Detail

addPacket

protected void addPacket(RTPHeader header,
                         byte[] data,
                         int offset,
                         int length)
Adds a packet to the buffers

Specified by:
addPacket in class RTPDataStream
Parameters:
header - The header of the packet
data - The data of the packet
offset - The offset of the packet
length - The length of the packet

read

public void read(Buffer buffer)
Specified by:
read in interface PushBufferStream
Specified by:
read in class RTPDataStream

run

public void run()
Sends the first packet in the queue (and all packets with the same timestamp)