I need to decode h264 data at browser side for that I am using openh264 library build in web Assembly using emscripten. I have build it successfully and tried to use it in java script to decode the h264 data. But I am getting one error for following line,
var open_decoder = Module.cwrap('open_decoder', 'number', null);
Error is: Uncaught TypeError: Module.cwrap is not a function
If anyone has has build openh264 with emscripten please help me to figure out issue.
Following steps I have used to build openh264 with emscripten.
- $ source emsdk_env.sh
- $./emsdk activate latest
- cd openh264-js-master
- make
Note : The code for openh264 has been downloaded from github( ttyridal) and already has make file with emscripten competent.