Home Reference Source
import SampleAesDecrypter from 'hls.js/src/demux/sample-aes.ts'
public class | source

SampleAesDecrypter

Constructor Summary

Public Constructor
public

Member Summary

Public Members
public
public

keyData: KeyData

Method Summary

Public Methods
public

decryptAacSample(samples: undefined, sampleIndex: number, callback: undefined)

public

decryptAacSamples(samples: undefined, sampleIndex: number, callback: undefined)

public

decryptAvcSample(samples: undefined, sampleIndex: number, unitIndex: number, callback: undefined, curUnit: AvcSampleUnit)

public

decryptAvcSamples(samples: undefined, sampleIndex: number, unitIndex: number, callback: undefined)

public

decryptBuffer(encryptedData: undefined): Promise

public

getAvcDecryptedUnit(decodedData: Uint8Array, decryptedData: undefined): *

public

getAvcEncryptedData(decodedData: Uint8Array): *

Public Constructors

public constructor() source

Public Members

public decrypter: Decrypter source

public keyData: KeyData source

Public Methods

public decryptAacSample(samples: undefined, sampleIndex: number, callback: undefined) source

Params:

NameTypeAttributeDescription
samples undefined
sampleIndex number
callback undefined

public decryptAacSamples(samples: undefined, sampleIndex: number, callback: undefined) source

Params:

NameTypeAttributeDescription
samples undefined
sampleIndex number
callback undefined

public decryptAvcSample(samples: undefined, sampleIndex: number, unitIndex: number, callback: undefined, curUnit: AvcSampleUnit) source

Params:

NameTypeAttributeDescription
samples undefined
sampleIndex number
unitIndex number
callback undefined
curUnit AvcSampleUnit

public decryptAvcSamples(samples: undefined, sampleIndex: number, unitIndex: number, callback: undefined) source

Params:

NameTypeAttributeDescription
samples undefined
sampleIndex number
unitIndex number
callback undefined

public decryptBuffer(encryptedData: undefined): Promise source

Params:

NameTypeAttributeDescription
encryptedData undefined

Return:

Promise

public getAvcDecryptedUnit(decodedData: Uint8Array, decryptedData: undefined): * source

Params:

NameTypeAttributeDescription
decodedData Uint8Array
decryptedData undefined

Return:

*

public getAvcEncryptedData(decodedData: Uint8Array): * source

Params:

NameTypeAttributeDescription
decodedData Uint8Array

Return:

*