Adobe® Flash® Platform için ActionScript® 3.0 Başvurusu
Ana Sayfa  |  Paket ve Sınıf Listesini Gizle |  Paketler  |  Sınıflar  |  Yenilikler  |  Dizin  |  Ekler  |  Niçin İngilizce?
Filtreler: Sunucudan Veri Alınıyor...
Sunucudan Veri Alınıyor...
org.osmf.net.httpstreaming 

DefaultHTTPStreamingSwitchManager  - AS3 OSMF

Paketorg.osmf.net.httpstreaming
Sınıfpublic class DefaultHTTPStreamingSwitchManager
Miras AlmaDefaultHTTPStreamingSwitchManager Inheritance RuleSwitchManagerBase Inheritance NetStreamSwitchManagerBase Inheritance EventDispatcher Inheritance Object

Dil Sürümü: ActionScript 3.0
Ürün Sürümü: OSMF 2.0
Çalışma Zamanı Sürümleri: Flash Player 10, AIR 1.5

Default implementation of SwitchManagerBase

İlgili API Öğeleri

org.osmf.net.abr.MetricBase
org.osmf.net.abr.RuleBase


Genel Özellikler
 ÖzellikTanımlayan:
 InheritedactualIndex : int
[salt okunur] The index of the currently downloading quality level
RuleSwitchManagerBase
 InheritedautoSwitch : Boolean
[geçersiz kıl]
RuleSwitchManagerBase
  climbFactor : Number
A factor to be applied when switching up.
DefaultHTTPStreamingSwitchManager
 Inheritedconstructor : Object
Belirli bir nesne örneği için sınıf nesnesine veya yapıcı işlevine bir başvuru.
Object
 InheritedcurrentIndex : uint
[geçersiz kıl] [salt okunur]
RuleSwitchManagerBase
 InheritedemergencyRules : Vector.<RuleBase>
[salt okunur] Array of normal rules to be used in the algorithm.
RuleSwitchManagerBase
 InheritedmaxAllowedIndex : int
The highest stream index that the switching manager is allowed to switch to.
NetStreamSwitchManagerBase
  maxDownSwitchLimit : int
The maximum difference between the indices of the old and new quality level when switching down.
DefaultHTTPStreamingSwitchManager
  maxReliabilityRecordSize : uint
The maximum length of the reliability record (how many switches to remember)
DefaultHTTPStreamingSwitchManager
  maxUpSwitchLimit : int
The maximum difference between the indices of the old and new quality level when switching up.
DefaultHTTPStreamingSwitchManager
 InheritedmetricRepository : MetricRepository
[salt okunur] The metric repository responsible with providing the metrics
RuleSwitchManagerBase
  minReliability : Number
The minimum reliability for a quality level to be used.
DefaultHTTPStreamingSwitchManager
  minReliabilityRecordSize : uint
The minimum length of the reliability record below which reliability is not an issue
DefaultHTTPStreamingSwitchManager
  normalRules : Vector.<RuleBase>
[salt okunur] Array of normal rules to be used in the algorithm.
DefaultHTTPStreamingSwitchManager
  normalRuleWeights : Vector.<Number>
The weights of the normal rules (their importance in the algorithm). Valid values must obey the following rules: same number of weights as there are rules all rules must be equal or greater than zero at least one weight must be non-zero
DefaultHTTPStreamingSwitchManager
Genel Yöntemler
 YöntemTanımlayan:
  
DefaultHTTPStreamingSwitchManager(notifier:EventDispatcher, switcher:NetStreamSwitcher, metricRepository:MetricRepository, emergencyRules:Vector.<RuleBase> = null, autoSwitch:Boolean = true, normalRules:Vector.<RuleBase> = null, normalRuleWeights:Vector.<Number> = null, minReliability:Number = 0.85, minReliabilityRecordSize:uint = 5, maxReliabilityRecordSize:uint = 30, climbFactor:Number = 0.9, maxUpSwitchLimit:int = 1, maxDownSwitchLimit:int = 2)
Constructor.
DefaultHTTPStreamingSwitchManager
 Inherited
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
EventDispatcher nesnesi olan bir olay dinleyici nesnesini, dinleyicinin bir olayın bildirimini alması için kaydeder.
EventDispatcher
 Inherited
Olay akışına bir olay gönderir.
EventDispatcher
  
