W3C home > Mailing lists > Public > whatwg@whatwg.org > March 2009

[whatwg] Syntax to access video elements time-ranges, a change from old pattern

From: Biju <bijumaillist@gmail.com>
Date: Sun, 15 Mar 2009 14:34:35 -0400
Message-ID: <4a27dd80903151134u5548f0b8q8399c61987a1386@mail.gmail.com>
What I understood from
http://www.whatwg.org/specs/web-apps/current-work/multipage/video.html#time-ranges
following will be the syntax to access video elements buffered time-ranges

v1.buffered.length
v1.buffered.start(i)
v1.buffered.end(i)

When I compare it with existing syntax like

document.links.length
document.links[0].href

document.images.length
document.images[0].src

window.frames.length
window.frames[0].history

I feel it should have been of the pattern

v1.buffered.length
v1.buffered[i].start
v1.buffered[i].end


So why we changed the syntax for time-ranges?
(ie, buffered, seekable and played)

Thanks
Biju
Received on Sunday, 15 March 2009 11:34:35 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 30 January 2013 18:47:49 GMT