Package com.brightcove.player.captioning
Class BrightcoveClosedCaption
- java.lang.Object
-
- com.brightcove.player.model.Element
-
- com.brightcove.player.model.StyledElement
-
- com.brightcove.player.model.Block
-
- com.brightcove.player.captioning.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
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.brightcove.player.model.StyledElement
StyledElement.FontStyle, StyledElement.FontWeight, StyledElement.TextAlign, StyledElement.TextDecoration, StyledElement.Unit
-
-
Field Summary
-
Fields inherited from class com.brightcove.player.model.Block
beginTime, beginTimeLong, endTime, endTimeLong, region
-
Fields inherited from class com.brightcove.player.model.StyledElement
backgroundColor, color, fontFamily, fontSize, fontStyle, fontWeight, styleName, textAlign, textDecoration
-
-
Constructor Summary
Constructors Constructor Description BrightcoveClosedCaption()
BrightcoveClosedCaption(int beginTime, int endTime, java.lang.String caption)
Deprecated.BrightcoveClosedCaption(int beginTime, int endTime, java.util.List<java.util.List<Span>> textLines)
Deprecated.BrightcoveClosedCaption(long beginTime, long endTime, java.lang.String caption)
Initializes a Caption with the given begin time, end time, and text lines.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.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description java.lang.String
getCaption()
java.util.List<java.util.List<Span>>
getLines()
TheList
of caption text lines.java.util.ArrayList<java.lang.Integer>
getTimeRange()
Deprecated.java.util.ArrayList<java.lang.Long>
getTimeRangeLong()
void
setLines(java.util.List<java.util.List<Span>> lines)
TheList
of caption text lines.-
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
-
-
-
-
Constructor Detail
-
BrightcoveClosedCaption
public BrightcoveClosedCaption()
-
BrightcoveClosedCaption
@Deprecated public BrightcoveClosedCaption(int beginTime, int endTime, java.util.List<java.util.List<Span>> textLines)
Deprecated.Deprecated. Instead use {BrightcoveClosedCaption(long, long, List)
}
-
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 millisecondsendTime
- the end time of the caption block, in millisecondstextLines
- the List of text lines in this caption block
-
BrightcoveClosedCaption
@Deprecated public BrightcoveClosedCaption(int beginTime, int endTime, java.lang.String caption)
Deprecated.Deprecated. Instead use {BrightcoveClosedCaption(long, long, String)
}
-
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 millisecondsendTime
- the end time of the caption block, in millisecondscaption
- the caption
-
-
Method Detail
-
getLines
public java.util.List<java.util.List<Span>> getLines()
TheList
of caption text lines.- Returns:
- the line list
-
setLines
public void setLines(java.util.List<java.util.List<Span>> lines)
TheList
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()
-
-