The current reliability of the specified index.
DefaultHTTPStreamingSwitchManager
  
[geçersiz kıl] Returns an index that satisfies the maxBitrate constraint
DefaultHTTPStreamingSwitchManager
  
[geçersiz kıl] Computes the necessary rules and metrics and determines the index to switch to.
DefaultHTTPStreamingSwitchManager
 Inherited
EventDispatcher nesnesinin belirli bir olay türü için kayıtlı dinleyicisi olup olmadığını kontrol eder.
EventDispatcher
 Inherited
Bir nesnenin belirli bir özelliğinin tanımlı olup olmadığını gösterir.
Object
 Inherited
Object sınıfının bir örneğinin parametre olarak belirtilen nesnenin prototip zincirinde olup olmadığını gösterir.
Object
 Inherited
Belirtilen özelliğin bulunup bulunmadığını ve numaralandırılabilir olup olmadığını gösterir.
Object
 Inherited
removeEventListener(type:String, listener:Function, useCapture:Boolean = false):void
EventDispatcher nesnesinden bir dinleyiciyi kaldırır.
EventDispatcher
 Inherited
Dinamik bir özelliğin döngü işlemlerinde kullanılabilirliğini ayarlar.
Object
 Inherited
[geçersiz kıl]
RuleSwitchManagerBase
 Inherited
Bu nesnenin, yerel ayara özel kurallara göre biçimlendirilmiş dize temsilini döndürür.
Object
 Inherited
Belirtilen nesnenin dize olarak temsil edilen halini döndürür.
Object
 Inherited
Belirtilen nesnenin temel değerini döndürür.
Object
 Inherited
Bir olay dinleyicisinin bu EventDispatcher nesnesiyle mi, yoksa onun belirtilen olay türüne yönelik üst öğelerinden biriyle mi kayıtlı olduğunu kontrol eder.
EventDispatcher
Korunan Yöntemler
 YöntemTanımlayan:
  
getMaxIndex(maxBitrate:Number, emergencyFlag:Boolean = false):uint
Determines maximum available index whose declared bitrate is smaller than maxBitrate.
DefaultHTTPStreamingSwitchManager
  
Determines whether an index is reliable. This is achieved by comparing the index's reliability with the minimumReliability
DefaultHTTPStreamingSwitchManager
  
Array of normal rules to be used in the algorithm.
DefaultHTTPStreamingSwitchManager
Olaylar
 Olay Özet Tanımlayan:
 Inherited[broadcast olayı] Flash Player veya AIR uygulaması işletim sistemi odağına gelip etkin olduğunda gönderilir.EventDispatcher
 Inherited[broadcast olayı] Çalışan Flash Player veya AIR uygulaması sistem odağını kaybettiğinde ve etkin olmayan duruma geldiğinde gönderilir.EventDispatcher
Özellik Ayrıntısı

climbFactor

özellik
climbFactor:Number

Dil Sürümü: ActionScript 3.0
Ürün Sürümü: OSMF 2.0
Çalışma Zamanı Sürümleri: Flash Player 10, AIR 1.5

A factor to be applied when switching up. For example: currently playing 300kbps; new ideal bitrate = 1000kbps This means that: max bitrate = 300 + climbFactor x (1000 - 300)

It must be equal or greater than 0



Uygulama
    public function get climbFactor():Number
    public function set climbFactor(value:Number):void

Atar
ArgumentError — If it is set to a negative value

maxDownSwitchLimit

özellik 
maxDownSwitchLimit:int

Dil Sürümü: ActionScript 3.0
Ürün Sürümü: OSMF 2.0
Çalışma Zamanı Sürümleri: Flash Player 10, AIR 1.5

The maximum difference between the indices of the old and new quality level when switching down. Set this to a -1 to disable the constraint.

This works in conjunction with the reliability constraint. If no reliable stream is available inside the maxDownSwitchLimit, no switch will be performed. The maxDownSwitchLimit constraint does not apply to emergency switches.



Uygulama
    public function get maxDownSwitchLimit():int
    public function set maxDownSwitchLimit(value:int):void

maxReliabilityRecordSize

özellik 
maxReliabilityRecordSize:uint

Dil Sürümü: ActionScript 3.0
Ürün Sürümü: OSMF 2.0
Çalışma Zamanı Sürümleri: Flash Player 10, AIR 1.5

