chrisguttandin/extendable-media-recorder

Duration is zero

Closed this issue · 2 comments

let stream = audioCtx.createMediaStreamDestination();
// ...play some audio to stream...
let recorder = new MediaRecorder(stream);
recorder.start();
recorder.addEventListener('dataavailable', function (e) {
    saveBlob(e.data, 'sample.wav');
});

Result: playable as normal media file but with 0 duration
image

Its posible to get ogg/wav format instead webm?

Haha! I forgot to add { mimeType: 'audio/wav' } option to media recorder! After that its works awesome!

sorry for the hasty issue...

No problem. I'm glad you got it working.