Alexander Roidl 2 years ago
parent e8de0c18dd
commit 31de55429d

BIN
.DS_Store vendored

Binary file not shown.

Binary file not shown.

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

Loading…
Cancel
Save