用于 Adobe® Flash® Platform 的 ActionScript® 3.0 参考
主页  |  隐藏包列表和类列表 |   |   |  新增内容  |  索引  |  附录  |  为什么显示为英语?
过滤条件: 正在从服务器检索数据...
正在从服务器检索数据...
org.osmf.net.rules 

RuleBase  - AS3 OSMF

org.osmf.net.rules
public class RuleBase
继承RuleBase Inheritance Object
子类 BandwidthRule, DroppedFPSRule, EmptyBufferRule

语言版本: ActionScript 3.0
产品版本: OSMF 2.0
运行时版本: Flash Player 10, AIR 1.5

RuleBase 是用于自适应比特率的规则的基类。规则向切换管理器推荐比特率,并提供推荐比特率的可信度。规则的值是根据度量的值计算的。

相关 API 元素

org.osmf.net.abr.Recommendation


公共属性
 属性由以下参数定义
 Inheritedconstructor : Object
对类对象或给定对象实例的构造函数的引用。
Object
  metricRepository : MetricRepository
[只读] 度量储备库。
RuleBase
受保护的属性
 属性由以下参数定义
  _metricRepository : MetricRepository
RuleBase
公共方法
 方法由以下参数定义
  
RuleBase(metricRepository:MetricRepository)
构造函数。
RuleBase
  
返回此规则推荐的值(理想比特率、可信度、权重),子类必须实现此方法。
RuleBase
 Inherited
表示对象是否已经定义了指定的属性。
Object
 Inherited
表示 Object 类的实例是否在指定为参数的对象的原型链中。
Object
 Inherited
表示指定的属性是否存在、是否可枚举。
Object
 Inherited
设置循环操作动态属性的可用性。
Object
 Inherited
返回此对象的字符串表示形式,其格式设置遵守区域设置特定的约定。
Object
 Inherited
返回指定对象的字符串表示形式。
Object
 Inherited
返回指定对象的原始值。
Object
属性详细信息

_metricRepository

属性
protected var _metricRepository:MetricRepository

metricRepository

属性 
metricRepository:MetricRepository  [只读]

语言版本: ActionScript 3.0
产品版本: OSMF 2.0
运行时版本: Flash Player 10, AIR 1.5

度量储备库。从中获取所需度量。



实现
    public function get metricRepository():MetricRepository
构造函数详细信息

RuleBase

()构造函数
public function RuleBase(metricRepository:MetricRepository)

语言版本: ActionScript 3.0
产品版本: OSMF 2.0
运行时版本: Flash Player 10, AIR 1.5

构造函数。

参数
metricRepository:MetricRepository — 从中检索所需度量的度量储备库
方法详细信息

getRecommendation

()方法
public function getRecommendation():Recommendation

语言版本: ActionScript 3.0
产品版本: OSMF 2.0
运行时版本: Flash Player 10, AIR 1.5

返回此规则推荐的值(理想比特率、可信度、权重),子类必须实现此方法。

返回
Recommendation




[ X ]为什么显示为英语?
《ActionScript 3.0 参考》中的内容以英语显示

《ActionScript 3.0 参考》中的部分内容未翻译成所有语言。当某个语言元素未翻译时,将显示为英语。例如,ga.controls.HelpBox 类未翻译成任何语言。因此在简体中文版的参考中,ga.controls.HelpBox 类显示为英语。