Packagecom.akamai.net.f4f.hds.events
Classpublic class AkamaiHDSEvent
InheritanceAkamaiHDSEvent Inheritance org.openvideoplayer.events.OvpEvent

The AkamaiHDSEvent is dispatched by HDCore classes for HDS (HTTP Dynamic Streaming) media delivery. For details on the event types and their possible payloads, see the class dispatching events of this type.



Public Methods
 MethodDefined By
  
AkamaiHDSEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false, data:Object = null)
Constructor.
AkamaiHDSEvent
Public Constants
 ConstantDefined By
  AMD_LONG_TOKEN_RESPONSE : String = amdLongToken
[static] Dispatched when the long token is retrieved from the manifest short token request.
AkamaiHDSEvent
  COMPLETE : String = complete
[static] Dispatched when a stream has played to completion.
AkamaiHDSEvent
  DATA_MESSAGE : String = datamessage
[static] This event type is typically used for notification of an in-stream callback type of message, such as an ActionScript CuePoint.
AkamaiHDSEvent
  DRM_AUTHENTICATING : String = drmAuthenticating
[static] Dispatched when the system is in the process of DRM authentication.
AkamaiHDSEvent
  DRM_AUTHENTICATION_ERROR : String = drmAuthenticationError
[static] Dispatched when DRM authentication fails with a specific MediaError ID.
AkamaiHDSEvent
  DRM_REQUIRES_USERNAME_PASSWORD : String = requiresUsernamePassword
[static] Dispatched when username/password authentication for DRM is required.
AkamaiHDSEvent
  ERROR : String = error
[static] This event type is used to dispatch error messages.
AkamaiHDSEvent
  FATAL_ERROR : String = FATAL_ERROR
[static] Fatal error that will halt streaming.
AkamaiHDSEvent
  HAS_ALTERNATIVE_AUDIO_CHANGE : String = hasAlternativeAudioChange
[static] Dispatched by a class when alternative audio tracks have been detected.
AkamaiHDSEvent
  IS_BUFFERING : String = isbuffering
[static] Dispatched when a stream is buffering.
AkamaiHDSEvent
  IS_LIVE_STREAM : String = islivestream
[static] Dispatched when a live stream is detected.
AkamaiHDSEvent
  IS_PLAYING_LIVE : String = isPlayingLive
[static] Dispatched when the isPlayingLive property changes state to false.
AkamaiHDSEvent
  MEDIA_ENCRYPTED : String = encrypted
[static] Dispatched when playback of Akamai encrypted media is detected.
AkamaiHDSEvent
  METADATA : String = metadata
[static] This event type is typically used for notification of the in-stream onMetaData script tag.
AkamaiHDSEvent
  NETSTREAM_READY : String = netStreamReady
[static] Dispatched by a class when it's netStream property can safely be called.
AkamaiHDSEvent
  PROGRESS : String = progress
[static] A progress update event, typically tied to a progress bar in a player.
AkamaiHDSEvent
  STREAM_LENGTH : String = streamlength
[static] Dispatched when stream duration has been determined.
AkamaiHDSEvent
  SWITCH_COMPLETE : String = switchComplete
[static] For dynamic streaming, dispatched when a switch to a stream quality is complete, meaning the switch is now visible to the user.
AkamaiHDSEvent
  SWITCH_REQUESTED : String = switchRequested
[static] For dynamic streaming, dispatched when a request has been made to switch to a different stream quality.
AkamaiHDSEvent
Constructor Detail
AkamaiHDSEvent()Constructor
public function AkamaiHDSEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false, data:Object = null)

Constructor.

Parameters
type:String — Event type.
 
bubbles:Boolean (default = false) — Specifies whether the event can bubble up the display list hierarchy.
 
cancelable:Boolean (default = false) — Specifies whether the behavior associated with the event can be prevented.
 
data:Object (default = null) — Some event types can contain a payload which will be contained within this object. See the class dispatching this event for details.
Constant Detail
AMD_LONG_TOKEN_RESPONSEConstant
public static const AMD_LONG_TOKEN_RESPONSE:String = amdLongToken

Dispatched when the long token is retrieved from the manifest short token request.

COMPLETEConstant 
public static const COMPLETE:String = complete

Dispatched when a stream has played to completion.

DATA_MESSAGEConstant 
public static const DATA_MESSAGE:String = datamessage

This event type is typically used for notification of an in-stream callback type of message, such as an ActionScript CuePoint. See the dispatching class for more details.

DRM_AUTHENTICATINGConstant 
public static const DRM_AUTHENTICATING:String = drmAuthenticating

Dispatched when the system is in the process of DRM authentication.

DRM_AUTHENTICATION_ERRORConstant 
public static const DRM_AUTHENTICATION_ERROR:String = drmAuthenticationError

Dispatched when DRM authentication fails with a specific MediaError ID.

DRM_REQUIRES_USERNAME_PASSWORDConstant 
public static const DRM_REQUIRES_USERNAME_PASSWORD:String = requiresUsernamePassword

Dispatched when username/password authentication for DRM is required.

ERRORConstant 
public static const ERROR:String = error

This event type is used to dispatch error messages. See the dispatching class for specifics.

FATAL_ERRORConstant 
public static const FATAL_ERROR:String = FATAL_ERROR

Fatal error that will halt streaming. You should listen to this error on the NetStream object. There will be an error message in the data object's errorMsg key.

HAS_ALTERNATIVE_AUDIO_CHANGEConstant 
public static const HAS_ALTERNATIVE_AUDIO_CHANGE:String = hasAlternativeAudioChange

Dispatched by a class when alternative audio tracks have been detected.

IS_BUFFERINGConstant 
public static const IS_BUFFERING:String = isbuffering

Dispatched when a stream is buffering.

IS_LIVE_STREAMConstant 
public static const IS_LIVE_STREAM:String = islivestream

Dispatched when a live stream is detected.

IS_PLAYING_LIVEConstant 
public static const IS_PLAYING_LIVE:String = isPlayingLive

Dispatched when the isPlayingLive property changes state to false.

MEDIA_ENCRYPTEDConstant 
public static const MEDIA_ENCRYPTED:String = encrypted

Dispatched when playback of Akamai encrypted media is detected. This is separate from other DRM solutions such as Adobe Flash Access.

METADATAConstant 
public static const METADATA:String = metadata

This event type is typically used for notification of the in-stream onMetaData script tag. See the dispatching class for more details.

NETSTREAM_READYConstant 
public static const NETSTREAM_READY:String = netStreamReady

Dispatched by a class when it's netStream property can safely be called.

PROGRESSConstant 
public static const PROGRESS:String = progress

A progress update event, typically tied to a progress bar in a player.

STREAM_LENGTHConstant 
public static const STREAM_LENGTH:String = streamlength

Dispatched when stream duration has been determined. Typically the data property will contain the stream length.

SWITCH_COMPLETEConstant 
public static const SWITCH_COMPLETE:String = switchComplete

For dynamic streaming, dispatched when a switch to a stream quality is complete, meaning the switch is now visible to the user. See the dispatching class for more details.

SWITCH_REQUESTEDConstant 
public static const SWITCH_REQUESTED:String = switchRequested

For dynamic streaming, dispatched when a request has been made to switch to a different stream quality. See the dispatching class for more details.