Pakket | org.osmf.net.rules |
Klasse | public class AfterUpSwitchBufferBandwidthRule |
Overerving | AfterUpSwitchBufferBandwidthRule BufferBandwidthRule BandwidthRule RuleBase Object |
Taalversie: | ActionScript 3.0 |
Productversie: | OSMF 2.0 |
Runtimeversies: | Flash Player 10, AIR 1.5 |
AfterUpSwitchBufferBandwidthRule is an emergency rule based on BufferBandwidthRule. It kicks in if the last fragment downloaded is higher quality than the previous one and it recommends a lower bitrate if the current quality is cleary unsustainable.
It works like the BufferBandwidthRule, only on a single fragment (the last downloaded) and only if that fragment is the first from a higher quality level. In addition to the BufferBandwidthRule, this rule will not kick in (will return a zero-confidence recommendation) if the bandwidth is above an acceptable level.
Eigenschap | Gedefinieerd door | ||
---|---|---|---|
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
Verwijzing naar het klasseobject of de constructorfunctie van een bepaalde objectinstantie. | Object | ||
metricRepository : MetricRepository [alleen-lezen]
The metric repository. | RuleBase | ||
minBandwidthToBitrateRatio : Number
The minimum acceptable value of the bandwidth / bitrate fraction.
This is taken into consideration only if the bufferFragmentsThreshold constraint is not satisfied. | AfterUpSwitchBufferBandwidthRule | ||
weights : Vector.<Number> [alleen-lezen]
The weights of the fragments (first values are the weights of the most recent fragments
| BandwidthRule |
Methode | Gedefinieerd door | ||
---|---|---|---|
AfterUpSwitchBufferBandwidthRule(metricRepository:MetricRepository, bufferFragmentsThreshold:Number, minBandwidthToBitrateRatio:Number)
Constructor. | AfterUpSwitchBufferBandwidthRule | ||
[overschrijven]
The recommendation
| AfterUpSwitchBufferBandwidthRule | ||
Geeft aan of voor een object een opgegeven eigenschap is gedefinieerd. | Object | ||
Geeft aan of een instantie van de klasse Object zich in de prototypeketen van het object bevindt dat als parameter is opgegeven. | Object | ||
Geeft aan of de opgegeven eigenschap bestaat en kan worden opgesomd. | Object | ||
Stelt de beschikbaarheid van een dynamische eigenschap voor lusbewerkingen in. | Object | ||
Geeft de tekenreeksweergave van dit object weer, geformatteerd volgens de locatiespecifieke conventies. | Object | ||
Retourneert een tekenreeksrepresentatie van het opgegeven object. | Object | ||
Retourneert de primitieve waarde van het opgegeven object. | Object |
minBandwidthToBitrateRatio | eigenschap |
minBandwidthToBitrateRatio:Number
Taalversie: | ActionScript 3.0 |
Productversie: | OSMF 2.0 |
Runtimeversies: | Flash Player 10, AIR 1.5 |
The minimum acceptable value of the bandwidth / bitrate fraction. This is taken into consideration only if the bufferFragmentsThreshold constraint is not satisfied.
Implementatie
public function get minBandwidthToBitrateRatio():Number
public function set minBandwidthToBitrateRatio(value:Number):void
AfterUpSwitchBufferBandwidthRule | () | Constructor |
public function AfterUpSwitchBufferBandwidthRule(metricRepository:MetricRepository, bufferFragmentsThreshold:Number, minBandwidthToBitrateRatio:Number)
Taalversie: | ActionScript 3.0 |
Productversie: | OSMF 2.0 |
Runtimeversies: | Flash Player 10, AIR 1.5 |
Constructor.
ParametersmetricRepository:MetricRepository — The metric repository from which to retrieve the necessary metrics
| |
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
| |
minBandwidthToBitrateRatio:Number — The minimum acceptable value of the bandwidth / bitrate fraction.
This is taken into consideration only if the bufferFragmentsThreshold constraint is not satisfied.
|
getRecommendation | () | methode |
override public function getRecommendation():Recommendation
Taalversie: | ActionScript 3.0 |
Productversie: | OSMF 2.0 |
Runtimeversies: | Flash Player 10, AIR 1.5 |
The recommendation
Geretourneerde waardeRecommendation |
Wed Jun 13 2018, 11:42 AM Z