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

how to detect the end of a playing sound ?

From: Jerome Etienne <jerome.etienne@gmail.com>
Date: Wed, 31 Oct 2012 12:39:35 +0100
Message-ID: <CAN_PVv4h2ivYAVwij9ENr57iapm_p+00o8bk7DCujRr16GH-3A@mail.gmail.com>
To: public-audio@w3.org

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 ?

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

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