Packagecom.adobe.mediacore.events
Classpublic final class ProfileEvent
InheritanceProfileEvent Inheritance flash.events.Event

Event dispatched by the media player when its adaptive bit rate switching algorithm has decided to switch to another profile due network or machine conditions.



Public Properties
 PropertyDefined By
  description : String
[read-only] The description of this profile event
ProfileEvent
  profile : int
[read-only] The current profile being played by the media player.
ProfileEvent
  time : Number
[read-only] The stream time when the change has occurred.
ProfileEvent
Public Methods
 MethodDefined By
  
ProfileEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false, profile:int = 0, time:Number = 0, description:String)
Default constructor.
ProfileEvent
  
clone():Event
[override]
ProfileEvent
  
create(profile:int, time:Number, description:String):ProfileEvent
[static] Factory method for this event.
ProfileEvent
Public Constants
 ConstantDefined By
  EMPTY_DESCRIPTION : String = Not available
[static]
ProfileEvent
  PROFILE_CHANGED : String = profileChanged
[static] Event dispatched when the media player change its current profile.
ProfileEvent
Property Detail
descriptionproperty
description:String  [read-only]

The description of this profile event


Implementation
    public function get description():String
profileproperty 
profile:int  [read-only]

The current profile being played by the media player.


Implementation
    public function get profile():int
timeproperty 
time:Number  [read-only]

The stream time when the change has occurred.


Implementation
    public function get time():Number
Constructor Detail
ProfileEvent()Constructor
public function ProfileEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false, profile:int = 0, time:Number = 0, description:String)

Default constructor.

Parameters
type:String
 
bubbles:Boolean (default = false)
 
cancelable:Boolean (default = false)
 
profile:int (default = 0)
 
time:Number (default = 0)
 
description:String (default = NaN)
Method Detail
clone()method
override public function clone():Event

Returns
Event
create()method 
public static function create(profile:int, time:Number, description:String):ProfileEvent

Factory method for this event.

Parameters

profile:int — the current profile used by the media player.
 
time:Number — the stream time when this changed has occurred.
 
description:String (default = NaN)

Returns
ProfileEvent — a valid instance of ProfileEvent
Constant Detail
EMPTY_DESCRIPTIONConstant
public static const EMPTY_DESCRIPTION:String = Not available

PROFILE_CHANGEDConstant 
public static const PROFILE_CHANGED:String = profileChanged

Event dispatched when the media player change its current profile. The new profile being played is exposed through profile property. The time when this event has occurred is exposed through time property.