[Webkit-unassigned] [Bug 232076] Safari on iOS cannot play a video from data uri

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Oct 22 04:49:50 PDT 2021


Simon Taylor <simontaylor1 at ntlworld.com> changed:

           What    |Removed                     |Added
                 CC|                            |simontaylor1 at ntlworld.com

--- Comment #3 from Simon Taylor <simontaylor1 at ntlworld.com> ---
I suspect this is related to the video decoder being moved to the GPU Process in iOS 15, which had some intended consequences for the codepath used when the video source is in a blob / data URI.

We were able to find a workaround of sorts, but it's an ugly one: If the video data is provided by a Service Worker then it seems to play back with normal performance and without the initial massive latency.

Roughly the steps:
1) Spin up a Service Worker
2) postMessage to the worker with a blob of data and a unique (fake) URL to be used for the video
3) In the worker, add the data to the cache using the unique URL
4) Set the video's src to the path that the Service Worker will respond to

The service worker will need to support range requests - we used workbox to provide that side of the implementation. I'll attach the service-worker side of things in case it helps anyone else.

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/20211022/f5ae8ee6/attachment-0001.htm>

More information about the webkit-unassigned mailing list