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:
Serializable
A class for describing a closed caption, comprised of a start and end time
as well as the caption text.
- See Also:
-
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
ConstructorDescriptionBrightcoveClosedCaption
(int beginTime, int endTime, String caption) Deprecated.BrightcoveClosedCaption
(int beginTime, int endTime, List<List<Span>> textLines) Deprecated.BrightcoveClosedCaption
(long beginTime, long endTime, String caption) Initializes a Caption with the given begin time, end time, and text lines.BrightcoveClosedCaption
(long beginTime, long endTime, List<List<Span>> textLines) Initializes a Caption with the given begin time, end time, and text lines. -
Method Summary
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 Details
-
BrightcoveClosedCaption
public BrightcoveClosedCaption() -
BrightcoveClosedCaption
Deprecated.Deprecated. Instead use {BrightcoveClosedCaption(long, long, List)
} -
BrightcoveClosedCaption
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.Deprecated. Instead use {BrightcoveClosedCaption(long, long, String)
} -
BrightcoveClosedCaption
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 Details