Packagecom.akamai.media
Classpublic class MediaInspectorBase
InheritanceMediaInspectorBase Inheritance flash.events.EventDispatcher
Subclasses MediaInspector

Base class for MediaInspector classes to extend. Do not instantiate this class directly.



Public Methods
 MethodDefined By
  
MediaInspectorBase(target:IEventDispatcher = null)
Constructor.
MediaInspectorBase
  
inspect(resource:String, maxBytesToRead:int, timeout:Number):void
An asynchronous method to inspect a resource and determine it's type.
MediaInspectorBase
Events
 Event Summary Defined By
  Dispatched when the class is finished with the inspection.MediaInspectorBase
  Dispatched when the class is in an error state.MediaInspectorBase
  Dispatched when the inspection process has timed out, meaning no response from the server has been received.MediaInspectorBase
Public Constants
 ConstantDefined By
  INVALID_MAX_BYTES_TO_READ_ARGUMENT : String = Invalid argument for maxBytesToRead passed to method
[static]
MediaInspectorBase
  INVALID_TIMEOUT_ARGUMENT : String = Invalid argument for timeout passed to method
[static]
MediaInspectorBase
Constructor Detail
MediaInspectorBase()Constructor
public function MediaInspectorBase(target:IEventDispatcher = null)

Constructor.

Parameters
target:IEventDispatcher (default = null)
Method Detail
inspect()method
public function inspect(resource:String, maxBytesToRead:int, timeout:Number):void

An asynchronous method to inspect a resource and determine it's type. Override to provide media type specific functionality.

Parameters

resource:String — The resource to inspect.
 
maxBytesToRead:int (default = NaN) — The maximum bytes the method will inspect before giving up.
 
timeout:Number (default = NaN) — The number of milliseconds the class should wait for data to begin streaming.

Event Detail
complete Event
Event Object Type: com.akamai.media.MediaInspectorEvent

Dispatched when the class is finished with the inspection. The mediaType property in this case will contain one of the constant values defined in MediaType. The data property will be a DynamicSmilParser if the resource is an FMS MBR SMIL file, or an HDMBRObject if the resource is an Akamai HD Network SMIL file.

error Event  
Event Object Type: com.akamai.media.MediaInspectorEvent

Dispatched when the class is in an error state. The data property in this case will contain an error message.

timeout Event  
Event Object Type: com.akamai.media.MediaInspectorEvent

Dispatched when the inspection process has timed out, meaning no response from the server has been received. The timeout interval can be customized via an argument on the inspect method.

Constant Detail
INVALID_MAX_BYTES_TO_READ_ARGUMENTConstant
public static const INVALID_MAX_BYTES_TO_READ_ARGUMENT:String = Invalid argument for maxBytesToRead passed to method

INVALID_TIMEOUT_ARGUMENTConstant 
public static const INVALID_TIMEOUT_ARGUMENT:String = Invalid argument for timeout passed to method