Bug 295889

Summary: (iOS) getUserMedia() cause wrong audio output
Product: WebKit Reporter: Ronan Chi <wbxl2000>
Component: Web AudioAssignee: Nobody <webkit-unassigned>
Status: NEW    
Severity: Major CC: cdumez, eric.carlson, jer.noble, webkit-bug-importer, youennf
Priority: P2 Keywords: InRadar
Version: Safari 18   
Hardware: iPhone / iPad   
OS: iOS 18   
Attachments:
Description Flags
Reproduction Code none

Ronan Chi
Reported 2025-07-14 07:14:08 PDT
In my web app, an MP3 is playing through the speaker. When I call getUserMedia() API to capture audio, the audio will correctly switcher to the earpiece — which is expected. However, after releasing the MediaStream(stop the audio track), this MP3 continues to play through the earpiece instead of switching back to the speaker. Here is the Reproduction Link: https://bug.qer.im/ios-getUserMedia-cause-audio-wrong-output/index.html
Attachments
Reproduction Code (844.27 KB, application/zip)
2025-07-14 07:15 PDT, Ronan Chi
no flags
Ronan Chi
Comment 1 2025-07-14 07:15:03 PDT
Created attachment 475974 [details] Reproduction Code
Radar WebKit Bug Importer
Comment 2 2025-07-21 07:15:17 PDT
Note You need to log in before you can comment on or make changes to this bug.