套件 | org.osmf.net |
類別 | public class SwitchingRuleBase |
繼承 | SwitchingRuleBase Object |
子類別 | DroppedFramesRule, InsufficientBandwidthRule, InsufficientBufferRule, SufficientBandwidthRule |
語言版本: | ActionScript 3.0 |
產品版本: | OSMF 1.0 |
執行階段版本: | Flash Player 10, AIR 1.5 |
保護屬性
屬性 | 定義自 | ||
---|---|---|---|
metrics : NetStreamMetricsBase [唯讀]
The provider of metrics which the rule can use to determine
whether to suggest a switch. | SwitchingRuleBase |
公用方法
方法 | 定義自 | ||
---|---|---|---|
SwitchingRuleBase(metrics:NetStreamMetricsBase)
Constructor. | SwitchingRuleBase | ||
Returns the index value in the active DynamicStreamingResource to
which this switching rule thinks the bitrate should shift. | SwitchingRuleBase | ||
指出物件是否有已定義的指定屬性。 | Object | ||
指出 Object 類別的實體是否位於指定為參數的物件原型鏈中。 | Object | ||
指出指定的屬性是否存在,以及是否可列舉。 | Object | ||
為迴圈作業設定動態屬性的可用性。 | Object | ||
傳回代表此物件的字串,根據地區特定慣例進行格式化。 | Object | ||
會傳回指定之物件的字串形式。 | Object | ||
會傳回指定之物件的基本值。 | Object |
屬性詳細資訊
metrics | 屬性 |
metrics:NetStreamMetricsBase
[唯讀] The provider of metrics which the rule can use to determine whether to suggest a switch.
實作
protected function get metrics():NetStreamMetricsBase
建構函式詳細資料
SwitchingRuleBase | () | 建構函式 |
public function SwitchingRuleBase(metrics:NetStreamMetricsBase)
語言版本: | ActionScript 3.0 |
產品版本: | OSMF 1.0 |
執行階段版本: | Flash Player 10, AIR 1.5 |
Constructor.
參數metrics:NetStreamMetricsBase — Provider of runtime metrics.
|
方法詳細資訊
getNewIndex | () | 方法 |
public function getNewIndex():int
語言版本: | ActionScript 3.0 |
產品版本: | OSMF 1.0 |
執行階段版本: | Flash Player 10, AIR 1.5 |
Returns the index value in the active DynamicStreamingResource to which this switching rule thinks the bitrate should shift. It's up to the calling function to act on this. This index will range in value from -1 to n-1,where n is the number of bitrate items available. A value of -1 means that this rule does not suggest a switch away from the current item. A value from 0 to n-1 indicates that the caller should switch to that index immediately.
傳回值int |
Tue Jun 12 2018, 03:47 PM Z