ttml

Explanation of W3C TTML timing attributes

大兔子大兔子 提交于 2020-01-02 07:24:32
问题 In W3C TTML dfxp standard, a div element can contain begin , end and duration attributes. How to interpret the value of these timing attributes? Example: <div begin="00:00:22.0 end ="00:00:30.0"> <p begin="0s" end="1s">Hi,</p> <p begin="3s" end="5s">Hello</p> <p begin="5s" end="10s">there?</p> </div> When to present p elements? Any pointers to TTML spec/implementation would be helpful. 回答1: The latest TTML spec is at http://www.w3.org/TR/ttml1/ Many of the timing semantics come from SMIL 2.1.

Use AS3 to parse XML node attribute that has a colon

家住魔仙堡 提交于 2019-12-11 18:51:27
问题 I have the following XML document: <tt xmlns="http://www.w3.org/ns/ttml" xmlns:tts="http://www.w3.org/ns/ttml#styling" xml:lang="en"> <head></head> <body> <div xml:lang="it"> <p begin="00:00:00" end="00:00:02" style="violet">first</p> </div> </body> </tt> I load the contents into my flash object using AS3 successfully. But how do print/trace the value of the attribute in <div xml:lang="it"> ? When I try the code: trace(myxml.children()[1].children()[0].@xml:lang); The compiler complains about

Explanation of W3C TTML timing attributes

隐身守侯 提交于 2019-12-05 22:00:27
In W3C TTML dfxp standard , a div element can contain begin , end and duration attributes. How to interpret the value of these timing attributes? Example: <div begin="00:00:22.0 end ="00:00:30.0"> <p begin="0s" end="1s">Hi,</p> <p begin="3s" end="5s">Hello</p> <p begin="5s" end="10s">there?</p> </div> When to present p elements? Any pointers to TTML spec/implementation would be helpful. The latest TTML spec is at http://www.w3.org/TR/ttml1/ Many of the timing semantics come from SMIL 2.1 . There are two parts to your answer: first, how do you compute the times for any particular content