Home Reference Source
import FetchLoader from 'hls.js/src/utils/fetch-loader.ts'
public class | source

FetchLoader

Constructor Summary

Public Constructor
public

Member Summary

Public Members
public
public

config: *

public

context: *

public
public
public

loader: *

public

request: *

public
public
public

stats: *

Method Summary

Public Methods
public

abort()

public
public
public
public

load(context: LoaderContext, config: LoaderConfiguration, callbacks: LoaderCallbacks)

public

loadProgressively(response: Response, stats: LoaderStats, context: LoaderContext, highWaterMark: number, onProgress: LoaderOnProgress)

Public Constructors

public constructor() source

Public Members

public callbacks: * source

public config: * source

public context: * source

public controller: * source

public fetchSetup: * source

public loader: * source

public request: * source

public requestTimeout: * source

public response: * source

public stats: * source

Public Methods

public abort() source

public abortInternal() source

public destroy() source

public getResponseHeader(name: string): * source

Params:

NameTypeAttributeDescription
name string

Return:

*

public load(context: LoaderContext, config: LoaderConfiguration, callbacks: LoaderCallbacks) source

Params:

NameTypeAttributeDescription
context LoaderContext
config LoaderConfiguration
callbacks LoaderCallbacks

public loadProgressively(response: Response, stats: LoaderStats, context: LoaderContext, highWaterMark: number, onProgress: LoaderOnProgress) source

Params:

NameTypeAttributeDescription
response Response
stats LoaderStats
context LoaderContext
highWaterMark number
onProgress LoaderOnProgress