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, sync: boolean)

public

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

public

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

public

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

public

decryptBuffer(encryptedData: undefined, callback: undefined)

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, sync: boolean) source

Params:

NameTypeAttributeDescription
samples undefined
sampleIndex number
callback undefined
sync boolean

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, sync: boolean) source

Params:

NameTypeAttributeDescription
samples undefined
sampleIndex number
unitIndex number
callback undefined
curUnit AvcSampleUnit
sync boolean

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, callback: undefined) source

Params:

NameTypeAttributeDescription
encryptedData undefined
callback undefined

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

Params:

NameTypeAttributeDescription
decodedData Uint8Array
decryptedData undefined

Return:

*

public getAvcEncryptedData(decodedData: Uint8Array): * source

Params:

NameTypeAttributeDescription
decodedData Uint8Array

Return:

*