[whatwg] Help with HTML5 Audio

Ian Hickson ian at hixie.ch
Sat Aug 4 19:58:14 PDT 2007


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.   `._.-(,_..'--(,_..'`-.;.'



More information about the whatwg mailing list