Open Bug 1828984 Opened 2 years ago Updated 2 years ago

Web audio first tap silent

Categories

(Core :: Audio/Video: Playback, defect)

Firefox 112
defect

Tracking

()

People

(Reporter: ciwit31509, Unassigned, NeedInfo)

Details

Attachments

(2 files)

Firefox for Android

Steps to reproduce:

  1. Go to (on a mobile device): https://jsfiddle.net/8sozdeb6/
  2. Tap play button

Actual results:

First tap is a user interaction, but is silent (prevented).

Expected results:

First tap should produce the tap sound. A tap sound cannot be on pointerup i.e. first tap; then sound, won't work, it needs to be on pointerdown. Use cases? A web game with tap sounds on buttons, an interactive web synth and much more.

This is a regression. Firefox 112.1.0 (Android)

The Bugbug bot thinks this bug should belong to the 'Core::Audio/Video: Playback' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: Untriaged → Audio/Video: Playback
Product: Firefox → Core

I don't have Android at hand to confirm this. Paul, would you mind taking a look?

Flags: needinfo?(padenot)
Severity: -- → S4

I don't reproduce this on current Nightly and a Sony Xperia 5 II, or Pixel 4, it works as intended.

Reporter, what device and hardware (e.g. bluetooth devices) are you using?

Can you reproduce this while profiling (https://profiler.firefox.com/docs/#/./guide-profiling-android-directly-on-device has all the information, nothing to install, no computer needed, it's all on-device), selecting the "Media" preset? This should make it clear what happens.

Flags: needinfo?(padenot) → needinfo?(ciwit31509)

Have same issue with Nightly 114.0a1

Thanks for the profile!

Alastor, see the profile in comment 4, audio is starting on the second touch and not the first one, is this something known?

Flags: needinfo?(alwu)

No, I wasn't aware of any similar issue. It seems in the first iteration, none of the node were able to run?

Flags: needinfo?(alwu)
Flags: needinfo?(ciwit31509)

Can you have a look at this?

Flags: needinfo?(alwu)

I don't have enough knowledge on AudioNodeTrack and MTG, not sure if I'm the best person to investigate this issue. Karl, is this something you could take a look at? Thanks!

Flags: needinfo?(alwu) → needinfo?(karlt)

This reproduces on a Galaxy A52s.

The "crack" sound and shortness of the sound on the second play attempt, regardless of how long since the first attempt, is as if audio is switched on part way through the second playback.

Severity: S4 → S3
Status: UNCONFIRMED → NEW
Ever confirmed: true
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: