[Webkit-unassigned] [Bug 218012] Audio Volume reduces considerably on accepting the mic permissions.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Mar 19 10:54:59 PDT 2021


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

James Howard <jameshoward at mac.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jameshoward at mac.com

--- Comment #12 from James Howard <jameshoward at mac.com> ---
It looks like Safari uses the following options when setting the audio category to play and record:

auto options = AVAudioSessionCategoryOptionAllowBluetooth | AVAudioSessionCategoryOptionMixWithOthers;

https://git.webkit.org/?p=WebKit-https.git;a=blob;f=Source/WebCore/platform/mediastream/ios/AVAudioSessionCaptureDeviceManager.mm;hb=29d45f52c2db831d9b6a7d9e96dfd44624984c24#l110

I think this means when the mic turns on that the receiver speaker becomes the only one active (the little earpiece one on a phone). This is probably a reasonable set of options for when you're holding the phone like a phone, but it's maybe not great for video chat or music apps. Using AVAudioSessionCategoryOptionDefaultToSpeaker would be better for our use case, but I'm not sure what the fallout would be by changing it across the board. I kind of think maybe AVAudioSessionCategoryOptionDefaultToSpeaker better fits what most web apps want to do; most web apps aren't trying to just make phone calls.

-- 
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/20210319/efd9e715/attachment.htm>


More information about the webkit-unassigned mailing list