RTPBuffer.calcPayloadLen
uint calcPayloadLen(uint packetLen, ubyte padLen, ubyte csrcCount)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.
Parameters
packetLen | the length of the total RTP packet |
padLen | the amount of padding |
csrcCount | the number of CSRC entries |
Returns
The length of the payload of an RTP packet with given parameters.