Constructor
new StallDetector(implementation, stallThresholdSeconds, onStall)
Parameters:
Name | Type | Description |
---|---|---|
implementation |
shaka.media.StallDetector.Implementation | |
stallThresholdSeconds |
number | |
onStall |
function | Callback that should be called when a stall is detected. |
- Implements:
- Source:
Classes
Interfaces
Members
implementation_ :shaka.media.StallDetector.Implementation
Type:
onStall_ :?function(number, number)
Type:
- ?function(number, number)
stallThresholdSeconds_ :number
The amount of time in seconds that we must have the same value of
|value_| before we declare it as a stall.
Type:
- number
Methods
poll() → {boolean}
Have the detector update itself and fire the "on stall" callback if a stall
was detected.
Returns:
True if action was taken.
- Type
- boolean
release()
Request that this object release all internal references.
- Implements:
- Source: