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.rtmpstreaming 

DroppedFramesRule  - AS3 OSMF

Packageorg.osmf.net.rtmpstreaming
Classpublic class DroppedFramesRule
InheritanceDroppedFramesRule Inheritance SwitchingRuleBase Inheritance Object

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

DroppedFramesRule is a switching rule that switches down when frame drop crosses a certain threshold.



Public Properties
 PropertyDefined By
 Inheritedconstructor : Object
A reference to the class object or constructor function for a given object instance.
Object
Protected Properties
 PropertyDefined By
 Inheritedmetrics : NetStreamMetricsBase
[read-only] The provider of metrics which the rule can use to determine whether to suggest a switch.
SwitchingRuleBase
Public Methods
 MethodDefined By
  
DroppedFramesRule(metrics:NetStreamMetricsBase, downSwitchByOne:int = 10, downSwitchByTwo:int = 20, downSwitchToZero:int = 24)
Constructor.
DroppedFramesRule
 Inherited
Returns the index value in the active DynamicStreamingResource to which this switching rule thinks the bitrate should shift.
SwitchingRuleBase
 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
Constructor Detail

DroppedFramesRule

()Constructor
public function DroppedFramesRule(metrics:NetStreamMetricsBase, downSwitchByOne:int = 10, downSwitchByTwo:int = 20, downSwitchToZero:int = 24)

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

Constructor.

Parameters
metrics:NetStreamMetricsBase — The metrics provider used by this rule to determine whether to switch.
 
downSwitchByOne:int (default = 10) — The number of dropped frames per second that need to occur to cause a switch down by one index. The default is 10 frames per second.
 
downSwitchByTwo:int (default = 20) — The number of dropped frames per second that need to occur to cause a switch down by two indices. The default is 20 frames per second.
 
downSwitchToZero:int (default = 24) — The number of dropped frames per second that need to occur to cause a switch to the lowest bitrate. The default is 24 frames per second.