Constructor
new StateHistory(elementnon-null)
Parameters:
- Source:
Members
The stats that are "closed" for updating. The "open" state becomes closed
once we move to a new state.
Type:
- Source:
The state that we think is still the current change. It is "open" for
updating.
Type:
- Source:
Methods
Get a copy of each state change entry in the history. A copy of each entry
is created to break the reference to the internal data.
- Source:
Returns:
-
Type
-
Array.<shaka.extern.StateChange>
(private) getCurrentState_(isBuffering) → {string}
Parameters:
Name |
Type |
Description |
isBuffering |
boolean
|
|
- Source:
Returns:
-
Type
-
string
(private) getNowInSeconds_() → {number}
Get the system time in seconds.
- Source:
Returns:
-
Type
-
number
(private) start_(isBuffering)
Parameters:
Name |
Type |
Description |
isBuffering |
boolean
|
|
- Source:
update(isBuffering)
Parameters:
Name |
Type |
Description |
isBuffering |
boolean
|
|
- Source:
(private) update_(isBuffering)
Parameters:
Name |
Type |
Description |
isBuffering |
boolean
|
|
- Source: