RTPBuffer.extTimestamp
ulong extTimestamp(ref ulong exttimestamp, uint timestamp)Update the exttimestamp field with the extended timestamp of timestamp For the first call of the method, exttimestamp should point to a location with a value of -1.
This function is able to handle both forward and backward timestamps taking into account:
- timestamp wraparound making sure that the returned value is properly increased.
- timestamp unwraparound making sure that the returned value is properly decreased.
Parameters
exttimestampa previous extended timestamp timestampa new timestamp Returns
The extended timestamp of timestamp or 0 if the result can't go anywhere backwards.