W3C home > Mailing lists > Public > public-html@w3.org > February 2013

Re: text tracks

From: Silvia Pfeiffer <silviapfeiffer1@gmail.com>
Date: Thu, 7 Feb 2013 09:11:46 +1100
Message-ID: <CAHp8n2mf-B+NgOJsRxn0_8quiRWE90k3cT4vucON81CTV+H2ig@mail.gmail.com>
To: GIDEON ISAAC <mad.gideon.isaac@hotmail.com>
Cc: public-html@w3.org
The way to do this is usually by using JavaScript. You can create a
TextTrack object using addTextTrack() [1] and then use addCue() [2] to add
individual cues. There is an example at the second link that should be
instructive.

Regards,
Silvia.

[1]
http://www.w3.org/html/wg/drafts/html/master/embedded-content-0.html#dom-media-addtexttrack
[2]
http://www.w3.org/html/wg/drafts/html/master/embedded-content-0.html#dom-texttrack-addcue

On Thu, Feb 7, 2013 at 8:04 AM, GIDEON ISAAC
<mad.gideon.isaac@hotmail.com>wrote:

>  Can webvtt cues be nested in the body of a video tag without referring to
> external text track files?  I see that you can create a file full of cues,
> but suppose I did not want to have such a file on my server, but rather
> wanted to create the information based on several databases and just stick
> it in the video tag?
> Thanks,
> Gideon
>
Received on Wednesday, 6 February 2013 22:12:34 UTC

This archive was generated by hypermail 2.3.1 : Monday, 29 September 2014 09:39:37 UTC