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

KeyLoader

Constructor Summary

Public Constructor
public

Member Summary

Public Members
public
public
public

hls: Hls

public

loaders: *

Method Summary

Public Methods
public
public
public

loaderror(response: LoaderResponse, context: KeyLoaderContext)

public

loadsuccess(response: LoaderResponse, stats: LoaderStats, context: KeyLoaderContext)

public

loadtimeout(stats: LoaderStats, context: KeyLoaderContext)

public

onKeyLoading(event: undefined, data: KeyLoadingData)

public
public

startLoad(startPosition: number)

public
public

Public Constructors

public constructor() source

Public Members

public decryptkey: * source

public decrypturl: * source

public hls: Hls source

public loaders: * source

Public Methods

public destroy() source

public destroyInternalLoaders() source

public loaderror(response: LoaderResponse, context: KeyLoaderContext) source

Params:

NameTypeAttributeDescription
response LoaderResponse
context KeyLoaderContext

public loadsuccess(response: LoaderResponse, stats: LoaderStats, context: KeyLoaderContext) source

Params:

NameTypeAttributeDescription
response LoaderResponse
stats LoaderStats
context KeyLoaderContext

public loadtimeout(stats: LoaderStats, context: KeyLoaderContext) source

Params:

NameTypeAttributeDescription
stats LoaderStats
context KeyLoaderContext

public onKeyLoading(event: undefined, data: KeyLoadingData) source

Params:

NameTypeAttributeDescription
event undefined
data KeyLoadingData

public registerListeners() source

public startLoad(startPosition: number) source

Params:

NameTypeAttributeDescription
startPosition number

public stopLoad() source

public unregisterListeners() source