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

NCManagerNative  - AS3 Flash

Packagefl.video
Classpublic class NCManagerNative
InheritanceNCManagerNative Inheritance NCManager Inheritance Object
Implements INCManager

Language Version: ActionScript 3.0
Product Version: Flash CS3
Runtime Versions: Flash Player 9.0.28.0, AIR 1.0

The NCManagerNative class is a subclass of the NCManager class and supports native bandwidth detection, which some Flash Video Streaming Service providers may support. Check with your FVSS provider to see whether they support native bandwidth detection. Native bandwidth detection means that the bandwidth detection is built in to the streaming server and performs better.

When an NCManagerNative object is used, the main.asc file is not required on the server. If bandwidth detection is not required, the NCManagerNative object allows connection to any version of the Flash Media Server (FMS) without the main.asc file.

To use this instead of the default fl.video.NCManager, put the following code in Frame 1 of your FLA file:

     import fl.video.*;
     VideoPlayer.iNCManagerClass = fl.video.NCManagerNative;
     

Related API Elements



Public Properties
 PropertyDefined By
 Inheritedbitrate : Number
When streaming from Flash Media Server (FMS), the bitrate property returns the value calculated from autodetection, not the value set through the bitrate() property.
NCManager
 Inheritedconstructor : Object
A reference to the class object or constructor function for a given object instance.
Object
 InheritedfallbackServerName : String
Exposes the fallbackServerName property indirectly or directly.
NCManager
 InheritedisRTMP : Boolean
[read-only] Whether the URL is for RTMP streaming from a Flash Media Server (FMS) or a progressive download.
NCManager
 InheritednetConnection : NetConnection
[read-only] Reference to the NetConnection object.
NCManager
 InheritedstreamHeight : int
[read-only] Height of the stream, in pixels.
NCManager
  streamLength : Number
[override] [read-only] Length of the stream, in milliseconds.
NCManagerNative
 InheritedstreamName : String
[read-only] The stream name passed into the NetStream.play() method.
NCManager
 InheritedstreamWidth : int
[read-only] Width of the stream, in pixels.
NCManager
 Inheritedtimeout : uint
The time in milliseconds after which attempts to make a connection stop.
NCManager
 InheritedvideoPlayer : VideoPlayer
The VideoPlayer object that owns this object.
NCManager
Public Methods
 MethodDefined By
  
Creates a new NCManagerNative instance.
NCManagerNative
 Inherited
Closes the NetConnection.
NCManager
 Inherited
Called by the VideoPlayer object if the connection is successfully made but the stream is not found.
NCManager
 Inherited
Called by the VideoPlayer object to ask for a connection to the URL.
NCManager
 Inherited
getProperty(propertyName:String):*
Allows getting of the fallbackServerName, fpadZone, objectEncoding, and proxyType properties.
NCManager
 Inherited
Indicates whether an object has a specified property defined.
Object
 Inherited
helperDone(helper:Object, success:Boolean):void
Called by any helper object doing a task for the NCManager object to signal it has completed and whether it was successful.
NCManager
 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
Called by the VideoPlayer object to ask for reconnection after the connection is lost.
NCManager
 Inherited
setProperty(propertyName:String, value:*):void
Allows setting of the fallbackServerName, fpadZone, objectEncoding, and proxyType properties.
NCManager
 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
 InheritedDEFAULT_TIMEOUT : uint = 60000
The default timeout in milliseconds.
NCManager
  SHORT_VERSION : String = "2.1"
[static] State variable indicating the short version number of the component.
NCManagerNative
  VERSION : String = "2.1.0.23"
[static] State variable indicating the long version number of the component.
NCManagerNative
Property Detail

streamLength

property
streamLength:Number  [read-only] [override]

Language Version: ActionScript 3.0
Product Version: Flash CS3
Runtime Versions: Flash Player 9.0.28.0, AIR 1.0

Length of the stream, in milliseconds. After the VideoPlayer.ncConnected() method is called, if it returns undefined, null or less than 0, then the VideoPlayer object knows that there is no stream length information. If stream length information is returned, it overrides any existing steam length information including information set by the totalTime parameter of the VideoPlayer.play() method, the VideoPlayer.load() method or information received from the FLV file's metadata.



Implementation
    override public function get streamLength():Number

Related API Elements

Constructor Detail

NCManagerNative

()Constructor
public function NCManagerNative()

Language Version: ActionScript 3.0
Product Version: Flash CS3
Runtime Versions: Flash Player 9.0.28.0, AIR 1.0

Creates a new NCManagerNative instance.

Constant Detail

SHORT_VERSION

Constant
public static const SHORT_VERSION:String = "2.1"

Language Version: ActionScript 3.0
Product Version: Flash CS3
Runtime Versions: Flash Player 9.0.28.0, AIR 1.0

State variable indicating the short version number of the component. The version number is useful when you have a FLA file and need to know the component version. To determine the component version, type the following code trace into the FLA file:

FLVPlayback.SHORT_VERSION

The SHORT_VERSION variable includes only the major and minor version numbers, for example, 2.0. The VERSION variable includes the major and minor version numbers as well as the revision and build numbers, for example, 2.0.0.11.

Related API Elements

VERSION

Constant 
public static const VERSION:String = "2.1.0.23"

Language Version: ActionScript 3.0
Product Version: Flash CS3
Runtime Versions: Flash Player 9.0.28.0, AIR 1.0

State variable indicating the long version number of the component. The version number is useful when you have a FLA file and need to know the component version. To determine the component version, type the following code trace into the FLA file:

FLVPlayback.VERSION

The VERSION variable includes the major and minor version numbers as well as the revision and build numbers, for example, 2.0.0.11. The SHORT_VERSION variable includes only the major and minor version numbers, for example, 2.0.

Related API Elements