-
- 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.
-
-
Constructor Summary
Constructors Constructor Description 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.
-
Method Summary
Modifier and Type Method Description Map<String, StyledElement>
getStyles()
Retrieves a java.util.Map of the com.brightcove.player.model.StyledElement objects in this document, keyed by their names. Block
getBody()
Retrieves the body com.brightcove.player.model.Block for this document. -
-
Constructor Detail
-
TTMLDocument
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 body com.brightcove.player.model.Block element of the documentcaptions
- a java.util.List of timed-text com.brightcove.player.captioning.BrightcoveClosedCaption objects
-
-
Method Detail
-
getStyles
Map<String, StyledElement> getStyles()
Retrieves a java.util.Map of the com.brightcove.player.model.StyledElement objects in this document, keyed by their names.
-
getBody
Block getBody()
Retrieves the body com.brightcove.player.model.Block for this document.
-
-
-
-