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 |
bitPattern | The bit-pattern. Anything but 0xBEDE is rejected. |
id | The ID of the header extension to be read (between 1 and 14). |
nth | Read the nth extension packet with the requested ID |
data | location for data |
Returns
TRUE if bytes had the requested header extension