[whatwg] Timing for the poster image appearing for <video>

Ian Hickson ian at hixie.ch
Tue Jul 8 15:58:43 PDT 2008


On Thu, 26 Jun 2008, Adele Peterson wrote:
>
> The spec currently states that the poster image specified in the poster 
> attribute for <video> can show up either when no video data is available 
> or when a video element is paused and the current playback position is 
> the first frame of video.
> 
> The second situation seems like it would allow the poster image to be 
> displayed when a user rewinds the video back to the beginning while 
> paused.  I think it would make more sense to just allow the poster image 
> to be displayed if the readyState is less than CAN_PLAY, instead of 
> considering the paused state.  The paused state will always be true when 
> the readyState is less than CAN_PLAY, but with this rule, the poster 
> image won't randomly show up in other situations where the video is 
> paused and you're at the beginning.

On Fri, 27 Jun 2008, Philip Jägenstedt wrote:
>
> The current spec allows implementing it like this, but I support the 
> change as it takes away that unnecessary ambiguity.

On Fri, 27 Jun 2008, Lachlan Hunt wrote:
> 
> Looking at the way YouTube videos work when they're not set to autoplay, 
> the poster frame is displayed up until the video begins playing for the 
> first time.  After that, it always displays whatever frame it's paused 
> on, until it reaches the end and displays related videos instead.

I've tweaked the poster frame definition to still _allow_ the same 
behaviours, but to strongly encourage (SHOULD) that the poster frame be 
shown until video is shown and not thereafter.

-- 
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