Make sure to end any pending AudioSession interruption when activating it
<rdar://88405081>
Created attachment 454233 [details] Patch
This solves the reported issue but does not solve the general problem. Say we do the following: - capture microphone (which activates the audio session), then stop capture microphone (without deactivating the audio session since we would have a remaining element). - receive the interruption from AudioSession after a few minutes - capture camera and try to autoplay it. It would fail (until we for instance capture microphone again). Maybe we should do some additional things like: - Deactivate the audio session when we are doing nothing with it (which will remove the interruption in most cases). - Add special treatment to AudioSession interruptions. It seems odd that muted video would not autoplay due to an AudioSession ongoing interruption.
*** Bug 237653 has been marked as a duplicate of this bug. ***
Committed r291268 (248417@main): <https://commits.webkit.org/248417@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 454233 [details].
*** Bug 239927 has been marked as a duplicate of this bug. ***