updatePosition property
The playback position at updateTime.
For efficiency, the updatePosition should NOT be updated continuously in
real time. Instead, it should be updated only when the normal continuity
of time is disrupted, such as during a seek, buffering and seeking. When
broadcasting such a position change, the updateTime specifies the time
of that change, allowing clients to project the realtime value of the
position as position + (DateTime.now() - updateTime)
. As a convenience,
this calculation is provided by the position getter.
Implementation
final Duration updatePosition;