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

public

loaders: {}

Method Summary

Public Methods
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)

Private Methods
private
private

Public Constructors

public constructor() source

Public Members

public decryptkey: * source

public decrypturl: * source

public hls: * source

public loaders: {} source

Public Methods

public destroy() 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

Private Methods

private _registerListeners() source

private _unregisterListeners() source