Package com.brightcove.player.model
Enum Class Video.ProjectionFormat
- All Implemented Interfaces:
Serializable
,Comparable<Video.ProjectionFormat>
,Constable
- Enclosing class:
- Video
The list of known projection formats.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionStandard equi-rectangular 360 degree projection format.Normal projection format. -
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Video.ProjectionFormat
Matches the given value to list of known projection format names.static Video.ProjectionFormat
parse
(Object value, Video.ProjectionFormat defaultProjectionFormat) Matches the given value to list of known projection format names.toString()
Overrides the base implementation to return the name of the format as string.static Video.ProjectionFormat
Returns the enum constant of this class with the specified name.static Video.ProjectionFormat[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NORMAL
Normal projection format. -
EQUIRECTANGULAR
Standard equi-rectangular 360 degree projection format.
-
-
Field Details
-
name
The human readable name of the format.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
toString
Overrides the base implementation to return the name of the format as string.- Overrides:
toString
in classEnum<Video.ProjectionFormat>
-
parse
@Nullable public static Video.ProjectionFormat parse(@Nullable Object value, @Nullable Video.ProjectionFormat defaultProjectionFormat) Matches the given value to list of known projection format names.- Parameters:
value
- the value to be matches.defaultProjectionFormat
- the value that will be returned if the given value does not match any of the known projection format names.- Returns:
- defaultProjectionFormat or reference to the matching video format.
-
parse
Matches the given value to list of known projection format names.- Parameters:
value
- the value to be matches.- Returns:
- null or reference to the matching projection format.
-