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

TransmuxerInterface

Constructor Summary

Public Constructor
public

Member Summary

Public Members
public

frag: *

public

hls: *

public

id: *

public
public

onFlush: *

public
public

onwmsg: *

public

part: *

public
public

worker: *

Method Summary

Public Methods
public
public
public

flush(chunkMeta: ChunkMetadata)

public

handleFlushResult(results: Array, chunkMeta: ChunkMetadata)

public

handleTransmuxComplete(result: TransmuxerResult)

public
public

push(data: ArrayBuffer, initSegmentData: Uint8Array, audioCodec: undefined, videoCodec: undefined, frag: Fragment, part: undefined, duration: number, accurateTimeOffset: boolean, chunkMeta: ChunkMetadata, defaultInitPTS: number)

Public Constructors

public constructor() source

Public Members

public frag: * source

public hls: * source

public id: * source

public observer: * source

public onFlush: * source

public onTransmuxComplete: * source

public onwmsg: * source

public part: * source

public transmuxer: * source

public worker: * source

Public Methods

public configureTransmuxer(config: TransmuxConfig, state: TransmuxState) source

Params:

NameTypeAttributeDescription
config TransmuxConfig
state TransmuxState

public destroy() source

public flush(chunkMeta: ChunkMetadata) source

Params:

NameTypeAttributeDescription
chunkMeta ChunkMetadata

public handleFlushResult(results: Array, chunkMeta: ChunkMetadata) source

Params:

NameTypeAttributeDescription
results Array
chunkMeta ChunkMetadata

public handleTransmuxComplete(result: TransmuxerResult) source

Params:

NameTypeAttributeDescription
result TransmuxerResult

public onWorkerMessage(ev: undefined) source

Params:

NameTypeAttributeDescription
ev undefined

public push(data: ArrayBuffer, initSegmentData: Uint8Array, audioCodec: undefined, videoCodec: undefined, frag: Fragment, part: undefined, duration: number, accurateTimeOffset: boolean, chunkMeta: ChunkMetadata, defaultInitPTS: number) source

Params:

NameTypeAttributeDescription
data ArrayBuffer
initSegmentData Uint8Array
audioCodec undefined
videoCodec undefined
frag Fragment
part undefined
duration number
accurateTimeOffset boolean
chunkMeta ChunkMetadata
defaultInitPTS number