Package org.jitsi.impl.neomedia.rtcp
Class RTCPREMBPacket
- java.lang.Object
-
- net.sf.fmj.media.rtp.util.Packet
-
- net.sf.fmj.media.rtp.RTCPPacket
-
- org.jitsi.impl.neomedia.rtcp.RTCPFBPacket
-
- org.jitsi.impl.neomedia.rtcp.RTCPREMBPacket
-
public class RTCPREMBPacket extends RTCPFBPacket
Created by gp on 6/24/14. 0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ |V=2|P| FMT=15 | PT=206 | length | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | SSRC of packet sender | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | SSRC of media source | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Unique identifier 'R' 'E' 'M' 'B' | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Num SSRC | BR Exp | BR Mantissa | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | SSRC feedback | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | ... |
-
-
Field Summary
Fields Modifier and Type Field Description long[]destone or more SSRC entries which this feedback message applies to.intexpThe exponential scaling of the mantissa for the maximum total media bit rate value, ignoring all packet overhead.static intFMTintmantissaThe mantissa of the maximum total media bit rate (ignoring all packet overhead) that the sender of the REMB estimates.-
Fields inherited from class org.jitsi.impl.neomedia.rtcp.RTCPFBPacket
fci, fmt, PSFB, RTPFB, senderSSRC, sourceSSRC
-
-
Constructor Summary
Constructors Constructor Description RTCPREMBPacket(long senderSSRC, long mediaSSRC, int exp, int mantissa, long[] dest)RTCPREMBPacket(long senderSSRC, long mediaSSRC, long bitrate, long[] dest)RTCPREMBPacket(net.sf.fmj.media.rtp.RTCPCompoundPacket base)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidassemble(DataOutputStream dataoutputstream)intcalcLength()longgetBitrate()Gets the bitrate described in this packet in bits per second.long[]getDest()static booleanisREMBPacket(org.jitsi.utils.ByteArrayBuffer baf)Gets a boolean that indicates whether or not the packet specified in theByteArrayBufferthat is passed in the first argument is an RTCP REMB packet.voidsetDest(long[] dest)StringtoString()-
Methods inherited from class org.jitsi.impl.neomedia.rtcp.RTCPFBPacket
getFCI, getSenderSSRC, getSourceSSRC, getSourceSSRC, isPSFBPacket, isRTCPFBPacket, isRTPFBPacket, toRawPacket
-
-
-
-
Field Detail
-
FMT
public static final int FMT
- See Also:
- Constant Field Values
-
exp
public int exp
The exponential scaling of the mantissa for the maximum total media bit rate value, ignoring all packet overhead.
-
mantissa
public int mantissa
The mantissa of the maximum total media bit rate (ignoring all packet overhead) that the sender of the REMB estimates. The BR is the estimate of the traveled path for the SSRCs reported in this message.
-
dest
public long[] dest
one or more SSRC entries which this feedback message applies to.
-
-
Constructor Detail
-
RTCPREMBPacket
public RTCPREMBPacket(long senderSSRC, long mediaSSRC, int exp, int mantissa, long[] dest)
-
RTCPREMBPacket
public RTCPREMBPacket(long senderSSRC, long mediaSSRC, long bitrate, long[] dest)
-
RTCPREMBPacket
public RTCPREMBPacket(net.sf.fmj.media.rtp.RTCPCompoundPacket base)
-
-
Method Detail
-
getDest
public long[] getDest()
-
setDest
public void setDest(long[] dest)
-
assemble
public void assemble(DataOutputStream dataoutputstream) throws IOException
Description copied from class:RTCPFBPacket- Overrides:
assemblein classRTCPFBPacket- Throws:
IOException
-
calcLength
public int calcLength()
Description copied from class:RTCPFBPacket- Overrides:
calcLengthin classRTCPFBPacket
-
toString
public String toString()
- Overrides:
toStringin classRTCPFBPacket
-
getBitrate
public long getBitrate()
Gets the bitrate described in this packet in bits per second.- Returns:
- the bitrate described in this packet in bits per second.
-
isREMBPacket
public static boolean isREMBPacket(org.jitsi.utils.ByteArrayBuffer baf)
Gets a boolean that indicates whether or not the packet specified in theByteArrayBufferthat is passed in the first argument is an RTCP REMB packet.- Parameters:
baf- theByteArrayBufferthat holds the RTCP packet.- Returns:
- true if the packet specified in the
ByteArrayBufferthat is passed in the first argument is an RTCP REMB packet, otherwise false.
-
-