[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 06:57:16 PDT 2021


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

--- Comment #7 from Simon Taylor <simontaylor1 at ntlworld.com> ---
I think you're out of luck in that case, looks like service workers can't be specified inline. I guess that makes sense from a security POV - prevents third party js from injecting a service worker to man-in-the-middle all your network traffic.

Back on the bug, there's a demo page here that shows videos with data uris for the source:
https://iandevlin.com/html5/data-uri/video.php

Using a blob via an object URL seems to have similar performance to me.

One weird finding, switching to an <img> tag with the mp4 as src ( as described in https://developer.apple.com/documentation/webkit/delivering_video_content_for_safari ) appears to give much better performance, and that would work inline. Downside is no audio, it loops, and there's no controls / timeline or anything. Depending on your use case it might be helpful though...

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


More information about the webkit-unassigned mailing list