RTPBuffer.setExtensionData

Set the extension bit of the rtp buffer and fill in the bits and length of the extension header. If the existing extension data is not large enough, it will be made larger.

Will also shorten the extension data from 1.20.

class RTPBuffer
bool
setExtensionData
(
ushort bits
,
ushort length
)

Parameters

bits ushort

the bits specific for the extension

length ushort

the length that counts the number of 32-bit words in the extension, excluding the extension header ( therefore zero is a valid length)

Return Value

Type: bool

True if done.