適用於 Adobe® Flash® Platform 的 ActionScript® 3.0 參考
首頁  |  隱藏套件和類別清單 |  套件  |  類別  |  新增內容  |  索引  |  附錄  |  為什麼顯示英文?
篩選: 從伺服器擷取資料...
從伺服器擷取資料...
org.osmf.net.rules 

AfterUpSwitchBufferBandwidthRule  - AS3 OSMF

套件org.osmf.net.rules
類別public class AfterUpSwitchBufferBandwidthRule
繼承AfterUpSwitchBufferBandwidthRule Inheritance BufferBandwidthRule Inheritance BandwidthRule Inheritance RuleBase Inheritance Object

語言版本: ActionScript 3.0
產品版本: OSMF 2.0
執行階段版本: 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.



公用屬性
 屬性定義自
 InheritedbufferFragmentsThreshold : 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
 Inheritedconstructor : Object
類別物件的參照或是特定物件實體的建構函數。
Object
 InheritedmetricRepository : MetricRepository
[唯讀] 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
 Inheritedweights : Vector.<Number>
[唯讀] The weights of the fragments (first values are the weights of the most recent fragments
BandwidthRule
公用方法
 方法定義自
  
AfterUpSwitchBufferBandwidthRule(metricRepository:MetricRepository, bufferFragmentsThreshold:Number, minBandwidthToBitrateRatio:Number)
Constructor.
AfterUpSwitchBufferBandwidthRule
  
[覆寫] The recommendation
AfterUpSwitchBufferBandwidthRule
 Inherited
指出物件是否有已定義的指定屬性。
Object
 Inherited
指出 Object 類別的實體是否位於指定為參數的物件原型鏈中。
Object
 Inherited
指出指定的屬性是否存在,以及是否可列舉。
Object
 Inherited
為迴圈作業設定動態屬性的可用性。
Object
 Inherited
傳回代表此物件的字串,根據地區特定慣例進行格式化。
Object
 Inherited
會傳回指定之物件的字串形式。
Object
 Inherited
會傳回指定之物件的基本值。
Object
屬性詳細資訊

minBandwidthToBitrateRatio

屬性
minBandwidthToBitrateRatio:Number

語言版本: ActionScript 3.0
產品版本: OSMF 2.0
執行階段版本: 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.



實作
    public function get minBandwidthToBitrateRatio():Number
    public function set minBandwidthToBitrateRatio(value:Number):void
建構函式詳細資料

AfterUpSwitchBufferBandwidthRule

()建構函式
public function AfterUpSwitchBufferBandwidthRule(metricRepository:MetricRepository, bufferFragmentsThreshold:Number, minBandwidthToBitrateRatio:Number)

語言版本: ActionScript 3.0
產品版本: OSMF 2.0
執行階段版本: Flash Player 10, AIR 1.5

Constructor.

參數
metricRepository: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

()方法
override public function getRecommendation():Recommendation

語言版本: ActionScript 3.0
產品版本: OSMF 2.0
執行階段版本: Flash Player 10, AIR 1.5

The recommendation

傳回值
Recommendation




[ X ]為什麼顯示英文?
「ActionScript 3.0 參考」的內容是以英文顯示

並非所有「ActionScript 3.0 參考」的內容都翻譯為所有語言。當語言元素未翻譯時,就會以英文顯示。例如,ga.controls.HelpBox 類別並沒有翻譯為任何語言。因此在參考的繁體中文版本中,ga.controls.HelpBox 類別就會以英文顯示。