W3C home > Mailing lists > Public > whatwg@whatwg.org > August 2007

[whatwg] Help with HTML5 Audio

From: Ian Hickson <ian@hixie.ch>
Date: Sun, 5 Aug 2007 02:58:14 +0000 (UTC)
Message-ID: <Pine.LNX.4.64.0708050256570.9753@dhalsim.dreamhost.com>
On Sat, 4 Aug 2007, Anne van Kesteren wrote:
> On Sat, 04 Aug 2007 03:38:32 +0200, Ian Hickson <ian at hixie.ch> wrote:
> > This will get the while file fully downloaded, then play it. You can also
> > do things like:
> > 
> >   var sound = new Audio("foo.ogg");
> >   sound.oncanplaythrough = function() { sound.play() };
> 
> Actually, there's no such event handler on the Audio object.

Yeah the media events haven't yet been added to the long list of event 
handlers but that'll be fixed in due course. Assume they are there.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Saturday, 4 August 2007 19:58:14 UTC

This archive was generated by hypermail 2.3.1 : Monday, 13 April 2015 23:08:36 UTC