fl.video
public class NCManagerNative
继承NCManagerNative Inheritance NCManager Inheritance Object
实现 INCManager

语言版本 : ActionScript 3.0
Player 版本 : Flash Player 9.0.28.0

NCManagerNative 类是 NCManager 类的子类,支持某些 Flash Video Streaming Service 提供商可能支持的本机带宽检测。 请向您的 FVSS 提供商咨询其是否支持本机带宽检测。 本机带宽检测意味着将带宽检测内置到流服务器中,以提供更佳的性能。

在使用 NCManagerNative 对象时,服务器上不需要有 main.asc 文件。 如果不需要带宽检测,则 NCManagerNative 对象允许连接到任何版本的、没有 main.asc 文件的 Flash Media Server (FMS)。

要使用该对象而非默认的 fl.video.NCManager,请在 FLA 文件的第一帧中放置以下代码:

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

另请参见

NCManager



公共 属性
 属性定义方
 Inheritedbitrate : Number
当从 Flash Media Server (FMS) 进行流式加载时,bitrate 属性返回根据自动检测计算出的值,而不是通过 bitrate() 属性设置的值。
NCManager
 Inheritedconstructor : Object
对类对象或给定对象实例的构造函数的引用。
Object
 InheritedfallbackServerName : String
间接或直接公开 fallbackServerName 属性。
NCManager
 InheritedisRTMP : Boolean
[read-only] URL 是用于从 Flash Media Server (FMS) 进行 RTMP 流式加载,还是用于渐进式下载。
NCManager
 InheritednetConnection : NetConnection
[read-only] 对 NetConnection 对象的引用。
NCManager
 Inheritedprototype : Object
[static] 对类或函数对象的原型对象的引用。
Object
 InheritedstreamHeight : int
[read-only] 流的高度,以像素为单位。
NCManager
  streamLength : Number
[read-only] 流的长度,以毫秒为单位。
NCManagerNative
 InheritedstreamName : String
[read-only] 传递给 NetStream.play() 方法的流名称。
NCManager
 InheritedstreamWidth : int
[read-only] 流的宽度,以像素为单位。
NCManager
 Inheritedtimeout : uint
以毫秒为单位的时间,在该时间之后,建立连接的尝试将停止。
NCManager
 InheritedvideoPlayer : VideoPlayer
拥有此对象的 VideoPlayer 对象。
NCManager
公共 方法
 方法定义方
  
创建新的 NCManagerNative 实例。
NCManagerNative
 Inherited
关闭 NetConnection。
NCManager
 Inherited
如果成功建立连接但未找到流,则由 VideoPlayer 对象调用。
NCManager
 Inherited
由 VideoPlayer 对象调用,以要求连接到 URL。
NCManager
 Inherited
getProperty(propertyName:String):*
允许获取 fallbackServerName、fpadZone、objectEncoding 和 proxyType 属性。
NCManager
 Inherited
指示对象是否已经定义了指定的属性。
Object
 Inherited
helperDone(helper:Object, success:Boolean):void
由为 NCManager 对象执行任务的任何帮助器对象调用,以表示它已经完成了任务以及是否成功。
NCManager
 Inherited
指示 Object 类的实例是否在指定为参数的对象的原型链中。
Object
 Inherited
指示指定的属性是否存在、是否可枚举。
Object
 Inherited
失去连接后,由 VideoPlayer 对象调用来要求重新连接。
NCManager
 Inherited
setProperty(propertyName:String, value:*):void
允许设置 fallbackServerName、fpadZone、objectEncoding 和 proxyType 属性。
NCManager
 Inherited
设置循环操作动态属性的可用性。
Object
 Inherited
返回指定对象的字符串表示形式。
Object
 Inherited
返回指定对象的原始值。
Object
公共 常量
 常量定义方
 InheritedDEFAULT_TIMEOUT : uint = 60000
默认超时时间,以毫秒为单位。
NCManager
  SHORT_VERSION : String = "2.0"
[static] 指示组件短版本号的状态变量。
NCManagerNative
  VERSION : String = "2.0.0.31"
[static] 指示组件长版本号的状态变量。
NCManagerNative
属性详细信息
streamLength属性
streamLength:Number  [read-only]

语言版本 : ActionScript 3.0
Player 版本 : Flash Player 9.0.28.0

流的长度,以毫秒为单位。 调用 VideoPlayer.ncConnected() 方法之后,如果其返回值未定义、为 null 或小于 0,则 VideoPlayer 对象将认为不存在任何流长度信息。 如果返回流长度信息,则其将覆盖包括由 VideoPlayer.play() 方法的 totalTime 参数、VideoPlayer.load() 方法设置的信息或从 FLV 文件元数据接收到的信息在内的任何现有流长度信息。


实现
    public function get streamLength():Number

另请参见

构造函数详细信息
NCManagerNative()构造函数
public function NCManagerNative()

语言版本 : ActionScript 3.0
Player 版本 : Flash Player 9.0.28.0

创建新的 NCManagerNative 实例。

常量详细信息
SHORT_VERSION常量
public static const SHORT_VERSION:String = "2.0"

语言版本 : ActionScript 3.0
Player 版本 : Flash Player 9.0.28.0

指示组件短版本号的状态变量。 版本号在您有 FLA 文件并且需要知道组件版本时很有用。 要确定组件版本,请在 FLA 文件中键入下列 trace 代码:

FLVPlayback.SHORT_VERSION

SHORT_VERSION 变量仅包含主版本号和次版本号,例如:2.0。VERSION 变量包含主版本号和次版本号,以及修订版本号和生成版本号,例如:2.0.0.11。

另请参见

VERSION常量 
public static const VERSION:String = "2.0.0.31"

语言版本 : ActionScript 3.0
Player 版本 : Flash Player 9.0.28.0

指示组件长版本号的状态变量。 版本号在您有 FLA 文件并且需要知道组件版本时很有用。 要确定组件版本,请在 FLA 文件中键入下列 trace 代码:

FLVPlayback.VERSION

VERSION 变量包含主版本号和次版本号,以及修订版本号和生成版本号,例如:2.0.0.11。SHORT_VERSION 变量仅包含主版本号和次版本号,例如:2.0。

另请参见





 

评论添加到页面后给我发送电子邮件 | 评论报告

当前页: http://livedocs.adobe.com/flash/9.0_cn/ActionScriptLangRefV3/fl/video/NCManagerNative.html