Using ActionScript 3.0 Components |
|
||
| Timed Text Tags | |||
The FLVPlaybackCaptioning component supports Timed Text tags for captioning XML files. For more information about the audio video Timed Text tags, review information at http://www.w3.org. The following table lists supported and non-supported tags.
|
Function |
Tag/Value |
Usage/Description |
Example |
|---|---|---|---|
|
Ignored tags |
metadata |
Ignored / allowed at any level of the document |
|
|
set |
Ignored / allowed at any level of the document |
||
|
xml:lang |
Ignored |
||
|
xml:space |
Ignored / Behavior overrides to |
||
|
layout |
Ignored / including any region tags in a layout tag section |
||
|
br tag |
All attributes and contents are ignored. |
||
|
Media Timing for Captions |
begin attributes |
Allowed in p tags only. Required for media time deployment of captions. |
<p begin="3s"> |
|
dur attributes |
Allowed in p tags only. Recommended. If not included, the caption ends with the FLV file or when another caption starts. |
||
|
end attributes |
Allowed in p tags only. Recommended. If not included, the caption ends with the FLV file or when another caption starts. |
||
|
Clock Timing for Captions |
00:03:00.1 |
Full clock format |
|
|
03:00.1 |
Partial clock format |
||
|
10 |
Offset times without units. Offset represents seconds. |
||
|
00:03:00:05 |
Not supported. Time formats that include frames or ticks are not supported. |
||
|
Body tag |
body |
Required / Support for only one body tag. |
<body><div>...</div></body> |
|
Content tag |
div tag |
Zero or more allowed. The first tag is used. |
|
|
p tag |
Zero or more allowed |
||
|
span tag |
A logical container for a sequence of textual content units. No support for nested spans. Support for attribute style tags. |
||
|
br tag |
Denotes an explicit line break. |
||
|
Styling Tags (All style tags are used within the p tag) |
style |
Reference one or more style elements. Can be used as a tag and as an attribute. As a tag, an ID attribute is required (the style can be reused in the document). Support for one or more style tags inside style tag. |
|
|
tts:background Color |
Specify a style property that defines the background color of a region. Alpha is ignored unless set to zero (alpha 0) to make the background transparent. The color format is #RRGGBBAA |
||
|
tts:color |
Specify a style property that defines the foreground color. Alpha not supported for any colors. Value |
<style id="3" style="2" tts:backgroundColor="white"/> "transparent" = #00000000 "lime"=#00FF00FF "olive"=#808000FF |
|
|
tts:fontFamily |
Specify a style property that defines the font family. |
"default" = |
|
|
tts:fontSize |
Specify a style property that defines the font size. Only the first (vertical) value is used if two are supplied. Percentage values and units are ignored. Support for absolute pixel (for example, 12) and relative style (for example +2) sizes. |
||
|
tts: fontStyle |
Specify a style property that defines the font style. |
"normal" "inherit"* * The default behavior; inherits the style from the enclosing tag. |
|
|
tts: fontWeight |
Specify a style property that defines the font weight. |
"normal" "bold" "inherit"* |
|
|
tts: textAlign |
Specify a style property that defines how inline areas are aligned within a containing block area. |
"left" *Inherits the style from the enclosing tag. If no textAlign tag is set, the default is "left". |
|
|
tts: wrapOption |
Specify a style property that defines whether or not automatic line wrapping (breaking) applies within the context of the affected element. This setting affects all paragraphs in the caption element. |
"wrap" |
|
|
Non Supported Attributes |
tts: direction tts: visibility |
|
|
||