javascript – Drag and drop a MP3 on a HTML page, let the page play it (without uploading to server)

I’ve read a few questions/answers such as Play mp3 file after uploading it with html5 drag and drop upload but it’s not exactly what I’m looking for :

I want to be able to drag and drop a MP3 on a HTML page, and then have a player (with PLAY PAUSE STOP buttons) that can instantly play the MP3 without uploading the file to server – it should be played locally for the client instead.

How to do this with JavaScript?

The only things I have tried/found is to do this with a file upload and <audio> tag.

Read more here: Source link