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.
    See Also:
    Serialized Form
    • Constructor Detail

      • BrightcoveClosedCaption

        public BrightcoveClosedCaption()
      • BrightcoveClosedCaption

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

        public BrightcoveClosedCaption​(long beginTime,
                                       long endTime,
                                       java.util.List<java.util.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

        public BrightcoveClosedCaption​(long beginTime,
                                       long endTime,
                                       java.lang.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 Detail

      • getLines

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

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

        public java.lang.String getCaption()
      • getTimeRange

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

        public java.util.ArrayList<java.lang.Long> getTimeRangeLong()