Package 

Class BrightcoveClosedCaption

  • All Implemented Interfaces:
    java.io.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.

    • Method Summary

      Modifier and Type Method Description
      List<List<Span>> getLines() The java.util.List of caption text lines.
      void setLines(List<List<Span>> lines) The java.util.List of caption text lines.
      String getCaption()
      ArrayList<Integer> getTimeRange()
      ArrayList<Long> getTimeRangeLong()
      • Methods inherited from class com.brightcove.player.model.Block

        getBeginTime, getBeginTimeLong, getEndTime, getEndTimeLong, getRegion, setBeginTime, setBeginTime, setEndTime, setEndTime, setRegion
      • Methods inherited from class com.brightcove.player.model.StyledElement

        getBackgroundColor, getColor, getFontFamily, getFontSize, getFontStyle, getFontWeight, getStyleName, getTextAlign, getTextDecoration, setBackgroundColor, setColor, setFontFamily, setFontSize, setFontStyle, setFontWeight, setStyleName, setTextAlign, setTextDecoration
      • Methods inherited from class com.brightcove.player.model.Element

        getID, setID
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • BrightcoveClosedCaption

        BrightcoveClosedCaption()
      • BrightcoveClosedCaption

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

        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

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

        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