Package com.brightcove.player.model
Class TTMLDocument
- java.lang.Object
-
- com.brightcove.player.model.CaptionsDocument
-
- com.brightcove.player.model.TTMLDocument
-
- All Implemented Interfaces:
java.io.Serializable
public class TTMLDocument extends CaptionsDocument
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
Constructors Constructor 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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Block
getBody()
Retrieves the bodyBlock
for this document.java.util.Map<java.lang.String,StyledElement>
getStyles()
Retrieves aMap
of theStyledElement
objects in this document, keyed by their names.-
Methods inherited from class com.brightcove.player.model.CaptionsDocument
getCaptions, getRegions
-
-
-
-
Constructor Detail
-
TTMLDocument
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)
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 Detail
-
getStyles
public java.util.Map<java.lang.String,StyledElement> getStyles()
Retrieves aMap
of theStyledElement
objects in this document, keyed by their names.- Returns:
- the style map
-
-