RTPBuffer.getExtensionOnebyteHeaderFromBytes

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.

class RTPBuffer
static
bool
getExtensionOnebyteHeaderFromBytes
(,
ushort bitPattern
,
ubyte id
,
uint nth
,
out ubyte[] data
)

Parameters

bytes glib.bytes.Bytes

#GBytes

bitPattern ushort

The bit-pattern. Anything but 0xBEDE is rejected.

id ubyte

The ID of the header extension to be read (between 1 and 14).

nth uint

Read the nth extension packet with the requested ID

data ubyte[]

location for data

Return Value

Type: bool

TRUE if bytes had the requested header extension