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

EmptyBufferRule  - AS3 OSMF

Packageorg.osmf.net.rules
Classpublic class EmptyBufferRule
InheritanceEmptyBufferRule Inheritance RuleBase Inheritance Object

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

EmptyBufferRule is an emergency rule that kicks in when a playback interruption caused by buffering occurred recently. It recommends a configurable fraction of the current bitrate.



Public Properties
 PropertyDefined By
 Inheritedconstructor : Object
A reference to the class object or constructor function for a given object instance.
Object
 InheritedmetricRepository : MetricRepository
[read-only] The metric repository.
RuleBase
  scaleDownFactor : Number
The factor to be applied to the current downloading bitrate in order to compute this rule's recommendation
EmptyBufferRule
Protected Properties
 PropertyDefined By
 Inherited_metricRepository : MetricRepository
RuleBase
Public Methods
 MethodDefined By
  
EmptyBufferRule(metricRepository:MetricRepository, scaleDownFactor:Number)
Constructor.
EmptyBufferRule
  
[override] The recommendation
EmptyBufferRule
 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
Property Detail

scaleDownFactor

property
scaleDownFactor:Number

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

The factor to be applied to the current downloading bitrate in order to compute this rule's recommendation



Implementation
    public function get scaleDownFactor():Number
    public function set scaleDownFactor(value:Number):void

Throws
ArgumentError — If the scaleDownFactor is set to a value outside the [0, 1] interval (inclusive)
Constructor Detail

EmptyBufferRule

()Constructor
public function EmptyBufferRule(metricRepository:MetricRepository, scaleDownFactor:Number)

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

Constructor.

Parameters
metricRepository:MetricRepository — The metric repository from which to retrieve the necessary metrics
 
scaleDownFactor:Number — The factor to be applied to the current downloading bitrate in order to compute this rule's recommendation
Method Detail

getRecommendation

()method
override public function getRecommendation():Recommendation

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

The recommendation

Returns
Recommendation