HTML5 Audio Player Demo:

This following demo will demonstrate you how the HTML5 audio file playing works in real world. It has preload="metadata" with no autplay option. Use the player control to start playing the sample music. It has two alternative audio format(mp3 and ogg), should you should be able to play it on any browser you like without any issue. But if you are still facing any, contact me by commeting on the tutorial page. Enjoy!

Visit The HTML5 Audio API Tutorial

HTML5 Audio Player Code:

        <audio controls preload="metadata">
            <source src="{$base_url}audio/music.mp3" type="audio/mpeg">
            <source src="{$base_url}audio/music.ogg" type="audio/ogg">