[whatwg] Tracks and cues

Ian Hickson ian at hixie.ch
Thu Oct 18 12:59:04 PDT 2012


On Wed, 25 Jul 2012, Henri Sivonen wrote:
> On Wed, Jul 25, 2012 at 11:24 AM, Silvia Pfeiffer
> <silviapfeiffer1 at gmail.com> wrote:
> > But you can use cue.text and parse it as a SVG fragment.
> 
> That would be RSS all over again. :-(

The difference is that here the parsing at each layer is fully defined.

It's more like JSON, where a key's value can be HTML or XML or SVG or 
whatever.


On Wed, 25 Jul 2012, Silvia Pfeiffer wrote:
> 
> If we are very clear about what will be in the cues and that it will 
> always be just SVG, we could just create a @kind="svg".

IMHO the idea of putting SVG in cues seems to somewhat miss the point. SVG 
already has a timeline, it already supports synchronisation with videos, 
it should just be used that way.


On Wed, 26 Sep 2012, Cyril Concolato wrote:
> 
> Has it been considered adding another method to add cues to a track? 
> Something like addCues(DOMString text) where the text is not only one 
> cue (like in the TextTrackCue ctor) but where the text would be multiple 
> cues as written in a WebVTT file?

Just use a <track> element to point to the file.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'


More information about the whatwg mailing list