Package | org.osmf.net.rules |
Class | public class BufferBandwidthRule |
Inheritance | BufferBandwidthRule BandwidthRule RuleBase Object |
Subclasses | AfterUpSwitchBufferBandwidthRule |
Language Version: | ActionScript 3.0 |
Product Version: | OSMF 2.0 |
Runtime Versions: | Flash Player 10, AIR 1.5 |
Public Properties
Property | Defined By | ||
---|---|---|---|
bufferFragmentsThreshold : Number
The number of fragments in the buffer above which no lower bitrates are recomended.
For example, assume the bandwidth has a value of 3000 kbps and the actual bitrate is 5000 kbps.
If the number of fragments in the buffer is below the threshold, the rule will recommend 3000 kbps; otherwise, it will recommend 5000 kbps
| BufferBandwidthRule | ||
constructor : Object
A reference to the class object or constructor function for a given object instance. | Object | ||
metricRepository : MetricRepository [read-only]
The metric repository. | RuleBase | ||
weights : Vector.<Number> [read-only]
The weights of the fragments (first values are the weights of the most recent fragments
| BandwidthRule |
Protected Properties
Public Methods
Method | Defined By | ||
---|---|---|---|
BufferBandwidthRule(metricRepository:MetricRepository, weights:Vector.<Number>, bufferFragmentsThreshold:Number)
Constructor. | BufferBandwidthRule | ||
[override]
The recommendation
| BufferBandwidthRule | ||
Indicates whether an object has a specified property defined. | Object | ||
Indicates whether an instance of the Object class is in the prototype chain of the object specified
as the parameter. | Object | ||
Indicates whether the specified property exists and is enumerable. | Object | ||
Sets the availability of a dynamic property for loop operations. | Object | ||
Returns the string representation of this object, formatted according to locale-specific conventions. | Object | ||
Returns the string representation of the specified object. | Object | ||
Returns the primitive value of the specified object. | Object |
Property Detail
bufferFragmentsThreshold | property |
bufferFragmentsThreshold:Number
Language Version: | ActionScript 3.0 |
Product Version: | OSMF 2.0 |
Runtime Versions: | Flash Player 10, AIR 1.5 |
The number of fragments in the buffer above which no lower bitrates are recomended. For example, assume the bandwidth has a value of 3000 kbps and the actual bitrate is 5000 kbps. If the number of fragments in the buffer is below the threshold, the rule will recommend 3000 kbps; otherwise, it will recommend 5000 kbps
Implementation
public function get bufferFragmentsThreshold():Number
public function set bufferFragmentsThreshold(value:Number):void
Constructor Detail
BufferBandwidthRule | () | Constructor |
public function BufferBandwidthRule(metricRepository:MetricRepository, weights:Vector.<Number>, bufferFragmentsThreshold:Number)
Language Version: | ActionScript 3.0 |
Product Version: | OSMF 2.0 |
Runtime Versions: | Flash Player 10, AIR 1.5 |
Constructor.
ParametersmetricRepository:MetricRepository — The metric repository from which to retrieve the necessary metrics
| |
weights:Vector.<Number> — The weights of the fragments (first values are the weights of the most recent fragments)
| |
bufferFragmentsThreshold:Number — The number of fragments in the buffer above which no lower bitrates are recomended.
For example, assume the bandwidth has a value of 3000 kbps and the actual bitrate is 5000 kbps.
If the number of fragments in the buffer is below the threshold, the rule will recommend 3000 kbps; otherwise, it will recommend 5000 kbps
|
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
ReturnsRecommendation |
Thu Dec 6 2018, 01:12 PM -08:00