Home Reference Source
import Transmuxer from 'hls.js/src/demux/transmuxer.ts'
public class | source

Transmuxer

Constructor Summary

Public Constructor
public

Member Summary

Public Members
public
public

config: *

public
public
public

demuxer: *

public
public

probe: *

public

remuxer: *

public
public
public

vendor: *

Method Summary

Public Methods
public

configure(transmuxConfig: TransmuxConfig)

public
public
public

flush(chunkMeta: ChunkMetadata): *

public

flushRemux(transmuxResults: undefined, demuxResult: undefined, chunkMeta: undefined)

public
public

needsProbing(data: Uint8Array, discontinuity: boolean, trackSwitch: boolean): boolean

public

push(data: ArrayBuffer, decryptdata: undefined, chunkMeta: ChunkMetadata, state: TransmuxState): *

public
public

resetInitSegment(initSegmentData: undefined, audioCodec: undefined, videoCodec: undefined, duration: number)

public

resetInitialTimestamp(defaultInitPts: undefined)

public

transmux(data: Uint8Array, keyData: undefined, timeOffset: number, accurateTimeOffset: boolean, chunkMeta: ChunkMetadata): *

public

transmuxSampleAes(data: Uint8Array, decryptData: KeyData, timeOffset: number, accurateTimeOffset: boolean, chunkMeta: ChunkMetadata): Promise

public

transmuxUnencrypted(data: Uint8Array, timeOffset: number, accurateTimeOffset: boolean, chunkMeta: ChunkMetadata): TransmuxerResult

Public Constructors

public constructor() source

Public Members

public cache: ChunkCache source

public config: * source

public currentTransmuxState: * source

public decryptionPromise: * source

public demuxer: * source

public observer: * source

public probe: * source

public remuxer: * source

public transmuxConfig: * source

public typeSupported: * source

public vendor: * source

Public Methods

public configure(transmuxConfig: TransmuxConfig) source

Params:

NameTypeAttributeDescription
transmuxConfig TransmuxConfig

public configureTransmuxer(data: Uint8Array, transmuxConfig: TransmuxConfig) source

Params:

NameTypeAttributeDescription
data Uint8Array
transmuxConfig TransmuxConfig

public destroy() source

public flush(chunkMeta: ChunkMetadata): * source

Params:

NameTypeAttributeDescription
chunkMeta ChunkMetadata

Return:

*

public flushRemux(transmuxResults: undefined, demuxResult: undefined, chunkMeta: undefined) source

Params:

NameTypeAttributeDescription
transmuxResults undefined
demuxResult undefined
chunkMeta undefined

public getDecrypter(): Decrypter source

Return:

Decrypter

public needsProbing(data: Uint8Array, discontinuity: boolean, trackSwitch: boolean): boolean source

Params:

NameTypeAttributeDescription
data Uint8Array
discontinuity boolean
trackSwitch boolean

Return:

boolean

public push(data: ArrayBuffer, decryptdata: undefined, chunkMeta: ChunkMetadata, state: TransmuxState): * source

Params:

NameTypeAttributeDescription
data ArrayBuffer
decryptdata undefined
chunkMeta ChunkMetadata
state TransmuxState

Return:

*

public resetContiguity() source

public resetInitSegment(initSegmentData: undefined, audioCodec: undefined, videoCodec: undefined, duration: number) source

Params:

NameTypeAttributeDescription
initSegmentData undefined
audioCodec undefined
videoCodec undefined
duration number

public resetInitialTimestamp(defaultInitPts: undefined) source

Params:

NameTypeAttributeDescription
defaultInitPts undefined

public transmux(data: Uint8Array, keyData: undefined, timeOffset: number, accurateTimeOffset: boolean, chunkMeta: ChunkMetadata): * source

Params:

NameTypeAttributeDescription
data Uint8Array
keyData undefined
timeOffset number
accurateTimeOffset boolean
chunkMeta ChunkMetadata

Return:

*

public transmuxSampleAes(data: Uint8Array, decryptData: KeyData, timeOffset: number, accurateTimeOffset: boolean, chunkMeta: ChunkMetadata): Promise source

Params:

NameTypeAttributeDescription
data Uint8Array
decryptData KeyData
timeOffset number
accurateTimeOffset boolean
chunkMeta ChunkMetadata

Return:

Promise

public transmuxUnencrypted(data: Uint8Array, timeOffset: number, accurateTimeOffset: boolean, chunkMeta: ChunkMetadata): TransmuxerResult source

Params:

NameTypeAttributeDescription
data Uint8Array
timeOffset number
accurateTimeOffset boolean
chunkMeta ChunkMetadata

Return:

TransmuxerResult