Answer the question
In order to leave comments, you need to log in
Select a file (via input file), play it?
Hello! I need the user to select a file (via input file) and play it via JS:
<input type="file" onchange="file()">
<audio id="a">
function file() {
И тут сам код
}
Answer the question
In order to leave comments, you need to log in
https://developer.mozilla.org/en-US/docs/Web/API/U...
pass the created url to audio
then don't forget revokeObjectURL
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question