I have not been able to create an isolated reproduction for this yet, but the following webpage causes my music playback (e.g. from an app) to pause in iOS without any user interaction. That is, simply loading the page causes music playback to stop. https://www.cbsnews.com/amp/news/americans-disapprove-of-handling-of-government-shutdown-cbs-news/ This appears to be related to an iframe on the page, which contains a video element. If I prevent that iframe from loading, the issue does not appear. I am not sure if this is related, but when trying to reproduce the issue, I found that loading a page with a muted video, then reloading without the muted attribute, I could get Safari to stop iOS's audio (though the video does not play). That is: (initial): <body> <video playsinline="" muted=""></video> </body> <script> const video = document.querySelector('video'); video.src = '...'; video.play(); </script> (updated): <body> <video playsinline=""></video> </body> <script> const video = document.querySelector('video'); video.src = '...'; video.play(); </script> I also noticed this when loading the page as an iframe.
<rdar://problem/47300066>
Sepand, on what version of iOS are you seeing this behavior?
Jer, I see the issue on 12.1.2 (16C101)