Package com.brightcove.player.model
Class WebVTTDocument
- java.lang.Object
-
- com.brightcove.player.model.CaptionsDocument
-
- com.brightcove.player.model.WebVTTDocument
-
- All Implemented Interfaces:
java.io.Serializable
public class WebVTTDocument extends CaptionsDocument
Represents a parsed WebVTT document. This object is not a complete representation of the W3C WebVTT specification.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.brightcove.player.model.CaptionsDocument
captions, regions
-
-
Constructor Summary
Constructors Constructor Description WebVTTDocument(java.util.List<BrightcoveClosedCaption> captions)
Initializes a WebVTTDocument with the required components that comprise a WebVTT document.WebVTTDocument(java.util.Map<java.lang.String,Region> regions, java.util.List<BrightcoveClosedCaption> captions)
-
Method Summary
-
Methods inherited from class com.brightcove.player.model.CaptionsDocument
getCaptions, getRegions
-
-
-
-
Constructor Detail
-
WebVTTDocument
public WebVTTDocument(java.util.List<BrightcoveClosedCaption> captions)
Initializes a WebVTTDocument with the required components that comprise a WebVTT document.- Parameters:
captions
- aList
of timed-textBrightcoveClosedCaption
objects
-
WebVTTDocument
public WebVTTDocument(java.util.Map<java.lang.String,Region> regions, java.util.List<BrightcoveClosedCaption> captions)
-
-