|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.fmj.media.rtp.RTPDataStream net.sf.fmj.media.rtp.RTPAudioDataStream
public class RTPAudioDataStream
Represents a stream sent via RTP
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 | |
---|---|
RTPAudioDataStream(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 |
---|
public RTPAudioDataStream(long ssrc, Format format)
format
- The format of the dataMethod Detail |
---|
protected void addPacket(RTPHeader header, byte[] data, int offset, int length)
addPacket
in class RTPDataStream
header
- The header of the packetdata
- The data of the packetoffset
- The offset of the packetlength
- The length of the packetpublic void read(Buffer buffer)
read
in interface PushBufferStream
read
in class RTPDataStream
public void run()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |