| Package | com.adobe.mediacore.timeline |
| Class | public final class Placement |
| Inheritance | Placement Object |
| Property | Defined By | ||
|---|---|---|---|
| duration : Number [read-only]
The placement duration on the timeline. | Placement | ||
| mode : String [read-only]
The placement mode (insert or replace main content). | Placement | ||
| range : TimeRange [read-only]
Returns the time range associated with this placement. | Placement | ||
| time : Number [read-only]
The placement location on the timeline. | Placement | ||
| type : String [read-only]
The placement type (pre-roll, mid-roll or post-roll). | Placement | ||
| Method | Defined By | ||
|---|---|---|---|
Placement(type:String, time:Number, duration:Number, mode:String = null)
Default constructor. | Placement | ||
Compares this placement to the specified ones. | Placement | ||
toString():String
Returns a String representation of the current placement. | Placement | ||
| Constant | Defined By | ||
|---|---|---|---|
| UNKNOWN_DURATION : Number = -1 [static]
Constant to be used when the duration of the placement is not known. | Placement | ||
| UNKNOWN_TIME : Number = -1 [static]
Constant to be used when the time of the placement is not known. | Placement | ||
| duration | property |
duration:Number [read-only] The placement duration on the timeline. The value indicates the duration in milliseconds of the interval associated with the placement.
public function get duration():Number| mode | property |
mode:String [read-only] The placement mode (insert or replace main content).
public function get mode():StringSee also
| range | property |
range:TimeRange [read-only] Returns the time range associated with this placement.
public function get range():TimeRange| time | property |
time:Number [read-only] The placement location on the timeline. The value indicates the playhead in milliseconds where the placement will start.
public function get time():Number| type | property |
type:String [read-only] The placement type (pre-roll, mid-roll or post-roll).
public function get type():StringSee also
| Placement | () | Constructor |
public function Placement(type:String, time:Number, duration:Number, mode:String = null)Default constructor.
Parameterstype:String — The placement type
| |
time:Number (default = NaN) — The location on the timeline where associated with this placement. This value
is used only for MID-ROLLs placement and ignored for the others and indicates
the playhead in milliseconds.
| |
duration:Number (default = NaN) — The duration of the timeline interval which will be associated with this
placement in milliseconds.
| |
mode:String (default = null) — The placement mode.
|
| compareTo | () | method |
public function compareTo(otherPlacement:Placement):intCompares this placement to the specified ones.
Parameters
otherPlacement:Placement — the other placement with whom we need to compare.
|
int — a negative number, if this placement should appear before the other placement in the sorted sequence
0, if they are equal
a positive number, if this placement should appear after the other placement in the sorted sequence
|
| toString | () | method |
public function toString():StringReturns a String representation of the current placement. All numbers are represented in fixed-point notation with only 2 digits after the decimal point.
ReturnsString — a string containing placement information.
|
| UNKNOWN_DURATION | Constant |
public static const UNKNOWN_DURATION:Number = -1Constant to be used when the duration of the placement is not known.
| UNKNOWN_TIME | Constant |
public static const UNKNOWN_TIME:Number = -1Constant to be used when the time of the placement is not known.