On Thu, Apr 30, 2009 at 1:04 PM, Ian Hickson <span dir="ltr"><ian@hixie.ch></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
I have left the spec as is (except for adding startTime), which means that<br>
currentTime can be greater than duration if startTime is not zero.</blockquote><div><br clear="all">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.<br>
<br>So I think a safer design would be to interpret currentTime as relative to the startTime, perhaps renaming startTime to 'timeOffset' instead?<br></div></div><br>Rob<br>-- <br>"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 53:5-6]<br>