RTPBuffer.newAllocateLen

Create a new #GstBuffer that can hold an RTP packet that is exactly packet_len long. The length of the payload depends on pad_len and csrc_count and can be calculated with gstrtp.rtpbuffer.RTPBuffer.calcPayloadLen. All RTP header fields will be set to 0/FALSE.

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

Parameters

packetLen uint

the total length of the packet

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 of packet_len.