set_extension_data


Description:

public bool set_extension_data (uint16 bits, uint16 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:

this

the RTP packet

bits

the bits specific for the extension

length

the 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.