[Webkit-unassigned] [Bug 232076] Safari on iOS cannot play a video from data uri or blob
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue May 31 19:40:45 PDT 2022
https://bugs.webkit.org/show_bug.cgi?id=232076
Daniel Santos <daniel.santos5555 at yahoo.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |daniel.santos5555 at yahoo.com
--- Comment #30 from Daniel Santos <daniel.santos5555 at yahoo.com> ---
This isn't exactly a "fix" to the data URI problem. More of a supported workaround, really.
It occurred to me that the only platform in which this issue seems to happen is coincidentally also the only one that fully supports assigning things other than a MediaStream to the HTMLMediaElement.srcObject, specifically MediaSources, Files, and most importantly: Blobs.
Since Blobs are on the table, the above is a quick and painless way of getting the video to play without any obvious issues (at least, none that my testing of this has encountered).
For cross-platform uses, assigning non-MediaStream objects in unsupported browsers throws an error, which you could catch and then default to assigning the Blob to the HTMLMediaElement.src property via a call to URL.createObjectURL().
Of note, a Blob as a srcObject only works if it has an appropriate Blob.type.
--
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/20220601/766fa7cd/attachment.htm>
More information about the webkit-unassigned
mailing list