Web audio first tap silent
Categories
(Core :: Audio/Video: Playback, defect)
Tracking
()
People
(Reporter: ciwit31509, Unassigned, NeedInfo)
Details
Attachments
(2 files)
Firefox for Android
Steps to reproduce:
- Go to (on a mobile device): https://jsfiddle.net/8sozdeb6/
- 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)
Comment 1•2 years ago
|
||
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.
Comment 2•2 years ago
|
||
I don't have Android at hand to confirm this. Paul, would you mind taking a look?
Updated•2 years ago
|
Comment 3•2 years ago
|
||
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.
Comment 6•2 years ago
|
||
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?
Comment 7•2 years ago
|
||
No, I wasn't aware of any similar issue. It seems in the first iteration, none of the node were able to run?
Comment 10•2 years ago
|
||
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!
Comment 11•2 years ago
|
||
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.
Description
•