- From: Silvia Pfeiffer <silviapfeiffer1@gmail.com>
- Date: Tue, 25 Jun 2013 08:18:21 +1000
- To: Eunice Yu <yonhee.yu@gmail.com>
- Cc: public-tt@w3.org
On Mon, Jun 24, 2013 at 5:42 PM, Eunice Yu <yonhee.yu@gmail.com> wrote: > Hello people. > I'm very new to TTML and FCC regularion brought me here. after short > surveying, still very confused about how to deal with TTML in modern browser > implementation. > > I can see several links which seem to demonstrate TTML. > http://www.cwmwenallt.com/ttml/ttml-demo.htm > http://www.html5labs.com/HTML5CaptionDemo/ > > and they are all something like using track element. > > <video width="640" height="480" controls> > <source src="video.mp4" type="video/mp4" /> > <track src="ttml.xml" kind="subtitles"srclang="en" label="English" /> > </video> > > but I am not sure if that is right implementation based on current standard. > if it is, it's wired that track does not have mime type. and if it's not, I > don't see any HTML element who requires TTML as text subtitles. Your biggest problem is lack of support in browsers. The only browser where this will work is IE10 (Sean, correct me if I'm wrong). > so my question is where web developers are suppose to put TTML and on which > element should browser work to make it happen? > > on second thought, javascript can request and parse specific xml(TTML here) > and display them being styled somewhere on the web page. can I say TTML is > only for this? If you are fixed on using TTML, then you indeed have to parse it yourself in JavaScript for now - best to build a polyfill. If you are flexible with file formats to use for captions on the Web, you can always use WebVTT - it's now supported by all major browser (in Firefox it's still in beta, I think). HTH. Regards, Silvia.
Received on Monday, 24 June 2013 22:19:08 UTC