W3C home > Mailing lists > Public > public-audio@w3.org > October to December 2012

Re: how to detect the end of a playing sound ?

From: Gabriel Cardoso <gabriel.cardoso@inria.fr>
Date: Wed, 31 Oct 2012 12:54:16 +0100
Cc: public-audio@w3.org
Message-Id: <33F88EB4-7E23-460D-BCC5-410A37C6048B@inria.fr>
To: Jerome Etienne <jerome.etienne@gmail.com>
Hi !

+1 for that. 

I also think such an event would be comfortable.

Gabriel

Le 31 oct. 2012 à 12:39, Jerome Etienne a écrit :

> 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:54:55 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:03:14 UTC