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
xml:space="default"

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
00:03:00:05.1
30f
30t

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 transparent translates to black.

<style id="3" style="2" tts:backgroundColor="white"/>

"transparent" = #00000000
"black"=#000000FF
"silver"=#C0C0C0FF
"grey"=#808080FF
"white"=#FFFFFFFF
"maroon"=#800000FF
"red"=#FF0000FF
"purple"=#800080FF
"fuchsia"("magenta")=
#FF00FFFF
"green"=#008000FF

"lime"=#00FF00FF

"olive"=#808000FF
"yellow"=#FFFF00FF
"navy"=#000080FF
"blue"=#0000FFFF
"teal"=#008080FF
"aqua"("cyan")=#00FFFFFF

tts:fontFamily

Specify a style property that defines the font family.

"default" = _serif
"monospace" = _typewriter
"sansSerif" = _sans
"serif" = _serif
"monospaceSansSerif" = _typewriter
"monospaceSerif" = _typewriter
"proportionalSansSerif" = _sans

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"
"italic"

"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"*
* The default behavior; inherits the style from the enclosing tag.

tts: textAlign

Specify a style property that defines how inline areas are aligned within a containing block area.

"left"
"right"
"center"
"start" (="left")
"end" (="right")
"inherit"*

*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"
"noWrap"
"inherit"*
*Inherits the style from the enclosing tag. If no wrapOption tag is set, the default is "wrap".

Non Supported Attributes

tts: direction
tts: display
tts: displayAlign
tts: dynamicFlow
tts: extent
tts: lineHeight
tts: opacity
tts: origin
tts: overflow
tts: padding
tts: showBackground
tts: textOutline
tts: unicodeBidi

tts: visibility
tts: writingMode
tts: zIndex