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

SampleAesDecrypter

Constructor Summary

Public Constructor
public

Member Summary

Public Members
public
public
public

Method Summary

Public Methods
public

decryptAacSample(samples: *, sampleIndex: *, callback: *, sync: *)

public

decryptAacSamples(samples: *, sampleIndex: *, callback: *)

public

decryptAvcSample(samples: *, sampleIndex: *, unitIndex: *, callback: *, curUnit: *, sync: *)

public

decryptAvcSamples(samples: *, sampleIndex: *, unitIndex: *, callback: *)

public

decryptBuffer(encryptedData: *, callback: *)

public

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

public

getAvcEncryptedData(decodedData: *): *

Public Constructors

public constructor() source

Public Members

public decryptdata: * source

public decrypter: * source

public discardEPB: * source

Public Methods

public decryptAacSample(samples: *, sampleIndex: *, callback: *, sync: *) source

Params:

NameTypeAttributeDescription
samples *
sampleIndex *
callback *
sync *

public decryptAacSamples(samples: *, sampleIndex: *, callback: *) source

Params:

NameTypeAttributeDescription
samples *
sampleIndex *
callback *

public decryptAvcSample(samples: *, sampleIndex: *, unitIndex: *, callback: *, curUnit: *, sync: *) source

Params:

NameTypeAttributeDescription
samples *
sampleIndex *
unitIndex *
callback *
curUnit *
sync *

public decryptAvcSamples(samples: *, sampleIndex: *, unitIndex: *, callback: *) source

Params:

NameTypeAttributeDescription
samples *
sampleIndex *
unitIndex *
callback *

public decryptBuffer(encryptedData: *, callback: *) source

Params:

NameTypeAttributeDescription
encryptedData *
callback *

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

Params:

NameTypeAttributeDescription
decodedData *
decryptedData *

Return:

*

public getAvcEncryptedData(decodedData: *): * source

Params:

NameTypeAttributeDescription
decodedData *

Return:

*