RTPHeaderExtension.write

ptrdiff_t write(gst.buffer.Buffer inputMeta, gstrtp.types.RTPHeaderExtensionFlags writeFlags, gst.buffer.Buffer output, ubyte[] data)

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

inputMetathe input #GstBuffer to read information from if necessary
writeFlags#GstRTPHeaderExtensionFlags for how the extension should be written
outputoutput RTP #GstBuffer
datalocation to write the rtp header extension into

Returns

the size of the data written, < 0 on failure