Skip to content

Function: writeCo64() ​

ts
function writeCo64(cursor, box): void;

Defined in: writers/writeCo64.ts:27

Write the co64 box (ChunkLargeOffsetBox).

ISO/IEC 14496-12:2015 - 8.7.5

Each 64-bit integer field of the box is a number or a bigint. The writer throws a RangeError for a bigint that does not fit the field.

Parameters ​

cursor ​

IsoBoxWriteCursor

The write cursor

box ​

ChunkLargeOffsetBox<IsoInt64>

The ChunkLargeOffsetBox fields to write

Returns ​

void

Throws ​

RangeError if a value of the box does not fit its field.

Example ​

ts
const bytes = writeIsoBox(
	{ type: 'co64', version: 0, flags: 0, chunkOffset: [64, 2 ** 33] },
	{ writers: { co64: writeCo64 } },
)

A Streaming Video Technology Alliance project.