How to play a m4a/mp3 file via html file

There is licensing issue playing m4a formats in modern browsers

So your browser’s console will generate something as the following:

Cannot play media. No decoders for requested formats: audio/m4a

Just use mp3, here is example:

Download mp3 sample and insert it into your html file:

Read the rest

How to play a midi file via html file

You need to use Javascript plugin

Include the library and specify to file you wish to play

<script src=''></script>


Source:… Read the rest