Home > hls.js > Decrypter > webCryptoDecrypt

Decrypter.webCryptoDecrypt() method

Signature:

webCryptoDecrypt(data: Uint8Array, key: ArrayBuffer, iv: ArrayBuffer, aesMode: DecrypterAesMode): Promise<ArrayBuffer>;

Parameters

Parameter

Type

Description

data

Uint8Array

key

ArrayBuffer

iv

ArrayBuffer

aesMode

DecrypterAesMode

**Returns:**

Promise<ArrayBuffer>