W3C home > Mailing lists > Public > whatwg@whatwg.org > October 2008

[whatwg] video tag : loop for ever

From: Chris Double <chris.double@double.co.nz>
Date: Thu, 30 Oct 2008 13:19:06 +1300
Message-ID: <c2e346f90810291719u358d37bw8695f112d0dc8044@mail.gmail.com>
On Thu, Oct 30, 2008 at 7:38 AM, Eduard Pascual <herenvardo at gmail.com> wrote:
> Wouldn't multiple <audio> elements be better here?

I can see use cases where multiple audio elements might not be as
useful as one containing multiple samples.

I might have a single audio file containing 500 'parts of speech'
which I form together to make my browser speak lojban, or create some
sound effect. I don't want 500 audio elements. Each instantiation of
an audio element requires that audio element to parse the metadata. I
can't call play on that audio element until 'metadataloaded' occurs so
I have to wait for the event and structure my code around that and the
subsequent delay.

I'm not sure that type of use case is very likely though. In my
JavaScript 8080 emulator I took the approach of multiple audio
elements for the sounds and it works quite well.

Received on Wednesday, 29 October 2008 17:19:06 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:06 UTC