RTPBasePayload.allocateOutputBuffer

Allocate a new #GstBuffer with enough data to hold an RTP packet with minimum csrc_count CSRCs, a payload length of payload_len and padding of pad_len. If payload has #GstRTPBasePayload:source-info true additional CSRCs may be allocated and filled with RTP source information.

class RTPBasePayload
allocateOutputBuffer
(,
ubyte padLen
,
ubyte csrcCount
)

Parameters

payloadLen uint

the length of the payload

padLen ubyte

the amount of padding

csrcCount ubyte

the minimum number of CSRC entries

Return Value

Type: gst.buffer.Buffer

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