Archive for the ‘HTML5’ Category

Jquery to control HTML5 audio elements

html5 javascript Automatically start playing the audio on page load

preload audio

html5 jquery play pause audio

html5 jquery Trigger events at certain times in audio

jquery Mute audio

Before checking the javascript code, let’s have a look at the Html5 audio tag:-

<audio id="bg_audio" controls="controls">
<source src="audio_file.ogg" type="audio/ogg">
<source src="audio_file.mp3" type="audio/mpeg">
Your browser does not support the audio element.

How to handle/control the HTML5 audio elements?