Base class for MediaInspector classes to extend. Do not instantiate this
class directly.
public function MediaInspectorBase(target:IEventDispatcher = null)
Constructor.
Parameters | target:IEventDispatcher (default = null )
|
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 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.
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.
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.
public static const INVALID_MAX_BYTES_TO_READ_ARGUMENT:String = Invalid argument for maxBytesToRead passed to method
public static const INVALID_TIMEOUT_ARGUMENT:String = Invalid argument for timeout passed to method
Fri May 6 2016, 10:06 AM +05:30