Package com.ooyala.pulse
Enum RequestSettings.SeekMode
- java.lang.Object
-
- java.lang.Enum<RequestSettings.SeekMode>
-
- com.ooyala.pulse.RequestSettings.SeekMode
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<RequestSettings.SeekMode>
- Enclosing class:
- RequestSettings
public static enum RequestSettings.SeekMode extends java.lang.Enum<RequestSettings.SeekMode>
Modes which determine how the session behaves when a viewer seeks past one or more midroll ad breaks.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description IGNORE
Do not enforce midroll ad breaks to be played.PLAY_ALL_ADS
If the viewer seeks past one or more ad breaks, all of them are played before content resumes.PLAY_FIRST
If the viewer seeks past one or more ad breaks, the first one is played before content resumes.PLAY_LAST
If the viewer seeks past one or more ad breaks, the last one is played before content resumes.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static RequestSettings.SeekMode
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static RequestSettings.SeekMode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
IGNORE
public static final RequestSettings.SeekMode IGNORE
Do not enforce midroll ad breaks to be played. This is the default.
-
PLAY_FIRST
public static final RequestSettings.SeekMode PLAY_FIRST
If the viewer seeks past one or more ad breaks, the first one is played before content resumes.
-
PLAY_LAST
public static final RequestSettings.SeekMode PLAY_LAST
If the viewer seeks past one or more ad breaks, the last one is played before content resumes.
-
PLAY_ALL_ADS
public static final RequestSettings.SeekMode PLAY_ALL_ADS
If the viewer seeks past one or more ad breaks, all of them are played before content resumes.
-
-
Method Detail
-
values
public static RequestSettings.SeekMode[] 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 (RequestSettings.SeekMode c : RequestSettings.SeekMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static RequestSettings.SeekMode 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
-
-