W3C home > Mailing lists > Public > public-html-commits@w3.org > April 2009

html5/spec Overview.html,1.2194,1.2195

From: Ian Hickson via cvs-syncmail <cvsmail@w3.org>
Date: Thu, 30 Apr 2009 01:04:56 +0000
To: public-html-commits@w3.org
Message-Id: <E1LzKhs-0008Dk-F7@lionel-hutz.w3.org>
Update of /sources/public/html5/spec
In directory hutz:/tmp/cvs-serv31570

Modified Files:
Log Message:
Introduce video.startTime to return the earliest possible position. (whatwg r3035)

Index: Overview.html
RCS file: /sources/public/html5/spec/Overview.html,v
retrieving revision 1.2194
retrieving revision 1.2195
diff -u -d -r1.2194 -r1.2195
--- Overview.html	30 Apr 2009 00:35:14 -0000	1.2194
+++ Overview.html	30 Apr 2009 01:04:53 -0000	1.2195
@@ -17201,8 +17201,8 @@
   readonly attribute unsigned short <a href="#dom-media-networkstate" title="dom-media-networkState">networkState</a>;
            attribute boolean <a href="#dom-media-autobuffer" title="dom-media-autobuffer">autobuffer</a>;
 <!--v3BUF  readonly attribute float <span title="dom-media-bufferingRate">bufferingRate</span>;
-  readonly attribute boolean <span title="dom-media-bufferingThrottled">bufferingThrottled</span>;-->
-  readonly attribute <a href="#timeranges">TimeRanges</a> <a href="#dom-media-buffered" title="dom-media-buffered">buffered</a>;
+  readonly attribute boolean <span title="dom-media-bufferingThrottled">bufferingThrottled</span>;
+-->  readonly attribute <a href="#timeranges">TimeRanges</a> <a href="#dom-media-buffered" title="dom-media-buffered">buffered</a>;
   void <a href="#dom-media-load" title="dom-media-load">load</a>();
   DOMString <a href="#dom-navigator-canplaytype" title="dom-navigator-canPlayType">canPlayType</a>(in DOMString type);
@@ -17217,6 +17217,7 @@
   // playback state
            attribute float <a href="#dom-media-currenttime" title="dom-media-currentTime">currentTime</a>;
+  readonly attribute float <a href="#dom-media-starttime" title="dom-media-startTime">startTime</a>;
   readonly attribute float <a href="#dom-media-duration" title="dom-media-duration">duration</a>;
   readonly attribute boolean <a href="#dom-media-paused" title="dom-media-paused">paused</a>;
            attribute float <a href="#dom-media-defaultplaybackrate" title="dom-media-defaultPlaybackRate">defaultPlaybackRate</a>;
@@ -18260,12 +18261,24 @@
     <p>Can be set, to seek to the given time.<p>
     <p>Will throw an <code><a href="#invalid_state_err">INVALID_STATE_ERR</a></code> exception if there
-    is no selected <span>media resources</span>. Will throw an
+    is no selected <a href="#media-resource">media resource</a>. Will throw an
     <code><a href="#index_size_err">INDEX_SIZE_ERR</a></code> exception if the given time is not
     within the ranges to which the user agent can seek.</p>
+   <dt><var title="">media</var> . <code title="dom-media-startTime"><a href="#dom-media-starttime">startTime</a></code></dt>
+   <dd>
+    <p>Returns the <a href="#earliest-possible-position">earliest possible position</a>, in
+    seconds. This is the time for the start of the current clip. It
+    might not be zero if the clip's timeline is not zero-based, or if
+    the resource is a streaming resource (in which case it gives the
+    earliest time that the user agent is able to seek back to).</p>
+   </dd>
   </dl><div class="impl">
   <p>The <dfn id="dom-media-duration" title="dom-media-duration"><code>duration</code></dfn>
@@ -18315,10 +18328,16 @@
   position</dfn> is the earliest position in the stream or resource
   that the user agent can ever obtain again.</p>
-  <p>When the <a href="#earliest-possible-position">earliest possible position</a> changes, if the
-  <a href="#current-playback-position">current playback position</a> is before the
+  <p>The <dfn id="dom-media-starttime" title="dom-media-startTime"><code>startTime</code></dfn>
+  attribute must, on getting, return the <a href="#earliest-possible-position">earliest possible
+  position</a>, expressed in seconds.</p>
+  <p>When the <a href="#earliest-possible-position">earliest possible position</a> changes, then:
+  if the <a href="#current-playback-position">current playback position</a> is before the
   <a href="#earliest-possible-position">earliest possible position</a>, the user agent must <a href="#dom-media-seek" title="dom-media-seek">seek</a> to the <a href="#earliest-possible-position">earliest possible
-  position</a>.</p>
+  position</a>; otherwise, if the user agent has not fired a <code title="event-timeupdate"><a href="#event-timeupdate">timeupdate</a></code> event at the element in
+  the past 15 to 250ms, then the user agent must <a href="#queue-a-task">queue a
+  task</a> to <a href="#fire-a-simple-event">fire a simple event</a> called <code title="event-timeupdate"><a href="#event-timeupdate">timeupdate</a></code> at the element.</p>
   </div><p>The <dfn id="attr-media-loop" title="attr-media-loop"><code>loop</code></dfn>
   attribute is a <a href="#boolean-attribute">boolean attribute</a> that, if specified,
Received on Thursday, 30 April 2009 01:05:06 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:09:21 UTC