Package com.jwplayer.pub.api
Enum PlayReason
- java.lang.Object
-
- java.lang.Enum<PlayReason>
-
- com.jwplayer.pub.api.PlayReason
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<PlayReason>
public enum PlayReason extends java.lang.Enum<PlayReason>
Constants indicating the reason the player is in the play state.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description AUTO_START
Player automatically began playing.EXTERNAL
Player is playing due to external api call.INTERACTION
Player is playing due to user interaction.PLAY_LIST
Playback began due to natural playlist progression.RELATED_AUTO
Player is playing due to the auto advance feature.RELATED_INTERACTION
Player is playing due to user interaction with the related menu.REPEAT_CONTENT
Playback began due to repeat flag is enabled.SETTINGS_INTERACTION
Playback resumed due to user interaction with the settings menu.UNKNOWN
Player is playing but the cause is unknown.VIEWABLE
Playback began due to autostart setting or when the player is 50% visible.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equalsName(java.lang.String otherName)
java.lang.String
toString()
static PlayReason
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static PlayReason[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
EXTERNAL
public static final PlayReason EXTERNAL
Player is playing due to external api call.
-
INTERACTION
public static final PlayReason INTERACTION
Player is playing due to user interaction.
-
PLAY_LIST
public static final PlayReason PLAY_LIST
Playback began due to natural playlist progression.
-
VIEWABLE
public static final PlayReason VIEWABLE
Playback began due to autostart setting or when the player is 50% visible.
-
SETTINGS_INTERACTION
public static final PlayReason SETTINGS_INTERACTION
Playback resumed due to user interaction with the settings menu.
-
RELATED_INTERACTION
public static final PlayReason RELATED_INTERACTION
Player is playing due to user interaction with the related menu.
-
AUTO_START
public static final PlayReason AUTO_START
Player automatically began playing.
-
REPEAT_CONTENT
public static final PlayReason REPEAT_CONTENT
Playback began due to repeat flag is enabled.
-
RELATED_AUTO
public static final PlayReason RELATED_AUTO
Player is playing due to the auto advance feature.
-
UNKNOWN
public static final PlayReason UNKNOWN
Player is playing but the cause is unknown.
-
-
Method Detail
-
values
public static PlayReason[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (PlayReason c : PlayReason.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PlayReason valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
equalsName
public boolean equalsName(java.lang.String otherName)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Enum<PlayReason>
-
-