Package com.ooyala.pulse
Enum RequestSettings.InsertionPointType
- java.lang.Object
-
- java.lang.Enum<RequestSettings.InsertionPointType>
-
- com.ooyala.pulse.RequestSettings.InsertionPointType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<RequestSettings.InsertionPointType>
- Enclosing class:
- RequestSettings
public static enum RequestSettings.InsertionPointType extends java.lang.Enum<RequestSettings.InsertionPointType>
Potential content form values used to determine the ad insertion policy.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ON_BEFORE_CONTENT
Request ads to be played before the content, or 'preroll' ads.ON_CONTENT_END
Request ads to be played after the content, or 'postroll' ads.ON_PAUSE
Request ads to be played when the content is paused.PLAYBACK_POSITION
Request midroll ads and/or overlay ads, to be played at the positions specified in linearPlaybackPositions and nonlinearPlaybackPositions respectively.PLAYBACK_TIME
Request overlay ads to be displayed; based on the content duration, which must be specified as well.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static RequestSettings.InsertionPointType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static RequestSettings.InsertionPointType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ON_BEFORE_CONTENT
public static final RequestSettings.InsertionPointType ON_BEFORE_CONTENT
Request ads to be played before the content, or 'preroll' ads.
-
PLAYBACK_POSITION
public static final RequestSettings.InsertionPointType PLAYBACK_POSITION
Request midroll ads and/or overlay ads, to be played at the positions specified in linearPlaybackPositions and nonlinearPlaybackPositions respectively.
-
ON_CONTENT_END
public static final RequestSettings.InsertionPointType ON_CONTENT_END
Request ads to be played after the content, or 'postroll' ads.
-
ON_PAUSE
public static final RequestSettings.InsertionPointType ON_PAUSE
Request ads to be played when the content is paused.
-
PLAYBACK_TIME
public static final RequestSettings.InsertionPointType PLAYBACK_TIME
Request overlay ads to be displayed; based on the content duration, which must be specified as well.
-
-
Method Detail
-
values
public static RequestSettings.InsertionPointType[] 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.InsertionPointType c : RequestSettings.InsertionPointType.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.InsertionPointType 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
-
-