How can I add predefined length to audio recorded from MediaRecorder in Chrome?
<p>I am in the process of replacing RecordRTC with the built in MediaRecorder for recording audio in Chrome. The recorded audio is then played in the program with audio api. I am having trouble getting the audio.duration property to work. It says </p>

<blockquote>
  <p>If the video (audio) is streamed and has no predefined length, "Inf" (Infinity) is returned. </p>
</blockquote>

<p>With RecordRTC, I had to use ffmpeg_asm.js to convert the audio from wav to ogg. My guess is somewhere in the process RecordRTC sets the predefined audio length. Is there any way to set the predefined length using MediaRecorder?</p>