NEW193418
Media elements can pause iOS audio without user interaction
https://bugs.webkit.org/show_bug.cgi?id=193418
Summary Media elements can pause iOS audio without user interaction
Sepand Parhami
Reported 2019-01-14 16:52:12 PST
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.
Attachments
Radar WebKit Bug Importer
Comment 1 2019-01-15 15:52:37 PST
Jer Noble
Comment 2 2019-01-15 16:01:21 PST
Sepand, on what version of iOS are you seeing this behavior?
Sepand Parhami
Comment 3 2019-01-15 16:46:51 PST
Jer, I see the issue on 12.1.2 (16C101)
Note You need to log in before you can comment on or make changes to this bug.