Support for ReadableStream, Blob, and MediaSource
#105
AdamSobieski
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Hello. I would like to share an idea for new features: php-wasm could provide
ReadableStream,Blob, andMediaSourcesupport for input and output streams. With support forBlobandMediaSourcefor output streams, one could use theblob:URL scheme, creatingblob:URLs with theURL.createObjectURL()static method.One would, then, be able to utilize php-wasm to wield client-side PHP to generate dynamic XML documents, HTML documents, images, multimedia resources, and various other kinds of resources, to obtain
BloborMediaSourceobjects, and to useURL.createObjectURL()to obtainblob:URLs to provide as values for attributes of<iframe>,<a>,<link>,<img>,<picture>,<audio>,<video>, and<source>elements.One considered technical topic involves that the output content type is set, in PHP, via the
header()function, before output commences, and this content type is usefully provided when constructing aBlob.What do you think about these ideas? Thank you.
All reactions