Package com.jwplayer.pub.api
Enum Class PlayReason
- All Implemented Interfaces:
Serializable
,Comparable<PlayReason>
,Constable
Constants indicating the reason the player is in the play state.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionPlayer automatically began playing.Player is playing due to a clickthrough.Player is playing due to external api call.Player is playing due to user interaction.Playback began due to natural playlist progression.Player is playing due to the auto advance feature.Player is playing due to user interaction with the related menu.Playback began due to repeat flag is enabled.Playback resumed due to user interaction with the settings menu.Player is playing but the cause is unknown.Playback began due to autostart setting or when the player is 50% visible. -
Method Summary
Modifier and TypeMethodDescriptionboolean
equalsName
(String otherName) toString()
static PlayReason
Returns the enum constant of this class with the specified name.static PlayReason[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
EXTERNAL
Player is playing due to external api call. -
INTERACTION
Player is playing due to user interaction. -
CLICK_THROUGH
Player is playing due to a clickthrough. -
PLAY_LIST
Playback began due to natural playlist progression. -
VIEWABLE
Playback began due to autostart setting or when the player is 50% visible. -
SETTINGS_INTERACTION
Playback resumed due to user interaction with the settings menu. -
RELATED_INTERACTION
Player is playing due to user interaction with the related menu. -
AUTO_START
Player automatically began playing. -
REPEAT_CONTENT
Playback began due to repeat flag is enabled. -
RELATED_AUTO
Player is playing due to the auto advance feature. -
UNKNOWN
Player is playing but the cause is unknown.
-
-
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
-
equalsName
-
toString
- Overrides:
toString
in classEnum<PlayReason>
-