RTPBuffer.getExtensionTwobytesHeader

Parses RFC 5285 style header extensions with a two bytes header. It will return the nth extension with the requested id.

class RTPBuffer
bool
getExtensionTwobytesHeader
(
out ubyte appbits
,
ubyte id
,
uint nth
,
out ubyte[] data
)

Parameters

appbits ubyte

Application specific bits

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 buffer had the requested header extension