[whatwg] Start position of media resources

Chris Double chris.double at double.co.nz
Sun Apr 5 15:52:07 PDT 2009

Ogg based media resources can start from a time position that is not
zero. Examples of files that do this are those generated by the
program oggz-chop. For example:


If this is played in VLC the start time of the video is 0:20:00. When
seeking the time requested for the seek must be between 0:20:00 and
0:20:50. Does the HTML5 spec allow media resources that don't start
from 0? I see in the spec mention:

"Media elements have a current playback position, which must initially
be zero. The current position is a time."

In the case of the Ogg file above, the current playback position would
initially be zero, but when the first frame is loaded it will be

Is this valid per the spec?  If so, would we need an attribute on the
media object so the web page author can retrieve the start time of the
video (in the same way they can get the duration). They would need
this to be able to display progress bars/scrubbers to position the
thumb correctly based on the currentTime. Detecting the first frame or
metadata loaded events and getting the position of the that won't work
as some of the video may have been played by the time that event is
handled by user code.


More information about the whatwg mailing list