codekraft-studio / vue-record

VueJs components for MediaRecorder API
https://codekraft-studio.github.io/vue-record/
MIT License
95 stars 57 forks source link

Blob file is video/webm instead of audio/mp3, is there possibility to record in mp3? #35

Open Felipevieira2 opened 1 year ago

Felipevieira2 commented 1 year ago

Blob file is video/webm instead of audio/mp3, is there possibility to record in mp3?

<vue-record-audio v-if="!message.message" @result="onResult" />

onResult(data) {
            // //console.log('The blob data:', data);
            // //console.log('Downloadable audio', window.URL.createObjectURL(data));
            data = data.slice(0, data.size, "audio/mp3")

            this.audio = window.URL.createObjectURL(data);
            console.log('The blob data:', data);

            this.fileaudio = data;
        },

image