Bug 271305

Summary: [iOS] audio level switches to VC level when starting microphone capture even if audioSession type is set to 'play-and-record' before microphone capture
Product: WebKit Reporter: youenn fablet <youennf>
Component: WebRTCAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: webkit-bug-importer, youennf
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

youenn fablet
Reported 2024-03-20 02:18:28 PDT
[iOS] audio level switches to VC level when starting microphone capture even if audioSession type is set to 'play-and-record' Repro steps: 1. Close Safari, set audio level to 50% 2. Load https://jsfiddle.net/63x57vnb/, click 'start microphone', grant microphone access and set audio level to 100% 3. Restart Safari and load https://jsfiddle.net/63x57vnb/ 4. Audio level is at 50% (even though navigator.audioSession.type is set to 'play-and-record' 5. Click 'play bunny', video should start playing 6. Verify audio level is still at 50% 7. Click on 'start microphone', grant microphone access 8. Verify audio level is now at 100%. I would have expected audio level at step 4 (or maybe 6 since webkit might not have activated the audio session) to be at 100%
Attachments
Radar WebKit Bug Importer
Comment 1 2024-03-20 02:18:41 PDT
youenn fablet
Comment 2 2024-03-20 02:18:54 PDT
This reproes for me on iOS 17.4
EWS
Comment 3 2024-04-02 23:00:01 PDT
Committed 276988@main (2416ed8f257f): <https://commits.webkit.org/276988@main> Reviewed commits have been landed. Closing PR #26607 and removing active labels.
Note You need to log in before you can comment on or make changes to this bug.