Package com.brightcove.player.model
Class TTMLDocument
java.lang.Object
com.brightcove.player.model.CaptionsDocument
com.brightcove.player.model.TTMLDocument
- All Implemented Interfaces:
Serializable
Represents a parsed DFXP TTML document. This object model does not fully implement the W3C TTML specification,
however, and has implemented the features required for VMN video players.
-
Field Summary
Fields inherited from class com.brightcove.player.model.CaptionsDocument
captions, regions
-
Constructor Summary
ConstructorDescriptionTTMLDocument
(Map<String, Region> regions, Map<String, StyledElement> styles, Block body, List<BrightcoveClosedCaption> captions) Initializes a TTMLDocument with the required components that comprise a TTML document. -
Method Summary
Modifier and TypeMethodDescriptiongetBody()
Retrieves the bodyBlock
for this document.Retrieves aMap
of theStyledElement
objects in this document, keyed by their names.Methods inherited from class com.brightcove.player.model.CaptionsDocument
getCaptions, getRegions
-
Constructor Details
-
TTMLDocument
public TTMLDocument(Map<String, Region> regions, Map<String, StyledElement> styles, Block body, List<BrightcoveClosedCaption> captions) Initializes a TTMLDocument with the required components that comprise a TTML document.- Parameters:
regions
- the region definitions for this TTML documentstyles
- the style dfinitions for this TTML documentbody
- the bodyBlock
element of the documentcaptions
- aList
of timed-textBrightcoveClosedCaption
objects
-
-
Method Details
-
getStyles
Retrieves aMap
of theStyledElement
objects in this document, keyed by their names.- Returns:
- the style map
-
getBody
Retrieves the bodyBlock
for this document.- Returns:
- body block
-