[whatwg] Html 5 video element's poster attribute
Simetrical+w3c at gmail.com
Sun Sep 19 17:50:11 PDT 2010
On Sun, Sep 19, 2010 at 4:53 PM, Shiv Kumar <skumar at exposureroom.com> wrote:
> The poster frame should remain visible until the video is played.
I agree with Silvia, this should be required by the spec. The
alternative is clearly wrong. Someone should also file a bug with
WebKit to ask them to change. If WebKit agrees to change, then I
don't think that changing the spec should be controversial.
> The poster should not show while the player is seeking (some browser
> implementation do show the poster while seeking, resulting a flashes)
This sounds like a browser bug. You should report it to the implementer.
> The poster should show again after the video has ended.
I'm ambivalent about this. I could go either way. It should be
standardized one way or the other, though, and currently it's
standardized as not showing (everyone does that, right?), so I'm okay
with keeping it there.
> The visibility of the poster should be scriptable and/or controllable using
> an attribute. Meaning that one should be able to turn on/off the poster
> (without changing the poster attrbute’s value)
I don't see why this is necessary. You can just do
video.dataset.poster = video.poster;
to remove it, and
video.poster = video.dataset.poster;
to restore, if you like. (In browsers that implement dataset, which
is apparently only WebKit so far. But you can easily store the
original value someplace else, although not quite as elegantly.)
More information about the whatwg