Skip to content

ConvolverNode example needs user interaction #33175

@Eonasdan

Description

@Eonasdan

MDN URL

https://developer.mozilla.org/en-US/docs/Web/API/ConvolverNode

What specific section or headline is this issue about?

ConvolverNode Example

What information was incorrect, unhelpful, or incomplete?

The codepen sample doesn't work without modification due to a Chromium restriction for playing sound without interaction.

What did you expect to see?

Working example

Do you have any supporting links, references, or citations?

No response

Do you have anything more you want to share?

My suggestions are

  1. Change the sample code to init the sounds after clicking Start e.g.
function toggleSound(toggleButton) {
  if (!init) {
    initSound();
    init = true;
  }
///....
  1. Move the example to StackBlitz with as a complete example instead of linking to multiple codepen script files that hide part of the example.

MDN metadata

Page report details

Metadata

Metadata

Assignees

No one assigned

    Labels

    Content:WebAPIWeb API docsarea: Web Audiohelp wantedIf you know something about this topic, we would love your help!needs example updateNeeds updates to one of the example repos (dom-examples, css-examples, etc.)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions