Skip to main content

Variable: DEFAULT_REMOTE_VOLUME_STEPS

const DEFAULT_REMOTE_VOLUME_STEPS: 20 = 20;

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

Notches a hardware volume key press moves through when the app says nothing.

20 is not invented here: it is RemoteCastPlayer.MAX_VOLUME in media3 1.11.0 — the step count media3's own Cast player reports through DeviceInfo.Builder.setMaxVolume — so an app that does not choose gets the granularity Android users already feel from every other cast-enabled app.

Exported so an app can say "half the usual granularity" without hard-coding the number, and so a test can assert the parity.