RTPBuffer.getExtensionOnebyteHeaderFromBytes

bool getExtensionOnebyteHeaderFromBytes(glib.bytes.Bytes bytes, ushort bitPattern, ubyte id, uint nth, out ubyte[] data)

Similar to gst_rtp_buffer_get_extension_onebyte_header, but working on the #GBytes you get from gst_rtp_buffer_get_extension_bytes. Parses RFC 5285 style header extensions with a one byte header. It will return the nth extension with the requested id.

Parameters

bytes#GBytes
bitPatternThe bit-pattern. Anything but 0xBEDE is rejected.
idThe ID of the header extension to be read (between 1 and 14).
nthRead the nth extension packet with the requested ID
datalocation for data

Returns

TRUE if bytes had the requested header extension