I tried to create a Pull Request to MediaInfo with a simple project with the above solution and the author showed me a better way to integrate it with Angular: Maybe I should put some configuration in app-module or something. I posted the MediaInfo for one of the files on the WDTVL forum. How do I integrate this using import MediaInfo from 'mediainfo.js' 377 KEYTV > 0x001e 163 KEYNEXTSONG > 0x001f 174 KEYEXIT > 0x0020 402. What I need is the correct integration with Angular. Wasm streaming compile failed: TypeError: Failed to execute 'compile' on 'WebAssembly': Incorrect response MIME type. I imported the CDN into index.html and put declare let MediaInfo: any Īlso in my production environment I get these messages in the console which don't appear locally: DevTools failed to load SourceMap: Could not parse content for : Unexpected token < in JSON at position 0 I made it work, but in a very clumsy way. How can I integrate Mediainfo into Angular 8 ? Any other info on this error that can help me ?Īlso if anyone knows how to install wasm in the frontend, it would be helpful in order for me to continue to try the integration. Yet Mediainfo's page claims "All analyzing is done in the browser", so it should be possible. I also found this page that shows how to use an wasm module in Angular, but I ain't got a clue on what would I put instead of the example's fibonacci function. And in it's npm page says it's Node only ( )īut it's far too different from Angular's configuration. Download the 'DLL without installer' package, it contains a C project file. I tried to install wasm package, but it returned lots of V8 related errors. 1 Answer Sorted by: 0 You should try to get ride of outdated 'DotNet' thing, and use MediaInfo library directly, there is a C binding. Build with -s ASSERTIONS=1 for more info.Īt ZoneDelegate.invoke (polyfills.js:3709)Īt ZoneDelegate.invoke (polyfills.js:3708)Īt ZoneDelegate.invokeTask (polyfills.js:3741)Īt ZoneDelegate.invokeTask (polyfills.js:3740)Īt drainMicroTaskQueue (polyfills.js:3909) Build with -s ASSERTIONS=1 for more info.). message list: Mon 07:10:12 media info: loading volume man.001 into. RuntimeError: abort(RuntimeError: abort(both async and sync fetching of the wasm failed). Table 2 lists the values which shall be used for tableid for the. 4 15 0x000f 5 31 0x001f 6 63 0x003f 7 127 0x007f 8 255 0x00ff 9 511 0x01ff 10. Build with -s ASSERTIONS=1 for more info. Build with -s ASSERTIONS=1 for more info.ĮRROR Error: Uncaught (in promise): RuntimeError: abort(RuntimeError: abort(both async and sync fetching of the wasm failed). RuntimeError: abort(both async and sync fetching of the wasm failed). Wasm streaming compile failed: TypeError: Failed to execute 'compile' on 'WebAssembly': HTTP status code is not okįalling back to ArrayBuffer instantiationīothg async and sync fetching of the wasm failedįailed to asynchronously prepare wasm: RuntimeError: abort(both async and sync fetching of the wasm failed). I am running exiftool 10.80-1 and mediainfo -version MediaInfo Command line, MediaInfoLib - v18.03 on Debian testing. I do know that mediainfo is suited more for video and audio files rather than images but would be nice if one tool could do it all. But I'm getting the errors below: GET 404 (Not Found) I did also scour the local manpage as well as -help but was not able to get far. I'm trying to use Mediainfo.js to get some video info on the frontend of an Angular 8 project.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |