Home > hls.js > TransmuxerInterface > push

TransmuxerInterface.push() method

Signature:

push(data: ArrayBuffer, initSegmentData: Uint8Array | undefined, audioCodec: string | undefined, videoCodec: string | undefined, frag: MediaFragment, part: Part | null, duration: number, accurateTimeOffset: boolean, chunkMeta: ChunkMetadata, defaultInitPTS?: RationalTimestamp): void;

Parameters

Parameter

Type

Description

data

ArrayBuffer

initSegmentData

Uint8Array | undefined

audioCodec

string | undefined

videoCodec

string | undefined

frag

MediaFragment

part

Part | null

duration

number

accurateTimeOffset

boolean

chunkMeta

ChunkMetadata

defaultInitPTS

RationalTimestamp

(Optional)

**Returns:**

void