Package | org.osmf.net.metrics |
Class | public class MetricBase |
Inheritance | MetricBase ![]() |
Subclasses | ActualBitrateMetric, AvailableQualityLevelsMetric, BandwidthMetric, BufferFragmentsMetric, BufferLengthMetric, BufferOccupationRatioMetric, CurrentStatusMetric, DroppedFPSMetric, EmptyBufferMetric, FPSMetric, FragmentCountMetric, RecentSwitchMetric |
Language Version: | ActionScript 3.0 |
Product Version: | OSMF 2.0 |
Runtime Versions: | Flash Player 10, AIR 1.5 |
MetricBase is a base class for metrics used for Adaptive Bitrate. A metric's value is computed based on QoSInfoHistory. A metric is identified by its type.
The base class handles the caching of the computed value. The subclasses should only implement the actual computation.
All subclasses should have qosInfoHistory
as the first parameter in the constructor.
All subclasses must set the _type
in the constructor.
Related API Elements
org.osmf.net.abr.MetricType
org.osmf.net.abr.MetricValue
org.osmf.net.abr.QoSInfoHistory
org.osmf.net.abr.MetricValue
org.osmf.net.abr.QoSInfoHistory
Public Properties
Property | Defined By | ||
---|---|---|---|
![]() | constructor : Object
A reference to the class object or constructor function for a given object instance. | Object |
Protected Properties
Property | Defined By |
---|
Public Methods
Method | Defined By | ||
---|---|---|---|
Constructor. | MetricBase | ||
![]() |
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 |
Protected Methods
Method | Defined By |
---|
Property Detail
Constructor Detail
MetricBase | () | Constructor |
public function MetricBase(qosInfoHistory:QoSInfoHistory, type:String)
Constructor.
ParametersqosInfoHistory:QoSInfoHistory — The QoSInfoHistory to be used for computing the metric
| |
type:String — The type of the metric
|
Method Detail
Thu Dec 6 2018, 01:12 PM -08:00