Skip to content

Function: writeTfra() ​

ts
function writeTfra(cursor, box): void;

Defined in: writers/writeTfra.ts:28

Write the tfra box (TrackFragmentRandomAccessBox).

ISO/IEC 14496-12:2015 - 8.8.10

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 ​

TrackFragmentRandomAccessBox<IsoInt64>

The TrackFragmentRandomAccessBox fields to write

Returns ​

void

Throws ​

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

A Streaming Video Technology Alliance project.