RTPBuffer.allocateData

Allocate enough data in buffer to hold an RTP packet with csrc_count CSRCs, a payload length of payload_len and padding of pad_len. buffer must be writable and all previous memory in buffer will be freed. If pad_len is >0, the padding bit will be set. All other RTP header fields will be set to 0/FALSE.

class RTPBuffer
static
void
allocateData

Parameters

buffer gst.buffer.Buffer

a #GstBuffer

payloadLen uint

the length of the payload

padLen ubyte

the amount of padding

csrcCount ubyte

the number of CSRC entries