Pacchetto | org.osmf.net.rules |
Classe | public class AfterUpSwitchBufferBandwidthRule |
Ereditarietà | AfterUpSwitchBufferBandwidthRule BufferBandwidthRule BandwidthRule RuleBase Object |
Versione linguaggio: | ActionScript 3.0 |
Versione prodotto: | OSMF 2.0 |
Versioni runtime: | 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.
Proprietà | Definito da | ||
---|---|---|---|
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
Un riferimento all'oggetto classe o alla funzione di costruzione per una determinata istanza di oggetto. | Object | ||
metricRepository : MetricRepository [sola lettura]
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> [sola lettura]
The weights of the fragments (first values are the weights of the most recent fragments
| BandwidthRule |
Metodo | Definito da | ||
---|---|---|---|
AfterUpSwitchBufferBandwidthRule(metricRepository:MetricRepository, bufferFragmentsThreshold:Number, minBandwidthToBitrateRatio:Number)
Constructor. | AfterUpSwitchBufferBandwidthRule | ||
[override]
The recommendation
| AfterUpSwitchBufferBandwidthRule | ||
Indica se per un oggetto è definita una proprietà specifica. | Object | ||
Indica se un'istanza della classe Object si trova nella catena di prototipi dell'oggetto specificato come parametro. | Object | ||
Indica se la proprietà specificata esiste ed è enumerabile. | Object | ||
Imposta la disponibilità di una proprietà dinamica per le operazioni cicliche. | Object | ||
Restituisce la rappresentazione in formato stringa di questo oggetto, formattato in base alle convenzioni specifiche per le versioni localizzate. | Object | ||
Restituisce la rappresentazione in formato stringa dell'oggetto specificato. | Object | ||
Restituisce il valore di base dell'oggetto specificato. | Object |
minBandwidthToBitrateRatio | proprietà |
minBandwidthToBitrateRatio:Number
Versione linguaggio: | ActionScript 3.0 |
Versione prodotto: | OSMF 2.0 |
Versioni runtime: | 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.
Implementazione
public function get minBandwidthToBitrateRatio():Number
public function set minBandwidthToBitrateRatio(value:Number):void
AfterUpSwitchBufferBandwidthRule | () | Funzione di costruzione |
public function AfterUpSwitchBufferBandwidthRule(metricRepository:MetricRepository, bufferFragmentsThreshold:Number, minBandwidthToBitrateRatio:Number)
Versione linguaggio: | ActionScript 3.0 |
Versione prodotto: | OSMF 2.0 |
Versioni runtime: | Flash Player 10, AIR 1.5 |
Constructor.
ParametrimetricRepository: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 | () | metodo |
override public function getRecommendation():Recommendation
Versione linguaggio: | ActionScript 3.0 |
Versione prodotto: | OSMF 2.0 |
Versioni runtime: | Flash Player 10, AIR 1.5 |
The recommendation
RestituisceRecommendation |
Tue Jun 12 2018, 02:44 PM Z