Packagecv.events
Classpublic class MetaDataEvent
InheritanceMetaDataEvent Inheritance flash.events.Event

The MetaDataEvent class defines events for media players. These events include the following:



Public Properties
 PropertyDefined by
  data : Object
The reference to the data object.
MetaDataEvent
Public Methods
 MethodDefined by
  
MetaDataEvent(type:String, data:Object = null, bubbles:Boolean = false, cancelable:Boolean = false)
Creates a new MetaDataEvent object with the specified parameters.
MetaDataEvent
  
clone():Event
Creates a copy of the MetaDataEvent object and sets the value of each parameter to match the original.
MetaDataEvent
  
toString():String
Returns a string that contains all the properties of the MetaDataEvent object.
MetaDataEvent
Public Constants
 ConstantDefined by
  BAND_WIDTH : String = "bandwidth"
[static]
MetaDataEvent
  CAPTION : String = "caption"
[static]
MetaDataEvent
  CAPTION_INFO : String = "captionInfo"
[static]
MetaDataEvent
  CUE_POINT : String = "cuePoint"
[static]
MetaDataEvent
  FC_SUBSCRIBE : String = "fcSubscribe"
[static]
MetaDataEvent
  IMAGE_DATA : String = "imageData"
[static]
MetaDataEvent
  LAST_SECOND : String = "lastSecond"
[static]
MetaDataEvent
  METADATA : String = "metadata"
[static] Defines the value of the type property of an audioMetadata event object.
MetaDataEvent
  PLAY_STATUS : String = "playStatus"
[static]
MetaDataEvent
  RTMP_SAMPLE_ACCESS : String = "RTMPSampleAccess"
[static]
MetaDataEvent
  TEXT_DATA : String = "textData"
[static]
MetaDataEvent
Property detail
dataproperty
public var data:Object

The reference to the data object.

Constructor detail
MetaDataEvent()constructor
public function MetaDataEvent(type:String, data:Object = null, bubbles:Boolean = false, cancelable:Boolean = false)

Creates a new MetaDataEvent object with the specified parameters.

Parameters
type:String — The event type; this value identifies the action that caused the event.
 
data:Object (default = null) — Indicates whether the event can bubble up the display list hierarchy.
 
bubbles:Boolean (default = false) — Indicates whether the behavior associated with the event can be prevented.
 
cancelable:Boolean (default = false) — The metadata object.
Method detail
clone()method
public override function clone():Event

Creates a copy of the MetaDataEvent object and sets the value of each parameter to match the original.

Returns
Event — A new MetaDataEvent object with parameter values that match those of the original.
toString()method 
public override function toString():String

Returns a string that contains all the properties of the MetaDataEvent object. The string is in the following format:

[MetaDataEvent type=value bubbles=value cancelable=value data=value]

Returns
String — A string representation of the MetaDataEvent object.
Constant detail
BAND_WIDTHconstant
public static const BAND_WIDTH:String = "bandwidth"
CAPTIONconstant 
public static const CAPTION:String = "caption"
CAPTION_INFOconstant 
public static const CAPTION_INFO:String = "captionInfo"
CUE_POINTconstant 
public static const CUE_POINT:String = "cuePoint"
FC_SUBSCRIBEconstant 
public static const FC_SUBSCRIBE:String = "fcSubscribe"
IMAGE_DATAconstant 
public static const IMAGE_DATA:String = "imageData"
LAST_SECONDconstant 
public static const LAST_SECOND:String = "lastSecond"
METADATAconstant 
public static const METADATA:String = "metadata"

Defines the value of the type property of an audioMetadata event object.

This event has the following properties:

PropertyValue
bubblesfalse
cancelablefalse; there is no default behavior to cancel.
dataThe metadata object.
currentTargetThe object that is actively processing the event object with an event listener.
targetThe object that dispatched the event. The target is not always the object listening for the event. Use the currentTarget property to access the object that is listening for the event.
PLAY_STATUSconstant 
public static const PLAY_STATUS:String = "playStatus"
RTMP_SAMPLE_ACCESSconstant 
public static const RTMP_SAMPLE_ACCESS:String = "RTMPSampleAccess"
TEXT_DATAconstant 
public static const TEXT_DATA:String = "textData"