Home Reference Source
import Decrypter from 'hls.js/src/crypt/decrypter.ts'
public class | source

Decrypter

Constructor Summary

Public Constructor
public

Member Summary

Public Members
public

config: *

public
public
public
public

key: *

public
public
public
public
public
public

subtle: *

Method Summary

Public Methods
public

flush(): *

public
public

isSync(): *

public

logOnce(msg: string)

public
public

reset()

public
public

Public Constructors

public constructor() source

Public Members

public config: * source

public currentIV: * source

public currentResult: * source

public fastAesKey: * source

public key: * source

public logEnabled: boolean source

public observer: * source

public remainderData: * source

public removePKCS7Padding: * source

public softwareDecrypter: * source

public subtle: * source

Public Methods

public flush(): * source

Return:

*

public getValidChunk(data: Uint8Array): Uint8Array source

Params:

NameTypeAttributeDescription
data Uint8Array

Return:

Uint8Array

public isSync(): * source

Return:

*

public logOnce(msg: string) source

Params:

NameTypeAttributeDescription
msg string

public onWebCryptoError(err: undefined, data: undefined, key: undefined, iv: undefined): * source

Params:

NameTypeAttributeDescription
err undefined
data undefined
key undefined
iv undefined

Return:

*

public reset() source

public softwareDecrypt(data: Uint8Array, key: ArrayBuffer, iv: ArrayBuffer): * source

Params:

NameTypeAttributeDescription
data Uint8Array
key ArrayBuffer
iv ArrayBuffer

Return:

*

public webCryptoDecrypt(data: Uint8Array, key: ArrayBuffer, iv: ArrayBuffer): Promise source

Params:

NameTypeAttributeDescription
data Uint8Array
key ArrayBuffer
iv ArrayBuffer

Return:

Promise