|
|
@ -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;
|
|
|
|