Packageasgard.net
Classpublic final class NetStreamStatus
ImplementsSerializable

The NetStream status object who contains the level and the status value of all NetStreams in the application.



Public Properties
 PropertyDefined by
  code : String
The code of the NetStream information.
NetStreamStatus
  level : String
The level of the NetStream status information.
NetStreamStatus
Public Methods
 MethodDefined by
  
NetStreamStatus(code:String, level:String, registerReference:Boolean = false)
Creates a new NetStreamStatus instance.
NetStreamStatus
  
contains(code:String):Boolean
[static] Indicates if the specified code expression is register in the NetServerStatus enumeration list.
NetStreamStatus
  
equals(o:*):Boolean
Compares the specified object with this object for equality.
NetStreamStatus
  
get(code:String):NetStreamStatus
[static] Returns the specified code expression register in the NetStreamStatus enumeration list.
NetStreamStatus
  
toSource(indent:int = 0):String
Returns the source representation of this object.
NetStreamStatus
  
toString():String
Returns the string representation of this object.
NetStreamStatus
  
valueOf():*
Returns the object representation of this object.
NetStreamStatus
Public Constants
 ConstantDefined by
  BUFFER_EMPTY : NetStreamStatus
[static] Data is not being received quickly enough to fill the buffer.
NetStreamStatus
  BUFFER_FLUSH : NetStreamStatus
[static] Data has finished streaming, and the remaining buffer will be emptied.
NetStreamStatus
  BUFFER_FULL : NetStreamStatus
[static] The buffer is full and the stream will begin playing.
NetStreamStatus
  ERROR : String = "error"
[static] The 'error' level code.
NetStreamStatus
  PAUSE : NetStreamStatus
[static] The stream is paused.
NetStreamStatus
  PLAY_COMPLETE : NetStreamStatus
[static] Playback has completed.
NetStreamStatus
  PLAY_FAILED : NetStreamStatus
[static] An error has occurred in playback for a reason other than those listed elsewhere in this table, such as the subscriber not having read access.
NetStreamStatus
  PLAY_PUBLISH : NetStreamStatus
[static] The initial publish to a stream is sent to all subscribers.
NetStreamStatus
  PLAY_RESET : NetStreamStatus
[static] Caused by a play list reset.
NetStreamStatus
  PLAY_START : NetStreamStatus
[static] Playback has started.
NetStreamStatus
  PLAY_STOP : NetStreamStatus
[static] Playback has stopped.
NetStreamStatus
  PLAY_STREAM_NOT_FOUND : NetStreamStatus
[static] The FLV passed to the play() method can't be found.
NetStreamStatus
  PLAY_SWITCH : NetStreamStatus
[static] The subscriber is switching from one stream to another in a playlist.
NetStreamStatus
  PLAY_UNPUBLISH : NetStreamStatus
[static] An unpublish from a stream is sent to all subscribers.
NetStreamStatus
  PUBLISH_BAD_NAME : NetStreamStatus
[static] Attempt to publish a stream which is already being published by someone else.
NetStreamStatus
  PUBLISH_IDLE : NetStreamStatus
[static] The publisher of the stream has been idling for too long.
NetStreamStatus
  PUBLISH_START : NetStreamStatus
[static] Publish was successful.
NetStreamStatus
  RECORD_FAILED : NetStreamStatus
[static] An attempt to record a stream failed.
NetStreamStatus
  RECORD_NOACCESS : NetStreamStatus
[static] Attempt to record a stream that is still playing or the client has no access right.
NetStreamStatus
  RECORD_START : NetStreamStatus
[static] Recording has started.
NetStreamStatus
  RECORD_STOP : NetStreamStatus
[static] Recording stopped.
NetStreamStatus
  SEEK_FAILED : NetStreamStatus
[static] The seek fails, which happens if the stream is not seekable.
NetStreamStatus
  SEEK_INVALID_TIME : NetStreamStatus
[static] For video downloaded with progressive download, the user has tried to seek or play past the end of the video data that has downloaded thus far, or past the end of the video once the entire file has downloaded.
NetStreamStatus
  SEEK_NOTIFY : NetStreamStatus
[static] The seek operation is complete.
NetStreamStatus
  STATUS : String = "status"
[static] The 'status' level code.
NetStreamStatus
  UNPAUSE : NetStreamStatus
[static] The stream is unpaused.
NetStreamStatus
  UNPUBLISH_SUCCESS : NetStreamStatus
[static] The unpublish operation was successfull.
NetStreamStatus
Property detail
codeproperty
public var code:String

The code of the NetStream information.

levelproperty 
public var level:String

The level of the NetStream status information.

Constructor detail
NetStreamStatus()constructor
public function NetStreamStatus(code:String, level:String, registerReference:Boolean = false)

Creates a new NetStreamStatus instance.

Parameters
code:String — the String code value.
 
level:String — the String level value.
 
