how to detect the end of a playing sound ?

Hello,

i would like to play multiple sounds (songs in mp3) one after the other. Is
there a way to detect the end of a playing sound ? an event endOfSound or
something like that ?

Currently i storing the duration of the currently playing sound, do a
settimeout which is triggered after this time, when it is triggered, i stop
the current sound and start the new one... rather clumsy. is there a better
way ?

Jerome

Received on Wednesday, 31 October 2012 11:40:05 UTC