RTPBuffer.setExtensionData

bool setExtensionData(ushort bits, ushort length)

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.

Parameters

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

Returns

True if done.