Package | com.adobe.mediacore.events |
Class | public class AdPlaybackEvent |
Inheritance | AdPlaybackEvent ![]() |
Property | Defined By | ||
---|---|---|---|
ad : Ad [read-only]
The ad
| AdPlaybackEvent | ||
adBreak : AdBreak [read-only]
The ad
| AdPlaybackEvent | ||
progress : Number [read-only]
The progress made in the ad. | AdPlaybackEvent | ||
rate : Number [read-only]
The current playback rate of the ad. | AdPlaybackEvent | ||
time : Number [read-only]
The time of the ad, relative to the ad's 0 based timeline. | AdPlaybackEvent |
Method | Defined By | ||
---|---|---|---|
AdPlaybackEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false, adBreak:AdBreak = null, ad:Ad = null, progress:Number = 0, time:Number = 0, rate:Number = 1.0)
Default constructor. | AdPlaybackEvent | ||
clone():Event [override]
| AdPlaybackEvent |
Constant | Defined By | ||
---|---|---|---|
AD_COMPLETED : String = adComplete [static]
Dispatched when the ad playback is completed. | AdPlaybackEvent | ||
AD_PROGRESS : String = adProgress [static]
Dispatched during ad playback to report the playback progress. | AdPlaybackEvent | ||
AD_SEEK : String = adSeek [static]
Dispatched when a seek occurs across ad boundaries or within an ad. | AdPlaybackEvent | ||
AD_STARTED : String = adStart [static]
Dispatched when the ad has started. | AdPlaybackEvent |
ad | property |
adBreak | property |
progress | property |
progress:Number
[read-only] The progress made in the ad. The percentage is represented by a fractional number.
public function get progress():Number
rate | property |
rate:Number
[read-only] The current playback rate of the ad.
public function get rate():Number
time | property |
time:Number
[read-only] The time of the ad, relative to the ad's 0 based timeline.
public function get time():Number
AdPlaybackEvent | () | Constructor |
public function AdPlaybackEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false, adBreak:AdBreak = null, ad:Ad = null, progress:Number = 0, time:Number = 0, rate:Number = 1.0)
Default constructor.
Parameterstype:String | |
bubbles:Boolean (default = false )
| |
cancelable:Boolean (default = false )
| |
adBreak:AdBreak (default = null )
| |
ad:Ad (default = null )
| |
progress:Number (default = 0 )
| |
time:Number (default = 0 )
| |
rate:Number (default = 1.0 )
|
clone | () | method |
override public function clone():Event
Returns
Event |
AD_COMPLETED | Constant |
public static const AD_COMPLETED:String = adComplete
Dispatched when the ad playback is completed.
AD_PROGRESS | Constant |
public static const AD_PROGRESS:String = adProgress
Dispatched during ad playback to report the playback progress.
AD_SEEK | Constant |
public static const AD_SEEK:String = adSeek
Dispatched when a seek occurs across ad boundaries or within an ad.
AD_STARTED | Constant |
public static const AD_STARTED:String = adStart
Dispatched when the ad has started.