Skip to content
Type

MpegTsOutputFormatOptions

MPEG-TS-specific output options.

ts
type MpegTsOutputFormatOptions = {
	onPacket?: (data: Uint8Array, position: number) => unknown;
};

Used by

Events

onPacket

ts
onPacket?: ((data: Uint8Array<ArrayBufferLike>, position: number) => unknown);

Will be called for each 188-byte Transport Stream packet that is written.

Released under the Mozilla Public License 2.0.