|
|
|
@ -74,13 +74,13 @@ navigator.mediaDevices.getUserMedia({ audio: true })
|
|
|
|
|
sound.controls = 'controls';
|
|
|
|
|
sound.src = audioUrl;
|
|
|
|
|
console.log(audioUrl)
|
|
|
|
|
sound.type = 'audio/ogg';
|
|
|
|
|
sound.type = 'audio/mpeg';
|
|
|
|
|
document.getElementById("audio-player-container").innerHTML = sound.outerHTML;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const audio = new Audio(audioUrl);
|
|
|
|
|
//audio.play();
|
|
|
|
|
let file = new File([audioBlob], "audio.ogg",{type:"audio/ogg"});
|
|
|
|
|
let file = new File([audioBlob], "audio.mp3",{type:"audio/mpeg"});
|
|
|
|
|
let container = new DataTransfer();
|
|
|
|
|
container.items.add(file);
|
|
|
|
|
document.getElementById("uploadedFile").files = container.files;
|
|
|
|
|