Class BrightcoveClosedCaption

All Implemented Interfaces:
Serializable

public class BrightcoveClosedCaption extends Block
A class for describing a closed caption, comprised of a start and end time as well as the caption text.
See Also:
  • Constructor Details

    • BrightcoveClosedCaption

      public BrightcoveClosedCaption()
    • BrightcoveClosedCaption

      @Deprecated public BrightcoveClosedCaption(int beginTime, int endTime, List<List<Span>> textLines)
      Deprecated.
    • BrightcoveClosedCaption

      public BrightcoveClosedCaption(long beginTime, long endTime, List<List<Span>> textLines)
      Initializes a Caption with the given begin time, end time, and text lines.
      Parameters:
      beginTime - the begin time of the caption block, in milliseconds
      endTime - the end time of the caption block, in milliseconds
      textLines - the List of text lines in this caption block
    • BrightcoveClosedCaption

      @Deprecated public BrightcoveClosedCaption(int beginTime, int endTime, String caption)
      Deprecated.
    • BrightcoveClosedCaption

      public BrightcoveClosedCaption(long beginTime, long endTime, String caption)
      Initializes a Caption with the given begin time, end time, and text lines.
      Parameters:
      beginTime - the begin time of the caption block, in milliseconds
      endTime - the end time of the caption block, in milliseconds
      caption - the caption
  • Method Details

    • getLines

      public List<List<Span>> getLines()
      The List of caption text lines.
      Returns:
      the line list
    • setLines

      public void setLines(List<List<Span>> lines)
      The List of caption text lines.
      Parameters:
      lines - the line list
    • getCaption

      public String getCaption()
    • getTimeRange

      @Deprecated public ArrayList<Integer> getTimeRange()
      Deprecated.
    • getTimeRangeLong

      public ArrayList<Long> getTimeRangeLong()