-
- 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.
-
-
Constructor Summary
Constructors Constructor Description BrightcoveClosedCaption()
BrightcoveClosedCaption(int beginTime, int endTime, List<List<Span>> textLines)
Deprecated. BrightcoveClosedCaption(long beginTime, long endTime, List<List<Span>> textLines)
Initializes a Caption with the given begin time, end time, and text lines. BrightcoveClosedCaption(int beginTime, int endTime, String caption)
Deprecated. BrightcoveClosedCaption(long beginTime, long endTime, String caption)
Initializes a Caption with the given begin time, end time, and text lines.
-
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 millisecondsendTime
- the end time of the caption block, in millisecondstextLines
- 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 millisecondsendTime
- the end time of the caption block, in millisecondscaption
- the caption
-
-
Method Detail
-
getLines
List<List<Span>> getLines()
The java.util.List of caption text lines.
-
setLines
void setLines(List<List<Span>> lines)
The java.util.List of caption text lines.
- Parameters:
lines
- the line list
-
getCaption
String getCaption()
-
getTimeRange
@Deprecated() ArrayList<Integer> getTimeRange()
-
getTimeRangeLong
ArrayList<Long> getTimeRangeLong()
-
-
-
-