registerReference:Boolean (default = false) — This optional flag register the instance in the internal static Map of the class, if this argument is true you can use it in the NetStreamStatus.get() and NetStreamStatus.contains() methods.
Method detail
contains()method
public static function contains(code:String):Boolean

Indicates if the specified code expression is register in the NetServerStatus enumeration list.

Parameters
code:String

Returns
Booleantrue if the specified code expression is register in the NetServerStatus enumeration list.
equals()method 
public function equals(o:*):Boolean

Compares the specified object with this object for equality.

Parameters
o:*

Returns
Booleantrue if the the specified object is equal with this object.
get()method 
public static function get(code:String):NetStreamStatus

Returns the specified code expression register in the NetStreamStatus enumeration list.

Parameters
code:String

Returns
NetStreamStatus — the specified code expression register in the NetStreamStatus enumeration list.
toSource()method 
public function toSource(indent:int = 0):String

Returns the source representation of this object.

Parameters
indent:int (default = 0)

Returns
String — the source representation of this object.
toString()method 
public function toString():String

Returns the string representation of this object.

Returns
String — the string representation of this object.
valueOf()method 
public function valueOf():*

Returns the object representation of this object.

Returns
* — the object representation of this object.
Constant detail
BUFFER_EMPTYconstant
public static const BUFFER_EMPTY:NetStreamStatus

Data is not being received quickly enough to fill the buffer. Data flow will be interrupted until the buffer refills.

BUFFER_FLUSHconstant 
public static const BUFFER_FLUSH:NetStreamStatus

Data has finished streaming, and the remaining buffer will be emptied.

BUFFER_FULLconstant 
public static const BUFFER_FULL:NetStreamStatus

The buffer is full and the stream will begin playing.

ERRORconstant 
public static const ERROR:String = "error"

The 'error' level code.

PAUSEconstant 
public static const PAUSE:NetStreamStatus

The stream is paused.

PLAY_COMPLETEconstant 
public static const PLAY_COMPLETE:NetStreamStatus

Playback has completed.

PLAY_FAILEDconstant 
public static const PLAY_FAILED:NetStreamStatus

An error has occurred in playback for a reason other than those listed elsewhere in this table, such as the subscriber not having read access.

PLAY_PUBLISHconstant 
public static const PLAY_PUBLISH:NetStreamStatus

The initial publish to a stream is sent to all subscribers.

PLAY_RESETconstant 
public static const PLAY_RESET:NetStreamStatus

Caused by a play list reset.

PLAY_STARTconstant 
public static const PLAY_START:NetStreamStatus

Playback has started.

PLAY_STOPconstant 
public static const PLAY_STOP:NetStreamStatus

Playback has stopped.

PLAY_STREAM_NOT_FOUNDconstant 
public static const PLAY_STREAM_NOT_FOUND:NetStreamStatus

The FLV passed to the play() method can't be found.

PLAY_SWITCHconstant 
public static const PLAY_SWITCH:NetStreamStatus

The subscriber is switching from one stream to another in a playlist.

PLAY_UNPUBLISHconstant 
public static const PLAY_UNPUBLISH:NetStreamStatus

An unpublish from a stream is sent to all subscribers.

PUBLISH_BAD_NAMEconstant 
public static const PUBLISH_BAD_NAME:NetStreamStatus

Attempt to publish a stream which is already being published by someone else.

PUBLISH_IDLEconstant 
public static const PUBLISH_IDLE:NetStreamStatus

The publisher of the stream has been idling for too long.

PUBLISH_STARTconstant 
public static const PUBLISH_START:NetStreamStatus

Publish was successful.

RECORD_FAILEDconstant 
public static const RECORD_FAILED:NetStreamStatus

An attempt to record a stream failed.

RECORD_NOACCESSconstant 
public static const RECORD_NOACCESS:NetStreamStatus

Attempt to record a stream that is still playing or the client has no access right.

RECORD_STARTconstant 
public static const RECORD_START:NetStreamStatus

Recording has started.

RECORD_STOPconstant 
public static const RECORD_STOP:NetStreamStatus

Recording stopped.

SEEK_FAILEDconstant 
public static const SEEK_FAILED:NetStreamStatus

The seek fails, which happens if the stream is not seekable.

SEEK_INVALID_TIMEconstant 
public static const SEEK_INVALID_TIME:NetStreamStatus

For video downloaded with progressive download, the user has tried to seek or play past the end of the video data that has downloaded thus far, or past the end of the video once the entire file has downloaded. The message.details property contains a time code that indicates the last valid position to which the user can seek.

SEEK_NOTIFYconstant 
public static const SEEK_NOTIFY:NetStreamStatus

The seek operation is complete.

STATUSconstant 
public static const STATUS:String = "status"

The 'status' level code.

UNPAUSEconstant 
public static const UNPAUSE:NetStreamStatus

The stream is unpaused.

UNPUBLISH_SUCCESSconstant 
public static const UNPUBLISH_SUCCESS:NetStreamStatus

The unpublish operation was successfull.