RTPHeaderExtension.write

Writes the RTP header extension to data using information available from the input_meta. data will be sized to be at least the value returned from gstrtp.rtpheader_extension.RTPHeaderExtension.getMaxSize.

Parameters

inputMeta gst.buffer.Buffer

the input #GstBuffer to read information from if necessary

writeFlags gstrtp.types.RTPHeaderExtensionFlags

#GstRTPHeaderExtensionFlags for how the extension should be written

output gst.buffer.Buffer

output RTP #GstBuffer

data ubyte[]

location to write the rtp header extension into

Return Value

Type: ptrdiff_t

the size of the data written, < 0 on failure