Skip to content

fix(settings): clamp playback speed to the contract maximum #148

Closed

Description

@Quick104

Problem

At current main (51d671a5), AndroidPlayerSettingsStore.setPlaybackSpeed clamps values to 0.25..4.0, while the generated settings contract accepts only 0.25..3.0.

A value above 3.0 is stored locally and then rejected by the canonical settings API. Because this is a permanent contract rejection, the flusher drops it and the local/server state diverges.

Evidence:

Expected behavior

  • Clamp every authored or imported playback-speed value to the contract range 0.25..3.0.
  • Keep the lower bound at 0.25.
  • Add focused coverage for both bounds and for any migration/import path that can enqueue this key.
  • Implement against the generated/canonical settings path; do not restore the old hand-maintained contract tables.

Context: #101, #119

Activity

  1. added
    bug
    triaged
    and removed
    triaged
    on Sep 20, 2026
  2. added theissue type on Sep 20, 2026
  3. removed
    bug
    on Sep 20, 2026
  4. Quick104 commented on Nov 14, 2026

    @Quick104
    ContributorAuthor

    Fixed in #501: playback speed is now clamped to 0.25–3.0 when set and when read, so values from older builds are corrected too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions