Home Reference Source
import FragmentLoader from 'hls.js/src/loader/fragment-loader.ts'
public class | source

FragmentLoader

Constructor Summary

Public Constructor
public

Member Summary

Public Members
public

config: HlsConfig

public

loader: *

public

Method Summary

Public Methods
public

abort()

public
public

load(frag: Fragment, onProgress: FragmentLoadProgressCallback): Promise

public

loadPart(frag: Fragment, part: Part, onProgress: FragmentLoadProgressCallback): Promise

public

resetLoader(frag: Fragment, loader: Loader)

public

Public Constructors

public constructor() source

Public Members

public config: HlsConfig source

public loader: * source

public partLoadTimeout: number source

Public Methods

public abort() source

public destroy() source

public load(frag: Fragment, onProgress: FragmentLoadProgressCallback): Promise source

Params:

NameTypeAttributeDescription
frag Fragment
onProgress FragmentLoadProgressCallback

Return:

Promise

public loadPart(frag: Fragment, part: Part, onProgress: FragmentLoadProgressCallback): Promise source

Params:

NameTypeAttributeDescription
frag Fragment
part Part
onProgress FragmentLoadProgressCallback

Return:

Promise

public resetLoader(frag: Fragment, loader: Loader) source

Params:

NameTypeAttributeDescription
frag Fragment
loader Loader

public updateStatsFromPart(frag: Fragment, part: Part) source

Params:

NameTypeAttributeDescription
frag Fragment
part Part