Package com.brightcove.player.model
Class LengthVtt
java.lang.Object
com.brightcove.player.model.Length
com.brightcove.player.model.LengthVtt
- All Implemented Interfaces:
Serializable
Provides the representation of varying forms of length measure per the WebVTT1 specification.
- See Also:
-
Field Summary
-
Constructor Summary
ConstructorDescriptionLengthVtt
(double value, StyledElement.Unit unit) Initializes a Length object using the given numeric value and Unit specification.Initializes a Length object by parsing the given expression. -
Method Summary
-
Field Details
-
TAG
-
PATTERN_PERCENTAGE
-
PATTERN_LINE
-
-
Constructor Details
-
LengthVtt
Initializes a Length object by parsing the given expression. For more information on valid parsing, visit https://www.w3.org/TR/webvtt1/#cue-timings-and-settings-parsing Examples:- 4.5%
- -1
- 0
- Parameters:
expression
- the string expression to parse- See Also:
-
LengthVtt
Initializes a Length object using the given numeric value and Unit specification.- Parameters:
value
- the numeric value of the lengthunit
- the units for the length value
-