- From: Lachlan Hunt <lachlan.hunt@lachy.id.au>
- Date: Wed, 21 Mar 2007 01:56:49 +1100
Ian Hickson wrote: > On Sun, 18 Mar 2007, Anne van Kesteren wrote: >> I just played some more with our internal implementation (Opera's) and >> noticed that our pause() really is like togglePause() in the HTML5 > > Having pause() always pause is better because it means that you're not > likely to end up in state where the UI says one thing but the UA does > another (especially when you combine this with UA-provided UI). Agreed. > I only included togglePause() because Flash supports it and some people asked for > it; I'm not convinced we should keep it. I'm in favour of dropping it. It's an unnecessary API for browsers to support. It adds nothing that can't be done with play()/pause() and an if statement. if (video.state == HTMLVideoElement.PAUSED) { video.play(); } else { video.pause(); } -- Lachlan Hunt http://lachy.id.au/
Received on Tuesday, 20 March 2007 07:56:49 UTC