Pacote | org.osmf.net.rules |
Classe | public class AfterUpSwitchBufferBandwidthRule |
Herança | AfterUpSwitchBufferBandwidthRule BufferBandwidthRule BandwidthRule RuleBase Object |
Versão da linguagem: | ActionScript 3.0 |
Versão de produto: | OSMF 2.0 |
Versões de 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.
Propriedade | 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
Uma referência ao objeto de classe ou à função de construtor de uma determinada ocorrência de objeto. | Object | ||
metricRepository : MetricRepository [somente leitura]
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> [somente leitura]
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 | ||
[substituir]
The recommendation
| AfterUpSwitchBufferBandwidthRule | ||
Indica se um objeto tem uma propriedade especificada definida. | Object | ||
Indica se uma ocorrência da classe Object está na cadeia de protótipos do objeto especificado como o parâmetro. | Object | ||
Indica se a propriedade especificada existe e é enumerável. | Object | ||
Define a disponibilidade de uma propriedade dinâmica para operações de repetição. | Object | ||
Retorna a representação da string deste objeto, formatado segundo as convenções específicas para a localidade. | Object | ||
Retorna a representação de string do objeto especificado. | Object | ||
Retorna o valor primitivo do objeto especificado. | Object |
minBandwidthToBitrateRatio | propriedade |
minBandwidthToBitrateRatio:Number
Versão da linguagem: | ActionScript 3.0 |
Versão de produto: | OSMF 2.0 |
Versões de 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.
Implementação
public function get minBandwidthToBitrateRatio():Number
public function set minBandwidthToBitrateRatio(value:Number):void
AfterUpSwitchBufferBandwidthRule | () | Construtor |
public function AfterUpSwitchBufferBandwidthRule(metricRepository:MetricRepository, bufferFragmentsThreshold:Number, minBandwidthToBitrateRatio:Number)
Versão da linguagem: | ActionScript 3.0 |
Versão de produto: | OSMF 2.0 |
Versões de runtime: | 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
Versão da linguagem: | ActionScript 3.0 |
Versão de produto: | OSMF 2.0 |
Versões de runtime: | Flash Player 10, AIR 1.5 |
The recommendation
RetornaRecommendation |
Wed Jun 13 2018, 11:10 AM Z