You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to embed "ogv.js" files into one JS-file, but it seems like I can't load .wasm code not from file.
The generated code for "ogv-demuxer-ogg-wasm.js" contains hardcoded string "ogv-demuxer-ogg-wasm.wasm":
Also, I can't find where it comes from (there's no "ogv-demuxer-ogg-wasm.wasm" in the source code anywhere).
The text was updated successfully, but these errors were encountered:
Use the -s SINGLE_FILE=1 option in the emscripten build and modify the Makefile to avoid copying the wasm files. This will increase the size of the javascript package because it has to base64 the wasm.
// If set to 1, embeds all subresources in the emitted file as base64 string
// literals. Embedded subresources may include (but aren't limited to) wasm,
// asm.js, and static memory initialization code.
//
// When using code that depends on this option, your Content Security Policy may
// need to be updated. Specifically, embedding asm.js requires the script-src
// directive to allow 'unsafe-inline', and using a Worker requires the
// child-src directive to allow blob:. If you aren't using Content Security
// Policy, or your CSP header doesn't include either script-src or child-src,
// then you can safely ignore this warning.
// [link]
var SINGLE_FILE = false;
I am trying to embed "ogv.js" files into one JS-file, but it seems like I can't load .wasm code not from file.
The generated code for "ogv-demuxer-ogg-wasm.js" contains hardcoded string "ogv-demuxer-ogg-wasm.wasm":
Also, I can't find where it comes from (there's no
"ogv-demuxer-ogg-wasm.wasm"
in the source code anywhere).The text was updated successfully, but these errors were encountered: