[whatwg] Timestamp from video source in order to sync (e.g. expose OGG timestamp to javascript)

On Wed, 18 Aug 2010 09:44:30 +0200, Silvia Pfeiffer  
<silviapfeiffer1 at gmail.com> wrote:

> On Wed, Aug 18, 2010 at 11:13 AM, Ian Hickson <ian at hixie.ch> wrote:
>
>>
>>
>> On Mon, 24 May 2010, Philip J?genstedt wrote:
>> >
>> > I think we both agree but aren't understanding each other very well,  
>> or
>> I'm
>> > not thinking very clearly. People will write players assuming that
>> currentTime
>> > starts at 0 and ends at duration. If this is not the case they will
>> break, so
>> > an API which makes this not be the case in very few cases isn't very
>> nice.
>>
>> Agreed. I've made the API clearly say that "duration" is the time at the
>> end, even in the case where the start is not actually zero, to sidestep
>> this issue somewhat. (The start will almost always be zero, so the
>> slightly misleading name seems like a non-issue.)
>>
>
>
> It's a shame we are using the word "duration" instead of the more
> appropriate word "endTime" for this. Would it be too difficult to change  
> it
> at this time?

It's too late, all scripted controls for <video> that display a timeline  
are already using the duration property.

-- 
Philip J?genstedt
Core Developer
Opera Software

Received on Monday, 23 August 2010 04:03:01 UTC