Package | com.adobe.mediacore.timeline |
Class | public final class PlacementMode |
Inheritance | PlacementMode ![]() |
Method | Defined By | ||
---|---|---|---|
isContained(mode:String):Boolean [static]
Helper method to check that a specified value is contained in
the current enumeration. | PlacementMode |
Constant | Defined By | ||
---|---|---|---|
DEFAULT : String = default [static]
PSDK will choose the appropriate advertisement placement mode based
on the stream type. | PlacementMode | ||
INSERT : String = insert [static]
PSDK will insert the alternate content into the main stream timeline without
modifying or replacing it. | PlacementMode | ||
REPLACE : String = replace [static]
PSDK will place the alternate content replacing the corresponding main content
section. | PlacementMode |
isContained | () | method |
public static function isContained(mode:String):Boolean
Helper method to check that a specified value is contained in the current enumeration. It should be used to validate external data.
Parameters
mode:String — The value to be checked
|
Boolean — true if the mode is contained in the enumeration, false
otherwise.
|
DEFAULT | Constant |
public static const DEFAULT:String = default
PSDK will choose the appropriate advertisement placement mode based on the stream type. For VoD streams will use INSERT and for live/linear stream will use REPLACE.
INSERT | Constant |
public static const INSERT:String = insert
PSDK will insert the alternate content into the main stream timeline without modifying or replacing it.
REPLACE | Constant |
public static const REPLACE:String = replace
PSDK will place the alternate content replacing the corresponding main content section.