Package | com.adobe.mediacore.events |
Class | public final class SeekEvent |
Inheritance | SeekEvent ![]() |
Property | Defined By | ||
---|---|---|---|
actualPosition : Number [read-only]
The actual position for the seek operation. | SeekEvent | ||
desiredPosition : Number [read-only]
The desired position for the seek operation. | SeekEvent | ||
local : Boolean [read-only]
The actual position for the seek operation. | SeekEvent |
Method | Defined By | ||
---|---|---|---|
SeekEvent(type:String, bubbles:Boolean, cancelable:Boolean, desiredPosition:Number, actualPosition:Number, local:Boolean)
Default constructor. | SeekEvent | ||
clone():Event [override]
| SeekEvent | ||
[static]
Helper method for creating seek events. | SeekEvent |
Constant | Defined By | ||
---|---|---|---|
SEEK_BEGIN : String = seekBegin [static]
Event dispatched when the seek operation begins. | SeekEvent | ||
SEEK_END : String = seekEnd [static]
Event dispatched when the seek operation completes. | SeekEvent | ||
SEEK_POSITION_ADJUSTED : String = seekPositionAdjusted [static]
Event dispatched when the desired seek position is adjusted due
internal playback rules (eg: you can not seek outside seekable
range) or due external business rules (eg: application doesn't
allow seeking past ads). | SeekEvent |
actualPosition | property |
actualPosition:Number
[read-only] The actual position for the seek operation.
public function get actualPosition():Number
desiredPosition | property |
desiredPosition:Number
[read-only] The desired position for the seek operation.
public function get desiredPosition():Number
local | property |
local:Boolean
[read-only] The actual position for the seek operation.
public function get local():Boolean
SeekEvent | () | Constructor |
public function SeekEvent(type:String, bubbles:Boolean, cancelable:Boolean, desiredPosition:Number, actualPosition:Number, local:Boolean)
Default constructor.
Parameterstype:String — Event type.
| |
bubbles:Boolean — Specifies whether the event can bubble up the display list hierarchy.
| |
cancelable:Boolean — Specifies whether the behavior associated with the event can be prevented.
| |
desiredPosition:Number — Desired seek position.
| |
actualPosition:Number — Actual seek position.
| |
local:Boolean — Flag indicating if the positions represent local or virtual time.
|
clone | () | method |
override public function clone():Event
Returns
Event |
create | () | method |
public static function create(type:String, desiredPosition:Number, actualPosition:Number, local:Boolean):SeekEvent
Helper method for creating seek events.
Parameters
type:String — Event type.
| |
desiredPosition:Number — Desired seek position.
| |
actualPosition:Number — Actual seek position.
| |
local:Boolean — Flag indicating if the positions represent local or virtual time.
|
SeekEvent — a SeekEvent instance.
|
SEEK_BEGIN | Constant |
public static const SEEK_BEGIN:String = seekBegin
Event dispatched when the seek operation begins.
SEEK_END | Constant |
public static const SEEK_END:String = seekEnd
Event dispatched when the seek operation completes.
SEEK_POSITION_ADJUSTED | Constant |
public static const SEEK_POSITION_ADJUSTED:String = seekPositionAdjusted
Event dispatched when the desired seek position is adjusted due internal playback rules (eg: you can not seek outside seekable range) or due external business rules (eg: application doesn't allow seeking past ads). The desiredPosition property will contain the desired seek position in stream while the actualPosition property will contain the adjusted position where the MediaPlayer will try to seek to.