패키지 | org.osmf.net.rules |
클래스 | public class AfterUpSwitchBufferBandwidthRule |
상속 | AfterUpSwitchBufferBandwidthRule BufferBandwidthRule BandwidthRule RuleBase 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.
속성 | 정의 주체 | ||
---|---|---|---|
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
지정된 객체 인스턴스의 클래스 객체 또는 생성자 함수에 대한 참조입니다. | Object | ||
metricRepository : 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 | ||
weights : 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 | ||
지정된 속성이 객체에 정의되어 있는지 여부를 나타냅니다. | Object | ||
Object 클래스의 인스턴스가 매개 변수로 지정된 객체의 프로토타입 체인에 있는지 여부를 나타냅니다. | Object | ||
지정된 속성이 존재하고 열거 가능한지 여부를 나타냅니다. | Object | ||
루프 작업에서 동적 속성을 사용할 수 있는지 여부를 설정합니다. | Object | ||
로캘별 규칙에 따라 서식이 지정된 이 객체의 문자열 표현을 반환합니다. | Object | ||
지정된 객체의 문자열 표현을 반환합니다. | Object | ||
지정된 객체의 프리미티브 값을 반환합니다. | 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 |
Tue Jun 12 2018, 03:17 PM Z