title: Uncaught TypeError: Module.cwrap is not a function
body: <p>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,</p>
  
  <pre><code>var open_decoder = Module.cwrap('open_decoder', 'number', null);
  </code></pre>
  
  <p>Error is: Uncaught TypeError: Module.cwrap is not a function</p>
  
  <p>If anyone has has build openh264 with emscripten please help me to figure out issue.</p>
  
  <p>Following steps I have used to build openh264 with emscripten.</p>
  
  <ol>
  <li>$ source emsdk_env.sh</li>
  <li>$./emsdk activate latest  </li>
  <li>cd openh264-js-master</li>
  <li>make</li>
  </ol>
  
  <p>Note : The code for openh264 has been downloaded from github( ttyridal) and already has make file with emscripten competent.</p>