WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
215965
getUserMedia causes stall in audio output / unexpected audio ducking
https://bugs.webkit.org/show_bug.cgi?id=215965
Summary
getUserMedia causes stall in audio output / unexpected audio ducking
Boris Smus
Reported
2020-08-28 19:22:05 PDT
My application has a button that opens audio input and simultaneously plays a UI sound to indicate that the mic is hot. Here's a really basic test page that lets you play audio and then open the audio input via `getUserMedia`:
https://codepen.io/borismus/pen/PoNjbPa
Try this and notice the pause in music. - On Mac it seems to fade out as if its deliberately ducking Or maybe this is just what happens when the main thread playing audio stalls. - On iOS it seems to pause abruptly as if it's some kind of blockage. The expected behavior is found in Chrome, where no pausing or ducking happens, and audio can play.
Attachments
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2020-09-01 06:03:39 PDT
<
rdar://problem/68138897
>
youenn fablet
Comment 2
2020-09-01 06:10:56 PDT
(In reply to Boris Smus from
comment #0
)
> My application has a button that opens audio input and simultaneously plays > a UI sound to indicate that the mic is hot. > > Here's a really basic test page that lets you play audio and then open the > audio input via `getUserMedia`:
https://codepen.io/borismus/pen/PoNjbPa
> > Try this and notice the pause in music. > > - On Mac it seems to fade out as if its deliberately ducking Or maybe this > is just what happens when the main thread playing audio stalls.
I do not hear that on my Mac. I can hear a slight pause. This seems to be a system wide pause: the same happens if I open
https://codepen.io/borismus/pen/PoNjbPa
on Chrome and asks Chrome to play Music and then asks Safari to open audio input using the same fiddle. If I close Safari, the same temporary pause happens. It might be that this happens when starting and stopping our core audio shared unit.
> - On iOS it seems to pause abruptly as if it's some kind of blockage.
When you say pause, it is a temporary pause right? This might be the same issue as MacOS.
Boris Smus
Comment 3
2020-09-01 11:45:34 PDT
Let's focus on iOS as that's where the problems is substantially worse. I do mean a temporary pause, thanks for clarifying. It resumes in about one second on my iPhone X.
youenn fablet
Comment 4
2020-09-01 11:49:58 PDT
(In reply to Boris Smus from
comment #3
)
> Let's focus on iOS as that's where the problems is substantially worse. > > I do mean a temporary pause, thanks for clarifying. It resumes in about one > second on my iPhone X.
One second seems longer than what I can repro. Would you be able to send me a sysdiagnose (
youenn@apple.com
)?
Boris Smus
Comment 5
2020-09-21 09:34:36 PDT
Quick update to nudge this along: I sent you the log part of that bundle on 9/2.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug