oneam / h264bsd

A simple h264 software decoding library
Other
194 stars 52 forks source link

How to use the wasm version in NodeJS #13

Closed snowfrogdev closed 5 years ago

snowfrogdev commented 5 years ago

Hi,

I'm just wondering if you have tested the wasm version in a NodeJS environment and if you could share how to set it up.

oneam commented 5 years ago

I’ve never tried running it in a NodeJS environment. It was originally intended to run in browser. I’ll see what I can put together for sample code.

oneam commented 5 years ago

I've added test_node.js to the wasm directory to give an example of running with NodeJS (version 11.9 in my case)

I'm working on some testing next.