Could a call to video.load() reset this state?<br><br>Silvia.<br><br><div class="gmail_quote">On Mon, Sep 20, 2010 at 1:16 PM, Shiv Kumar <span dir="ltr"><<a href="mailto:skumar@exposureroom.com">skumar@exposureroom.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">








<div bgcolor="white" link="blue" vlink="purple" lang="EN-US">

<div>

<div>

<p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D">As regards having more control of the poster’s visibility,  what
I’m saying is that one should have the ability to turn on/off a poster.
Currently once the poster has been made invisible by the UA, there is no way to
turn it back on. So if I wanted to turn it back on after the video has ended, I
can’t and I think people should have that choice?</span></p>

<p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D"> </span></p>

<p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D">I hope that makes sense?</span></p>

<p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D"> </span></p>

<p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D"> </span></p>

<p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D">Shiv</span></p>

<p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D"><a href="http://exposureroom.com/" target="_blank"><span style="color:blue">http://exposureroom.com</span></a></span></p>

</div>

<p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D"> </span></p>

<div>

<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">

<p class="MsoNormal"><b><span style="font-size:10.0pt;color:windowtext">From:</span></b><span style="font-size:10.0pt;color:windowtext"> <a href="mailto:whatwg-bounces@lists.whatwg.org" target="_blank">whatwg-bounces@lists.whatwg.org</a>
[mailto:<a href="mailto:whatwg-bounces@lists.whatwg.org" target="_blank">whatwg-bounces@lists.whatwg.org</a>] <b>On Behalf Of </b>Chris Pearce<br>
<b>Sent:</b> Sunday, September 19, 2010 11:10 PM<br>
<b>To:</b> <a href="mailto:whatwg@lists.whatwg.org" target="_blank">whatwg@lists.whatwg.org</a></span></p><div class="im"><br>
<b>Subject:</b> Re: [whatwg] Html 5 video element's poster attribute</div><p></p>

</div>

</div>

<p class="MsoNormal"> </p>

<p class="MsoNormal">On 20/09/2010 12:50 p.m., Aryeh Gregor wrote: </p><div><div></div><div class="h5">

<pre>On Sun, Sep 19, 2010 at 4:53 PM, Shiv Kumar <a href="mailto:skumar@exposureroom.com" target="_blank"><skumar@exposureroom.com></a> wrote:</pre>

<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt"><pre>The poster frame should remain visible until the video is played.</pre></blockquote>

<pre> </pre><pre>I agree with Silvia, this should be required by the spec.</pre>

<p class="MsoNormal"><br>
This makes sense, we should spec this so that the poster <i>must</i> be visible
until its played, otherwise the poster attribute can't be relied upon by
authors.<br>
<br>
<br>
</p>

<p class="MsoNormal"><br>
<br>
</p>

<pre>The poster should show again after the video has ended.</pre><pre> </pre><pre>I'm ambivalent about this.  I could go either way.</pre>

<p class="MsoNormal"><br>
Aesthetically, I feel we shouldn't show the poster once the video has finished.
Authors could script this behaviour if they wanted it. The spec as it's written
forbids showing the poster after a video frame has been shown.<br>
<br>
<br>
<br>
</p>

<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt"><pre>The visibility of the poster should be scriptable and/or controllable using</pre><pre>an attribute. Meaning that one should be able to turn on/off the poster</pre>

<pre>(without changing the poster attrbute’s value)</pre></blockquote>

<pre> </pre><pre>I don't see why this is necessary.</pre>

<p class="MsoNormal"><br>
I also don't see why this is necessary. The poster attribute is only useful if
it's enabled, it's not useful if it isn't. Having an attribute to denote
whether the poster attribute is enabled seems like duplication of state to me.<br>
<br>
<br>
</p>

<pre>  You can just do</pre><pre> </pre><pre>video.dataset.poster = video.poster;</pre><pre>video.removeAttribute("poster");</pre><pre> </pre><pre>to remove it, and</pre><pre> </pre><pre>video.poster = video.dataset.poster;</pre>

<pre> </pre><pre>to restore, if you like.  (In browsers that implement dataset, which</pre><pre>is apparently only WebKit so far.  But you can easily store the</pre><pre>original value someplace else, although not quite as elegantly.)</pre>

<pre> </pre>

<p class="MsoNormal"><br>
The specification for poster [1] implies that we should handle dynamic changes
to the poster attribute. I can imagine authors may want to cycle through a
chain of poster images for a given video, and this can (theoretically) be
easily implemented by changing the poster attribute in a timer.<br>
<br>
Chris P.<br>
<br>
[1] <a href="http://www.whatwg.org/specs/web-apps/current-work/multipage/video.html#attr-video-poster" target="_blank">http://www.whatwg.org/specs/web-apps/current-work/multipage/video.html#attr-video-poster</a></p>

</div></div></div>

</div>


</blockquote></div><br>