[whatwg] Start position of media resources

Robert O'Callahan robert at ocallahan.org
Wed Apr 29 23:16:09 PDT 2009

On Thu, Apr 30, 2009 at 1:04 PM, Ian Hickson <ian at hixie.ch> wrote:

> I have left the spec as is (except for adding startTime), which means that
> currentTime can be greater than duration if startTime is not zero.

I think it would be safer to have the invariant that 0 <= currentTime <=
duration. Most resources will probably have startTime==0 so authors will
write scripts expecting these invariants, and their scripts will break when
confronted with unusual resources with startTime>0.

So I think a safer design would be to interpret currentTime as relative to
the startTime, perhaps renaming startTime to 'timeOffset' instead?

"He was pierced for our transgressions, he was crushed for our iniquities;
the punishment that brought us peace was upon him, and by his wounds we are
healed. We all, like sheep, have gone astray, each of us has turned to his
own way; and the LORD has laid on him the iniquity of us all." [Isaiah
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.whatwg.org/pipermail/whatwg-whatwg.org/attachments/20090430/70c325d0/attachment-0002.htm>

More information about the whatwg mailing list