| Constructor and Description |
|---|
DefaultRtpStream(PcapGlobalHeader globalHeader,
long ssrc) |
| Modifier and Type | Method and Description |
|---|---|
long |
getDuration()
Get the duration in microseconds of the stream.
|
long |
getLostPackets() |
long |
getMaxDelta() |
long |
getMaxJitter() |
long |
getMeanJitter() |
List<RtpPacket> |
getPackets()
Get all
Packets that belongs to this stream. |
long |
getSequenceErrors() |
StreamId |
getStreamIdentifier()
|
long |
getTimeOfFirstPacket()
Get the arrival time of the very first packet in this stream.
|
long |
getTimeOfLastPacket()
Get the arrival time of the last packet in this stream.
|
void |
onPacket(RtpPacket msg) |
void |
write(OutputStream out)
Write this
Stream to the specified OutputStream. |
public DefaultRtpStream(PcapGlobalHeader globalHeader, long ssrc)
public void onPacket(RtpPacket msg)
public List<RtpPacket> getPackets()
Packets that belongs to this stream.getPackets in interface Stream<RtpPacket>public long getDuration()
Packet.getArrivalTime() regarding the microsecond precision.
Depending on the underlying protocol this can be as simple as the time
between the first to the last packet, which is what the RtpStream
does. Or, it can be more complicated as with a SipStream that
checks the duration of the dialog (if one was established).getDuration in interface Stream<RtpPacket>Stream. If the
duration cannot be calulated for whatever reason (no packets at
all? Only one packet?), then -1 (negative one) will be returned.public long getTimeOfFirstPacket()
Packet.getArrivalTime() regarding the
microsecond precision.getTimeOfFirstPacket in interface Stream<RtpPacket>Stream doesn't contain any
packets.public long getTimeOfLastPacket()
Packet.getArrivalTime() regarding the
microsecond precision.getTimeOfLastPacket in interface Stream<RtpPacket>Stream doesn't contain any
packets.public StreamId getStreamIdentifier()
getStreamIdentifier in interface Stream<RtpPacket>public void write(OutputStream out) throws IOException
write in interface Stream<RtpPacket>out - the OutputStream, which typically is a
PcapOutputStream.IOExceptionpublic long getMaxJitter()
getMaxJitter in interface RtpStreampublic long getMeanJitter()
getMeanJitter in interface RtpStreampublic long getMaxDelta()
getMaxDelta in interface RtpStreampublic long getLostPackets()
getLostPackets in interface RtpStreampublic long getSequenceErrors()
getSequenceErrors in interface RtpStreamCopyright © 2021. All Rights Reserved.