W3C home > Mailing lists > Public > whatwg@whatwg.org > May 2007

[whatwg] Cue points in media elements

From: Kevin Calhoun <kcalhoun@apple.com>
Date: Wed, 2 May 2007 11:17:23 -0700
Message-ID: <2BE90EF1-B5FF-40CC-85DE-6F01D5BE5150@apple.com>

On May 2, 2007, at 11:01 AM, Dave Singer wrote:

> At 17:04  -0400 1/05/07, Brian Campbell wrote:
>> On May 1, 2007, at 1:05 PM, Kevin Calhoun wrote:
>>
>>> I believe that a cue point is "reached" if its time is traversed  
>>> during playback.
>>
>> What does "traversed" mean in terms of (a) seeking across the cue  
>> point (b) playing in reverse (rewinding) and (c) the media stalling  
>> an restarting at a later point in the stream?
>
> I would say that playing (at any rate and in any direction) is a  
> continuous function, and therefore cue points are triggered, when  
> playing, whenever two samples of the time straddle the cue point  
> (where straddel includes one of the samples being at the cue point).
>
> Seeking is discontinuous, and therefore cue points are triggered  
> only if a seek results in landing on the cue point, if not playing.   
> If playing, then the usual rules apply.

A discontinuous jump will result in a timeupdate notification, which  
among other things is supposed to enable scripts to issue  
notifications of interesting times that are traversed not during  
playback but while seeking.
Received on Wednesday, 2 May 2007 11:17:23 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:58:55 UTC