[whatwg] HTML5 Video - Issue and Request for improvment
xiphmont at gmail.com
Sat Jan 29 17:19:42 PST 2011
> If I want to toggle play/pause
> on video area click, then I cannot do this, because clicking on the play
> control button, fires play, then click event fires for video tag and when I
> toggle It pauses. So this behavior that every popular flash player has
> cannot be achieved. There is no way to understand that the click.target is
> the embedded browser controls area.
You can do it by writing your own controls for an overlay div.
It's not as involved as it sounds. One of the demos at OVC this past
fall was a ten-minute demo of writing full custom controls from
scratch, including drawing the buttons, etc.
More information about the whatwg