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: HlsConfig

public
public
public
public

demuxer: Demuxer

public

id: PlaylistLevelType

public

observer: HlsEventEmitter

public
public

remuxer: Remuxer

public
public

typeSupported: TypeSupported

public

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: HlsConfig source

public currentTransmuxState: TransmuxState source

public decrypter: Decrypter source

public decryptionPromise: * source

public demuxer: Demuxer source

public id: PlaylistLevelType source

public observer: HlsEventEmitter source

public probe: Function source

public remuxer: Remuxer source

public transmuxConfig: TransmuxConfig source

public typeSupported: TypeSupported source

public vendor: string 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