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
Modifier and TypeFieldDescriptionprotected Integer
Deprecated.protected long
protected Integer
Deprecated.protected long
protected String
Fields inherited from class com.brightcove.player.model.StyledElement
backgroundColor, color, fontFamily, fontSize, fontStyle, fontWeight, styleName, textAlign, textDecoration
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
Deprecated.long
The starting time of the element in milliseconds.int
Deprecated.long
The ending time of the element in milliseconds.The region name for this timed-text element.void
setBeginTime
(int beginTime) Deprecated.void
setBeginTime
(long beginTime) The starting time of the element in milliseconds.void
setEndTime
(int endTime) Deprecated.void
setEndTime
(long endTime) The ending time of the element in milliseconds.void
The 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
-