WebVTTDocument

Represents a parsed WebVTT document. This object is not a complete representation of the W3C WebVTT specification.

Constructors

Link copied to clipboard
constructor(captions: List<BrightcoveClosedCaption>)
Initializes a WebVTTDocument with the required components that comprise a WebVTT document.
constructor(regions: Map<String, Region>, captions: List<BrightcoveClosedCaption>)

Functions

Link copied to clipboard
Link copied to clipboard
open fun getRegions(): Map<String, Region>
Retrieves a java.util.Map of the com.brightcove.player.model.Region objects in this document, keyed by their names.