Function: isPositionDiscontinuity()
function isPositionDiscontinuity(event: PlayerEvent): boolean;
Defined in: packages/player/src/state.ts:1241
Whether an event invalidates the position anchor badly enough that the
Player should spend one synchronous time-pos read on it.
Only playbackRestart qualifies: it is mpv's "position is meaningful again"
signal after a seek or a load. Pause, rate and track changes are re-anchored
arithmetically and need no read.
Parameters
| Parameter | Type |
|---|---|
event | PlayerEvent |
Returns
boolean