Skip to main content

Variable: DEFAULT_RESTART_THRESHOLD_SECONDS

const DEFAULT_RESTART_THRESHOLD_SECONDS: 3 = 3;

Defined in: packages/player/src/player.ts:1595

The default number of seconds into an entry after which PlaylistApi.previous restarts it instead of going back.

Remarks

Three seconds is the convention every music player converged on — long enough that a mis-tap during an intro still goes back, short enough that "restart this song" is reachable without hunting for a scrubber. It is a default rather than a rule: pass your own restartThreshold, or 0 to opt out and always move.