[Webkit-unassigned] [Bug 283881] New: Video stops when switching tabs

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sun Dec 1 17:19:36 PST 2024


https://bugs.webkit.org/show_bug.cgi?id=283881

            Bug ID: 283881
           Summary: Video stops when switching tabs
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: iPhone / iPad
                OS: iOS 18
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: New Bugs
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: mic.gallego at gmail.com

Hello,

We're facing a strange issue related to videos. We are developing Shopify themes, and the problem does not happen in most stores, but it can be reproduced consistently in a particular store. I've spent hours debugging but could not find what is causing this, so it is probably a specific combination of factors.

The issue is that a video (embedded using HTML5 standard video) is stopped by the browser when changing the app on an iPhone (so when restoring Safari, the video is stuck in a paused state instead of continuing to be played). The issue is not reproducible on any desktop browser or any browser on Android. It seems to be restricted to Safari iOS.

To reproduce the issue, you have to try it on this specific store (on all our demo stores where we tried it, it was unreproducible):

1. Open the store https://youme-il.myshopify.com/ on Safari iOS.
2. In the upper left, click the small lock icon and enter the password yahalom to enter the store.
3. The first section will have a video that will be launched automatically.
4. Switch to a different app (this is important; switching to a different TAB does not seem to cause the bug).
5. Go back to Safari; the video will be paused.

I've checked the code and there are no call to video.pause() anywhere. I've also tried to do some hacks, such as listening to the `visibility change` event to force re-calling the `play` method on the video, but it is stuck, and Safari doesn't allow me to play the video again.

Could I have some help from Apple engineers to understand what is happening here?

Thanks.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20241202/5e0bc316/attachment.htm>


More information about the webkit-unassigned mailing list