HTML Standard Tracker

Diff (omit for latest revision)

Short URL:

File a bug

SVNBugCommentTime (UTC)
3035[Gecko] [Opera] [Webkit] Introduce video.startTime to return the earliest possible position.2009-04-30 01:04
Index: source
--- source	(revision 3034)
+++ source	(revision 3035)
@@ -21273,8 +21273,8 @@
   readonly attribute unsigned short <span title="dom-media-networkState">networkState</span>;
            attribute boolean <span title="dom-media-autobuffer">autobuffer</span>;
 <!--v3BUF  readonly attribute float <span title="dom-media-bufferingRate">bufferingRate</span>;
-  readonly attribute boolean <span title="dom-media-bufferingThrottled">bufferingThrottled</span>;-->
-  readonly attribute <span>TimeRanges</span> <span title="dom-media-buffered">buffered</span>;
+  readonly attribute boolean <span title="dom-media-bufferingThrottled">bufferingThrottled</span>;
+-->  readonly attribute <span>TimeRanges</span> <span title="dom-media-buffered">buffered</span>;
   void <span title="dom-media-load">load</span>();
   DOMString <span title="dom-navigator-canPlayType">canPlayType</span>(in DOMString type);
@@ -21289,6 +21289,7 @@
   // playback state
            attribute float <span title="dom-media-currentTime">currentTime</span>;
+  readonly attribute float <span title="dom-media-startTime">startTime</span>;
   readonly attribute float <span title="dom-media-duration">duration</span>;
   readonly attribute boolean <span title="dom-media-paused">paused</span>;
            attribute float <span title="dom-media-defaultPlaybackRate">defaultPlaybackRate</span>;
@@ -22642,12 +22643,24 @@
     <p>Can be set, to seek to the given time.<p>
     <p>Will throw an <code>INVALID_STATE_ERR</code> exception if there
-    is no selected <span>media resources</span>. Will throw an
+    is no selected <span>media resource</span>. Will throw an
     <code>INDEX_SIZE_ERR</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">startTime</code></dt>
+   <dd>
+    <p>Returns the <span>earliest possible position</span>, 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>
   <div class="impl">
@@ -22705,11 +22718,19 @@
   position</dfn> is the earliest position in the stream or resource
   that the user agent can ever obtain again.</p>
-  <p>When the <span>earliest possible position</span> changes, if the
-  <span>current playback position</span> is before the
+  <p>The <dfn title="dom-media-startTime"><code>startTime</code></dfn>
+  attribute must, on getting, return the <span>earliest possible
+  position</span>, expressed in seconds.</p>
+  <p>When the <span>earliest possible position</span> changes, then:
+  if the <span>current playback position</span> is before the
   <span>earliest possible position</span>, the user agent must <span
   title="dom-media-seek">seek</span> to the <span>earliest possible
-  position</span>.</p>
+  position</span>; otherwise, if the user agent has not fired a <code
+  title="event-timeupdate">timeupdate</code> event at the element in
+  the past 15 to 250ms, then the user agent must <span>queue a
+  task</span> to <span>fire a simple event</span> called <code
+  title="event-timeupdate">timeupdate</code> at the element.</p>