Open nox opened 7 years ago
It looks like the spec has been updated to use TimeRanges
throughout, but the new language is confusing because in some cases the intent is to refer to a singular time range - e.g., in 3.15.3:
If new playback position is not in any
TimeRanges
ofHTMLMediaElement
'sbuffered
I don't agree. It refers to a single playback position, but multiple ranges. buffered
represents multiple disjoint time ranges, and the playback position could be within any of them.
That's right, but "any TimeRanges" is what's confusing, as "any time range" (i.e., of the TimeRanges in buffered) would be more grammatical.
Okay, I agree on grammar, then.
because in some cases the intent is to refer to a singular time range
I don't think that's the intent. The intent is to state that currentTime is in none of the time intervals found in the buffered attribute.
The specification mentions a
TimeRange
interface numerous times, pointing to this W3C HTML interface (WHATWG), which is namedTimeRanges
, plural.