get_extension_bytes


Description:

[ Version ( since = "1.2" ) ]
public Bytes? get_extension_bytes (out uint16 bits)

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 Bytes structure.

If this 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 Bytes will be returned.

Parameters:

this

the RTP packet

bits

location for header bits

Returns:

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