[Webkit-unassigned] [Bug 196539] Cannot automatically output audio to loudspeaker for Safari in iOS 12.2

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Sep 28 01:55:57 PDT 2021


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

--- Comment #9 from David Gölzhäuser <david.goelzhaeuser at loxone.com> ---
(In reply to Phong Le from comment #4)
> On iOS 15, in a call of WebRTC the audio so low and cannot listen. It did
> not happen on iOS 14. Please help to fix

I revisited the issue today and noticed that I had a wrong behaviour when receiving the PeerConnections tracks.

First the PeerConnections method `ontrack` gets called with a MediaStream containing just the VideoTrack, I simply attached the MediaStream to the `srcObject` of the Video Tag, then I receive the AudioTrack from the same call, I then created a new Audio Tag and added the received MediaStream to the Audio Tags `srcObject` which is wrong as it will be played through the earpiece.

What I had done to fix this is I just update the video tags `srcObject` everytime the PeerConnections `ontrack` method gets called. I assume that way the video and audio are handled in the same "AudioSession" and thus get played on the same Speaker output.

-- 
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/20210928/ea959886/attachment-0001.htm>


More information about the webkit-unassigned mailing list