The maximum length of the reliability record (how many switches to remember)



Uygulama
    public function get maxReliabilityRecordSize():uint
    public function set maxReliabilityRecordSize(value:uint):void

maxUpSwitchLimit

özellik 
maxUpSwitchLimit:int

Dil Sürümü: ActionScript 3.0
Ürün Sürümü: OSMF 2.0
Çalışma Zamanı Sürümleri: Flash Player 10, AIR 1.5

The maximum difference between the indices of the old and new quality level when switching up. Set this to a -1 to disable the constraint.

This works in conjunction with the reliability constraint. If no reliable stream is available inside the maxUpSwitchLlimit, no switch will be performed.



Uygulama
    public function get maxUpSwitchLimit():int
    public function set maxUpSwitchLimit(value:int):void

minReliability

özellik 
minReliability:Number

Dil Sürümü: ActionScript 3.0
Ürün Sürümü: OSMF 2.0
Çalışma Zamanı Sürümleri: Flash Player 10, AIR 1.5

The minimum reliability for a quality level to be used. This value must be a number in the [0-1] interval (inclusive)



Uygulama
    public function get minReliability():Number
    public function set minReliability(value:Number):void

Atar
ArgumentError — If it is set to an invalid value

minReliabilityRecordSize

özellik 
minReliabilityRecordSize:uint

Dil Sürümü: ActionScript 3.0
Ürün Sürümü: OSMF 2.0
Çalışma Zamanı Sürümleri: Flash Player 10, AIR 1.5

The minimum length of the reliability record below which reliability is not an issue



Uygulama
    public function get minReliabilityRecordSize():uint
    public function set minReliabilityRecordSize(value:uint):void

normalRules

özellik 
normalRules:Vector.<RuleBase>  [salt okunur]

Dil Sürümü: ActionScript 3.0
Ürün Sürümü: OSMF 2.0
Çalışma Zamanı Sürümleri: Flash Player 10, AIR 1.5

Array of normal rules to be used in the algorithm. A normal rule can recommend both lower and higher bitrates than the current one



Uygulama
    public function get normalRules():Vector.<RuleBase>

normalRuleWeights

özellik 
normalRuleWeights:Vector.<Number>

Dil Sürümü: ActionScript 3.0
Ürün Sürümü: OSMF 2.0
Çalışma Zamanı Sürümleri: Flash Player 10, AIR 1.5

The weights of the normal rules (their importance in the algorithm). Valid values must obey the following rules:

  • same number of weights as there are rules
  • all rules must be equal or greater than zero
  • at least one weight must be non-zero



Uygulama
    public function get normalRuleWeights():Vector.<Number>
    public function set normalRuleWeights(value:Vector.<Number>):void

Atar
ArgumentError — If the weights are not valid, by breaking at least one of the above criteria
Yapıcı Ayrıntı

DefaultHTTPStreamingSwitchManager

()Yapıcı
public function DefaultHTTPStreamingSwitchManager(notifier:EventDispatcher, switcher:NetStreamSwitcher, metricRepository:MetricRepository, emergencyRules:Vector.<RuleBase> = null, autoSwitch:Boolean = true, normalRules:Vector.<RuleBase> = null, normalRuleWeights:Vector.<Number> = null, minReliability:Number = 0.85, minReliabilityRecordSize:uint = 5, maxReliabilityRecordSize:uint = 30, climbFactor:Number = 0.9, maxUpSwitchLimit:int = 1, maxDownSwitchLimit:int = 2)

Dil Sürümü: ActionScript 3.0
Ürün Sürümü: OSMF 2.0
Çalışma Zamanı Sürümleri: Flash Player 10, AIR 1.5

Constructor.

Parametreler
notifier:EventDispatcher — An object that dispatches the HTTPStreamingEvent.RUN_ALGORITHM event
 
switcher:NetStreamSwitcher — The NetStreamSwitcher to use for switching
 
metricRepository:MetricRepository — The repository responsible with providing metrics
 
emergencyRules:Vector.<RuleBase> (default = null) — Array of rules to be used in the algorithm. An emergency rule can only recommend lower bitrates than the current one.
 
autoSwitch:Boolean (default = true) — Flag deciding whether autoSwitch should be enabled
 
normalRules:Vector.<RuleBase> (default = null) — Array of normal rules to be used in the algorithm. A normal rule can recommend both lower and higher bitrates than the current one.
 
