ActionScript® 3.0 Reference for the Adobe® Flash® Platform
Home  |  Show Packages and Classes List |  Packages  |  Classes  |  What's New  |  Index  |  Appendixes
org.osmf.events 

MediaErrorCodes  - AS3 OSMF

Packageorg.osmf.events
Classpublic final class MediaErrorCodes
InheritanceMediaErrorCodes Inheritance Object

Language Version: ActionScript 3.0
Product Version: OSMF 1.0
Runtime Versions: Flash Player 10, AIR 1.5

The MediaErrorCodes class provides static constants for error IDs. Error IDs zero through 999 are reserved for use by the framework.



Public Properties
 PropertyDefined By
 Inheritedconstructor : Object
A reference to the class object or constructor function for a given object instance.
Object
Public Methods
 MethodDefined By
 Inherited
Indicates whether an object has a specified property defined.
Object
 Inherited
Indicates whether an instance of the Object class is in the prototype chain of the object specified as the parameter.
Object
 Inherited
Indicates whether the specified property exists and is enumerable.
Object
 Inherited
Sets the availability of a dynamic property for loop operations.
Object
 Inherited
Returns the string representation of this object, formatted according to locale-specific conventions.
Object
 Inherited
Returns the string representation of the specified object.
Object
 Inherited
Returns the primitive value of the specified object.
Object
Public Constants
 ConstantDefined By
  ARGUMENT_ERROR : int = 4
[static] Error constant for when a MediaElement encounters an argument error.
MediaErrorCodes
  ASYNC_ERROR : int = 3
[static] Error constant for when a MediaElement encounters an asynchronous error.
MediaErrorCodes
  DRM_SYSTEM_UPDATE_ERROR : int = 19
[static] Error constant for when a DRM system update fails.
MediaErrorCodes
  DVRCAST_CONTENT_OFFLINE : int = 21
[static] Error constant for when a DVRCast NetConnection cannot connect because the DVRCast application is offline.
MediaErrorCodes
  DVRCAST_STREAM_INFO_RETRIEVAL_FAILED : int = 22
[static] Error constant for when information about the DVRCast stream cannot be retrieved.
MediaErrorCodes
  DVRCAST_SUBSCRIBE_FAILED : int = 20
[static] Error constant for when a DVRCast NetConnection cannot connect because the attempt to subscribe to the DVRCast stream fails.
MediaErrorCodes
  F4M_FILE_INVALID : int = 23
[static] Error constant for when the manifest file contains errors
MediaErrorCodes
  HTTP_GET_FAILED : int = 6
