Skip to main content

Variable: DEFAULT_JUMP_SECONDS

const DEFAULT_JUMP_SECONDS: 15 = 15;

Defined in: packages/media-session/src/validate.ts:588

The one jump interval, in seconds, applied identically on both platforms.

This constant is the fix for a parity defect, not a preference. Before it, iOS pinned 15 s in both directions (RemoteCommandBinding.skipInterval) while Android set neither media3 increment and therefore inherited C.DEFAULT_SEEK_BACK_INCREMENT_MS = 5_000 and C.DEFAULT_SEEK_FORWARD_INCREMENT_MS = 15_000 (media3 1.11.0, javap on the shipped AAR) — so the same JS call skipped back 5 s on Android and 15 s on iOS.

15 both ways rather than media3's asymmetric pair: it is what RNTP V4 (forwardJumpInterval/backwardJumpInterval) and V5 (forwardInterval/backwardInterval) both default to, it is what this package already did on the platform where the value was deliberate, and a symmetric default cannot surprise an app that sets one and forgets the other.

Exported so an app can say "double the default" without hard-coding 15, and so a test can assert the two platforms are handed the same number.