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: LoaderContext

public

controller: AbortController

public
public

loader: *

public

request: Request

public
public

response: Response

public

stats: LoaderStats

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): Promise

Public Constructors

public constructor() source

Public Members

public callbacks: * source

public config: * source

public context: LoaderContext source

public controller: AbortController source

public fetchSetup: Function source

public loader: * source

public request: Request source

public requestTimeout: number source

public response: Response source

public stats: LoaderStats source

Public Methods

public abort() source

public abortInternal() source

public destroy() source

public getCacheAge(): * source

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): Promise source

Params:

NameTypeAttributeDescription
response Response
stats LoaderStats
context LoaderContext
highWaterMark number
onProgress LoaderOnProgress

Return:

Promise