Home > hls.js > FragmentTracker > detectEvictedFragments
FragmentTracker.detectEvictedFragments() method
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)
Signature:
detectEvictedFragments(elementaryStream: SourceBufferName, timeRange: TimeRanges, playlistType: PlaylistLevelType, appendedPart?: Part | null, removeAppending?: boolean): void;
Parameters
Parameter |
Type |
Description |
---|---|---|
elementaryStream | ||
timeRange |
TimeRanges | |
playlistType | ||
appendedPart |
Part | null |
(Optional) |
removeAppending |
boolean |
(Optional) |
void