RTPBuffer.calcPayloadLen

Calculate the length of the payload of an RTP packet with size packet_len, a padding of pad_len and a csrc_count CSRC entries.

class RTPBuffer
static
uint
calcPayloadLen
(,
ubyte padLen
,
ubyte csrcCount
)

Parameters

packetLen uint

the length of the total RTP packet

padLen ubyte

the amount of padding

csrcCount ubyte

the number of CSRC entries

Return Value

Type: uint

The length of the payload of an RTP packet with given parameters.