RTPBuffer.extTimestamp

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.
class RTPBuffer
static
ulong
extTimestamp
(
ref ulong exttimestamp
,)

Parameters

exttimestamp ulong

a previous extended timestamp

timestamp uint

a new timestamp

Return Value

Type: ulong

The extended timestamp of timestamp or 0 if the result can't go anywhere backwards.