staskobzar / vue-audio-visual

VueJS audio visualization components
MIT License
723 stars 115 forks source link

How do I use audio recorded by MediaRecorder? #154

Closed Shahryar1991 closed 7 months ago

Shahryar1991 commented 7 months ago

I want to use the audio recorded by the MediaRecorder in the AVWaveform component but I get the following error: Media resource blob:http://localhost:3000/cc77ae12-4abb-4832-ae08-51b6169a1a2c could not be decoded. Failed to decode audio array buffer: DOMException: The buffer passed to decodeAudioData contains an unknown content type.

My code is similar to the MediaRecorder example in the link below: https://developer.mozilla.org/en-US/docs/Web/API/MediaRecorder#example

I'm using this component in Vue 3.

Please help!