RTPBuffer.newAllocate

Allocate a new #GstBuffer with enough data to hold an RTP packet with csrc_count CSRCs, a payload length of payload_len and padding of pad_len. All other RTP header fields will be set to 0/FALSE.

class RTPBuffer
static
newAllocate
(,
ubyte padLen
,
ubyte csrcCount
)

Parameters

payloadLen uint

the length of the payload

padLen ubyte

the amount of padding

csrcCount ubyte

the number of CSRC entries

Return Value

Type: gst.buffer.Buffer

A newly allocated buffer that can hold an RTP packet with given parameters.