title: Save video blob to filesystem electron/node js
body: <p>In my electron application, users can record video from their webcam using the MediaRecorder API.</p>
  
  <p>When the user hit the "stop record" button, I get a blob of the recorded video.</p>
  
  <p>What i would like to do is to convert this blob to a real webm video and write it into the user's filesystem with for example :</p>
  
  <pre><code>fs.writeFile(localdir + '\\video.webm', videoBlob); // does not work
  </code></pre>
  
  <p>The example below works pretty well with base64 image snapshot that I get from the webcam, but i can't make it work with the video blob that I get.</p>
  
  <p>Thanks for enlighten me !</p>