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 and 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`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### WebVTTDocument

          public WebVTTDocument(java.util.List<BrightcoveClosedCaption> captions)

      Initializes a WebVTTDocument with the required components that comprise a WebVTT document.
      Parameters:
        `captions` - a `List` of timed-text `BrightcoveClosedCaption` objects

    - #### WebVTTDocument

          public WebVTTDocument(java.util.Map<java.lang.String,Region> regions,
                                java.util.List<BrightcoveClosedCaption> captions)