RTPBuffer.getExtensionData

Similar to gst_rtp_buffer_get_extension_data, but more suitable for language bindings usage. bits will contain the extension 16 bits of custom data and the extension data (not including the extension header) is placed in a new #GBytes structure.

If rtp did not contain an extension, this function will return null, with bits unchanged. If there is an extension header but no extension data then an empty #GBytes will be returned.

class RTPBuffer
getExtensionData
(
out ushort bits
)

Parameters

bits ushort

location for header bits

Return Value

Type: glib.bytes.Bytes

A new #GBytes if an extension header was present and null otherwise.