Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>From <a href="http://www.whatwg.org/specs/web-apps/current-work/multipage/the-video-element.html#dom-media-currenttime" rel="nofollow">http://www.whatwg.org/specs/web-apps/current-work/multipage/the-video-element.html#dom-media-currenttime</a>,</p> <blockquote> <p>The <code>currentTime</code> attribute must, on getting, return the <a href="http://www.whatwg.org/specs/web-apps/current-work/multipage/the-video-element.html#media-element" rel="nofollow">media element</a>'s <a href="http://www.whatwg.org/specs/web-apps/current-work/multipage/the-video-element.html#default-playback-start-position" rel="nofollow">default playback start position</a>, unless that is zero, in which case it must return the element's <a href="http://www.whatwg.org/specs/web-apps/current-work/multipage/the-video-element.html#official-playback-position" rel="nofollow">official playback position</a>. The returned value must be expressed in seconds. On setting, if the <a href="http://www.whatwg.org/specs/web-apps/current-work/multipage/the-video-element.html#media-element" rel="nofollow">media element</a> has a <a href="http://www.whatwg.org/specs/web-apps/current-work/multipage/the-video-element.html#current-media-controller" rel="nofollow">current media controller</a>, then the user agent must throw an <a href="http://www.whatwg.org/specs/web-apps/current-work/multipage/infrastructure.html#invalidstateerror" rel="nofollow"><code>InvalidStateError</code></a> exception; otherwise, if the <a href="http://www.whatwg.org/specs/web-apps/current-work/multipage/the-video-element.html#media-element" rel="nofollow">media element</a>'s <a href="http://www.whatwg.org/specs/web-apps/current-work/multipage/the-video-element.html#dom-media-readystate" rel="nofollow"><code>readyState</code></a> is <a href="http://www.whatwg.org/specs/web-apps/current-work/multipage/the-video-element.html#dom-media-have_nothing" rel="nofollow"><code>HAVE_NOTHING</code></a>, then it must set the <a href="http://www.whatwg.org/specs/web-apps/current-work/multipage/the-video-element.html#media-element" rel="nofollow">media element</a>'s <a href="http://www.whatwg.org/specs/web-apps/current-work/multipage/the-video-element.html#default-playback-start-position" rel="nofollow">default playback start position</a> to the new value; otherwise, it must set the <a href="http://www.whatwg.org/specs/web-apps/current-work/multipage/the-video-element.html#official-playback-position" rel="nofollow">official playback position</a> to the new value and then <a href="http://www.whatwg.org/specs/web-apps/current-work/multipage/the-video-element.html#dom-media-seek" rel="nofollow">seek</a> to the new value. The new value must be interpreted as being in seconds.</p> </blockquote> <p>It seems you want the <code>seek</code> case.</p> <p>Then, according to <a href="http://www.whatwg.org/specs/web-apps/current-work/multipage/the-video-element.html#dom-media-seek" rel="nofollow">http://www.whatwg.org/specs/web-apps/current-work/multipage/the-video-element.html#dom-media-seek</a>,</p> <blockquote> <p>The <code>seekable</code> attribute must return a new static normalized <code>TimeRanges</code> object that represents the ranges of the media resource, if any, that the user agent is able to seek to, at the time the attribute is evaluated.</p> <p>If the user agent can seek to anywhere in the media resource, e.g. because it is a simple movie file and the user agent and the server support HTTP Range requests, then the attribute would return an object with one range, whose start is the time of the first frame (the earliest possible position, typically zero), and whose end is the same as the time of the first frame plus the duration attribute's value (which would equal the time of the last frame, and might be positive Infinity).</p></p> <p>The range might be continuously changing, e.g. if the user agent is buffering a sliding window on an infinite stream. This is the behavior seen with DVRs viewing live TV, for<br> instance.</p></p> <p><p>Media resources might be internally scripted or interactive. Thus, a media element could play in a non-linear fashion. If this happens, the user agent must act as if the algorithm for seeking was used whenever the current playback position<br> changes in a discontinuous fashion (so that the relevant events fire). If the media element has a current media controller, then the user agent must seek the media controller appropriately instead. </p></p> </blockquote>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload