[Webkit-unassigned] [Bug 236219] [iOS] Volume of non MediaStreamTrack-based audio reduces when capturing microphone

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Mar 2 11:42:49 PST 2023


https://bugs.webkit.org/show_bug.cgi?id=236219

--- Comment #11 from Bryce Aebi <bryce.aebi at llm.llc> ---
Ultimately, I think in my particular web app, I MAY be able to get around these issues by limiting the play-and-record state to ONLY when the mic is capturing.

For performance reasons (mic capture takes a while to start), I had started mic capture earlier than it was needed and left it on. Then the user would make multiple recordings and play multiple pieces of audio while the mic was capturing. 

I will see if performance is tolerable to turn on play-and-record + mic capture for each audio recording the user makes. The issue is that since mic capture is slow, it is common for the user to click the record button and then the start of their recorded audio ends up not being captured. I may be able to do something gimmicky, like setting a 3-2-1 countdown timer in the UI after they click the record button and before they actually produce noise to be recorded. Obviously this is still a subpar experience, but sounds like a separate bug/improvement.

Ideally, I think there should be an additional audioSession.type that ALLOWS for mic capture, but DOES NOT change the iPhone volume OR the audio volume playing during the mic capture.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20230302/c2b895fd/attachment.htm>


More information about the webkit-unassigned mailing list