Hello,
In order to load in background assets for my 3D applications, I use
emscripten_async_wget2_data function.
My needs are to be able to request ranges of data within the asset files.
To do so, request header can be set such as
myXMLHTTPRequest.setRequestHeader("Range", "bytes=0-50");
Currently, the emscripten 1.25 api does not provide a way to set request
header properties. My approach would be to provide,
as argument from emscripten_async_wget2_data, a name-value map of header
properties.
In response to partial file loading, server returns status 206 which I need
to accept. emscripten_async_wget2_data could also take a list of status
considered valid.
What would you consider best to do here ?
I shall submit a pull request when the correct approach will be implemented.
As a side question I would like to know if browser caching policy would
work in combination with partial file loading.
Another concern is about encoding of downloaded files, as if partial file
loading could be gzipped on-the-fly to only encode and decode the desired
range.
Thanks,
Julien
--
You received this message because you are subscribed to the Google Groups
"emscripten-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.