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();"> 

http://www.w3schools.com/tags/ref_av_dom.asp


Comments

Popular posts from this blog

javascript - how to protect a flash video from refresh? -

android - Associate same looper with different threads -

visual studio 2010 - Connect to informix database windows form application -