Function: normalizeRemotePlayback()
function normalizeRemotePlayback(remote: RemotePlayback): NativeRemotePlayback;
Defined in: packages/media-session/src/validate.ts:420
Validate and fill in a RemotePlayback.
Volume is 0..1 and out-of-range is rejected, not clamped: a 47 here is
an app that mixed up its scales (a percentage, or the platform's integer
notches), and silently clamping it to "full" would be a wrong answer that
looks deliberate on a lock screen. The same reasoning as
validateAnchor — the payload's garbage is otherwise invisible.
Parameters
| Parameter | Type |
|---|---|
remote | RemotePlayback |