Bug 216389

Summary: No audio output when unplugged wired headset during a call
Product: WebKit Reporter: Trung Le <ldttmt>
Component: WebRTCAssignee: youenn fablet <youennf>
Status: RESOLVED FIXED    
Severity: Normal CC: calvaris, cdumez, changseok, daginge, dan, eric.carlson, esprehn+autocc, ews-watchlist, glenn, gyuyoung.kim, hta, jer.noble, olsviate, philipj, sergio, tommyw, visherandro, webkit-bug-importer, youennf
Priority: P2 Keywords: InRadar
Version: Safari 13   
Hardware: iPhone / iPad   
OS: iOS 13   
Attachments:
Description Flags
Patch
ews-feeder: commit-queue-
Patch
none
Patch
none
Patch
none
Patch for landing
none
Rebasing none

Description Trung Le 2020-09-10 17:39:49 PDT
In our webRTC application on iPad, if I unplug a wired headset during a call, I would not be able to hear others in the call anymore. It seems the audio output does not switch automatically from the headset to the iPad speaker.If I use a Bluetooth headset, then the audio output switches automatically to the iPad speaker and i can hear others fine.
I was also be able to reproduce the same issue with other webRTC apps like Google Meet.
Comment 1 Radar WebKit Bug Importer 2020-09-10 23:59:10 PDT
<rdar://problem/68692800>
Comment 2 youenn fablet 2021-03-22 05:33:59 PDT
Created attachment 423874 [details]
Patch
Comment 3 youenn fablet 2021-03-22 06:24:41 PDT
Created attachment 423875 [details]
Patch
Comment 4 youenn fablet 2021-03-22 07:36:41 PDT
Created attachment 423882 [details]
Patch
Comment 5 youenn fablet 2021-03-22 08:46:48 PDT
Created attachment 423890 [details]
Patch
Comment 6 Eric Carlson 2021-03-22 10:36:00 PDT
Comment on attachment 423882 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=423882&action=review

> Source/WebCore/ChangeLog:17
> +
> +

Nit: two blank lines

> Source/WebCore/platform/audio/ios/MediaSessionHelperIOS.h:109
> +private:

Nit: don't need a second `private`

> Source/WebCore/platform/audio/ios/MediaSessionHelperIOS.mm:76
> +

Nit: extra blank line
Comment 7 youenn fablet 2021-03-22 12:47:34 PDT
*** Bug 223182 has been marked as a duplicate of this bug. ***
Comment 8 Eric Carlson 2021-03-22 12:58:08 PDT
Comment on attachment 423890 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=423890&action=review

> Source/WebCore/ChangeLog:17
> +
> +

Nit: two blank lines

> Source/WebCore/platform/audio/ios/MediaSessionHelperIOS.h:109
> +private:

Do we need the second `private:`?

> Source/WebCore/platform/audio/ios/MediaSessionHelperIOS.mm:76
> +

Nit: extra blank line
Comment 9 youenn fablet 2021-03-23 03:56:15 PDT
Created attachment 424010 [details]
Patch for landing
Comment 10 youenn fablet 2021-04-02 03:11:15 PDT
Created attachment 425003 [details]
Rebasing
Comment 11 EWS 2021-04-02 06:19:05 PDT
Committed r275417: <https://commits.webkit.org/r275417>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 425003 [details].
Comment 12 youenn fablet 2021-05-21 04:11:46 PDT
*** Bug 226075 has been marked as a duplicate of this bug. ***
Comment 13 youenn fablet 2021-11-03 10:36:45 PDT
*** Bug 209594 has been marked as a duplicate of this bug. ***
Comment 14 Vishvanath Eshwer 2021-12-02 06:15:57 PST
Is there a fix to this?
Comment 15 Vishvanath Eshwer 2021-12-02 06:16:35 PST
(In reply to Trung Le from comment #0)
> In our webRTC application on iPad, if I unplug a wired headset during a
> call, I would not be able to hear others in the call anymore. It seems the
> audio output does not switch automatically from the headset to the iPad
> speaker.If I use a Bluetooth headset, then the audio output switches
> automatically to the iPad speaker and i can hear others fine.
> I was also be able to reproduce the same issue with other webRTC apps like
> Google Meet.

Did you find a solution to this?