normalRuleWeights:Vector.<Number> (default = null) — The weights of the normal rules (their importance in the algorithm)
 
minReliability:Number (default = 0.85) — The minimum reliability for a quality level to be used
 
minReliabilityRecordSize:uint (default = 5) — The maximum length of the reliability record (how many switches to remember)
 
maxReliabilityRecordSize:uint (default = 30) — The minimum length of the reliability record below which reliability is not an issue
 
climbFactor:Number (default = 0.9) — A factor to be applied when switching up. For example: currently playing 300kbps; new ideal bitrate = 1000kbps This means that: max bitrate = 300 + climbFactor x (1000 - 300)
 
maxUpSwitchLimit:int (default = 1) — The maximum difference between the indices of the old and new quality level when switching up. Set this to -1 to disable the constraint. This works in conjunction with the reliability constraint. If no reliable stream is available inside the maxUpSwitchLimit, no switch will be performed.
 
maxDownSwitchLimit:int (default = 2) — The maximum difference between the indices of the old and new quality level when switching down. Set this to -1 value to disable the constraint. This works in conjunction with the reliability constraint. If no reliable stream is available inside the maxDownSwitchLimit, no switch will be performed. The maxDownSwitchLimit constraint does not apply to emergency switches.
Yöntem Ayrıntısı

getCurrentReliability

()yöntem
public function getCurrentReliability(index:uint):Number

Dil Sürümü: ActionScript 3.0
Ürün Sürümü: OSMF 2.0
Çalışma Zamanı Sürümleri: Flash Player 10, AIR 1.5

The current reliability of the specified index.

Parametreler

index:uint

Döndürür
Number — A number between 0 (most unreliable) and 1 (most reliable)

getMaxIndex

()yöntem 
protected function getMaxIndex(maxBitrate:Number, emergencyFlag:Boolean = false):uint

Dil Sürümü: ActionScript 3.0
Ürün Sürümü: OSMF 2.0
Çalışma Zamanı Sürümleri: Flash Player 10, AIR 1.5

Determines maximum available index whose declared bitrate is smaller than maxBitrate. Only reliable indices (indices that pass the isReliable() function) are taken into consideration.

Parametreler

maxBitrate:Number — The maximum bitrate to which the index must comply
 
emergencyFlag:Boolean (default = false)

Döndürür
uint — The index satisfying the aforementioned condition

İlgili API Öğeleri

getNewEmergencyIndex

()yöntem 
override public function getNewEmergencyIndex(maxBitrate:Number):uint

Returns an index that satisfies the maxBitrate constraint

Parametreler

maxBitrate:Number

Döndürür
uint

getNewIndex

()yöntem 
override public function getNewIndex():uint

Computes the necessary rules and metrics and determines the index to switch to. The index must be a valid one (it can be higher than maxAllowedIndex, but it should be a real index that is available)

Döndürür
uint

isReliable

()yöntem 
protected function isReliable(index:uint):Boolean

Dil Sürümü: ActionScript 3.0
Ürün Sürümü: OSMF 2.0
Çalışma Zamanı Sürümleri: Flash Player 10, AIR 1.5

Determines whether an index is reliable. This is achieved by comparing the index's reliability with the minimumReliability

Parametreler

index:uint

Döndürür
Boolean

İlgili API Öğeleri

setNormalRules

()yöntem 
protected function setNormalRules(value:Vector.<RuleBase>):void

Dil Sürümü: ActionScript 3.0
Ürün Sürümü: OSMF 2.0
Çalışma Zamanı Sürümleri: Flash Player 10, AIR 1.5

Array of normal rules to be used in the algorithm. A normal rule can recommend both lower and higher bitrates than the current one.

Parametreler

value:Vector.<RuleBase>

İlgili API Öğeleri





[ X ]Niçin İngilizce?
ActionScript 3.0 Başvurusu'ndaki içerik İngilizce görünür

ActionScript 3.0 Başvurusu'nun tüm bölümleri tüm dillere çevrilmemiştir. Bir dil öğesi çevrilmediğinde İngilizce görünür. Örneğin, ga.controls.HelpBox sınıfı hiçbir dile çevrilmez. Bu nedenle, başvurunun Türkçe versiyonunda ga.controls.HelpBox sınıfı İngilizce görünür.