Skip to content

Add audio mute toggle to the modal player聽#2

Description

@sausi-7

The modal opens games in an iframe but there's no global mute. Add a 馃攰 / 馃攪 button next to the fullscreen / restart buttons.

Approach

  • Add the button in index.html modal toolbar.
  • Use postMessage to the iframe so individual games can opt in (most won't), but as a fallback set iframe.allow="autoplay 'none'" or use the muted attribute trick.
  • Persist the preference in localStorage.

Good first issue if you've worked with iframe messaging before.

Activity

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions