Summary: | REGRESSION (iOS 16.3): WebAudio muted when the silent switch is ON and when app goes to background | ||
---|---|---|---|
Product: | WebKit | Reporter: | Adrien iWebDJ <adrien.wurth> |
Component: | Web Audio | Assignee: | Nobody <webkit-unassigned> |
Status: | RESOLVED INVALID | ||
Severity: | Critical | CC: | cdumez, hamish, jer.noble, mattwindwer, webkit-bug-importer, youennf |
Priority: | P2 | Keywords: | InRadar |
Version: | Safari 16 | ||
Hardware: | iPhone / iPad | ||
OS: | iOS 16 |
Description
Adrien iWebDJ
2023-02-01 10:57:22 PST
Let's track only issue #1 here, as the most recent regression. Please file separate reports about the other issues, as tracking them together reduces the chances of getting any fixed. The silent switch is silencing notifications so it might behave as expected. Using a MediaStreamAudioDestinationNode should probably fix 1, 2 and 3. It is probably a bit less efficient. We could think of changing our heuristics, but this might affect existing content. @Adrien, marking is as resolved invalid for now. Please reopen if needed. I agree with Adrien that this is confusing because native apps are not silenced in this way. Even more confusing, HTML5 Audio continues to be played in silent mode, but Webaudio is muted. I'm using iPadOS 16.3.1. This also occurs in 17.1. Can you try: navigator.audioSession.type = 'playback'; This should help for silent mode at least. We need to do more work for the background case. Setting navigator.audioSession.type to 'playback' or 'play-and-record' helps. Thanks. |