Paquete | org.osmf.net.rules |
Clase | public class AfterUpSwitchBufferBandwidthRule |
Herencia | AfterUpSwitchBufferBandwidthRule BufferBandwidthRule BandwidthRule RuleBase Object |
Versión del lenguaje: | ActionScript 3.0 |
Versión de producto: | OSMF 2.0 |
Versiones de motor de ejecución: | 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.
Propiedad | Definido por | ||
---|---|---|---|
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
Una referencia a la clase de objeto o función constructora para una instancia de objeto determinada. | Object | ||
metricRepository : MetricRepository [solo lectura]
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> [solo lectura]
The weights of the fragments (first values are the weights of the most recent fragments
| BandwidthRule |
Método | Definido por | ||
---|---|---|---|
AfterUpSwitchBufferBandwidthRule(metricRepository:MetricRepository, bufferFragmentsThreshold:Number, minBandwidthToBitrateRatio:Number)
Constructor. | AfterUpSwitchBufferBandwidthRule | ||
[override]
The recommendation
| AfterUpSwitchBufferBandwidthRule | ||
Indica si un objeto tiene definida una propiedad especificada. | Object | ||
Indica si hay una instancia de la clase Object en la cadena de prototipo del objeto especificado como parámetro. | Object | ||
Indica si existe la propiedad especificada y si es enumerable. | Object | ||
Establece la disponibilidad de una propiedad dinámica para operaciones de bucle. | Object | ||
Devuelve la representación de cadena de este objeto, con formato según las convenciones específicas de configuración regional. | Object | ||
Devuelve la representación de cadena del objeto especificado. | Object | ||
Devuelve el valor simple del objeto especificado. | Object |
minBandwidthToBitrateRatio | propiedad |
minBandwidthToBitrateRatio:Number
Versión del lenguaje: | ActionScript 3.0 |
Versión de producto: | OSMF 2.0 |
Versiones de motor de ejecución: | 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.
Implementación
public function get minBandwidthToBitrateRatio():Number
public function set minBandwidthToBitrateRatio(value:Number):void
AfterUpSwitchBufferBandwidthRule | () | Información sobre |
public function AfterUpSwitchBufferBandwidthRule(metricRepository:MetricRepository, bufferFragmentsThreshold:Number, minBandwidthToBitrateRatio:Number)
Versión del lenguaje: | ActionScript 3.0 |
Versión de producto: | OSMF 2.0 |
Versiones de motor de ejecución: | Flash Player 10, AIR 1.5 |
Constructor.
ParámetrosmetricRepository: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 | () | método |
override public function getRecommendation():Recommendation
Versión del lenguaje: | ActionScript 3.0 |
Versión de producto: | OSMF 2.0 |
Versiones de motor de ejecución: | Flash Player 10, AIR 1.5 |
The recommendation
Valor devueltoRecommendation |
Tue Jun 12 2018, 02:12 PM Z