[static] Error constant for when an HTTP GET request fails due to a client error (i.e.
MediaErrorCodes
  IO_ERROR : int = 1
[static] Error constant for when a MediaElement fails to load due to an I/O error.
MediaErrorCodes
  MEDIA_LOAD_FAILED : int = 7
[static] Error constant for when the loading of a MediaElement fails.
MediaErrorCodes
  NETCONNECTION_APPLICATION_INVALID : int = 12
[static] Error constant that corresponds to the NetConnection.Connect.InvalidApp status code.
MediaErrorCodes
  NETCONNECTION_FAILED : int = 13
[static] Error constant that corresponds to the NetConnection.Connect.Failed status code.
MediaErrorCodes
  NETCONNECTION_REJECTED : int = 11
[static] Error constant that corresponds to the NetConnection.Connect.Rejected status code.
MediaErrorCodes
  NETCONNECTION_TIMEOUT : int = 14
[static] Error constant for when a NetConnection cannot connect due to a timeout.
MediaErrorCodes
  NETSTREAM_FILE_STRUCTURE_INVALID : int = 17
[static] Error constant that corresponds to the NetStream.Play.FileStructureInvalid status code.
MediaErrorCodes
  NETSTREAM_NO_SUPPORTED_TRACK_FOUND : int = 18
[static] Error constant that corresponds to the NetStream.Play.NoSupportedTrackFound status code.
MediaErrorCodes
  NETSTREAM_PLAY_FAILED : int = 15
[static] Error constant for when a NetStream cannot be played.
MediaErrorCodes
  NETSTREAM_STREAM_NOT_FOUND : int = 16
[static] Error constant that corresponds to the NetStream.Play.StreamNotFound status code.
MediaErrorCodes
  PLUGIN_IMPLEMENTATION_INVALID : int = 9
[static] Error constant for when a plugin fails to load due to the PluginInfo not being exposed on the root Sprite of the plugin.
MediaErrorCodes
  PLUGIN_VERSION_INVALID : int = 8
[static] Error constant for when a plugin fails to load due to a version mismatch.
MediaErrorCodes
  SECURITY_ERROR : int = 2
[static] Error constant for when a MediaElement fails to load due to a security error.
MediaErrorCodes
  SOUND_PLAY_FAILED : int = 10
[static] Error constant for when an audio file fails to play (e.g.
MediaErrorCodes
  URL_SCHEME_INVALID : int = 5
[static] Error constant for when the NetLoader is unable to load a resource because of an unknown or invalid URL scheme.
MediaErrorCodes
Constant Detail

ARGUMENT_ERROR

Constant
public static const ARGUMENT_ERROR:int = 4

Error constant for when a MediaElement encounters an argument error.

ASYNC_ERROR

Constant 
public static const ASYNC_ERROR:int = 3

Error constant for when a MediaElement encounters an asynchronous error.

DRM_SYSTEM_UPDATE_ERROR

Constant 
public static const DRM_SYSTEM_UPDATE_ERROR:int = 19

Error constant for when a DRM system update fails.

DVRCAST_CONTENT_OFFLINE

Constant 
public static const DVRCAST_CONTENT_OFFLINE:int = 21

Error constant for when a DVRCast NetConnection cannot connect because the DVRCast application is offline.

DVRCAST_STREAM_INFO_RETRIEVAL_FAILED

Constant 
public static const DVRCAST_STREAM_INFO_RETRIEVAL_FAILED:int = 22

Error constant for when information about the DVRCast stream cannot be retrieved.

DVRCAST_SUBSCRIBE_FAILED

Constant 
public static const DVRCAST_SUBSCRIBE_FAILED:int = 20

Error constant for when a DVRCast NetConnection cannot connect because the attempt to subscribe to the DVRCast stream fails.

F4M_FILE_INVALID

Constant 
public static const F4M_FILE_INVALID:int = 23

Error constant for when the manifest file contains errors

HTTP_GET_FAILED

Constant 
public static const HTTP_GET_FAILED:int = 6

Error constant for when an HTTP GET request fails due to a client error (i.e. returns a 4xx status code).

IO_ERROR

Constant 
public static const IO_ERROR:int = 1

Error constant for when a MediaElement fails to load due to an I/O error.

MEDIA_LOAD_FAILED

Constant 
public static const MEDIA_LOAD_FAILED:int = 7

Error constant for when the loading of a MediaElement fails.

NETCONNECTION_APPLICATION_INVALID

Constant 
public static const NETCONNECTION_APPLICATION_INVALID:int = 12

Error constant that corresponds to the NetConnection.Connect.InvalidApp status code.

NETCONNECTION_FAILED

Constant 
public static const NETCONNECTION_FAILED:int = 13

Error constant that corresponds to the NetConnection.Connect.Failed status code.

NETCONNECTION_REJECTED

Constant 
public static const NETCONNECTION_REJECTED:int = 11

Error constant that corresponds to the NetConnection.Connect.Rejected status code.

NETCONNECTION_TIMEOUT

Constant 
public static const NETCONNECTION_TIMEOUT:int = 14

Error constant for when a NetConnection cannot connect due to a timeout.

NETSTREAM_FILE_STRUCTURE_INVALID

Constant 
public static const NETSTREAM_FILE_STRUCTURE_INVALID:int = 17

Error constant that corresponds to the NetStream.Play.FileStructureInvalid status code.

NETSTREAM_NO_SUPPORTED_TRACK_FOUND

Constant 
public static const NETSTREAM_NO_SUPPORTED_TRACK_FOUND:int = 18

Error constant that corresponds to the NetStream.Play.NoSupportedTrackFound status code.

NETSTREAM_PLAY_FAILED

Constant 
public static const NETSTREAM_PLAY_FAILED:int = 15

Error constant for when a NetStream cannot be played.

NETSTREAM_STREAM_NOT_FOUND

Constant 
public static const NETSTREAM_STREAM_NOT_FOUND:int = 16

Error constant that corresponds to the NetStream.Play.StreamNotFound status code.

PLUGIN_IMPLEMENTATION_INVALID

Constant 
public static const PLUGIN_IMPLEMENTATION_INVALID:int = 9

Error constant for when a plugin fails to load due to the PluginInfo not being exposed on the root Sprite of the plugin.

PLUGIN_VERSION_INVALID

Constant 
public static const PLUGIN_VERSION_INVALID:int = 8

Error constant for when a plugin fails to load due to a version mismatch.

SECURITY_ERROR

Constant 
public static const SECURITY_ERROR:int = 2

Error constant for when a MediaElement fails to load due to a security error.

SOUND_PLAY_FAILED

Constant 
public static const SOUND_PLAY_FAILED:int = 10

Error constant for when an audio file fails to play (e.g. due to no sound channels or no sound card being available).

URL_SCHEME_INVALID

Constant 
public static const URL_SCHEME_INVALID:int = 5

Error constant for when the NetLoader is unable to load a resource because of an unknown or invalid URL scheme.