public class TTMLDocument extends CaptionsDocument
captions, regions
Constructor and Description |
---|
TTMLDocument(java.util.Map<java.lang.String,Region> regions,
java.util.Map<java.lang.String,StyledElement> styles,
Block body,
java.util.List<BrightcoveClosedCaption> captions)
Initializes a TTMLDocument with the required components that comprise a TTML document.
|
Modifier and Type | Method and Description |
---|---|
Block |
getBody()
Retrieves the body
Block for this document. |
java.util.Map<java.lang.String,StyledElement> |
getStyles()
Retrieves a
Map of the StyledElement objects in this document, keyed by their names. |
getCaptions, getRegions
public TTMLDocument(java.util.Map<java.lang.String,Region> regions, java.util.Map<java.lang.String,StyledElement> styles, Block body, java.util.List<BrightcoveClosedCaption> captions)
regions
- the region definitions for this TTML documentstyles
- the style dfinitions for this TTML documentbody
- the body Block
element of the documentcaptions
- a List
of timed-text BrightcoveClosedCaption
objectspublic java.util.Map<java.lang.String,StyledElement> getStyles()
Map
of the StyledElement
objects in this document, keyed by their names.