add_extension_twobytes_header


Description:

public bool add_extension_twobytes_header (uint8 appbits, uint8 id, uint8[] data)

Adds a RFC 5285 header extension with a two bytes header to the end of the RTP header.

If there is already a RFC 5285 header extension with a two bytes header, the new extension will be appended. It will not work if there is already a header extension that does not follow the mechanism described in RFC 5285 or if there is a header extension with a one byte header as described in RFC 5285. In that case, use add_extension_onebyte_header

Parameters:

this

the RTP packet

appbits

Application specific bits

id

The ID of the header extension

data

location for data

size

the size of the data in bytes

Returns:

true if header extension could be added




2022 vala-language.org