(Beta)
Package | org.osmf.net |
Class | public class SwitchingRuleBase |
Inheritance | SwitchingRuleBase Object |
Subclasses | DroppedFramesRule, InsufficientBandwidthRule, InsufficientBufferRule, SufficientBandwidthRule |
Language Version: | ActionScript 3.0 |
Product Version: | OSMF 1.0 |
Runtime Versions: | Flash Player 10, AIR 1.5 |
Public Properties
Protected Properties
Property | Defined By | ||
---|---|---|---|
metrics : NetStreamMetricsBase [read-only]
The provider of metrics which the rule can use to determine
whether to suggest a switch. | SwitchingRuleBase |
Public Methods
Method | Defined By | ||
---|---|---|---|
SwitchingRuleBase(metrics:NetStreamMetricsBase)
Constructor. | SwitchingRuleBase | ||
Returns the index value in the active DynamicStreamingResource to
which this switching rule thinks the bitrate should shift. | SwitchingRuleBase | ||
Indicates whether an object has a specified property defined. | Object | ||
Indicates whether an instance of the Object class is in the prototype chain of the object specified
as the parameter. | Object | ||
Indicates whether the specified property exists and is enumerable. | Object | ||
Sets the availability of a dynamic property for loop operations. | Object | ||
Returns the string representation of this object, formatted according to locale-specific conventions. | Object | ||
Returns the string representation of the specified object. | Object | ||
Returns the primitive value of the specified object. | Object |
Property Detail
metrics | property |
metrics:NetStreamMetricsBase
[read-only] The provider of metrics which the rule can use to determine whether to suggest a switch.
Implementation
protected function get metrics():NetStreamMetricsBase
Constructor Detail
SwitchingRuleBase | () | Constructor |
public function SwitchingRuleBase(metrics:NetStreamMetricsBase)
Language Version: | ActionScript 3.0 |
Product Version: | OSMF 1.0 |
Runtime Versions: | Flash Player 10, AIR 1.5 |
Constructor.
Parametersmetrics:NetStreamMetricsBase — Provider of runtime metrics.
|
Method Detail
getNewIndex | () | method |
public function getNewIndex():int
Language Version: | ActionScript 3.0 |
Product Version: | OSMF 1.0 |
Runtime Versions: | 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.
Returnsint |
Wed Nov 21 2018, 06:34 AM -08:00