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

KeyLoader

Extends:

src/event-handler.js~EventHandler → KeyLoader

Constructor Summary

Public Constructor
public

Member Summary

Public Members
public
public
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(data: OnKeyLoadingPayload)

Public Constructors

public constructor() source

Public Members

public decryptkey: * source

public decrypturl: * 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(data: OnKeyLoadingPayload) source

Params:

NameTypeAttributeDescription
data OnKeyLoadingPayload