<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Right, so you want to be able to toggle the poster back on (when the
media is paused or ended) but after playback has started.<br>
<br>
I wonder if these are separate use cases, e.g. whether users would
want to display a different image from the poster image in these
cases. i.e. I wonder if we need to provide an attribute to specify
an image to display when paused and another new attribute for an
image to display when playback has ended. I wonder if that's
overkill through.<br>
<br>
<br>
Chris P.<br>
<br>
On 20/09/2010 3:16 p.m., Shiv Kumar wrote:
<blockquote cite="mid:004601cb5872$4daf4800$e90dd800$@com"
type="cite">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="Generator" content="Microsoft Word 12 (filtered
medium)">
<style>
<!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
{font-family:Consolas;
panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman","serif";
color:black;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
pre
{mso-style-priority:99;
mso-style-link:"HTML Preformatted Char";
margin:0in;
margin-bottom:.0001pt;
font-size:10.0pt;
font-family:"Courier New";
color:black;}
span.HTMLPreformattedChar
{mso-style-name:"HTML Preformatted Char";
mso-style-priority:99;
mso-style-link:"HTML Preformatted";
font-family:Consolas;
color:black;}
span.EmailStyle19
{mso-style-type:personal-reply;
font-family:"Calibri","sans-serif";
color:#1F497D;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
-->
</style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
<div class="WordSection1">
<div>
<p class="MsoNormal"><span style="font-size: 11pt;
font-family: "Calibri","sans-serif";
color: rgb(31, 73, 125);">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?<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size: 11pt;
font-family: "Calibri","sans-serif";
color: rgb(31, 73, 125);"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size: 11pt;
font-family: "Calibri","sans-serif";
color: rgb(31, 73, 125);">I hope that makes sense?<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size: 11pt;
font-family: "Calibri","sans-serif";
color: rgb(31, 73, 125);"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size: 11pt;
font-family: "Calibri","sans-serif";
color: rgb(31, 73, 125);"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size: 11pt;
font-family: "Calibri","sans-serif";
color: rgb(31, 73, 125);">Shiv<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size: 11pt;
font-family: "Calibri","sans-serif";
color: rgb(31, 73, 125);"><a moz-do-not-send="true"
href="http://exposureroom.com/"><span style="color:
blue;">http://exposureroom.com</span></a><o:p></o:p></span></p>
</div>
<p class="MsoNormal"><span style="font-size: 11pt; font-family:
"Calibri","sans-serif"; color: rgb(31,
73, 125);"><o:p> </o:p></span></p>
<div>
<div style="border-right: medium none; border-width: 1pt
medium medium; border-style: solid none none; border-color:
rgb(181, 196, 223) -moz-use-text-color -moz-use-text-color;
padding: 3pt 0in 0in;">
<p class="MsoNormal"><b><span style="font-size: 10pt;
font-family:
"Tahoma","sans-serif"; color:
windowtext;">From:</span></b><span style="font-size:
10pt; font-family:
"Tahoma","sans-serif"; color:
windowtext;"> <a class="moz-txt-link-abbreviated" href="mailto:whatwg-bounces@lists.whatwg.org">whatwg-bounces@lists.whatwg.org</a>
[<a class="moz-txt-link-freetext" href="mailto:whatwg-bounces@lists.whatwg.org">mailto: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 class="moz-txt-link-abbreviated" href="mailto:whatwg@lists.whatwg.org">whatwg@lists.whatwg.org</a><br>
<b>Subject:</b> Re: [whatwg] Html 5 video element's
poster attribute<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">On 20/09/2010 12:50 p.m., Aryeh Gregor
wrote: <o:p></o:p></p>
<pre>On Sun, Sep 19, 2010 at 4:53 PM, Shiv Kumar <a moz-do-not-send="true" href="mailto:skumar@exposureroom.com"><skumar@exposureroom.com></a> wrote:<o:p></o:p></pre>
<blockquote style="margin-top: 5pt; margin-bottom: 5pt;">
<pre>The poster frame should remain visible until the video is played.<o:p></o:p></pre>
</blockquote>
<pre><o:p> </o:p></pre>
<pre>I agree with Silvia, this should be required by the spec.<o:p></o:p></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>
<o:p></o:p></p>
<p class="MsoNormal"><br>
<br>
<o:p></o:p></p>
<pre>The poster should show again after the video has ended.<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre>I'm ambivalent about this. I could go either way.<o:p></o:p></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>
<o:p></o:p></p>
<blockquote style="margin-top: 5pt; margin-bottom: 5pt;">
<pre>The visibility of the poster should be scriptable and/or controllable using<o:p></o:p></pre>
<pre>an attribute. Meaning that one should be able to turn on/off the poster<o:p></o:p></pre>
<pre>(without changing the poster attrbute’s value)<o:p></o:p></pre>
</blockquote>
<pre><o:p> </o:p></pre>
<pre>I don't see why this is necessary.<o:p></o:p></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>
<o:p></o:p></p>
<pre> You can just do<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre>video.dataset.poster = video.poster;<o:p></o:p></pre>
<pre>video.removeAttribute("poster");<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre>to remove it, and<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre>video.poster = video.dataset.poster;<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre>to restore, if you like. (In browsers that implement dataset, which<o:p></o:p></pre>
<pre>is apparently only WebKit so far. But you can easily store the<o:p></o:p></pre>
<pre>original value someplace else, although not quite as elegantly.)<o:p></o:p></pre>
<pre><o:p> </o:p></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 moz-do-not-send="true"
href="http://www.whatwg.org/specs/web-apps/current-work/multipage/video.html#attr-video-poster">http://www.whatwg.org/specs/web-apps/current-work/multipage/video.html#attr-video-poster</a><o:p></o:p></p>
</div>
</blockquote>
<br>
</body>
</html>