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

config: HlsConfig

public
public

Method Summary

Public Methods
public

abort()

public

createKeyLoadError(frag: Fragment, details: ErrorDetails, networkDetails: undefined, message: string): LoadError

public
public

detach()

public
public

loadClear(loadingFrag: Fragment, encryptedFragments: undefined)

public

loadInternal(frag: Fragment, keySystemFormat: KeySystemFormats): Promise

public

loadKeyEME(keyInfo: KeyLoaderInfo, frag: Fragment): Promise

public

loadKeyHTTP(keyInfo: KeyLoaderInfo, frag: Fragment): Promise

public

resetLoader(context: KeyLoaderContext)

Public Constructors

public constructor() source

Public Members

public config: HlsConfig source

public emeController: * source

public keyUriToKeyInfo: * source

Public Methods

public abort() source

public createKeyLoadError(frag: Fragment, details: ErrorDetails, networkDetails: undefined, message: string): LoadError source

Params:

NameTypeAttributeDescription
frag Fragment
details ErrorDetails
networkDetails undefined
message string

Return:

LoadError

public destroy() source

public detach() source

public load(frag: Fragment): Promise source

Params:

NameTypeAttributeDescription
frag Fragment

Return:

Promise

public loadClear(loadingFrag: Fragment, encryptedFragments: undefined) source

Params:

NameTypeAttributeDescription
loadingFrag Fragment
encryptedFragments undefined

public loadInternal(frag: Fragment, keySystemFormat: KeySystemFormats): Promise source

Params:

NameTypeAttributeDescription
frag Fragment
keySystemFormat KeySystemFormats

Return:

Promise

public loadKeyEME(keyInfo: KeyLoaderInfo, frag: Fragment): Promise source

Params:

NameTypeAttributeDescription
keyInfo KeyLoaderInfo
frag Fragment

Return:

Promise

public loadKeyHTTP(keyInfo: KeyLoaderInfo, frag: Fragment): Promise source

Params:

NameTypeAttributeDescription
keyInfo KeyLoaderInfo
frag Fragment

Return:

Promise

public resetLoader(context: KeyLoaderContext) source

Params:

NameTypeAttributeDescription
context KeyLoaderContext