Package com.brightcove.player.model
Class Block
java.lang.Object
com.brightcove.player.model.Element
com.brightcove.player.model.StyledElement
com.brightcove.player.model.Block
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
BrightcoveClosedCaption
Represents a single timed-text element.
- 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
FieldsModifier and TypeFieldDescriptionprotected IntegerDeprecated.protected longprotected IntegerDeprecated.protected longprotected StringFields inherited from class com.brightcove.player.model.StyledElement
backgroundColor, color, fontFamily, fontSize, fontStyle, fontWeight, styleName, textAlign, textDecoration -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintDeprecated.longThe starting time of the element in milliseconds.intDeprecated.longThe ending time of the element in milliseconds.The region name for this timed-text element.voidsetBeginTime(int beginTime) Deprecated.voidsetBeginTime(long beginTime) The starting time of the element in milliseconds.voidsetEndTime(int endTime) Deprecated.voidsetEndTime(long endTime) The ending time of the element in milliseconds.voidThe region name for this timed-text element.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
-
Field Details
-
beginTime
Deprecated. -
endTime
Deprecated. -
beginTimeLong
protected long beginTimeLong -
endTimeLong
protected long endTimeLong -
region
-
-
Constructor Details
-
Block
public Block()
-
-
Method Details
-
getBeginTime
Deprecated.Deprecated. Instead use {getBeginTimeLong()} -
getBeginTimeLong
public long getBeginTimeLong()The starting time of the element in milliseconds.- Returns:
- the starting time in milliseconds
-
setBeginTime
Deprecated.Deprecated. Instead use {setBeginTime(long)} -
setBeginTime
public void setBeginTime(long beginTime) The starting time of the element in milliseconds.- Parameters:
beginTime- the starting time in milliseconds
-
getEndTime
Deprecated.Deprecated. Instead use {getBeginTimeLong()} -
getEndTimeLong
public long getEndTimeLong()The ending time of the element in milliseconds.- Returns:
- the ending time in milliseconds
-
setEndTime
Deprecated.Deprecated. Instead use {setEndTime(long)} -
setEndTime
public void setEndTime(long endTime) The ending time of the element in milliseconds.- Parameters:
endTime- the ending time in milliseconds
-
getRegion
The region name for this timed-text element.- Returns:
- the name of the
Region
-
setRegion
The region name for this timed-text element.- Parameters:
region- the name of theRegion
-