How to play multiple audio files sequentially in html 5? -
i wanted autoplay multiple audio files sequentially.
below code plays audios @ same time.
<audio src="26de96c4000ceccafc415c5f191b5836.wav" autoplay ></audio> <audio src="0001.wav" autoplay ></audio>
please advice whether can played sequentially.
thanks vinoth
remove "autoplay" attribute "audio" tags , use javascript: http://jonhall.info/how_to/create_a_playlist_for_html5_audio
the method "ended" called when 1 "audio" tag finishes:
<audio ... ended="nextaudionode.play();">
Comments
Post a Comment