Home > hls.js > FragmentTracker
FragmentTracker class
Signature:
export declare class FragmentTracker implements ComponentAPI
Implements: ComponentAPI
Constructors
Constructor |
Modifiers |
Description |
---|---|---|
Constructs a new instance of the |
Methods
Method |
Modifiers |
Description |
---|---|---|
detectEvictedFragments(elementaryStream, timeRange, playlistType, appendedPart, removeAppending) |
Partial fragments effected by coded frame eviction will be removed The browser will unload parts of the buffer to free up memory for new buffer data Fragments will need to be reloaded when the buffer is freed up, removing partial fragments will allow them to reload(since there might be parts that are still playable) | |
Checks if the fragment passed in is loaded in the buffer properly Partially loaded fragments will be registered as a partial fragment | ||
Return a Fragment or Part with an appended range that matches the position and levelType Otherwise, return null | ||
Return a buffered Fragment that matches the position and levelType. A buffered Fragment is one whose loading, parsing and appending is done (completed or "partial" meaning aborted). If not found any Fragment, return null | ||
Gets the partial fragment for a certain time | ||
removeFragmentsInRange(start, end, playlistType, withGapOnly, unbufferedOnly) |