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

public

id: PlaylistLevelType

public

observer: HlsEventEmitter

public

onFlush: *

public
public
public

part: *

public
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: undefined, audioCodec: undefined, videoCodec: undefined, frag: Fragment, part: undefined, duration: number, accurateTimeOffset: boolean, chunkMeta: ChunkMetadata, defaultInitPTS: number)

public

transmuxerError(error: Error, chunkMeta: ChunkMetadata, reason: string)

Public Constructors

public constructor() source

Public Members

public frag: * source

public hls: Hls source

public id: PlaylistLevelType source

public observer: HlsEventEmitter source

public onFlush: * source

public onTransmuxComplete: * source

public onwmsg: Function source

public part: * source

public transmuxer: * source

public useWorker: boolean source

public worker: * source

Public Methods

public configureTransmuxer(config: TransmuxConfig) source

Params:

NameTypeAttributeDescription
config TransmuxConfig

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: undefined, audioCodec: undefined, videoCodec: undefined, frag: Fragment, part: undefined, duration: number, accurateTimeOffset: boolean, chunkMeta: ChunkMetadata, defaultInitPTS: number) source

Params:

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

public transmuxerError(error: Error, chunkMeta: ChunkMetadata, reason: string) source

Params:

NameTypeAttributeDescription
error Error
chunkMeta ChunkMetadata
reason string