Class TTMLDocument

    • 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 document
        styles - the style dfinitions for this TTML document
        body - the body Block element of the document
        captions - a List of timed-text BrightcoveClosedCaption objects
    • Method Detail

      • getStyles

        public java.util.Map<java.lang.String,​StyledElement> getStyles()
        Retrieves a Map of the StyledElement objects in this document, keyed by their names.
        Returns:
        the style map
      • getBody

        public Block getBody()
        Retrieves the body Block for this document.
        Returns:
        body block