buzz/mediainfo.js

Need help setting up mediainfo.js with my react app.

Closed this issue · 1 comments

Hello, everyone

I am trying to implement mediainfo.js in my react app. At first, I tried implementing it via npm install mediainfo.js but it showed

Uncaught (in promise) CompileError: WebAssembly.instantiate(): expected magic word 00 61 73 6d, found 3c 21 44 4f @+0 mediainfo

error for which the instructions are that while using this way I have to make changes in webpack.config.js but I have few queries like do i add a custom webpack.config.js apart from node_modules/react-scripts/config/webpack.config.js? If yes, then I would like to ignore this method.

Hence, I tried using the CDN way. I imported the
<script type="text/javascript" src= "https://unpkg.com/mediainfo.js/dist/mediainfo.min .js" ></script> in my index.html in public folder.
How can I initialise the mediainfo instance while using this method? What will I import and which constructor should I call?

I would help me if you can add the code sample. Also, I have checked all the issues closed and opened but i am not able to find anything relevant to this. So, if you know same issue that was raised you can also show me that.

Thanks.

buzz commented

Hey there, you arrived at the mediainfo.js bug tracker.

If you want to report a bug, then please create a concise report including repro and logs.

If you want to ask a question on how to use the library, please take the time to consult the README first. It's all explained in detail there.

If you need human assistance, you can use tools as Stack Overflow.