Constructor
new StallDetector(implementation, stallThresholdSeconds, onEvent)
Parameters:
| Name | Type | Description | 
|---|---|---|
implementation | 
            
            shaka.media.StallDetector.Implementation | |
stallThresholdSeconds | 
            
            number | |
onEvent | 
            
            function | Called when an event is raised to be sent to the application. | 
- Implements:
 - Source:
 
Classes
Interfaces
Members
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
 
- Source:
 
Methods
getStallsDetected()
    Returns the number of playback stalls detected.
- Source:
 
onStall(doThis)
    Set the callback that should be called when a stall is detected. Calling
this will override any previous calls to |onStall|.
    Parameters:
| Name | Type | Description | 
|---|---|---|
doThis | 
            
            function(number, number) | 
- Source:
 
onStall_()
- Source:
 
poll() → {boolean}
    Have the detector update itself and fire the "on stall" callback if a stall
was detected.
- Source:
 
Returns:
    True if action was taken.
- Type
 - boolean
 
release()
    Request that this object release all internal references.
- Implements:
 - Source: