Home > hls.js > FragmentTracker > getBufferedFrag
FragmentTracker.getBufferedFrag() method
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
Signature:
getBufferedFrag(position: number, levelType: PlaylistLevelType): MediaFragment | null;
Parameters
Parameter |
Type |
Description |
---|---|---|
position |
number | |
levelType |
MediaFragment | null